Migrate to openapi-ts generator

This commit is contained in:
2024-07-03 15:08:54 +02:00
parent c36b64cff1
commit ef531f6491
81 changed files with 1157 additions and 1004 deletions

View File

@@ -0,0 +1,11 @@
export const $AudioWaveform = {
properties: {
data: {
type: "array",
contains: {
type: "number",
},
isRequired: true,
},
},
} as const;

View File

@@ -0,0 +1,10 @@
export const $Body_transcript_record_upload_v1_transcripts__transcript_id__record_upload_post =
{
properties: {
file: {
type: "binary",
isRequired: true,
format: "binary",
},
},
} as const;

View File

@@ -0,0 +1,19 @@
export const $CreateParticipant = {
properties: {
speaker: {
type: "any-of",
contains: [
{
type: "number",
},
{
type: "null",
},
],
},
name: {
type: "string",
isRequired: true,
},
},
} as const;

View File

@@ -0,0 +1,14 @@
export const $CreateTranscript = {
properties: {
name: {
type: "string",
isRequired: true,
},
source_language: {
type: "string",
},
target_language: {
type: "string",
},
},
} as const;

View File

@@ -0,0 +1,8 @@
export const $DeletionStatus = {
properties: {
status: {
type: "string",
isRequired: true,
},
},
} as const;

View File

@@ -0,0 +1,123 @@
export const $GetTranscript = {
properties: {
id: {
type: "string",
isRequired: true,
},
user_id: {
type: "any-of",
contains: [
{
type: "string",
},
{
type: "null",
},
],
isRequired: true,
},
name: {
type: "string",
isRequired: true,
},
status: {
type: "string",
isRequired: true,
},
locked: {
type: "boolean",
isRequired: true,
},
duration: {
type: "number",
isRequired: true,
},
title: {
type: "any-of",
contains: [
{
type: "string",
},
{
type: "null",
},
],
isRequired: true,
},
short_summary: {
type: "any-of",
contains: [
{
type: "string",
},
{
type: "null",
},
],
isRequired: true,
},
long_summary: {
type: "any-of",
contains: [
{
type: "string",
},
{
type: "null",
},
],
isRequired: true,
},
created_at: {
type: "string",
isRequired: true,
format: "date-time",
},
share_mode: {
type: "string",
},
source_language: {
type: "any-of",
contains: [
{
type: "string",
},
{
type: "null",
},
],
isRequired: true,
},
target_language: {
type: "any-of",
contains: [
{
type: "string",
},
{
type: "null",
},
],
isRequired: true,
},
participants: {
type: "any-of",
contains: [
{
type: "array",
contains: {
type: "TranscriptParticipant",
},
},
{
type: "null",
},
],
isRequired: true,
},
reviewed: {
type: "boolean",
isRequired: true,
},
},
} as const;

View File

@@ -0,0 +1,16 @@
export const $GetTranscriptSegmentTopic = {
properties: {
text: {
type: "string",
isRequired: true,
},
start: {
type: "number",
isRequired: true,
},
speaker: {
type: "number",
isRequired: true,
},
},
} as const;

View File

@@ -0,0 +1,42 @@
export const $GetTranscriptTopic = {
properties: {
id: {
type: "string",
isRequired: true,
},
title: {
type: "string",
isRequired: true,
},
summary: {
type: "string",
isRequired: true,
},
timestamp: {
type: "number",
isRequired: true,
},
duration: {
type: "any-of",
contains: [
{
type: "number",
},
{
type: "null",
},
],
isRequired: true,
},
transcript: {
type: "string",
isRequired: true,
},
segments: {
type: "array",
contains: {
type: "GetTranscriptSegmentTopic",
},
},
},
} as const;

View File

@@ -0,0 +1,48 @@
export const $GetTranscriptTopicWithWords = {
properties: {
id: {
type: "string",
isRequired: true,
},
title: {
type: "string",
isRequired: true,
},
summary: {
type: "string",
isRequired: true,
},
timestamp: {
type: "number",
isRequired: true,
},
duration: {
type: "any-of",
contains: [
{
type: "number",
},
{
type: "null",
},
],
isRequired: true,
},
transcript: {
type: "string",
isRequired: true,
},
segments: {
type: "array",
contains: {
type: "GetTranscriptSegmentTopic",
},
},
words: {
type: "array",
contains: {
type: "Word",
},
},
},
} as const;

View File

@@ -0,0 +1,48 @@
export const $GetTranscriptTopicWithWordsPerSpeaker = {
properties: {
id: {
type: "string",
isRequired: true,
},
title: {
type: "string",
isRequired: true,
},
summary: {
type: "string",
isRequired: true,
},
timestamp: {
type: "number",
isRequired: true,
},
duration: {
type: "any-of",
contains: [
{
type: "number",
},
{
type: "null",
},
],
isRequired: true,
},
transcript: {
type: "string",
isRequired: true,
},
segments: {
type: "array",
contains: {
type: "GetTranscriptSegmentTopic",
},
},
words_per_speaker: {
type: "array",
contains: {
type: "SpeakerWords",
},
},
},
} as const;

View File

