chore: update cleanup history gql (#7103)

This commit is contained in:
darkskygit
2024-05-29 07:34:08 +00:00
parent 4b30fbc1e2
commit 0dfcc97c52
3 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
mutation cleanupCopilotSession($input: DeleteSessionInput!) {
cleanupCopilotSession(options: $input)
}

View File

@@ -112,6 +112,17 @@ query copilotQuota {
}`,
};
export const cleanupCopilotSessionMutation = {
id: 'cleanupCopilotSessionMutation' as const,
operationName: 'cleanupCopilotSession',
definitionName: 'cleanupCopilotSession',
containsFile: false,
query: `
mutation cleanupCopilotSession($input: DeleteSessionInput!) {
cleanupCopilotSession(options: $input)
}`,
};
export const createCheckoutSessionMutation = {
id: 'createCheckoutSessionMutation' as const,
operationName: 'createCheckoutSession',

View File

@@ -30,12 +30,39 @@ export interface Scalars {
DateTime: { input: string; output: string };
/** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
JSON: { input: Record<string, string>; output: Record<string, string> };
/** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
JSONObject: { input: any; output: any };
/** The `SafeInt` scalar type represents non-fractional signed whole numeric values that are considered safe as defined by the ECMAScript specification. */
SafeInt: { input: number; output: number };
/** The `Upload` scalar type represents a file upload. */
Upload: { input: File; output: File };
}
export enum CopilotModels {
DallE3 = 'DallE3',
Gpt4Omni = 'Gpt4Omni',
Gpt4TurboPreview = 'Gpt4TurboPreview',
Gpt4VisionPreview = 'Gpt4VisionPreview',
Gpt35Turbo = 'Gpt35Turbo',
TextEmbedding3Large = 'TextEmbedding3Large',
TextEmbedding3Small = 'TextEmbedding3Small',
TextEmbeddingAda002 = 'TextEmbeddingAda002',
TextModerationLatest = 'TextModerationLatest',
TextModerationStable = 'TextModerationStable',
}
export interface CopilotPromptMessageInput {
content: Scalars['String']['input'];
params: InputMaybe<Scalars['JSON']['input']>;
role: CopilotPromptMessageRole;
}
export enum CopilotPromptMessageRole {
assistant = 'assistant',
system = 'system',
user = 'user',
}
export interface CreateChatMessageInput {
attachments: InputMaybe<Array<Scalars['String']['input']>>;
blobs: InputMaybe<Array<Scalars['Upload']['input']>>;
@@ -59,6 +86,13 @@ export interface CreateCheckoutSessionInput {
successCallbackLink: Scalars['String']['input'];
}
export interface CreateCopilotPromptInput {
action: InputMaybe<Scalars['String']['input']>;
messages: Array<CopilotPromptMessageInput>;
model: CopilotModels;
name: Scalars['String']['input'];
}
export interface DeleteSessionInput {
docId: Scalars['String']['input'];
sessionIds: Array<Scalars['String']['input']>;
@@ -73,6 +107,7 @@ export enum EarlyAccessType {
/** The type of workspace feature */
export enum FeatureType {
AIEarlyAccess = 'AIEarlyAccess',
Admin = 'Admin',
Copilot = 'Copilot',
EarlyAccess = 'EarlyAccess',
UnlimitedCopilot = 'UnlimitedCopilot',
@@ -245,6 +280,15 @@ export type CopilotQuotaQuery = {
} | null;
};
export type CleanupCopilotSessionMutationVariables = Exact<{
input: DeleteSessionInput;
}>;
export type CleanupCopilotSessionMutation = {
__typename?: 'Mutation';
cleanupCopilotSession: string;
};
export type CreateCheckoutSessionMutationVariables = Exact<{
input: CreateCheckoutSessionInput;
}>;
@@ -1217,6 +1261,11 @@ export type Mutations =
variables: ChangePasswordMutationVariables;
response: ChangePasswordMutation;
}
| {
name: 'cleanupCopilotSessionMutation';
variables: CleanupCopilotSessionMutationVariables;
response: CleanupCopilotSessionMutation;
}
| {
name: 'createCheckoutSessionMutation';
variables: CreateCheckoutSessionMutationVariables;