Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

🔖 Checkpoint: Edit /workspaces/claude-code-flow/user-service/src/types/user.types.ts

rUv31a62742afa1
diff --git a/benchmark/.claude/checkpoints/task-1754488723.json b/benchmark/.claude/checkpoints/task-1754488723.json
new file mode 100644
index 0000000000..35bbaa3d13
--- /dev/null
+++ b/benchmark/.claude/checkpoints/task-1754488723.json
@@ -0,0 +1 @@
+{"checkpoint": "task-20250806-135842", "task": "the list doesn't seem to work. @ruvnet ➜ /workspaces/claude-code-flow (alpha-88) $ swarm-bench rea", "timestamp": "2025-08-06T13:58:43Z", "commit": "0d434b5e9dd25b8968839d99e7dbff0584729f7a", "github_release": "true"}
diff --git a/user-service/src/types/user.types.ts b/user-service/src/types/user.types.ts
new file mode 100644
index 0000000000..d49afc9bbb
--- /dev/null
+++ b/user-service/src/types/user.types.ts
@@ -0,0 +1,87 @@
+export interface User {
+ id: string;
+ email: string;
+ username: string;
+ password: string;
+ firstName?: string;
+ lastName?: string;
+ avatar?: string;
+ role: UserRole;
+ status: UserStatus;
+ emailVerified: boolean;
+ lastLogin?: Date;
+ createdAt: Date;
+ updatedAt: Date;
+}
+
+export enum UserRole {
+ ADMIN = 'admin',
+ USER = 'user',
+ MODERATOR = 'moderator',
+ GUEST = 'guest'
+}
+
+export enum UserStatus {
+ ACTIVE = 'active',
+ INACTIVE = 'inactive',
+ SUSPENDED = 'suspended',
+ DELETED = 'deleted'
+}
+
+export interface CreateUserDTO {
+ email: string;
+ username: string;
+ password: string;
+ firstName?: string;
+ lastName?: string;
+ role?: UserRole;
+}
+
+export interface UpdateUserDTO {
+ email?: string;
+ username?: string;
+ firstName?: string;
+ lastName?: string;
+ avatar?: string;
+ role?: UserRole;
+ status?: UserStatus;
+}
+
+export interface LoginDTO {
+ email: string;
+ password: string;
+}
+
+export interface TokenPayload {
+ userId: string;
+ email: string;
+ role: UserRole;
+}
+
+export interface AuthResponse {
+ user: Omit<User, 'password'>;
+ token: string;
+ refreshToken?: string;
+}
+
+export interface PaginationOptions {
+ page: number;
+ limit: number;
+ sortBy?: string;
+ sortOrder?: 'asc' | 'desc';
+}
+
+export interface PaginatedResult<T> {
+ data: T[];
+ total: number;
+ page: number;
+ limit: number;
+ totalPages: number;
+}
+
+export interface UserFilter {
+ role?: UserRole;
+ status?: UserStatus;
+ emailVerified?: boolean;
+ search?: string;
+}
\ No newline at end of file