diff --git a/www/app/api/.openapi-generator/FILES b/www/app/api/.openapi-generator/FILES index 532a6a16..2b965ee1 100644 --- a/www/app/api/.openapi-generator/FILES +++ b/www/app/api/.openapi-generator/FILES @@ -2,16 +2,24 @@ apis/DefaultApi.ts apis/index.ts index.ts models/AudioWaveform.ts +models/CreateParticipant.ts models/CreateTranscript.ts models/DeletionStatus.ts models/GetTranscript.ts models/GetTranscriptSegmentTopic.ts models/GetTranscriptTopic.ts +models/GetTranscriptTopicWithWords.ts models/HTTPValidationError.ts models/PageGetTranscript.ts +models/Participant.ts models/RtcOffer.ts +models/SpeakerAssignment.ts +models/SpeakerAssignmentStatus.ts +models/TranscriptParticipant.ts +models/UpdateParticipant.ts models/UpdateTranscript.ts models/UserInfo.ts models/ValidationError.ts +models/Word.ts models/index.ts runtime.ts diff --git a/www/app/api/apis/DefaultApi.ts b/www/app/api/apis/DefaultApi.ts index 5bb2e7e9..ded2fa2e 100644 --- a/www/app/api/apis/DefaultApi.ts +++ b/www/app/api/apis/DefaultApi.ts @@ -15,17 +15,24 @@ import * as runtime from "../runtime"; import type { AudioWaveform, + CreateParticipant, CreateTranscript, DeletionStatus, GetTranscript, HTTPValidationError, PageGetTranscript, + Participant, RtcOffer, + SpeakerAssignment, + SpeakerAssignmentStatus, + UpdateParticipant, UpdateTranscript, } from "../models"; import { AudioWaveformFromJSON, AudioWaveformToJSON, + CreateParticipantFromJSON, + CreateParticipantToJSON, CreateTranscriptFromJSON, CreateTranscriptToJSON, DeletionStatusFromJSON, @@ -36,16 +43,39 @@ import { HTTPValidationErrorToJSON, PageGetTranscriptFromJSON, PageGetTranscriptToJSON, + ParticipantFromJSON, + ParticipantToJSON, RtcOfferFromJSON, RtcOfferToJSON, + SpeakerAssignmentFromJSON, + SpeakerAssignmentToJSON, + SpeakerAssignmentStatusFromJSON, + SpeakerAssignmentStatusToJSON, + UpdateParticipantFromJSON, + UpdateParticipantToJSON, UpdateTranscriptFromJSON, UpdateTranscriptToJSON, } from "../models"; +export interface V1TranscriptAddParticipantRequest { + transcriptId: any; + createParticipant: CreateParticipant; +} + +export interface V1TranscriptAssignSpeakerRequest { + transcriptId: any; + speakerAssignment: SpeakerAssignment; +} + export interface V1TranscriptDeleteRequest { transcriptId: any; } +export interface V1TranscriptDeleteParticipantRequest { + transcriptId: any; + participantId: any; +} + export interface V1TranscriptGetRequest { transcriptId: any; } @@ -59,10 +89,23 @@ export interface V1TranscriptGetAudioWaveformRequest { transcriptId: any; } +export interface V1TranscriptGetParticipantRequest { + transcriptId: any; + participantId: any; +} + +export interface V1TranscriptGetParticipantsRequest { + transcriptId: any; +} + export interface V1TranscriptGetTopicsRequest { transcriptId: any; } +export interface V1TranscriptGetTopicsWithWordsRequest { + transcriptId: any; +} + export interface V1TranscriptGetWebsocketEventsRequest { transcriptId: any; } @@ -77,6 +120,12 @@ export interface V1TranscriptUpdateRequest { updateTranscript: UpdateTranscript; } +export interface V1TranscriptUpdateParticipantRequest { + transcriptId: any; + participantId: any; + updateParticipant: UpdateParticipant; +} + export interface V1TranscriptsCreateRequest { createTranscript: CreateTranscript; } @@ -129,6 +178,154 @@ export class DefaultApi extends runtime.BaseAPI { return await response.value(); } + /** + * Transcript Add Participant + */ + async v1TranscriptAddParticipantRaw( + requestParameters: V1TranscriptAddParticipantRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise> { + if ( + requestParameters.transcriptId === null || + requestParameters.transcriptId === undefined + ) { + throw new runtime.RequiredError( + "transcriptId", + "Required parameter requestParameters.transcriptId was null or undefined when calling v1TranscriptAddParticipant.", + ); + } + + if ( + requestParameters.createParticipant === null || + requestParameters.createParticipant === undefined + ) { + throw new runtime.RequiredError( + "createParticipant", + "Required parameter requestParameters.createParticipant was null or undefined when calling v1TranscriptAddParticipant.", + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters["Content-Type"] = "application/json"; + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken( + "OAuth2AuthorizationCodeBearer", + [], + ); + } + + const response = await this.request( + { + path: `/v1/transcripts/{transcript_id}/participants`.replace( + `{${"transcript_id"}}`, + encodeURIComponent(String(requestParameters.transcriptId)), + ), + method: "POST", + headers: headerParameters, + query: queryParameters, + body: CreateParticipantToJSON(requestParameters.createParticipant), + }, + initOverrides, + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + ParticipantFromJSON(jsonValue), + ); + } + + /** + * Transcript Add Participant + */ + async v1TranscriptAddParticipant( + requestParameters: V1TranscriptAddParticipantRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise { + const response = await this.v1TranscriptAddParticipantRaw( + requestParameters, + initOverrides, + ); + return await response.value(); + } + + /** + * Transcript Assign Speaker + */ + async v1TranscriptAssignSpeakerRaw( + requestParameters: V1TranscriptAssignSpeakerRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise> { + if ( + requestParameters.transcriptId === null || + requestParameters.transcriptId === undefined + ) { + throw new runtime.RequiredError( + "transcriptId", + "Required parameter requestParameters.transcriptId was null or undefined when calling v1TranscriptAssignSpeaker.", + ); + } + + if ( + requestParameters.speakerAssignment === null || + requestParameters.speakerAssignment === undefined + ) { + throw new runtime.RequiredError( + "speakerAssignment", + "Required parameter requestParameters.speakerAssignment was null or undefined when calling v1TranscriptAssignSpeaker.", + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters["Content-Type"] = "application/json"; + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken( + "OAuth2AuthorizationCodeBearer", + [], + ); + } + + const response = await this.request( + { + path: `/v1/transcripts/{transcript_id}/speaker/assign`.replace( + `{${"transcript_id"}}`, + encodeURIComponent(String(requestParameters.transcriptId)), + ), + method: "PATCH", + headers: headerParameters, + query: queryParameters, + body: SpeakerAssignmentToJSON(requestParameters.speakerAssignment), + }, + initOverrides, + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SpeakerAssignmentStatusFromJSON(jsonValue), + ); + } + + /** + * Transcript Assign Speaker + */ + async v1TranscriptAssignSpeaker( + requestParameters: V1TranscriptAssignSpeakerRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise { + const response = await this.v1TranscriptAssignSpeakerRaw( + requestParameters, + initOverrides, + ); + return await response.value(); + } + /** * Transcript Delete */ @@ -190,6 +387,82 @@ export class DefaultApi extends runtime.BaseAPI { return await response.value(); } + /** + * Transcript Delete Participant + */ + async v1TranscriptDeleteParticipantRaw( + requestParameters: V1TranscriptDeleteParticipantRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise> { + if ( + requestParameters.transcriptId === null || + requestParameters.transcriptId === undefined + ) { + throw new runtime.RequiredError( + "transcriptId", + "Required parameter requestParameters.transcriptId was null or undefined when calling v1TranscriptDeleteParticipant.", + ); + } + + if ( + requestParameters.participantId === null || + requestParameters.participantId === undefined + ) { + throw new runtime.RequiredError( + "participantId", + "Required parameter requestParameters.participantId was null or undefined when calling v1TranscriptDeleteParticipant.", + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken( + "OAuth2AuthorizationCodeBearer", + [], + ); + } + + const response = await this.request( + { + path: `/v1/transcripts/{transcript_id}/participants/{participant_id}` + .replace( + `{${"transcript_id"}}`, + encodeURIComponent(String(requestParameters.transcriptId)), + ) + .replace( + `{${"participant_id"}}`, + encodeURIComponent(String(requestParameters.participantId)), + ), + method: "DELETE", + headers: headerParameters, + query: queryParameters, + }, + initOverrides, + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + DeletionStatusFromJSON(jsonValue), + ); + } + + /** + * Transcript Delete Participant + */ + async v1TranscriptDeleteParticipant( + requestParameters: V1TranscriptDeleteParticipantRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise { + const response = await this.v1TranscriptDeleteParticipantRaw( + requestParameters, + initOverrides, + ); + return await response.value(); + } + /** * Transcript Get */ @@ -379,6 +652,145 @@ export class DefaultApi extends runtime.BaseAPI { return await response.value(); } + /** + * Transcript Get Participant + */ + async v1TranscriptGetParticipantRaw( + requestParameters: V1TranscriptGetParticipantRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise> { + if ( + requestParameters.transcriptId === null || + requestParameters.transcriptId === undefined + ) { + throw new runtime.RequiredError( + "transcriptId", + "Required parameter requestParameters.transcriptId was null or undefined when calling v1TranscriptGetParticipant.", + ); + } + + if ( + requestParameters.participantId === null || + requestParameters.participantId === undefined + ) { + throw new runtime.RequiredError( + "participantId", + "Required parameter requestParameters.participantId was null or undefined when calling v1TranscriptGetParticipant.", + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken( + "OAuth2AuthorizationCodeBearer", + [], + ); + } + + const response = await this.request( + { + path: `/v1/transcripts/{transcript_id}/participants/{participant_id}` + .replace( + `{${"transcript_id"}}`, + encodeURIComponent(String(requestParameters.transcriptId)), + ) + .replace( + `{${"participant_id"}}`, + encodeURIComponent(String(requestParameters.participantId)), + ), + method: "GET", + headers: headerParameters, + query: queryParameters, + }, + initOverrides, + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + ParticipantFromJSON(jsonValue), + ); + } + + /** + * Transcript Get Participant + */ + async v1TranscriptGetParticipant( + requestParameters: V1TranscriptGetParticipantRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise { + const response = await this.v1TranscriptGetParticipantRaw( + requestParameters, + initOverrides, + ); + return await response.value(); + } + + /** + * Transcript Get Participants + */ + async v1TranscriptGetParticipantsRaw( + requestParameters: V1TranscriptGetParticipantsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise> { + if ( + requestParameters.transcriptId === null || + requestParameters.transcriptId === undefined + ) { + throw new runtime.RequiredError( + "transcriptId", + "Required parameter requestParameters.transcriptId was null or undefined when calling v1TranscriptGetParticipants.", + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken( + "OAuth2AuthorizationCodeBearer", + [], + ); + } + + const response = await this.request( + { + path: `/v1/transcripts/{transcript_id}/participants`.replace( + `{${"transcript_id"}}`, + encodeURIComponent(String(requestParameters.transcriptId)), + ), + method: "GET", + headers: headerParameters, + query: queryParameters, + }, + initOverrides, + ); + + if (this.isJsonMime(response.headers.get("content-type"))) { + return new runtime.JSONApiResponse(response); + } else { + return new runtime.TextApiResponse(response) as any; + } + } + + /** + * Transcript Get Participants + */ + async v1TranscriptGetParticipants( + requestParameters: V1TranscriptGetParticipantsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise { + const response = await this.v1TranscriptGetParticipantsRaw( + requestParameters, + initOverrides, + ); + return await response.value(); + } + /** * Transcript Get Topics */ @@ -442,6 +854,69 @@ export class DefaultApi extends runtime.BaseAPI { return await response.value(); } + /** + * Transcript Get Topics With Words + */ + async v1TranscriptGetTopicsWithWordsRaw( + requestParameters: V1TranscriptGetTopicsWithWordsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise> { + if ( + requestParameters.transcriptId === null || + requestParameters.transcriptId === undefined + ) { + throw new runtime.RequiredError( + "transcriptId", + "Required parameter requestParameters.transcriptId was null or undefined when calling v1TranscriptGetTopicsWithWords.", + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken( + "OAuth2AuthorizationCodeBearer", + [], + ); + } + + const response = await this.request( + { + path: `/v1/transcripts/{transcript_id}/topics/with-words`.replace( + `{${"transcript_id"}}`, + encodeURIComponent(String(requestParameters.transcriptId)), + ), + method: "GET", + headers: headerParameters, + query: queryParameters, + }, + initOverrides, + ); + + if (this.isJsonMime(response.headers.get("content-type"))) { + return new runtime.JSONApiResponse(response); + } else { + return new runtime.TextApiResponse(response) as any; + } + } + + /** + * Transcript Get Topics With Words + */ + async v1TranscriptGetTopicsWithWords( + requestParameters: V1TranscriptGetTopicsWithWordsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise { + const response = await this.v1TranscriptGetTopicsWithWordsRaw( + requestParameters, + initOverrides, + ); + return await response.value(); + } + /** * Transcript Get Websocket Events */ @@ -647,6 +1122,95 @@ export class DefaultApi extends runtime.BaseAPI { return await response.value(); } + /** + * Transcript Update Participant + */ + async v1TranscriptUpdateParticipantRaw( + requestParameters: V1TranscriptUpdateParticipantRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise> { + if ( + requestParameters.transcriptId === null || + requestParameters.transcriptId === undefined + ) { + throw new runtime.RequiredError( + "transcriptId", + "Required parameter requestParameters.transcriptId was null or undefined when calling v1TranscriptUpdateParticipant.", + ); + } + + if ( + requestParameters.participantId === null || + requestParameters.participantId === undefined + ) { + throw new runtime.RequiredError( + "participantId", + "Required parameter requestParameters.participantId was null or undefined when calling v1TranscriptUpdateParticipant.", + ); + } + + if ( + requestParameters.updateParticipant === null || + requestParameters.updateParticipant === undefined + ) { + throw new runtime.RequiredError( + "updateParticipant", + "Required parameter requestParameters.updateParticipant was null or undefined when calling v1TranscriptUpdateParticipant.", + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters["Content-Type"] = "application/json"; + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken( + "OAuth2AuthorizationCodeBearer", + [], + ); + } + + const response = await this.request( + { + path: `/v1/transcripts/{transcript_id}/participants/{participant_id}` + .replace( + `{${"transcript_id"}}`, + encodeURIComponent(String(requestParameters.transcriptId)), + ) + .replace( + `{${"participant_id"}}`, + encodeURIComponent(String(requestParameters.participantId)), + ), + method: "PATCH", + headers: headerParameters, + query: queryParameters, + body: UpdateParticipantToJSON(requestParameters.updateParticipant), + }, + initOverrides, + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + ParticipantFromJSON(jsonValue), + ); + } + + /** + * Transcript Update Participant + */ + async v1TranscriptUpdateParticipant( + requestParameters: V1TranscriptUpdateParticipantRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise { + const response = await this.v1TranscriptUpdateParticipantRaw( + requestParameters, + initOverrides, + ); + return await response.value(); + } + /** * Transcripts Create */ diff --git a/www/app/api/models/CreateParticipant.ts b/www/app/api/models/CreateParticipant.ts new file mode 100644 index 00000000..489047c6 --- /dev/null +++ b/www/app/api/models/CreateParticipant.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from "../runtime"; +/** + * + * @export + * @interface CreateParticipant + */ +export interface CreateParticipant { + /** + * + * @type {any} + * @memberof CreateParticipant + */ + speaker?: any | null; + /** + * + * @type {any} + * @memberof CreateParticipant + */ + name: any | null; +} + +/** + * Check if a given object implements the CreateParticipant interface. + */ +export function instanceOfCreateParticipant(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function CreateParticipantFromJSON(json: any): CreateParticipant { + return CreateParticipantFromJSONTyped(json, false); +} + +export function CreateParticipantFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): CreateParticipant { + if (json === undefined || json === null) { + return json; + } + return { + speaker: !exists(json, "speaker") ? undefined : json["speaker"], + name: json["name"], + }; +} + +export function CreateParticipantToJSON(value?: CreateParticipant | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + speaker: value.speaker, + name: value.name, + }; +} diff --git a/www/app/api/models/GetTranscript.ts b/www/app/api/models/GetTranscript.ts index 3c03c689..44f36bda 100644 --- a/www/app/api/models/GetTranscript.ts +++ b/www/app/api/models/GetTranscript.ts @@ -97,6 +97,12 @@ export interface GetTranscript { * @memberof GetTranscript */ targetLanguage: any | null; + /** + * + * @type {any} + * @memberof GetTranscript + */ + participants: any | null; } /** @@ -116,6 +122,7 @@ export function instanceOfGetTranscript(value: object): boolean { isInstance = isInstance && "createdAt" in value; isInstance = isInstance && "sourceLanguage" in value; isInstance = isInstance && "targetLanguage" in value; + isInstance = isInstance && "participants" in value; return isInstance; } @@ -145,6 +152,7 @@ export function GetTranscriptFromJSONTyped( shareMode: !exists(json, "share_mode") ? undefined : json["share_mode"], sourceLanguage: json["source_language"], targetLanguage: json["target_language"], + participants: json["participants"], }; } @@ -169,5 +177,6 @@ export function GetTranscriptToJSON(value?: GetTranscript | null): any { share_mode: value.shareMode, source_language: value.sourceLanguage, target_language: value.targetLanguage, + participants: value.participants, }; } diff --git a/www/app/api/models/GetTranscriptTopicWithWords.ts b/www/app/api/models/GetTranscriptTopicWithWords.ts new file mode 100644 index 00000000..5948ea1c --- /dev/null +++ b/www/app/api/models/GetTranscriptTopicWithWords.ts @@ -0,0 +1,122 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from "../runtime"; +/** + * + * @export + * @interface GetTranscriptTopicWithWords + */ +export interface GetTranscriptTopicWithWords { + /** + * + * @type {any} + * @memberof GetTranscriptTopicWithWords + */ + id: any | null; + /** + * + * @type {any} + * @memberof GetTranscriptTopicWithWords + */ + title: any | null; + /** + * + * @type {any} + * @memberof GetTranscriptTopicWithWords + */ + summary: any | null; + /** + * + * @type {any} + * @memberof GetTranscriptTopicWithWords + */ + timestamp: any | null; + /** + * + * @type {any} + * @memberof GetTranscriptTopicWithWords + */ + transcript: any | null; + /** + * + * @type {any} + * @memberof GetTranscriptTopicWithWords + */ + segments?: any | null; + /** + * + * @type {any} + * @memberof GetTranscriptTopicWithWords + */ + words?: any | null; +} + +/** + * Check if a given object implements the GetTranscriptTopicWithWords interface. + */ +export function instanceOfGetTranscriptTopicWithWords(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "title" in value; + isInstance = isInstance && "summary" in value; + isInstance = isInstance && "timestamp" in value; + isInstance = isInstance && "transcript" in value; + + return isInstance; +} + +export function GetTranscriptTopicWithWordsFromJSON( + json: any, +): GetTranscriptTopicWithWords { + return GetTranscriptTopicWithWordsFromJSONTyped(json, false); +} + +export function GetTranscriptTopicWithWordsFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): GetTranscriptTopicWithWords { + if (json === undefined || json === null) { + return json; + } + return { + id: json["id"], + title: json["title"], + summary: json["summary"], + timestamp: json["timestamp"], + transcript: json["transcript"], + segments: !exists(json, "segments") ? undefined : json["segments"], + words: !exists(json, "words") ? undefined : json["words"], + }; +} + +export function GetTranscriptTopicWithWordsToJSON( + value?: GetTranscriptTopicWithWords | null, +): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + id: value.id, + title: value.title, + summary: value.summary, + timestamp: value.timestamp, + transcript: value.transcript, + segments: value.segments, + words: value.words, + }; +} diff --git a/www/app/api/models/Participant.ts b/www/app/api/models/Participant.ts new file mode 100644 index 00000000..03a3ffab --- /dev/null +++ b/www/app/api/models/Participant.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from "../runtime"; +/** + * + * @export + * @interface Participant + */ +export interface Participant { + /** + * + * @type {any} + * @memberof Participant + */ + id: any | null; + /** + * + * @type {any} + * @memberof Participant + */ + speaker: any | null; + /** + * + * @type {any} + * @memberof Participant + */ + name: any | null; +} + +/** + * Check if a given object implements the Participant interface. + */ +export function instanceOfParticipant(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "speaker" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function ParticipantFromJSON(json: any): Participant { + return ParticipantFromJSONTyped(json, false); +} + +export function ParticipantFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): Participant { + if (json === undefined || json === null) { + return json; + } + return { + id: json["id"], + speaker: json["speaker"], + name: json["name"], + }; +} + +export function ParticipantToJSON(value?: Participant | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + id: value.id, + speaker: value.speaker, + name: value.name, + }; +} diff --git a/www/app/api/models/SpeakerAssignment.ts b/www/app/api/models/SpeakerAssignment.ts new file mode 100644 index 00000000..8c9ab5d8 --- /dev/null +++ b/www/app/api/models/SpeakerAssignment.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from "../runtime"; +/** + * + * @export + * @interface SpeakerAssignment + */ +export interface SpeakerAssignment { + /** + * + * @type {any} + * @memberof SpeakerAssignment + */ + speaker: any | null; + /** + * + * @type {any} + * @memberof SpeakerAssignment + */ + timestampFrom: any | null; + /** + * + * @type {any} + * @memberof SpeakerAssignment + */ + timestampTo: any | null; +} + +/** + * Check if a given object implements the SpeakerAssignment interface. + */ +export function instanceOfSpeakerAssignment(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "speaker" in value; + isInstance = isInstance && "timestampFrom" in value; + isInstance = isInstance && "timestampTo" in value; + + return isInstance; +} + +export function SpeakerAssignmentFromJSON(json: any): SpeakerAssignment { + return SpeakerAssignmentFromJSONTyped(json, false); +} + +export function SpeakerAssignmentFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): SpeakerAssignment { + if (json === undefined || json === null) { + return json; + } + return { + speaker: json["speaker"], + timestampFrom: json["timestamp_from"], + timestampTo: json["timestamp_to"], + }; +} + +export function SpeakerAssignmentToJSON(value?: SpeakerAssignment | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + speaker: value.speaker, + timestamp_from: value.timestampFrom, + timestamp_to: value.timestampTo, + }; +} diff --git a/www/app/api/models/SpeakerAssignmentStatus.ts b/www/app/api/models/SpeakerAssignmentStatus.ts new file mode 100644 index 00000000..797c7ed3 --- /dev/null +++ b/www/app/api/models/SpeakerAssignmentStatus.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from "../runtime"; +/** + * + * @export + * @interface SpeakerAssignmentStatus + */ +export interface SpeakerAssignmentStatus { + /** + * + * @type {any} + * @memberof SpeakerAssignmentStatus + */ + status: any | null; +} + +/** + * Check if a given object implements the SpeakerAssignmentStatus interface. + */ +export function instanceOfSpeakerAssignmentStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + + return isInstance; +} + +export function SpeakerAssignmentStatusFromJSON( + json: any, +): SpeakerAssignmentStatus { + return SpeakerAssignmentStatusFromJSONTyped(json, false); +} + +export function SpeakerAssignmentStatusFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): SpeakerAssignmentStatus { + if (json === undefined || json === null) { + return json; + } + return { + status: json["status"], + }; +} + +export function SpeakerAssignmentStatusToJSON( + value?: SpeakerAssignmentStatus | null, +): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + status: value.status, + }; +} diff --git a/www/app/api/models/TranscriptParticipant.ts b/www/app/api/models/TranscriptParticipant.ts new file mode 100644 index 00000000..76fd5d2b --- /dev/null +++ b/www/app/api/models/TranscriptParticipant.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from "../runtime"; +/** + * + * @export + * @interface TranscriptParticipant + */ +export interface TranscriptParticipant { + /** + * + * @type {any} + * @memberof TranscriptParticipant + */ + id?: any | null; + /** + * + * @type {any} + * @memberof TranscriptParticipant + */ + speaker: any | null; + /** + * + * @type {any} + * @memberof TranscriptParticipant + */ + name: any | null; +} + +/** + * Check if a given object implements the TranscriptParticipant interface. + */ +export function instanceOfTranscriptParticipant(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "speaker" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function TranscriptParticipantFromJSON( + json: any, +): TranscriptParticipant { + return TranscriptParticipantFromJSONTyped(json, false); +} + +export function TranscriptParticipantFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): TranscriptParticipant { + if (json === undefined || json === null) { + return json; + } + return { + id: !exists(json, "id") ? undefined : json["id"], + speaker: json["speaker"], + name: json["name"], + }; +} + +export function TranscriptParticipantToJSON( + value?: TranscriptParticipant | null, +): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + id: value.id, + speaker: value.speaker, + name: value.name, + }; +} diff --git a/www/app/api/models/UpdateParticipant.ts b/www/app/api/models/UpdateParticipant.ts new file mode 100644 index 00000000..2a8f4fd6 --- /dev/null +++ b/www/app/api/models/UpdateParticipant.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from "../runtime"; +/** + * + * @export + * @interface UpdateParticipant + */ +export interface UpdateParticipant { + /** + * + * @type {any} + * @memberof UpdateParticipant + */ + speaker?: any | null; + /** + * + * @type {any} + * @memberof UpdateParticipant + */ + name?: any | null; +} + +/** + * Check if a given object implements the UpdateParticipant interface. + */ +export function instanceOfUpdateParticipant(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function UpdateParticipantFromJSON(json: any): UpdateParticipant { + return UpdateParticipantFromJSONTyped(json, false); +} + +export function UpdateParticipantFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): UpdateParticipant { + if (json === undefined || json === null) { + return json; + } + return { + speaker: !exists(json, "speaker") ? undefined : json["speaker"], + name: !exists(json, "name") ? undefined : json["name"], + }; +} + +export function UpdateParticipantToJSON(value?: UpdateParticipant | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + speaker: value.speaker, + name: value.name, + }; +} diff --git a/www/app/api/models/UpdateTranscript.ts b/www/app/api/models/UpdateTranscript.ts index a710af69..b4965eab 100644 --- a/www/app/api/models/UpdateTranscript.ts +++ b/www/app/api/models/UpdateTranscript.ts @@ -55,6 +55,12 @@ export interface UpdateTranscript { * @memberof UpdateTranscript */ shareMode?: any | null; + /** + * + * @type {any} + * @memberof UpdateTranscript + */ + participants?: any | null; } /** @@ -88,6 +94,9 @@ export function UpdateTranscriptFromJSONTyped( ? undefined : json["long_summary"], shareMode: !exists(json, "share_mode") ? undefined : json["share_mode"], + participants: !exists(json, "participants") + ? undefined + : json["participants"], }; } @@ -105,5 +114,6 @@ export function UpdateTranscriptToJSON(value?: UpdateTranscript | null): any { short_summary: value.shortSummary, long_summary: value.longSummary, share_mode: value.shareMode, + participants: value.participants, }; } diff --git a/www/app/api/models/Word.ts b/www/app/api/models/Word.ts new file mode 100644 index 00000000..85607f2e --- /dev/null +++ b/www/app/api/models/Word.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from "../runtime"; +/** + * + * @export + * @interface Word + */ +export interface Word { + /** + * + * @type {any} + * @memberof Word + */ + text: any | null; + /** + * + * @type {any} + * @memberof Word + */ + start: any | null; + /** + * + * @type {any} + * @memberof Word + */ + end: any | null; + /** + * + * @type {any} + * @memberof Word + */ + speaker?: any | null; +} + +/** + * Check if a given object implements the Word interface. + */ +export function instanceOfWord(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "text" in value; + isInstance = isInstance && "start" in value; + isInstance = isInstance && "end" in value; + + return isInstance; +} + +export function WordFromJSON(json: any): Word { + return WordFromJSONTyped(json, false); +} + +export function WordFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): Word { + if (json === undefined || json === null) { + return json; + } + return { + text: json["text"], + start: json["start"], + end: json["end"], + speaker: !exists(json, "speaker") ? undefined : json["speaker"], + }; +} + +export function WordToJSON(value?: Word | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + text: value.text, + start: value.start, + end: value.end, + speaker: value.speaker, + }; +} diff --git a/www/app/api/models/index.ts b/www/app/api/models/index.ts index 9e691b09..49e4badf 100644 --- a/www/app/api/models/index.ts +++ b/www/app/api/models/index.ts @@ -1,14 +1,22 @@ /* tslint:disable */ /* eslint-disable */ export * from "./AudioWaveform"; +export * from "./CreateParticipant"; export * from "./CreateTranscript"; export * from "./DeletionStatus"; export * from "./GetTranscript"; export * from "./GetTranscriptSegmentTopic"; export * from "./GetTranscriptTopic"; +export * from "./GetTranscriptTopicWithWords"; export * from "./HTTPValidationError"; export * from "./PageGetTranscript"; +export * from "./Participant"; export * from "./RtcOffer"; +export * from "./SpeakerAssignment"; +export * from "./SpeakerAssignmentStatus"; +export * from "./TranscriptParticipant"; +export * from "./UpdateParticipant"; export * from "./UpdateTranscript"; export * from "./UserInfo"; export * from "./ValidationError"; +export * from "./Word";