@@ -0,0 +1,10 @@
export const $HTTPValidationError = {
properties: {
detail: {
type: "array",
contains: {
type: "ValidationError",
},
},
},
} as const;

View File

@@ -0,0 +1,52 @@
export const $Page_GetTranscript_ = {
properties: {
items: {
type: "array",
contains: {
type: "GetTranscript",
},
isRequired: true,
},
total: {
type: "number",
isRequired: true,
},
page: {
type: "any-of",
contains: [
{
type: "number",
minimum: 1,
},
{
type: "null",
},
],
isRequired: true,
},
size: {
type: "any-of",
contains: [
{
type: "number",
minimum: 1,
},
{
type: "null",
},
],
isRequired: true,
},
pages: {
type: "any-of",
contains: [
{
type: "number",
},
{
type: "null",
},
],
},
},
} as const;

View File

@@ -0,0 +1,24 @@
export const $Participant = {
properties: {
id: {
type: "string",
isRequired: true,
},
speaker: {
type: "any-of",
contains: [
{
type: "number",
},
{
type: "null",
},
],
isRequired: true,
},
name: {
type: "string",
isRequired: true,
},
},
} as const;

View File

@@ -0,0 +1,12 @@
export const $RtcOffer = {
properties: {
sdp: {
type: "string",
isRequired: true,
},
type: {
type: "string",
isRequired: true,
},
},
} as const;

View File

@@ -0,0 +1,34 @@
export const $SpeakerAssignment = {
properties: {
speaker: {
type: "any-of",
contains: [
{
type: "number",
},
{
type: "null",
},
],
},
participant: {
type: "any-of",
contains: [
{
type: "string",
},
{
type: "null",
},
],
},
timestamp_from: {
type: "number",
isRequired: true,
},
timestamp_to: {
type: "number",
isRequired: true,
},
},
} as const;

View File

@@ -0,0 +1,8 @@
export const $SpeakerAssignmentStatus = {
properties: {
status: {
type: "string",
isRequired: true,
},
},
} as const;

View File

@@ -0,0 +1,12 @@
export const $SpeakerMerge = {
properties: {
speaker_from: {
type: "number",
isRequired: true,
},
speaker_to: {
type: "number",
isRequired: true,
},
},
} as const;

View File

@@ -0,0 +1,15 @@
export const $SpeakerWords = {
properties: {
speaker: {
type: "number",
isRequired: true,
},
words: {
type: "array",
contains: {
type: "Word",
},
isRequired: true,
},
},
} as const;

View File

@@ -0,0 +1,23 @@
export const $TranscriptParticipant = {
properties: {
id: {
type: "string",
},
speaker: {
type: "any-of",
contains: [
{
type: "number",
},
{
type: "null",
},
],
isRequired: true,
},
name: {
type: "string",
isRequired: true,
},
},
} as const;

View File

@@ -0,0 +1,26 @@
export const $UpdateParticipant = {
properties: {
speaker: {
type: "any-of",
contains: [
{
type: "number",
},
{
type: "null",
},
],
},
name: {
type: "any-of",
contains: [
{
type: "string",
},
{
type: "null",
},
],
},
},
} as const;

View File

@@ -0,0 +1,95 @@
export const $UpdateTranscript = {
properties: {
name: {
type: "any-of",
contains: [
{
type: "string",
},
{
type: "null",
},
],
},
locked: {
type: "any-of",
contains: [
{
type: "boolean",
},
{
type: "null",
},
],
},
title: {
type: "any-of",
contains: [
{
type: "string",
},
{
type: "null",
},
],
},
short_summary: {
type: "any-of",
contains: [
{
type: "string",
},
{
type: "null",
},
],
},
long_summary: {
type: "any-of",
contains: [
{
type: "string",
},
{
type: "null",
},
],
},
share_mode: {
type: "any-of",
contains: [
{
type: "Enum",
},
{
type: "null",
},
],
},
participants: {
type: "any-of",
contains: [
{
type: "array",
contains: {
type: "TranscriptParticipant",
},
},
{
type: "null",
},
],
},
reviewed: {
type: "any-of",
contains: [
{
type: "boolean",
},
{
type: "null",
},
],
},
},
} as const;

View File

@@ -0,0 +1,32 @@
export const $UserInfo = {
properties: {
sub: {
type: "string",
isRequired: true,
},
email: {
type: "any-of",
contains: [
{
type: "string",
},
{
type: "null",
},
],
isRequired: true,
},
email_verified: {
type: "any-of",
contains: [
{
type: "boolean",
},
{
type: "null",
},
],
isRequired: true,
},
},
} as const;

View File

@@ -0,0 +1,27 @@
export const $ValidationError = {
properties: {
loc: {
type: "array",
contains: {
type: "any-of",
contains: [
{
type: "string",
},
{
type: "number",
},
],
},
isRequired: true,
},
msg: {
type: "string",
isRequired: true,
},
type: {
type: "string",
isRequired: true,
},
},
} as const;

View File

@@ -0,0 +1,19 @@
export const $Word = {
properties: {
text: {
type: "string",
isRequired: true,
},
start: {
type: "number",
isRequired: true,
},
end: {
type: "number",
isRequired: true,
},
speaker: {
type: "number",
},
},
} as const;