mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat(server): tag and collection record for context (#10926)
fix CLOUD-174
This commit is contained in:
@@ -12,6 +12,12 @@ input AddContextFileInput {
|
||||
contextId: String!
|
||||
}
|
||||
|
||||
input AddRemoveContextCategoryInput {
|
||||
categoryId: String!
|
||||
contextId: String!
|
||||
type: ContextCategories!
|
||||
}
|
||||
|
||||
type AlreadyInSpaceDataType {
|
||||
spaceId: String!
|
||||
}
|
||||
@@ -35,6 +41,11 @@ type ChatMessage {
|
||||
role: String!
|
||||
}
|
||||
|
||||
enum ContextCategories {
|
||||
Collection
|
||||
Tag
|
||||
}
|
||||
|
||||
enum ContextEmbedStatus {
|
||||
failed
|
||||
finished
|
||||
@@ -92,6 +103,12 @@ type CopilotContext {
|
||||
workspaceId: String!
|
||||
}
|
||||
|
||||
type CopilotContextCategory {
|
||||
createdAt: SafeInt!
|
||||
id: ID!
|
||||
type: ContextCategories!
|
||||
}
|
||||
|
||||
type CopilotContextDoc {
|
||||
createdAt: SafeInt!
|
||||
id: ID!
|
||||
@@ -803,6 +820,9 @@ type Mutation {
|
||||
acceptInviteById(inviteId: String!, sendAcceptMail: Boolean, workspaceId: String!): Boolean!
|
||||
activateLicense(license: String!, workspaceId: String!): License!
|
||||
|
||||
"""add a category to context"""
|
||||
addContextCategory(options: AddRemoveContextCategoryInput!): CopilotContextCategory!
|
||||
|
||||
"""add a doc to context"""
|
||||
addContextDoc(options: AddContextDocInput!): CopilotContextDoc!
|
||||
|
||||
@@ -887,6 +907,9 @@ type Mutation {
|
||||
"""Remove user avatar"""
|
||||
removeAvatar: RemoveAvatar!
|
||||
|
||||
"""remove a category from context"""
|
||||
removeContextCategory(options: AddRemoveContextCategoryInput!): Boolean!
|
||||
|
||||
"""remove a doc from context"""
|
||||
removeContextDoc(options: RemoveContextDocInput!): Boolean!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user