fix(core): fix error when server not support ai (#6796)

This commit is contained in:
EYHN
2024-05-07 08:25:27 +00:00
parent a0e0b6b53b
commit 35ce4adffe
13 changed files with 226 additions and 97 deletions

View File

@@ -213,6 +213,23 @@ export type ChangePasswordMutation = {
changePassword: { __typename?: 'UserType'; id: string };
};
export type CopilotQuotaQueryVariables = Exact<{ [key: string]: never }>;
export type CopilotQuotaQuery = {
__typename?: 'Query';
currentUser: {
__typename?: 'UserType';
copilot: {
__typename?: 'Copilot';
quota: {
__typename?: 'CopilotQuota';
limit: number | null;
used: number;
};
};
} | null;
};
export type CreateCheckoutSessionMutationVariables = Exact<{
input: CreateCheckoutSessionInput;
}>;
@@ -353,23 +370,6 @@ export type GetCopilotHistoriesQuery = {
} | null;
};
export type GetCopilotQuotaQueryVariables = Exact<{ [key: string]: never }>;
export type GetCopilotQuotaQuery = {
__typename?: 'Query';
currentUser: {
__typename?: 'UserType';
copilot: {
__typename?: 'Copilot';
quota: {
__typename?: 'CopilotQuota';
limit: number | null;
used: number;
};
};
} | null;
};
export type GetCopilotSessionsQueryVariables = Exact<{
workspaceId: Scalars['String']['input'];
}>;
@@ -677,14 +677,6 @@ export type QuotaQuery = {
currentUser: {
__typename?: 'UserType';
id: string;
copilot: {
__typename?: 'Copilot';
quota: {
__typename?: 'CopilotQuota';
limit: number | null;
used: number;
};
};
quota: {
__typename?: 'UserQuota';
name: string;
@@ -1038,6 +1030,11 @@ export type Queries =
variables: ListBlobsQueryVariables;
response: ListBlobsQuery;
}
| {
name: 'copilotQuotaQuery';
variables: CopilotQuotaQueryVariables;
response: CopilotQuotaQuery;
}
| {
name: 'earlyAccessUsersQuery';
variables: EarlyAccessUsersQueryVariables;
@@ -1048,11 +1045,6 @@ export type Queries =
variables: GetCopilotHistoriesQueryVariables;
response: GetCopilotHistoriesQuery;
}
| {
name: 'getCopilotQuotaQuery';
variables: GetCopilotQuotaQueryVariables;
response: GetCopilotQuotaQuery;
}
| {
name: 'getCopilotSessionsQuery';
variables: GetCopilotSessionsQueryVariables;