From 3330d7829909ac4d43045caacb66ba4c1503a970 Mon Sep 17 00:00:00 2001 From: Stephen Handley Date: Mon, 18 Mar 2024 11:41:25 -0700 Subject: [PATCH 1/5] update openapi spec --- fern/openapi/openapi.json | 289 ++++++++++++++------------------------ 1 file changed, 103 insertions(+), 186 deletions(-) diff --git a/fern/openapi/openapi.json b/fern/openapi/openapi.json index 6c8ed4c..125eedf 100644 --- a/fern/openapi/openapi.json +++ b/fern/openapi/openapi.json @@ -20,20 +20,6 @@ "tags": ["numbers"], "summary": "List Numbers", "operationId": "list_numbers", - "parameters": [ - { - "required": false, - "schema": { "type": "integer", "title": "Page", "default": 1 }, - "name": "page", - "in": "query" - }, - { - "required": false, - "schema": { "type": "integer", "title": "Size", "default": 10 }, - "name": "size", - "in": "query" - } - ], "responses": { "200": { "description": "Successful Response", @@ -42,14 +28,6 @@ "schema": { "$ref": "#/components/schemas/PhoneNumberPage" } } } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/HTTPValidationError" } - } - } } }, "security": [{ "HTTPBearer": [] }] @@ -245,20 +223,6 @@ "tags": ["calls"], "summary": "List Calls", "operationId": "list_calls", - "parameters": [ - { - "required": false, - "schema": { "type": "integer", "title": "Page", "default": 1 }, - "name": "page", - "in": "query" - }, - { - "required": false, - "schema": { "type": "integer", "title": "Size", "default": 10 }, - "name": "size", - "in": "query" - } - ], "responses": { "200": { "description": "Successful Response", @@ -267,14 +231,6 @@ "schema": { "$ref": "#/components/schemas/CallPage" } } } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/HTTPValidationError" } - } - } } }, "security": [{ "HTTPBearer": [] }] @@ -469,20 +425,6 @@ "tags": ["actions"], "summary": "List Actions", "operationId": "list_actions", - "parameters": [ - { - "required": false, - "schema": { "type": "integer", "title": "Page", "default": 1 }, - "name": "page", - "in": "query" - }, - { - "required": false, - "schema": { "type": "integer", "title": "Size", "default": 10 }, - "name": "size", - "in": "query" - } - ], "responses": { "200": { "description": "Successful Response", @@ -491,14 +433,6 @@ "schema": { "$ref": "#/components/schemas/ActionPage" } } } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/HTTPValidationError" } - } - } } }, "security": [{ "HTTPBearer": [] }] @@ -621,20 +555,6 @@ "tags": ["agents"], "summary": "List Agents", "operationId": "list_agents", - "parameters": [ - { - "required": false, - "schema": { "type": "integer", "title": "Page", "default": 1 }, - "name": "page", - "in": "query" - }, - { - "required": false, - "schema": { "type": "integer", "title": "Size", "default": 10 }, - "name": "size", - "in": "query" - } - ], "responses": { "200": { "description": "Successful Response", @@ -643,14 +563,6 @@ "schema": { "$ref": "#/components/schemas/AgentPage" } } } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/HTTPValidationError" } - } - } } }, "security": [{ "HTTPBearer": [] }] @@ -771,20 +683,6 @@ "tags": ["voices"], "summary": "List Voices", "operationId": "list_voices", - "parameters": [ - { - "required": false, - "schema": { "type": "integer", "title": "Page", "default": 1 }, - "name": "page", - "in": "query" - }, - { - "required": false, - "schema": { "type": "integer", "title": "Size", "default": 10 }, - "name": "size", - "in": "query" - } - ], "responses": { "200": { "description": "Successful Response", @@ -793,14 +691,6 @@ "schema": { "$ref": "#/components/schemas/VoicePage" } } } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/HTTPValidationError" } - } - } } }, "security": [{ "HTTPBearer": [] }] @@ -923,20 +813,6 @@ "tags": ["webhooks"], "summary": "List Webhooks", "operationId": "list_webhooks", - "parameters": [ - { - "required": false, - "schema": { "type": "integer", "title": "Page", "default": 1 }, - "name": "page", - "in": "query" - }, - { - "required": false, - "schema": { "type": "integer", "title": "Size", "default": 10 }, - "name": "size", - "in": "query" - } - ], "responses": { "200": { "description": "Successful Response", @@ -945,14 +821,6 @@ "schema": { "$ref": "#/components/schemas/WebhookPage" } } } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/HTTPValidationError" } - } - } } }, "security": [{ "HTTPBearer": [] }] @@ -1075,15 +943,15 @@ "operationId": "list_prompts", "parameters": [ { - "required": false, - "schema": { "type": "integer", "title": "Page", "default": 1 }, - "name": "page", + "required": true, + "schema": { "title": "Args" }, + "name": "args", "in": "query" }, { - "required": false, - "schema": { "type": "integer", "title": "Size", "default": 10 }, - "name": "size", + "required": true, + "schema": { "title": "Kwargs" }, + "name": "kwargs", "in": "query" } ], @@ -1225,20 +1093,6 @@ "tags": ["vector_databases"], "summary": "List Vector Databases", "operationId": "list_vector_databases", - "parameters": [ - { - "required": false, - "schema": { "type": "integer", "title": "Page", "default": 1 }, - "name": "page", - "in": "query" - }, - { - "required": false, - "schema": { "type": "integer", "title": "Size", "default": 10 }, - "name": "size", - "in": "query" - } - ], "responses": { "200": { "description": "Successful Response", @@ -1247,14 +1101,6 @@ "schema": { "$ref": "#/components/schemas/VectorDatabasePage" } } } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/HTTPValidationError" } - } - } } }, "security": [{ "HTTPBearer": [] }] @@ -1385,20 +1231,6 @@ "tags": ["account_connections"], "summary": "List Account Connections", "operationId": "list_account_connections", - "parameters": [ - { - "required": false, - "schema": { "type": "integer", "title": "Page", "default": 1 }, - "name": "page", - "in": "query" - }, - { - "required": false, - "schema": { "type": "integer", "title": "Size", "default": 10 }, - "name": "size", - "in": "query" - } - ], "responses": { "200": { "description": "Successful Response", @@ -1409,14 +1241,6 @@ } } } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/HTTPValidationError" } - } - } } }, "security": [{ "HTTPBearer": [] }] @@ -1505,6 +1329,20 @@ }, "security": [{ "HTTPBearer": [] }] } + }, + "/v1/monitoring/health": { + "get": { + "tags": ["monitoring"], + "summary": "Health Check", + "description": "Checks the health the service.\n\nIt returns 200 if the service is healthy.", + "operationId": "health_check", + "responses": { + "200": { + "description": "Successful Response", + "content": { "application/json": { "schema": {} } } + } + } + } } }, "components": { @@ -2319,6 +2157,7 @@ "type": "string", "enum": [ "human_unanswered", + "call_did_not_connect", "human_disconnected", "bot_disconnected", "transfer_unanswered", @@ -2369,6 +2208,11 @@ }, "telephony_account_connection": { "$ref": "#/components/schemas/TwilioAccountConnection" + }, + "telephony_params": { + "additionalProperties": { "type": "string" }, + "type": "object", + "title": "Telephony Params" } }, "type": "object", @@ -2572,6 +2416,11 @@ "additionalProperties": { "type": "string" }, "type": "object", "title": "Context" + }, + "telephony_params": { + "additionalProperties": { "type": "string" }, + "type": "object", + "title": "Telephony Params" } }, "type": "object", @@ -2685,7 +2534,12 @@ "type": "integer", "title": "Optimize Streaming Latency" }, - "model_id": { "type": "string", "title": "Model Id" } + "model_id": { "type": "string", "title": "Model Id" }, + "experimental_input_streaming": { + "type": "boolean", + "title": "Experimental Input Streaming", + "default": false + } }, "type": "object", "required": ["id", "user_id", "type", "voice_id"], @@ -2706,7 +2560,12 @@ "type": "integer", "title": "Optimize Streaming Latency" }, - "model_id": { "type": "string", "title": "Model Id" } + "model_id": { "type": "string", "title": "Model Id" }, + "experimental_input_streaming": { + "type": "boolean", + "title": "Experimental Input Streaming", + "default": false + } }, "type": "object", "required": ["type", "voice_id"], @@ -2760,6 +2619,13 @@ { "$ref": "#/components/schemas/Undefined" } ], "title": "Model Id" + }, + "experimental_input_streaming": { + "anyOf": [ + { "type": "boolean" }, + { "$ref": "#/components/schemas/Undefined" } + ], + "title": "Experimental Input Streaming" } }, "type": "object", @@ -2868,6 +2734,7 @@ "event_action", "event_phone_call_connected", "event_phone_call_ended", + "event_phone_call_did_not_connect", "event_transcript", "event_recording", "event_human_detection" @@ -3081,6 +2948,7 @@ "type": "string", "enum": [ "human_unanswered", + "call_did_not_connect", "human_disconnected", "bot_disconnected", "transfer_unanswered", @@ -3135,6 +3003,11 @@ { "$ref": "#/components/schemas/TwilioAccountConnection" } ], "title": "Telephony Account Connection" + }, + "telephony_params": { + "additionalProperties": { "type": "string" }, + "type": "object", + "title": "Telephony Params" } }, "type": "object", @@ -3462,7 +3335,15 @@ "enum": ["faster", "draft", "low", "medium", "high", "premium"], "title": "Quality" }, - "temperature": { "type": "number", "title": "Temperature" } + "temperature": { "type": "number", "title": "Temperature" }, + "top_p": { "type": "number", "title": "Top P" }, + "text_guidance": { "type": "number", "title": "Text Guidance" }, + "voice_guidance": { "type": "number", "title": "Voice Guidance" }, + "experimental_remove_silence": { + "type": "boolean", + "title": "Experimental Remove Silence", + "default": false + } }, "type": "object", "required": ["id", "user_id", "type", "voice_id"], @@ -3490,7 +3371,15 @@ "enum": ["faster", "draft", "low", "medium", "high", "premium"], "title": "Quality" }, - "temperature": { "type": "number", "title": "Temperature" } + "temperature": { "type": "number", "title": "Temperature" }, + "top_p": { "type": "number", "title": "Top P" }, + "text_guidance": { "type": "number", "title": "Text Guidance" }, + "voice_guidance": { "type": "number", "title": "Voice Guidance" }, + "experimental_remove_silence": { + "type": "boolean", + "title": "Experimental Remove Silence", + "default": false + } }, "type": "object", "required": ["type", "voice_id"], @@ -3554,6 +3443,34 @@ { "$ref": "#/components/schemas/Undefined" } ], "title": "Temperature" + }, + "top_p": { + "anyOf": [ + { "type": "number" }, + { "$ref": "#/components/schemas/Undefined" } + ], + "title": "Top P" + }, + "text_guidance": { + "anyOf": [ + { "type": "number" }, + { "$ref": "#/components/schemas/Undefined" } + ], + "title": "Text Guidance" + }, + "voice_guidance": { + "anyOf": [ + { "type": "number" }, + { "$ref": "#/components/schemas/Undefined" } + ], + "title": "Voice Guidance" + }, + "experimental_remove_silence": { + "anyOf": [ + { "type": "boolean" }, + { "$ref": "#/components/schemas/Undefined" } + ], + "title": "Experimental Remove Silence" } }, "type": "object", From 1cfd4432a0c2ae7604ef06c65c4277d51fae2ed2 Mon Sep 17 00:00:00 2001 From: Stephen Handley Date: Mon, 18 Mar 2024 15:28:58 -0700 Subject: [PATCH 2/5] generate from local PR to see what diff looks like --- fern/openapi/openapi.json | 336 +++++++++++++++++++++++++++++++++++++- 1 file changed, 330 insertions(+), 6 deletions(-) diff --git a/fern/openapi/openapi.json b/fern/openapi/openapi.json index 125eedf..49e8360 100644 --- a/fern/openapi/openapi.json +++ b/fern/openapi/openapi.json @@ -12,6 +12,10 @@ "url": "https://api.vocode.dev", "description": "Production environment", "x-fern-server-name": "Production" + }, + { + "url": "https://5253-50-113-76-49.ngrok-free.app", + "description": "Development environment" } ], "paths": { @@ -20,6 +24,36 @@ "tags": ["numbers"], "summary": "List Numbers", "operationId": "list_numbers", + "parameters": [ + { + "required": false, + "schema": { "type": "integer", "title": "Page", "default": 1 }, + "name": "page", + "in": "query" + }, + { + "required": false, + "schema": { "type": "integer", "title": "Size", "default": 10 }, + "name": "size", + "in": "query" + }, + { + "required": false, + "schema": { "type": "string", "title": "Sort Column" }, + "name": "sort_column", + "in": "query" + }, + { + "required": false, + "schema": { + "type": "boolean", + "title": "Sort Desc", + "default": false + }, + "name": "sort_desc", + "in": "query" + } + ], "responses": { "200": { "description": "Successful Response", @@ -28,6 +62,14 @@ "schema": { "$ref": "#/components/schemas/PhoneNumberPage" } } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } } }, "security": [{ "HTTPBearer": [] }] @@ -223,6 +265,36 @@ "tags": ["calls"], "summary": "List Calls", "operationId": "list_calls", + "parameters": [ + { + "required": false, + "schema": { "type": "integer", "title": "Page", "default": 1 }, + "name": "page", + "in": "query" + }, + { + "required": false, + "schema": { "type": "integer", "title": "Size", "default": 10 }, + "name": "size", + "in": "query" + }, + { + "required": false, + "schema": { "type": "string", "title": "Sort Column" }, + "name": "sort_column", + "in": "query" + }, + { + "required": false, + "schema": { + "type": "boolean", + "title": "Sort Desc", + "default": false + }, + "name": "sort_desc", + "in": "query" + } + ], "responses": { "200": { "description": "Successful Response", @@ -231,6 +303,14 @@ "schema": { "$ref": "#/components/schemas/CallPage" } } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } } }, "security": [{ "HTTPBearer": [] }] @@ -425,6 +505,36 @@ "tags": ["actions"], "summary": "List Actions", "operationId": "list_actions", + "parameters": [ + { + "required": false, + "schema": { "type": "integer", "title": "Page", "default": 1 }, + "name": "page", + "in": "query" + }, + { + "required": false, + "schema": { "type": "integer", "title": "Size", "default": 10 }, + "name": "size", + "in": "query" + }, + { + "required": false, + "schema": { "type": "string", "title": "Sort Column" }, + "name": "sort_column", + "in": "query" + }, + { + "required": false, + "schema": { + "type": "boolean", + "title": "Sort Desc", + "default": false + }, + "name": "sort_desc", + "in": "query" + } + ], "responses": { "200": { "description": "Successful Response", @@ -433,6 +543,14 @@ "schema": { "$ref": "#/components/schemas/ActionPage" } } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } } }, "security": [{ "HTTPBearer": [] }] @@ -555,6 +673,36 @@ "tags": ["agents"], "summary": "List Agents", "operationId": "list_agents", + "parameters": [ + { + "required": false, + "schema": { "type": "integer", "title": "Page", "default": 1 }, + "name": "page", + "in": "query" + }, + { + "required": false, + "schema": { "type": "integer", "title": "Size", "default": 10 }, + "name": "size", + "in": "query" + }, + { + "required": false, + "schema": { "type": "string", "title": "Sort Column" }, + "name": "sort_column", + "in": "query" + }, + { + "required": false, + "schema": { + "type": "boolean", + "title": "Sort Desc", + "default": false + }, + "name": "sort_desc", + "in": "query" + } + ], "responses": { "200": { "description": "Successful Response", @@ -563,6 +711,14 @@ "schema": { "$ref": "#/components/schemas/AgentPage" } } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } } }, "security": [{ "HTTPBearer": [] }] @@ -683,6 +839,36 @@ "tags": ["voices"], "summary": "List Voices", "operationId": "list_voices", + "parameters": [ + { + "required": false, + "schema": { "type": "integer", "title": "Page", "default": 1 }, + "name": "page", + "in": "query" + }, + { + "required": false, + "schema": { "type": "integer", "title": "Size", "default": 10 }, + "name": "size", + "in": "query" + }, + { + "required": false, + "schema": { "type": "string", "title": "Sort Column" }, + "name": "sort_column", + "in": "query" + }, + { + "required": false, + "schema": { + "type": "boolean", + "title": "Sort Desc", + "default": false + }, + "name": "sort_desc", + "in": "query" + } + ], "responses": { "200": { "description": "Successful Response", @@ -691,6 +877,14 @@ "schema": { "$ref": "#/components/schemas/VoicePage" } } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } } }, "security": [{ "HTTPBearer": [] }] @@ -813,6 +1007,36 @@ "tags": ["webhooks"], "summary": "List Webhooks", "operationId": "list_webhooks", + "parameters": [ + { + "required": false, + "schema": { "type": "integer", "title": "Page", "default": 1 }, + "name": "page", + "in": "query" + }, + { + "required": false, + "schema": { "type": "integer", "title": "Size", "default": 10 }, + "name": "size", + "in": "query" + }, + { + "required": false, + "schema": { "type": "string", "title": "Sort Column" }, + "name": "sort_column", + "in": "query" + }, + { + "required": false, + "schema": { + "type": "boolean", + "title": "Sort Desc", + "default": false + }, + "name": "sort_desc", + "in": "query" + } + ], "responses": { "200": { "description": "Successful Response", @@ -821,6 +1045,14 @@ "schema": { "$ref": "#/components/schemas/WebhookPage" } } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } } }, "security": [{ "HTTPBearer": [] }] @@ -943,15 +1175,31 @@ "operationId": "list_prompts", "parameters": [ { - "required": true, - "schema": { "title": "Args" }, - "name": "args", + "required": false, + "schema": { "type": "integer", "title": "Page", "default": 1 }, + "name": "page", "in": "query" }, { - "required": true, - "schema": { "title": "Kwargs" }, - "name": "kwargs", + "required": false, + "schema": { "type": "integer", "title": "Size", "default": 10 }, + "name": "size", + "in": "query" + }, + { + "required": false, + "schema": { "type": "string", "title": "Sort Column" }, + "name": "sort_column", + "in": "query" + }, + { + "required": false, + "schema": { + "type": "boolean", + "title": "Sort Desc", + "default": false + }, + "name": "sort_desc", "in": "query" } ], @@ -1093,6 +1341,36 @@ "tags": ["vector_databases"], "summary": "List Vector Databases", "operationId": "list_vector_databases", + "parameters": [ + { + "required": false, + "schema": { "type": "integer", "title": "Page", "default": 1 }, + "name": "page", + "in": "query" + }, + { + "required": false, + "schema": { "type": "integer", "title": "Size", "default": 10 }, + "name": "size", + "in": "query" + }, + { + "required": false, + "schema": { "type": "string", "title": "Sort Column" }, + "name": "sort_column", + "in": "query" + }, + { + "required": false, + "schema": { + "type": "boolean", + "title": "Sort Desc", + "default": false + }, + "name": "sort_desc", + "in": "query" + } + ], "responses": { "200": { "description": "Successful Response", @@ -1101,6 +1379,14 @@ "schema": { "$ref": "#/components/schemas/VectorDatabasePage" } } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } } }, "security": [{ "HTTPBearer": [] }] @@ -1231,6 +1517,36 @@ "tags": ["account_connections"], "summary": "List Account Connections", "operationId": "list_account_connections", + "parameters": [ + { + "required": false, + "schema": { "type": "integer", "title": "Page", "default": 1 }, + "name": "page", + "in": "query" + }, + { + "required": false, + "schema": { "type": "integer", "title": "Size", "default": 10 }, + "name": "size", + "in": "query" + }, + { + "required": false, + "schema": { "type": "string", "title": "Sort Column" }, + "name": "sort_column", + "in": "query" + }, + { + "required": false, + "schema": { + "type": "boolean", + "title": "Sort Desc", + "default": false + }, + "name": "sort_desc", + "in": "query" + } + ], "responses": { "200": { "description": "Successful Response", @@ -1241,6 +1557,14 @@ } } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/HTTPValidationError" } + } + } } }, "security": [{ "HTTPBearer": [] }] From d92839400337277ad0de57ed5441698f8361dbdb Mon Sep 17 00:00:00 2001 From: Stephen Handley Date: Wed, 20 Mar 2024 08:02:05 -0700 Subject: [PATCH 3/5] generate from public API --- fern/openapi/openapi.json | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/fern/openapi/openapi.json b/fern/openapi/openapi.json index 49e8360..c4abf34 100644 --- a/fern/openapi/openapi.json +++ b/fern/openapi/openapi.json @@ -12,10 +12,6 @@ "url": "https://api.vocode.dev", "description": "Production environment", "x-fern-server-name": "Production" - }, - { - "url": "https://5253-50-113-76-49.ngrok-free.app", - "description": "Development environment" } ], "paths": { @@ -2041,6 +2037,11 @@ "type": "boolean", "title": "Run Do Not Call Detection", "default": false + }, + "llm_temperature": { + "type": "number", + "title": "Llm Temperature", + "default": 0.0 } }, "type": "object", @@ -2179,6 +2180,11 @@ "type": "boolean", "title": "Run Do Not Call Detection", "default": false + }, + "llm_temperature": { + "type": "number", + "title": "Llm Temperature", + "default": 0.0 } }, "type": "object", @@ -2704,6 +2710,11 @@ "type": "boolean", "title": "Run Do Not Call Detection", "default": false + }, + "llm_temperature": { + "type": "number", + "title": "Llm Temperature", + "default": 0.0 } }, "type": "object", @@ -3227,6 +3238,11 @@ "type": "boolean", "title": "Run Do Not Call Detection", "default": false + }, + "llm_temperature": { + "type": "number", + "title": "Llm Temperature", + "default": 0.0 } }, "type": "object", From 56a87ab3c21fb865959a07360d5cc81834501797 Mon Sep 17 00:00:00 2001 From: Stephen Handley Date: Wed, 20 Mar 2024 13:46:03 -0700 Subject: [PATCH 4/5] rerunning from local to test adnaan's PR --- fern/openapi/openapi.json | 18 ++++-------------- update.sh | 16 ++++++++++++++-- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/fern/openapi/openapi.json b/fern/openapi/openapi.json index c4abf34..23f984b 100644 --- a/fern/openapi/openapi.json +++ b/fern/openapi/openapi.json @@ -12,6 +12,10 @@ "url": "https://api.vocode.dev", "description": "Production environment", "x-fern-server-name": "Production" + }, + { + "url": "https://d4c8-50-113-76-49.ngrok-free.app", + "description": "Development environment" } ], "paths": { @@ -1649,20 +1653,6 @@ }, "security": [{ "HTTPBearer": [] }] } - }, - "/v1/monitoring/health": { - "get": { - "tags": ["monitoring"], - "summary": "Health Check", - "description": "Checks the health the service.\n\nIt returns 200 if the service is healthy.", - "operationId": "health_check", - "responses": { - "200": { - "description": "Successful Response", - "content": { "application/json": { "schema": {} } } - } - } - } } }, "components": { diff --git a/update.sh b/update.sh index 60347f4..2e85cfe 100755 --- a/update.sh +++ b/update.sh @@ -1,3 +1,15 @@ +MODE=$1 + +API_URL_PROD=https://api.vocode.dev/openapi.json +API_URL_LOCAL=http://localhost:3000/openapi.json + +if [ "$MODE" == "local" ]; then + URL=$API_URL_LOCAL +else + URL=$API_URL_PROD +fi + +echo "Updating openapi.json from $URL" FILE=./fern/openapi/openapi.json -curl https://api.vocode.dev/openapi.json -o $FILE -npx prettier $FILE --write \ No newline at end of file +curl $URL -o $FILE +npx prettier $FILE --write From 8697e0ae513b9b54f9be1b12f7eb2174b2b2fec1 Mon Sep 17 00:00:00 2001 From: Stephen Handley Date: Wed, 20 Mar 2024 15:29:30 -0700 Subject: [PATCH 5/5] updating from latest prod --- fern/openapi/openapi.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fern/openapi/openapi.json b/fern/openapi/openapi.json index 23f984b..b536656 100644 --- a/fern/openapi/openapi.json +++ b/fern/openapi/openapi.json @@ -12,10 +12,6 @@ "url": "https://api.vocode.dev", "description": "Production environment", "x-fern-server-name": "Production" - }, - { - "url": "https://d4c8-50-113-76-49.ngrok-free.app", - "description": "Development environment" } ], "paths": {