Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libs/Vapi/Generated/Vapi.JsonSerializerContext.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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::Vapi.GeneratedScenario>))]
[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")]
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Vapi/Generated/Vapi.JsonSerializerContextTypes.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6813,11 +6813,11 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::Vapi.UpdateSimulationDTO? Type1695 { get; set; }
public global::Vapi.SimulationConcurrencyResponse? Type1695 { get; set; }
/// <summary>
///
/// </summary>
public global::Vapi.SimulationConcurrencyResponse? Type1696 { get; set; }
public global::Vapi.UpdateSimulationDTO? Type1696 { get; set; }
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ public sealed partial class FallbackSonioxTranscriber
[global::System.Text.Json.Serialization.JsonPropertyName("contextGeneral")]
public global::System.Collections.Generic.IList<global::Vapi.SonioxContextGeneralItem>? ContextGeneral { get; set; }

/// <summary>
/// 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.<br/>
/// Example: 0.4F
/// </summary>
/// <example>0.4F</example>
[global::System.Text.Json.Serialization.JsonPropertyName("confidenceThreshold")]
public double? ConfidenceThreshold { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down Expand Up @@ -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.<br/>
/// Example: [{"key":"domain","value":"Healthcare"}, {"key":"topic","value":"Diabetes management consultation"}]
/// </param>
/// <param name="confidenceThreshold">
/// 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.<br/>
/// Example: 0.4F
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -130,7 +142,8 @@ public FallbackSonioxTranscriber(
double? endpointSensitivity,
double? endpointLatencyAdjustmentLevel,
global::System.Collections.Generic.IList<string>? customVocabulary,
global::System.Collections.Generic.IList<global::Vapi.SonioxContextGeneralItem>? contextGeneral)
global::System.Collections.Generic.IList<global::Vapi.SonioxContextGeneralItem>? contextGeneral,
double? confidenceThreshold)
{
this.Provider = provider;
this.Model = model;
Expand All @@ -142,6 +155,7 @@ public FallbackSonioxTranscriber(
this.EndpointLatencyAdjustmentLevel = endpointLatencyAdjustmentLevel;
this.CustomVocabulary = customVocabulary;
this.ContextGeneral = contextGeneral;
this.ConfidenceThreshold = confidenceThreshold;
}

/// <summary>
Expand Down
14 changes: 14 additions & 0 deletions src/libs/Vapi/Generated/Vapi.Models.SonioxTranscriber.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ public sealed partial class SonioxTranscriber
[global::System.Text.Json.Serialization.JsonPropertyName("contextGeneral")]
public global::System.Collections.Generic.IList<global::Vapi.SonioxContextGeneralItem>? ContextGeneral { get; set; }

/// <summary>
/// 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.<br/>
/// Example: 0.4F
/// </summary>
/// <example>0.4F</example>
[global::System.Text.Json.Serialization.JsonPropertyName("confidenceThreshold")]
public double? ConfidenceThreshold { get; set; }

/// <summary>
/// This is the plan for transcriber provider fallbacks in the event that the primary transcriber provider fails.
/// </summary>
Expand Down Expand Up @@ -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.<br/>
/// Example: [{"key":"domain","value":"Healthcare"}, {"key":"topic","value":"Diabetes management consultation"}]
/// </param>
/// <param name="confidenceThreshold">
/// 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.<br/>
/// Example: 0.4F
/// </param>
/// <param name="fallbackPlan">
/// This is the plan for transcriber provider fallbacks in the event that the primary transcriber provider fails.
/// </param>
Expand All @@ -140,6 +152,7 @@ public SonioxTranscriber(
double? endpointLatencyAdjustmentLevel,
global::System.Collections.Generic.IList<string>? customVocabulary,
global::System.Collections.Generic.IList<global::Vapi.SonioxContextGeneralItem>? contextGeneral,
double? confidenceThreshold,
global::Vapi.FallbackTranscriberPlan? fallbackPlan)
{
this.Provider = provider;
Expand All @@ -152,6 +165,7 @@ public SonioxTranscriber(
this.EndpointLatencyAdjustmentLevel = endpointLatencyAdjustmentLevel;
this.CustomVocabulary = customVocabulary;
this.ContextGeneral = contextGeneral;
this.ConfidenceThreshold = confidenceThreshold;
this.FallbackPlan = fallbackPlan;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ namespace Vapi
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Vapi.GeneratedScenario>))]
[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<global::Vapi.Simulation>))]
Expand Down
122 changes: 68 additions & 54 deletions src/libs/Vapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down
Loading