mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat(server): update trascript endpoint (#11196)
This commit is contained in:
@@ -2,12 +2,13 @@ mutation claimAudioTranscription($jobId: String!) {
|
||||
claimAudioTranscription(jobId: $jobId) {
|
||||
id
|
||||
status
|
||||
title
|
||||
summary
|
||||
transcription {
|
||||
speaker
|
||||
start
|
||||
end
|
||||
transcription
|
||||
}
|
||||
summary
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +1,21 @@
|
||||
query getAudioTranscription(
|
||||
$workspaceId: String!
|
||||
$jobId: String!
|
||||
$jobId: String
|
||||
$blobId: String
|
||||
) {
|
||||
currentUser {
|
||||
copilot(workspaceId: $workspaceId) {
|
||||
audioTranscription(jobId: $jobId) {
|
||||
audioTranscription(jobId: $jobId, blobId: $blobId) {
|
||||
id
|
||||
status
|
||||
title
|
||||
summary
|
||||
transcription {
|
||||
speaker
|
||||
start
|
||||
end
|
||||
transcription
|
||||
}
|
||||
summary
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -633,13 +633,14 @@ export const claimAudioTranscriptionMutation = {
|
||||
claimAudioTranscription(jobId: $jobId) {
|
||||
id
|
||||
status
|
||||
title
|
||||
summary
|
||||
transcription {
|
||||
speaker
|
||||
start
|
||||
end
|
||||
transcription
|
||||
}
|
||||
summary
|
||||
}
|
||||
}`,
|
||||
};
|
||||
@@ -647,19 +648,20 @@ export const claimAudioTranscriptionMutation = {
|
||||
export const getAudioTranscriptionQuery = {
|
||||
id: 'getAudioTranscriptionQuery' as const,
|
||||
op: 'getAudioTranscription',
|
||||
query: `query getAudioTranscription($workspaceId: String!, $jobId: String!) {
|
||||
query: `query getAudioTranscription($workspaceId: String!, $jobId: String, $blobId: String) {
|
||||
currentUser {
|
||||
copilot(workspaceId: $workspaceId) {
|
||||
audioTranscription(jobId: $jobId) {
|
||||
audioTranscription(jobId: $jobId, blobId: $blobId) {
|
||||
id
|
||||
status
|
||||
title
|
||||
summary
|
||||
transcription {
|
||||
speaker
|
||||
start
|
||||
end
|
||||
transcription
|
||||
}
|
||||
summary
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ export interface ContextWorkspaceEmbeddingStatus {
|
||||
|
||||
export interface Copilot {
|
||||
__typename?: 'Copilot';
|
||||
audioTranscription: Array<TranscriptionResultType>;
|
||||
audioTranscription: Maybe<TranscriptionResultType>;
|
||||
/** Get the context list of a session */
|
||||
contexts: Array<CopilotContext>;
|
||||
histories: Array<CopilotHistories>;
|
||||
@@ -140,6 +140,7 @@ export interface Copilot {
|
||||
}
|
||||
|
||||
export interface CopilotAudioTranscriptionArgs {
|
||||
blobId?: InputMaybe<Scalars['String']['input']>;
|
||||
jobId?: InputMaybe<Scalars['String']['input']>;
|
||||
}
|
||||
|
||||
@@ -1965,6 +1966,7 @@ export interface TranscriptionResultType {
|
||||
id: Scalars['ID']['output'];
|
||||
status: AiJobStatus;
|
||||
summary: Maybe<Scalars['String']['output']>;
|
||||
title: Maybe<Scalars['String']['output']>;
|
||||
transcription: Maybe<Array<TranscriptionItemType>>;
|
||||
}
|
||||
|
||||
@@ -3057,6 +3059,7 @@ export type ClaimAudioTranscriptionMutation = {
|
||||
__typename?: 'TranscriptionResultType';
|
||||
id: string;
|
||||
status: AiJobStatus;
|
||||
title: string | null;
|
||||
summary: string | null;
|
||||
transcription: Array<{
|
||||
__typename?: 'TranscriptionItemType';
|
||||
@@ -3070,7 +3073,8 @@ export type ClaimAudioTranscriptionMutation = {
|
||||
|
||||
export type GetAudioTranscriptionQueryVariables = Exact<{
|
||||
workspaceId: Scalars['String']['input'];
|
||||
jobId: Scalars['String']['input'];
|
||||
jobId?: InputMaybe<Scalars['String']['input']>;
|
||||
blobId?: InputMaybe<Scalars['String']['input']>;
|
||||
}>;
|
||||
|
||||
export type GetAudioTranscriptionQuery = {
|
||||
@@ -3079,10 +3083,11 @@ export type GetAudioTranscriptionQuery = {
|
||||
__typename?: 'UserType';
|
||||
copilot: {
|
||||
__typename?: 'Copilot';
|
||||
audioTranscription: Array<{
|
||||
audioTranscription: {
|
||||
__typename?: 'TranscriptionResultType';
|
||||
id: string;
|
||||
status: AiJobStatus;
|
||||
title: string | null;
|
||||
summary: string | null;
|
||||
transcription: Array<{
|
||||
__typename?: 'TranscriptionItemType';
|
||||
@@ -3091,7 +3096,7 @@ export type GetAudioTranscriptionQuery = {
|
||||
end: string;
|
||||
transcription: string;
|
||||
}> | null;
|
||||
}>;
|
||||
} | null;
|
||||
};
|
||||
} | null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user