mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-18 14:56:59 +08:00
feat(server): copilot session prompt query (#10479)
This commit is contained in:
@@ -45,8 +45,11 @@ type Copilot {
|
||||
"""Get the quota of the user in the workspace"""
|
||||
quota: CopilotQuota!
|
||||
|
||||
"""Get the session id list in the workspace"""
|
||||
sessionIds(docId: String, options: QueryChatSessionsInput): [String!]! @deprecated(reason: "Use `sessions` instead")
|
||||
|
||||
"""Get the session list in the workspace"""
|
||||
sessionIds(docId: String, options: QueryChatSessionsInput): [String!]!
|
||||
sessions(docId: String, options: QueryChatSessionsInput): [CopilotSessionType!]!
|
||||
workspaceId: ID
|
||||
}
|
||||
|
||||
@@ -192,6 +195,11 @@ type CopilotQuota {
|
||||
used: SafeInt!
|
||||
}
|
||||
|
||||
type CopilotSessionType {
|
||||
id: ID!
|
||||
promptName: String!
|
||||
}
|
||||
|
||||
input CreateChatMessageInput {
|
||||
attachments: [String!]
|
||||
blobs: [Upload!]
|
||||
|
||||
Reference in New Issue
Block a user