mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
feat(core): add copilot tags and collections graphql apis (#11076)
Close [BS-2834](https://linear.app/affine-design/issue/BS-2834). ### What Changed? - Add `addContextCategoryMutation` and `removeContextCategoryMutation` graphql apis. - Provide tag and collection apis for front-end components.
This commit is contained in:
@@ -2593,22 +2593,26 @@ export type ListContextObjectQuery = {
|
||||
}>;
|
||||
tags: Array<{
|
||||
__typename?: 'CopilotContextCategory';
|
||||
type: ContextCategories;
|
||||
id: string;
|
||||
createdAt: number;
|
||||
docs: Array<{
|
||||
__typename?: 'CopilotDocType';
|
||||
id: string;
|
||||
status: ContextEmbedStatus | null;
|
||||
createdAt: number;
|
||||
}>;
|
||||
}>;
|
||||
collections: Array<{
|
||||
__typename?: 'CopilotContextCategory';
|
||||
type: ContextCategories;
|
||||
id: string;
|
||||
createdAt: number;
|
||||
docs: Array<{
|
||||
__typename?: 'CopilotDocType';
|
||||
id: string;
|
||||
status: ContextEmbedStatus | null;
|
||||
createdAt: number;
|
||||
}>;
|
||||
}>;
|
||||
}>;
|
||||
|
||||
Reference in New Issue
Block a user