/** * API ENDPOINTS * Type-safe endpoint definitions */ import type { APIResponse, Document, DocumentId, PaginatedResponse, User, Workspace, WorkspaceId } from '@materi.ai/frame/core/types'; export declare const documentAPI: { /** * Get all documents for a workspace */ listDocuments: (workspaceId: WorkspaceId, page?: number, pageSize?: number) => Promise>; /** * Get single document by ID */ getDocument: (documentId: DocumentId) => Promise; /** * Create new document */ createDocument: (workspaceId: WorkspaceId, data: { type: "document" | "spreadsheet" | "presentation"; title: string; description?: string; }) => Promise; /** * Update document */ updateDocument: (documentId: DocumentId, data: Partial) => Promise; /** * Delete document */ deleteDocument: (documentId: DocumentId) => Promise>; }; export declare const workspaceAPI: { /** * Get all workspaces for user */ listWorkspaces: () => Promise; /** * Get single workspace */ getWorkspace: (workspaceId: WorkspaceId) => Promise; /** * Create new workspace */ createWorkspace: (data: { name: string; description?: string; }) => Promise; /** * Update workspace */ updateWorkspace: (workspaceId: WorkspaceId, data: Partial) => Promise; /** * Delete workspace */ deleteWorkspace: (workspaceId: WorkspaceId) => Promise>; /** * Add member to workspace */ addMember: (workspaceId: WorkspaceId, userId: string, role: string) => Promise>; /** * Remove member from workspace */ removeMember: (workspaceId: WorkspaceId, userId: string) => Promise>; }; export declare const userAPI: { /** * Get current user profile */ getCurrentUser: () => Promise; /** * Update user profile */ updateProfile: (data: Partial) => Promise; /** * Change password */ changePassword: (oldPassword: string, newPassword: string) => Promise>; }; export declare const collaborationAPI: { /** * Get active users in document */ getPresence: (documentId: DocumentId) => Promise>; /** * Get operation history */ getHistory: (documentId: DocumentId, since?: number) => Promise>; }; export declare const apis: { documents: { /** * Get all documents for a workspace */ listDocuments: (workspaceId: WorkspaceId, page?: number, pageSize?: number) => Promise>; /** * Get single document by ID */ getDocument: (documentId: DocumentId) => Promise; /** * Create new document */ createDocument: (workspaceId: WorkspaceId, data: { type: "document" | "spreadsheet" | "presentation"; title: string; description?: string; }) => Promise; /** * Update document */ updateDocument: (documentId: DocumentId, data: Partial) => Promise; /** * Delete document */ deleteDocument: (documentId: DocumentId) => Promise>; }; workspaces: { /** * Get all workspaces for user */ listWorkspaces: () => Promise; /** * Get single workspace */ getWorkspace: (workspaceId: WorkspaceId) => Promise; /** * Create new workspace */ createWorkspace: (data: { name: string; description?: string; }) => Promise; /** * Update workspace */ updateWorkspace: (workspaceId: WorkspaceId, data: Partial) => Promise; /** * Delete workspace */ deleteWorkspace: (workspaceId: WorkspaceId) => Promise>; /** * Add member to workspace */ addMember: (workspaceId: WorkspaceId, userId: string, role: string) => Promise>; /** * Remove member from workspace */ removeMember: (workspaceId: WorkspaceId, userId: string) => Promise>; }; users: { /** * Get current user profile */ getCurrentUser: () => Promise; /** * Update user profile */ updateProfile: (data: Partial) => Promise; /** * Change password */ changePassword: (oldPassword: string, newPassword: string) => Promise>; }; collaboration: { /** * Get active users in document */ getPresence: (documentId: DocumentId) => Promise>; /** * Get operation history */ getHistory: (documentId: DocumentId, since?: number) => Promise>; }; }; //# sourceMappingURL=index.d.ts.map