mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
feat(server): retry transcript job (#11414)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
mutation retryAudioTranscription($workspaceId: String!, $jobId: String!) {
|
||||
retryAudioTranscription(workspaceId: $workspaceId, jobId: $jobId) {
|
||||
id
|
||||
status
|
||||
}
|
||||
}
|
||||
@@ -656,6 +656,17 @@ export const getAudioTranscriptionQuery = {
|
||||
}`,
|
||||
};
|
||||
|
||||
export const retryAudioTranscriptionMutation = {
|
||||
id: 'retryAudioTranscriptionMutation' as const,
|
||||
op: 'retryAudioTranscription',
|
||||
query: `mutation retryAudioTranscription($workspaceId: String!, $jobId: String!) {
|
||||
retryAudioTranscription(workspaceId: $workspaceId, jobId: $jobId) {
|
||||
id
|
||||
status
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const createCopilotMessageMutation = {
|
||||
id: 'createCopilotMessageMutation' as const,
|
||||
op: 'createCopilotMessage',
|
||||
|
||||
@@ -581,6 +581,7 @@ export enum ErrorNames {
|
||||
COPILOT_SESSION_DELETED = 'COPILOT_SESSION_DELETED',
|
||||
COPILOT_SESSION_NOT_FOUND = 'COPILOT_SESSION_NOT_FOUND',
|
||||
COPILOT_TRANSCRIPTION_JOB_EXISTS = 'COPILOT_TRANSCRIPTION_JOB_EXISTS',
|
||||
COPILOT_TRANSCRIPTION_JOB_NOT_FOUND = 'COPILOT_TRANSCRIPTION_JOB_NOT_FOUND',
|
||||
CUSTOMER_PORTAL_CREATE_FAILED = 'CUSTOMER_PORTAL_CREATE_FAILED',
|
||||
DOC_ACTION_DENIED = 'DOC_ACTION_DENIED',
|
||||
DOC_DEFAULT_ROLE_CAN_NOT_BE_OWNER = 'DOC_DEFAULT_ROLE_CAN_NOT_BE_OWNER',
|
||||
@@ -1102,6 +1103,7 @@ export interface Mutation {
|
||||
removeContextFile: Scalars['Boolean']['output'];
|
||||
removeWorkspaceFeature: Scalars['Boolean']['output'];
|
||||
resumeSubscription: SubscriptionType;
|
||||
retryAudioTranscription: Maybe<TranscriptionResultType>;
|
||||
revoke: Scalars['Boolean']['output'];
|
||||
revokeDocUserRoles: Scalars['Boolean']['output'];
|
||||
revokeInviteLink: Scalars['Boolean']['output'];
|
||||
@@ -1367,6 +1369,11 @@ export interface MutationResumeSubscriptionArgs {
|
||||
workspaceId?: InputMaybe<Scalars['String']['input']>;
|
||||
}
|
||||
|
||||
export interface MutationRetryAudioTranscriptionArgs {
|
||||
jobId: Scalars['String']['input'];
|
||||
workspaceId: Scalars['String']['input'];
|
||||
}
|
||||
|
||||
export interface MutationRevokeArgs {
|
||||
userId: Scalars['String']['input'];
|
||||
workspaceId: Scalars['String']['input'];
|
||||
@@ -3048,6 +3055,20 @@ export type GetAudioTranscriptionQuery = {
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type RetryAudioTranscriptionMutationVariables = Exact<{
|
||||
workspaceId: Scalars['String']['input'];
|
||||
jobId: Scalars['String']['input'];
|
||||
}>;
|
||||
|
||||
export type RetryAudioTranscriptionMutation = {
|
||||
__typename?: 'Mutation';
|
||||
retryAudioTranscription: {
|
||||
__typename?: 'TranscriptionResultType';
|
||||
id: string;
|
||||
status: AiJobStatus;
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type CreateCopilotMessageMutationVariables = Exact<{
|
||||
options: CreateChatMessageInput;
|
||||
}>;
|
||||
@@ -4706,6 +4727,11 @@ export type Mutations =
|
||||
variables: ClaimAudioTranscriptionMutationVariables;
|
||||
response: ClaimAudioTranscriptionMutation;
|
||||
}
|
||||
| {
|
||||
name: 'retryAudioTranscriptionMutation';
|
||||
variables: RetryAudioTranscriptionMutationVariables;
|
||||
response: RetryAudioTranscriptionMutation;
|
||||
}
|
||||
| {
|
||||
name: 'createCopilotMessageMutation';
|
||||
variables: CreateCopilotMessageMutationVariables;
|
||||
|
||||
Reference in New Issue
Block a user