mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-22 05:09:05 +00:00
Migrate to openapi-ts generator
This commit is contained in:
11
www/app/api/schemas/$AudioWaveform.ts
Normal file
11
www/app/api/schemas/$AudioWaveform.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export const $AudioWaveform = {
|
||||
properties: {
|
||||
data: {
|
||||
type: "array",
|
||||
contains: {
|
||||
type: "number",
|
||||
},
|
||||
isRequired: true,
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
@@ -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;
|
||||
19
www/app/api/schemas/$CreateParticipant.ts
Normal file
19
www/app/api/schemas/$CreateParticipant.ts
Normal 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;
|
||||
14
www/app/api/schemas/$CreateTranscript.ts
Normal file
14
www/app/api/schemas/$CreateTranscript.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export const $CreateTranscript = {
|
||||
properties: {
|
||||
name: {
|
||||
type: "string",
|
||||
isRequired: true,
|
||||
},
|
||||
source_language: {
|
||||
type: "string",
|
||||
},
|
||||
target_language: {
|
||||
type: "string",
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
8
www/app/api/schemas/$DeletionStatus.ts
Normal file
8
www/app/api/schemas/$DeletionStatus.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export const $DeletionStatus = {
|
||||
properties: {
|
||||
status: {
|
||||
type: "string",
|
||||
isRequired: true,
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
123
www/app/api/schemas/$GetTranscript.ts
Normal file
123
www/app/api/schemas/$GetTranscript.ts
Normal 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;
|
||||
16
www/app/api/schemas/$GetTranscriptSegmentTopic.ts
Normal file
16
www/app/api/schemas/$GetTranscriptSegmentTopic.ts
Normal 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;
|
||||
42
www/app/api/schemas/$GetTranscriptTopic.ts
Normal file
42
www/app/api/schemas/$GetTranscriptTopic.ts
Normal 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;
|
||||
48
www/app/api/schemas/$GetTranscriptTopicWithWords.ts
Normal file
48
www/app/api/schemas/$GetTranscriptTopicWithWords.ts
Normal 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;
|
||||
@@ -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;
|
||||
10
www/app/api/schemas/$HTTPValidationError.ts
Normal file
10
www/app/api/schemas/$HTTPValidationError.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export const $HTTPValidationError = {
|
||||
properties: {
|
||||
detail: {
|
||||
type: "array",
|
||||
contains: {
|
||||
type: "ValidationError",
|
||||
},
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
52
www/app/api/schemas/$Page_GetTranscript_.ts
Normal file
52
www/app/api/schemas/$Page_GetTranscript_.ts
Normal 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;
|
||||
24
www/app/api/schemas/$Participant.ts
Normal file
24
www/app/api/schemas/$Participant.ts
Normal 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;
|
||||
12
www/app/api/schemas/$RtcOffer.ts
Normal file
12
www/app/api/schemas/$RtcOffer.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export const $RtcOffer = {
|
||||
properties: {
|
||||
sdp: {
|
||||
type: "string",
|
||||
isRequired: true,
|
||||
},
|
||||
type: {
|
||||
type: "string",
|
||||
isRequired: true,
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
34
www/app/api/schemas/$SpeakerAssignment.ts
Normal file
34
www/app/api/schemas/$SpeakerAssignment.ts
Normal 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;
|
||||
8
www/app/api/schemas/$SpeakerAssignmentStatus.ts
Normal file
8
www/app/api/schemas/$SpeakerAssignmentStatus.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export const $SpeakerAssignmentStatus = {
|
||||
properties: {
|
||||
status: {
|
||||
type: "string",
|
||||
isRequired: true,
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
12
www/app/api/schemas/$SpeakerMerge.ts
Normal file
12
www/app/api/schemas/$SpeakerMerge.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export const $SpeakerMerge = {
|
||||
properties: {
|
||||
speaker_from: {
|
||||
type: "number",
|
||||
isRequired: true,
|
||||
},
|
||||
speaker_to: {
|
||||
type: "number",
|
||||
isRequired: true,
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
15
www/app/api/schemas/$SpeakerWords.ts
Normal file
15
www/app/api/schemas/$SpeakerWords.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
export const $SpeakerWords = {
|
||||
properties: {
|
||||
speaker: {
|
||||
type: "number",
|
||||
isRequired: true,
|
||||
},
|
||||
words: {
|
||||
type: "array",
|
||||
contains: {
|
||||
type: "Word",
|
||||
},
|
||||
isRequired: true,
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
23
www/app/api/schemas/$TranscriptParticipant.ts
Normal file
23
www/app/api/schemas/$TranscriptParticipant.ts
Normal 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;
|
||||
26
www/app/api/schemas/$UpdateParticipant.ts
Normal file
26
www/app/api/schemas/$UpdateParticipant.ts
Normal 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;
|
||||
95
www/app/api/schemas/$UpdateTranscript.ts
Normal file
95
www/app/api/schemas/$UpdateTranscript.ts
Normal 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;
|
||||
32
www/app/api/schemas/$UserInfo.ts
Normal file
32
www/app/api/schemas/$UserInfo.ts
Normal 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;
|
||||
27
www/app/api/schemas/$ValidationError.ts
Normal file
27
www/app/api/schemas/$ValidationError.ts
Normal 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;
|
||||
19
www/app/api/schemas/$Word.ts
Normal file
19
www/app/api/schemas/$Word.ts
Normal 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;
|
||||
Reference in New Issue
Block a user