feat(server): tag and collection record for context (#10926)

fix CLOUD-174
This commit is contained in:
darkskygit
2025-03-17 14:17:01 +00:00
parent 3dbeebd6ba
commit b0aa2c90fd
9 changed files with 262 additions and 4 deletions

View File

@@ -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!