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 @@ -54,14 +54,12 @@ partial void ProcessListTTSModelsResponseContent(
/// - `english_only` - the model has no multilingual deployment, so an<br/>
/// agent that declares `additional_languages` (or whose `language` is<br/>
/// not English) cannot select it.<br/>
/// - `requires_voice_curation` - a voice must be registered for the<br/>
/// model before it can be selected with that voice. The voice's<br/>
/// `models` array on GET /v1/agents/voices is the per-voice answer,<br/>
/// and it changes as voices are curated, with no release here. It is<br/>
/// false for a model offered across the catalog, which every Speechify<br/>
/// voice can then select.<br/>
/// Drive a model picker from this and the voice catalog together and it<br/>
/// can only offer combinations POST/PATCH /v1/agents will accept.<br/>
/// - `requires_voice_curation` - deprecated and always false. No model<br/>
/// asks a voice for a registration: every training conditions on the<br/>
/// voice's own prompt audio, so every model is selectable on every<br/>
/// voice we speak ourselves, cloned voices included.<br/>
/// Drive a model picker from this and the agent's languages and it can<br/>
/// only offer combinations POST/PATCH /v1/agents will accept.<br/>
/// Returns the full set in one response: bounded by the platform's<br/>
/// curated model catalog, so it is intentionally not paginated.
/// </summary>
Expand Down Expand Up @@ -95,14 +93,12 @@ partial void ProcessListTTSModelsResponseContent(
/// - `english_only` - the model has no multilingual deployment, so an<br/>
/// agent that declares `additional_languages` (or whose `language` is<br/>
/// not English) cannot select it.<br/>
/// - `requires_voice_curation` - a voice must be registered for the<br/>
/// model before it can be selected with that voice. The voice's<br/>
/// `models` array on GET /v1/agents/voices is the per-voice answer,<br/>
/// and it changes as voices are curated, with no release here. It is<br/>
/// false for a model offered across the catalog, which every Speechify<br/>
/// voice can then select.<br/>
/// Drive a model picker from this and the voice catalog together and it<br/>
/// can only offer combinations POST/PATCH /v1/agents will accept.<br/>
/// - `requires_voice_curation` - deprecated and always false. No model<br/>
/// asks a voice for a registration: every training conditions on the<br/>
/// voice's own prompt audio, so every model is selectable on every<br/>
/// voice we speak ourselves, cloned voices included.<br/>
/// Drive a model picker from this and the agent's languages and it can<br/>
/// only offer combinations POST/PATCH /v1/agents will accept.<br/>
/// Returns the full set in one response: bounded by the platform's<br/>
/// curated model catalog, so it is intentionally not paginated.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@ public partial interface IAgentClient
/// - `english_only` - the model has no multilingual deployment, so an<br/>
/// agent that declares `additional_languages` (or whose `language` is<br/>
/// not English) cannot select it.<br/>
/// - `requires_voice_curation` - a voice must be registered for the<br/>
/// model before it can be selected with that voice. The voice's<br/>
/// `models` array on GET /v1/agents/voices is the per-voice answer,<br/>
/// and it changes as voices are curated, with no release here. It is<br/>
/// false for a model offered across the catalog, which every Speechify<br/>
/// voice can then select.<br/>
/// Drive a model picker from this and the voice catalog together and it<br/>
/// can only offer combinations POST/PATCH /v1/agents will accept.<br/>
/// - `requires_voice_curation` - deprecated and always false. No model<br/>
/// asks a voice for a registration: every training conditions on the<br/>
/// voice's own prompt audio, so every model is selectable on every<br/>
/// voice we speak ourselves, cloned voices included.<br/>
/// Drive a model picker from this and the agent's languages and it can<br/>
/// only offer combinations POST/PATCH /v1/agents will accept.<br/>
/// Returns the full set in one response: bounded by the platform's<br/>
/// curated model catalog, so it is intentionally not paginated.
/// </summary>
Expand All @@ -49,14 +47,12 @@ public partial interface IAgentClient
/// - `english_only` - the model has no multilingual deployment, so an<br/>
/// agent that declares `additional_languages` (or whose `language` is<br/>
/// not English) cannot select it.<br/>
/// - `requires_voice_curation` - a voice must be registered for the<br/>
/// model before it can be selected with that voice. The voice's<br/>
/// `models` array on GET /v1/agents/voices is the per-voice answer,<br/>
/// and it changes as voices are curated, with no release here. It is<br/>
/// false for a model offered across the catalog, which every Speechify<br/>
/// voice can then select.<br/>
/// Drive a model picker from this and the voice catalog together and it<br/>
/// can only offer combinations POST/PATCH /v1/agents will accept.<br/>
/// - `requires_voice_curation` - deprecated and always false. No model<br/>
/// asks a voice for a registration: every training conditions on the<br/>
/// voice's own prompt audio, so every model is selectable on every<br/>
/// voice we speak ourselves, cloned voices included.<br/>
/// Drive a model picker from this and the agent's languages and it can<br/>
/// only offer combinations POST/PATCH /v1/agents will accept.<br/>
/// Returns the full set in one response: bounded by the platform's<br/>
/// curated model catalog, so it is intentionally not paginated.
/// </summary>
Expand Down
51 changes: 48 additions & 3 deletions src/libs/Speechify/Generated/Speechify.ITriggersClient.Fire.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,24 @@ public partial interface ITriggersClient
/// one-time fire token as `Authorization: Bearer &lt;secret&gt;`. The JSON body<br/>
/// becomes the started run's payload variable. Supply an `Idempotency-Key`<br/>
/// (or `Speechify-Delivery-Id`) header to make a redelivery replay the<br/>
/// original run instead of starting a second one.
/// original run instead of starting a second one.<br/>
/// **Reacting to something that happened, for one person.** Set the<br/>
/// trigger's `webhook.user_identity_source` to `fire` and send<br/>
/// `Speechify-User-Identity` on each POST. The run then acts for that<br/>
/// person - their memory, and every tool call told who it is for - so one<br/>
/// trigger serves every person your connector watches and you hold no<br/>
/// trigger id per person. Use the plain form (`user_identity_source:<br/>
/// trigger`) when the work is the same whoever it is for: a nightly<br/>
/// reconciliation, an alert fan-out, a build that finished.<br/>
/// **Rate.** A trigger admits 60 fires a minute, and 12 a minute for any<br/>
/// one person; past either the endpoint answers `429` with `Retry-After`.<br/>
/// A fire starts a durable run against your credit balance, so a burst is<br/>
/// deferred rather than fanned out. Retry the refused delivery under the<br/>
/// same delivery id and it runs exactly once.
/// </summary>
/// <param name="triggerId"></param>
/// <param name="speechifyVersion"></param>
/// <param name="speechifyUserIdentity"></param>
/// <param name="request"></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>
Expand All @@ -23,6 +37,7 @@ public partial interface ITriggersClient

object request,
string? speechifyVersion = default,
string? speechifyUserIdentity = default,
global::Speechify.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
Expand All @@ -31,10 +46,24 @@ public partial interface ITriggersClient
/// one-time fire token as `Authorization: Bearer &lt;secret&gt;`. The JSON body<br/>
/// becomes the started run's payload variable. Supply an `Idempotency-Key`<br/>
/// (or `Speechify-Delivery-Id`) header to make a redelivery replay the<br/>
/// original run instead of starting a second one.
/// original run instead of starting a second one.<br/>
/// **Reacting to something that happened, for one person.** Set the<br/>
/// trigger's `webhook.user_identity_source` to `fire` and send<br/>
/// `Speechify-User-Identity` on each POST. The run then acts for that<br/>
/// person - their memory, and every tool call told who it is for - so one<br/>
/// trigger serves every person your connector watches and you hold no<br/>
/// trigger id per person. Use the plain form (`user_identity_source:<br/>
/// trigger`) when the work is the same whoever it is for: a nightly<br/>
/// reconciliation, an alert fan-out, a build that finished.<br/>
/// **Rate.** A trigger admits 60 fires a minute, and 12 a minute for any<br/>
/// one person; past either the endpoint answers `429` with `Retry-After`.<br/>
/// A fire starts a durable run against your credit balance, so a burst is<br/>
/// deferred rather than fanned out. Retry the refused delivery under the<br/>
/// same delivery id and it runs exactly once.
/// </summary>
/// <param name="triggerId"></param>
/// <param name="speechifyVersion"></param>
/// <param name="speechifyUserIdentity"></param>
/// <param name="request"></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>
Expand All @@ -44,6 +73,7 @@ public partial interface ITriggersClient

object request,
string? speechifyVersion = default,
string? speechifyUserIdentity = default,
global::Speechify.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
Expand All @@ -52,16 +82,31 @@ public partial interface ITriggersClient
/// one-time fire token as `Authorization: Bearer &lt;secret&gt;`. The JSON body<br/>
/// becomes the started run's payload variable. Supply an `Idempotency-Key`<br/>
/// (or `Speechify-Delivery-Id`) header to make a redelivery replay the<br/>
/// original run instead of starting a second one.
/// original run instead of starting a second one.<br/>
/// **Reacting to something that happened, for one person.** Set the<br/>
/// trigger's `webhook.user_identity_source` to `fire` and send<br/>
/// `Speechify-User-Identity` on each POST. The run then acts for that<br/>
/// person - their memory, and every tool call told who it is for - so one<br/>
/// trigger serves every person your connector watches and you hold no<br/>
/// trigger id per person. Use the plain form (`user_identity_source:<br/>
/// trigger`) when the work is the same whoever it is for: a nightly<br/>
/// reconciliation, an alert fan-out, a build that finished.<br/>
/// **Rate.** A trigger admits 60 fires a minute, and 12 a minute for any<br/>
/// one person; past either the endpoint answers `429` with `Retry-After`.<br/>
/// A fire starts a durable run against your credit balance, so a burst is<br/>
/// deferred rather than fanned out. Retry the refused delivery under the<br/>
/// same delivery id and it runs exactly once.
/// </summary>
/// <param name="triggerId"></param>
/// <param name="speechifyVersion"></param>
/// <param name="speechifyUserIdentity"></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::Speechify.AgentTriggerFireResponse> FireAsync(
string triggerId,
string? speechifyVersion = default,
string? speechifyUserIdentity = default,
global::Speechify.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace Speechify.JsonConverters
{
/// <inheritdoc />
public sealed class TriggerWebhookConfigUserIdentitySourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Speechify.TriggerWebhookConfigUserIdentitySource>
{
/// <inheritdoc />
public override global::Speechify.TriggerWebhookConfigUserIdentitySource Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Speechify.TriggerWebhookConfigUserIdentitySourceExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Speechify.TriggerWebhookConfigUserIdentitySource)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Speechify.TriggerWebhookConfigUserIdentitySource);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Speechify.TriggerWebhookConfigUserIdentitySource value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::Speechify.TriggerWebhookConfigUserIdentitySourceExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#nullable enable

namespace Speechify.JsonConverters
{
/// <inheritdoc />
public sealed class TriggerWebhookConfigUserIdentitySourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Speechify.TriggerWebhookConfigUserIdentitySource?>
{
/// <inheritdoc />
public override global::Speechify.TriggerWebhookConfigUserIdentitySource? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Speechify.TriggerWebhookConfigUserIdentitySourceExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Speechify.TriggerWebhookConfigUserIdentitySource)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Speechify.TriggerWebhookConfigUserIdentitySource?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Speechify.TriggerWebhookConfigUserIdentitySource? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

if (value == null)
{
writer.WriteNullValue();
}
else
{
writer.WriteStringValue(global::Speechify.TriggerWebhookConfigUserIdentitySourceExtensions.ToValueString(value.Value));
}
}
}
}
Loading