fix(core): ai context gql file (#10145)
This commit is contained in:
@@ -2,9 +2,5 @@ mutation addContextDoc($options: AddContextDocInput!) {
|
|||||||
addContextDoc(options: $options) {
|
addContextDoc(options: $options) {
|
||||||
id
|
id
|
||||||
createdAt
|
createdAt
|
||||||
name
|
|
||||||
chunkSize
|
|
||||||
status
|
|
||||||
blobId
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
mutation removeContextDoc($options: RemoveContextFileInput!) {
|
mutation removeContextDoc($options: RemoveContextDocInput!) {
|
||||||
removeContextDoc(options: $options)
|
removeContextDoc(options: $options)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
query listContextDocsAndFiles($workspaceId: String!, $sessionId: String!, $contextId: String!) {
|
||||||
|
currentUser {
|
||||||
|
copilot(workspaceId: $workspaceId) {
|
||||||
|
contexts(sessionId: $sessionId, contextId: $contextId) {
|
||||||
|
docs {
|
||||||
|
id
|
||||||
|
createdAt
|
||||||
|
}
|
||||||
|
files {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
blobId
|
||||||
|
chunkSize
|
||||||
|
status
|
||||||
|
createdAt
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -179,10 +179,6 @@ mutation addContextDoc($options: AddContextDocInput!) {
|
|||||||
addContextDoc(options: $options) {
|
addContextDoc(options: $options) {
|
||||||
id
|
id
|
||||||
createdAt
|
createdAt
|
||||||
name
|
|
||||||
chunkSize
|
|
||||||
status
|
|
||||||
blobId
|
|
||||||
}
|
}
|
||||||
}`,
|
}`,
|
||||||
};
|
};
|
||||||
@@ -212,6 +208,14 @@ query listContextDocsAndFiles($workspaceId: String!, $sessionId: String!, $conte
|
|||||||
id
|
id
|
||||||
createdAt
|
createdAt
|
||||||
}
|
}
|
||||||
|
files {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
blobId
|
||||||
|
chunkSize
|
||||||
|
status
|
||||||
|
createdAt
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,11 +42,6 @@ export interface AddContextDocInput {
|
|||||||
docId: Scalars['String']['input'];
|
docId: Scalars['String']['input'];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RemoveContextDocInput {
|
|
||||||
contextId: Scalars['String']['input'];
|
|
||||||
docId: Scalars['String']['input'];
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface AlreadyInSpaceDataType {
|
export interface AlreadyInSpaceDataType {
|
||||||
__typename?: 'AlreadyInSpaceDataType';
|
__typename?: 'AlreadyInSpaceDataType';
|
||||||
spaceId: Scalars['String']['output'];
|
spaceId: Scalars['String']['output'];
|
||||||
@@ -1315,6 +1310,11 @@ export interface RemoveAvatar {
|
|||||||
success: Scalars['Boolean']['output'];
|
success: Scalars['Boolean']['output'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface RemoveContextDocInput {
|
||||||
|
contextId: Scalars['String']['input'];
|
||||||
|
docId: Scalars['String']['input'];
|
||||||
|
}
|
||||||
|
|
||||||
export interface RevokeDocUserRoleInput {
|
export interface RevokeDocUserRoleInput {
|
||||||
docId: Scalars['String']['input'];
|
docId: Scalars['String']['input'];
|
||||||
userId: Scalars['String']['input'];
|
userId: Scalars['String']['input'];
|
||||||
@@ -1952,18 +1952,19 @@ export type AddContextDocMutationVariables = Exact<{
|
|||||||
options: AddContextDocInput;
|
options: AddContextDocInput;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type RemoveContextDocMutationVariables = Exact<{
|
|
||||||
options: RemoveContextDocInput;
|
|
||||||
}>;
|
|
||||||
|
|
||||||
export type AddContextDocMutation = {
|
export type AddContextDocMutation = {
|
||||||
__typename?: 'Mutation';
|
__typename?: 'Mutation';
|
||||||
addContextDoc: Array<{
|
addContextDoc: Array<{
|
||||||
__typename?: 'CopilotContextListItem';
|
__typename?: 'CopilotContextListItem';
|
||||||
id: string;
|
id: string;
|
||||||
|
createdAt: number;
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type RemoveContextDocMutationVariables = Exact<{
|
||||||
|
options: RemoveContextDocInput;
|
||||||
|
}>;
|
||||||
|
|
||||||
export type RemoveContextDocMutation = {
|
export type RemoveContextDocMutation = {
|
||||||
__typename?: 'Mutation';
|
__typename?: 'Mutation';
|
||||||
removeContextDoc: boolean;
|
removeContextDoc: boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user