mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
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:
@@ -37,18 +37,16 @@ enum ContextFileStatus {
|
||||
}
|
||||
|
||||
type Copilot {
|
||||
"""Get the session list of actions in the workspace"""
|
||||
actions: [String!]!
|
||||
|
||||
"""Get the session list of chats in the workspace"""
|
||||
chats: [String!]!
|
||||
|
||||
"""Get the context list of a session"""
|
||||
contexts(contextId: String, sessionId: String!): [CopilotContext!]!
|
||||
docId: ID
|
||||
histories(docId: String, options: QueryChatHistoriesInput): [CopilotHistories!]!
|
||||
|
||||
"""Get the quota of the user in the workspace"""
|
||||
quota: CopilotQuota!
|
||||
|
||||
"""Get the session list in the workspace"""
|
||||
sessionIds(docId: String, options: QueryChatSessionsInput): [String!]!
|
||||
workspaceId: ID
|
||||
}
|
||||
|
||||
@@ -884,6 +882,10 @@ input QueryChatHistoriesInput {
|
||||
withPrompt: Boolean
|
||||
}
|
||||
|
||||
input QueryChatSessionsInput {
|
||||
action: Boolean
|
||||
}
|
||||
|
||||
type QueryTooLongDataType {
|
||||
max: Int!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user