From 7c26fc8e9f6f56f7fafa94484fa7e673231e3ea4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 2 Oct 2026 00:37:48 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Generated/Vapi.JsonSerializerContext.g.cs | 2 +- .../Vapi.JsonSerializerContextTypes.g.cs | 4 +- ...Vapi.Models.FallbackSonioxTranscriber.g.cs | 16 ++- .../Vapi.Models.SonioxTranscriber.g.cs | 14 ++ ...api.Simulations.JsonSerializerContext.g.cs | 2 +- src/libs/Vapi/openapi.yaml | 122 ++++++++++-------- 6 files changed, 101 insertions(+), 59 deletions(-) diff --git a/src/libs/Vapi/Generated/Vapi.JsonSerializerContext.g.cs b/src/libs/Vapi/Generated/Vapi.JsonSerializerContext.g.cs index 205a3681..2b5d9181 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonSerializerContext.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonSerializerContext.g.cs @@ -2200,8 +2200,8 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vapi.CreateSimulationDTO))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vapi.Simulation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vapi.UpdateSimulationDTO))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vapi.SimulationConcurrencyResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vapi.UpdateSimulationDTO))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vapi.BarInsightMetadata))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vapi.InsightTimeRangeWithStep))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vapi.InsightTimeRangeWithStepStep), TypeInfoPropertyName = "InsightTimeRangeWithStepStep2")] diff --git a/src/libs/Vapi/Generated/Vapi.JsonSerializerContextTypes.g.cs b/src/libs/Vapi/Generated/Vapi.JsonSerializerContextTypes.g.cs index b7b7e323..4b2bed14 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonSerializerContextTypes.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonSerializerContextTypes.g.cs @@ -6813,11 +6813,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Vapi.UpdateSimulationDTO? Type1695 { get; set; } + public global::Vapi.SimulationConcurrencyResponse? Type1695 { get; set; } /// /// /// - public global::Vapi.SimulationConcurrencyResponse? Type1696 { get; set; } + public global::Vapi.UpdateSimulationDTO? Type1696 { get; set; } /// /// /// diff --git a/src/libs/Vapi/Generated/Vapi.Models.FallbackSonioxTranscriber.g.cs b/src/libs/Vapi/Generated/Vapi.Models.FallbackSonioxTranscriber.g.cs index 2fe863c4..19bb0ec5 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.FallbackSonioxTranscriber.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.FallbackSonioxTranscriber.g.cs @@ -77,6 +77,14 @@ public sealed partial class FallbackSonioxTranscriber [global::System.Text.Json.Serialization.JsonPropertyName("contextGeneral")] public global::System.Collections.Generic.IList? ContextGeneral { get; set; } + /// + /// Transcripts below this confidence are discarded. For a discarded final, an `assistant.transcriber.endpointedSpeechLowConfidence` hook whose range covers the confidence runs (by default `[threshold - 0.2, threshold)`); if none does, the assistant does not respond to that utterance. Confidence is the mean of the per-token scores, and a transcript with an unscored token counts as 1. When unset, nothing is discarded by this setting.
+ /// Example: 0.4F + ///
+ /// 0.4F + [global::System.Text.Json.Serialization.JsonPropertyName("confidenceThreshold")] + public double? ConfidenceThreshold { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -117,6 +125,10 @@ public sealed partial class FallbackSonioxTranscriber /// General context key-value pairs that guide the AI model during transcription. Helps adapt vocabulary to the correct domain, improving accuracy. Recommended: 10 or fewer pairs. Maps to Soniox context.general.
/// Example: [{"key":"domain","value":"Healthcare"}, {"key":"topic","value":"Diabetes management consultation"}] /// + /// + /// Transcripts below this confidence are discarded. For a discarded final, an `assistant.transcriber.endpointedSpeechLowConfidence` hook whose range covers the confidence runs (by default `[threshold - 0.2, threshold)`); if none does, the assistant does not respond to that utterance. Confidence is the mean of the per-token scores, and a transcript with an unscored token counts as 1. When unset, nothing is discarded by this setting.
+ /// Example: 0.4F + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -130,7 +142,8 @@ public FallbackSonioxTranscriber( double? endpointSensitivity, double? endpointLatencyAdjustmentLevel, global::System.Collections.Generic.IList? customVocabulary, - global::System.Collections.Generic.IList? contextGeneral) + global::System.Collections.Generic.IList? contextGeneral, + double? confidenceThreshold) { this.Provider = provider; this.Model = model; @@ -142,6 +155,7 @@ public FallbackSonioxTranscriber( this.EndpointLatencyAdjustmentLevel = endpointLatencyAdjustmentLevel; this.CustomVocabulary = customVocabulary; this.ContextGeneral = contextGeneral; + this.ConfidenceThreshold = confidenceThreshold; } /// diff --git a/src/libs/Vapi/Generated/Vapi.Models.SonioxTranscriber.g.cs b/src/libs/Vapi/Generated/Vapi.Models.SonioxTranscriber.g.cs index 7aa735f9..a5e904da 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.SonioxTranscriber.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.SonioxTranscriber.g.cs @@ -77,6 +77,14 @@ public sealed partial class SonioxTranscriber [global::System.Text.Json.Serialization.JsonPropertyName("contextGeneral")] public global::System.Collections.Generic.IList? ContextGeneral { get; set; } + /// + /// Transcripts below this confidence are discarded. For a discarded final, an `assistant.transcriber.endpointedSpeechLowConfidence` hook whose range covers the confidence runs (by default `[threshold - 0.2, threshold)`); if none does, the assistant does not respond to that utterance. Confidence is the mean of the per-token scores, and a transcript with an unscored token counts as 1. When unset, nothing is discarded by this setting.
+ /// Example: 0.4F + ///
+ /// 0.4F + [global::System.Text.Json.Serialization.JsonPropertyName("confidenceThreshold")] + public double? ConfidenceThreshold { get; set; } + /// /// This is the plan for transcriber provider fallbacks in the event that the primary transcriber provider fails. /// @@ -123,6 +131,10 @@ public sealed partial class SonioxTranscriber /// General context key-value pairs that guide the AI model during transcription. Helps adapt vocabulary to the correct domain, improving accuracy. Recommended: 10 or fewer pairs. Maps to Soniox context.general.
/// Example: [{"key":"domain","value":"Healthcare"}, {"key":"topic","value":"Diabetes management consultation"}] /// + /// + /// Transcripts below this confidence are discarded. For a discarded final, an `assistant.transcriber.endpointedSpeechLowConfidence` hook whose range covers the confidence runs (by default `[threshold - 0.2, threshold)`); if none does, the assistant does not respond to that utterance. Confidence is the mean of the per-token scores, and a transcript with an unscored token counts as 1. When unset, nothing is discarded by this setting.
+ /// Example: 0.4F + /// /// /// This is the plan for transcriber provider fallbacks in the event that the primary transcriber provider fails. /// @@ -140,6 +152,7 @@ public SonioxTranscriber( double? endpointLatencyAdjustmentLevel, global::System.Collections.Generic.IList? customVocabulary, global::System.Collections.Generic.IList? contextGeneral, + double? confidenceThreshold, global::Vapi.FallbackTranscriberPlan? fallbackPlan) { this.Provider = provider; @@ -152,6 +165,7 @@ public SonioxTranscriber( this.EndpointLatencyAdjustmentLevel = endpointLatencyAdjustmentLevel; this.CustomVocabulary = customVocabulary; this.ContextGeneral = contextGeneral; + this.ConfidenceThreshold = confidenceThreshold; this.FallbackPlan = fallbackPlan; } diff --git a/src/libs/Vapi/Generated/Vapi.Simulations.JsonSerializerContext.g.cs b/src/libs/Vapi/Generated/Vapi.Simulations.JsonSerializerContext.g.cs index 0ccf2453..60137e96 100644 --- a/src/libs/Vapi/Generated/Vapi.Simulations.JsonSerializerContext.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Simulations.JsonSerializerContext.g.cs @@ -26,8 +26,8 @@ namespace Vapi [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vapi.CreateSimulationDTO))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vapi.Simulation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vapi.UpdateSimulationDTO))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vapi.SimulationConcurrencyResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vapi.UpdateSimulationDTO))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vapi.SimulationControllerFindAllSortOrder), TypeInfoPropertyName = "SimulationControllerFindAllSortOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vapi.SimulationControllerFindAllSortBy), TypeInfoPropertyName = "SimulationControllerFindAllSortBy2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] diff --git a/src/libs/Vapi/openapi.yaml b/src/libs/Vapi/openapi.yaml index 4f86f68d..ec3f4279 100644 --- a/src/libs/Vapi/openapi.yaml +++ b/src/libs/Vapi/openapi.yaml @@ -7966,6 +7966,33 @@ ] } }, + "/eval/simulation/concurrency": { + "get": { + "operationId": "SimulationController_getConcurrency", + "summary": "Get Simulation Concurrency", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SimulationConcurrencyResponse" + } + } + } + } + }, + "tags": [ + "Simulations" + ], + "security": [ + { + "bearer": [] + } + ] + } + }, "/eval/simulation/{id}": { "get": { "operationId": "SimulationController_findOne", @@ -8086,33 +8113,6 @@ ] } }, - "/eval/simulation/concurrency": { - "get": { - "operationId": "SimulationController_getConcurrency", - "summary": "Get Simulation Concurrency", - "parameters": [], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SimulationConcurrencyResponse" - } - } - } - } - }, - "tags": [ - "Simulations" - ], - "security": [ - { - "bearer": [] - } - ] - } - }, "/reporting/insight": { "post": { "operationId": "InsightController_create", @@ -12687,6 +12687,13 @@ "$ref": "#/components/schemas/SonioxContextGeneralItem" } }, + "confidenceThreshold": { + "type": "number", + "minimum": 0, + "maximum": 1, + "example": 0.4, + "description": "Transcripts below this confidence are discarded. For a discarded final, an `assistant.transcriber.endpointedSpeechLowConfidence` hook whose range covers the confidence runs (by default `[threshold - 0.2, threshold)`); if none does, the assistant does not respond to that utterance. Confidence is the mean of the per-token scores, and a transcript with an unscored token counts as 1. When unset, nothing is discarded by this setting." + }, "fallbackPlan": { "description": "This is the plan for transcriber provider fallbacks in the event that the primary transcriber provider fails.", "allOf": [ @@ -15779,6 +15786,13 @@ "items": { "$ref": "#/components/schemas/SonioxContextGeneralItem" } + }, + "confidenceThreshold": { + "type": "number", + "minimum": 0, + "maximum": 1, + "example": 0.4, + "description": "Transcripts below this confidence are discarded. For a discarded final, an `assistant.transcriber.endpointedSpeechLowConfidence` hook whose range covers the confidence runs (by default `[threshold - 0.2, threshold)`); if none does, the assistant does not respond to that utterance. Confidence is the mean of the per-token scores, and a transcript with an unscored token counts as 1. When unset, nothing is discarded by this setting." } }, "required": [ @@ -62026,33 +62040,6 @@ "updatedAt" ] }, - "UpdateSimulationDTO": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "This is an optional friendly name for the simulation.", - "maxLength": 80 - }, - "scenarioId": { - "type": "string", - "description": "This is the ID of the scenario to use for this simulation.", - "format": "uuid" - }, - "personalityId": { - "type": "string", - "description": "This is the ID of the personality to use for this simulation.", - "format": "uuid" - }, - "path": { - "type": "string", - "nullable": true, - "description": "Optional folder path for organizing simulations.\nSupports up to 3 levels (e.g., \"dept/feature/variant\").\nSet to null to remove from folder.", - "maxLength": 255, - "pattern": "/^[a-zA-Z0-9][a-zA-Z0-9._-]*(?:\\/[a-zA-Z0-9][a-zA-Z0-9._-]*){0,2}$/" - } - } - }, "SimulationConcurrencyResponse": { "type": "object", "properties": { @@ -62096,6 +62083,33 @@ "updatedAt" ] }, + "UpdateSimulationDTO": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "This is an optional friendly name for the simulation.", + "maxLength": 80 + }, + "scenarioId": { + "type": "string", + "description": "This is the ID of the scenario to use for this simulation.", + "format": "uuid" + }, + "personalityId": { + "type": "string", + "description": "This is the ID of the personality to use for this simulation.", + "format": "uuid" + }, + "path": { + "type": "string", + "nullable": true, + "description": "Optional folder path for organizing simulations.\nSupports up to 3 levels (e.g., \"dept/feature/variant\").\nSet to null to remove from folder.", + "maxLength": 255, + "pattern": "/^[a-zA-Z0-9][a-zA-Z0-9._-]*(?:\\/[a-zA-Z0-9][a-zA-Z0-9._-]*){0,2}$/" + } + } + }, "BarInsightMetadata": { "type": "object", "properties": {