From 99904d6d041308323bfa5f5911c513f70e89514d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 17 Sep 2026 03:22:39 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- src/libs/SmallestAI/openapi.yaml | 196 ++++++++++++++----------------- 1 file changed, 86 insertions(+), 110 deletions(-) diff --git a/src/libs/SmallestAI/openapi.yaml b/src/libs/SmallestAI/openapi.yaml index cbcd2ee..c646b88 100644 --- a/src/libs/SmallestAI/openapi.yaml +++ b/src/libs/SmallestAI/openapi.yaml @@ -14,14 +14,6 @@ "textToSpeech" ], "parameters": [ - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - }, { "name": "Accept", "in": "header", @@ -92,7 +84,12 @@ } } } - } + }, + "security": [ + { + "BearerAuth": [] + } + ] } }, "/waves/v1/tts/live": { @@ -104,14 +101,6 @@ "textToSpeech" ], "parameters": [ - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - }, { "name": "x-expire-content", "in": "header", @@ -172,7 +161,12 @@ } } } - } + }, + "security": [ + { + "BearerAuth": [] + } + ] } }, "/waves/v1/{model}/get_voices": { @@ -246,23 +240,13 @@ "tags": [ "voiceCloning" ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - } - ], "responses": { "200": { "description": "Voice clone created. Includes pre-generated sample clips of the new voice.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Voice Cloning_createVoiceClone_Response_200" + "$ref": "#/components/schemas/Voice_Cloning_createVoiceClone_Response_200" } } } @@ -344,7 +328,12 @@ } } } - } + }, + "security": [ + { + "BearerAuth": [] + } + ] }, "get": { "operationId": "voiceCloning_listVoiceClones", @@ -353,23 +342,13 @@ "tags": [ "voiceCloning" ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - } - ], "responses": { "200": { "description": "List of voice clones.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Voice Cloning_listVoiceClones_Response_200" + "$ref": "#/components/schemas/Voice_Cloning_listVoiceClones_Response_200" } } } @@ -394,7 +373,12 @@ } } } - } + }, + "security": [ + { + "BearerAuth": [] + } + ] } }, "/waves/v1/pronunciation-dicts": { @@ -405,16 +389,6 @@ "tags": [ "pronunciationDictionaries" ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - } - ], "responses": { "200": { "description": "List of pronunciation dictionaries", @@ -449,7 +423,12 @@ } } } - } + }, + "security": [ + { + "BearerAuth": [] + } + ] }, "post": { "operationId": "pronunciationDictionaries_createPronunciationDict", @@ -458,16 +437,6 @@ "tags": [ "pronunciationDictionaries" ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - } - ], "responses": { "200": { "description": "Successfully created pronunciation dictionary", @@ -518,7 +487,12 @@ } } } - } + }, + "security": [ + { + "BearerAuth": [] + } + ] }, "put": { "operationId": "pronunciationDictionaries_updatePronunciationDict", @@ -527,16 +501,6 @@ "tags": [ "pronunciationDictionaries" ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - } - ], "responses": { "200": { "description": "Successfully updated pronunciation dictionary", @@ -587,7 +551,12 @@ } } } - } + }, + "security": [ + { + "BearerAuth": [] + } + ] }, "delete": { "operationId": "pronunciationDictionaries_deletePronunciationDict", @@ -596,16 +565,6 @@ "tags": [ "pronunciationDictionaries" ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - } - ], "responses": { "200": { "description": "Successfully deleted pronunciation dictionary", @@ -656,7 +615,12 @@ } } } - } + }, + "security": [ + { + "BearerAuth": [] + } + ] } }, "/waves/v1/stt/": { @@ -775,14 +739,6 @@ "default": "false" } }, - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - }, { "name": "x-expire-content", "in": "header", @@ -799,7 +755,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Speech to Text_transcribe_Response_200" + "$ref": "#/components/schemas/Speech_to_Text_transcribe_Response_200" } } } @@ -879,7 +835,12 @@ } } } - } + }, + "security": [ + { + "BearerAuth": [] + } + ] } }, "/waves/v1/chat/completions": { @@ -890,16 +851,6 @@ "tags": [ "electron" ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - } - ], "responses": { "200": { "description": "Non-streaming: standard OpenAI `chat.completion` object.\n\nStreaming (`stream: true`): `text/event-stream` SSE — each\nevent is a `chat.completion.chunk` delta, terminated by\n`data: [DONE]`.\n", @@ -980,10 +931,35 @@ } } } - } + }, + "security": [ + { + "BearerAuth": [] + } + ] } } }, + "tags": [ + { + "name": "textToSpeech" + }, + { + "name": "voices" + }, + { + "name": "voiceCloning" + }, + { + "name": "pronunciationDictionaries" + }, + { + "name": "speechToText" + }, + { + "name": "electron" + } + ], "servers": [ { "url": "https://api.smallest.ai", @@ -1454,7 +1430,7 @@ }, "title": "WavesV1VoiceCloningPostResponsesContentApplicationJsonSchemaData" }, - "Voice Cloning_createVoiceClone_Response_200": { + "Voice_Cloning_createVoiceClone_Response_200": { "type": "object", "properties": { "message": { @@ -1572,7 +1548,7 @@ }, "title": "WavesV1VoiceCloningGetResponsesContentApplicationJsonSchemaDataItems" }, - "Voice Cloning_listVoiceClones_Response_200": { + "Voice_Cloning_listVoiceClones_Response_200": { "type": "object", "properties": { "data": { @@ -2002,7 +1978,7 @@ "description": "Returned by Pulse Pro when `webhook_url` is set. The transcription arrives on the webhook when ready.", "title": "AsyncAccepted" }, - "Speech to Text_transcribe_Response_200": { + "Speech_to_Text_transcribe_Response_200": { "oneOf": [ { "$ref": "#/components/schemas/TranscriptionResponse"