mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 00:56:26 +08:00
feat(server): refactor copilot (#14892)
#### PR Dependency Tree * **PR #14892** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal)
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
mutation retryAudioTranscription($workspaceId: String!, $jobId: String!) {
|
||||
retryAudioTranscription(workspaceId: $workspaceId, jobId: $jobId) {
|
||||
id
|
||||
status
|
||||
}
|
||||
}
|
||||
+2
-6
@@ -1,11 +1,7 @@
|
||||
query getAudioTranscription(
|
||||
$workspaceId: String!
|
||||
$jobId: String
|
||||
$blobId: String
|
||||
) {
|
||||
query getTranscriptTask($workspaceId: String!, $taskId: String, $blobId: String) {
|
||||
currentUser {
|
||||
copilot(workspaceId: $workspaceId) {
|
||||
audioTranscription(jobId: $jobId, blobId: $blobId) {
|
||||
transcriptTask(taskId: $taskId, blobId: $blobId) {
|
||||
id
|
||||
status
|
||||
title
|
||||
@@ -0,0 +1,6 @@
|
||||
mutation retryTranscriptTask($workspaceId: String!, $taskId: String!) {
|
||||
retryTranscriptTask(workspaceId: $workspaceId, taskId: $taskId) {
|
||||
id
|
||||
status
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
mutation claimAudioTranscription($jobId: String!) {
|
||||
claimAudioTranscription(jobId: $jobId) {
|
||||
mutation settleTranscriptTask($workspaceId: String!, $taskId: String!) {
|
||||
settleTranscriptTask(workspaceId: $workspaceId, taskId: $taskId) {
|
||||
id
|
||||
status
|
||||
title
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
mutation submitAudioTranscription(
|
||||
mutation submitTranscriptTask(
|
||||
$workspaceId: String!
|
||||
$blobId: String!
|
||||
$blob: Upload
|
||||
$blobs: [Upload!]
|
||||
$input: SubmitAudioTranscriptionInput
|
||||
) {
|
||||
submitAudioTranscription(
|
||||
submitTranscriptTask(
|
||||
blob: $blob
|
||||
blobs: $blobs
|
||||
blobId: $blobId
|
||||
@@ -1414,162 +1414,6 @@ export const getCopilotHistoriesQuery = {
|
||||
${paginatedCopilotChatsFragment}`,
|
||||
};
|
||||
|
||||
export const submitAudioTranscriptionMutation = {
|
||||
id: 'submitAudioTranscriptionMutation' as const,
|
||||
op: 'submitAudioTranscription',
|
||||
query: `mutation submitAudioTranscription($workspaceId: String!, $blobId: String!, $blob: Upload, $blobs: [Upload!], $input: SubmitAudioTranscriptionInput) {
|
||||
submitAudioTranscription(
|
||||
blob: $blob
|
||||
blobs: $blobs
|
||||
blobId: $blobId
|
||||
workspaceId: $workspaceId
|
||||
input: $input
|
||||
) {
|
||||
id
|
||||
status
|
||||
}
|
||||
}`,
|
||||
file: true,
|
||||
};
|
||||
|
||||
export const claimAudioTranscriptionMutation = {
|
||||
id: 'claimAudioTranscriptionMutation' as const,
|
||||
op: 'claimAudioTranscription',
|
||||
query: `mutation claimAudioTranscription($jobId: String!) {
|
||||
claimAudioTranscription(jobId: $jobId) {
|
||||
id
|
||||
status
|
||||
title
|
||||
summary
|
||||
actions
|
||||
sourceAudio {
|
||||
blobId
|
||||
mimeType
|
||||
durationMs
|
||||
sampleRate
|
||||
channels
|
||||
}
|
||||
quality {
|
||||
degraded
|
||||
overflowCount
|
||||
}
|
||||
sliceManifest {
|
||||
index
|
||||
fileName
|
||||
mimeType
|
||||
startSec
|
||||
durationSec
|
||||
byteSize
|
||||
}
|
||||
normalizedSegments {
|
||||
speaker
|
||||
startSec
|
||||
endSec
|
||||
start
|
||||
end
|
||||
text
|
||||
}
|
||||
normalizedTranscript
|
||||
summaryJson {
|
||||
title
|
||||
durationMinutes
|
||||
attendees
|
||||
keyPoints
|
||||
actionItems {
|
||||
description
|
||||
owner
|
||||
deadline
|
||||
}
|
||||
decisions
|
||||
openQuestions
|
||||
blockers
|
||||
}
|
||||
transcription {
|
||||
speaker
|
||||
start
|
||||
end
|
||||
transcription
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getAudioTranscriptionQuery = {
|
||||
id: 'getAudioTranscriptionQuery' as const,
|
||||
op: 'getAudioTranscription',
|
||||
query: `query getAudioTranscription($workspaceId: String!, $jobId: String, $blobId: String) {
|
||||
currentUser {
|
||||
copilot(workspaceId: $workspaceId) {
|
||||
audioTranscription(jobId: $jobId, blobId: $blobId) {
|
||||
id
|
||||
status
|
||||
title
|
||||
summary
|
||||
sourceAudio {
|
||||
blobId
|
||||
mimeType
|
||||
durationMs
|
||||
sampleRate
|
||||
channels
|
||||
}
|
||||
quality {
|
||||
degraded
|
||||
overflowCount
|
||||
}
|
||||
sliceManifest {
|
||||
index
|
||||
fileName
|
||||
mimeType
|
||||
startSec
|
||||
durationSec
|
||||
byteSize
|
||||
}
|
||||
normalizedSegments {
|
||||
speaker
|
||||
startSec
|
||||
endSec
|
||||
start
|
||||
end
|
||||
text
|
||||
}
|
||||
normalizedTranscript
|
||||
summaryJson {
|
||||
title
|
||||
durationMinutes
|
||||
attendees
|
||||
keyPoints
|
||||
actionItems {
|
||||
description
|
||||
owner
|
||||
deadline
|
||||
}
|
||||
decisions
|
||||
openQuestions
|
||||
blockers
|
||||
}
|
||||
transcription {
|
||||
speaker
|
||||
start
|
||||
end
|
||||
transcription
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
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',
|
||||
@@ -1727,6 +1571,162 @@ export const getCopilotSessionsQuery = {
|
||||
${paginatedCopilotChatsFragment}`,
|
||||
};
|
||||
|
||||
export const getTranscriptTaskQuery = {
|
||||
id: 'getTranscriptTaskQuery' as const,
|
||||
op: 'getTranscriptTask',
|
||||
query: `query getTranscriptTask($workspaceId: String!, $taskId: String, $blobId: String) {
|
||||
currentUser {
|
||||
copilot(workspaceId: $workspaceId) {
|
||||
transcriptTask(taskId: $taskId, blobId: $blobId) {
|
||||
id
|
||||
status
|
||||
title
|
||||
summary
|
||||
sourceAudio {
|
||||
blobId
|
||||
mimeType
|
||||
durationMs
|
||||
sampleRate
|
||||
channels
|
||||
}
|
||||
quality {
|
||||
degraded
|
||||
overflowCount
|
||||
}
|
||||
sliceManifest {
|
||||
index
|
||||
fileName
|
||||
mimeType
|
||||
startSec
|
||||
durationSec
|
||||
byteSize
|
||||
}
|
||||
normalizedSegments {
|
||||
speaker
|
||||
startSec
|
||||
endSec
|
||||
start
|
||||
end
|
||||
text
|
||||
}
|
||||
normalizedTranscript
|
||||
summaryJson {
|
||||
title
|
||||
durationMinutes
|
||||
attendees
|
||||
keyPoints
|
||||
actionItems {
|
||||
description
|
||||
owner
|
||||
deadline
|
||||
}
|
||||
decisions
|
||||
openQuestions
|
||||
blockers
|
||||
}
|
||||
transcription {
|
||||
speaker
|
||||
start
|
||||
end
|
||||
transcription
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const retryTranscriptTaskMutation = {
|
||||
id: 'retryTranscriptTaskMutation' as const,
|
||||
op: 'retryTranscriptTask',
|
||||
query: `mutation retryTranscriptTask($workspaceId: String!, $taskId: String!) {
|
||||
retryTranscriptTask(workspaceId: $workspaceId, taskId: $taskId) {
|
||||
id
|
||||
status
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const settleTranscriptTaskMutation = {
|
||||
id: 'settleTranscriptTaskMutation' as const,
|
||||
op: 'settleTranscriptTask',
|
||||
query: `mutation settleTranscriptTask($workspaceId: String!, $taskId: String!) {
|
||||
settleTranscriptTask(workspaceId: $workspaceId, taskId: $taskId) {
|
||||
id
|
||||
status
|
||||
title
|
||||
summary
|
||||
actions
|
||||
sourceAudio {
|
||||
blobId
|
||||
mimeType
|
||||
durationMs
|
||||
sampleRate
|
||||
channels
|
||||
}
|
||||
quality {
|
||||
degraded
|
||||
overflowCount
|
||||
}
|
||||
sliceManifest {
|
||||
index
|
||||
fileName
|
||||
mimeType
|
||||
startSec
|
||||
durationSec
|
||||
byteSize
|
||||
}
|
||||
normalizedSegments {
|
||||
speaker
|
||||
startSec
|
||||
endSec
|
||||
start
|
||||
end
|
||||
text
|
||||
}
|
||||
normalizedTranscript
|
||||
summaryJson {
|
||||
title
|
||||
durationMinutes
|
||||
attendees
|
||||
keyPoints
|
||||
actionItems {
|
||||
description
|
||||
owner
|
||||
deadline
|
||||
}
|
||||
decisions
|
||||
openQuestions
|
||||
blockers
|
||||
}
|
||||
transcription {
|
||||
speaker
|
||||
start
|
||||
end
|
||||
transcription
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const submitTranscriptTaskMutation = {
|
||||
id: 'submitTranscriptTaskMutation' as const,
|
||||
op: 'submitTranscriptTask',
|
||||
query: `mutation submitTranscriptTask($workspaceId: String!, $blobId: String!, $blob: Upload, $blobs: [Upload!], $input: SubmitAudioTranscriptionInput) {
|
||||
submitTranscriptTask(
|
||||
blob: $blob
|
||||
blobs: $blobs
|
||||
blobId: $blobId
|
||||
workspaceId: $workspaceId
|
||||
input: $input
|
||||
) {
|
||||
id
|
||||
status
|
||||
}
|
||||
}`,
|
||||
file: true,
|
||||
};
|
||||
|
||||
export const addWorkspaceEmbeddingFilesMutation = {
|
||||
id: 'addWorkspaceEmbeddingFilesMutation' as const,
|
||||
op: 'addWorkspaceEmbeddingFiles',
|
||||
|
||||
@@ -531,7 +531,6 @@ export interface ContextWorkspaceEmbeddingStatus {
|
||||
|
||||
export interface Copilot {
|
||||
__typename?: 'Copilot';
|
||||
audioTranscription: Maybe<TranscriptionResultType>;
|
||||
chats: PaginatedCopilotHistoriesType;
|
||||
/** Get the context list of a session */
|
||||
contexts: Array<CopilotContext>;
|
||||
@@ -548,14 +547,10 @@ export interface Copilot {
|
||||
* @deprecated use `chats` instead
|
||||
*/
|
||||
sessions: Array<CopilotSessionType>;
|
||||
transcriptTask: Maybe<TranscriptionResultType>;
|
||||
workspaceId: Maybe<Scalars['ID']['output']>;
|
||||
}
|
||||
|
||||
export interface CopilotAudioTranscriptionArgs {
|
||||
blobId?: InputMaybe<Scalars['String']['input']>;
|
||||
jobId?: InputMaybe<Scalars['String']['input']>;
|
||||
}
|
||||
|
||||
export interface CopilotChatsArgs {
|
||||
docId?: InputMaybe<Scalars['String']['input']>;
|
||||
options?: InputMaybe<QueryChatHistoriesInput>;
|
||||
@@ -585,6 +580,11 @@ export interface CopilotSessionsArgs {
|
||||
options?: InputMaybe<QueryChatSessionsInput>;
|
||||
}
|
||||
|
||||
export interface CopilotTranscriptTaskArgs {
|
||||
blobId?: InputMaybe<Scalars['String']['input']>;
|
||||
taskId?: InputMaybe<Scalars['String']['input']>;
|
||||
}
|
||||
|
||||
export interface CopilotContext {
|
||||
__typename?: 'CopilotContext';
|
||||
/** list blobs in context */
|
||||
@@ -1735,7 +1735,6 @@ export interface Mutation {
|
||||
cancelSubscription: SubscriptionType;
|
||||
changeEmail: UserType;
|
||||
changePassword: Scalars['Boolean']['output'];
|
||||
claimAudioTranscription: Maybe<TranscriptionResultType>;
|
||||
/** Cleanup sessions */
|
||||
cleanupCopilotSession: Array<Scalars['String']['output']>;
|
||||
completeBlobUpload: Scalars['String']['output'];
|
||||
@@ -1821,7 +1820,7 @@ export interface Mutation {
|
||||
/** Resolve a comment or not */
|
||||
resolveComment: Scalars['Boolean']['output'];
|
||||
resumeSubscription: SubscriptionType;
|
||||
retryAudioTranscription: Maybe<TranscriptionResultType>;
|
||||
retryTranscriptTask: Maybe<TranscriptionResultType>;
|
||||
revokeDocUserRoles: Scalars['Boolean']['output'];
|
||||
revokeInviteLink: Scalars['Boolean']['output'];
|
||||
revokeMember: Scalars['Boolean']['output'];
|
||||
@@ -1834,11 +1833,8 @@ export interface Mutation {
|
||||
sendVerifyChangeEmail: Scalars['Boolean']['output'];
|
||||
sendVerifyEmail: Scalars['Boolean']['output'];
|
||||
setBlob: Scalars['String']['output'];
|
||||
submitAudioTranscription: Maybe<TranscriptionResultType>;
|
||||
/** Trigger cleanup of trashed doc embeddings */
|
||||
triggerCleanupTrashedDocEmbeddings: Scalars['Boolean']['output'];
|
||||
/** Trigger generate missing titles cron job */
|
||||
triggerGenerateTitleCron: Scalars['Boolean']['output'];
|
||||
settleTranscriptTask: Maybe<TranscriptionResultType>;
|
||||
submitTranscriptTask: Maybe<TranscriptionResultType>;
|
||||
unlinkCalendarAccount: Scalars['Boolean']['output'];
|
||||
/** update app configuration */
|
||||
updateAppConfig: Scalars['JSONObject']['output'];
|
||||
@@ -1952,10 +1948,6 @@ export interface MutationChangePasswordArgs {
|
||||
userId?: InputMaybe<Scalars['String']['input']>;
|
||||
}
|
||||
|
||||
export interface MutationClaimAudioTranscriptionArgs {
|
||||
jobId: Scalars['String']['input'];
|
||||
}
|
||||
|
||||
export interface MutationCleanupCopilotSessionArgs {
|
||||
options: DeleteSessionInput;
|
||||
}
|
||||
@@ -2175,8 +2167,8 @@ export interface MutationResumeSubscriptionArgs {
|
||||
workspaceId?: InputMaybe<Scalars['String']['input']>;
|
||||
}
|
||||
|
||||
export interface MutationRetryAudioTranscriptionArgs {
|
||||
jobId: Scalars['String']['input'];
|
||||
export interface MutationRetryTranscriptTaskArgs {
|
||||
taskId: Scalars['String']['input'];
|
||||
workspaceId: Scalars['String']['input'];
|
||||
}
|
||||
|
||||
@@ -2236,7 +2228,12 @@ export interface MutationSetBlobArgs {
|
||||
workspaceId: Scalars['String']['input'];
|
||||
}
|
||||
|
||||
export interface MutationSubmitAudioTranscriptionArgs {
|
||||
export interface MutationSettleTranscriptTaskArgs {
|
||||
taskId: Scalars['String']['input'];
|
||||
workspaceId: Scalars['String']['input'];
|
||||
}
|
||||
|
||||
export interface MutationSubmitTranscriptTaskArgs {
|
||||
blob?: InputMaybe<Scalars['Upload']['input']>;
|
||||
blobId: Scalars['String']['input'];
|
||||
blobs?: InputMaybe<Array<Scalars['Upload']['input']>>;
|
||||
@@ -2962,6 +2959,7 @@ export interface SubmitAudioTranscriptionInput {
|
||||
quality?: InputMaybe<TranscriptionQualityInput>;
|
||||
sliceManifest?: InputMaybe<Array<AudioSliceManifestItemInput>>;
|
||||
sourceAudio?: InputMaybe<TranscriptionSourceAudioInput>;
|
||||
strategy?: InputMaybe<Scalars['String']['input']>;
|
||||
}
|
||||
|
||||
export interface SubscriptionAlreadyExistsDataType {
|
||||
@@ -3063,6 +3061,12 @@ export interface TimeWindow {
|
||||
to: Scalars['DateTime']['output'];
|
||||
}
|
||||
|
||||
export interface TranscriptProviderMetaType {
|
||||
__typename?: 'TranscriptProviderMetaType';
|
||||
model: Maybe<Scalars['String']['output']>;
|
||||
provider: Maybe<Scalars['String']['output']>;
|
||||
}
|
||||
|
||||
export interface TranscriptionItemType {
|
||||
__typename?: 'TranscriptionItemType';
|
||||
end: Scalars['String']['output'];
|
||||
@@ -3088,14 +3092,17 @@ export interface TranscriptionResultType {
|
||||
id: Scalars['ID']['output'];
|
||||
normalizedSegments: Maybe<Array<NormalizedTranscriptSegmentType>>;
|
||||
normalizedTranscript: Maybe<Scalars['String']['output']>;
|
||||
providerMeta: Maybe<TranscriptProviderMetaType>;
|
||||
quality: Maybe<TranscriptionQualityType>;
|
||||
sliceManifest: Maybe<Array<AudioSliceManifestItemType>>;
|
||||
sourceAudio: Maybe<TranscriptionSourceAudioType>;
|
||||
status: AiJobStatus;
|
||||
strategy: Maybe<Scalars['String']['output']>;
|
||||
summary: Maybe<Scalars['String']['output']>;
|
||||
summaryJson: Maybe<MeetingSummaryV2Type>;
|
||||
title: Maybe<Scalars['String']['output']>;
|
||||
transcription: Maybe<Array<TranscriptionItemType>>;
|
||||
version: Maybe<Scalars['String']['output']>;
|
||||
}
|
||||
|
||||
export interface TranscriptionSourceAudioInput {
|
||||
@@ -5265,188 +5272,6 @@ export type GetCopilotHistoriesQuery = {
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type SubmitAudioTranscriptionMutationVariables = Exact<{
|
||||
workspaceId: Scalars['String']['input'];
|
||||
blobId: Scalars['String']['input'];
|
||||
blob?: InputMaybe<Scalars['Upload']['input']>;
|
||||
blobs?: InputMaybe<
|
||||
Array<Scalars['Upload']['input']> | Scalars['Upload']['input']
|
||||
>;
|
||||
input?: InputMaybe<SubmitAudioTranscriptionInput>;
|
||||
}>;
|
||||
|
||||
export type SubmitAudioTranscriptionMutation = {
|
||||
__typename?: 'Mutation';
|
||||
submitAudioTranscription: {
|
||||
__typename?: 'TranscriptionResultType';
|
||||
id: string;
|
||||
status: AiJobStatus;
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type ClaimAudioTranscriptionMutationVariables = Exact<{
|
||||
jobId: Scalars['String']['input'];
|
||||
}>;
|
||||
|
||||
export type ClaimAudioTranscriptionMutation = {
|
||||
__typename?: 'Mutation';
|
||||
claimAudioTranscription: {
|
||||
__typename?: 'TranscriptionResultType';
|
||||
id: string;
|
||||
status: AiJobStatus;
|
||||
title: string | null;
|
||||
summary: string | null;
|
||||
actions: string | null;
|
||||
normalizedTranscript: string | null;
|
||||
sourceAudio: {
|
||||
__typename?: 'TranscriptionSourceAudioType';
|
||||
blobId: string | null;
|
||||
mimeType: string | null;
|
||||
durationMs: number | null;
|
||||
sampleRate: number | null;
|
||||
channels: number | null;
|
||||
} | null;
|
||||
quality: {
|
||||
__typename?: 'TranscriptionQualityType';
|
||||
degraded: boolean | null;
|
||||
overflowCount: number | null;
|
||||
} | null;
|
||||
sliceManifest: Array<{
|
||||
__typename?: 'AudioSliceManifestItemType';
|
||||
index: number;
|
||||
fileName: string;
|
||||
mimeType: string;
|
||||
startSec: number;
|
||||
durationSec: number;
|
||||
byteSize: number | null;
|
||||
}> | null;
|
||||
normalizedSegments: Array<{
|
||||
__typename?: 'NormalizedTranscriptSegmentType';
|
||||
speaker: string;
|
||||
startSec: number;
|
||||
endSec: number;
|
||||
start: string;
|
||||
end: string;
|
||||
text: string;
|
||||
}> | null;
|
||||
summaryJson: {
|
||||
__typename?: 'MeetingSummaryV2Type';
|
||||
title: string;
|
||||
durationMinutes: number;
|
||||
attendees: Array<string>;
|
||||
keyPoints: Array<string>;
|
||||
decisions: Array<string>;
|
||||
openQuestions: Array<string>;
|
||||
blockers: Array<string>;
|
||||
actionItems: Array<{
|
||||
__typename?: 'MeetingActionItemType';
|
||||
description: string;
|
||||
owner: string | null;
|
||||
deadline: string | null;
|
||||
}>;
|
||||
} | null;
|
||||
transcription: Array<{
|
||||
__typename?: 'TranscriptionItemType';
|
||||
speaker: string;
|
||||
start: string;
|
||||
end: string;
|
||||
transcription: string;
|
||||
}> | null;
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type GetAudioTranscriptionQueryVariables = Exact<{
|
||||
workspaceId: Scalars['String']['input'];
|
||||
jobId?: InputMaybe<Scalars['String']['input']>;
|
||||
blobId?: InputMaybe<Scalars['String']['input']>;
|
||||
}>;
|
||||
|
||||
export type GetAudioTranscriptionQuery = {
|
||||
__typename?: 'Query';
|
||||
currentUser: {
|
||||
__typename?: 'UserType';
|
||||
copilot: {
|
||||
__typename?: 'Copilot';
|
||||
audioTranscription: {
|
||||
__typename?: 'TranscriptionResultType';
|
||||
id: string;
|
||||
status: AiJobStatus;
|
||||
title: string | null;
|
||||
summary: string | null;
|
||||
normalizedTranscript: string | null;
|
||||
sourceAudio: {
|
||||
__typename?: 'TranscriptionSourceAudioType';
|
||||
blobId: string | null;
|
||||
mimeType: string | null;
|
||||
durationMs: number | null;
|
||||
sampleRate: number | null;
|
||||
channels: number | null;
|
||||
} | null;
|
||||
quality: {
|
||||
__typename?: 'TranscriptionQualityType';
|
||||
degraded: boolean | null;
|
||||
overflowCount: number | null;
|
||||
} | null;
|
||||
sliceManifest: Array<{
|
||||
__typename?: 'AudioSliceManifestItemType';
|
||||
index: number;
|
||||
fileName: string;
|
||||
mimeType: string;
|
||||
startSec: number;
|
||||
durationSec: number;
|
||||
byteSize: number | null;
|
||||
}> | null;
|
||||
normalizedSegments: Array<{
|
||||
__typename?: 'NormalizedTranscriptSegmentType';
|
||||
speaker: string;
|
||||
startSec: number;
|
||||
endSec: number;
|
||||
start: string;
|
||||
end: string;
|
||||
text: string;
|
||||
}> | null;
|
||||
summaryJson: {
|
||||
__typename?: 'MeetingSummaryV2Type';
|
||||
title: string;
|
||||
durationMinutes: number;
|
||||
attendees: Array<string>;
|
||||
keyPoints: Array<string>;
|
||||
decisions: Array<string>;
|
||||
openQuestions: Array<string>;
|
||||
blockers: Array<string>;
|
||||
actionItems: Array<{
|
||||
__typename?: 'MeetingActionItemType';
|
||||
description: string;
|
||||
owner: string | null;
|
||||
deadline: string | null;
|
||||
}>;
|
||||
} | null;
|
||||
transcription: Array<{
|
||||
__typename?: 'TranscriptionItemType';
|
||||
speaker: string;
|
||||
start: string;
|
||||
end: string;
|
||||
transcription: string;
|
||||
}> | null;
|
||||
} | null;
|
||||
};
|
||||
} | 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;
|
||||
}>;
|
||||
@@ -5829,6 +5654,189 @@ export type GetCopilotSessionsQuery = {
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type GetTranscriptTaskQueryVariables = Exact<{
|
||||
workspaceId: Scalars['String']['input'];
|
||||
taskId?: InputMaybe<Scalars['String']['input']>;
|
||||
blobId?: InputMaybe<Scalars['String']['input']>;
|
||||
}>;
|
||||
|
||||
export type GetTranscriptTaskQuery = {
|
||||
__typename?: 'Query';
|
||||
currentUser: {
|
||||
__typename?: 'UserType';
|
||||
copilot: {
|
||||
__typename?: 'Copilot';
|
||||
transcriptTask: {
|
||||
__typename?: 'TranscriptionResultType';
|
||||
id: string;
|
||||
status: AiJobStatus;
|
||||
title: string | null;
|
||||
summary: string | null;
|
||||
normalizedTranscript: string | null;
|
||||
sourceAudio: {
|
||||
__typename?: 'TranscriptionSourceAudioType';
|
||||
blobId: string | null;
|
||||
mimeType: string | null;
|
||||
durationMs: number | null;
|
||||
sampleRate: number | null;
|
||||
channels: number | null;
|
||||
} | null;
|
||||
quality: {
|
||||
__typename?: 'TranscriptionQualityType';
|
||||
degraded: boolean | null;
|
||||
overflowCount: number | null;
|
||||
} | null;
|
||||
sliceManifest: Array<{
|
||||
__typename?: 'AudioSliceManifestItemType';
|
||||
index: number;
|
||||
fileName: string;
|
||||
mimeType: string;
|
||||
startSec: number;
|
||||
durationSec: number;
|
||||
byteSize: number | null;
|
||||
}> | null;
|
||||
normalizedSegments: Array<{
|
||||
__typename?: 'NormalizedTranscriptSegmentType';
|
||||
speaker: string;
|
||||
startSec: number;
|
||||
endSec: number;
|
||||
start: string;
|
||||
end: string;
|
||||
text: string;
|
||||
}> | null;
|
||||
summaryJson: {
|
||||
__typename?: 'MeetingSummaryV2Type';
|
||||
title: string;
|
||||
durationMinutes: number;
|
||||
attendees: Array<string>;
|
||||
keyPoints: Array<string>;
|
||||
decisions: Array<string>;
|
||||
openQuestions: Array<string>;
|
||||
blockers: Array<string>;
|
||||
actionItems: Array<{
|
||||
__typename?: 'MeetingActionItemType';
|
||||
description: string;
|
||||
owner: string | null;
|
||||
deadline: string | null;
|
||||
}>;
|
||||
} | null;
|
||||
transcription: Array<{
|
||||
__typename?: 'TranscriptionItemType';
|
||||
speaker: string;
|
||||
start: string;
|
||||
end: string;
|
||||
transcription: string;
|
||||
}> | null;
|
||||
} | null;
|
||||
};
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type RetryTranscriptTaskMutationVariables = Exact<{
|
||||
workspaceId: Scalars['String']['input'];
|
||||
taskId: Scalars['String']['input'];
|
||||
}>;
|
||||
|
||||
export type RetryTranscriptTaskMutation = {
|
||||
__typename?: 'Mutation';
|
||||
retryTranscriptTask: {
|
||||
__typename?: 'TranscriptionResultType';
|
||||
id: string;
|
||||
status: AiJobStatus;
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type SettleTranscriptTaskMutationVariables = Exact<{
|
||||
workspaceId: Scalars['String']['input'];
|
||||
taskId: Scalars['String']['input'];
|
||||
}>;
|
||||
|
||||
export type SettleTranscriptTaskMutation = {
|
||||
__typename?: 'Mutation';
|
||||
settleTranscriptTask: {
|
||||
__typename?: 'TranscriptionResultType';
|
||||
id: string;
|
||||
status: AiJobStatus;
|
||||
title: string | null;
|
||||
summary: string | null;
|
||||
actions: string | null;
|
||||
normalizedTranscript: string | null;
|
||||
sourceAudio: {
|
||||
__typename?: 'TranscriptionSourceAudioType';
|
||||
blobId: string | null;
|
||||
mimeType: string | null;
|
||||
durationMs: number | null;
|
||||
sampleRate: number | null;
|
||||
channels: number | null;
|
||||
} | null;
|
||||
quality: {
|
||||
__typename?: 'TranscriptionQualityType';
|
||||
degraded: boolean | null;
|
||||
overflowCount: number | null;
|
||||
} | null;
|
||||
sliceManifest: Array<{
|
||||
__typename?: 'AudioSliceManifestItemType';
|
||||
index: number;
|
||||
fileName: string;
|
||||
mimeType: string;
|
||||
startSec: number;
|
||||
durationSec: number;
|
||||
byteSize: number | null;
|
||||
}> | null;
|
||||
normalizedSegments: Array<{
|
||||
__typename?: 'NormalizedTranscriptSegmentType';
|
||||
speaker: string;
|
||||
startSec: number;
|
||||
endSec: number;
|
||||
start: string;
|
||||
end: string;
|
||||
text: string;
|
||||
}> | null;
|
||||
summaryJson: {
|
||||
__typename?: 'MeetingSummaryV2Type';
|
||||
title: string;
|
||||
durationMinutes: number;
|
||||
attendees: Array<string>;
|
||||
keyPoints: Array<string>;
|
||||
decisions: Array<string>;
|
||||
openQuestions: Array<string>;
|
||||
blockers: Array<string>;
|
||||
actionItems: Array<{
|
||||
__typename?: 'MeetingActionItemType';
|
||||
description: string;
|
||||
owner: string | null;
|
||||
deadline: string | null;
|
||||
}>;
|
||||
} | null;
|
||||
transcription: Array<{
|
||||
__typename?: 'TranscriptionItemType';
|
||||
speaker: string;
|
||||
start: string;
|
||||
end: string;
|
||||
transcription: string;
|
||||
}> | null;
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type SubmitTranscriptTaskMutationVariables = Exact<{
|
||||
workspaceId: Scalars['String']['input'];
|
||||
blobId: Scalars['String']['input'];
|
||||
blob?: InputMaybe<Scalars['Upload']['input']>;
|
||||
blobs?: InputMaybe<
|
||||
Array<Scalars['Upload']['input']> | Scalars['Upload']['input']
|
||||
>;
|
||||
input?: InputMaybe<SubmitAudioTranscriptionInput>;
|
||||
}>;
|
||||
|
||||
export type SubmitTranscriptTaskMutation = {
|
||||
__typename?: 'Mutation';
|
||||
submitTranscriptTask: {
|
||||
__typename?: 'TranscriptionResultType';
|
||||
id: string;
|
||||
status: AiJobStatus;
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type AddWorkspaceEmbeddingFilesMutationVariables = Exact<{
|
||||
workspaceId: Scalars['String']['input'];
|
||||
blob: Scalars['Upload']['input'];
|
||||
@@ -7841,11 +7849,6 @@ export type Queries =
|
||||
variables: GetCopilotHistoriesQueryVariables;
|
||||
response: GetCopilotHistoriesQuery;
|
||||
}
|
||||
| {
|
||||
name: 'getAudioTranscriptionQuery';
|
||||
variables: GetAudioTranscriptionQueryVariables;
|
||||
response: GetAudioTranscriptionQuery;
|
||||
}
|
||||
| {
|
||||
name: 'getPromptModelsQuery';
|
||||
variables: GetPromptModelsQueryVariables;
|
||||
@@ -7876,6 +7879,11 @@ export type Queries =
|
||||
variables: GetCopilotSessionsQueryVariables;
|
||||
response: GetCopilotSessionsQuery;
|
||||
}
|
||||
| {
|
||||
name: 'getTranscriptTaskQuery';
|
||||
variables: GetTranscriptTaskQueryVariables;
|
||||
response: GetTranscriptTaskQuery;
|
||||
}
|
||||
| {
|
||||
name: 'getWorkspaceEmbeddingFilesQuery';
|
||||
variables: GetWorkspaceEmbeddingFilesQueryVariables;
|
||||
@@ -8348,21 +8356,6 @@ export type Mutations =
|
||||
variables: QueueWorkspaceEmbeddingMutationVariables;
|
||||
response: QueueWorkspaceEmbeddingMutation;
|
||||
}
|
||||
| {
|
||||
name: 'submitAudioTranscriptionMutation';
|
||||
variables: SubmitAudioTranscriptionMutationVariables;
|
||||
response: SubmitAudioTranscriptionMutation;
|
||||
}
|
||||
| {
|
||||
name: 'claimAudioTranscriptionMutation';
|
||||
variables: ClaimAudioTranscriptionMutationVariables;
|
||||
response: ClaimAudioTranscriptionMutation;
|
||||
}
|
||||
| {
|
||||
name: 'retryAudioTranscriptionMutation';
|
||||
variables: RetryAudioTranscriptionMutationVariables;
|
||||
response: RetryAudioTranscriptionMutation;
|
||||
}
|
||||
| {
|
||||
name: 'createCopilotMessageMutation';
|
||||
variables: CreateCopilotMessageMutationVariables;
|
||||
@@ -8393,6 +8386,21 @@ export type Mutations =
|
||||
variables: UpdateCopilotSessionMutationVariables;
|
||||
response: UpdateCopilotSessionMutation;
|
||||
}
|
||||
| {
|
||||
name: 'retryTranscriptTaskMutation';
|
||||
variables: RetryTranscriptTaskMutationVariables;
|
||||
response: RetryTranscriptTaskMutation;
|
||||
}
|
||||
| {
|
||||
name: 'settleTranscriptTaskMutation';
|
||||
variables: SettleTranscriptTaskMutationVariables;
|
||||
response: SettleTranscriptTaskMutation;
|
||||
}
|
||||
| {
|
||||
name: 'submitTranscriptTaskMutation';
|
||||
variables: SubmitTranscriptTaskMutationVariables;
|
||||
response: SubmitTranscriptTaskMutation;
|
||||
}
|
||||
| {
|
||||
name: 'addWorkspaceEmbeddingFilesMutation';
|
||||
variables: AddWorkspaceEmbeddingFilesMutationVariables;
|
||||
|
||||
Reference in New Issue
Block a user