mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 20:59:05 +00:00
generate api
This commit is contained in:
74
www/app/api/models/CreateParticipant.ts
Normal file
74
www/app/api/models/CreateParticipant.ts
Normal file
@@ -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,
|
||||
};
|
||||
}
|
||||
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -43,6 +43,12 @@ export interface GetTranscriptTopic {
|
||||
* @memberof GetTranscriptTopic
|
||||
*/
|
||||
timestamp: any | null;
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof GetTranscriptTopic
|
||||
*/
|
||||
duration: any | null;
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
@@ -66,6 +72,7 @@ export function instanceOfGetTranscriptTopic(value: object): boolean {
|
||||
isInstance = isInstance && "title" in value;
|
||||
isInstance = isInstance && "summary" in value;
|
||||
isInstance = isInstance && "timestamp" in value;
|
||||
isInstance = isInstance && "duration" in value;
|
||||
isInstance = isInstance && "transcript" in value;
|
||||
|
||||
return isInstance;
|
||||
@@ -87,6 +94,7 @@ export function GetTranscriptTopicFromJSONTyped(
|
||||
title: json["title"],
|
||||
summary: json["summary"],
|
||||
timestamp: json["timestamp"],
|
||||
duration: json["duration"],
|
||||
transcript: json["transcript"],
|
||||
segments: !exists(json, "segments") ? undefined : json["segments"],
|
||||
};
|
||||
@@ -106,6 +114,7 @@ export function GetTranscriptTopicToJSON(
|
||||
title: value.title,
|
||||
summary: value.summary,
|
||||
timestamp: value.timestamp,
|
||||
duration: value.duration,
|
||||
transcript: value.transcript,
|
||||
segments: value.segments,
|
||||
};
|
||||
|
||||
131
www/app/api/models/GetTranscriptTopicWithWords.ts
Normal file
131
www/app/api/models/GetTranscriptTopicWithWords.ts
Normal file
@@ -0,0 +1,131 @@
|
||||
/* 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
|
||||
*/
|
||||
duration: 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 && "duration" 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"],
|
||||
duration: json["duration"],
|
||||
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,
|
||||
duration: value.duration,
|
||||
transcript: value.transcript,
|
||||
segments: value.segments,
|
||||
words: value.words,
|
||||
};
|
||||
}
|
||||
135
www/app/api/models/GetTranscriptTopicWithWordsPerSpeaker.ts
Normal file
135
www/app/api/models/GetTranscriptTopicWithWordsPerSpeaker.ts
Normal file
@@ -0,0 +1,135 @@
|
||||
/* 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 GetTranscriptTopicWithWordsPerSpeaker
|
||||
*/
|
||||
export interface GetTranscriptTopicWithWordsPerSpeaker {
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof GetTranscriptTopicWithWordsPerSpeaker
|
||||
*/
|
||||
id: any | null;
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof GetTranscriptTopicWithWordsPerSpeaker
|
||||
*/
|
||||
title: any | null;
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof GetTranscriptTopicWithWordsPerSpeaker
|
||||
*/
|
||||
summary: any | null;
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof GetTranscriptTopicWithWordsPerSpeaker
|
||||
*/
|
||||
timestamp: any | null;
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof GetTranscriptTopicWithWordsPerSpeaker
|
||||
*/
|
||||
duration: any | null;
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof GetTranscriptTopicWithWordsPerSpeaker
|
||||
*/
|
||||
transcript: any | null;
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof GetTranscriptTopicWithWordsPerSpeaker
|
||||
*/
|
||||
segments?: any | null;
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof GetTranscriptTopicWithWordsPerSpeaker
|
||||
*/
|
||||
wordsPerSpeaker?: any | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the GetTranscriptTopicWithWordsPerSpeaker interface.
|
||||
*/
|
||||
export function instanceOfGetTranscriptTopicWithWordsPerSpeaker(
|
||||
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 && "duration" in value;
|
||||
isInstance = isInstance && "transcript" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function GetTranscriptTopicWithWordsPerSpeakerFromJSON(
|
||||
json: any,
|
||||
): GetTranscriptTopicWithWordsPerSpeaker {
|
||||
return GetTranscriptTopicWithWordsPerSpeakerFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function GetTranscriptTopicWithWordsPerSpeakerFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): GetTranscriptTopicWithWordsPerSpeaker {
|
||||
if (json === undefined || json === null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
id: json["id"],
|
||||
title: json["title"],
|
||||
summary: json["summary"],
|
||||
timestamp: json["timestamp"],
|
||||
duration: json["duration"],
|
||||
transcript: json["transcript"],
|
||||
segments: !exists(json, "segments") ? undefined : json["segments"],
|
||||
wordsPerSpeaker: !exists(json, "words_per_speaker")
|
||||
? undefined
|
||||
: json["words_per_speaker"],
|
||||
};
|
||||
}
|
||||
|
||||
export function GetTranscriptTopicWithWordsPerSpeakerToJSON(
|
||||
value?: GetTranscriptTopicWithWordsPerSpeaker | 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,
|
||||
duration: value.duration,
|
||||
transcript: value.transcript,
|
||||
segments: value.segments,
|
||||
words_per_speaker: value.wordsPerSpeaker,
|
||||
};
|
||||
}
|
||||
84
www/app/api/models/Participant.ts
Normal file
84
www/app/api/models/Participant.ts
Normal file
@@ -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,
|
||||
};
|
||||
}
|
||||
91
www/app/api/models/SpeakerAssignment.ts
Normal file
91
www/app/api/models/SpeakerAssignment.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* 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
|
||||
*/
|
||||
participant?: 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 && "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: !exists(json, "speaker") ? undefined : json["speaker"],
|
||||
participant: !exists(json, "participant") ? undefined : json["participant"],
|
||||
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,
|
||||
participant: value.participant,
|
||||
timestamp_from: value.timestampFrom,
|
||||
timestamp_to: value.timestampTo,
|
||||
};
|
||||
}
|
||||
70
www/app/api/models/SpeakerAssignmentStatus.ts
Normal file
70
www/app/api/models/SpeakerAssignmentStatus.ts
Normal file
@@ -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,
|
||||
};
|
||||
}
|
||||
75
www/app/api/models/SpeakerMerge.ts
Normal file
75
www/app/api/models/SpeakerMerge.ts
Normal file
@@ -0,0 +1,75 @@
|
||||
/* 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 SpeakerMerge
|
||||
*/
|
||||
export interface SpeakerMerge {
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof SpeakerMerge
|
||||
*/
|
||||
speakerFrom: any | null;
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof SpeakerMerge
|
||||
*/
|
||||
speakerTo: any | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the SpeakerMerge interface.
|
||||
*/
|
||||
export function instanceOfSpeakerMerge(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "speakerFrom" in value;
|
||||
isInstance = isInstance && "speakerTo" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function SpeakerMergeFromJSON(json: any): SpeakerMerge {
|
||||
return SpeakerMergeFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SpeakerMergeFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): SpeakerMerge {
|
||||
if (json === undefined || json === null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
speakerFrom: json["speaker_from"],
|
||||
speakerTo: json["speaker_to"],
|
||||
};
|
||||
}
|
||||
|
||||
export function SpeakerMergeToJSON(value?: SpeakerMerge | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
speaker_from: value.speakerFrom,
|
||||
speaker_to: value.speakerTo,
|
||||
};
|
||||
}
|
||||
75
www/app/api/models/SpeakerWords.ts
Normal file
75
www/app/api/models/SpeakerWords.ts
Normal file
@@ -0,0 +1,75 @@
|
||||
/* 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 SpeakerWords
|
||||
*/
|
||||
export interface SpeakerWords {
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof SpeakerWords
|
||||
*/
|
||||
speaker: any | null;
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof SpeakerWords
|
||||
*/
|
||||
words: any | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the SpeakerWords interface.
|
||||
*/
|
||||
export function instanceOfSpeakerWords(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "speaker" in value;
|
||||
isInstance = isInstance && "words" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function SpeakerWordsFromJSON(json: any): SpeakerWords {
|
||||
return SpeakerWordsFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SpeakerWordsFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): SpeakerWords {
|
||||
if (json === undefined || json === null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
speaker: json["speaker"],
|
||||
words: json["words"],
|
||||
};
|
||||
}
|
||||
|
||||
export function SpeakerWordsToJSON(value?: SpeakerWords | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
speaker: value.speaker,
|
||||
words: value.words,
|
||||
};
|
||||
}
|
||||
87
www/app/api/models/TranscriptParticipant.ts
Normal file
87
www/app/api/models/TranscriptParticipant.ts
Normal file
@@ -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,
|
||||
};
|
||||
}
|
||||
73
www/app/api/models/UpdateParticipant.ts
Normal file
73
www/app/api/models/UpdateParticipant.ts
Normal file
@@ -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,
|
||||
};
|
||||
}
|
||||
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
92
www/app/api/models/Word.ts
Normal file
92
www/app/api/models/Word.ts
Normal file
@@ -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,
|
||||
};
|
||||
}
|
||||
@@ -1,14 +1,25 @@
|
||||
/* 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 "./GetTranscriptTopicWithWordsPerSpeaker";
|
||||
export * from "./HTTPValidationError";
|
||||
export * from "./PageGetTranscript";
|
||||
export * from "./Participant";
|
||||
export * from "./RtcOffer";
|
||||
export * from "./SpeakerAssignment";
|
||||
export * from "./SpeakerAssignmentStatus";
|
||||
export * from "./SpeakerMerge";
|
||||
export * from "./SpeakerWords";
|
||||
export * from "./TranscriptParticipant";
|
||||
export * from "./UpdateParticipant";
|
||||
export * from "./UpdateTranscript";
|
||||
export * from "./UserInfo";
|
||||
export * from "./ValidationError";
|
||||
export * from "./Word";
|
||||
|
||||
Reference in New Issue
Block a user