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
58 changes: 55 additions & 3 deletions src/libs/Speechify/Generated/Speechify.AgentClient.Create.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ partial void ProcessCreateResponseContent(

/// <summary>
/// Create Agent<br/>
/// Create a voice agent.
/// Create a voice agent.<br/>
/// The agent lands in the project named by `project_id`, or in the<br/>
/// implicit Default project when none is given. Each project holds at<br/>
/// most a fixed number of live agents; a create past that answers<br/>
/// `409 agent_limit_reached` naming the ceiling, and deleting an agent<br/>
/// in that project - or creating this one in another - frees a slot.
/// </summary>
/// <param name="speechifyVersion"></param>
/// <param name="request"></param>
Expand All @@ -71,7 +76,12 @@ partial void ProcessCreateResponseContent(
}
/// <summary>
/// Create Agent<br/>
/// Create a voice agent.
/// Create a voice agent.<br/>
/// The agent lands in the project named by `project_id`, or in the<br/>
/// implicit Default project when none is given. Each project holds at<br/>
/// most a fixed number of live agents; a create past that answers<br/>
/// `409 agent_limit_reached` naming the ceiling, and deleting an agent<br/>
/// in that project - or creating this one in another - frees a slot.
/// </summary>
/// <param name="speechifyVersion"></param>
/// <param name="request"></param>
Expand Down Expand Up @@ -426,6 +436,43 @@ partial void ProcessCreateResponseContent(
h => h.Key,
h => h.Value));
}
// The request conflicts with the current resource state - e.g. duplicate, optimistic-concurrency mismatch, or last-owner guard.
if ((int)__response.StatusCode == 409)
{
string? __content_409 = null;
global::System.Exception? __exception_409 = null;
global::Speechify.Error? __value_409 = null;
try
{
if (__effectiveReadResponseAsString)
{
__content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext);
}
else
{
__content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
{
__exception_409 = __ex;
}


throw global::Speechify.ApiException<global::Speechify.Error>.Create(
statusCode: __response.StatusCode,
message: __content_409 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_409,
responseBody: __content_409,
responseObject: __value_409,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value));
}

