From 814ee697df1321f5c007aa1b4f09abd925b1b2e0 Mon Sep 17 00:00:00 2001 From: Louis Jordan Date: Sun, 22 Dec 2024 01:27:50 +0000 Subject: [PATCH] feat: run fmt --- .github/workflows/publish-docs.yml | 2 +- fern/apis/api/asyncapi.yml | 52 ++++++++++++----------------- fern/apis/api/generators.yml | 2 +- fern/apis/convai/convo-asyncapi.yml | 4 +-- fern/apis/convai/generators.yml | 4 +-- fern/apis/convai/openapi.json | 18 +++++----- fern/fern.config.json | 2 +- 7 files changed, 38 insertions(+), 46 deletions(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index ac95a541..db79e06d 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -18,4 +18,4 @@ jobs: - name: Publish Docs env: FERN_TOKEN: ${{ secrets.FERN_API_KEY }} - run: fern generate --docs + run: fern generate --docs diff --git a/fern/apis/api/asyncapi.yml b/fern/apis/api/asyncapi.yml index c38d41df..86b2e300 100644 --- a/fern/apis/api/asyncapi.yml +++ b/fern/apis/api/asyncapi.yml @@ -59,21 +59,13 @@ channels: optimize_streaming_latency: description: Latency optimization level (deprecated) type: string - enum: ["0", "1", "2", "3", "4"] - default: "0" + enum: ['0', '1', '2', '3', '4'] + default: '0' output_format: description: The output audio format type: string - enum: - [ - "mp3_44100", - "pcm_16000", - "pcm_22050", - "pcm_24000", - "pcm_44100", - "ulaw_8000", - ] - default: "mp3_44100" + enum: ['mp3_44100', 'pcm_16000', 'pcm_22050', 'pcm_24000', 'pcm_44100', 'ulaw_8000'] + default: 'mp3_44100' inactivity_timeout: description: Timeout for inactivity before connection is closed type: number @@ -92,17 +84,17 @@ channels: operationId: sendMessage message: oneOf: - - $ref: "#/components/messages/InitializeConnection" - - $ref: "#/components/messages/SendText" - - $ref: "#/components/messages/CloseConnection" + - $ref: '#/components/messages/InitializeConnection' + - $ref: '#/components/messages/SendText' + - $ref: '#/components/messages/CloseConnection' subscribe: description: Receive messages from the WebSocket operationId: receiveMessage message: oneOf: - - $ref: "#/components/messages/AudioOutput" - - $ref: "#/components/messages/FinalOutput" + - $ref: '#/components/messages/AudioOutput' + - $ref: '#/components/messages/FinalOutput' x-fern-examples: - query-parameters: @@ -111,7 +103,7 @@ channels: - type: publish messageId: InitializeConnection value: - text: " " + text: ' ' voice_settings: stability: 0.5 similarity_boost: 0.8 @@ -119,12 +111,12 @@ channels: - type: publish messageId: SendText value: - text: "Hello World" + text: 'Hello World' try_trigger_generation: true - type: publish messageId: CloseConnection value: - text: "" + text: '' - type: subscribe messageId: AudioOutput value: @@ -135,23 +127,23 @@ components: SendText: messageId: sendText payload: - $ref: "#/components/schemas/SendText" + $ref: '#/components/schemas/SendText' InitializeConnection: messageId: initializeConnection payload: - $ref: "#/components/schemas/InitializeConnection" + $ref: '#/components/schemas/InitializeConnection' CloseConnection: messageId: closeConnection payload: - $ref: "#/components/schemas/CloseConnection" + $ref: '#/components/schemas/CloseConnection' AudioOutput: messageId: audioOutput payload: - $ref: "#/components/schemas/AudioOutput" + $ref: '#/components/schemas/AudioOutput' FinalOutput: messageId: finalOutput payload: - $ref: "#/components/schemas/FinalOutput" + $ref: '#/components/schemas/FinalOutput' schemas: InitializeConnection: @@ -161,10 +153,10 @@ components: x-fern-type: literal<" "> description: The initial text that must be sent is a blank space. voice_settings: - $ref: "#/components/schemas/RealtimeVoiceSettings" + $ref: '#/components/schemas/RealtimeVoiceSettings' generation_config: - $ref: "#/components/schemas/GenerationConfig" - description: "This property should only be provided in the first message you send. " + $ref: '#/components/schemas/GenerationConfig' + description: 'This property should only be provided in the first message you send. ' xi-api-key: type: string description: | @@ -328,9 +320,9 @@ components: description: | Indicates if the generation is complete. If set to `True`, `audio` will be null. normalizedAlignment: - $ref: "#/components/schemas/NormalizedAlignment" + $ref: '#/components/schemas/NormalizedAlignment' alignment: - $ref: "#/components/schemas/Alignment" + $ref: '#/components/schemas/Alignment' NormalizedAlignment: type: object diff --git a/fern/apis/api/generators.yml b/fern/apis/api/generators.yml index 86b14b51..5c8ec04f 100644 --- a/fern/apis/api/generators.yml +++ b/fern/apis/api/generators.yml @@ -3,4 +3,4 @@ api: overrides: ./openapi-overrides.yml settings: use-title: false - - path: ./asyncapi.yml \ No newline at end of file + - path: ./asyncapi.yml diff --git a/fern/apis/convai/convo-asyncapi.yml b/fern/apis/convai/convo-asyncapi.yml index 82453cf4..699a7d9d 100644 --- a/fern/apis/convai/convo-asyncapi.yml +++ b/fern/apis/convai/convo-asyncapi.yml @@ -19,7 +19,7 @@ tags: channels: /v1/convai/conversation: - x-fern-audiences: + x-fern-audiences: - convai bindings: ws: @@ -32,7 +32,7 @@ channels: description: The unique identifier for the voice to use in the TTS process. schema: type: string - + description: Establish a WebSocket connection for real-time conversations with an AI agent. publish: summary: Messages sent from the client to the server. diff --git a/fern/apis/convai/generators.yml b/fern/apis/convai/generators.yml index 79e033a8..fd1f054a 100644 --- a/fern/apis/convai/generators.yml +++ b/fern/apis/convai/generators.yml @@ -1,3 +1,3 @@ -api: +api: - openapi.json - - convo-asyncapi.yml \ No newline at end of file + - convo-asyncapi.yml diff --git a/fern/apis/convai/openapi.json b/fern/apis/convai/openapi.json index bb248ad7..f79156a5 100644 --- a/fern/apis/convai/openapi.json +++ b/fern/apis/convai/openapi.json @@ -1,17 +1,17 @@ { "openapi": "3.0.0", "info": { - "title": "ElevenLabs Conversational AI WebSocket API", - "version": "1.0.0" + "title": "ElevenLabs Conversational AI WebSocket API", + "version": "1.0.0" }, "servers": [ - { - "url": "wss://api.elevenlabs.io", - "description": "Production WebSocket Server", - "protocol": "wss", - "x-fern-server-name": "Production" - } + { + "url": "wss://api.elevenlabs.io", + "description": "Production WebSocket Server", + "protocol": "wss", + "x-fern-server-name": "Production" + } ], "paths": {}, "components": {} -} \ No newline at end of file +} diff --git a/fern/fern.config.json b/fern/fern.config.json index 013baaca..b6676341 100644 --- a/fern/fern.config.json +++ b/fern/fern.config.json @@ -1,4 +1,4 @@ { "organization": "elevenlabs", "version": "0.46.10" -} \ No newline at end of file +}