Rxdb Client
Functions
Functions
createRxDBClient
Factory function to create RxDB client Automatically chooses implementation based on config mode
Signature:
createRxDBClient(config: ClientConfig<TCollections>): IRxDBClient<TCollections>
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
config | ClientConfig<TCollections> | Yes |
Returns:
IRxDBClient<TCollections> -
createEpicFlowClient
Create Epic Flow client with pre-configured collections
Signature:
createEpicFlowClient(config: Omit<ClientConfig<{ projects: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; startAt: { type: string; format: string; maxLength: number; }; startedAt: { type: string; format: string; maxLength: number; }; dueAt: { type: string; format: string; maxLength: number; }; completedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; completed: { type: string; }; goalId: { type: string; maxLength: number; }; archived: { type: string; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; codebaseId: { type: string; maxLength: number; }; sourceTemplateId: { type: string; maxLength: number; }; timeBudgetHours: { type: string; }; categoryId: { type: string; }; tagIds: { type: string; items: { type: string; }; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; milestones: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; startAt: { type: string; format: string; maxLength: number; }; startedAt: { type: string; format: string; maxLength: number; }; dueAt: { type: string; format: string; maxLength: number; }; completedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; completed: { type: string; }; projectId: { type: string; maxLength: number; }; goalId: { type: string; maxLength: number; }; archived: { type: string; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; timeBudgetHours: { type: string; }; categoryId: { type: string; }; tagIds: { type: string; items: { type: string; }; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; tasks: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; dueAt: { type: string; format: string; }; startAt: { type: string; format: string; }; startedAt: { type: string; format: string; }; completedAt: { type: string; format: string; }; status: { type: string; enum: string[]; }; type: { type: string; enum: string[]; }; completed: { type: string; }; workspaceId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; milestoneId: { type: string; maxLength: number; }; parentTaskId: { type: string; maxLength: number; }; archived: { type: string; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; timeBudgetHours: { type: string; }; isRecurring: { type: string; }; recurrenceRule: { type: string; }; parentRecurrenceId: { type: string; }; recurrenceInstanceDate: { type: string; format: string; }; categoryId: { type: string; }; tagIds: { type: string; items: { type: string; }; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; discussions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; entityType: { type: string; maxLength: number; }; entityId: { type: string; maxLength: number; }; content: { type: string; }; contentHtml: { type: string; }; parentId: { type: string; maxLength: number; }; threadDepth: { type: string; minimum: number; maximum: number; }; isEdited: { type: string; }; editedAt: { type: string; format: string; }; isDeleted: { type: string; }; deletedAt: { type: string; format: string; }; userName: { type: string; }; userAvatar: { type: string; }; attachments: { type: string; items: { type: string; properties: { id: { type: string; }; name: { type: string; }; size: { type: string; }; type: { type: string; }; url: { type: string; }; uploadedAt: { type: string; format: string; }; status: { type: string; enum: string[]; }; thumbnailUrl: { type: string; }; checksum: { type: string; }; }; required: string[]; }; }; metadata: { type: string; additionalProperties: boolean; }; extended: { type: string; }; mentions: { type: string; items: { type: string; properties: { type: { type: string; enum: string[]; }; identifier: { type: string; maxLength: number; }; teamMemberId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; position: { type: string; minimum: number; }; }; required: string[]; }; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: { 1: (oldDoc: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a; 2: (oldDoc: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a; 3: (oldDoc: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a; 4: (oldDoc: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => { mentions: { type: "agent"; identifier: string; position: number; }[]; id: string; orgId: string; workspaceId: string; userId: string; createdAt: string; updatedAt: string; entityType: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").b; entityId: string; content: string; contentHtml?: string; parentId?: string; threadDepth: number; isEdited: boolean; editedAt?: string; isDeleted: boolean; deletedAt?: string; attachments?: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").A[]; userName: string; userAvatar?: string; metadata?: Record<string, any>; extended?: Record<string, any>; }; }; hooks: { preInsert: (this: any, docData: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => Promise<import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a>; preSave: (this: any, docData: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a, oldDocData: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => Promise<import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a>; }; }; logs: { name: string; schema: { version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; message: { type: string; }; level: { type: string; maxLength: number; }; source: { type: string; maxLength: number; }; timestamp: { type: string; maxLength: number; }; entityType: { type: string; maxLength: number; }; entityId: { type: string; maxLength: number; }; category: { type: string; maxLength: number; }; metadata: { type: string; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; parentLogId: { type: string; maxLength: number; }; trashed: { type: string; }; createdAt: { type: string; maxLength: number; }; updatedAt: { type: string; maxLength: number; }; }; required: string[]; }; migrationStrategies: {}; }; timeentries: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; start: { type: string; format: string; }; end: { type: string; format: string; }; duration: { type: string; }; taskId: { type: string; maxLength: number; }; archived: { type: string; }; categoryId: { type: string; }; tagIds: { type: string; items: { type: string; }; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; approvals: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; milestoneId: { type: string; maxLength: number; }; taskId: { type: string; maxLength: number; }; documentId: { type: string; maxLength: number; }; title: { type: string; }; type: { type: string; enum: string[]; }; category: { type: string; enum: string[]; }; categoryName: { type: string; }; status: { type: string; enum: string[]; maxLength: number; }; documentType: { type: string; }; documentContent: { type: string; }; response: { type: string; }; annotations: { type: string; }; comments: { type: string; items: { type: string; }; }; respondedAt: { type: string; format: string; }; approverId: { type: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: any) => any; 2: (oldDoc: any) => any; }; }; templates: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; templateType: { type: string; enum: string[]; maxLength: number; }; name: { type: string; }; content: { type: string; }; version: { type: string; maxLength: number; }; isDefault: { type: string; }; metadata: { type: string; }; data: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; documents: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; milestoneId: { type: string; maxLength: number; }; taskId: { type: string; maxLength: number; }; codebaseId: { type: string; maxLength: number; }; documentType: { type: string; enum: string[]; maxLength: number; }; title: { type: string; }; content: { type: string; }; storage: { type: string; properties: { s3Key: { type: string; }; s3Bucket: { type: string; }; contentHash: { type: string; }; fileSize: { type: string; }; mimeType: { type: string; }; documentStoreId: { type: string; }; ragJobId: { type: string; }; }; }; documentVersion: { type: string; }; approved: { type: string; }; approvedAt: { type: string; format: string; maxLength: number; }; approvedBy: { type: string; maxLength: number; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: { 1: (oldDoc: any) => any; 2: (oldDoc: any) => any; 3: (oldDoc: any) => any; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; workspaces: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; title: { type: string; }; description: { type: string; }; tags: { type: string; items: { type: string; }; }; status: { type: string; enum: string[]; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archivedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; codebases: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; title: { type: string; }; description: { type: string; }; repository: { type: string; properties: { url: { type: string; }; defaultBranch: { type: string; maxLength: number; }; provider: { type: string; enum: string[]; maxLength: number; }; organization: { type: string; maxLength: number; }; repositoryName: { type: string; maxLength: number; }; privateRepo: { type: string; }; accessToken: { type: string; }; sshKey: { type: string; }; }; required: string[]; }; environment: { type: string; properties: { nodeVersion: { type: string; maxLength: number; }; packageManager: { type: string; enum: string[]; maxLength: number; }; workingDirectory: { type: string; maxLength: number; }; setupCommands: { type: string; items: { type: string; }; }; testCommands: { type: string; items: { type: string; }; }; buildCommands: { type: string; items: { type: string; }; }; environmentVariables: { type: string; }; }; required: string[]; }; deployment: { type: string; properties: { platform: { type: string; enum: string[]; maxLength: number; }; productionUrl: { type: string; }; stagingUrl: { type: string; }; previewUrlPattern: { type: string; }; deployCommand: { type: string; }; deployBranch: { type: string; maxLength: number; }; cicdProvider: { type: string; enum: string[]; maxLength: number; }; cicdConfigPath: { type: string; maxLength: number; }; platformConfig: { type: string; }; }; }; agentWorkflow: { type: string; properties: { branchStrategy: { type: string; enum: string[]; maxLength: number; }; branchPrefix: { type: string; maxLength: number; }; commitConvention: { type: string; enum: string[]; maxLength: number; }; commitTemplate: { type: string; }; requireTests: { type: string; }; requireLint: { type: string; }; createPR: { type: string; }; prTitleTemplate: { type: string; }; prDescriptionTemplate: { type: string; }; prReviewers: { type: string; items: { type: string; }; }; prLabels: { type: string; items: { type: string; }; }; }; }; tags: { type: string; items: { type: string; }; }; status: { type: string; enum: string[]; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archivedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; extended: { type: string; }; metadata: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; sessions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; codebaseId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; milestoneId: { type: string; maxLength: number; }; taskId: { type: string; maxLength: number; }; sessionType: { type: string; enum: string[]; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; expiresAt: { type: string; format: string; }; archived: { type: string; }; context: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; orgs: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; description: { type: string; }; archived: { type: string; }; metadata: { type: string; additionalProperties: boolean; properties: { colorSchemeIndex: { type: string; }; }; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; users: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; email: { type: string; format: string; maxLength: number; }; authUserId: { type: string; }; timezone: { type: string; }; archived: { type: string; }; orgId: { type: string; maxLength: number; }; onboarded: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; variables: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; codebaseId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; context: { type: string; maxLength: number; }; variables: { type: string; }; metadata: { type: string; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: (string | string[])[]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; syncconfigs: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; providerId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; description: { type: string; }; targetProjectId: { type: string; maxLength: number; }; targetMilestoneId: { type: string; maxLength: number; }; direction: { type: string; enum: string[]; }; pollingIntervalMs: { type: string; }; enabled: { type: string; }; credentials: { type: string; }; providerConfig: { type: string; }; fieldMappings: { type: string; }; lastSyncAt: { type: string; format: string; maxLength: number; }; lastSyncError: { type: string; }; lastSyncItemCount: { type: string; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; conversations: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; title: { type: string; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; userId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; provider: { type: string; enum: string[]; }; model: { type: string; }; settings: { type: string; properties: { systemPrompt: { type: string; }; temperature: { type: string; minimum: number; maximum: number; }; maxTokens: { type: string; minimum: number; }; }; required: string[]; }; metadata: { type: string; properties: { messageCount: { type: string; minimum: number; }; lastMessageAt: { type: string; format: string; }; }; required: string[]; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; messages: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; conversationId: { type: string; ref: string; maxLength: number; }; role: { type: string; enum: string[]; }; content: { type: string; }; toolCalls: { type: string; items: { type: string; properties: { id: { type: string; }; toolName: { type: string; }; arguments: { type: string; }; result: {}; status: { type: string; enum: string[]; }; }; required: string[]; }; }; createdAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; metadata: { type: string; properties: { tokens: { type: string; properties: { input: { type: string; }; output: { type: string; }; total: { type: string; }; }; }; cost: { type: string; properties: { total: { type: string; }; }; }; latency: { type: string; }; model: { type: string; }; }; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; clients: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; company: { type: string; }; email: { type: string; format: string; }; phone: { type: string; maxLength: number; }; address: { type: string; }; primaryContactId: { type: string; }; archived: { type: string; }; userId: { type: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; contacts: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; firstName: { type: string; }; lastName: { type: string; }; email: { type: string; format: string; }; phone: { type: string; maxLength: number; }; company: { type: string; }; title: { type: string; }; address: { type: string; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; opportunities: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; completed: { type: string; }; clientId: { type: string; maxLength: number; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; goals: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; priority: { type: string; enum: string[]; }; dueDate: { type: string; format: string; }; completed: { type: string; }; archived: { type: string; }; extended: { type: string; }; metrics: { type: string; items: { type: string; properties: { id: { type: string; }; name: { type: string; }; type: { type: string; enum: string[]; }; targetValue: { type: string; }; currentValue: { type: string; }; unit: { type: string; }; startValue: { type: string; }; trend: { type: string; enum: string[]; }; }; }; }; targetDate: { type: string; format: string; maxLength: number; }; progressMode: { type: string; enum: string[]; }; currentProgress: { type: string; minimum: number; maximum: number; }; status: { type: string; enum: string[]; maxLength: number; }; parentGoalId: { type: string; maxLength: number; }; category: { type: string; enum: string[]; }; workspaceId: { type: string; maxLength: number; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: Record<number, (oldDoc: Record<string, unknown>) => Record<string, unknown>>; }; flows: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; description: { type: string; }; flowType: { type: string; enum: string[]; }; nodes: { type: string; }; edges: { type: string; }; viewport: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; attributes: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; pattern: string; }; title: { type: string; maxLength: number; }; description: { type: string; maxLength: number; }; color: { type: string; pattern: string; }; entityType: { type: string; enum: string[]; maxLength: number; }; type: { type: string; enum: string[]; maxLength: number; }; sortOrder: { type: string; minimum: number; maximum: number; multipleOf: number; }; popularity: { type: string; minimum: number; maximum: number; multipleOf: number; }; metadata: { type: string; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: (string | string[])[]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; products: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; slug: { type: string; maxLength: number; }; type: { type: string; maxLength: number; enum: string[]; }; description: { type: string; }; icon: { type: string; maxLength: number; }; color: { type: string; maxLength: number; }; problemStatement: { type: string; }; valueProposition: { type: string; }; targetMarket: { type: string; items: { type: string; }; }; competitiveLandscape: { type: string; }; customerPersona: { type: string; }; kpis: { type: string; items: { type: string; }; }; currentPhase: { type: string; maxLength: number; enum: string[]; }; phaseHistory: { type: string; items: { type: string; }; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; sourceTemplateId: { type: string; maxLength: number; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: any) => any; }; }; initiatives: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; roadmapId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; description: { type: string; }; quarter: { type: string; maxLength: number; }; status: { type: string; enum: readonly string[]; maxLength: number; }; priority: { type: string; enum: readonly string[]; }; color: { type: string; maxLength: number; }; projectIds: { type: string; items: { type: string; maxLength: number; }; default: never[]; }; order: { type: string; multipleOf: number; minimum: number; maximum: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; roadmaps: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; startQuarter: { type: string; maxLength: number; }; endQuarter: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; productgoals: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; goalId: { type: string; maxLength: number; }; order: { type: string; multipleOf: number; minimum: number; maximum: number; }; isPrimary: { type: string; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: Record<string, unknown>) => { extended: {}; }; }; }; productprojects: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; role: { type: string; maxLength: number; enum: string[]; }; linkedAt: { type: string; format: string; maxLength: number; }; linkedBy: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: Record<string, unknown>) => { extended: {}; }; }; }; activities: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; entityType: { type: string; maxLength: number; enum: string[]; }; entityId: { type: string; maxLength: number; }; entityName: { type: string; maxLength: number; }; action: { type: string; maxLength: number; enum: string[]; }; changes: { type: string; }; userId: { type: string; maxLength: number; }; userName: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: Record<string, unknown>) => { extended: {}; }; }; }; teammembers: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; userName: { type: string; maxLength: number; }; userEmail: { type: string; maxLength: number; }; userAvatar: { type: string; maxLength: number; }; role: { type: string; maxLength: number; enum: string[]; }; raciAssignments: { type: string; items: { type: string; properties: { area: { type: string; maxLength: number; }; type: { type: string; enum: string[]; }; }; }; }; isAgent: { type: string; }; joinedAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: Record<string, unknown>) => { extended: {}; }; 2: (oldDoc: Record<string, unknown>) => Record<string, unknown>; 3: (oldDoc: Record<string, unknown>) => { isAgent: {}; }; 4: (oldDoc: Record<string, unknown>) => Record<string, unknown>; }; }; processes: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; maxLength: number; }; title: { type: string; }; description: { type: string; }; version: { type: string; maxLength: number; }; status: { type: string; maxLength: number; enum: string[]; }; category: { type: string; maxLength: number; enum: string[]; }; stepIds: { type: string; items: { type: string; }; }; startStepId: { type: string; maxLength: number; }; inputSchema: { type: string; }; outputSchema: { type: string; }; trigger: { type: string; }; statistics: { type: string; }; archived: { type: string; }; tagIds: { type: string; items: { type: string; }; }; documentId: { type: string; maxLength: number; }; flowId: { type: string; maxLength: number; }; maxSubprocessDepth: { type: string; }; executorAgentId: { type: string; maxLength: number; }; executionConfig: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; processsteps: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; processId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; maxLength: number; }; title: { type: string; }; description: { type: string; }; stepType: { type: string; enum: string[]; }; order: { type: string; multipleOf: number; minimum: number; maximum: number; }; action: { type: string; }; conditions: { type: string; items: { type: string; }; }; nextStepId: { type: string; maxLength: number; }; outputs: { type: string; items: { type: string; }; }; inputs: { type: string; }; position: { type: string; }; style: { type: string; }; icon: { type: string; maxLength: number; }; optional: { type: string; }; enabled: { type: string; }; archived: { type: string; }; estimatedDurationMinutes: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; processexecutions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; processId: { type: string; maxLength: number; }; processVersion: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; status: { type: string; maxLength: number; enum: string[]; }; startedAt: { type: string; format: string; maxLength: number; }; completedAt: { type: string; format: string; maxLength: number; }; durationMs: { type: string; }; inputs: { type: string; }; outputs: { type: string; }; currentStepId: { type: string; maxLength: number; }; stepHistory: { type: string; items: { type: string; }; }; variables: { type: string; }; context: { type: string; }; error: { type: string; }; retryCount: { type: string; }; maxRetries: { type: string; }; progress: { type: string; }; correlationId: { type: string; maxLength: number; }; externalId: { type: string; maxLength: number; }; resumeAt: { type: string; format: string; maxLength: number; }; parentExecutionId: { type: string; maxLength: number; }; depth: { type: string; }; archived: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; finaccounts: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; budget_id: { type: string; maxLength: number; }; name: { type: string; }; type: { type: string; }; on_budget: { type: string; }; closed: { type: string; }; balance: { type: string; }; cleared_balance: { type: string; }; uncleared_balance: { type: string; }; last_reconciled_at: { type: string[]; }; direct_import_linked: { type: string; }; direct_import_in_error: { type: string; }; note: { type: string[]; }; transfer_payee_id: { type: string; }; debt_original_balance: { type: string[]; }; debt_interest_rates: { type: string; additionalProperties: { type: string; }; }; debt_minimum_payments: { type: string; additionalProperties: { type: string; }; }; debt_escrow_amounts: { type: string; additionalProperties: { type: string; }; }; is_deleted: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; finbudgets: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; keyCompression: boolean; additionalProperties: boolean; encrypted: never[]; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; last_modified_on: { type: string; format: string; }; first_month: { type: string; }; last_month: { type: string; }; trashed: { type: string; }; date_format: { type: string; properties: { format: { type: string; }; }; }; currency_format: { type: string; properties: { iso_code: { type: string; }; example_format: { type: string; }; decimal_digits: { type: string; }; decimal_separator: { type: string; }; symbol_first: { type: string; }; }; }; accounts: { type: string; items: { type: string; properties: { id: { type: string; }; name: { type: string; }; type: { type: string; }; balance: { type: string; }; }; }; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; fincategories: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; category_group_id: { type: string; }; category_group_name: { type: string[]; }; name: { type: string; }; hidden: { type: string; }; original_category_group_id: { type: string[]; }; note: { type: string[]; }; budgeted: { type: string; }; activity: { type: string; }; balance: { type: string; }; goal_type: { type: string[]; enum: (string | null)[]; }; goal_needs_whole_amount: { type: string[]; }; goal_day: { type: string[]; }; goal_cadence: { type: string[]; }; goal_cadence_frequency: { type: string[]; }; goal_creation_month: { type: string[]; }; goal_target: { type: string[]; }; goal_target_month: { type: string[]; }; goal_percentage_complete: { type: string[]; }; goal_months_to_budget: { type: string[]; }; goal_under_funded: { type: string[]; }; goal_overall_funded: { type: string[]; }; goal_overall_left: { type: string[]; }; goal_snoozed_at: { type: string[]; format: string; }; is_deleted: { type: string; }; isDefault: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; fintransactions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; account_id: { type: string; }; account_name: { type: string; }; date: { type: string; }; amount: { type: string; }; memo: { type: string[]; }; cleared: { type: string; enum: string[]; }; debt_transaction_type: { type: string[]; }; approved: { type: string; }; flag_color: { type: string[]; }; flag_name: { type: string[]; }; payee_id: { type: string[]; }; payee_name: { type: string[]; }; category_id: { type: string[]; }; category_name: { type: string[]; }; subtransactions: { type: string; items: { type: string; properties: { id: { type: string; }; transaction_id: { type: string; }; amount: { type: string; }; memo: { type: string[]; }; payee_id: { type: string[]; }; payee_name: { type: string[]; }; category_id: { type: string[]; }; category_name: { type: string[]; }; transfer_account_id: { type: string[]; }; transfer_transaction_id: { type: string[]; }; deleted: { type: string; }; }; }; }; transfer_account_id: { type: string[]; }; transfer_transaction_id: { type: string[]; }; matched_transaction_id: { type: string[]; }; import_id: { type: string[]; }; import_payee_name: { type: string[]; }; import_payee_name_original: { type: string[]; }; is_deleted: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; finscheduledtransactions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; date_first: { type: string; format: string; }; date_next: { type: string; format: string; }; frequency: { type: string; enum: string[]; }; amount: { type: string; }; memo: { type: string[]; }; flag_color: { type: string[]; enum: (string | null)[]; }; flag_name: { type: string[]; }; account_id: { type: string; }; payee_id: { type: string[]; }; category_id: { type: string[]; }; transfer_account_id: { type: string[]; }; is_deleted: { type: string; }; account_name: { type: string; }; payee_name: { type: string[]; }; category_name: { type: string[]; }; subtransactions: { type: string; items: { type: string; properties: { id: { type: string; }; transaction_id: { type: string; }; amount: { type: string; }; memo: { type: string[]; }; payee_id: { type: string[]; }; payee_name: { type: string[]; }; category_id: { type: string[]; }; category_name: { type: string[]; }; transfer_account_id: { type: string[]; }; transfer_transaction_id: { type: string[]; }; deleted: { type: string; }; }; }; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; finincomestatements: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; description: { type: string; }; budgetId: { type: string; maxLength: number; }; period: { type: string; properties: { type: { type: string; enum: string[]; }; startDate: { type: string; }; endDate: { type: string; }; offset: { type: string; }; }; required: string[]; }; linkedStatements: { type: string; items: { type: string; properties: { statementId: { type: string; }; workspaceId: { type: string; }; displayName: { type: string; }; displayAs: { type: string; enum: string[]; }; }; required: string[]; }; }; incomeCategories: { type: string; items: { type: string; }; }; expenseCategories: { type: string; items: { type: string; }; }; assetAccounts: { type: string; items: { type: string; }; }; liabilityAccounts: { type: string; items: { type: string; }; }; isDefault: { type: string; }; isArchived: { type: string; }; status: { type: string; enum: string[]; }; wizardStep: { type: string; }; wizardCompletedSteps: { type: string; items: { type: string; }; }; ynabBudgetId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; orgthemes: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; name: { type: string; }; config: { type: string; }; isDefault: { type: string; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; createdBy: { type: string; maxLength: number; }; updatedBy: { type: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; }>, "collections">): IRxDBClient<{ projects: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; startAt: { type: string; format: string; maxLength: number; }; startedAt: { type: string; format: string; maxLength: number; }; dueAt: { type: string; format: string; maxLength: number; }; completedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; completed: { type: string; }; goalId: { type: string; maxLength: number; }; archived: { type: string; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; codebaseId: { type: string; maxLength: number; }; sourceTemplateId: { type: string; maxLength: number; }; timeBudgetHours: { type: string; }; categoryId: { type: string; }; tagIds: { type: string; items: { type: string; }; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; milestones: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; startAt: { type: string; format: string; maxLength: number; }; startedAt: { type: string; format: string; maxLength: number; }; dueAt: { type: string; format: string; maxLength: number; }; completedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; completed: { type: string; }; projectId: { type: string; maxLength: number; }; goalId: { type: string; maxLength: number; }; archived: { type: string; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; timeBudgetHours: { type: string; }; categoryId: { type: string; }; tagIds: { type: string; items: { type: string; }; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; tasks: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; dueAt: { type: string; format: string; }; startAt: { type: string; format: string; }; startedAt: { type: string; format: string; }; completedAt: { type: string; format: string; }; status: { type: string; enum: string[]; }; type: { type: string; enum: string[]; }; completed: { type: string; }; workspaceId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; milestoneId: { type: string; maxLength: number; }; parentTaskId: { type: string; maxLength: number; }; archived: { type: string; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; timeBudgetHours: { type: string; }; isRecurring: { type: string; }; recurrenceRule: { type: string; }; parentRecurrenceId: { type: string; }; recurrenceInstanceDate: { type: string; format: string; }; categoryId: { type: string; }; tagIds: { type: string; items: { type: string; }; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; discussions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; entityType: { type: string; maxLength: number; }; entityId: { type: string; maxLength: number; }; content: { type: string; }; contentHtml: { type: string; }; parentId: { type: string; maxLength: number; }; threadDepth: { type: string; minimum: number; maximum: number; }; isEdited: { type: string; }; editedAt: { type: string; format: string; }; isDeleted: { type: string; }; deletedAt: { type: string; format: string; }; userName: { type: string; }; userAvatar: { type: string; }; attachments: { type: string; items: { type: string; properties: { id: { type: string; }; name: { type: string; }; size: { type: string; }; type: { type: string; }; url: { type: string; }; uploadedAt: { type: string; format: string; }; status: { type: string; enum: string[]; }; thumbnailUrl: { type: string; }; checksum: { type: string; }; }; required: string[]; }; }; metadata: { type: string; additionalProperties: boolean; }; extended: { type: string; }; mentions: { type: string; items: { type: string; properties: { type: { type: string; enum: string[]; }; identifier: { type: string; maxLength: number; }; teamMemberId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; position: { type: string; minimum: number; }; }; required: string[]; }; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: { 1: (oldDoc: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a; 2: (oldDoc: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a; 3: (oldDoc: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a; 4: (oldDoc: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => { mentions: { type: "agent"; identifier: string; position: number; }[]; id: string; orgId: string; workspaceId: string; userId: string; createdAt: string; updatedAt: string; entityType: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").b; entityId: string; content: string; contentHtml?: string; parentId?: string; threadDepth: number; isEdited: boolean; editedAt?: string; isDeleted: boolean; deletedAt?: string; attachments?: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").A[]; userName: string; userAvatar?: string; metadata?: Record<string, any>; extended?: Record<string, any>; }; }; hooks: { preInsert: (this: any, docData: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => Promise<import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a>; preSave: (this: any, docData: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a, oldDocData: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => Promise<import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a>; }; }; logs: { name: string; schema: { version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; message: { type: string; }; level: { type: string; maxLength: number; }; source: { type: string; maxLength: number; }; timestamp: { type: string; maxLength: number; }; entityType: { type: string; maxLength: number; }; entityId: { type: string; maxLength: number; }; category: { type: string; maxLength: number; }; metadata: { type: string; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; parentLogId: { type: string; maxLength: number; }; trashed: { type: string; }; createdAt: { type: string; maxLength: number; }; updatedAt: { type: string; maxLength: number; }; }; required: string[]; }; migrationStrategies: {}; }; timeentries: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; start: { type: string; format: string; }; end: { type: string; format: string; }; duration: { type: string; }; taskId: { type: string; maxLength: number; }; archived: { type: string; }; categoryId: { type: string; }; tagIds: { type: string; items: { type: string; }; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; approvals: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; milestoneId: { type: string; maxLength: number; }; taskId: { type: string; maxLength: number; }; documentId: { type: string; maxLength: number; }; title: { type: string; }; type: { type: string; enum: string[]; }; category: { type: string; enum: string[]; }; categoryName: { type: string; }; status: { type: string; enum: string[]; maxLength: number; }; documentType: { type: string; }; documentContent: { type: string; }; response: { type: string; }; annotations: { type: string; }; comments: { type: string; items: { type: string; }; }; respondedAt: { type: string; format: string; }; approverId: { type: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: any) => any; 2: (oldDoc: any) => any; }; }; templates: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; templateType: { type: string; enum: string[]; maxLength: number; }; name: { type: string; }; content: { type: string; }; version: { type: string; maxLength: number; }; isDefault: { type: string; }; metadata: { type: string; }; data: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; documents: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; milestoneId: { type: string; maxLength: number; }; taskId: { type: string; maxLength: number; }; codebaseId: { type: string; maxLength: number; }; documentType: { type: string; enum: string[]; maxLength: number; }; title: { type: string; }; content: { type: string; }; storage: { type: string; properties: { s3Key: { type: string; }; s3Bucket: { type: string; }; contentHash: { type: string; }; fileSize: { type: string; }; mimeType: { type: string; }; documentStoreId: { type: string; }; ragJobId: { type: string; }; }; }; documentVersion: { type: string; }; approved: { type: string; }; approvedAt: { type: string; format: string; maxLength: number; }; approvedBy: { type: string; maxLength: number; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: { 1: (oldDoc: any) => any; 2: (oldDoc: any) => any; 3: (oldDoc: any) => any; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; workspaces: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; title: { type: string; }; description: { type: string; }; tags: { type: string; items: { type: string; }; }; status: { type: string; enum: string[]; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archivedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; codebases: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; title: { type: string; }; description: { type: string; }; repository: { type: string; properties: { url: { type: string; }; defaultBranch: { type: string; maxLength: number; }; provider: { type: string; enum: string[]; maxLength: number; }; organization: { type: string; maxLength: number; }; repositoryName: { type: string; maxLength: number; }; privateRepo: { type: string; }; accessToken: { type: string; }; sshKey: { type: string; }; }; required: string[]; }; environment: { type: string; properties: { nodeVersion: { type: string; maxLength: number; }; packageManager: { type: string; enum: string[]; maxLength: number; }; workingDirectory: { type: string; maxLength: number; }; setupCommands: { type: string; items: { type: string; }; }; testCommands: { type: string; items: { type: string; }; }; buildCommands: { type: string; items: { type: string; }; }; environmentVariables: { type: string; }; }; required: string[]; }; deployment: { type: string; properties: { platform: { type: string; enum: string[]; maxLength: number; }; productionUrl: { type: string; }; stagingUrl: { type: string; }; previewUrlPattern: { type: string; }; deployCommand: { type: string; }; deployBranch: { type: string; maxLength: number; }; cicdProvider: { type: string; enum: string[]; maxLength: number; }; cicdConfigPath: { type: string; maxLength: number; }; platformConfig: { type: string; }; }; }; agentWorkflow: { type: string; properties: { branchStrategy: { type: string; enum: string[]; maxLength: number; }; branchPrefix: { type: string; maxLength: number; }; commitConvention: { type: string; enum: string[]; maxLength: number; }; commitTemplate: { type: string; }; requireTests: { type: string; }; requireLint: { type: string; }; createPR: { type: string; }; prTitleTemplate: { type: string; }; prDescriptionTemplate: { type: string; }; prReviewers: { type: string; items: { type: string; }; }; prLabels: { type: string; items: { type: string; }; }; }; }; tags: { type: string; items: { type: string; }; }; status: { type: string; enum: string[]; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archivedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; extended: { type: string; }; metadata: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; sessions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; codebaseId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; milestoneId: { type: string; maxLength: number; }; taskId: { type: string; maxLength: number; }; sessionType: { type: string; enum: string[]; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; expiresAt: { type: string; format: string; }; archived: { type: string; }; context: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; orgs: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; description: { type: string; }; archived: { type: string; }; metadata: { type: string; additionalProperties: boolean; properties: { colorSchemeIndex: { type: string; }; }; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; users: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; email: { type: string; format: string; maxLength: number; }; authUserId: { type: string; }; timezone: { type: string; }; archived: { type: string; }; orgId: { type: string; maxLength: number; }; onboarded: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; variables: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; codebaseId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; context: { type: string; maxLength: number; }; variables: { type: string; }; metadata: { type: string; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: (string | string[])[]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; syncconfigs: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; providerId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; description: { type: string; }; targetProjectId: { type: string; maxLength: number; }; targetMilestoneId: { type: string; maxLength: number; }; direction: { type: string; enum: string[]; }; pollingIntervalMs: { type: string; }; enabled: { type: string; }; credentials: { type: string; }; providerConfig: { type: string; }; fieldMappings: { type: string; }; lastSyncAt: { type: string; format: string; maxLength: number; }; lastSyncError: { type: string; }; lastSyncItemCount: { type: string; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; conversations: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; title: { type: string; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; userId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; provider: { type: string; enum: string[]; }; model: { type: string; }; settings: { type: string; properties: { systemPrompt: { type: string; }; temperature: { type: string; minimum: number; maximum: number; }; maxTokens: { type: string; minimum: number; }; }; required: string[]; }; metadata: { type: string; properties: { messageCount: { type: string; minimum: number; }; lastMessageAt: { type: string; format: string; }; }; required: string[]; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; messages: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; conversationId: { type: string; ref: string; maxLength: number; }; role: { type: string; enum: string[]; }; content: { type: string; }; toolCalls: { type: string; items: { type: string; properties: { id: { type: string; }; toolName: { type: string; }; arguments: { type: string; }; result: {}; status: { type: string; enum: string[]; }; }; required: string[]; }; }; createdAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; metadata: { type: string; properties: { tokens: { type: string; properties: { input: { type: string; }; output: { type: string; }; total: { type: string; }; }; }; cost: { type: string; properties: { total: { type: string; }; }; }; latency: { type: string; }; model: { type: string; }; }; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; clients: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; company: { type: string; }; email: { type: string; format: string; }; phone: { type: string; maxLength: number; }; address: { type: string; }; primaryContactId: { type: string; }; archived: { type: string; }; userId: { type: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; contacts: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; firstName: { type: string; }; lastName: { type: string; }; email: { type: string; format: string; }; phone: { type: string; maxLength: number; }; company: { type: string; }; title: { type: string; }; address: { type: string; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; opportunities: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; completed: { type: string; }; clientId: { type: string; maxLength: number; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; goals: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; priority: { type: string; enum: string[]; }; dueDate: { type: string; format: string; }; completed: { type: string; }; archived: { type: string; }; extended: { type: string; }; metrics: { type: string; items: { type: string; properties: { id: { type: string; }; name: { type: string; }; type: { type: string; enum: string[]; }; targetValue: { type: string; }; currentValue: { type: string; }; unit: { type: string; }; startValue: { type: string; }; trend: { type: string; enum: string[]; }; }; }; }; targetDate: { type: string; format: string; maxLength: number; }; progressMode: { type: string; enum: string[]; }; currentProgress: { type: string; minimum: number; maximum: number; }; status: { type: string; enum: string[]; maxLength: number; }; parentGoalId: { type: string; maxLength: number; }; category: { type: string; enum: string[]; }; workspaceId: { type: string; maxLength: number; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: Record<number, (oldDoc: Record<string, unknown>) => Record<string, unknown>>; }; flows: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; description: { type: string; }; flowType: { type: string; enum: string[]; }; nodes: { type: string; }; edges: { type: string; }; viewport: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; attributes: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; pattern: string; }; title: { type: string; maxLength: number; }; description: { type: string; maxLength: number; }; color: { type: string; pattern: string; }; entityType: { type: string; enum: string[]; maxLength: number; }; type: { type: string; enum: string[]; maxLength: number; }; sortOrder: { type: string; minimum: number; maximum: number; multipleOf: number; }; popularity: { type: string; minimum: number; maximum: number; multipleOf: number; }; metadata: { type: string; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: (string | string[])[]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; products: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; slug: { type: string; maxLength: number; }; type: { type: string; maxLength: number; enum: string[]; }; description: { type: string; }; icon: { type: string; maxLength: number; }; color: { type: string; maxLength: number; }; problemStatement: { type: string; }; valueProposition: { type: string; }; targetMarket: { type: string; items: { type: string; }; }; competitiveLandscape: { type: string; }; customerPersona: { type: string; }; kpis: { type: string; items: { type: string; }; }; currentPhase: { type: string; maxLength: number; enum: string[]; }; phaseHistory: { type: string; items: { type: string; }; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; sourceTemplateId: { type: string; maxLength: number; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: any) => any; }; }; initiatives: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; roadmapId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; description: { type: string; }; quarter: { type: string; maxLength: number; }; status: { type: string; enum: readonly string[]; maxLength: number; }; priority: { type: string; enum: readonly string[]; }; color: { type: string; maxLength: number; }; projectIds: { type: string; items: { type: string; maxLength: number; }; default: never[]; }; order: { type: string; multipleOf: number; minimum: number; maximum: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; roadmaps: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; startQuarter: { type: string; maxLength: number; }; endQuarter: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; productgoals: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; goalId: { type: string; maxLength: number; }; order: { type: string; multipleOf: number; minimum: number; maximum: number; }; isPrimary: { type: string; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: Record<string, unknown>) => { extended: {}; }; }; }; productprojects: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; role: { type: string; maxLength: number; enum: string[]; }; linkedAt: { type: string; format: string; maxLength: number; }; linkedBy: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: Record<string, unknown>) => { extended: {}; }; }; }; activities: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; entityType: { type: string; maxLength: number; enum: string[]; }; entityId: { type: string; maxLength: number; }; entityName: { type: string; maxLength: number; }; action: { type: string; maxLength: number; enum: string[]; }; changes: { type: string; }; userId: { type: string; maxLength: number; }; userName: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: Record<string, unknown>) => { extended: {}; }; }; }; teammembers: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; userName: { type: string; maxLength: number; }; userEmail: { type: string; maxLength: number; }; userAvatar: { type: string; maxLength: number; }; role: { type: string; maxLength: number; enum: string[]; }; raciAssignments: { type: string; items: { type: string; properties: { area: { type: string; maxLength: number; }; type: { type: string; enum: string[]; }; }; }; }; isAgent: { type: string; }; joinedAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: Record<string, unknown>) => { extended: {}; }; 2: (oldDoc: Record<string, unknown>) => Record<string, unknown>; 3: (oldDoc: Record<string, unknown>) => { isAgent: {}; }; 4: (oldDoc: Record<string, unknown>) => Record<string, unknown>; }; }; processes: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; maxLength: number; }; title: { type: string; }; description: { type: string; }; version: { type: string; maxLength: number; }; status: { type: string; maxLength: number; enum: string[]; }; category: { type: string; maxLength: number; enum: string[]; }; stepIds: { type: string; items: { type: string; }; }; startStepId: { type: string; maxLength: number; }; inputSchema: { type: string; }; outputSchema: { type: string; }; trigger: { type: string; }; statistics: { type: string; }; archived: { type: string; }; tagIds: { type: string; items: { type: string; }; }; documentId: { type: string; maxLength: number; }; flowId: { type: string; maxLength: number; }; maxSubprocessDepth: { type: string; }; executorAgentId: { type: string; maxLength: number; }; executionConfig: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; processsteps: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; processId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; maxLength: number; }; title: { type: string; }; description: { type: string; }; stepType: { type: string; enum: string[]; }; order: { type: string; multipleOf: number; minimum: number; maximum: number; }; action: { type: string; }; conditions: { type: string; items: { type: string; }; }; nextStepId: { type: string; maxLength: number; }; outputs: { type: string; items: { type: string; }; }; inputs: { type: string; }; position: { type: string; }; style: { type: string; }; icon: { type: string; maxLength: number; }; optional: { type: string; }; enabled: { type: string; }; archived: { type: string; }; estimatedDurationMinutes: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; processexecutions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; processId: { type: string; maxLength: number; }; processVersion: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; status: { type: string; maxLength: number; enum: string[]; }; startedAt: { type: string; format: string; maxLength: number; }; completedAt: { type: string; format: string; maxLength: number; }; durationMs: { type: string; }; inputs: { type: string; }; outputs: { type: string; }; currentStepId: { type: string; maxLength: number; }; stepHistory: { type: string; items: { type: string; }; }; variables: { type: string; }; context: { type: string; }; error: { type: string; }; retryCount: { type: string; }; maxRetries: { type: string; }; progress: { type: string; }; correlationId: { type: string; maxLength: number; }; externalId: { type: string; maxLength: number; }; resumeAt: { type: string; format: string; maxLength: number; }; parentExecutionId: { type: string; maxLength: number; }; depth: { type: string; }; archived: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; finaccounts: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; budget_id: { type: string; maxLength: number; }; name: { type: string; }; type: { type: string; }; on_budget: { type: string; }; closed: { type: string; }; balance: { type: string; }; cleared_balance: { type: string; }; uncleared_balance: { type: string; }; last_reconciled_at: { type: string[]; }; direct_import_linked: { type: string; }; direct_import_in_error: { type: string; }; note: { type: string[]; }; transfer_payee_id: { type: string; }; debt_original_balance: { type: string[]; }; debt_interest_rates: { type: string; additionalProperties: { type: string; }; }; debt_minimum_payments: { type: string; additionalProperties: { type: string; }; }; debt_escrow_amounts: { type: string; additionalProperties: { type: string; }; }; is_deleted: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; finbudgets: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; keyCompression: boolean; additionalProperties: boolean; encrypted: never[]; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; last_modified_on: { type: string; format: string; }; first_month: { type: string; }; last_month: { type: string; }; trashed: { type: string; }; date_format: { type: string; properties: { format: { type: string; }; }; }; currency_format: { type: string; properties: { iso_code: { type: string; }; example_format: { type: string; }; decimal_digits: { type: string; }; decimal_separator: { type: string; }; symbol_first: { type: string; }; }; }; accounts: { type: string; items: { type: string; properties: { id: { type: string; }; name: { type: string; }; type: { type: string; }; balance: { type: string; }; }; }; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; fincategories: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; category_group_id: { type: string; }; category_group_name: { type: string[]; }; name: { type: string; }; hidden: { type: string; }; original_category_group_id: { type: string[]; }; note: { type: string[]; }; budgeted: { type: string; }; activity: { type: string; }; balance: { type: string; }; goal_type: { type: string[]; enum: (string | null)[]; }; goal_needs_whole_amount: { type: string[]; }; goal_day: { type: string[]; }; goal_cadence: { type: string[]; }; goal_cadence_frequency: { type: string[]; }; goal_creation_month: { type: string[]; }; goal_target: { type: string[]; }; goal_target_month: { type: string[]; }; goal_percentage_complete: { type: string[]; }; goal_months_to_budget: { type: string[]; }; goal_under_funded: { type: string[]; }; goal_overall_funded: { type: string[]; }; goal_overall_left: { type: string[]; }; goal_snoozed_at: { type: string[]; format: string; }; is_deleted: { type: string; }; isDefault: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; fintransactions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; account_id: { type: string; }; account_name: { type: string; }; date: { type: string; }; amount: { type: string; }; memo: { type: string[]; }; cleared: { type: string; enum: string[]; }; debt_transaction_type: { type: string[]; }; approved: { type: string; }; flag_color: { type: string[]; }; flag_name: { type: string[]; }; payee_id: { type: string[]; }; payee_name: { type: string[]; }; category_id: { type: string[]; }; category_name: { type: string[]; }; subtransactions: { type: string; items: { type: string; properties: { id: { type: string; }; transaction_id: { type: string; }; amount: { type: string; }; memo: { type: string[]; }; payee_id: { type: string[]; }; payee_name: { type: string[]; }; category_id: { type: string[]; }; category_name: { type: string[]; }; transfer_account_id: { type: string[]; }; transfer_transaction_id: { type: string[]; }; deleted: { type: string; }; }; }; }; transfer_account_id: { type: string[]; }; transfer_transaction_id: { type: string[]; }; matched_transaction_id: { type: string[]; }; import_id: { type: string[]; }; import_payee_name: { type: string[]; }; import_payee_name_original: { type: string[]; }; is_deleted: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; finscheduledtransactions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; date_first: { type: string; format: string; }; date_next: { type: string; format: string; }; frequency: { type: string; enum: string[]; }; amount: { type: string; }; memo: { type: string[]; }; flag_color: { type: string[]; enum: (string | null)[]; }; flag_name: { type: string[]; }; account_id: { type: string; }; payee_id: { type: string[]; }; category_id: { type: string[]; }; transfer_account_id: { type: string[]; }; is_deleted: { type: string; }; account_name: { type: string; }; payee_name: { type: string[]; }; category_name: { type: string[]; }; subtransactions: { type: string; items: { type: string; properties: { id: { type: string; }; transaction_id: { type: string; }; amount: { type: string; }; memo: { type: string[]; }; payee_id: { type: string[]; }; payee_name: { type: string[]; }; category_id: { type: string[]; }; category_name: { type: string[]; }; transfer_account_id: { type: string[]; }; transfer_transaction_id: { type: string[]; }; deleted: { type: string; }; }; }; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; finincomestatements: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; description: { type: string; }; budgetId: { type: string; maxLength: number; }; period: { type: string; properties: { type: { type: string; enum: string[]; }; startDate: { type: string; }; endDate: { type: string; }; offset: { type: string; }; }; required: string[]; }; linkedStatements: { type: string; items: { type: string; properties: { statementId: { type: string; }; workspaceId: { type: string; }; displayName: { type: string; }; displayAs: { type: string; enum: string[]; }; }; required: string[]; }; }; incomeCategories: { type: string; items: { type: string; }; }; expenseCategories: { type: string; items: { type: string; }; }; assetAccounts: { type: string; items: { type: string; }; }; liabilityAccounts: { type: string; items: { type: string; }; }; isDefault: { type: string; }; isArchived: { type: string; }; status: { type: string; enum: string[]; }; wizardStep: { type: string; }; wizardCompletedSteps: { type: string; items: { type: string; }; }; ynabBudgetId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; orgthemes: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; name: { type: string; }; config: { type: string; }; isDefault: { type: string; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; createdBy: { type: string; maxLength: number; }; updatedBy: { type: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; }>
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
config | Omit<ClientConfig<{ projects: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; startAt: { type: string; format: string; maxLength: number; }; startedAt: { type: string; format: string; maxLength: number; }; dueAt: { type: string; format: string; maxLength: number; }; completedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; completed: { type: string; }; goalId: { type: string; maxLength: number; }; archived: { type: string; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; codebaseId: { type: string; maxLength: number; }; sourceTemplateId: { type: string; maxLength: number; }; timeBudgetHours: { type: string; }; categoryId: { type: string; }; tagIds: { type: string; items: { type: string; }; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; milestones: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; startAt: { type: string; format: string; maxLength: number; }; startedAt: { type: string; format: string; maxLength: number; }; dueAt: { type: string; format: string; maxLength: number; }; completedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; completed: { type: string; }; projectId: { type: string; maxLength: number; }; goalId: { type: string; maxLength: number; }; archived: { type: string; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; timeBudgetHours: { type: string; }; categoryId: { type: string; }; tagIds: { type: string; items: { type: string; }; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; tasks: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; dueAt: { type: string; format: string; }; startAt: { type: string; format: string; }; startedAt: { type: string; format: string; }; completedAt: { type: string; format: string; }; status: { type: string; enum: string[]; }; type: { type: string; enum: string[]; }; completed: { type: string; }; workspaceId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; milestoneId: { type: string; maxLength: number; }; parentTaskId: { type: string; maxLength: number; }; archived: { type: string; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; timeBudgetHours: { type: string; }; isRecurring: { type: string; }; recurrenceRule: { type: string; }; parentRecurrenceId: { type: string; }; recurrenceInstanceDate: { type: string; format: string; }; categoryId: { type: string; }; tagIds: { type: string; items: { type: string; }; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; discussions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; entityType: { type: string; maxLength: number; }; entityId: { type: string; maxLength: number; }; content: { type: string; }; contentHtml: { type: string; }; parentId: { type: string; maxLength: number; }; threadDepth: { type: string; minimum: number; maximum: number; }; isEdited: { type: string; }; editedAt: { type: string; format: string; }; isDeleted: { type: string; }; deletedAt: { type: string; format: string; }; userName: { type: string; }; userAvatar: { type: string; }; attachments: { type: string; items: { type: string; properties: { id: { type: string; }; name: { type: string; }; size: { type: string; }; type: { type: string; }; url: { type: string; }; uploadedAt: { type: string; format: string; }; status: { type: string; enum: string[]; }; thumbnailUrl: { type: string; }; checksum: { type: string; }; }; required: string[]; }; }; metadata: { type: string; additionalProperties: boolean; }; extended: { type: string; }; mentions: { type: string; items: { type: string; properties: { type: { type: string; enum: string[]; }; identifier: { type: string; maxLength: number; }; teamMemberId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; position: { type: string; minimum: number; }; }; required: string[]; }; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: { 1: (oldDoc: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a; 2: (oldDoc: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a; 3: (oldDoc: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a; 4: (oldDoc: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => { mentions: { type: "agent"; identifier: string; position: number; }[]; id: string; orgId: string; workspaceId: string; userId: string; createdAt: string; updatedAt: string; entityType: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").b; entityId: string; content: string; contentHtml?: string; parentId?: string; threadDepth: number; isEdited: boolean; editedAt?: string; isDeleted: boolean; deletedAt?: string; attachments?: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").A[]; userName: string; userAvatar?: string; metadata?: Record<string, any>; extended?: Record<string, any>; }; }; hooks: { preInsert: (this: any, docData: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => Promise<import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a>; preSave: (this: any, docData: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a, oldDocData: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => Promise<import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a>; }; }; logs: { name: string; schema: { version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; message: { type: string; }; level: { type: string; maxLength: number; }; source: { type: string; maxLength: number; }; timestamp: { type: string; maxLength: number; }; entityType: { type: string; maxLength: number; }; entityId: { type: string; maxLength: number; }; category: { type: string; maxLength: number; }; metadata: { type: string; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; parentLogId: { type: string; maxLength: number; }; trashed: { type: string; }; createdAt: { type: string; maxLength: number; }; updatedAt: { type: string; maxLength: number; }; }; required: string[]; }; migrationStrategies: {}; }; timeentries: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; start: { type: string; format: string; }; end: { type: string; format: string; }; duration: { type: string; }; taskId: { type: string; maxLength: number; }; archived: { type: string; }; categoryId: { type: string; }; tagIds: { type: string; items: { type: string; }; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; approvals: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; milestoneId: { type: string; maxLength: number; }; taskId: { type: string; maxLength: number; }; documentId: { type: string; maxLength: number; }; title: { type: string; }; type: { type: string; enum: string[]; }; category: { type: string; enum: string[]; }; categoryName: { type: string; }; status: { type: string; enum: string[]; maxLength: number; }; documentType: { type: string; }; documentContent: { type: string; }; response: { type: string; }; annotations: { type: string; }; comments: { type: string; items: { type: string; }; }; respondedAt: { type: string; format: string; }; approverId: { type: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: any) => any; 2: (oldDoc: any) => any; }; }; templates: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; templateType: { type: string; enum: string[]; maxLength: number; }; name: { type: string; }; content: { type: string; }; version: { type: string; maxLength: number; }; isDefault: { type: string; }; metadata: { type: string; }; data: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; documents: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; milestoneId: { type: string; maxLength: number; }; taskId: { type: string; maxLength: number; }; codebaseId: { type: string; maxLength: number; }; documentType: { type: string; enum: string[]; maxLength: number; }; title: { type: string; }; content: { type: string; }; storage: { type: string; properties: { s3Key: { type: string; }; s3Bucket: { type: string; }; contentHash: { type: string; }; fileSize: { type: string; }; mimeType: { type: string; }; documentStoreId: { type: string; }; ragJobId: { type: string; }; }; }; documentVersion: { type: string; }; approved: { type: string; }; approvedAt: { type: string; format: string; maxLength: number; }; approvedBy: { type: string; maxLength: number; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: { 1: (oldDoc: any) => any; 2: (oldDoc: any) => any; 3: (oldDoc: any) => any; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; workspaces: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; title: { type: string; }; description: { type: string; }; tags: { type: string; items: { type: string; }; }; status: { type: string; enum: string[]; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archivedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; codebases: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; title: { type: string; }; description: { type: string; }; repository: { type: string; properties: { url: { type: string; }; defaultBranch: { type: string; maxLength: number; }; provider: { type: string; enum: string[]; maxLength: number; }; organization: { type: string; maxLength: number; }; repositoryName: { type: string; maxLength: number; }; privateRepo: { type: string; }; accessToken: { type: string; }; sshKey: { type: string; }; }; required: string[]; }; environment: { type: string; properties: { nodeVersion: { type: string; maxLength: number; }; packageManager: { type: string; enum: string[]; maxLength: number; }; workingDirectory: { type: string; maxLength: number; }; setupCommands: { type: string; items: { type: string; }; }; testCommands: { type: string; items: { type: string; }; }; buildCommands: { type: string; items: { type: string; }; }; environmentVariables: { type: string; }; }; required: string[]; }; deployment: { type: string; properties: { platform: { type: string; enum: string[]; maxLength: number; }; productionUrl: { type: string; }; stagingUrl: { type: string; }; previewUrlPattern: { type: string; }; deployCommand: { type: string; }; deployBranch: { type: string; maxLength: number; }; cicdProvider: { type: string; enum: string[]; maxLength: number; }; cicdConfigPath: { type: string; maxLength: number; }; platformConfig: { type: string; }; }; }; agentWorkflow: { type: string; properties: { branchStrategy: { type: string; enum: string[]; maxLength: number; }; branchPrefix: { type: string; maxLength: number; }; commitConvention: { type: string; enum: string[]; maxLength: number; }; commitTemplate: { type: string; }; requireTests: { type: string; }; requireLint: { type: string; }; createPR: { type: string; }; prTitleTemplate: { type: string; }; prDescriptionTemplate: { type: string; }; prReviewers: { type: string; items: { type: string; }; }; prLabels: { type: string; items: { type: string; }; }; }; }; tags: { type: string; items: { type: string; }; }; status: { type: string; enum: string[]; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archivedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; extended: { type: string; }; metadata: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; sessions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; codebaseId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; milestoneId: { type: string; maxLength: number; }; taskId: { type: string; maxLength: number; }; sessionType: { type: string; enum: string[]; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; expiresAt: { type: string; format: string; }; archived: { type: string; }; context: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; orgs: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; description: { type: string; }; archived: { type: string; }; metadata: { type: string; additionalProperties: boolean; properties: { colorSchemeIndex: { type: string; }; }; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; users: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; email: { type: string; format: string; maxLength: number; }; authUserId: { type: string; }; timezone: { type: string; }; archived: { type: string; }; orgId: { type: string; maxLength: number; }; onboarded: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; variables: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; codebaseId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; context: { type: string; maxLength: number; }; variables: { type: string; }; metadata: { type: string; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: (string | string[])[]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; syncconfigs: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; providerId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; description: { type: string; }; targetProjectId: { type: string; maxLength: number; }; targetMilestoneId: { type: string; maxLength: number; }; direction: { type: string; enum: string[]; }; pollingIntervalMs: { type: string; }; enabled: { type: string; }; credentials: { type: string; }; providerConfig: { type: string; }; fieldMappings: { type: string; }; lastSyncAt: { type: string; format: string; maxLength: number; }; lastSyncError: { type: string; }; lastSyncItemCount: { type: string; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; conversations: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; title: { type: string; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; userId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; provider: { type: string; enum: string[]; }; model: { type: string; }; settings: { type: string; properties: { systemPrompt: { type: string; }; temperature: { type: string; minimum: number; maximum: number; }; maxTokens: { type: string; minimum: number; }; }; required: string[]; }; metadata: { type: string; properties: { messageCount: { type: string; minimum: number; }; lastMessageAt: { type: string; format: string; }; }; required: string[]; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; messages: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; conversationId: { type: string; ref: string; maxLength: number; }; role: { type: string; enum: string[]; }; content: { type: string; }; toolCalls: { type: string; items: { type: string; properties: { id: { type: string; }; toolName: { type: string; }; arguments: { type: string; }; result: {}; status: { type: string; enum: string[]; }; }; required: string[]; }; }; createdAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; metadata: { type: string; properties: { tokens: { type: string; properties: { input: { type: string; }; output: { type: string; }; total: { type: string; }; }; }; cost: { type: string; properties: { total: { type: string; }; }; }; latency: { type: string; }; model: { type: string; }; }; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; clients: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; company: { type: string; }; email: { type: string; format: string; }; phone: { type: string; maxLength: number; }; address: { type: string; }; primaryContactId: { type: string; }; archived: { type: string; }; userId: { type: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; contacts: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; firstName: { type: string; }; lastName: { type: string; }; email: { type: string; format: string; }; phone: { type: string; maxLength: number; }; company: { type: string; }; title: { type: string; }; address: { type: string; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; opportunities: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; completed: { type: string; }; clientId: { type: string; maxLength: number; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; goals: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; priority: { type: string; enum: string[]; }; dueDate: { type: string; format: string; }; completed: { type: string; }; archived: { type: string; }; extended: { type: string; }; metrics: { type: string; items: { type: string; properties: { id: { type: string; }; name: { type: string; }; type: { type: string; enum: string[]; }; targetValue: { type: string; }; currentValue: { type: string; }; unit: { type: string; }; startValue: { type: string; }; trend: { type: string; enum: string[]; }; }; }; }; targetDate: { type: string; format: string; maxLength: number; }; progressMode: { type: string; enum: string[]; }; currentProgress: { type: string; minimum: number; maximum: number; }; status: { type: string; enum: string[]; maxLength: number; }; parentGoalId: { type: string; maxLength: number; }; category: { type: string; enum: string[]; }; workspaceId: { type: string; maxLength: number; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: Record<number, (oldDoc: Record<string, unknown>) => Record<string, unknown>>; }; flows: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; description: { type: string; }; flowType: { type: string; enum: string[]; }; nodes: { type: string; }; edges: { type: string; }; viewport: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; attributes: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; pattern: string; }; title: { type: string; maxLength: number; }; description: { type: string; maxLength: number; }; color: { type: string; pattern: string; }; entityType: { type: string; enum: string[]; maxLength: number; }; type: { type: string; enum: string[]; maxLength: number; }; sortOrder: { type: string; minimum: number; maximum: number; multipleOf: number; }; popularity: { type: string; minimum: number; maximum: number; multipleOf: number; }; metadata: { type: string; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: (string | string[])[]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; products: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; slug: { type: string; maxLength: number; }; type: { type: string; maxLength: number; enum: string[]; }; description: { type: string; }; icon: { type: string; maxLength: number; }; color: { type: string; maxLength: number; }; problemStatement: { type: string; }; valueProposition: { type: string; }; targetMarket: { type: string; items: { type: string; }; }; competitiveLandscape: { type: string; }; customerPersona: { type: string; }; kpis: { type: string; items: { type: string; }; }; currentPhase: { type: string; maxLength: number; enum: string[]; }; phaseHistory: { type: string; items: { type: string; }; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; sourceTemplateId: { type: string; maxLength: number; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: any) => any; }; }; initiatives: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; roadmapId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; description: { type: string; }; quarter: { type: string; maxLength: number; }; status: { type: string; enum: readonly string[]; maxLength: number; }; priority: { type: string; enum: readonly string[]; }; color: { type: string; maxLength: number; }; projectIds: { type: string; items: { type: string; maxLength: number; }; default: never[]; }; order: { type: string; multipleOf: number; minimum: number; maximum: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; roadmaps: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; startQuarter: { type: string; maxLength: number; }; endQuarter: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; productgoals: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; goalId: { type: string; maxLength: number; }; order: { type: string; multipleOf: number; minimum: number; maximum: number; }; isPrimary: { type: string; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: Record<string, unknown>) => { extended: {}; }; }; }; productprojects: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; role: { type: string; maxLength: number; enum: string[]; }; linkedAt: { type: string; format: string; maxLength: number; }; linkedBy: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: Record<string, unknown>) => { extended: {}; }; }; }; activities: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; entityType: { type: string; maxLength: number; enum: string[]; }; entityId: { type: string; maxLength: number; }; entityName: { type: string; maxLength: number; }; action: { type: string; maxLength: number; enum: string[]; }; changes: { type: string; }; userId: { type: string; maxLength: number; }; userName: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: Record<string, unknown>) => { extended: {}; }; }; }; teammembers: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; userName: { type: string; maxLength: number; }; userEmail: { type: string; maxLength: number; }; userAvatar: { type: string; maxLength: number; }; role: { type: string; maxLength: number; enum: string[]; }; raciAssignments: { type: string; items: { type: string; properties: { area: { type: string; maxLength: number; }; type: { type: string; enum: string[]; }; }; }; }; isAgent: { type: string; }; joinedAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: Record<string, unknown>) => { extended: {}; }; 2: (oldDoc: Record<string, unknown>) => Record<string, unknown>; 3: (oldDoc: Record<string, unknown>) => { isAgent: {}; }; 4: (oldDoc: Record<string, unknown>) => Record<string, unknown>; }; }; processes: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; maxLength: number; }; title: { type: string; }; description: { type: string; }; version: { type: string; maxLength: number; }; status: { type: string; maxLength: number; enum: string[]; }; category: { type: string; maxLength: number; enum: string[]; }; stepIds: { type: string; items: { type: string; }; }; startStepId: { type: string; maxLength: number; }; inputSchema: { type: string; }; outputSchema: { type: string; }; trigger: { type: string; }; statistics: { type: string; }; archived: { type: string; }; tagIds: { type: string; items: { type: string; }; }; documentId: { type: string; maxLength: number; }; flowId: { type: string; maxLength: number; }; maxSubprocessDepth: { type: string; }; executorAgentId: { type: string; maxLength: number; }; executionConfig: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; processsteps: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; processId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; maxLength: number; }; title: { type: string; }; description: { type: string; }; stepType: { type: string; enum: string[]; }; order: { type: string; multipleOf: number; minimum: number; maximum: number; }; action: { type: string; }; conditions: { type: string; items: { type: string; }; }; nextStepId: { type: string; maxLength: number; }; outputs: { type: string; items: { type: string; }; }; inputs: { type: string; }; position: { type: string; }; style: { type: string; }; icon: { type: string; maxLength: number; }; optional: { type: string; }; enabled: { type: string; }; archived: { type: string; }; estimatedDurationMinutes: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; processexecutions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; processId: { type: string; maxLength: number; }; processVersion: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; status: { type: string; maxLength: number; enum: string[]; }; startedAt: { type: string; format: string; maxLength: number; }; completedAt: { type: string; format: string; maxLength: number; }; durationMs: { type: string; }; inputs: { type: string; }; outputs: { type: string; }; currentStepId: { type: string; maxLength: number; }; stepHistory: { type: string; items: { type: string; }; }; variables: { type: string; }; context: { type: string; }; error: { type: string; }; retryCount: { type: string; }; maxRetries: { type: string; }; progress: { type: string; }; correlationId: { type: string; maxLength: number; }; externalId: { type: string; maxLength: number; }; resumeAt: { type: string; format: string; maxLength: number; }; parentExecutionId: { type: string; maxLength: number; }; depth: { type: string; }; archived: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; finaccounts: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; budget_id: { type: string; maxLength: number; }; name: { type: string; }; type: { type: string; }; on_budget: { type: string; }; closed: { type: string; }; balance: { type: string; }; cleared_balance: { type: string; }; uncleared_balance: { type: string; }; last_reconciled_at: { type: string[]; }; direct_import_linked: { type: string; }; direct_import_in_error: { type: string; }; note: { type: string[]; }; transfer_payee_id: { type: string; }; debt_original_balance: { type: string[]; }; debt_interest_rates: { type: string; additionalProperties: { type: string; }; }; debt_minimum_payments: { type: string; additionalProperties: { type: string; }; }; debt_escrow_amounts: { type: string; additionalProperties: { type: string; }; }; is_deleted: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; finbudgets: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; keyCompression: boolean; additionalProperties: boolean; encrypted: never[]; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; last_modified_on: { type: string; format: string; }; first_month: { type: string; }; last_month: { type: string; }; trashed: { type: string; }; date_format: { type: string; properties: { format: { type: string; }; }; }; currency_format: { type: string; properties: { iso_code: { type: string; }; example_format: { type: string; }; decimal_digits: { type: string; }; decimal_separator: { type: string; }; symbol_first: { type: string; }; }; }; accounts: { type: string; items: { type: string; properties: { id: { type: string; }; name: { type: string; }; type: { type: string; }; balance: { type: string; }; }; }; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; fincategories: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; category_group_id: { type: string; }; category_group_name: { type: string[]; }; name: { type: string; }; hidden: { type: string; }; original_category_group_id: { type: string[]; }; note: { type: string[]; }; budgeted: { type: string; }; activity: { type: string; }; balance: { type: string; }; goal_type: { type: string[]; enum: (string | null)[]; }; goal_needs_whole_amount: { type: string[]; }; goal_day: { type: string[]; }; goal_cadence: { type: string[]; }; goal_cadence_frequency: { type: string[]; }; goal_creation_month: { type: string[]; }; goal_target: { type: string[]; }; goal_target_month: { type: string[]; }; goal_percentage_complete: { type: string[]; }; goal_months_to_budget: { type: string[]; }; goal_under_funded: { type: string[]; }; goal_overall_funded: { type: string[]; }; goal_overall_left: { type: string[]; }; goal_snoozed_at: { type: string[]; format: string; }; is_deleted: { type: string; }; isDefault: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; fintransactions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; account_id: { type: string; }; account_name: { type: string; }; date: { type: string; }; amount: { type: string; }; memo: { type: string[]; }; cleared: { type: string; enum: string[]; }; debt_transaction_type: { type: string[]; }; approved: { type: string; }; flag_color: { type: string[]; }; flag_name: { type: string[]; }; payee_id: { type: string[]; }; payee_name: { type: string[]; }; category_id: { type: string[]; }; category_name: { type: string[]; }; subtransactions: { type: string; items: { type: string; properties: { id: { type: string; }; transaction_id: { type: string; }; amount: { type: string; }; memo: { type: string[]; }; payee_id: { type: string[]; }; payee_name: { type: string[]; }; category_id: { type: string[]; }; category_name: { type: string[]; }; transfer_account_id: { type: string[]; }; transfer_transaction_id: { type: string[]; }; deleted: { type: string; }; }; }; }; transfer_account_id: { type: string[]; }; transfer_transaction_id: { type: string[]; }; matched_transaction_id: { type: string[]; }; import_id: { type: string[]; }; import_payee_name: { type: string[]; }; import_payee_name_original: { type: string[]; }; is_deleted: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; finscheduledtransactions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; date_first: { type: string; format: string; }; date_next: { type: string; format: string; }; frequency: { type: string; enum: string[]; }; amount: { type: string; }; memo: { type: string[]; }; flag_color: { type: string[]; enum: (string | null)[]; }; flag_name: { type: string[]; }; account_id: { type: string; }; payee_id: { type: string[]; }; category_id: { type: string[]; }; transfer_account_id: { type: string[]; }; is_deleted: { type: string; }; account_name: { type: string; }; payee_name: { type: string[]; }; category_name: { type: string[]; }; subtransactions: { type: string; items: { type: string; properties: { id: { type: string; }; transaction_id: { type: string; }; amount: { type: string; }; memo: { type: string[]; }; payee_id: { type: string[]; }; payee_name: { type: string[]; }; category_id: { type: string[]; }; category_name: { type: string[]; }; transfer_account_id: { type: string[]; }; transfer_transaction_id: { type: string[]; }; deleted: { type: string; }; }; }; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; finincomestatements: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; description: { type: string; }; budgetId: { type: string; maxLength: number; }; period: { type: string; properties: { type: { type: string; enum: string[]; }; startDate: { type: string; }; endDate: { type: string; }; offset: { type: string; }; }; required: string[]; }; linkedStatements: { type: string; items: { type: string; properties: { statementId: { type: string; }; workspaceId: { type: string; }; displayName: { type: string; }; displayAs: { type: string; enum: string[]; }; }; required: string[]; }; }; incomeCategories: { type: string; items: { type: string; }; }; expenseCategories: { type: string; items: { type: string; }; }; assetAccounts: { type: string; items: { type: string; }; }; liabilityAccounts: { type: string; items: { type: string; }; }; isDefault: { type: string; }; isArchived: { type: string; }; status: { type: string; enum: string[]; }; wizardStep: { type: string; }; wizardCompletedSteps: { type: string; items: { type: string; }; }; ynabBudgetId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; orgthemes: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; name: { type: string; }; config: { type: string; }; isDefault: { type: string; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; createdBy: { type: string; maxLength: number; }; updatedBy: { type: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; }>, "collections"> | Yes |
Returns:
IRxDBClient<{ projects: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; startAt: { type: string; format: string; maxLength: number; }; startedAt: { type: string; format: string; maxLength: number; }; dueAt: { type: string; format: string; maxLength: number; }; completedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; completed: { type: string; }; goalId: { type: string; maxLength: number; }; archived: { type: string; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; codebaseId: { type: string; maxLength: number; }; sourceTemplateId: { type: string; maxLength: number; }; timeBudgetHours: { type: string; }; categoryId: { type: string; }; tagIds: { type: string; items: { type: string; }; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; milestones: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; startAt: { type: string; format: string; maxLength: number; }; startedAt: { type: string; format: string; maxLength: number; }; dueAt: { type: string; format: string; maxLength: number; }; completedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; completed: { type: string; }; projectId: { type: string; maxLength: number; }; goalId: { type: string; maxLength: number; }; archived: { type: string; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; timeBudgetHours: { type: string; }; categoryId: { type: string; }; tagIds: { type: string; items: { type: string; }; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; tasks: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; dueAt: { type: string; format: string; }; startAt: { type: string; format: string; }; startedAt: { type: string; format: string; }; completedAt: { type: string; format: string; }; status: { type: string; enum: string[]; }; type: { type: string; enum: string[]; }; completed: { type: string; }; workspaceId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; milestoneId: { type: string; maxLength: number; }; parentTaskId: { type: string; maxLength: number; }; archived: { type: string; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; timeBudgetHours: { type: string; }; isRecurring: { type: string; }; recurrenceRule: { type: string; }; parentRecurrenceId: { type: string; }; recurrenceInstanceDate: { type: string; format: string; }; categoryId: { type: string; }; tagIds: { type: string; items: { type: string; }; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; discussions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; entityType: { type: string; maxLength: number; }; entityId: { type: string; maxLength: number; }; content: { type: string; }; contentHtml: { type: string; }; parentId: { type: string; maxLength: number; }; threadDepth: { type: string; minimum: number; maximum: number; }; isEdited: { type: string; }; editedAt: { type: string; format: string; }; isDeleted: { type: string; }; deletedAt: { type: string; format: string; }; userName: { type: string; }; userAvatar: { type: string; }; attachments: { type: string; items: { type: string; properties: { id: { type: string; }; name: { type: string; }; size: { type: string; }; type: { type: string; }; url: { type: string; }; uploadedAt: { type: string; format: string; }; status: { type: string; enum: string[]; }; thumbnailUrl: { type: string; }; checksum: { type: string; }; }; required: string[]; }; }; metadata: { type: string; additionalProperties: boolean; }; extended: { type: string; }; mentions: { type: string; items: { type: string; properties: { type: { type: string; enum: string[]; }; identifier: { type: string; maxLength: number; }; teamMemberId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; position: { type: string; minimum: number; }; }; required: string[]; }; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: { 1: (oldDoc: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a; 2: (oldDoc: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a; 3: (oldDoc: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a; 4: (oldDoc: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => { mentions: { type: "agent"; identifier: string; position: number; }[]; id: string; orgId: string; workspaceId: string; userId: string; createdAt: string; updatedAt: string; entityType: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").b; entityId: string; content: string; contentHtml?: string; parentId?: string; threadDepth: number; isEdited: boolean; editedAt?: string; isDeleted: boolean; deletedAt?: string; attachments?: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").A[]; userName: string; userAvatar?: string; metadata?: Record<string, any>; extended?: Record<string, any>; }; }; hooks: { preInsert: (this: any, docData: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => Promise<import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a>; preSave: (this: any, docData: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a, oldDocData: import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a) => Promise<import("/Users/sthornock/code/epic/epic-flowstate/packages/db-collections/dist/Workspace-CSRvdb_x").a>; }; }; logs: { name: string; schema: { version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; message: { type: string; }; level: { type: string; maxLength: number; }; source: { type: string; maxLength: number; }; timestamp: { type: string; maxLength: number; }; entityType: { type: string; maxLength: number; }; entityId: { type: string; maxLength: number; }; category: { type: string; maxLength: number; }; metadata: { type: string; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; parentLogId: { type: string; maxLength: number; }; trashed: { type: string; }; createdAt: { type: string; maxLength: number; }; updatedAt: { type: string; maxLength: number; }; }; required: string[]; }; migrationStrategies: {}; }; timeentries: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; start: { type: string; format: string; }; end: { type: string; format: string; }; duration: { type: string; }; taskId: { type: string; maxLength: number; }; archived: { type: string; }; categoryId: { type: string; }; tagIds: { type: string; items: { type: string; }; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; approvals: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; milestoneId: { type: string; maxLength: number; }; taskId: { type: string; maxLength: number; }; documentId: { type: string; maxLength: number; }; title: { type: string; }; type: { type: string; enum: string[]; }; category: { type: string; enum: string[]; }; categoryName: { type: string; }; status: { type: string; enum: string[]; maxLength: number; }; documentType: { type: string; }; documentContent: { type: string; }; response: { type: string; }; annotations: { type: string; }; comments: { type: string; items: { type: string; }; }; respondedAt: { type: string; format: string; }; approverId: { type: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: any) => any; 2: (oldDoc: any) => any; }; }; templates: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; templateType: { type: string; enum: string[]; maxLength: number; }; name: { type: string; }; content: { type: string; }; version: { type: string; maxLength: number; }; isDefault: { type: string; }; metadata: { type: string; }; data: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; documents: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; milestoneId: { type: string; maxLength: number; }; taskId: { type: string; maxLength: number; }; codebaseId: { type: string; maxLength: number; }; documentType: { type: string; enum: string[]; maxLength: number; }; title: { type: string; }; content: { type: string; }; storage: { type: string; properties: { s3Key: { type: string; }; s3Bucket: { type: string; }; contentHash: { type: string; }; fileSize: { type: string; }; mimeType: { type: string; }; documentStoreId: { type: string; }; ragJobId: { type: string; }; }; }; documentVersion: { type: string; }; approved: { type: string; }; approvedAt: { type: string; format: string; maxLength: number; }; approvedBy: { type: string; maxLength: number; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: { 1: (oldDoc: any) => any; 2: (oldDoc: any) => any; 3: (oldDoc: any) => any; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; workspaces: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; title: { type: string; }; description: { type: string; }; tags: { type: string; items: { type: string; }; }; status: { type: string; enum: string[]; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archivedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; codebases: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; title: { type: string; }; description: { type: string; }; repository: { type: string; properties: { url: { type: string; }; defaultBranch: { type: string; maxLength: number; }; provider: { type: string; enum: string[]; maxLength: number; }; organization: { type: string; maxLength: number; }; repositoryName: { type: string; maxLength: number; }; privateRepo: { type: string; }; accessToken: { type: string; }; sshKey: { type: string; }; }; required: string[]; }; environment: { type: string; properties: { nodeVersion: { type: string; maxLength: number; }; packageManager: { type: string; enum: string[]; maxLength: number; }; workingDirectory: { type: string; maxLength: number; }; setupCommands: { type: string; items: { type: string; }; }; testCommands: { type: string; items: { type: string; }; }; buildCommands: { type: string; items: { type: string; }; }; environmentVariables: { type: string; }; }; required: string[]; }; deployment: { type: string; properties: { platform: { type: string; enum: string[]; maxLength: number; }; productionUrl: { type: string; }; stagingUrl: { type: string; }; previewUrlPattern: { type: string; }; deployCommand: { type: string; }; deployBranch: { type: string; maxLength: number; }; cicdProvider: { type: string; enum: string[]; maxLength: number; }; cicdConfigPath: { type: string; maxLength: number; }; platformConfig: { type: string; }; }; }; agentWorkflow: { type: string; properties: { branchStrategy: { type: string; enum: string[]; maxLength: number; }; branchPrefix: { type: string; maxLength: number; }; commitConvention: { type: string; enum: string[]; maxLength: number; }; commitTemplate: { type: string; }; requireTests: { type: string; }; requireLint: { type: string; }; createPR: { type: string; }; prTitleTemplate: { type: string; }; prDescriptionTemplate: { type: string; }; prReviewers: { type: string; items: { type: string; }; }; prLabels: { type: string; items: { type: string; }; }; }; }; tags: { type: string; items: { type: string; }; }; status: { type: string; enum: string[]; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archivedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; extended: { type: string; }; metadata: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; sessions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; codebaseId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; milestoneId: { type: string; maxLength: number; }; taskId: { type: string; maxLength: number; }; sessionType: { type: string; enum: string[]; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; expiresAt: { type: string; format: string; }; archived: { type: string; }; context: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; orgs: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; description: { type: string; }; archived: { type: string; }; metadata: { type: string; additionalProperties: boolean; properties: { colorSchemeIndex: { type: string; }; }; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; users: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; email: { type: string; format: string; maxLength: number; }; authUserId: { type: string; }; timezone: { type: string; }; archived: { type: string; }; orgId: { type: string; maxLength: number; }; onboarded: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; variables: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; codebaseId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; context: { type: string; maxLength: number; }; variables: { type: string; }; metadata: { type: string; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: (string \| string[])[]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; syncconfigs: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; providerId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; description: { type: string; }; targetProjectId: { type: string; maxLength: number; }; targetMilestoneId: { type: string; maxLength: number; }; direction: { type: string; enum: string[]; }; pollingIntervalMs: { type: string; }; enabled: { type: string; }; credentials: { type: string; }; providerConfig: { type: string; }; fieldMappings: { type: string; }; lastSyncAt: { type: string; format: string; maxLength: number; }; lastSyncError: { type: string; }; lastSyncItemCount: { type: string; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; conversations: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; title: { type: string; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; userId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; provider: { type: string; enum: string[]; }; model: { type: string; }; settings: { type: string; properties: { systemPrompt: { type: string; }; temperature: { type: string; minimum: number; maximum: number; }; maxTokens: { type: string; minimum: number; }; }; required: string[]; }; metadata: { type: string; properties: { messageCount: { type: string; minimum: number; }; lastMessageAt: { type: string; format: string; }; }; required: string[]; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; messages: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; conversationId: { type: string; ref: string; maxLength: number; }; role: { type: string; enum: string[]; }; content: { type: string; }; toolCalls: { type: string; items: { type: string; properties: { id: { type: string; }; toolName: { type: string; }; arguments: { type: string; }; result: {}; status: { type: string; enum: string[]; }; }; required: string[]; }; }; createdAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; metadata: { type: string; properties: { tokens: { type: string; properties: { input: { type: string; }; output: { type: string; }; total: { type: string; }; }; }; cost: { type: string; properties: { total: { type: string; }; }; }; latency: { type: string; }; model: { type: string; }; }; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; clients: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; company: { type: string; }; email: { type: string; format: string; }; phone: { type: string; maxLength: number; }; address: { type: string; }; primaryContactId: { type: string; }; archived: { type: string; }; userId: { type: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; contacts: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; firstName: { type: string; }; lastName: { type: string; }; email: { type: string; format: string; }; phone: { type: string; maxLength: number; }; company: { type: string; }; title: { type: string; }; address: { type: string; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; opportunities: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; completed: { type: string; }; clientId: { type: string; maxLength: number; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; goals: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; title: { type: string; }; description: { type: string; }; priority: { type: string; enum: string[]; }; dueDate: { type: string; format: string; }; completed: { type: string; }; archived: { type: string; }; extended: { type: string; }; metrics: { type: string; items: { type: string; properties: { id: { type: string; }; name: { type: string; }; type: { type: string; enum: string[]; }; targetValue: { type: string; }; currentValue: { type: string; }; unit: { type: string; }; startValue: { type: string; }; trend: { type: string; enum: string[]; }; }; }; }; targetDate: { type: string; format: string; maxLength: number; }; progressMode: { type: string; enum: string[]; }; currentProgress: { type: string; minimum: number; maximum: number; }; status: { type: string; enum: string[]; maxLength: number; }; parentGoalId: { type: string; maxLength: number; }; category: { type: string; enum: string[]; }; workspaceId: { type: string; maxLength: number; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: Record<number, (oldDoc: Record<string, unknown>) => Record<string, unknown>>; }; flows: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; description: { type: string; }; flowType: { type: string; enum: string[]; }; nodes: { type: string; }; edges: { type: string; }; viewport: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; attributes: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; pattern: string; }; title: { type: string; maxLength: number; }; description: { type: string; maxLength: number; }; color: { type: string; pattern: string; }; entityType: { type: string; enum: string[]; maxLength: number; }; type: { type: string; enum: string[]; maxLength: number; }; sortOrder: { type: string; minimum: number; maximum: number; multipleOf: number; }; popularity: { type: string; minimum: number; maximum: number; multipleOf: number; }; metadata: { type: string; }; archived: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: (string \| string[])[]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; products: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; slug: { type: string; maxLength: number; }; type: { type: string; maxLength: number; enum: string[]; }; description: { type: string; }; icon: { type: string; maxLength: number; }; color: { type: string; maxLength: number; }; problemStatement: { type: string; }; valueProposition: { type: string; }; targetMarket: { type: string; items: { type: string; }; }; competitiveLandscape: { type: string; }; customerPersona: { type: string; }; kpis: { type: string; items: { type: string; }; }; currentPhase: { type: string; maxLength: number; enum: string[]; }; phaseHistory: { type: string; items: { type: string; }; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; archived: { type: string; }; orgId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; sourceTemplateId: { type: string; maxLength: number; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: any) => any; }; }; initiatives: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; roadmapId: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; description: { type: string; }; quarter: { type: string; maxLength: number; }; status: { type: string; enum: readonly string[]; maxLength: number; }; priority: { type: string; enum: readonly string[]; }; color: { type: string; maxLength: number; }; projectIds: { type: string; items: { type: string; maxLength: number; }; default: never[]; }; order: { type: string; multipleOf: number; minimum: number; maximum: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; roadmaps: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; startQuarter: { type: string; maxLength: number; }; endQuarter: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; productgoals: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; goalId: { type: string; maxLength: number; }; order: { type: string; multipleOf: number; minimum: number; maximum: number; }; isPrimary: { type: string; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: Record<string, unknown>) => { extended: {}; }; }; }; productprojects: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; projectId: { type: string; maxLength: number; }; role: { type: string; maxLength: number; enum: string[]; }; linkedAt: { type: string; format: string; maxLength: number; }; linkedBy: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: Record<string, unknown>) => { extended: {}; }; }; }; activities: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; entityType: { type: string; maxLength: number; enum: string[]; }; entityId: { type: string; maxLength: number; }; entityName: { type: string; maxLength: number; }; action: { type: string; maxLength: number; enum: string[]; }; changes: { type: string; }; userId: { type: string; maxLength: number; }; userName: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: Record<string, unknown>) => { extended: {}; }; }; }; teammembers: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; productId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; userName: { type: string; maxLength: number; }; userEmail: { type: string; maxLength: number; }; userAvatar: { type: string; maxLength: number; }; role: { type: string; maxLength: number; enum: string[]; }; raciAssignments: { type: string; items: { type: string; properties: { area: { type: string; maxLength: number; }; type: { type: string; enum: string[]; }; }; }; }; isAgent: { type: string; }; joinedAt: { type: string; format: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: { 1: (oldDoc: Record<string, unknown>) => { extended: {}; }; 2: (oldDoc: Record<string, unknown>) => Record<string, unknown>; 3: (oldDoc: Record<string, unknown>) => { isAgent: {}; }; 4: (oldDoc: Record<string, unknown>) => Record<string, unknown>; }; }; processes: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; maxLength: number; }; title: { type: string; }; description: { type: string; }; version: { type: string; maxLength: number; }; status: { type: string; maxLength: number; enum: string[]; }; category: { type: string; maxLength: number; enum: string[]; }; stepIds: { type: string; items: { type: string; }; }; startStepId: { type: string; maxLength: number; }; inputSchema: { type: string; }; outputSchema: { type: string; }; trigger: { type: string; }; statistics: { type: string; }; archived: { type: string; }; tagIds: { type: string; items: { type: string; }; }; documentId: { type: string; maxLength: number; }; flowId: { type: string; maxLength: number; }; maxSubprocessDepth: { type: string; }; executorAgentId: { type: string; maxLength: number; }; executionConfig: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; processsteps: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; processId: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; maxLength: number; }; title: { type: string; }; description: { type: string; }; stepType: { type: string; enum: string[]; }; order: { type: string; multipleOf: number; minimum: number; maximum: number; }; action: { type: string; }; conditions: { type: string; items: { type: string; }; }; nextStepId: { type: string; maxLength: number; }; outputs: { type: string; items: { type: string; }; }; inputs: { type: string; }; position: { type: string; }; style: { type: string; }; icon: { type: string; maxLength: number; }; optional: { type: string; }; enabled: { type: string; }; archived: { type: string; }; estimatedDurationMinutes: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; processexecutions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; processId: { type: string; maxLength: number; }; processVersion: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; status: { type: string; maxLength: number; enum: string[]; }; startedAt: { type: string; format: string; maxLength: number; }; completedAt: { type: string; format: string; maxLength: number; }; durationMs: { type: string; }; inputs: { type: string; }; outputs: { type: string; }; currentStepId: { type: string; maxLength: number; }; stepHistory: { type: string; items: { type: string; }; }; variables: { type: string; }; context: { type: string; }; error: { type: string; }; retryCount: { type: string; }; maxRetries: { type: string; }; progress: { type: string; }; correlationId: { type: string; maxLength: number; }; externalId: { type: string; maxLength: number; }; resumeAt: { type: string; format: string; maxLength: number; }; parentExecutionId: { type: string; maxLength: number; }; depth: { type: string; }; archived: { type: string; }; metadata: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; finaccounts: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; budget_id: { type: string; maxLength: number; }; name: { type: string; }; type: { type: string; }; on_budget: { type: string; }; closed: { type: string; }; balance: { type: string; }; cleared_balance: { type: string; }; uncleared_balance: { type: string; }; last_reconciled_at: { type: string[]; }; direct_import_linked: { type: string; }; direct_import_in_error: { type: string; }; note: { type: string[]; }; transfer_payee_id: { type: string; }; debt_original_balance: { type: string[]; }; debt_interest_rates: { type: string; additionalProperties: { type: string; }; }; debt_minimum_payments: { type: string; additionalProperties: { type: string; }; }; debt_escrow_amounts: { type: string; additionalProperties: { type: string; }; }; is_deleted: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; finbudgets: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; keyCompression: boolean; additionalProperties: boolean; encrypted: never[]; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; name: { type: string; }; last_modified_on: { type: string; format: string; }; first_month: { type: string; }; last_month: { type: string; }; trashed: { type: string; }; date_format: { type: string; properties: { format: { type: string; }; }; }; currency_format: { type: string; properties: { iso_code: { type: string; }; example_format: { type: string; }; decimal_digits: { type: string; }; decimal_separator: { type: string; }; symbol_first: { type: string; }; }; }; accounts: { type: string; items: { type: string; properties: { id: { type: string; }; name: { type: string; }; type: { type: string; }; balance: { type: string; }; }; }; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; fincategories: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; category_group_id: { type: string; }; category_group_name: { type: string[]; }; name: { type: string; }; hidden: { type: string; }; original_category_group_id: { type: string[]; }; note: { type: string[]; }; budgeted: { type: string; }; activity: { type: string; }; balance: { type: string; }; goal_type: { type: string[]; enum: (string \| null)[]; }; goal_needs_whole_amount: { type: string[]; }; goal_day: { type: string[]; }; goal_cadence: { type: string[]; }; goal_cadence_frequency: { type: string[]; }; goal_creation_month: { type: string[]; }; goal_target: { type: string[]; }; goal_target_month: { type: string[]; }; goal_percentage_complete: { type: string[]; }; goal_months_to_budget: { type: string[]; }; goal_under_funded: { type: string[]; }; goal_overall_funded: { type: string[]; }; goal_overall_left: { type: string[]; }; goal_snoozed_at: { type: string[]; format: string; }; is_deleted: { type: string; }; isDefault: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; fintransactions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; account_id: { type: string; }; account_name: { type: string; }; date: { type: string; }; amount: { type: string; }; memo: { type: string[]; }; cleared: { type: string; enum: string[]; }; debt_transaction_type: { type: string[]; }; approved: { type: string; }; flag_color: { type: string[]; }; flag_name: { type: string[]; }; payee_id: { type: string[]; }; payee_name: { type: string[]; }; category_id: { type: string[]; }; category_name: { type: string[]; }; subtransactions: { type: string; items: { type: string; properties: { id: { type: string; }; transaction_id: { type: string; }; amount: { type: string; }; memo: { type: string[]; }; payee_id: { type: string[]; }; payee_name: { type: string[]; }; category_id: { type: string[]; }; category_name: { type: string[]; }; transfer_account_id: { type: string[]; }; transfer_transaction_id: { type: string[]; }; deleted: { type: string; }; }; }; }; transfer_account_id: { type: string[]; }; transfer_transaction_id: { type: string[]; }; matched_transaction_id: { type: string[]; }; import_id: { type: string[]; }; import_payee_name: { type: string[]; }; import_payee_name_original: { type: string[]; }; is_deleted: { type: string; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; finscheduledtransactions: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; date_first: { type: string; format: string; }; date_next: { type: string; format: string; }; frequency: { type: string; enum: string[]; }; amount: { type: string; }; memo: { type: string[]; }; flag_color: { type: string[]; enum: (string \| null)[]; }; flag_name: { type: string[]; }; account_id: { type: string; }; payee_id: { type: string[]; }; category_id: { type: string[]; }; transfer_account_id: { type: string[]; }; is_deleted: { type: string; }; account_name: { type: string; }; payee_name: { type: string[]; }; category_name: { type: string[]; }; subtransactions: { type: string; items: { type: string; properties: { id: { type: string; }; transaction_id: { type: string; }; amount: { type: string; }; memo: { type: string[]; }; payee_id: { type: string[]; }; payee_name: { type: string[]; }; category_id: { type: string[]; }; category_name: { type: string[]; }; transfer_account_id: { type: string[]; }; transfer_transaction_id: { type: string[]; }; deleted: { type: string; }; }; }; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; finincomestatements: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; name: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; workspaceId: { type: string; maxLength: number; }; userId: { type: string; maxLength: number; }; description: { type: string; }; budgetId: { type: string; maxLength: number; }; period: { type: string; properties: { type: { type: string; enum: string[]; }; startDate: { type: string; }; endDate: { type: string; }; offset: { type: string; }; }; required: string[]; }; linkedStatements: { type: string; items: { type: string; properties: { statementId: { type: string; }; workspaceId: { type: string; }; displayName: { type: string; }; displayAs: { type: string; enum: string[]; }; }; required: string[]; }; }; incomeCategories: { type: string; items: { type: string; }; }; expenseCategories: { type: string; items: { type: string; }; }; assetAccounts: { type: string; items: { type: string; }; }; liabilityAccounts: { type: string; items: { type: string; }; }; isDefault: { type: string; }; isArchived: { type: string; }; status: { type: string; enum: string[]; }; wizardStep: { type: string; }; wizardCompletedSteps: { type: string; items: { type: string; }; }; ynabBudgetId: { type: string; maxLength: number; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; migrationStrategies: {}; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; }; orgthemes: { name: string; schema: { title: string; description: string; version: number; primaryKey: string; type: string; properties: { id: { type: string; maxLength: number; }; orgId: { type: string; maxLength: number; }; name: { type: string; }; config: { type: string; }; isDefault: { type: string; }; createdAt: { type: string; format: string; maxLength: number; }; updatedAt: { type: string; format: string; maxLength: number; }; createdBy: { type: string; maxLength: number; }; updatedBy: { type: string; maxLength: number; }; extended: { type: string; }; }; required: string[]; indexes: string[][]; }; hooks: { preInsert: (doc: any) => any; preSave: (doc: any, oldDoc: any) => any; }; migrationStrategies: {}; }; }> -