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
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,11 @@ partial void ProcessAgentsCallsCreateResponseContent(
/// one signature per secret is produced (comma-separated in X-Ultravox-Signature).<br/>
/// Write-only: this field is never included in API responses.
/// </param>
/// <param name="requestAgentId">
/// The ID of the agent to use for this call. Ignored when an agent is already<br/>
/// identified by request context (e.g. from the request URL); required when there<br/>
/// is no other agent context, such as in a SipFallbackHandlerResponse.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
Expand All @@ -545,6 +550,7 @@ partial void ProcessAgentsCallsCreateResponseContent(
global::Ultravox.UltravoxV1ToolOverrides? toolOverrides = default,
global::Ultravox.UltravoxV1StartAgentCallRequestRetentionPolicy? retentionPolicy = default,
global::System.Collections.Generic.IList<string>? sharedSecrets = default,
string? requestAgentId = default,
global::Ultravox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand All @@ -567,6 +573,7 @@ partial void ProcessAgentsCallsCreateResponseContent(
ToolOverrides = toolOverrides,
RetentionPolicy = retentionPolicy,
SharedSecrets = sharedSecrets,
AgentId = requestAgentId,
};

return await AgentsCallsCreateAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ public partial interface IAgentsClient
/// one signature per secret is produced (comma-separated in X-Ultravox-Signature).<br/>
/// Write-only: this field is never included in API responses.
/// </param>
/// <param name="requestAgentId">
/// The ID of the agent to use for this call. Ignored when an agent is already<br/>
/// identified by request context (e.g. from the request URL); required when there<br/>
/// is no other agent context, such as in a SipFallbackHandlerResponse.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
Expand All @@ -129,6 +134,7 @@ public partial interface IAgentsClient
global::Ultravox.UltravoxV1ToolOverrides? toolOverrides = default,
global::Ultravox.UltravoxV1StartAgentCallRequestRetentionPolicy? retentionPolicy = default,
global::System.Collections.Generic.IList<string>? sharedSecrets = default,
string? requestAgentId = default,
global::Ultravox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,17 @@ public partial interface ISipClient
/// <param name="allowedAgents">
/// Calls must match a pattern for one of these agents (or the global agent pattern if allowAllAgents is true) to be accepted.
/// </param>
/// <param name="fallbackHandler">
/// If set, this webhook is consulted for any incoming SIP call that does not match an agent allowance (including the allowAllAgents allowance if set). The endpoint must respond promptly with a 200 status and a JSON body with exactly one of startAgentCall, startCall, or reject. The first two use the request body for the associated call creation endpoints plus agentId in the former case, while reject may include `sipRejectCode` (default 603) to pass along to the caller.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Ultravox.SipConfig> SipPartialUpdateAsync(
global::System.Collections.Generic.IList<string>? allowedCidrRanges = default,
bool? allowAllAgents = default,
global::System.Collections.Generic.IList<global::Ultravox.AgentAllowance>? allowedAgents = default,
global::Ultravox.FallbackHandler? fallbackHandler = default,
global::Ultravox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
11 changes: 7 additions & 4 deletions src/libs/Ultravox/Generated/Ultravox.JsonSerializerContext.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ namespace Ultravox
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.CorpusUploadsRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.CorpusUploadsResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.EventsEnum), TypeInfoPropertyName = "EventsEnum2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.FallbackHandler))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<string>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.Invoice))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.InvoiceStatusEnum), TypeInfoPropertyName = "InvoiceStatusEnum2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.ModelAlias))]
Expand Down Expand Up @@ -346,7 +348,6 @@ namespace Ultravox
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.PatchedScheduledCallBatch))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.PatchedSetTtsApiKeysRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.PatchedSipConfig))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<string>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Ultravox.AgentAllowance>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.PatchedSipRegistration))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.PatchedTelnyxConfig))]
Expand Down Expand Up @@ -447,12 +448,14 @@ namespace Ultravox
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1SecurityRequirement))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary<string, global::Ultravox.UltravoxV1SecurityRequirement>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1UltravoxCallTokenRequirement))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1SourceStatsStatus), TypeInfoPropertyName = "UltravoxV1SourceStatsStatus2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1SipFallbackHandlerResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1StartAgentCallRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1StartCallRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1SipRejection))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1SourceStatsStatus), TypeInfoPropertyName = "UltravoxV1SourceStatsStatus2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1StartAgentCallRequestInitialOutputMedium), TypeInfoPropertyName = "UltravoxV1StartAgentCallRequestInitialOutputMedium2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1ToolOverrides))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1StartAgentCallRequestRetentionPolicy), TypeInfoPropertyName = "UltravoxV1StartAgentCallRequestRetentionPolicy2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1StartCallRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1StartCallRequestFirstSpeaker), TypeInfoPropertyName = "UltravoxV1StartCallRequestFirstSpeaker2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1StartCallRequestInitialOutputMedium), TypeInfoPropertyName = "UltravoxV1StartCallRequestInitialOutputMedium2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.UltravoxV1StartCallRequestRetentionPolicy), TypeInfoPropertyName = "UltravoxV1StartCallRequestRetentionPolicy2")]
Expand Down Expand Up @@ -483,6 +486,7 @@ namespace Ultravox
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Ultravox.DailyCallStatistics>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Ultravox.HourlyCallStatistics>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Ultravox.ConcurrencyBucket>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<string>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Ultravox.APIKey>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Ultravox.Agent>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Ultravox.CallEvent>))]
Expand All @@ -504,7 +508,6 @@ namespace Ultravox
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Ultravox.UltravoxV1CorpusSource>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Ultravox.UltravoxV1Message>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::System.Guid>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<string>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Ultravox.AgentAllowance>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Ultravox.EventsEnum>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Ultravox.WebhookFailure>))]
Expand Down
Loading