diff --git a/fern/apis/api/openapi.json b/fern/apis/api/openapi.json index 929febfd..31b58354 100644 --- a/fern/apis/api/openapi.json +++ b/fern/apis/api/openapi.json @@ -5278,6 +5278,10 @@ "type": "number", "description": "This is the cost of Vapi." }, + "chat": { + "type": "number", + "description": "This is the cost of chat interactions." + }, "total": { "type": "number", "description": "This is the total cost of the call." @@ -5623,6 +5627,10 @@ { "$ref": "#/components/schemas/FallbackOpenAITranscriber", "title": "OpenAI" + }, + { + "$ref": "#/components/schemas/FallbackCartesiaTranscriber", + "title": "Cartesia" } ] } @@ -5661,6 +5669,30 @@ "description": "Uses Assembly AI's new Universal Streaming API. See: https://www.assemblyai.com/docs/speech-to-text/universal-streaming\n\n@default false", "example": false }, + "endOfTurnConfidenceThreshold": { + "type": "number", + "minimum": 0, + "maximum": 1, + "example": 0.7 + }, + "minEndOfTurnSilenceWhenConfident": { + "type": "number", + "description": "The minimum amount of silence in milliseconds required to detect end of turn when confident. Only used when `enableUniversalStreamingApi` is true.\n\n@default 160", + "minimum": 0, + "example": 160 + }, + "wordFinalizationMaxWaitTime": { + "type": "number", + "description": "The maximum wait time for word finalization. Only used when `enableUniversalStreamingApi` is true.\n\n@default 160", + "minimum": 0, + "example": 160 + }, + "maxTurnSilence": { + "type": "number", + "description": "The maximum amount of silence in milliseconds allowed in a turn before end of turn is triggered. Only used when `enableUniversalStreamingApi` is true.\n\n@default 400", + "minimum": 0, + "example": 400 + }, "realtimeUrl": { "type": "string", "description": "The WebSocket URL that the transcriber connects to." @@ -7101,6 +7133,30 @@ "description": "Uses Assembly AI's new Universal Streaming API. See: https://www.assemblyai.com/docs/speech-to-text/universal-streaming\n\n@default false", "example": false }, + "endOfTurnConfidenceThreshold": { + "type": "number", + "minimum": 0, + "maximum": 1, + "example": 0.7 + }, + "minEndOfTurnSilenceWhenConfident": { + "type": "number", + "description": "The minimum amount of silence in milliseconds required to detect end of turn when confident. Only used when `enableUniversalStreamingApi` is true.\n\n@default 160", + "minimum": 0, + "example": 160 + }, + "wordFinalizationMaxWaitTime": { + "type": "number", + "description": "The maximum wait time for word finalization. Only used when `enableUniversalStreamingApi` is true.\n\n@default 160", + "minimum": 0, + "example": 160 + }, + "maxTurnSilence": { + "type": "number", + "description": "The maximum amount of silence in milliseconds allowed in a turn before end of turn is triggered. Only used when `enableUniversalStreamingApi` is true.\n\n@default 400", + "minimum": 0, + "example": 400 + }, "realtimeUrl": { "type": "string", "description": "The WebSocket URL that the transcriber connects to." @@ -12895,7 +12951,16 @@ }, "VariableExtractionPlan": { "type": "object", - "properties": {} + "properties": { + "schema": { + "description": "This is the schema of parameters we want to extract from the response", + "allOf": [ + { + "$ref": "#/components/schemas/JsonSchema" + } + ] + } + } }, "ConversationNode": { "type": "object", @@ -12962,6 +13027,10 @@ { "$ref": "#/components/schemas/OpenAITranscriber", "title": "OpenAITranscriber" + }, + { + "$ref": "#/components/schemas/CartesiaTranscriber", + "title": "CartesiaTranscriber" } ] }, @@ -19291,6 +19360,10 @@ { "$ref": "#/components/schemas/OpenAITranscriber", "title": "OpenAITranscriber" + }, + { + "$ref": "#/components/schemas/CartesiaTranscriber", + "title": "CartesiaTranscriber" } ] }, @@ -20060,6 +20133,10 @@ { "$ref": "#/components/schemas/OpenAITranscriber", "title": "OpenAITranscriber" + }, + { + "$ref": "#/components/schemas/CartesiaTranscriber", + "title": "CartesiaTranscriber" } ] }, @@ -21254,6 +21331,7 @@ "assistant-request-returned-invalid-assistant", "assistant-request-returned-no-assistant", "assistant-request-returned-forwarding-phone-number", + "scheduled-call-deleted", "call.start.error-get-org", "call.start.error-get-subscription", "call.start.error-get-assistant", @@ -21264,6 +21342,7 @@ "call.start.error-vapi-number-outbound-daily-limit", "call.start.error-get-transport", "assistant-not-valid", + "unknown-error", "database-error", "assistant-not-found", "pipeline-error-openai-voice-failed", @@ -21330,7 +21409,6 @@ "call.in-progress.error-vapifault-azure-speech-transcriber-failed", "call.in-progress.error-pipeline-no-available-llm-model", "worker-shutdown", - "unknown-error", "vonage-disconnected", "vonage-failed-to-connect-call", "vonage-completed", @@ -22662,6 +22740,26 @@ "format": "date-time", "type": "string", "description": "This is the ISO 8601 date-time string of when the chat was last updated." + }, + "costs": { + "type": "array", + "description": "These are the costs of individual components of the chat in USD.", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/ModelCost", + "title": "ModelCost" + }, + { + "$ref": "#/components/schemas/ChatCost", + "title": "ChatCost" + } + ] + } + }, + "cost": { + "type": "number", + "description": "This is the cost of the chat in USD." } }, "required": [ @@ -23607,6 +23705,10 @@ { "$ref": "#/components/schemas/OpenAITranscriber", "title": "OpenAITranscriber" + }, + { + "$ref": "#/components/schemas/CartesiaTranscriber", + "title": "CartesiaTranscriber" } ] }, @@ -24436,6 +24538,10 @@ { "$ref": "#/components/schemas/OpenAITranscriber", "title": "OpenAITranscriber" + }, + { + "$ref": "#/components/schemas/CartesiaTranscriber", + "title": "CartesiaTranscriber" } ] }, @@ -28250,8 +28356,9 @@ }, "name": { "type": "string", - "description": "This is the name of the tool. This will be passed to the model.", - "maxLength": 40 + "description": "This is the name of the tool. This will be passed to the model.\n\nMust be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 40.", + "maxLength": 40, + "pattern": "/^[a-zA-Z0-9_-]{1,40}$/" }, "description": { "type": "string", @@ -28286,6 +28393,14 @@ } ] }, + "variableExtractionPlan": { + "description": "This is the plan that controls the variable extraction from the tool's response.", + "allOf": [ + { + "$ref": "#/components/schemas/VariableExtractionPlan" + } + ] + }, "function": { "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.", "allOf": [ @@ -38354,6 +38469,7 @@ "assistant-request-returned-invalid-assistant", "assistant-request-returned-no-assistant", "assistant-request-returned-forwarding-phone-number", + "scheduled-call-deleted", "call.start.error-get-org", "call.start.error-get-subscription", "call.start.error-get-assistant", @@ -38364,6 +38480,7 @@ "call.start.error-vapi-number-outbound-daily-limit", "call.start.error-get-transport", "assistant-not-valid", + "unknown-error", "database-error", "assistant-not-found", "pipeline-error-openai-voice-failed", @@ -38430,7 +38547,6 @@ "call.in-progress.error-vapifault-azure-speech-transcriber-failed", "call.in-progress.error-pipeline-no-available-llm-model", "worker-shutdown", - "unknown-error", "vonage-disconnected", "vonage-failed-to-connect-call", "vonage-completed", @@ -39474,6 +39590,7 @@ "assistant-request-returned-invalid-assistant", "assistant-request-returned-no-assistant", "assistant-request-returned-forwarding-phone-number", + "scheduled-call-deleted", "call.start.error-get-org", "call.start.error-get-subscription", "call.start.error-get-assistant", @@ -39484,6 +39601,7 @@ "call.start.error-vapi-number-outbound-daily-limit", "call.start.error-get-transport", "assistant-not-valid", + "unknown-error", "database-error", "assistant-not-found", "pipeline-error-openai-voice-failed", @@ -39550,7 +39668,6 @@ "call.in-progress.error-vapifault-azure-speech-transcriber-failed", "call.in-progress.error-pipeline-no-available-llm-model", "worker-shutdown", - "unknown-error", "vonage-disconnected", "vonage-failed-to-connect-call", "vonage-completed", @@ -41701,6 +41818,26 @@ "cost" ] }, + "ChatCost": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "This is the type of cost, always 'chat' for this class.", + "enum": [ + "chat" + ] + }, + "cost": { + "type": "number", + "description": "This is the cost of the component in USD." + } + }, + "required": [ + "type", + "cost" + ] + }, "FunctionToolWithToolCall": { "type": "object", "properties": {