feat(server): retry transcript job (#11414)

This commit is contained in:
darkskygit
2025-04-02 12:02:07 +00:00
parent 3b13affa58
commit 501b5f6a97
11 changed files with 125 additions and 10 deletions

View File

@@ -0,0 +1,6 @@
mutation retryAudioTranscription($workspaceId: String!, $jobId: String!) {
retryAudioTranscription(workspaceId: $workspaceId, jobId: $jobId) {
id
status
}
}

View File

@@ -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',

View File

@@ -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;