export interface ApiClientConfig { baseUrl: string; accessToken: string; clientPlatform?: string; } declare class ApiClient { private config; constructor(config: ApiClientConfig); private request; getWorkspaces(): Promise; getWorkspace(workspaceId: string): Promise; getWorkspaceTasksMine(workspaceId: string): Promise; getProjects(workspaceId: string): Promise; getProject(_workspaceId: string, projectId: string): Promise; createProject(workspaceId: string, data: { name: string; slug: string; description?: string; }): Promise; createAgent(workspaceId: string, data: { name: string; description?: string; systemPrompt?: string; personaId?: string; }): Promise; createSkill(workspaceId: string, data: { name: string; description?: string; }): Promise; getLessonsLibrary(workspaceId: string): Promise; createLesson(workspaceId: string, data: { title: string; problem: string; fix: string; project?: string; today: string; }): Promise; listLessons(workspaceId: string): Promise<{ library: any; files: any[]; }>; getFiles(projectId: string): Promise; getFile(fileId: string): Promise; getFileContent(fileId: string): Promise; createFileShare(fileId: string, data: { accessMode?: string; permission?: string; expiresAt?: string | null; allowedEmails?: string[] | null; allowedDomains?: string[] | null; allowComments?: boolean; }): Promise; listFileShares(fileId: string): Promise; revokeFileShare(fileId: string, shareId: string): Promise; getFileVersions(fileId: string): Promise; getFileVersion(fileId: string, versionId: string): Promise; getFileLinks(fileId: string, direction?: 'forward' | 'backward' | 'both'): Promise; getFileComments(fileId: string): Promise; createFileComment(fileId: string, data: { content: string; lineNumber?: number | null; parentCommentId?: string | null; }): Promise; setCommentResolved(commentId: string, resolved: boolean): Promise; getLinkedMentions(fileId: string): Promise; getLinkSuggestions(fileId: string, q: string, scope?: 'project' | 'workspace', limit?: number): Promise; searchFiles(workspaceId: string, query: string, projectId?: string): Promise; createFile(projectId: string, data: { title: string; path: string; content?: string; folderId?: string | null; fileType?: 'meeting' | 'decision' | 'brief'; metadata?: { meetingDate?: string; sourcePlatform?: string; participants?: string[]; }; conceptType?: string; description?: string; tags?: string[]; }): Promise; updateFile(fileId: string, data: { title?: string; path?: string; content?: string; status?: 'active' | 'archived'; folderId?: string | null; projectId?: string; changeSummary?: string; createVersion?: boolean; }): Promise; deleteFile(fileId: string): Promise; deleteProject(projectId: string): Promise; restoreProject(projectId: string): Promise; getTrashedProjects(workspaceId: string): Promise; getTags(workspaceId: string): Promise; getWorkflows(workspaceId: string): Promise; createWorkflow(workspaceId: string, data: { name: string; description?: string; tagIds?: string[]; agentIds?: string[]; skillIds?: string[]; projectIds?: string[]; workflowType?: string; projectConfig?: Record; isPrivate?: boolean; }): Promise; suggestLibraries(workspaceId: string, name: string, description?: string): Promise<{ id: string; name: string; description: string | null; score: number; matchedTerms: string[]; }[]>; updateWorkflow(workspaceId: string, workflowId: string, data: { name?: string; description?: string; tagIds?: string[]; agentIds?: string[]; skillIds?: string[]; projectIds?: string[]; workflowType?: string | null; projectConfig?: Record | null; harnessConfig?: Record | null; isPrivate?: boolean; }): Promise; deleteWorkflow(workspaceId: string, workflowId: string): Promise; getWorkflowMembers(workspaceId: string, workflowId: string): Promise; addWorkflowMember(workspaceId: string, workflowId: string, userId: string, role: string): Promise; updateWorkflowMember(workspaceId: string, workflowId: string, userId: string, role: string): Promise; removeWorkflowMember(workspaceId: string, workflowId: string, userId: string): Promise; archivePhase(workspaceId: string, workflowId: string, fileId: string): Promise; addSkillToAgent(workspaceId: string, agentId: string, skillId: string): Promise; removeSkillFromAgent(workspaceId: string, agentId: string, skillId: string): Promise; bulkUpdateAgentSkills(workspaceId: string, agentId: string, skillIds: string[], action: 'add' | 'remove'): Promise<{ agent: any; changed: string[]; unchanged: string[]; invalid: string[]; }>; updateAgent(workspaceId: string, agentId: string, data: { name?: string; description?: string; customContext?: string; systemPrompt?: string; }): Promise; getTag(tagId: string, workspaceId: string): Promise; getFileTags(fileId: string): Promise; updateProject(projectId: string, data: Record): Promise; getWorkflow(workspaceId: string, workflowId: string): Promise; loadWorkflow(workspaceId: string, workflowId: string): Promise; getWorkflowActivityDigest(workspaceId: string, workflowId: string): Promise; getWorkspaceActivity(workspaceId: string, filters?: { userId?: string; entityType?: string; action?: string; limit?: number; offset?: number; month?: number; year?: number; }): Promise; getActivityLogArchiveContent(workspaceId: string, month: string, page?: number): Promise; listActivityLogArchives(workspaceId: string): Promise; getEntityActivity(workspaceId: string, entityType: string, entityId: string, limit?: number): Promise; getAgents(workspaceId: string): Promise; getAgent(workspaceId: string, agentId: string): Promise; deleteAgent(workspaceId: string, agentId: string): Promise; dispatchAgentJob(workspaceId: string, intent: string): Promise; listAgentJobs(workspaceId: string): Promise; getAgentJob(workspaceId: string, jobId: string): Promise; getWorkspaceMembers(workspaceId: string): Promise<{ data: any[]; total: number; page: number; limit: number; }>; getMemberProfile(workspaceId: string, userId: string): Promise; listIdentities(workspaceId: string, scope?: 'user' | 'workspace'): Promise; getIdentity(workspaceId: string, identityId: string): Promise; searchFilesByTags(workspaceId: string, tagIds: string[], projectId?: string): Promise<{ fileIds: string[]; }>; getMarketplaceListings(filters?: { query?: string; type?: string; category?: string; }): Promise; getMarketplaceListing(slug: string): Promise; importMarketplaceListing(slug: string, workspaceId: string): Promise; listFigmaConnections(workspaceId: string): Promise; triggerFigmaSync(workspaceId: string, integrationId: string): Promise; getNotifications(params?: { limit?: number; offset?: number; unreadOnly?: boolean; }): Promise; getUnreadCount(): Promise<{ count: number; }>; getWorkspaceSummary(workspaceId: string): Promise; markNotificationRead(notificationId?: string): Promise; updateNotificationPreferences(data: Record): Promise; dismissBroadcast(broadcastId: string): Promise<{ success: boolean; }>; notifyTeam(workspaceId: string, data: { resourceType: 'file' | 'workflow' | 'agent' | 'library'; resourceId: string; resourceName: string; message?: string; notificationType?: string; memberIds?: string[]; memberEmails?: string[]; memberNames?: string[]; }): Promise<{ notified: number; skipped: number; }>; createIdentity(workspaceId: string, data: Record): Promise; updateIdentity(workspaceId: string, identityId: string, data: Record): Promise; deleteIdentity(workspaceId: string, identityId: string, dryRun?: boolean): Promise; createTask(workspaceId: string, workflowId: string, data: { title: string; description?: string; source?: string; priority?: 'high' | 'medium' | 'low'; assignedTo?: string; assigneeIds?: string[]; autoAssign?: boolean; phaseFileId?: string; dueDate?: string; }): Promise; updateTask(workspaceId: string, workflowId: string, taskId: string, data: { status?: string; title?: string; description?: string; priority?: 'high' | 'medium' | 'low'; phaseFileId?: string | null; }): Promise; listTasksForWorkflow(workspaceId: string, workflowId: string): Promise; listTasks(workspaceId: string, workflowId: string, options?: { status?: string; includeDismissed?: boolean; priority?: 'high' | 'medium' | 'low'; }): Promise; breakdownTask(workspaceId: string, workflowId: string, taskId: string): Promise; listWorkspaceTasks(workspaceId: string, options?: { status?: string; includeDismissed?: boolean; priority?: 'high' | 'medium' | 'low'; mine?: boolean; }): Promise; createWorkspaceTask(workspaceId: string, data: { title: string; description?: string; source?: string; priority?: 'high' | 'medium' | 'low'; assignedTo?: string; assigneeIds?: string[]; autoAssign?: boolean; autoRoute?: boolean; dueDate?: string; }): Promise; updateWorkspaceTask(workspaceId: string, taskId: string, data: { status?: string; title?: string; description?: string; priority?: 'high' | 'medium' | 'low' | null; assignedTo?: string | null; }): Promise; updateWorkspaceTaskStatus(workspaceId: string, taskId: string, status: string): Promise; getWorkflowPlan(workspaceId: string, workflowId: string): Promise; listPlans(workspaceId: string, status?: string): Promise; createPlan(workspaceId: string, workflowId: string, data: { name: string; description?: string; spec?: string; }): Promise; listPhases(workspaceId: string, planId: string): Promise; addPhase(workspaceId: string, planId: string, data: { title: string; description?: string; assignedAgentId?: string; source?: string; }): Promise; updatePhaseStatus(workspaceId: string, phaseId: string, status: string): Promise; editPhase(workspaceId: string, phaseId: string, body: { title?: string; description?: string; }): Promise; deletePhase(workspaceId: string, phaseId: string): Promise; reorderPhases(workspaceId: string, planId: string, orderedIds: string[]): Promise; bulkDeleteDonePhases(workspaceId: string, planId: string): Promise<{ deletedCount: number; }>; summarizePhases(workspaceId: string, planId: string, data: { libraryId: string; summaryTitle: string; }): Promise<{ fileId: string; fileTitle: string; deletedCount: number; lastSummarizedAt: string; }>; requestAccess(workspaceId: string, resourceType: 'library' | 'workflow', resourceId: string, reason?: string): Promise; listMyAccessRequests(workspaceId: string): Promise; listAccessRequestsForResource(workspaceId: string, resourceType: string, resourceId: string): Promise; approveAccessRequest(workspaceId: string, requestId: string): Promise; denyAccessRequest(workspaceId: string, requestId: string, rejectionReason?: string): Promise; } /** * Extended API Client with additional helper methods * Used by CLI commands for richer functionality */ export declare class ContextiumApiClient { private baseUrl; private accessToken; constructor(baseUrl: string, accessToken: string); get(endpoint: string, params?: Record): Promise; post(endpoint: string, data: any): Promise; /** * Search files by tag IDs * Returns file IDs that match ALL specified tags (AND logic) */ searchFilesByTags(workspaceId: string, tagIds: string[], projectId?: string): Promise<{ data: { fileIds: string[]; }; }>; /** * Get files with full details by IDs */ getFilesByIds(fileIds: string[]): Promise<{ data: any[]; }>; } export declare function initializeApiClient(config: ApiClientConfig): void; export declare function getApiClient(): ApiClient; export {}; //# sourceMappingURL=api-client.d.ts.map