From 46103bb4ad43ba1fd24d472aeddf3748051ab92b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 29 Jul 2026 22:05:27 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...lsClient.CallControllerDeleteCallData.g.cs | 32 ++++++++++ .../Vapi.Models.DeepgramVoiceVoiceId.g.cs | 42 ++++++++++++++ ...i.Models.FallbackDeepgramVoiceVoiceId.g.cs | 42 ++++++++++++++ .../Vapi/Generated/Vapi.Models.ModelCost.g.cs | 15 ++++- ....Models.WorkflowAnthropicBedrockModel.g.cs | 23 ++++++++ .../Vapi.Models.WorkflowAnthropicModel.g.cs | 23 ++++++++ .../Vapi.Models.WorkflowCustomModel.g.cs | 23 ++++++++ .../Vapi.Models.WorkflowGoogleModel.g.cs | 23 ++++++++ .../Vapi.Models.WorkflowOpenAIModel.g.cs | 23 ++++++++ src/libs/Vapi/openapi.yaml | 58 +++++++++++++++++++ 10 files changed, 303 insertions(+), 1 deletion(-) diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerDeleteCallData.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerDeleteCallData.g.cs index 7b862eae..297ab272 100644 --- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerDeleteCallData.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerDeleteCallData.g.cs @@ -344,6 +344,38 @@ partial void ProcessCallControllerDeleteCallDataResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::Vapi.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/Vapi/Generated/Vapi.Models.DeepgramVoiceVoiceId.g.cs b/src/libs/Vapi/Generated/Vapi.Models.DeepgramVoiceVoiceId.g.cs index ac993b5d..57911cb3 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.DeepgramVoiceVoiceId.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.DeepgramVoiceVoiceId.g.cs @@ -55,6 +55,10 @@ public enum DeepgramVoiceVoiceId /// /// /// + Aurelia, + /// + /// + /// Aurora, /// /// @@ -91,6 +95,10 @@ public enum DeepgramVoiceVoiceId /// /// /// + Elara, + /// + /// + /// Electra, /// /// @@ -99,6 +107,10 @@ public enum DeepgramVoiceVoiceId /// /// /// + Fabian, + /// + /// + /// Harmonia, /// /// @@ -135,6 +147,10 @@ public enum DeepgramVoiceVoiceId /// /// /// + Julius, + /// + /// + /// Juno, /// /// @@ -143,6 +159,14 @@ public enum DeepgramVoiceVoiceId /// /// /// + Kara, + /// + /// + /// + Lara, + /// + /// + /// Luna, /// /// @@ -227,6 +251,10 @@ public enum DeepgramVoiceVoiceId /// /// /// + Viktoria, + /// + /// + /// Zeus, } @@ -253,6 +281,7 @@ public static string ToValueString(this DeepgramVoiceVoiceId value) DeepgramVoiceVoiceId.Asteria => "asteria", DeepgramVoiceVoiceId.Athena => "athena", DeepgramVoiceVoiceId.Atlas => "atlas", + DeepgramVoiceVoiceId.Aurelia => "aurelia", DeepgramVoiceVoiceId.Aurora => "aurora", DeepgramVoiceVoiceId.Callista => "callista", DeepgramVoiceVoiceId.Carina => "carina", @@ -262,8 +291,10 @@ public static string ToValueString(this DeepgramVoiceVoiceId value) DeepgramVoiceVoiceId.Delia => "delia", DeepgramVoiceVoiceId.Diana => "diana", DeepgramVoiceVoiceId.Draco => "draco", + DeepgramVoiceVoiceId.Elara => "elara", DeepgramVoiceVoiceId.Electra => "electra", DeepgramVoiceVoiceId.Estrella => "estrella", + DeepgramVoiceVoiceId.Fabian => "fabian", DeepgramVoiceVoiceId.Harmonia => "harmonia", DeepgramVoiceVoiceId.Helena => "helena", DeepgramVoiceVoiceId.Helios => "helios", @@ -273,8 +304,11 @@ public static string ToValueString(this DeepgramVoiceVoiceId value) DeepgramVoiceVoiceId.Iris => "iris", DeepgramVoiceVoiceId.Janus => "janus", DeepgramVoiceVoiceId.Javier => "javier", + DeepgramVoiceVoiceId.Julius => "julius", DeepgramVoiceVoiceId.Juno => "juno", DeepgramVoiceVoiceId.Jupiter => "jupiter", + DeepgramVoiceVoiceId.Kara => "kara", + DeepgramVoiceVoiceId.Lara => "lara", DeepgramVoiceVoiceId.Luna => "luna", DeepgramVoiceVoiceId.Mars => "mars", DeepgramVoiceVoiceId.Minerva => "minerva", @@ -296,6 +330,7 @@ public static string ToValueString(this DeepgramVoiceVoiceId value) DeepgramVoiceVoiceId.Thalia => "thalia", DeepgramVoiceVoiceId.Theia => "theia", DeepgramVoiceVoiceId.Vesta => "vesta", + DeepgramVoiceVoiceId.Viktoria => "viktoria", DeepgramVoiceVoiceId.Zeus => "zeus", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -318,6 +353,7 @@ public static string ToValueString(this DeepgramVoiceVoiceId value) "asteria" => DeepgramVoiceVoiceId.Asteria, "athena" => DeepgramVoiceVoiceId.Athena, "atlas" => DeepgramVoiceVoiceId.Atlas, + "aurelia" => DeepgramVoiceVoiceId.Aurelia, "aurora" => DeepgramVoiceVoiceId.Aurora, "callista" => DeepgramVoiceVoiceId.Callista, "carina" => DeepgramVoiceVoiceId.Carina, @@ -327,8 +363,10 @@ public static string ToValueString(this DeepgramVoiceVoiceId value) "delia" => DeepgramVoiceVoiceId.Delia, "diana" => DeepgramVoiceVoiceId.Diana, "draco" => DeepgramVoiceVoiceId.Draco, + "elara" => DeepgramVoiceVoiceId.Elara, "electra" => DeepgramVoiceVoiceId.Electra, "estrella" => DeepgramVoiceVoiceId.Estrella, + "fabian" => DeepgramVoiceVoiceId.Fabian, "harmonia" => DeepgramVoiceVoiceId.Harmonia, "helena" => DeepgramVoiceVoiceId.Helena, "helios" => DeepgramVoiceVoiceId.Helios, @@ -338,8 +376,11 @@ public static string ToValueString(this DeepgramVoiceVoiceId value) "iris" => DeepgramVoiceVoiceId.Iris, "janus" => DeepgramVoiceVoiceId.Janus, "javier" => DeepgramVoiceVoiceId.Javier, + "julius" => DeepgramVoiceVoiceId.Julius, "juno" => DeepgramVoiceVoiceId.Juno, "jupiter" => DeepgramVoiceVoiceId.Jupiter, + "kara" => DeepgramVoiceVoiceId.Kara, + "lara" => DeepgramVoiceVoiceId.Lara, "luna" => DeepgramVoiceVoiceId.Luna, "mars" => DeepgramVoiceVoiceId.Mars, "minerva" => DeepgramVoiceVoiceId.Minerva, @@ -361,6 +402,7 @@ public static string ToValueString(this DeepgramVoiceVoiceId value) "thalia" => DeepgramVoiceVoiceId.Thalia, "theia" => DeepgramVoiceVoiceId.Theia, "vesta" => DeepgramVoiceVoiceId.Vesta, + "viktoria" => DeepgramVoiceVoiceId.Viktoria, "zeus" => DeepgramVoiceVoiceId.Zeus, _ => null, }; diff --git a/src/libs/Vapi/Generated/Vapi.Models.FallbackDeepgramVoiceVoiceId.g.cs b/src/libs/Vapi/Generated/Vapi.Models.FallbackDeepgramVoiceVoiceId.g.cs index e003ed7d..a5c33ad1 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.FallbackDeepgramVoiceVoiceId.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.FallbackDeepgramVoiceVoiceId.g.cs @@ -55,6 +55,10 @@ public enum FallbackDeepgramVoiceVoiceId /// /// /// + Aurelia, + /// + /// + /// Aurora, /// /// @@ -91,6 +95,10 @@ public enum FallbackDeepgramVoiceVoiceId /// /// /// + Elara, + /// + /// + /// Electra, /// /// @@ -99,6 +107,10 @@ public enum FallbackDeepgramVoiceVoiceId /// /// /// + Fabian, + /// + /// + /// Harmonia, /// /// @@ -135,6 +147,10 @@ public enum FallbackDeepgramVoiceVoiceId /// /// /// + Julius, + /// + /// + /// Juno, /// /// @@ -143,6 +159,14 @@ public enum FallbackDeepgramVoiceVoiceId /// /// /// + Kara, + /// + /// + /// + Lara, + /// + /// + /// Luna, /// /// @@ -227,6 +251,10 @@ public enum FallbackDeepgramVoiceVoiceId /// /// /// + Viktoria, + /// + /// + /// Zeus, } @@ -253,6 +281,7 @@ public static string ToValueString(this FallbackDeepgramVoiceVoiceId value) FallbackDeepgramVoiceVoiceId.Asteria => "asteria", FallbackDeepgramVoiceVoiceId.Athena => "athena", FallbackDeepgramVoiceVoiceId.Atlas => "atlas", + FallbackDeepgramVoiceVoiceId.Aurelia => "aurelia", FallbackDeepgramVoiceVoiceId.Aurora => "aurora", FallbackDeepgramVoiceVoiceId.Callista => "callista", FallbackDeepgramVoiceVoiceId.Carina => "carina", @@ -262,8 +291,10 @@ public static string ToValueString(this FallbackDeepgramVoiceVoiceId value) FallbackDeepgramVoiceVoiceId.Delia => "delia", FallbackDeepgramVoiceVoiceId.Diana => "diana", FallbackDeepgramVoiceVoiceId.Draco => "draco", + FallbackDeepgramVoiceVoiceId.Elara => "elara", FallbackDeepgramVoiceVoiceId.Electra => "electra", FallbackDeepgramVoiceVoiceId.Estrella => "estrella", + FallbackDeepgramVoiceVoiceId.Fabian => "fabian", FallbackDeepgramVoiceVoiceId.Harmonia => "harmonia", FallbackDeepgramVoiceVoiceId.Helena => "helena", FallbackDeepgramVoiceVoiceId.Helios => "helios", @@ -273,8 +304,11 @@ public static string ToValueString(this FallbackDeepgramVoiceVoiceId value) FallbackDeepgramVoiceVoiceId.Iris => "iris", FallbackDeepgramVoiceVoiceId.Janus => "janus", FallbackDeepgramVoiceVoiceId.Javier => "javier", + FallbackDeepgramVoiceVoiceId.Julius => "julius", FallbackDeepgramVoiceVoiceId.Juno => "juno", FallbackDeepgramVoiceVoiceId.Jupiter => "jupiter", + FallbackDeepgramVoiceVoiceId.Kara => "kara", + FallbackDeepgramVoiceVoiceId.Lara => "lara", FallbackDeepgramVoiceVoiceId.Luna => "luna", FallbackDeepgramVoiceVoiceId.Mars => "mars", FallbackDeepgramVoiceVoiceId.Minerva => "minerva", @@ -296,6 +330,7 @@ public static string ToValueString(this FallbackDeepgramVoiceVoiceId value) FallbackDeepgramVoiceVoiceId.Thalia => "thalia", FallbackDeepgramVoiceVoiceId.Theia => "theia", FallbackDeepgramVoiceVoiceId.Vesta => "vesta", + FallbackDeepgramVoiceVoiceId.Viktoria => "viktoria", FallbackDeepgramVoiceVoiceId.Zeus => "zeus", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -318,6 +353,7 @@ public static string ToValueString(this FallbackDeepgramVoiceVoiceId value) "asteria" => FallbackDeepgramVoiceVoiceId.Asteria, "athena" => FallbackDeepgramVoiceVoiceId.Athena, "atlas" => FallbackDeepgramVoiceVoiceId.Atlas, + "aurelia" => FallbackDeepgramVoiceVoiceId.Aurelia, "aurora" => FallbackDeepgramVoiceVoiceId.Aurora, "callista" => FallbackDeepgramVoiceVoiceId.Callista, "carina" => FallbackDeepgramVoiceVoiceId.Carina, @@ -327,8 +363,10 @@ public static string ToValueString(this FallbackDeepgramVoiceVoiceId value) "delia" => FallbackDeepgramVoiceVoiceId.Delia, "diana" => FallbackDeepgramVoiceVoiceId.Diana, "draco" => FallbackDeepgramVoiceVoiceId.Draco, + "elara" => FallbackDeepgramVoiceVoiceId.Elara, "electra" => FallbackDeepgramVoiceVoiceId.Electra, "estrella" => FallbackDeepgramVoiceVoiceId.Estrella, + "fabian" => FallbackDeepgramVoiceVoiceId.Fabian, "harmonia" => FallbackDeepgramVoiceVoiceId.Harmonia, "helena" => FallbackDeepgramVoiceVoiceId.Helena, "helios" => FallbackDeepgramVoiceVoiceId.Helios, @@ -338,8 +376,11 @@ public static string ToValueString(this FallbackDeepgramVoiceVoiceId value) "iris" => FallbackDeepgramVoiceVoiceId.Iris, "janus" => FallbackDeepgramVoiceVoiceId.Janus, "javier" => FallbackDeepgramVoiceVoiceId.Javier, + "julius" => FallbackDeepgramVoiceVoiceId.Julius, "juno" => FallbackDeepgramVoiceVoiceId.Juno, "jupiter" => FallbackDeepgramVoiceVoiceId.Jupiter, + "kara" => FallbackDeepgramVoiceVoiceId.Kara, + "lara" => FallbackDeepgramVoiceVoiceId.Lara, "luna" => FallbackDeepgramVoiceVoiceId.Luna, "mars" => FallbackDeepgramVoiceVoiceId.Mars, "minerva" => FallbackDeepgramVoiceVoiceId.Minerva, @@ -361,6 +402,7 @@ public static string ToValueString(this FallbackDeepgramVoiceVoiceId value) "thalia" => FallbackDeepgramVoiceVoiceId.Thalia, "theia" => FallbackDeepgramVoiceVoiceId.Theia, "vesta" => FallbackDeepgramVoiceVoiceId.Vesta, + "viktoria" => FallbackDeepgramVoiceVoiceId.Viktoria, "zeus" => FallbackDeepgramVoiceVoiceId.Zeus, _ => null, }; diff --git a/src/libs/Vapi/Generated/Vapi.Models.ModelCost.g.cs b/src/libs/Vapi/Generated/Vapi.Models.ModelCost.g.cs index bd80e747..1bbaef83 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.ModelCost.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.ModelCost.g.cs @@ -49,6 +49,13 @@ public sealed partial class ModelCost [global::System.Text.Json.Serialization.JsonPropertyName("cachedPromptTokens")] public double? CachedPromptTokens { get; set; } + /// + /// This is the number of reasoning tokens generated in the call. This is only applicable to reasoning models (e.g., OpenAI o-series, GPT-5) on providers that report them.
+ /// This is a **subset of `completionTokens`**, not an addition to it: reasoning tokens are already counted in `completionTokens` and are already billed at the output-token rate. It is reported separately for visibility only and does not affect `cost`. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("reasoningTokens")] + public double? ReasoningTokens { get; set; } + /// /// This is the cost of the component in USD. /// @@ -90,6 +97,10 @@ public sealed partial class ModelCost /// /// This is the number of cached prompt tokens used in the call. This is only applicable to certain providers (e.g., OpenAI, Azure OpenAI) that support prompt caching. Cached tokens are billed at a discounted rate. /// + /// + /// This is the number of reasoning tokens generated in the call. This is only applicable to reasoning models (e.g., OpenAI o-series, GPT-5) on providers that report them.
+ /// This is a **subset of `completionTokens`**, not an addition to it: reasoning tokens are already counted in `completionTokens` and are already billed at the output-token rate. It is reported separately for visibility only and does not affect `cost`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -99,13 +110,15 @@ public ModelCost( double completionTokens, double cost, global::Vapi.ModelCostType type, - double? cachedPromptTokens) + double? cachedPromptTokens, + double? reasoningTokens) { this.Type = type; this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.PromptTokens = promptTokens; this.CompletionTokens = completionTokens; this.CachedPromptTokens = cachedPromptTokens; + this.ReasoningTokens = reasoningTokens; this.Cost = cost; } diff --git a/src/libs/Vapi/Generated/Vapi.Models.WorkflowAnthropicBedrockModel.g.cs b/src/libs/Vapi/Generated/Vapi.Models.WorkflowAnthropicBedrockModel.g.cs index d249aeca..c54faebd 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.WorkflowAnthropicBedrockModel.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.WorkflowAnthropicBedrockModel.g.cs @@ -8,6 +8,18 @@ namespace Vapi ///
public sealed partial class WorkflowAnthropicBedrockModel { + /// + /// These are the messages used to customize the prompt used for structured output extraction.
+ /// When provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables:
+ /// - `{{transcript}}` or `{{messages}}` to reference the conversation (one is required)
+ /// - `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required)
+ /// - `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues`
+ /// `{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens.
+ /// If not provided, default system and user prompts are used. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("messages")] + public global::System.Collections.Generic.IList? Messages { get; set; } + /// /// This is the provider of the model (`anthropic-bedrock`). /// @@ -54,6 +66,15 @@ public sealed partial class WorkflowAnthropicBedrockModel /// /// This is the specific model that will be used. /// + /// + /// These are the messages used to customize the prompt used for structured output extraction.
+ /// When provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables:
+ /// - `{{transcript}}` or `{{messages}}` to reference the conversation (one is required)
+ /// - `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required)
+ /// - `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues`
+ /// `{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens.
+ /// If not provided, default system and user prompts are used. + /// /// /// This is the provider of the model (`anthropic-bedrock`). /// @@ -72,11 +93,13 @@ public sealed partial class WorkflowAnthropicBedrockModel #endif public WorkflowAnthropicBedrockModel( global::Vapi.WorkflowAnthropicBedrockModelModel model, + global::System.Collections.Generic.IList? messages, global::Vapi.WorkflowAnthropicBedrockModelProvider provider, global::Vapi.AnthropicThinkingConfig? thinking, double? temperature, double? maxTokens) { + this.Messages = messages; this.Provider = provider; this.Model = model; this.Thinking = thinking; diff --git a/src/libs/Vapi/Generated/Vapi.Models.WorkflowAnthropicModel.g.cs b/src/libs/Vapi/Generated/Vapi.Models.WorkflowAnthropicModel.g.cs index cc6e07ef..14303a04 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.WorkflowAnthropicModel.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.WorkflowAnthropicModel.g.cs @@ -8,6 +8,18 @@ namespace Vapi ///
public sealed partial class WorkflowAnthropicModel { + /// + /// These are the messages used to customize the prompt used for structured output extraction.
+ /// When provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables:
+ /// - `{{transcript}}` or `{{messages}}` to reference the conversation (one is required)
+ /// - `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required)
+ /// - `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues`
+ /// `{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens.
+ /// If not provided, default system and user prompts are used. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("messages")] + public global::System.Collections.Generic.IList? Messages { get; set; } + /// /// This is the provider of the model (`anthropic`). /// @@ -54,6 +66,15 @@ public sealed partial class WorkflowAnthropicModel /// /// This is the specific model that will be used. /// + /// + /// These are the messages used to customize the prompt used for structured output extraction.
+ /// When provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables:
+ /// - `{{transcript}}` or `{{messages}}` to reference the conversation (one is required)
+ /// - `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required)
+ /// - `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues`
+ /// `{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens.
+ /// If not provided, default system and user prompts are used. + /// /// /// This is the provider of the model (`anthropic`). /// @@ -72,11 +93,13 @@ public sealed partial class WorkflowAnthropicModel #endif public WorkflowAnthropicModel( global::Vapi.WorkflowAnthropicModelModel model, + global::System.Collections.Generic.IList? messages, global::Vapi.WorkflowAnthropicModelProvider provider, global::Vapi.AnthropicThinkingConfig? thinking, double? temperature, double? maxTokens) { + this.Messages = messages; this.Provider = provider; this.Model = model; this.Thinking = thinking; diff --git a/src/libs/Vapi/Generated/Vapi.Models.WorkflowCustomModel.g.cs b/src/libs/Vapi/Generated/Vapi.Models.WorkflowCustomModel.g.cs index 4b42db86..07f93ffd 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.WorkflowCustomModel.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.WorkflowCustomModel.g.cs @@ -8,6 +8,18 @@ namespace Vapi ///
public sealed partial class WorkflowCustomModel { + /// + /// These are the messages used to customize the prompt used for structured output extraction.
+ /// When provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables:
+ /// - `{{transcript}}` or `{{messages}}` to reference the conversation (one is required)
+ /// - `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required)
+ /// - `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues`
+ /// `{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens.
+ /// If not provided, default system and user prompts are used. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("messages")] + public global::System.Collections.Generic.IList? Messages { get; set; } + /// /// This is the provider of the model (`custom-llm`). /// @@ -80,6 +92,15 @@ public sealed partial class WorkflowCustomModel /// /// This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b /// + /// + /// These are the messages used to customize the prompt used for structured output extraction.
+ /// When provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables:
+ /// - `{{transcript}}` or `{{messages}}` to reference the conversation (one is required)
+ /// - `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required)
+ /// - `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues`
+ /// `{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens.
+ /// If not provided, default system and user prompts are used. + /// /// /// This is the provider of the model (`custom-llm`). /// @@ -109,6 +130,7 @@ public sealed partial class WorkflowCustomModel public WorkflowCustomModel( string url, string model, + global::System.Collections.Generic.IList? messages, global::Vapi.WorkflowCustomModelProvider provider, global::Vapi.WorkflowCustomModelMetadataSendMode? metadataSendMode, object? headers, @@ -116,6 +138,7 @@ public WorkflowCustomModel( double? temperature, double? maxTokens) { + this.Messages = messages; this.Provider = provider; this.MetadataSendMode = metadataSendMode; this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url)); diff --git a/src/libs/Vapi/Generated/Vapi.Models.WorkflowGoogleModel.g.cs b/src/libs/Vapi/Generated/Vapi.Models.WorkflowGoogleModel.g.cs index 4d587931..7a85c63c 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.WorkflowGoogleModel.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.WorkflowGoogleModel.g.cs @@ -8,6 +8,18 @@ namespace Vapi ///
public sealed partial class WorkflowGoogleModel { + /// + /// These are the messages used to customize the prompt used for structured output extraction.
+ /// When provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables:
+ /// - `{{transcript}}` or `{{messages}}` to reference the conversation (one is required)
+ /// - `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required)
+ /// - `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues`
+ /// `{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens.
+ /// If not provided, default system and user prompts are used. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("messages")] + public global::System.Collections.Generic.IList? Messages { get; set; } + /// /// This is the provider of the model (`google`). /// @@ -47,6 +59,15 @@ public sealed partial class WorkflowGoogleModel /// /// This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b /// + /// + /// These are the messages used to customize the prompt used for structured output extraction.
+ /// When provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables:
+ /// - `{{transcript}}` or `{{messages}}` to reference the conversation (one is required)
+ /// - `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required)
+ /// - `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues`
+ /// `{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens.
+ /// If not provided, default system and user prompts are used. + /// /// /// This is the provider of the model (`google`). /// @@ -61,10 +82,12 @@ public sealed partial class WorkflowGoogleModel #endif public WorkflowGoogleModel( global::Vapi.WorkflowGoogleModelModel model, + global::System.Collections.Generic.IList? messages, global::Vapi.WorkflowGoogleModelProvider provider, double? temperature, double? maxTokens) { + this.Messages = messages; this.Provider = provider; this.Model = model; this.Temperature = temperature; diff --git a/src/libs/Vapi/Generated/Vapi.Models.WorkflowOpenAIModel.g.cs b/src/libs/Vapi/Generated/Vapi.Models.WorkflowOpenAIModel.g.cs index 9ce79b85..8b6a9997 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.WorkflowOpenAIModel.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.WorkflowOpenAIModel.g.cs @@ -8,6 +8,18 @@ namespace Vapi ///
public sealed partial class WorkflowOpenAIModel { + /// + /// These are the messages used to customize the prompt used for structured output extraction.
+ /// When provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables:
+ /// - `{{transcript}}` or `{{messages}}` to reference the conversation (one is required)
+ /// - `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required)
+ /// - `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues`
+ /// `{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens.
+ /// If not provided, default system and user prompts are used. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("messages")] + public global::System.Collections.Generic.IList? Messages { get; set; } + /// /// This is the provider of the model (`openai`). /// @@ -51,6 +63,15 @@ public sealed partial class WorkflowOpenAIModel /// When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense.
/// This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/. /// + /// + /// These are the messages used to customize the prompt used for structured output extraction.
+ /// When provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables:
+ /// - `{{transcript}}` or `{{messages}}` to reference the conversation (one is required)
+ /// - `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required)
+ /// - `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues`
+ /// `{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens.
+ /// If not provided, default system and user prompts are used. + /// /// /// This is the provider of the model (`openai`). /// @@ -65,10 +86,12 @@ public sealed partial class WorkflowOpenAIModel #endif public WorkflowOpenAIModel( global::Vapi.WorkflowOpenAIModelModel model, + global::System.Collections.Generic.IList? messages, global::Vapi.WorkflowOpenAIModelProvider provider, double? temperature, double? maxTokens) { + this.Messages = messages; this.Provider = provider; this.Model = model; this.Temperature = temperature; diff --git a/src/libs/Vapi/openapi.yaml b/src/libs/Vapi/openapi.yaml index 08d4525f..57fe5319 100644 --- a/src/libs/Vapi/openapi.yaml +++ b/src/libs/Vapi/openapi.yaml @@ -863,6 +863,9 @@ } } } + }, + "503": { + "description": "Failed to erase call recordings; the call was not deleted. Retry the request." } }, "tags": [ @@ -19249,6 +19252,13 @@ "WorkflowOpenAIModel": { "type": "object", "properties": { + "messages": { + "description": "These are the messages used to customize the prompt used for structured output extraction.\n\nWhen provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables:\n- `{{transcript}}` or `{{messages}}` to reference the conversation (one is required)\n- `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required)\n- `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues`\n\n`{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens.\n\nIf not provided, default system and user prompts are used.", + "type": "array", + "items": { + "$ref": "#/components/schemas/OpenAIMessage" + } + }, "provider": { "type": "string", "description": "This is the provider of the model (`openai`).", @@ -19405,6 +19415,13 @@ "WorkflowAnthropicModel": { "type": "object", "properties": { + "messages": { + "description": "These are the messages used to customize the prompt used for structured output extraction.\n\nWhen provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables:\n- `{{transcript}}` or `{{messages}}` to reference the conversation (one is required)\n- `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required)\n- `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues`\n\n`{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens.\n\nIf not provided, default system and user prompts are used.", + "type": "array", + "items": { + "$ref": "#/components/schemas/OpenAIMessage" + } + }, "provider": { "type": "string", "description": "This is the provider of the model (`anthropic`).", @@ -19463,6 +19480,13 @@ "WorkflowAnthropicBedrockModel": { "type": "object", "properties": { + "messages": { + "description": "These are the messages used to customize the prompt used for structured output extraction.\n\nWhen provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables:\n- `{{transcript}}` or `{{messages}}` to reference the conversation (one is required)\n- `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required)\n- `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues`\n\n`{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens.\n\nIf not provided, default system and user prompts are used.", + "type": "array", + "items": { + "$ref": "#/components/schemas/OpenAIMessage" + } + }, "provider": { "type": "string", "description": "This is the provider of the model (`anthropic-bedrock`).", @@ -19521,6 +19545,13 @@ "WorkflowGoogleModel": { "type": "object", "properties": { + "messages": { + "description": "These are the messages used to customize the prompt used for structured output extraction.\n\nWhen provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables:\n- `{{transcript}}` or `{{messages}}` to reference the conversation (one is required)\n- `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required)\n- `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues`\n\n`{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens.\n\nIf not provided, default system and user prompts are used.", + "type": "array", + "items": { + "$ref": "#/components/schemas/OpenAIMessage" + } + }, "provider": { "type": "string", "description": "This is the provider of the model (`google`).", @@ -19573,6 +19604,13 @@ "WorkflowCustomModel": { "type": "object", "properties": { + "messages": { + "description": "These are the messages used to customize the prompt used for structured output extraction.\n\nWhen provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables:\n- `{{transcript}}` or `{{messages}}` to reference the conversation (one is required)\n- `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required)\n- `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues`\n\n`{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens.\n\nIf not provided, default system and user prompts are used.", + "type": "array", + "items": { + "$ref": "#/components/schemas/OpenAIMessage" + } + }, "provider": { "type": "string", "description": "This is the provider of the model (`custom-llm`).", @@ -23720,6 +23758,7 @@ "asteria", "athena", "atlas", + "aurelia", "aurora", "callista", "carina", @@ -23729,8 +23768,10 @@ "delia", "diana", "draco", + "elara", "electra", "estrella", + "fabian", "harmonia", "helena", "helios", @@ -23740,8 +23781,11 @@ "iris", "janus", "javier", + "julius", "juno", "jupiter", + "kara", + "lara", "luna", "mars", "minerva", @@ -23763,6 +23807,7 @@ "thalia", "theia", "vesta", + "viktoria", "zeus" ], "title": "This is the Deepgram Voice ID" @@ -26321,6 +26366,7 @@ "asteria", "athena", "atlas", + "aurelia", "aurora", "callista", "carina", @@ -26330,8 +26376,10 @@ "delia", "diana", "draco", + "elara", "electra", "estrella", + "fabian", "harmonia", "helena", "helios", @@ -26341,8 +26389,11 @@ "iris", "janus", "javier", + "julius", "juno", "jupiter", + "kara", + "lara", "luna", "mars", "minerva", @@ -26364,6 +26415,7 @@ "thalia", "theia", "vesta", + "viktoria", "zeus" ], "title": "This is the Deepgram Voice ID" @@ -40154,6 +40206,10 @@ "type": "number", "description": "This is the number of cached prompt tokens used in the call. This is only applicable to certain providers (e.g., OpenAI, Azure OpenAI) that support prompt caching. Cached tokens are billed at a discounted rate." }, + "reasoningTokens": { + "type": "number", + "description": "This is the number of reasoning tokens generated in the call. This is only applicable to reasoning models (e.g., OpenAI o-series, GPT-5) on providers that report them.\n\nThis is a **subset of `completionTokens`**, not an addition to it: reasoning tokens are already counted in `completionTokens` and are already billed at the output-token rate. It is reported separately for visibility only and does not affect `cost`." + }, "cost": { "type": "number", "description": "This is the cost of the component in USD." @@ -60250,10 +60306,12 @@ }, "callRetentionDays": { "type": "number", + "nullable": true, "description": "This is the call retention days for the subscription." }, "chatRetentionDays": { "type": "number", + "nullable": true, "description": "This is the chat retention days for the subscription." }, "minutesIncludedResetFrequency": {