if (__effectiveReadResponseAsString)
{
Expand Down Expand Up @@ -524,7 +571,12 @@ partial void ProcessCreateResponseContent(
}
/// <summary>
/// Create Agent<br/>
/// Create a voice agent.
/// Create a voice agent.<br/>
/// The agent lands in the project named by `project_id`, or in the<br/>
/// implicit Default project when none is given. Each project holds at<br/>
/// most a fixed number of live agents; a create past that answers<br/>
/// `409 agent_limit_reached` naming the ceiling, and deleting an agent<br/>
/// in that project - or creating this one in another - frees a slot.
/// </summary>
/// <param name="speechifyVersion"></param>
/// <param name="projectId">
Expand Down
24 changes: 21 additions & 3 deletions src/libs/Speechify/Generated/Speechify.AgentClient.CreateTool.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@ partial void ProcessCreateToolResponseContent(
/// `kind=webhook`, `client`, or `mcp` this atomically creates a<br/>
/// workspace tool definition AND attaches it to the agent in one<br/>
/// call. To attach a definition that already exists, use<br/>
/// `PUT /v1/agents/{agent_id}/tools/{tool_id}` instead.
/// `PUT /v1/agents/{agent_id}/tools/{tool_id}` instead.<br/>
/// A field this endpoint does not define is refused with `400<br/>
/// validation_failed` naming every unknown field, rather than accepted<br/>
/// and silently dropped.<br/>
/// The contents of `config` are your own data at this level; they are<br/>
/// validated against the tool kind's own schema, which has always<br/>
/// refused an unknown key there.
/// </summary>
/// <param name="agentId"></param>
/// <param name="speechifyVersion"></param>
Expand Down Expand Up @@ -88,7 +94,13 @@ partial void ProcessCreateToolResponseContent(
/// `kind=webhook`, `client`, or `mcp` this atomically creates a<br/>
/// workspace tool definition AND attaches it to the agent in one<br/>
/// call. To attach a definition that already exists, use<br/>
/// `PUT /v1/agents/{agent_id}/tools/{tool_id}` instead.
/// `PUT /v1/agents/{agent_id}/tools/{tool_id}` instead.<br/>
/// A field this endpoint does not define is refused with `400<br/>
/// validation_failed` naming every unknown field, rather than accepted<br/>
/// and silently dropped.<br/>
/// The contents of `config` are your own data at this level; they are<br/>
/// validated against the tool kind's own schema, which has always<br/>
/// refused an unknown key there.
/// </summary>
/// <param name="agentId"></param>
/// <param name="speechifyVersion"></param>
Expand Down Expand Up @@ -625,7 +637,13 @@ partial void ProcessCreateToolResponseContent(
/// `kind=webhook`, `client`, or `mcp` this atomically creates a<br/>
/// workspace tool definition AND attaches it to the agent in one<br/>
/// call. To attach a definition that already exists, use<br/>
/// `PUT /v1/agents/{agent_id}/tools/{tool_id}` instead.
/// `PUT /v1/agents/{agent_id}/tools/{tool_id}` instead.<br/>
/// A field this endpoint does not define is refused with `400<br/>
/// validation_failed` naming every unknown field, rather than accepted<br/>
/// and silently dropped.<br/>
/// The contents of `config` are your own data at this level; they are<br/>
/// validated against the tool kind's own schema, which has always<br/>
/// refused an unknown key there.
/// </summary>
/// <param name="agentId"></param>
/// <param name="speechifyVersion"></param>
Expand Down
24 changes: 21 additions & 3 deletions src/libs/Speechify/Generated/Speechify.AgentClient.UpdateTool.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ partial void ProcessUpdateToolResponseContent(
/// editable here — its shared config/name is edited on the<br/>
/// definition (`PATCH /v1/agents/tool-definitions/{tool_definition_id}`), since the<br/>
/// definition is referenced live by every agent it is attached to;<br/>
/// attempting a shared-config edit here returns `tool_config_shared`.
/// attempting a shared-config edit here returns `tool_config_shared`.<br/>
/// A field this endpoint does not define is refused with `400<br/>
/// validation_failed` naming every unknown field, rather than accepted<br/>
/// and silently dropped.<br/>
/// The contents of `config` are your own data at this level; they are<br/>
/// validated against the tool kind's own schema, which has always<br/>
/// refused an unknown key there.
/// </summary>
/// <param name="agentId"></param>
/// <param name="toolId"></param>
Expand Down Expand Up @@ -91,7 +97,13 @@ partial void ProcessUpdateToolResponseContent(
/// editable here — its shared config/name is edited on the<br/>
/// definition (`PATCH /v1/agents/tool-definitions/{tool_definition_id}`), since the<br/>
/// definition is referenced live by every agent it is attached to;<br/>
/// attempting a shared-config edit here returns `tool_config_shared`.
/// attempting a shared-config edit here returns `tool_config_shared`.<br/>
/// A field this endpoint does not define is refused with `400<br/>
/// validation_failed` naming every unknown field, rather than accepted<br/>
/// and silently dropped.<br/>
/// The contents of `config` are your own data at this level; they are<br/>
/// validated against the tool kind's own schema, which has always<br/>
/// refused an unknown key there.
/// </summary>
/// <param name="agentId"></param>
/// <param name="toolId"></param>
Expand Down Expand Up @@ -631,7 +643,13 @@ partial void ProcessUpdateToolResponseContent(
/// editable here — its shared config/name is edited on the<br/>
/// definition (`PATCH /v1/agents/tool-definitions/{tool_definition_id}`), since the<br/>
/// definition is referenced live by every agent it is attached to;<br/>
/// attempting a shared-config edit here returns `tool_config_shared`.
/// attempting a shared-config edit here returns `tool_config_shared`.<br/>
/// A field this endpoint does not define is refused with `400<br/>
/// validation_failed` naming every unknown field, rather than accepted<br/>
/// and silently dropped.<br/>
/// The contents of `config` are your own data at this level; they are<br/>
/// validated against the tool kind's own schema, which has always<br/>
/// refused an unknown key there.
/// </summary>
/// <param name="agentId"></param>
/// <param name="toolId"></param>
Expand Down
40 changes: 24 additions & 16 deletions src/libs/Speechify/Generated/Speechify.ContactsClient.Delete.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,19 @@ partial void ProcessDeleteResponseContent(
/// the variables, the output and every journalled step. The facts<br/>
/// extracted from either, and the copies frozen into past prompts, go<br/>
/// with them.<br/>
/// A recording stops being served from the moment of the request, and a<br/>
/// call still in progress can no longer append to its transcript, so a<br/>
/// turn that lands after the erasure cannot put the person back.<br/>
/// The stored audio itself is deleted 30 days later, not immediately.<br/>
/// This is deliberate: an erasure that destroyed the bytes on request<br/>
/// would be a way to erase evidence, so the recording stops being<br/>
/// reachable at once and stays recoverable by us for the same 30 days a<br/>
/// deleted agent or a purged project does. Absent an erasure, every<br/>
/// The transcript and the recording of a call both stop being readable<br/>
/// from the moment of the request, and a call still in progress can no<br/>
/// longer append to its transcript, so a turn that lands after the<br/>
/// erasure cannot put the person back.<br/>
/// Both are destroyed 30 days later, not immediately. This is<br/>
/// deliberate: an erasure that destroyed them on request would be a way<br/>
/// to erase evidence of what happened on the call, so they stop being<br/>
/// reachable at once and stay recoverable by us for the same 30 days a<br/>
/// deleted agent or a purged project does. Absent an erasure, a<br/>
/// recording is kept for one year from the call and removed after that.<br/>
/// `conversations_erased` and `messages_erased` count what stopped being<br/>
/// readable, which is what the request asked for; the rows behind them<br/>
/// are removed on the schedule above.<br/>
/// The identifiers are tombstoned as part of the purge, which is what<br/>
/// stops the person's phone number ever resolving again: a later merge<br/>
/// naming the purged contact moves rows that are already dead rather than<br/>
Expand Down Expand Up @@ -122,15 +126,19 @@ partial void ProcessDeleteResponseContent(
/// the variables, the output and every journalled step. The facts<br/>
/// extracted from either, and the copies frozen into past prompts, go<br/>
/// with them.<br/>
/// A recording stops being served from the moment of the request, and a<br/>
/// call still in progress can no longer append to its transcript, so a<br/>
/// turn that lands after the erasure cannot put the person back.<br/>
/// The stored audio itself is deleted 30 days later, not immediately.<br/>
/// This is deliberate: an erasure that destroyed the bytes on request<br/>
/// would be a way to erase evidence, so the recording stops being<br/>
/// reachable at once and stays recoverable by us for the same 30 days a<br/>
/// deleted agent or a purged project does. Absent an erasure, every<br/>
/// The transcript and the recording of a call both stop being readable<br/>
/// from the moment of the request, and a call still in progress can no<br/>
/// longer append to its transcript, so a turn that lands after the<br/>
/// erasure cannot put the person back.<br/>
/// Both are destroyed 30 days later, not immediately. This is<br/>
/// deliberate: an erasure that destroyed them on request would be a way<br/>
/// to erase evidence of what happened on the call, so they stop being<br/>
/// reachable at once and stay recoverable by us for the same 30 days a<br/>
/// deleted agent or a purged project does. Absent an erasure, a<br/>
/// recording is kept for one year from the call and removed after that.<br/>
/// `conversations_erased` and `messages_erased` count what stopped being<br/>
/// readable, which is what the request asked for; the rows behind them<br/>
/// are removed on the schedule above.<br/>
/// The identifiers are tombstoned as part of the purge, which is what<br/>
/// stops the person's phone number ever resolving again: a later merge<br/>
/// naming the purged contact moves rows that are already dead rather than<br/>
Expand Down
21 changes: 18 additions & 3 deletions src/libs/Speechify/Generated/Speechify.IAgentClient.Create.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ public partial interface IAgentClient
{
/// <summary>
/// Create Agent<br/>
/// Create a voice agent.
/// Create a voice agent.<br/>
/// The agent lands in the project named by `project_id`, or in the<br/>
/// implicit Default project when none is given. Each project holds at<br/>
/// most a fixed number of live agents; a create past that answers<br/>
/// `409 agent_limit_reached` naming the ceiling, and deleting an agent<br/>
/// in that project - or creating this one in another - frees a slot.
/// </summary>
/// <param name="speechifyVersion"></param>
/// <param name="request"></param>
Expand All @@ -21,7 +26,12 @@ public partial interface IAgentClient
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create Agent<br/>
/// Create a voice agent.
/// Create a voice agent.<br/>
/// The agent lands in the project named by `project_id`, or in the<br/>
/// implicit Default project when none is given. Each project holds at<br/>
/// most a fixed number of live agents; a create past that answers<br/>
/// `409 agent_limit_reached` naming the ceiling, and deleting an agent<br/>
/// in that project - or creating this one in another - frees a slot.
/// </summary>
/// <param name="speechifyVersion"></param>
/// <param name="request"></param>
Expand All @@ -36,7 +46,12 @@ public partial interface IAgentClient
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create Agent<br/>
/// Create a voice agent.
/// Create a voice agent.<br/>
/// The agent lands in the project named by `project_id`, or in the<br/>
/// implicit Default project when none is given. Each project holds at<br/>
/// most a fixed number of live agents; a create past that answers<br/>
/// `409 agent_limit_reached` naming the ceiling, and deleting an agent<br/>
/// in that project - or creating this one in another - frees a slot.
/// </summary>
/// <param name="speechifyVersion"></param>
/// <param name="projectId">
Expand Down
Loading