refactor(core): get copilot sessions api (#10168)

Fix issue [BS-2575](https://linear.app/affine-design/issue/BS-2575).

### What Changed?
- Refactor `getCopilotSessions` api.
  - Add `docId` parameter.
  - Add `action` parameter.
This commit is contained in:
akumatus
2025-02-14 06:57:57 +00:00
parent f20e3f6d8f
commit 1bf1832211
10 changed files with 82 additions and 96 deletions
@@ -301,6 +301,11 @@ declare global {
docId: string,
promptName?: string
) => Promise<string>;
getSessionIds: (
workspaceId: string,
docId?: string,
options?: { action?: boolean }
) => Promise<string[] | undefined>;
updateSession: (sessionId: string, promptName: string) => Promise<string>;
}