From d624ffd2c4f0e613d8c68dfe4a6f7b7bef63c8ed Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 13 Sep 2026 22:45:49 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...Speechify.Files.JsonSerializerContext.g.cs | 30 +- .../Speechify.IRunsClient.StreamEvents.g.cs | 58 +- ...fy.JsonConverters.AgentRunStreamEvent.g.cs | 31 +- ...rters.AgentRunStreamEventVariant4Type.g.cs | 53 + ...entRunStreamEventVariant4TypeNullable.g.cs | 60 + .../Speechify.JsonSerializerContext.g.cs | 77 +- .../Speechify.JsonSerializerContextTypes.g.cs | 1132 +++++++++-------- .../Generated/Speechify.Models.AgentRun.g.cs | 38 +- .../Speechify.Models.AgentRunStep.g.cs | 25 +- .../Speechify.Models.AgentRunStreamEvent.g.cs | 143 ++- ....AgentRunStreamEventDiscriminatorType.g.cs | 6 + ...fy.Models.AgentRunStreamEventVariant1.g.cs | 23 + ...fy.Models.AgentRunStreamEventVariant2.g.cs | 51 +- ...odels.AgentRunStreamEventVariant2Type.g.cs | 6 +- ...fy.Models.AgentRunStreamEventVariant3.g.cs | 45 +- ...odels.AgentRunStreamEventVariant3Type.g.cs | 6 +- ...dels.AgentRunStreamEventVariant4.Json.g.cs | 141 ++ ...fy.Models.AgentRunStreamEventVariant4.g.cs | 107 ++ ...odels.AgentRunStreamEventVariant4Type.g.cs | 45 + .../Generated/Speechify.Models.File.g.cs | 9 +- .../Speechify.Runs.JsonSerializerContext.g.cs | 37 + .../Speechify.RunsClient.StreamEvents.g.cs | 58 +- ...Speechify.Teams.JsonSerializerContext.g.cs | 20 + src/libs/Speechify/openapi.yaml | 2 +- 24 files changed, 1478 insertions(+), 725 deletions(-) create mode 100644 src/libs/Speechify/Generated/Speechify.JsonConverters.AgentRunStreamEventVariant4Type.g.cs create mode 100644 src/libs/Speechify/Generated/Speechify.JsonConverters.AgentRunStreamEventVariant4TypeNullable.g.cs create mode 100644 src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant4.Json.g.cs create mode 100644 src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant4.g.cs create mode 100644 src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant4Type.g.cs diff --git a/src/libs/Speechify/Generated/Speechify.Files.JsonSerializerContext.g.cs b/src/libs/Speechify/Generated/Speechify.Files.JsonSerializerContext.g.cs index 8c9d48c..753a049 100644 --- a/src/libs/Speechify/Generated/Speechify.Files.JsonSerializerContext.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Files.JsonSerializerContext.g.cs @@ -28,12 +28,12 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.Error))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.V1FilesGetParametersKind), TypeInfoPropertyName = "V1FilesGetParametersKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.FileKind), TypeInfoPropertyName = "FileKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.FileSource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.File))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ListFilesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.V1FilesGetParametersKind), TypeInfoPropertyName = "V1FilesGetParametersKind2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ListFilesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.V1FilesPostRequestBodyContentMultipartFormDataSchemaKind), TypeInfoPropertyName = "V1FilesPostRequestBodyContentMultipartFormDataSchemaKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.UploadRequest2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] @@ -41,8 +41,8 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ErrorCode?), TypeInfoPropertyName = "NullableErrorCode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.V1FilesGetParametersKind?), TypeInfoPropertyName = "NullableV1FilesGetParametersKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.FileKind?), TypeInfoPropertyName = "NullableFileKind2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.V1FilesGetParametersKind?), TypeInfoPropertyName = "NullableV1FilesGetParametersKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.V1FilesPostRequestBodyContentMultipartFormDataSchemaKind?), TypeInfoPropertyName = "NullableV1FilesPostRequestBodyContentMultipartFormDataSchemaKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class FilesSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext @@ -115,14 +115,14 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Speechify.ErrorCode?) - || typeToConvert == typeof(global::Speechify.V1FilesGetParametersKind) - - || typeToConvert == typeof(global::Speechify.V1FilesGetParametersKind?) - || typeToConvert == typeof(global::Speechify.FileKind) || typeToConvert == typeof(global::Speechify.FileKind?) + || typeToConvert == typeof(global::Speechify.V1FilesGetParametersKind) + + || typeToConvert == typeof(global::Speechify.V1FilesGetParametersKind?) + || typeToConvert == typeof(global::Speechify.V1FilesPostRequestBodyContentMultipartFormDataSchemaKind) || typeToConvert == typeof(global::Speechify.V1FilesPostRequestBodyContentMultipartFormDataSchemaKind?); @@ -142,24 +142,24 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Speechify.JsonConverters.ErrorCodeNullableJsonConverter(); } - if (typeToConvert == typeof(global::Speechify.V1FilesGetParametersKind)) + if (typeToConvert == typeof(global::Speechify.FileKind)) { - return new global::Speechify.JsonConverters.V1FilesGetParametersKindJsonConverter(); + return new global::Speechify.JsonConverters.FileKindJsonConverter(); } - if (typeToConvert == typeof(global::Speechify.V1FilesGetParametersKind?)) + if (typeToConvert == typeof(global::Speechify.FileKind?)) { - return new global::Speechify.JsonConverters.V1FilesGetParametersKindNullableJsonConverter(); + return new global::Speechify.JsonConverters.FileKindNullableJsonConverter(); } - if (typeToConvert == typeof(global::Speechify.FileKind)) + if (typeToConvert == typeof(global::Speechify.V1FilesGetParametersKind)) { - return new global::Speechify.JsonConverters.FileKindJsonConverter(); + return new global::Speechify.JsonConverters.V1FilesGetParametersKindJsonConverter(); } - if (typeToConvert == typeof(global::Speechify.FileKind?)) + if (typeToConvert == typeof(global::Speechify.V1FilesGetParametersKind?)) { - return new global::Speechify.JsonConverters.FileKindNullableJsonConverter(); + return new global::Speechify.JsonConverters.V1FilesGetParametersKindNullableJsonConverter(); } if (typeToConvert == typeof(global::Speechify.V1FilesPostRequestBodyContentMultipartFormDataSchemaKind)) diff --git a/src/libs/Speechify/Generated/Speechify.IRunsClient.StreamEvents.g.cs b/src/libs/Speechify/Generated/Speechify.IRunsClient.StreamEvents.g.cs index 3c1ddb6..f7c6ae5 100644 --- a/src/libs/Speechify/Generated/Speechify.IRunsClient.StreamEvents.g.cs +++ b/src/libs/Speechify/Generated/Speechify.IRunsClient.StreamEvents.g.cs @@ -10,13 +10,45 @@ public partial interface IRunsClient /// a long-running agent instead of polling it.
/// Holds the connection open and tails the run's journal: a
/// `run.step.added` event per step (its `data` is a RunStep object, the
- /// same shape List Run Steps returns), a `run.status.changed` event when
- /// the run's status moves, and a terminal `run.ended` event carrying the
- /// final status and, when the run stopped short, its
- /// `incomplete_reason`. Consumers must ignore unknown event types.
+ /// same shape List Run Steps returns), a `run.reply.delta` event for each
+ /// piece of text the agent writes, as it writes it, a
+ /// `run.status.changed` event when the run's status moves, and a terminal
+ /// `run.ended` event carrying the final status and, when the run stopped
+ /// short, its `incomplete_reason`. Consumers must ignore unknown event
+ /// types.
+ /// A picture or chart the agent makes arrives before the run ends: the
+ /// `observation` step for the tool call that made it carries the file
+ /// under `files`, so a client can show it the moment that step is
+ /// delivered. `run.ended` lists every file the run produced.
/// A run waiting on a human approval is not terminal: the stream reports
/// `requires_action` and keeps tailing, so the client learns it has
/// something to decide.
+ /// ## The reply arrives as it is written
+ /// `run.reply.delta` carries the agent's text piece by piece, so a chat
+ /// built on runs shows the answer forming instead of a spinner. Each
+ /// piece names the journal position it is written at (`seq`) and how
+ /// many characters of that position's text precede it (`offset`). Keep
+ /// one buffer per `seq`: append a piece whose `offset` equals what you
+ /// hold, and on any other `offset` cut the buffer to it first (that only
+ /// happens after a step was re-executed, and means the earlier text is
+ /// void). Text is counted in Unicode code points.
+ /// Which text a buffer turns out to be is settled by the event that
+ /// closes it. A `run.step.added` at the same `seq` closes it as that
+ /// step's `content` - the plan of a tool call, which the agent wrote
+ /// before deciding to act - and the next piece starts a new buffer at a
+ /// later `seq`. `run.ended` closes the open buffer as the reply, and its
+ /// `output.reply` is the authoritative copy: replace the buffer with it.
+ /// A `run.ended` with no `output` (the run failed, was cancelled, or
+ /// stopped short) means the open buffer was abandoned mid-sentence -
+ /// show it as such or drop it; it is not an answer. A run parked in
+ /// `requires_action` never leaves a buffer open, because the text it
+ /// wrote before parking lands as the plan step first. A client that
+ /// never subscribes to `run.reply.delta` sees exactly the stream it saw
+ /// before the event existed. An agent on a custom LLM endpoint answers
+ /// whole, with no pieces before the step lands.
+ /// Following a run costs nothing beyond the run: the stream is not
+ /// metered, and its read load is a few small queries per second per
+ /// subscriber, a little more while the answer is being written.
/// ## The stream is expected to reconnect
/// **The server closes the connection after 4 minutes whether or not the
/// run has settled**, so a long run spans several connections. Only
@@ -24,14 +56,16 @@ public partial interface IRunsClient /// response opens with `retry: 2000`, so a browser `EventSource`
/// reconnects on its own; a hand-rolled client must do the same.
/// Resume with the standard `Last-Event-ID` header. Step events carry
- /// their `seq` as the event id, so a reconnect continues exactly where it
- /// left off; status events carry no id, and an absent or unparseable
- /// `Last-Event-ID` replays the journal from the beginning rather than
- /// skipping it. On every connection, including a resume, the server emits
- /// one `run.status.changed` carrying the run's current status before it
- /// starts tailing. A `: keepalive` comment arrives every 15 seconds so an
- /// intermediary does not time the connection out while the agent is
- /// thinking.
+ /// their `seq` as the event id; reply pieces carry the seq of the last
+ /// step plus the position reached in the text being written, so a
+ /// reconnect continues exactly where it left off and never replays text
+ /// the client already rendered. Status events carry no id, and an absent
+ /// or unparseable `Last-Event-ID` replays the journal from the beginning
+ /// rather than skipping it. On every connection, including a resume, the
+ /// server emits one `run.status.changed` carrying the run's current
+ /// status before it starts tailing. A `: keepalive` comment arrives every
+ /// 15 seconds so an intermediary does not time the connection out while
+ /// the agent is thinking.
/// Same read access as List Run Steps, and the same
/// `402 durable_runs_not_in_plan` on a workspace without the grant. /// diff --git a/src/libs/Speechify/Generated/Speechify.JsonConverters.AgentRunStreamEvent.g.cs b/src/libs/Speechify/Generated/Speechify.JsonConverters.AgentRunStreamEvent.g.cs index cde7869..923ac98 100644 --- a/src/libs/Speechify/Generated/Speechify.JsonConverters.AgentRunStreamEvent.g.cs +++ b/src/libs/Speechify/Generated/Speechify.JsonConverters.AgentRunStreamEvent.g.cs @@ -28,18 +28,25 @@ public class AgentRunStreamEventJsonConverter : global::System.Text.Json.Seriali throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Speechify.AgentRunStreamEventVariant1)}"); runStepAdded = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Speechify.AgentRunStreamEventVariant2? runStatusChanged = default; - if (discriminator?.Type == global::Speechify.AgentRunStreamEventDiscriminatorType.RunStatusChanged) + global::Speechify.AgentRunStreamEventVariant2? runReplyDelta = default; + if (discriminator?.Type == global::Speechify.AgentRunStreamEventDiscriminatorType.RunReplyDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Speechify.AgentRunStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Speechify.AgentRunStreamEventVariant2)}"); - runStatusChanged = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + runReplyDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Speechify.AgentRunStreamEventVariant3? runEnded = default; - if (discriminator?.Type == global::Speechify.AgentRunStreamEventDiscriminatorType.RunEnded) + global::Speechify.AgentRunStreamEventVariant3? runStatusChanged = default; + if (discriminator?.Type == global::Speechify.AgentRunStreamEventDiscriminatorType.RunStatusChanged) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Speechify.AgentRunStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Speechify.AgentRunStreamEventVariant3)}"); + runStatusChanged = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Speechify.AgentRunStreamEventVariant4? runEnded = default; + if (discriminator?.Type == global::Speechify.AgentRunStreamEventDiscriminatorType.RunEnded) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Speechify.AgentRunStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Speechify.AgentRunStreamEventVariant4)}"); runEnded = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } @@ -47,6 +54,8 @@ public class AgentRunStreamEventJsonConverter : global::System.Text.Json.Seriali discriminator?.Type, runStepAdded, + runReplyDelta, + runStatusChanged, runEnded @@ -70,16 +79,22 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Speechify.AgentRunStreamEventVariant1).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepAdded!, typeInfo); } - else if (value.IsRunStatusChanged) + else if (value.IsRunReplyDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Speechify.AgentRunStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Speechify.AgentRunStreamEventVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStatusChanged!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunReplyDelta!, typeInfo); } - else if (value.IsRunEnded) + else if (value.IsRunStatusChanged) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Speechify.AgentRunStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Speechify.AgentRunStreamEventVariant3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStatusChanged!, typeInfo); + } + else if (value.IsRunEnded) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Speechify.AgentRunStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Speechify.AgentRunStreamEventVariant4).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunEnded!, typeInfo); } } diff --git a/src/libs/Speechify/Generated/Speechify.JsonConverters.AgentRunStreamEventVariant4Type.g.cs b/src/libs/Speechify/Generated/Speechify.JsonConverters.AgentRunStreamEventVariant4Type.g.cs new file mode 100644 index 0000000..7fb3ec3 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.JsonConverters.AgentRunStreamEventVariant4Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Speechify.JsonConverters +{ + /// + public sealed class AgentRunStreamEventVariant4TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Speechify.AgentRunStreamEventVariant4Type 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.AgentRunStreamEventVariant4TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Speechify.AgentRunStreamEventVariant4Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Speechify.AgentRunStreamEventVariant4Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Speechify.AgentRunStreamEventVariant4Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Speechify.AgentRunStreamEventVariant4TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.JsonConverters.AgentRunStreamEventVariant4TypeNullable.g.cs b/src/libs/Speechify/Generated/Speechify.JsonConverters.AgentRunStreamEventVariant4TypeNullable.g.cs new file mode 100644 index 0000000..1539823 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.JsonConverters.AgentRunStreamEventVariant4TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Speechify.JsonConverters +{ + /// + public sealed class AgentRunStreamEventVariant4TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Speechify.AgentRunStreamEventVariant4Type? 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.AgentRunStreamEventVariant4TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Speechify.AgentRunStreamEventVariant4Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Speechify.AgentRunStreamEventVariant4Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Speechify.AgentRunStreamEventVariant4Type? 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.AgentRunStreamEventVariant4TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.JsonSerializerContext.g.cs b/src/libs/Speechify/Generated/Speechify.JsonSerializerContext.g.cs index c15f887..997c1ba 100644 --- a/src/libs/Speechify/Generated/Speechify.JsonSerializerContext.g.cs +++ b/src/libs/Speechify/Generated/Speechify.JsonSerializerContext.g.cs @@ -252,6 +252,9 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PublishGateRun))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.LatestPublishGateRunResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.CreateAgentRunRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.FileKind), TypeInfoPropertyName = "FileKind2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.FileSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.File))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStatus), TypeInfoPropertyName = "AgentRunStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunInputDelegationTargetsItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunInput))] @@ -269,6 +272,7 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PendingActionDefaultDecision), TypeInfoPropertyName = "PendingActionDefaultDecision2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PendingAction))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRun))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.V1AgentsAgentIdRunsGetParametersStatus), TypeInfoPropertyName = "V1AgentsAgentIdRunsGetParametersStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ListAgentRunsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -292,6 +296,8 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant2Type), TypeInfoPropertyName = "AgentRunStreamEventVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant3Type), TypeInfoPropertyName = "AgentRunStreamEventVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant4Type), TypeInfoPropertyName = "AgentRunStreamEventVariant4Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventDiscriminatorType), TypeInfoPropertyName = "AgentRunStreamEventDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.KnowledgeBaseInjection))] @@ -508,12 +514,6 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.CreateShareLinkRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.CreateShareLinkResponseStatus), TypeInfoPropertyName = "CreateShareLinkResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.CreateShareLinkResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.RevealShareLinkTokenResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ShareLinkPreview))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.CreateShareLinkSessionRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ShareLinkSession))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PhoneNumberProvider), TypeInfoPropertyName = "PhoneNumberProvider2")] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -526,6 +526,12 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex Converters = new global::System.Type[] { })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.CreateShareLinkResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.RevealShareLinkTokenResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ShareLinkPreview))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.CreateShareLinkSessionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ShareLinkSession))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PhoneNumberProvider), TypeInfoPropertyName = "PhoneNumberProvider2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PhoneNumberCapability), TypeInfoPropertyName = "PhoneNumberCapability2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PhoneNumberReputationRisk), TypeInfoPropertyName = "PhoneNumberReputationRisk2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PhoneNumberReputation))] @@ -622,11 +628,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AttachSkillRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.UpdateAgentSkillRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.V1FilesGetParametersKind), TypeInfoPropertyName = "V1FilesGetParametersKind2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.FileKind), TypeInfoPropertyName = "FileKind2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.FileSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.File))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ListFilesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.V1FilesPostRequestBodyContentMultipartFormDataSchemaKind), TypeInfoPropertyName = "V1FilesPostRequestBodyContentMultipartFormDataSchemaKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.Store))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ListStoresResponse))] @@ -830,6 +832,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.WebhookDeliveryStatus?), TypeInfoPropertyName = "NullableWebhookDeliveryStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.JobStatus?), TypeInfoPropertyName = "NullableJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PublishGateRunDecision?), TypeInfoPropertyName = "NullablePublishGateRunDecision2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.FileKind?), TypeInfoPropertyName = "NullableFileKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStatus?), TypeInfoPropertyName = "NullableAgentRunStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunIncompleteReason?), TypeInfoPropertyName = "NullableAgentRunIncompleteReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PendingActionDefaultDecision?), TypeInfoPropertyName = "NullablePendingActionDefaultDecision2")] @@ -845,6 +848,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant1Type?), TypeInfoPropertyName = "NullableAgentRunStreamEventVariant1Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant2Type?), TypeInfoPropertyName = "NullableAgentRunStreamEventVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant3Type?), TypeInfoPropertyName = "NullableAgentRunStreamEventVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant4Type?), TypeInfoPropertyName = "NullableAgentRunStreamEventVariant4Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventDiscriminatorType?), TypeInfoPropertyName = "NullableAgentRunStreamEventDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.KnowledgeBaseDocumentSourceKind?), TypeInfoPropertyName = "NullableKnowledgeBaseDocumentSourceKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.KnowledgeBaseDocumentInjectionMode?), TypeInfoPropertyName = "NullableKnowledgeBaseDocumentInjectionMode2")] @@ -908,7 +912,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.CreateAgentTriggerRequestType?), TypeInfoPropertyName = "NullableCreateAgentTriggerRequestType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentTriggerFireResponseStatus?), TypeInfoPropertyName = "NullableAgentTriggerFireResponseStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.V1FilesGetParametersKind?), TypeInfoPropertyName = "NullableV1FilesGetParametersKind2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.FileKind?), TypeInfoPropertyName = "NullableFileKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.V1FilesPostRequestBodyContentMultipartFormDataSchemaKind?), TypeInfoPropertyName = "NullableV1FilesPostRequestBodyContentMultipartFormDataSchemaKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.StoreWhereClauseOp?), TypeInfoPropertyName = "NullableStoreWhereClauseOp2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.StoreOrderByDirection?), TypeInfoPropertyName = "NullableStoreOrderByDirection2")] @@ -981,6 +984,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -1022,10 +1026,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1038,6 +1038,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex Converters = new global::System.Type[] { })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -1050,7 +1054,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -1367,6 +1370,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Speechify.PublishGateRunDecision?) + || typeToConvert == typeof(global::Speechify.FileKind) + + || typeToConvert == typeof(global::Speechify.FileKind?) + || typeToConvert == typeof(global::Speechify.AgentRunStatus) || typeToConvert == typeof(global::Speechify.AgentRunStatus?) @@ -1423,6 +1430,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Speechify.AgentRunStreamEventVariant3Type?) + || typeToConvert == typeof(global::Speechify.AgentRunStreamEventVariant4Type) + + || typeToConvert == typeof(global::Speechify.AgentRunStreamEventVariant4Type?) + || typeToConvert == typeof(global::Speechify.AgentRunStreamEventDiscriminatorType) || typeToConvert == typeof(global::Speechify.AgentRunStreamEventDiscriminatorType?) @@ -1635,10 +1646,6 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Speechify.V1FilesGetParametersKind?) - || typeToConvert == typeof(global::Speechify.FileKind) - - || typeToConvert == typeof(global::Speechify.FileKind?) - || typeToConvert == typeof(global::Speechify.V1FilesPostRequestBodyContentMultipartFormDataSchemaKind) || typeToConvert == typeof(global::Speechify.V1FilesPostRequestBodyContentMultipartFormDataSchemaKind?) @@ -2308,6 +2315,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Speechify.JsonConverters.PublishGateRunDecisionNullableJsonConverter(); } + if (typeToConvert == typeof(global::Speechify.FileKind)) + { + return new global::Speechify.JsonConverters.FileKindJsonConverter(); + } + + if (typeToConvert == typeof(global::Speechify.FileKind?)) + { + return new global::Speechify.JsonConverters.FileKindNullableJsonConverter(); + } + if (typeToConvert == typeof(global::Speechify.AgentRunStatus)) { return new global::Speechify.JsonConverters.AgentRunStatusJsonConverter(); @@ -2448,6 +2465,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Speechify.JsonConverters.AgentRunStreamEventVariant3TypeNullableJsonConverter(); } + if (typeToConvert == typeof(global::Speechify.AgentRunStreamEventVariant4Type)) + { + return new global::Speechify.JsonConverters.AgentRunStreamEventVariant4TypeJsonConverter(); + } + + if (typeToConvert == typeof(global::Speechify.AgentRunStreamEventVariant4Type?)) + { + return new global::Speechify.JsonConverters.AgentRunStreamEventVariant4TypeNullableJsonConverter(); + } + if (typeToConvert == typeof(global::Speechify.AgentRunStreamEventDiscriminatorType)) { return new global::Speechify.JsonConverters.AgentRunStreamEventDiscriminatorTypeJsonConverter(); @@ -2978,16 +3005,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Speechify.JsonConverters.V1FilesGetParametersKindNullableJsonConverter(); } - if (typeToConvert == typeof(global::Speechify.FileKind)) - { - return new global::Speechify.JsonConverters.FileKindJsonConverter(); - } - - if (typeToConvert == typeof(global::Speechify.FileKind?)) - { - return new global::Speechify.JsonConverters.FileKindNullableJsonConverter(); - } - if (typeToConvert == typeof(global::Speechify.V1FilesPostRequestBodyContentMultipartFormDataSchemaKind)) { return new global::Speechify.JsonConverters.V1FilesPostRequestBodyContentMultipartFormDataSchemaKindJsonConverter(); diff --git a/src/libs/Speechify/Generated/Speechify.JsonSerializerContextTypes.g.cs b/src/libs/Speechify/Generated/Speechify.JsonSerializerContextTypes.g.cs index aa6a396..e687060 100644 --- a/src/libs/Speechify/Generated/Speechify.JsonSerializerContextTypes.g.cs +++ b/src/libs/Speechify/Generated/Speechify.JsonSerializerContextTypes.g.cs @@ -973,2019 +973,2027 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Speechify.AgentRunStatus? Type235 { get; set; } + public global::Speechify.FileKind? Type235 { get; set; } /// /// /// - public global::Speechify.AgentRunInputDelegationTargetsItems? Type236 { get; set; } + public global::Speechify.FileSource? Type236 { get; set; } /// /// /// - public global::Speechify.AgentRunInput? Type237 { get; set; } + public global::Speechify.File? Type237 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type238 { get; set; } + public global::Speechify.AgentRunStatus? Type238 { get; set; } /// /// /// - public global::Speechify.AgentRunOutputTranscriptItems? Type239 { get; set; } + public global::Speechify.AgentRunInputDelegationTargetsItems? Type239 { get; set; } /// /// /// - public global::Speechify.AgentRunOutput? Type240 { get; set; } + public global::Speechify.AgentRunInput? Type240 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type241 { get; set; } + public global::System.Collections.Generic.IList? Type241 { get; set; } /// /// /// - public global::Speechify.AgentRunError? Type242 { get; set; } + public global::Speechify.AgentRunOutputTranscriptItems? Type242 { get; set; } /// /// /// - public global::Speechify.AgentRunIncompleteReason? Type243 { get; set; } + public global::Speechify.AgentRunOutput? Type243 { get; set; } /// /// /// - public global::Speechify.AgentRunUsageModelsItems? Type244 { get; set; } + public global::System.Collections.Generic.IList? Type244 { get; set; } /// /// /// - public global::Speechify.AgentRunUsageToolsItems? Type245 { get; set; } + public global::Speechify.AgentRunError? Type245 { get; set; } /// /// /// - public global::Speechify.AgentRunUsage? Type246 { get; set; } + public global::Speechify.AgentRunIncompleteReason? Type246 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type247 { get; set; } + public global::Speechify.AgentRunUsageModelsItems? Type247 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type248 { get; set; } + public global::Speechify.AgentRunUsageToolsItems? Type248 { get; set; } /// /// /// - public global::Speechify.PendingActionDefaultDecision? Type249 { get; set; } + public global::Speechify.AgentRunUsage? Type249 { get; set; } /// /// /// - public global::Speechify.PendingAction? Type250 { get; set; } + public global::System.Collections.Generic.IList? Type250 { get; set; } /// /// /// - public global::Speechify.AgentRun? Type251 { get; set; } + public global::System.Collections.Generic.IList? Type251 { get; set; } /// /// /// - public global::Speechify.V1AgentsAgentIdRunsGetParametersStatus? Type252 { get; set; } + public global::Speechify.PendingActionDefaultDecision? Type252 { get; set; } /// /// /// - public global::Speechify.ListAgentRunsResponse? Type253 { get; set; } + public global::Speechify.PendingAction? Type253 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type254 { get; set; } + public global::Speechify.AgentRun? Type254 { get; set; } /// /// /// - public global::Speechify.V1AgentsRunsGetParametersStatus? Type255 { get; set; } + public global::System.Collections.Generic.IList? Type255 { get; set; } /// /// /// - public global::Speechify.SubmitAgentRunRequestDecision? Type256 { get; set; } + public global::Speechify.V1AgentsAgentIdRunsGetParametersStatus? Type256 { get; set; } /// /// /// - public global::Speechify.SubmitAgentRunRequest? Type257 { get; set; } + public global::Speechify.ListAgentRunsResponse? Type257 { get; set; } /// /// /// - public global::Speechify.AgentRunStepKind? Type258 { get; set; } + public global::System.Collections.Generic.IList? Type258 { get; set; } /// /// /// - public global::Speechify.RunStepDelegationChildStatus? Type259 { get; set; } + public global::Speechify.V1AgentsRunsGetParametersStatus? Type259 { get; set; } /// /// /// - public global::Speechify.RunStepDelegation? Type260 { get; set; } + public global::Speechify.SubmitAgentRunRequestDecision? Type260 { get; set; } /// /// /// - public global::Speechify.AgentRunStep? Type261 { get; set; } + public global::Speechify.SubmitAgentRunRequest? Type261 { get; set; } /// /// /// - public global::Speechify.ListAgentRunStepsResponse? Type262 { get; set; } + public global::Speechify.AgentRunStepKind? Type262 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type263 { get; set; } + public global::Speechify.RunStepDelegationChildStatus? Type263 { get; set; } /// /// /// - public global::Speechify.AgentRunStepAddedEventKind? Type264 { get; set; } + public global::Speechify.RunStepDelegation? Type264 { get; set; } /// /// /// - public global::Speechify.AgentRunStatusChangedEventStatus? Type265 { get; set; } + public global::Speechify.AgentRunStep? Type265 { get; set; } /// /// /// - public global::Speechify.AgentRunEndedEventStatus? Type266 { get; set; } + public global::Speechify.ListAgentRunStepsResponse? Type266 { get; set; } /// /// /// - public global::Speechify.AgentRunEndedEventOutput? Type267 { get; set; } + public global::System.Collections.Generic.IList? Type267 { get; set; } /// /// /// - public global::Speechify.AgentRunStreamEvent? Type268 { get; set; } + public global::Speechify.AgentRunStepAddedEventKind? Type268 { get; set; } /// /// /// - public global::Speechify.AgentRunStreamEventVariant1? Type269 { get; set; } + public global::Speechify.AgentRunStatusChangedEventStatus? Type269 { get; set; } /// /// /// - public global::Speechify.AgentRunStreamEventVariant1Type? Type270 { get; set; } + public global::Speechify.AgentRunEndedEventStatus? Type270 { get; set; } /// /// /// - public global::Speechify.AgentRunStreamEventVariant2? Type271 { get; set; } + public global::Speechify.AgentRunEndedEventOutput? Type271 { get; set; } /// /// /// - public global::Speechify.AgentRunStreamEventVariant2Type? Type272 { get; set; } + public global::Speechify.AgentRunStreamEvent? Type272 { get; set; } /// /// /// - public global::Speechify.AgentRunStreamEventVariant3? Type273 { get; set; } + public global::Speechify.AgentRunStreamEventVariant1? Type273 { get; set; } /// /// /// - public global::Speechify.AgentRunStreamEventVariant3Type? Type274 { get; set; } + public global::Speechify.AgentRunStreamEventVariant1Type? Type274 { get; set; } /// /// /// - public global::Speechify.AgentRunStreamEventDiscriminator? Type275 { get; set; } + public global::Speechify.AgentRunStreamEventVariant2? Type275 { get; set; } /// /// /// - public global::Speechify.AgentRunStreamEventDiscriminatorType? Type276 { get; set; } + public global::Speechify.AgentRunStreamEventVariant2Type? Type276 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseInjection? Type277 { get; set; } + public global::Speechify.AgentRunStreamEventVariant3? Type277 { get; set; } /// /// /// - public global::Speechify.KnowledgeBase? Type278 { get; set; } + public global::Speechify.AgentRunStreamEventVariant3Type? Type278 { get; set; } /// /// /// - public global::Speechify.ListKnowledgeBasesResponse? Type279 { get; set; } + public global::Speechify.AgentRunStreamEventVariant4? Type279 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type280 { get; set; } + public global::Speechify.AgentRunStreamEventVariant4Type? Type280 { get; set; } /// /// /// - public global::Speechify.CreateKnowledgeBaseRequest? Type281 { get; set; } + public global::Speechify.AgentRunStreamEventDiscriminator? Type281 { get; set; } /// /// /// - public global::Speechify.SearchKnowledgeBasesRequest? Type282 { get; set; } + public global::Speechify.AgentRunStreamEventDiscriminatorType? Type282 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseSearchHit? Type283 { get; set; } + public global::Speechify.KnowledgeBaseInjection? Type283 { get; set; } /// /// /// - public global::Speechify.SearchKnowledgeBasesResponse? Type284 { get; set; } + public global::Speechify.KnowledgeBase? Type284 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type285 { get; set; } + public global::Speechify.ListKnowledgeBasesResponse? Type285 { get; set; } /// /// /// - public global::Speechify.UpdateKnowledgeBaseRequest? Type286 { get; set; } + public global::System.Collections.Generic.IList? Type286 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseCoverageHealth? Type287 { get; set; } + public global::Speechify.CreateKnowledgeBaseRequest? Type287 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseCoverageGap? Type288 { get; set; } + public global::Speechify.SearchKnowledgeBasesRequest? Type288 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseDocumentSourceKind? Type289 { get; set; } + public global::Speechify.KnowledgeBaseSearchHit? Type289 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseCoverageDocument? Type290 { get; set; } + public global::Speechify.SearchKnowledgeBasesResponse? Type290 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseCoverage? Type291 { get; set; } + public global::System.Collections.Generic.IList? Type291 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type292 { get; set; } + public global::Speechify.UpdateKnowledgeBaseRequest? Type292 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type293 { get; set; } + public global::Speechify.KnowledgeBaseCoverageHealth? Type293 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseEvalCase? Type294 { get; set; } + public global::Speechify.KnowledgeBaseCoverageGap? Type294 { get; set; } /// /// /// - public global::Speechify.ListKnowledgeBaseEvalCasesResponse? Type295 { get; set; } + public global::Speechify.KnowledgeBaseDocumentSourceKind? Type295 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type296 { get; set; } + public global::Speechify.KnowledgeBaseCoverageDocument? Type296 { get; set; } /// /// /// - public global::Speechify.CreateKnowledgeBaseEvalCaseRequest? Type297 { get; set; } + public global::Speechify.KnowledgeBaseCoverage? Type297 { get; set; } /// /// /// - public global::Speechify.UpdateKnowledgeBaseEvalCaseRequest? Type298 { get; set; } + public global::System.Collections.Generic.IList? Type298 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseEvaluationResults? Type299 { get; set; } + public global::System.Collections.Generic.IList? Type299 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseEvaluationMetrics? Type300 { get; set; } + public global::Speechify.KnowledgeBaseEvalCase? Type300 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseEvaluation? Type301 { get; set; } + public global::Speechify.ListKnowledgeBaseEvalCasesResponse? Type301 { get; set; } /// /// /// - public global::Speechify.ListKnowledgeBaseEvaluationsResponse? Type302 { get; set; } + public global::System.Collections.Generic.IList? Type302 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type303 { get; set; } + public global::Speechify.CreateKnowledgeBaseEvalCaseRequest? Type303 { get; set; } /// /// /// - public global::Speechify.StartKnowledgeBaseEvaluationRequest? Type304 { get; set; } + public global::Speechify.UpdateKnowledgeBaseEvalCaseRequest? Type304 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseEvaluationHit? Type305 { get; set; } + public global::Speechify.KnowledgeBaseEvaluationResults? Type305 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseEvaluationResult? Type306 { get; set; } + public global::Speechify.KnowledgeBaseEvaluationMetrics? Type306 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type307 { get; set; } + public global::Speechify.KnowledgeBaseEvaluation? Type307 { get; set; } /// /// /// - public global::Speechify.ListKnowledgeBaseEvaluationResultsResponse? Type308 { get; set; } + public global::Speechify.ListKnowledgeBaseEvaluationsResponse? Type308 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type309 { get; set; } + public global::System.Collections.Generic.IList? Type309 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseDocumentInjectionMode? Type310 { get; set; } + public global::Speechify.StartKnowledgeBaseEvaluationRequest? Type310 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseDocumentStatus? Type311 { get; set; } + public global::Speechify.KnowledgeBaseEvaluationHit? Type311 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseDocument? Type312 { get; set; } + public global::Speechify.KnowledgeBaseEvaluationResult? Type312 { get; set; } /// /// /// - public global::Speechify.ListKnowledgeBaseDocumentsResponse? Type313 { get; set; } + public global::System.Collections.Generic.IList? Type313 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type314 { get; set; } + public global::Speechify.ListKnowledgeBaseEvaluationResultsResponse? Type314 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseDocumentDetailInjectionMode? Type315 { get; set; } + public global::System.Collections.Generic.IList? Type315 { get; set; } /// /// /// - public global::Speechify.DependentAgent? Type316 { get; set; } + public global::Speechify.KnowledgeBaseDocumentInjectionMode? Type316 { get; set; } /// /// /// - public global::Speechify.RefreshConfig? Type317 { get; set; } + public global::Speechify.KnowledgeBaseDocumentStatus? Type317 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseDocumentDetail? Type318 { get; set; } + public global::Speechify.KnowledgeBaseDocument? Type318 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type319 { get; set; } + public global::Speechify.ListKnowledgeBaseDocumentsResponse? Type319 { get; set; } /// /// /// - public global::Speechify.V1AgentsKnowledgeBasesKbIdDocumentsDocumentIdPatchRequestBodyContentApplicationJsonSchemaInjectionMode? Type320 { get; set; } + public global::System.Collections.Generic.IList? Type320 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseChunk? Type321 { get; set; } + public global::Speechify.KnowledgeBaseDocumentDetailInjectionMode? Type321 { get; set; } /// /// /// - public global::Speechify.ListKnowledgeBaseChunksResponse? Type322 { get; set; } + public global::Speechify.DependentAgent? Type322 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type323 { get; set; } + public global::Speechify.RefreshConfig? Type323 { get; set; } /// /// /// - public global::Speechify.CreateCrawlImportRequest? Type324 { get; set; } + public global::Speechify.KnowledgeBaseDocumentDetail? Type324 { get; set; } /// /// /// - public global::Speechify.ImportJobKind? Type325 { get; set; } + public global::System.Collections.Generic.IList? Type325 { get; set; } /// /// /// - public global::Speechify.ImportJob? Type326 { get; set; } + public global::Speechify.V1AgentsKnowledgeBasesKbIdDocumentsDocumentIdPatchRequestBodyContentApplicationJsonSchemaInjectionMode? Type326 { get; set; } /// /// /// - public global::Speechify.CreateSitemapImportRequest? Type327 { get; set; } + public global::Speechify.KnowledgeBaseChunk? Type327 { get; set; } /// /// /// - public global::Speechify.CreateTextDocumentRequest? Type328 { get; set; } + public global::Speechify.ListKnowledgeBaseChunksResponse? Type328 { get; set; } /// /// /// - public global::Speechify.CreateURLDocumentRequest? Type329 { get; set; } + public global::System.Collections.Generic.IList? Type329 { get; set; } /// /// /// - public global::Speechify.CreateURLBatchImportRequest? Type330 { get; set; } + public global::Speechify.CreateCrawlImportRequest? Type330 { get; set; } /// /// /// - public global::Speechify.BatchDeleteDocumentsRequest? Type331 { get; set; } + public global::Speechify.ImportJobKind? Type331 { get; set; } /// /// /// - public global::Speechify.BatchMoveDocumentsRequest? Type332 { get; set; } + public global::Speechify.ImportJob? Type332 { get; set; } /// /// /// - public global::Speechify.BatchMoveDocumentsResponse? Type333 { get; set; } + public global::Speechify.CreateSitemapImportRequest? Type333 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type334 { get; set; } + public global::Speechify.CreateTextDocumentRequest? Type334 { get; set; } /// /// /// - public global::Speechify.UpdateRefreshConfigRequest? Type335 { get; set; } + public global::Speechify.CreateURLDocumentRequest? Type335 { get; set; } /// /// /// - public global::Speechify.RefreshHistoryEntryStatus? Type336 { get; set; } + public global::Speechify.CreateURLBatchImportRequest? Type336 { get; set; } /// /// /// - public global::Speechify.RefreshHistoryEntry? Type337 { get; set; } + public global::Speechify.BatchDeleteDocumentsRequest? Type337 { get; set; } /// /// /// - public global::Speechify.ListRefreshHistoryResponse? Type338 { get; set; } + public global::Speechify.BatchMoveDocumentsRequest? Type338 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type339 { get; set; } + public global::Speechify.BatchMoveDocumentsResponse? Type339 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseFolder? Type340 { get; set; } + public global::System.Collections.Generic.IList? Type340 { get; set; } /// /// /// - public global::Speechify.ListKnowledgeBaseFoldersResponse? Type341 { get; set; } + public global::Speechify.UpdateRefreshConfigRequest? Type341 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type342 { get; set; } + public global::Speechify.RefreshHistoryEntryStatus? Type342 { get; set; } /// /// /// - public global::Speechify.CreateFolderRequest? Type343 { get; set; } + public global::Speechify.RefreshHistoryEntry? Type343 { get; set; } /// /// /// - public global::Speechify.UpdateFolderRequest? Type344 { get; set; } + public global::Speechify.ListRefreshHistoryResponse? Type344 { get; set; } /// /// /// - public global::Speechify.ListImportJobsResponse? Type345 { get; set; } + public global::System.Collections.Generic.IList? Type345 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type346 { get; set; } + public global::Speechify.KnowledgeBaseFolder? Type346 { get; set; } /// /// /// - public global::Speechify.AttachedKnowledgeBasesResponseInjection? Type347 { get; set; } + public global::Speechify.ListKnowledgeBaseFoldersResponse? Type347 { get; set; } /// /// /// - public global::Speechify.AttachedKnowledgeBasesResponse? Type348 { get; set; } + public global::System.Collections.Generic.IList? Type348 { get; set; } /// /// /// - public global::Speechify.ToolKind? Type349 { get; set; } + public global::Speechify.CreateFolderRequest? Type349 { get; set; } /// /// /// - public global::Speechify.ToolParamType? Type350 { get; set; } + public global::Speechify.UpdateFolderRequest? Type350 { get; set; } /// /// /// - public global::Speechify.ToolParam? Type351 { get; set; } + public global::Speechify.ListImportJobsResponse? Type351 { get; set; } /// /// /// - public global::Speechify.BuiltinToolConfig? Type352 { get; set; } + public global::System.Collections.Generic.IList? Type352 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type353 { get; set; } + public global::Speechify.AttachedKnowledgeBasesResponseInjection? Type353 { get; set; } /// /// /// - public global::Speechify.WebhookToolConfigMethod? Type354 { get; set; } + public global::Speechify.AttachedKnowledgeBasesResponse? Type354 { get; set; } /// /// /// - public global::Speechify.LongRunningToolConfigWaitAudioPreset? Type355 { get; set; } + public global::Speechify.ToolKind? Type355 { get; set; } /// /// /// - public global::Speechify.LongRunningToolConfigWaitAudio? Type356 { get; set; } + public global::Speechify.ToolParamType? Type356 { get; set; } /// /// /// - public global::Speechify.LongRunningToolConfigOnDuplicate? Type357 { get; set; } + public global::Speechify.ToolParam? Type357 { get; set; } /// /// /// - public global::Speechify.LongRunningToolConfig? Type358 { get; set; } + public global::Speechify.BuiltinToolConfig? Type358 { get; set; } /// /// /// - public global::Speechify.WebhookToolConfig? Type359 { get; set; } + public global::System.Collections.Generic.IList? Type359 { get; set; } /// /// /// - public global::Speechify.ClientToolConfig? Type360 { get; set; } + public global::Speechify.WebhookToolConfigMethod? Type360 { get; set; } /// /// /// - public global::Speechify.MCPTransport? Type361 { get; set; } + public global::Speechify.LongRunningToolConfigWaitAudioPreset? Type361 { get; set; } /// /// /// - public global::Speechify.MCPAuth? Type362 { get; set; } + public global::Speechify.LongRunningToolConfigWaitAudio? Type362 { get; set; } /// /// /// - public global::Speechify.MCPAuthVariant1? Type363 { get; set; } + public global::Speechify.LongRunningToolConfigOnDuplicate? Type363 { get; set; } /// /// /// - public global::Speechify.MCPAuthVariant1Type? Type364 { get; set; } + public global::Speechify.LongRunningToolConfig? Type364 { get; set; } /// /// /// - public global::Speechify.MCPAuthVariant2? Type365 { get; set; } + public global::Speechify.WebhookToolConfig? Type365 { get; set; } /// /// /// - public global::Speechify.MCPAuthVariant2Type? Type366 { get; set; } + public global::Speechify.ClientToolConfig? Type366 { get; set; } /// /// /// - public global::Speechify.MCPAuthVariant3? Type367 { get; set; } + public global::Speechify.MCPTransport? Type367 { get; set; } /// /// /// - public global::Speechify.MCPAuthVariant3Type? Type368 { get; set; } + public global::Speechify.MCPAuth? Type368 { get; set; } /// /// /// - public global::Speechify.MCPAuthDiscriminator? Type369 { get; set; } + public global::Speechify.MCPAuthVariant1? Type369 { get; set; } /// /// /// - public global::Speechify.MCPAuthDiscriminatorType? Type370 { get; set; } + public global::Speechify.MCPAuthVariant1Type? Type370 { get; set; } /// /// /// - public global::Speechify.ToolActionClass? Type371 { get; set; } + public global::Speechify.MCPAuthVariant2? Type371 { get; set; } /// /// /// - public global::Speechify.MCPToolConfig? Type372 { get; set; } + public global::Speechify.MCPAuthVariant2Type? Type372 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type373 { get; set; } + public global::Speechify.MCPAuthVariant3? Type373 { get; set; } /// /// /// - public global::Speechify.AgentToolConfig? Type374 { get; set; } + public global::Speechify.MCPAuthVariant3Type? Type374 { get; set; } /// /// /// - public global::Speechify.ToolApprovalClass? Type375 { get; set; } + public global::Speechify.MCPAuthDiscriminator? Type375 { get; set; } /// /// /// - public global::Speechify.ToolReach? Type376 { get; set; } + public global::Speechify.MCPAuthDiscriminatorType? Type376 { get; set; } /// /// /// - public global::Speechify.AgentTool? Type377 { get; set; } + public global::Speechify.ToolActionClass? Type377 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type378 { get; set; } + public global::Speechify.MCPToolConfig? Type378 { get; set; } /// /// /// - public global::Speechify.ListAgentToolsResponse? Type379 { get; set; } + public global::System.Collections.Generic.Dictionary? Type379 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type380 { get; set; } + public global::Speechify.AgentToolConfig? Type380 { get; set; } /// /// /// - public global::Speechify.CreateAgentToolRequestConfig? Type381 { get; set; } + public global::Speechify.ToolApprovalClass? Type381 { get; set; } /// /// /// - public global::Speechify.CreateAgentToolRequest? Type382 { get; set; } + public global::Speechify.ToolReach? Type382 { get; set; } /// /// /// - public global::Speechify.ToolNameHolderKind? Type383 { get; set; } + public global::Speechify.AgentTool? Type383 { get; set; } /// /// /// - public global::Speechify.ToolNameHolder? Type384 { get; set; } + public global::System.Collections.Generic.IList? Type384 { get; set; } /// /// /// - public global::Speechify.ToolNameTakenErrorDetailDetails? Type385 { get; set; } + public global::Speechify.ListAgentToolsResponse? Type385 { get; set; } /// /// /// - public global::Speechify.ToolNameTakenErrorDetail? Type386 { get; set; } + public global::System.Collections.Generic.IList? Type386 { get; set; } /// /// /// - public global::Speechify.ToolNameTakenError? Type387 { get; set; } + public global::Speechify.CreateAgentToolRequestConfig? Type387 { get; set; } /// /// /// - public global::Speechify.UpdateAgentToolRequestConfig? Type388 { get; set; } + public global::Speechify.CreateAgentToolRequest? Type388 { get; set; } /// /// /// - public global::Speechify.UpdateAgentToolRequest? Type389 { get; set; } + public global::Speechify.ToolNameHolderKind? Type389 { get; set; } /// /// /// - public global::Speechify.ToolConfig? Type390 { get; set; } + public global::Speechify.ToolNameHolder? Type390 { get; set; } /// /// /// - public global::Speechify.Tool? Type391 { get; set; } + public global::Speechify.ToolNameTakenErrorDetailDetails? Type391 { get; set; } /// /// /// - public global::Speechify.ListToolsResponse? Type392 { get; set; } + public global::Speechify.ToolNameTakenErrorDetail? Type392 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type393 { get; set; } + public global::Speechify.ToolNameTakenError? Type393 { get; set; } /// /// /// - public global::Speechify.CreateToolRequestConfig? Type394 { get; set; } + public global::Speechify.UpdateAgentToolRequestConfig? Type394 { get; set; } /// /// /// - public global::Speechify.CreateToolRequest? Type395 { get; set; } + public global::Speechify.UpdateAgentToolRequest? Type395 { get; set; } /// /// /// - public global::Speechify.UpdateToolRequestConfig? Type396 { get; set; } + public global::Speechify.ToolConfig? Type396 { get; set; } /// /// /// - public global::Speechify.UpdateToolRequest? Type397 { get; set; } + public global::Speechify.Tool? Type397 { get; set; } /// /// /// - public global::Speechify.ToolAttachedAgent? Type398 { get; set; } + public global::Speechify.ListToolsResponse? Type398 { get; set; } /// /// /// - public global::Speechify.ListToolAttachedAgentsResponse? Type399 { get; set; } + public global::System.Collections.Generic.IList? Type399 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type400 { get; set; } + public global::Speechify.CreateToolRequestConfig? Type400 { get; set; } /// /// /// - public global::Speechify.TestMCPConnectionRequest? Type401 { get; set; } + public global::Speechify.CreateToolRequest? Type401 { get; set; } /// /// /// - public global::Speechify.MCPProbeTool? Type402 { get; set; } + public global::Speechify.UpdateToolRequestConfig? Type402 { get; set; } /// /// /// - public global::Speechify.McpProbeErrorDetailsStage? Type403 { get; set; } + public global::Speechify.UpdateToolRequest? Type403 { get; set; } /// /// /// - public global::Speechify.MCPProbeErrorDetails? Type404 { get; set; } + public global::Speechify.ToolAttachedAgent? Type404 { get; set; } /// /// /// - public global::Speechify.MCPProbeResult? Type405 { get; set; } + public global::Speechify.ListToolAttachedAgentsResponse? Type405 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type406 { get; set; } + public global::System.Collections.Generic.IList? Type406 { get; set; } /// /// /// - public global::Speechify.TestWebhookConnectionRequest? Type407 { get; set; } + public global::Speechify.TestMCPConnectionRequest? Type407 { get; set; } /// /// /// - public global::Speechify.WebhookProbeResult? Type408 { get; set; } + public global::Speechify.MCPProbeTool? Type408 { get; set; } /// /// /// - public global::Speechify.SystemBuiltinInfoExecution? Type409 { get; set; } + public global::Speechify.McpProbeErrorDetailsStage? Type409 { get; set; } /// /// /// - public global::Speechify.SystemBuiltinInfo? Type410 { get; set; } + public global::Speechify.MCPProbeErrorDetails? Type410 { get; set; } /// /// /// - public global::Speechify.ListSystemBuiltinsResponse? Type411 { get; set; } + public global::Speechify.MCPProbeResult? Type411 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type412 { get; set; } + public global::System.Collections.Generic.IList? Type412 { get; set; } /// /// /// - public global::Speechify.TestType? Type413 { get; set; } + public global::Speechify.TestWebhookConnectionRequest? Type413 { get; set; } /// /// /// - public global::Speechify.SimulationMessageRole? Type414 { get; set; } + public global::Speechify.WebhookProbeResult? Type414 { get; set; } /// /// /// - public global::Speechify.SimulationMessage? Type415 { get; set; } + public global::Speechify.SystemBuiltinInfoExecution? Type415 { get; set; } /// /// /// - public global::Speechify.ReplyConfig? Type416 { get; set; } + public global::Speechify.SystemBuiltinInfo? Type416 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type417 { get; set; } + public global::Speechify.ListSystemBuiltinsResponse? Type417 { get; set; } /// /// /// - public global::Speechify.ParameterCheckMode? Type418 { get; set; } + public global::System.Collections.Generic.IList? Type418 { get; set; } /// /// /// - public global::Speechify.ParameterCheck? Type419 { get; set; } + public global::Speechify.TestType? Type419 { get; set; } /// /// /// - public global::Speechify.ToolCallConfig? Type420 { get; set; } + public global::Speechify.SimulationMessageRole? Type420 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type421 { get; set; } + public global::Speechify.SimulationMessage? Type421 { get; set; } /// /// /// - public global::Speechify.DataAssertionMode? Type422 { get; set; } + public global::Speechify.ReplyConfig? Type422 { get; set; } /// /// /// - public global::Speechify.DataAssertion? Type423 { get; set; } + public global::System.Collections.Generic.IList? Type423 { get; set; } /// /// /// - public global::Speechify.SimulationConfig? Type424 { get; set; } + public global::Speechify.ParameterCheckMode? Type424 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type425 { get; set; } + public global::Speechify.ParameterCheck? Type425 { get; set; } /// /// /// - public global::Speechify.CreateAgentTestRequestConfig? Type426 { get; set; } + public global::Speechify.ToolCallConfig? Type426 { get; set; } /// /// /// - public global::Speechify.MockingStrategy? Type427 { get; set; } + public global::System.Collections.Generic.IList? Type427 { get; set; } /// /// /// - public global::Speechify.ToolMock? Type428 { get; set; } + public global::Speechify.DataAssertionMode? Type428 { get; set; } /// /// /// - public global::Speechify.NoMatchBehavior? Type429 { get; set; } + public global::Speechify.DataAssertion? Type429 { get; set; } /// /// /// - public global::Speechify.ToolMockConfig? Type430 { get; set; } + public global::Speechify.SimulationConfig? Type430 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type431 { get; set; } + public global::System.Collections.Generic.IList? Type431 { get; set; } /// /// /// - public global::Speechify.CreateAgentTestRequest? Type432 { get; set; } + public global::Speechify.CreateAgentTestRequestConfig? Type432 { get; set; } /// /// /// - public global::Speechify.AgentTestConfig? Type433 { get; set; } + public global::Speechify.MockingStrategy? Type433 { get; set; } /// /// /// - public global::Speechify.AgentTest? Type434 { get; set; } + public global::Speechify.ToolMock? Type434 { get; set; } /// /// /// - public global::Speechify.TestVerdict? Type435 { get; set; } + public global::Speechify.NoMatchBehavior? Type435 { get; set; } /// /// /// - public global::Speechify.ReplyResult? Type436 { get; set; } + public global::Speechify.ToolMockConfig? Type436 { get; set; } /// /// /// - public global::Speechify.ParameterCheckResult? Type437 { get; set; } + public global::System.Collections.Generic.IList? Type437 { get; set; } /// /// /// - public global::Speechify.ToolCallResult? Type438 { get; set; } + public global::Speechify.CreateAgentTestRequest? Type438 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type439 { get; set; } + public global::Speechify.AgentTestConfig? Type439 { get; set; } /// /// /// - public global::Speechify.SimulationToolCall? Type440 { get; set; } + public global::Speechify.AgentTest? Type440 { get; set; } /// /// /// - public global::Speechify.SimulationResultSentiment? Type441 { get; set; } + public global::Speechify.TestVerdict? Type441 { get; set; } /// /// /// - public global::Speechify.SimulationCriterionResultStatus? Type442 { get; set; } + public global::Speechify.ReplyResult? Type442 { get; set; } /// /// /// - public global::Speechify.SimulationCriterionResult? Type443 { get; set; } + public global::Speechify.ParameterCheckResult? Type443 { get; set; } /// /// /// - public global::Speechify.DataAssertionResultMode? Type444 { get; set; } + public global::Speechify.ToolCallResult? Type444 { get; set; } /// /// /// - public global::Speechify.DataAssertionResult? Type445 { get; set; } + public global::System.Collections.Generic.IList? Type445 { get; set; } /// /// /// - public global::Speechify.SimulationResult? Type446 { get; set; } + public global::Speechify.SimulationToolCall? Type446 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type447 { get; set; } + public global::Speechify.SimulationResultSentiment? Type447 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type448 { get; set; } + public global::Speechify.SimulationCriterionResultStatus? Type448 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type449 { get; set; } + public global::Speechify.SimulationCriterionResult? Type449 { get; set; } /// /// /// - public global::Speechify.TestRunResult? Type450 { get; set; } + public global::Speechify.DataAssertionResultMode? Type450 { get; set; } /// /// /// - public global::Speechify.AgentTestRun? Type451 { get; set; } + public global::Speechify.DataAssertionResult? Type451 { get; set; } /// /// /// - public global::Speechify.AgentTestWithLastRun? Type452 { get; set; } + public global::Speechify.SimulationResult? Type452 { get; set; } /// /// /// - public global::Speechify.ListTestsResponse? Type453 { get; set; } + public global::System.Collections.Generic.IList? Type453 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type454 { get; set; } + public global::System.Collections.Generic.IList? Type454 { get; set; } /// /// /// - public global::Speechify.UpdateAgentTestRequestConfig? Type455 { get; set; } + public global::System.Collections.Generic.IList? Type455 { get; set; } /// /// /// - public global::Speechify.UpdateAgentTestRequest? Type456 { get; set; } + public global::Speechify.TestRunResult? Type456 { get; set; } /// /// /// - public global::Speechify.AgentTestFolder? Type457 { get; set; } + public global::Speechify.AgentTestRun? Type457 { get; set; } /// /// /// - public global::Speechify.ListAgentTestFoldersResponse? Type458 { get; set; } + public global::Speechify.AgentTestWithLastRun? Type458 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type459 { get; set; } + public global::Speechify.ListTestsResponse? Type459 { get; set; } /// /// /// - public global::Speechify.CreateAgentTestFolderRequest? Type460 { get; set; } + public global::System.Collections.Generic.IList? Type460 { get; set; } /// /// /// - public global::Speechify.UpdateAgentTestFolderRequest? Type461 { get; set; } + public global::Speechify.UpdateAgentTestRequestConfig? Type461 { get; set; } /// /// /// - public global::Speechify.ListAgentTestRunsResponse? Type462 { get; set; } + public global::Speechify.UpdateAgentTestRequest? Type462 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type463 { get; set; } + public global::Speechify.AgentTestFolder? Type463 { get; set; } /// /// /// - public global::Speechify.RunTarget? Type464 { get; set; } + public global::Speechify.ListAgentTestFoldersResponse? Type464 { get; set; } /// /// /// - public global::Speechify.TestRunConfigOverride? Type465 { get; set; } + public global::System.Collections.Generic.IList? Type465 { get; set; } /// /// /// - public global::Speechify.RunTargetedTestsRequest? Type466 { get; set; } + public global::Speechify.CreateAgentTestFolderRequest? Type466 { get; set; } /// /// /// - public global::Speechify.SuiteRunTrigger? Type467 { get; set; } + public global::Speechify.UpdateAgentTestFolderRequest? Type467 { get; set; } /// /// /// - public global::Speechify.AgentTestSuiteRunResults? Type468 { get; set; } + public global::Speechify.ListAgentTestRunsResponse? Type468 { get; set; } /// /// /// - public global::Speechify.AgentTestSuiteRun? Type469 { get; set; } + public global::System.Collections.Generic.IList? Type469 { get; set; } /// /// /// - public global::Speechify.RunAgentTestsResponse? Type470 { get; set; } + public global::Speechify.RunTarget? Type470 { get; set; } /// /// /// - public global::Speechify.BatchRunEntry? Type471 { get; set; } + public global::Speechify.TestRunConfigOverride? Type471 { get; set; } /// /// /// - public global::Speechify.RunBatchRequest? Type472 { get; set; } + public global::Speechify.RunTargetedTestsRequest? Type472 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type473 { get; set; } + public global::Speechify.SuiteRunTrigger? Type473 { get; set; } /// /// /// - public global::Speechify.ListSuiteRunsResponse? Type474 { get; set; } + public global::Speechify.AgentTestSuiteRunResults? Type474 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type475 { get; set; } + public global::Speechify.AgentTestSuiteRun? Type475 { get; set; } /// /// /// - public global::Speechify.AgentTestSuiteRunWithRunsResults? Type476 { get; set; } + public global::Speechify.RunAgentTestsResponse? Type476 { get; set; } /// /// /// - public global::Speechify.SuiteChildRun? Type477 { get; set; } + public global::Speechify.BatchRunEntry? Type477 { get; set; } /// /// /// - public global::Speechify.AgentTestSuiteRunWithRuns? Type478 { get; set; } + public global::Speechify.RunBatchRequest? Type478 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type479 { get; set; } + public global::System.Collections.Generic.IList? Type479 { get; set; } /// /// /// - public global::Speechify.RunAllTestsRequest? Type480 { get; set; } + public global::Speechify.ListSuiteRunsResponse? Type480 { get; set; } /// /// /// - public global::Speechify.TestStatsBucket? Type481 { get; set; } + public global::System.Collections.Generic.IList? Type481 { get; set; } /// /// /// - public global::Speechify.TestStats? Type482 { get; set; } + public global::Speechify.AgentTestSuiteRunWithRunsResults? Type482 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type483 { get; set; } + public global::Speechify.SuiteChildRun? Type483 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type484 { get; set; } + public global::Speechify.AgentTestSuiteRunWithRuns? Type484 { get; set; } /// /// /// - public global::Speechify.ShareLinkStatus? Type485 { get; set; } + public global::System.Collections.Generic.IList? Type485 { get; set; } /// /// /// - public global::Speechify.ShareLink? Type486 { get; set; } + public global::Speechify.RunAllTestsRequest? Type486 { get; set; } /// /// /// - public global::Speechify.ListShareLinksResponse? Type487 { get; set; } + public global::Speechify.TestStatsBucket? Type487 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type488 { get; set; } + public global::Speechify.TestStats? Type488 { get; set; } /// /// /// - public global::Speechify.CreateShareLinkRequest? Type489 { get; set; } + public global::System.Collections.Generic.IList? Type489 { get; set; } /// /// /// - public global::Speechify.CreateShareLinkResponseStatus? Type490 { get; set; } + public global::System.Collections.Generic.Dictionary? Type490 { get; set; } /// /// /// - public global::Speechify.CreateShareLinkResponse? Type491 { get; set; } + public global::Speechify.ShareLinkStatus? Type491 { get; set; } /// /// /// - public global::Speechify.RevealShareLinkTokenResponse? Type492 { get; set; } + public global::Speechify.ShareLink? Type492 { get; set; } /// /// /// - public global::Speechify.ShareLinkPreview? Type493 { get; set; } + public global::Speechify.ListShareLinksResponse? Type493 { get; set; } /// /// /// - public global::Speechify.CreateShareLinkSessionRequest? Type494 { get; set; } + public global::System.Collections.Generic.IList? Type494 { get; set; } /// /// /// - public global::Speechify.ShareLinkSession? Type495 { get; set; } + public global::Speechify.CreateShareLinkRequest? Type495 { get; set; } /// /// /// - public global::Speechify.PhoneNumberProvider? Type496 { get; set; } + public global::Speechify.CreateShareLinkResponseStatus? Type496 { get; set; } /// /// /// - public global::Speechify.PhoneNumberCapability? Type497 { get; set; } + public global::Speechify.CreateShareLinkResponse? Type497 { get; set; } /// /// /// - public global::Speechify.PhoneNumberReputationRisk? Type498 { get; set; } + public global::Speechify.RevealShareLinkTokenResponse? Type498 { get; set; } /// /// /// - public global::Speechify.PhoneNumberReputation? Type499 { get; set; } + public global::Speechify.ShareLinkPreview? Type499 { get; set; } /// /// /// - public global::Speechify.PhoneNumber? Type500 { get; set; } + public global::Speechify.CreateShareLinkSessionRequest? Type500 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type501 { get; set; } + public global::Speechify.ShareLinkSession? Type501 { get; set; } /// /// /// - public global::Speechify.ListPhoneNumbersResponse? Type502 { get; set; } + public global::Speechify.PhoneNumberProvider? Type502 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type503 { get; set; } + public global::Speechify.PhoneNumberCapability? Type503 { get; set; } /// /// /// - public global::Speechify.TwilioImportSpec? Type504 { get; set; } + public global::Speechify.PhoneNumberReputationRisk? Type504 { get; set; } /// /// /// - public global::Speechify.TelnyxImportSpec? Type505 { get; set; } + public global::Speechify.PhoneNumberReputation? Type505 { get; set; } /// /// /// - public global::Speechify.ImportPhoneNumberRequest? Type506 { get; set; } + public global::Speechify.PhoneNumber? Type506 { get; set; } /// /// /// - public global::Speechify.PurchasedPhoneNumberProvider? Type507 { get; set; } + public global::System.Collections.Generic.IList? Type507 { get; set; } /// /// /// - public global::Speechify.AvailablePhoneNumber? Type508 { get; set; } + public global::Speechify.ListPhoneNumbersResponse? Type508 { get; set; } /// /// /// - public global::Speechify.SearchAvailablePhoneNumbersResponse? Type509 { get; set; } + public global::System.Collections.Generic.IList? Type509 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type510 { get; set; } + public global::Speechify.TwilioImportSpec? Type510 { get; set; } /// /// /// - public global::Speechify.IntendedUseMarketingOrInformational? Type511 { get; set; } + public global::Speechify.TelnyxImportSpec? Type511 { get; set; } /// /// /// - public global::Speechify.IntendedUse? Type512 { get; set; } + public global::Speechify.ImportPhoneNumberRequest? Type512 { get; set; } /// /// /// - public global::Speechify.PurchasePhoneNumberRequest? Type513 { get; set; } + public global::Speechify.PurchasedPhoneNumberProvider? Type513 { get; set; } /// /// /// - public global::Speechify.UpdatePhoneNumberRequest? Type514 { get; set; } + public global::Speechify.AvailablePhoneNumber? Type514 { get; set; } /// /// /// - public global::Speechify.CreateOutboundCallRequest? Type515 { get; set; } + public global::Speechify.SearchAvailablePhoneNumbersResponse? Type515 { get; set; } /// /// /// - public global::Speechify.CreateOutboundCallResponse? Type516 { get; set; } + public global::System.Collections.Generic.IList? Type516 { get; set; } /// /// /// - public global::Speechify.BatchCall? Type517 { get; set; } + public global::Speechify.IntendedUseMarketingOrInformational? Type517 { get; set; } /// /// /// - public global::Speechify.ListBatchCallsResponse? Type518 { get; set; } + public global::Speechify.IntendedUse? Type518 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type519 { get; set; } + public global::Speechify.PurchasePhoneNumberRequest? Type519 { get; set; } /// /// /// - public global::Speechify.BatchRecipientRequest? Type520 { get; set; } + public global::Speechify.UpdatePhoneNumberRequest? Type520 { get; set; } /// /// /// - public global::Speechify.CreateBatchCallRequest? Type521 { get; set; } + public global::Speechify.CreateOutboundCallRequest? Type521 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type522 { get; set; } + public global::Speechify.CreateOutboundCallResponse? Type522 { get; set; } /// /// /// - public global::Speechify.BatchRecipientStatus? Type523 { get; set; } + public global::Speechify.BatchCall? Type523 { get; set; } /// /// /// - public global::Speechify.BatchRecipient? Type524 { get; set; } + public global::Speechify.ListBatchCallsResponse? Type524 { get; set; } /// /// /// - public global::Speechify.ListBatchRecipientsResponse? Type525 { get; set; } + public global::System.Collections.Generic.IList? Type525 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type526 { get; set; } + public global::Speechify.BatchRecipientRequest? Type526 { get; set; } /// /// /// - public global::Speechify.IvrMenuListEntryMenuTree? Type527 { get; set; } + public global::Speechify.CreateBatchCallRequest? Type527 { get; set; } /// /// /// - public global::Speechify.IVRMenuListEntry? Type528 { get; set; } + public global::System.Collections.Generic.IList? Type528 { get; set; } /// /// /// - public global::Speechify.ListIVRMenusResponse? Type529 { get; set; } + public global::Speechify.BatchRecipientStatus? Type529 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type530 { get; set; } + public global::Speechify.BatchRecipient? Type530 { get; set; } /// /// /// - public global::Speechify.IvrMenuMenuTree? Type531 { get; set; } + public global::Speechify.ListBatchRecipientsResponse? Type531 { get; set; } /// /// /// - public global::Speechify.IVRMenu? Type532 { get; set; } + public global::System.Collections.Generic.IList? Type532 { get; set; } /// /// /// - public global::Speechify.UpdateIVRMenuLabelRequest? Type533 { get; set; } + public global::Speechify.IvrMenuListEntryMenuTree? Type533 { get; set; } /// /// /// - public global::Speechify.InvalidateIVRMenuRequest? Type534 { get; set; } + public global::Speechify.IVRMenuListEntry? Type534 { get; set; } /// /// /// - public global::Speechify.SIPTrunkProvider? Type535 { get; set; } + public global::Speechify.ListIVRMenusResponse? Type535 { get; set; } /// /// /// - public global::Speechify.SIPTrunkDirection? Type536 { get; set; } + public global::System.Collections.Generic.IList? Type536 { get; set; } /// /// /// - public global::Speechify.SIPTransport? Type537 { get; set; } + public global::Speechify.IvrMenuMenuTree? Type537 { get; set; } /// /// /// - public global::Speechify.SIPMediaEncryption? Type538 { get; set; } + public global::Speechify.IVRMenu? Type538 { get; set; } /// /// /// - public global::Speechify.SIPTrunk? Type539 { get; set; } + public global::Speechify.UpdateIVRMenuLabelRequest? Type539 { get; set; } /// /// /// - public global::Speechify.ListSIPTrunksResponse? Type540 { get; set; } + public global::Speechify.InvalidateIVRMenuRequest? Type540 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type541 { get; set; } + public global::Speechify.SIPTrunkProvider? Type541 { get; set; } /// /// /// - public global::Speechify.CreateSipTrunkRequestCredentials? Type542 { get; set; } + public global::Speechify.SIPTrunkDirection? Type542 { get; set; } /// /// /// - public global::Speechify.CreateSIPTrunkRequest? Type543 { get; set; } + public global::Speechify.SIPTransport? Type543 { get; set; } /// /// /// - public global::Speechify.Caller? Type544 { get; set; } + public global::Speechify.SIPMediaEncryption? Type544 { get; set; } /// /// /// - public global::Speechify.ListCallersResponse? Type545 { get; set; } + public global::Speechify.SIPTrunk? Type545 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type546 { get; set; } + public global::Speechify.ListSIPTrunksResponse? Type546 { get; set; } /// /// /// - public global::Speechify.UpdateCallerRequest? Type547 { get; set; } + public global::System.Collections.Generic.IList? Type547 { get; set; } /// /// /// - public global::Speechify.DeleteCallerResponse? Type548 { get; set; } + public global::Speechify.CreateSipTrunkRequestCredentials? Type548 { get; set; } /// /// /// - public global::Speechify.ListCallerConversationsResponse? Type549 { get; set; } + public global::Speechify.CreateSIPTrunkRequest? Type549 { get; set; } /// /// /// - public global::Speechify.ListCallerMemoriesResponse? Type550 { get; set; } + public global::Speechify.Caller? Type550 { get; set; } /// /// /// - public global::Speechify.AudioAsset? Type551 { get; set; } + public global::Speechify.ListCallersResponse? Type551 { get; set; } /// /// /// - public global::Speechify.ListAudioAssetsResponse? Type552 { get; set; } + public global::System.Collections.Generic.IList? Type552 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type553 { get; set; } + public global::Speechify.UpdateCallerRequest? Type553 { get; set; } /// /// /// - public global::Speechify.TeamMember? Type554 { get; set; } + public global::Speechify.DeleteCallerResponse? Type554 { get; set; } /// /// /// - public global::Speechify.Team? Type555 { get; set; } + public global::Speechify.ListCallerConversationsResponse? Type555 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type556 { get; set; } + public global::Speechify.ListCallerMemoriesResponse? Type556 { get; set; } /// /// /// - public global::Speechify.ListTeamsResponse? Type557 { get; set; } + public global::Speechify.AudioAsset? Type557 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type558 { get; set; } + public global::Speechify.ListAudioAssetsResponse? Type558 { get; set; } /// /// /// - public global::Speechify.TeamMemberInput? Type559 { get; set; } + public global::System.Collections.Generic.IList? Type559 { get; set; } /// /// /// - public global::Speechify.CreateTeamRequest? Type560 { get; set; } + public global::Speechify.TeamMember? Type560 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type561 { get; set; } + public global::Speechify.Team? Type561 { get; set; } /// /// /// - public global::Speechify.UpdateTeamRequest? Type562 { get; set; } + public global::System.Collections.Generic.IList? Type562 { get; set; } /// /// /// - public global::Speechify.CreateTeamRunRequest? Type563 { get; set; } + public global::Speechify.ListTeamsResponse? Type563 { get; set; } /// /// /// - public global::Speechify.AgentTriggerType? Type564 { get; set; } + public global::System.Collections.Generic.IList? Type564 { get; set; } /// /// /// - public global::Speechify.TriggerRunSpec? Type565 { get; set; } + public global::Speechify.TeamMemberInput? Type565 { get; set; } /// /// /// - public global::Speechify.TriggerScheduleConfig? Type566 { get; set; } + public global::Speechify.CreateTeamRequest? Type566 { get; set; } /// /// /// - public global::Speechify.TriggerWebhookConfigUserIdentitySource? Type567 { get; set; } + public global::System.Collections.Generic.IList? Type567 { get; set; } /// /// /// - public global::Speechify.TriggerWebhookConfig? Type568 { get; set; } + public global::Speechify.UpdateTeamRequest? Type568 { get; set; } /// /// /// - public global::Speechify.AgentTriggerLastFireStatus? Type569 { get; set; } + public global::Speechify.CreateTeamRunRequest? Type569 { get; set; } /// /// /// - public global::Speechify.TriggerThread? Type570 { get; set; } + public global::Speechify.AgentTriggerType? Type570 { get; set; } /// /// /// - public global::Speechify.AgentTrigger? Type571 { get; set; } + public global::Speechify.TriggerRunSpec? Type571 { get; set; } /// /// /// - public global::Speechify.ListAgentTriggersResponse? Type572 { get; set; } + public global::Speechify.TriggerScheduleConfig? Type572 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type573 { get; set; } + public global::Speechify.TriggerWebhookConfigUserIdentitySource? Type573 { get; set; } /// /// /// - public global::Speechify.CreateAgentTriggerRequestType? Type574 { get; set; } + public global::Speechify.TriggerWebhookConfig? Type574 { get; set; } /// /// /// - public global::Speechify.CreateAgentTriggerRequest? Type575 { get; set; } + public global::Speechify.AgentTriggerLastFireStatus? Type575 { get; set; } /// /// /// - public global::Speechify.UpdateAgentTriggerRequest? Type576 { get; set; } + public global::Speechify.TriggerThread? Type576 { get; set; } /// /// /// - public global::Speechify.AgentTriggerFireResponseStatus? Type577 { get; set; } + public global::Speechify.AgentTrigger? Type577 { get; set; } /// /// /// - public global::Speechify.AgentTriggerFireResponse? Type578 { get; set; } + public global::Speechify.ListAgentTriggersResponse? Type578 { get; set; } /// /// /// - public global::Speechify.Skill? Type579 { get; set; } + public global::System.Collections.Generic.IList? Type579 { get; set; } /// /// /// - public global::Speechify.ListSkillsResponse? Type580 { get; set; } + public global::Speechify.CreateAgentTriggerRequestType? Type580 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type581 { get; set; } + public global::Speechify.CreateAgentTriggerRequest? Type581 { get; set; } /// /// /// - public global::Speechify.CreateSkillRequest? Type582 { get; set; } + public global::Speechify.UpdateAgentTriggerRequest? Type582 { get; set; } /// /// /// - public global::Speechify.UpdateSkillRequest? Type583 { get; set; } + public global::Speechify.AgentTriggerFireResponseStatus? Type583 { get; set; } /// /// /// - public global::Speechify.SkillVersion? Type584 { get; set; } + public global::Speechify.AgentTriggerFireResponse? Type584 { get; set; } /// /// /// - public global::Speechify.ListSkillVersionsResponse? Type585 { get; set; } + public global::Speechify.Skill? Type585 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type586 { get; set; } + public global::Speechify.ListSkillsResponse? Type586 { get; set; } /// /// /// - public global::Speechify.AgentSkill? Type587 { get; set; } + public global::System.Collections.Generic.IList? Type587 { get; set; } /// /// /// - public global::Speechify.ListAgentSkillsResponse? Type588 { get; set; } + public global::Speechify.CreateSkillRequest? Type588 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type589 { get; set; } + public global::Speechify.UpdateSkillRequest? Type589 { get; set; } /// /// /// - public global::Speechify.AttachSkillRequest? Type590 { get; set; } + public global::Speechify.SkillVersion? Type590 { get; set; } /// /// /// - public global::Speechify.UpdateAgentSkillRequest? Type591 { get; set; } + public global::Speechify.ListSkillVersionsResponse? Type591 { get; set; } /// /// /// - public global::Speechify.V1FilesGetParametersKind? Type592 { get; set; } + public global::System.Collections.Generic.IList? Type592 { get; set; } /// /// /// - public global::Speechify.FileKind? Type593 { get; set; } + public global::Speechify.AgentSkill? Type593 { get; set; } /// /// /// - public global::Speechify.FileSource? Type594 { get; set; } + public global::Speechify.ListAgentSkillsResponse? Type594 { get; set; } /// /// /// - public global::Speechify.File? Type595 { get; set; } + public global::System.Collections.Generic.IList? Type595 { get; set; } /// /// /// - public global::Speechify.ListFilesResponse? Type596 { get; set; } + public global::Speechify.AttachSkillRequest? Type596 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type597 { get; set; } + public global::Speechify.UpdateAgentSkillRequest? Type597 { get; set; } /// /// /// - public global::Speechify.V1FilesPostRequestBodyContentMultipartFormDataSchemaKind? Type598 { get; set; } + public global::Speechify.V1FilesGetParametersKind? Type598 { get; set; } /// /// /// - public global::Speechify.Store? Type599 { get; set; } + public global::Speechify.ListFilesResponse? Type599 { get; set; } /// /// /// - public global::Speechify.ListStoresResponse? Type600 { get; set; } + public global::Speechify.V1FilesPostRequestBodyContentMultipartFormDataSchemaKind? Type600 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type601 { get; set; } + public global::Speechify.Store? Type601 { get; set; } /// /// /// - public global::Speechify.CreateStoreRequest? Type602 { get; set; } + public global::Speechify.ListStoresResponse? Type602 { get; set; } /// /// /// - public global::Speechify.UpdateStoreRequest? Type603 { get; set; } + public global::System.Collections.Generic.IList? Type603 { get; set; } /// /// /// - public global::Speechify.StoreCollection? Type604 { get; set; } + public global::Speechify.CreateStoreRequest? Type604 { get; set; } /// /// /// - public global::Speechify.ListStoreCollectionsResponse? Type605 { get; set; } + public global::Speechify.UpdateStoreRequest? Type605 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type606 { get; set; } + public global::Speechify.StoreCollection? Type606 { get; set; } /// /// /// - public global::Speechify.StoreDocumentSource? Type607 { get; set; } + public global::Speechify.ListStoreCollectionsResponse? Type607 { get; set; } /// /// /// - public global::Speechify.StoreDocument? Type608 { get; set; } + public global::System.Collections.Generic.IList? Type608 { get; set; } /// /// /// - public global::Speechify.QueryStoreDocumentsResponse? Type609 { get; set; } + public global::Speechify.StoreDocumentSource? Type609 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type610 { get; set; } + public global::Speechify.StoreDocument? Type610 { get; set; } /// /// /// - public global::Speechify.WriteStoreDocumentRequest? Type611 { get; set; } + public global::Speechify.QueryStoreDocumentsResponse? Type611 { get; set; } /// /// /// - public global::Speechify.StoreWhereClauseOp? Type612 { get; set; } + public global::System.Collections.Generic.IList? Type612 { get; set; } /// /// /// - public global::Speechify.StoreWhereClause? Type613 { get; set; } + public global::Speechify.WriteStoreDocumentRequest? Type613 { get; set; } /// /// /// - public global::Speechify.StoreOrderByDirection? Type614 { get; set; } + public global::Speechify.StoreWhereClauseOp? Type614 { get; set; } /// /// /// - public global::Speechify.StoreOrderBy? Type615 { get; set; } + public global::Speechify.StoreWhereClause? Type615 { get; set; } /// /// /// - public global::Speechify.StoreDocumentQuery? Type616 { get; set; } + public global::Speechify.StoreOrderByDirection? Type616 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type617 { get; set; } + public global::Speechify.StoreOrderBy? Type617 { get; set; } /// /// /// - public global::Speechify.StoreAggregateMetricOp? Type618 { get; set; } + public global::Speechify.StoreDocumentQuery? Type618 { get; set; } /// /// /// - public global::Speechify.StoreAggregateMetric? Type619 { get; set; } + public global::System.Collections.Generic.IList? Type619 { get; set; } /// /// /// - public global::Speechify.StoreAggregateQuery? Type620 { get; set; } + public global::Speechify.StoreAggregateMetricOp? Type620 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type621 { get; set; } + public global::Speechify.StoreAggregateMetric? Type621 { get; set; } /// /// /// - public global::Speechify.StoreAggregateGroup? Type622 { get; set; } + public global::Speechify.StoreAggregateQuery? Type622 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type623 { get; set; } + public global::System.Collections.Generic.IList? Type623 { get; set; } /// /// /// - public global::Speechify.StoreAggregateResponse? Type624 { get; set; } + public global::Speechify.StoreAggregateGroup? Type624 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type625 { get; set; } + public global::System.Collections.Generic.Dictionary? Type625 { get; set; } /// /// /// - public global::Speechify.StoreBatchWriteOp? Type626 { get; set; } + public global::Speechify.StoreAggregateResponse? Type626 { get; set; } /// /// /// - public global::Speechify.StoreBatchWrite? Type627 { get; set; } + public global::System.Collections.Generic.IList? Type627 { get; set; } /// /// /// - public global::Speechify.StoreBatchRequest? Type628 { get; set; } + public global::Speechify.StoreBatchWriteOp? Type628 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type629 { get; set; } + public global::Speechify.StoreBatchWrite? Type629 { get; set; } /// /// /// - public global::Speechify.StoreBatchResultOp? Type630 { get; set; } + public global::Speechify.StoreBatchRequest? Type630 { get; set; } /// /// /// - public global::Speechify.StoreBatchResult? Type631 { get; set; } + public global::System.Collections.Generic.IList? Type631 { get; set; } /// /// /// - public global::Speechify.StoreBatchResponse? Type632 { get; set; } + public global::Speechify.StoreBatchResultOp? Type632 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type633 { get; set; } + public global::Speechify.StoreBatchResult? Type633 { get; set; } /// /// /// - public global::Speechify.ListAgentStoresResponse? Type634 { get; set; } + public global::Speechify.StoreBatchResponse? Type634 { get; set; } /// /// /// - public global::Speechify.HostedApiAuthMode? Type635 { get; set; } + public global::System.Collections.Generic.IList? Type635 { get; set; } /// /// /// - public global::Speechify.HostedAPI? Type636 { get; set; } + public global::Speechify.ListAgentStoresResponse? Type636 { get; set; } /// /// /// - public global::Speechify.ListHostedAPIsResponse? Type637 { get; set; } + public global::Speechify.HostedApiAuthMode? Type637 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type638 { get; set; } + public global::Speechify.HostedAPI? Type638 { get; set; } /// /// /// - public global::Speechify.CreateHostedApiRequestAuthMode? Type639 { get; set; } + public global::Speechify.ListHostedAPIsResponse? Type639 { get; set; } /// /// /// - public global::Speechify.CreateHostedAPIRequest? Type640 { get; set; } + public global::System.Collections.Generic.IList? Type640 { get; set; } /// /// /// - public global::Speechify.UpdateHostedApiRequestAuthMode? Type641 { get; set; } + public global::Speechify.CreateHostedApiRequestAuthMode? Type641 { get; set; } /// /// /// - public global::Speechify.UpdateHostedAPIRequest? Type642 { get; set; } + public global::Speechify.CreateHostedAPIRequest? Type642 { get; set; } /// /// /// - public global::Speechify.HostedApiUsageRoutesItems? Type643 { get; set; } + public global::Speechify.UpdateHostedApiRequestAuthMode? Type643 { get; set; } /// /// /// - public global::Speechify.HostedAPIUsage? Type644 { get; set; } + public global::Speechify.UpdateHostedAPIRequest? Type644 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type645 { get; set; } + public global::Speechify.HostedApiUsageRoutesItems? Type645 { get; set; } /// /// /// - public global::Speechify.HostedApiRouteMethod? Type646 { get; set; } + public global::Speechify.HostedAPIUsage? Type646 { get; set; } /// /// /// - public global::Speechify.HostedApiResolverType? Type647 { get; set; } + public global::System.Collections.Generic.IList? Type647 { get; set; } /// /// /// - public global::Speechify.HostedApiResolverWriteMode? Type648 { get; set; } + public global::Speechify.HostedApiRouteMethod? Type648 { get; set; } /// /// /// - public global::Speechify.HostedApiResolverWhereItemsOp? Type649 { get; set; } + public global::Speechify.HostedApiResolverType? Type649 { get; set; } /// /// /// - public global::Speechify.HostedApiResolverWhereItems? Type650 { get; set; } + public global::Speechify.HostedApiResolverWriteMode? Type650 { get; set; } /// /// /// - public global::Speechify.HostedApiResolverOrderByDirection? Type651 { get; set; } + public global::Speechify.HostedApiResolverWhereItemsOp? Type651 { get; set; } /// /// /// - public global::Speechify.HostedApiResolverOrderBy? Type652 { get; set; } + public global::Speechify.HostedApiResolverWhereItems? Type652 { get; set; } /// /// /// - public global::Speechify.HostedAPIResolver? Type653 { get; set; } + public global::Speechify.HostedApiResolverOrderByDirection? Type653 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type654 { get; set; } + public global::Speechify.HostedApiResolverOrderBy? Type654 { get; set; } /// /// /// - public global::Speechify.HostedAPIRoute? Type655 { get; set; } + public global::Speechify.HostedAPIResolver? Type655 { get; set; } /// /// /// - public global::Speechify.ListHostedAPIRoutesResponse? Type656 { get; set; } + public global::System.Collections.Generic.IList? Type656 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type657 { get; set; } + public global::Speechify.HostedAPIRoute? Type657 { get; set; } /// /// /// - public global::Speechify.CreateHostedApiRouteRequestMethod? Type658 { get; set; } + public global::Speechify.ListHostedAPIRoutesResponse? Type658 { get; set; } /// /// /// - public global::Speechify.CreateHostedAPIRouteRequest? Type659 { get; set; } + public global::System.Collections.Generic.IList? Type659 { get; set; } /// /// /// - public global::Speechify.UpdateHostedApiRouteRequestMethod? Type660 { get; set; } + public global::Speechify.CreateHostedApiRouteRequestMethod? Type660 { get; set; } /// /// /// - public global::Speechify.UpdateHostedAPIRouteRequest? Type661 { get; set; } + public global::Speechify.CreateHostedAPIRouteRequest? Type661 { get; set; } /// /// /// - public global::Speechify.HostedAPIKey? Type662 { get; set; } + public global::Speechify.UpdateHostedApiRouteRequestMethod? Type662 { get; set; } /// /// /// - public global::Speechify.ListHostedAPIKeysResponse? Type663 { get; set; } + public global::Speechify.UpdateHostedAPIRouteRequest? Type663 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type664 { get; set; } + public global::Speechify.HostedAPIKey? Type664 { get; set; } /// /// /// - public global::Speechify.CreateHostedAPIKeyRequest? Type665 { get; set; } + public global::Speechify.ListHostedAPIKeysResponse? Type665 { get; set; } /// /// /// - public global::Speechify.HostedAPIUserTokenSecret? Type666 { get; set; } + public global::System.Collections.Generic.IList? Type666 { get; set; } /// /// /// - public global::Speechify.ContactIdentifierKind? Type667 { get; set; } + public global::Speechify.CreateHostedAPIKeyRequest? Type667 { get; set; } /// /// /// - public global::Speechify.ContactIdentifierAssertedBy? Type668 { get; set; } + public global::Speechify.HostedAPIUserTokenSecret? Type668 { get; set; } /// /// /// - public global::Speechify.ContactIdentifier? Type669 { get; set; } + public global::Speechify.ContactIdentifierKind? Type669 { get; set; } /// /// /// - public global::Speechify.Contact? Type670 { get; set; } + public global::Speechify.ContactIdentifierAssertedBy? Type670 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type671 { get; set; } + public global::Speechify.ContactIdentifier? Type671 { get; set; } /// /// /// - public global::Speechify.ListContactsResponse? Type672 { get; set; } + public global::Speechify.Contact? Type672 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type673 { get; set; } + public global::System.Collections.Generic.IList? Type673 { get; set; } /// /// /// - public global::Speechify.UpdateContactRequest? Type674 { get; set; } + public global::Speechify.ListContactsResponse? Type674 { get; set; } /// /// /// - public global::Speechify.DeleteContactResponse? Type675 { get; set; } + public global::System.Collections.Generic.IList? Type675 { get; set; } /// /// /// - public global::Speechify.AttachContactIdentifierRequestKind? Type676 { get; set; } + public global::Speechify.UpdateContactRequest? Type676 { get; set; } /// /// /// - public global::Speechify.AttachContactIdentifierRequest? Type677 { get; set; } + public global::Speechify.DeleteContactResponse? Type677 { get; set; } /// /// /// - public global::Speechify.MergeContactsRequest? Type678 { get; set; } + public global::Speechify.AttachContactIdentifierRequestKind? Type678 { get; set; } /// /// /// - public global::Speechify.MergeContactsResponseMerged? Type679 { get; set; } + public global::Speechify.AttachContactIdentifierRequest? Type679 { get; set; } /// /// /// - public global::Speechify.MergeContactsResponse? Type680 { get; set; } + public global::Speechify.MergeContactsRequest? Type680 { get; set; } /// /// /// - public global::Speechify.BillingEntitlementsMaxLlmModelClass? Type681 { get; set; } + public global::Speechify.MergeContactsResponseMerged? Type681 { get; set; } /// /// /// - public global::Speechify.BillingEntitlements? Type682 { get; set; } + public global::Speechify.MergeContactsResponse? Type682 { get; set; } /// /// /// - public global::Speechify.EntitlementsResponse? Type683 { get; set; } + public global::Speechify.BillingEntitlementsMaxLlmModelClass? Type683 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type684 { get; set; } + public global::Speechify.BillingEntitlements? Type684 { get; set; } /// /// /// - public global::Speechify.ContactResolver? Type685 { get; set; } + public global::Speechify.EntitlementsResponse? Type685 { get; set; } /// /// /// - public global::Speechify.PutContactResolverRequest? Type686 { get; set; } + public global::System.Collections.Generic.Dictionary? Type686 { get; set; } /// /// /// - public global::Speechify.WebhookEndpoint? Type687 { get; set; } + public global::Speechify.ContactResolver? Type687 { get; set; } /// /// /// - public global::Speechify.ListWebhookEndpointsResponse? Type688 { get; set; } + public global::Speechify.PutContactResolverRequest? Type688 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type689 { get; set; } + public global::Speechify.WebhookEndpoint? Type689 { get; set; } /// /// /// - public global::Speechify.CreateWebhookEndpointRequest? Type690 { get; set; } + public global::Speechify.ListWebhookEndpointsResponse? Type690 { get; set; } /// /// /// - public global::Speechify.UpdateWebhookEndpointRequest? Type691 { get; set; } + public global::System.Collections.Generic.IList? Type691 { get; set; } /// /// /// - public global::Speechify.WebhookEndpointDelivery? Type692 { get; set; } + public global::Speechify.CreateWebhookEndpointRequest? Type692 { get; set; } /// /// /// - public global::Speechify.ListWebhookEndpointDeliveriesResponse? Type693 { get; set; } + public global::Speechify.UpdateWebhookEndpointRequest? Type693 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type694 { get; set; } + public global::Speechify.WebhookEndpointDelivery? Type694 { get; set; } /// /// /// - public global::Speechify.Project? Type695 { get; set; } + public global::Speechify.ListWebhookEndpointDeliveriesResponse? Type695 { get; set; } /// /// /// - public global::Speechify.ListProjectsResponse? Type696 { get; set; } + public global::System.Collections.Generic.IList? Type696 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type697 { get; set; } + public global::Speechify.Project? Type697 { get; set; } /// /// /// - public global::Speechify.CreateProjectRequest? Type698 { get; set; } + public global::Speechify.ListProjectsResponse? Type698 { get; set; } /// /// /// - public global::Speechify.UpdateProjectRequest? Type699 { get; set; } + public global::System.Collections.Generic.IList? Type699 { get; set; } /// /// /// - public global::Speechify.DeleteProjectRequestMode? Type700 { get; set; } + public global::Speechify.CreateProjectRequest? Type700 { get; set; } /// /// /// - public global::Speechify.DeleteProjectRequest? Type701 { get; set; } + public global::Speechify.UpdateProjectRequest? Type701 { get; set; } /// /// /// - public global::Speechify.ProjectRestoredCounts? Type702 { get; set; } + public global::Speechify.DeleteProjectRequestMode? Type702 { get; set; } /// /// /// - public global::Speechify.ProjectStillRevokedCounts? Type703 { get; set; } + public global::Speechify.DeleteProjectRequest? Type703 { get; set; } /// /// /// - public global::Speechify.ProjectRestore? Type704 { get; set; } + public global::Speechify.ProjectRestoredCounts? Type704 { get; set; } /// /// /// - public global::Speechify.ProjectTeardownBlockerKind? Type705 { get; set; } + public global::Speechify.ProjectStillRevokedCounts? Type705 { get; set; } /// /// /// - public global::Speechify.ProjectTeardownBlockerBlocksItems? Type706 { get; set; } + public global::Speechify.ProjectRestore? Type706 { get; set; } /// /// /// - public global::Speechify.ProjectTeardownBlocker? Type707 { get; set; } + public global::Speechify.ProjectTeardownBlockerKind? Type707 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type708 { get; set; } + public global::Speechify.ProjectTeardownBlockerBlocksItems? Type708 { get; set; } /// /// /// - public global::Speechify.ProjectTeardownGroup? Type709 { get; set; } + public global::Speechify.ProjectTeardownBlocker? Type709 { get; set; } /// /// /// - public global::Speechify.ProjectTeardown? Type710 { get; set; } + public global::System.Collections.Generic.IList? Type710 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type711 { get; set; } + public global::Speechify.ProjectTeardownGroup? Type711 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type712 { get; set; } + public global::Speechify.ProjectTeardown? Type712 { get; set; } /// /// /// - public global::Speechify.ProjectResourceCounts? Type713 { get; set; } + public global::System.Collections.Generic.IList? Type713 { get; set; } /// /// /// - public global::Speechify.ProjectStats? Type714 { get; set; } + public global::System.Collections.Generic.IList? Type714 { get; set; } /// /// /// - public global::Speechify.PromoteProjectRequest? Type715 { get; set; } + public global::Speechify.ProjectResourceCounts? Type715 { get; set; } /// /// /// - public global::Speechify.PromoteCreated? Type716 { get; set; } + public global::Speechify.ProjectStats? Type716 { get; set; } /// /// /// - public global::Speechify.PromoteReused? Type717 { get; set; } + public global::Speechify.PromoteProjectRequest? Type717 { get; set; } /// /// /// - public global::Speechify.PromoteAttentionKind? Type718 { get; set; } + public global::Speechify.PromoteCreated? Type718 { get; set; } /// /// /// - public global::Speechify.PromoteAttentionReason? Type719 { get; set; } + public global::Speechify.PromoteReused? Type719 { get; set; } /// /// /// - public global::Speechify.PromoteAttention? Type720 { get; set; } + public global::Speechify.PromoteAttentionKind? Type720 { get; set; } /// /// /// - public global::Speechify.PromoteProjectResponse? Type721 { get; set; } + public global::Speechify.PromoteAttentionReason? Type721 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type722 { get; set; } + public global::Speechify.PromoteAttention? Type722 { get; set; } /// /// /// - public global::Speechify.ProjectAuditEventType? Type723 { get; set; } + public global::Speechify.PromoteProjectResponse? Type723 { get; set; } /// /// /// - public global::Speechify.ProjectAuditEvent? Type724 { get; set; } + public global::System.Collections.Generic.IList? Type724 { get; set; } /// /// /// - public global::Speechify.ProjectAuditResponse? Type725 { get; set; } + public global::Speechify.ProjectAuditEventType? Type725 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type726 { get; set; } + public global::Speechify.ProjectAuditEvent? Type726 { get; set; } /// /// /// - public global::Speechify.ProjectMember? Type727 { get; set; } + public global::Speechify.ProjectAuditResponse? Type727 { get; set; } /// /// /// - public global::Speechify.ProjectMembersResponse? Type728 { get; set; } + public global::System.Collections.Generic.IList? Type728 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type729 { get; set; } + public global::Speechify.ProjectMember? Type729 { get; set; } /// /// /// - public global::Speechify.GrantProjectMemberRequest? Type730 { get; set; } + public global::Speechify.ProjectMembersResponse? Type730 { get; set; } /// /// /// - public global::Speechify.CreateRequest? Type731 { get; set; } + public global::System.Collections.Generic.IList? Type731 { get; set; } /// /// /// - public global::Speechify.DetectRequest? Type732 { get; set; } + public global::Speechify.GrantProjectMemberRequest? Type732 { get; set; } /// /// /// - public global::Speechify.VerifyRequest? Type733 { get; set; } + public global::Speechify.CreateRequest? Type733 { get; set; } /// /// /// - public global::Speechify.UploadDocumentRequest? Type734 { get; set; } + public global::Speechify.DetectRequest? Type734 { get; set; } /// /// /// - public global::Speechify.UpdateDocumentRequest? Type735 { get; set; } + public global::Speechify.VerifyRequest? Type735 { get; set; } /// /// /// - public global::Speechify.RunTestRequest? Type736 { get; set; } + public global::Speechify.UploadDocumentRequest? Type736 { get; set; } /// /// /// - public global::Speechify.UploadRequest? Type737 { get; set; } + public global::Speechify.UpdateDocumentRequest? Type737 { get; set; } /// /// /// - public global::Speechify.UploadRequest2? Type738 { get; set; } + public global::Speechify.RunTestRequest? Type738 { get; set; } + /// + /// + /// + public global::Speechify.UploadRequest? Type739 { get; set; } + /// + /// + /// + public global::Speechify.UploadRequest2? Type740 { get; set; } /// /// @@ -3178,235 +3186,235 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType48 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType49 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType50 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType51 { get; set; } + public global::System.Collections.Generic.List? ListType51 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType52 { get; set; } + public global::System.Collections.Generic.List? ListType52 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType53 { get; set; } + public global::System.Collections.Generic.List? ListType53 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType54 { get; set; } + public global::System.Collections.Generic.List? ListType54 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType55 { get; set; } + public global::System.Collections.Generic.List? ListType55 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType56 { get; set; } + public global::System.Collections.Generic.List? ListType56 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType57 { get; set; } + public global::System.Collections.Generic.List? ListType57 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType58 { get; set; } + public global::System.Collections.Generic.List? ListType58 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType59 { get; set; } + public global::System.Collections.Generic.List? ListType59 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType60 { get; set; } + public global::System.Collections.Generic.List? ListType60 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType61 { get; set; } + public global::System.Collections.Generic.List? ListType61 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType62 { get; set; } + public global::System.Collections.Generic.List? ListType62 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType63 { get; set; } + public global::System.Collections.Generic.List? ListType63 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType64 { get; set; } + public global::System.Collections.Generic.List? ListType64 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType65 { get; set; } + public global::System.Collections.Generic.List? ListType65 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType66 { get; set; } + public global::System.Collections.Generic.List? ListType66 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType67 { get; set; } + public global::System.Collections.Generic.List? ListType67 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType68 { get; set; } + public global::System.Collections.Generic.List? ListType68 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType69 { get; set; } + public global::System.Collections.Generic.List? ListType69 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType70 { get; set; } + public global::System.Collections.Generic.List? ListType70 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType71 { get; set; } + public global::System.Collections.Generic.List? ListType71 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType72 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType73 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType74 { get; set; } + public global::System.Collections.Generic.List? ListType74 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List? ListType75 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType76 { get; set; } + public global::System.Collections.Generic.List? ListType76 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType77 { get; set; } + public global::System.Collections.Generic.List? ListType77 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType78 { get; set; } + public global::System.Collections.Generic.List? ListType78 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType79 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType80 { get; set; } + public global::System.Collections.Generic.List? ListType80 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType81 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType82 { get; set; } + public global::System.Collections.Generic.List? ListType82 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType83 { get; set; } + public global::System.Collections.Generic.List? ListType83 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType84 { get; set; } + public global::System.Collections.Generic.List? ListType84 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType86 { get; set; } + public global::System.Collections.Generic.List? ListType86 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType87 { get; set; } + public global::System.Collections.Generic.List? ListType87 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType88 { get; set; } + public global::System.Collections.Generic.List? ListType88 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType89 { get; set; } + public global::System.Collections.Generic.List? ListType89 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType90 { get; set; } + public global::System.Collections.Generic.List? ListType90 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType91 { get; set; } + public global::System.Collections.Generic.List? ListType91 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType92 { get; set; } + public global::System.Collections.Generic.List? ListType92 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType93 { get; set; } + public global::System.Collections.Generic.List? ListType93 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType94 { get; set; } + public global::System.Collections.Generic.List? ListType94 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType95 { get; set; } + public global::System.Collections.Generic.List? ListType95 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType96 { get; set; } + public global::System.Collections.Generic.List? ListType96 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType97 { get; set; } + public global::System.Collections.Generic.List? ListType97 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType98 { get; set; } + public global::System.Collections.Generic.List? ListType98 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType99 { get; set; } + public global::System.Collections.Generic.List? ListType99 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType100 { get; set; } + public global::System.Collections.Generic.List? ListType100 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType101 { get; set; } + public global::System.Collections.Generic.List? ListType101 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType102 { get; set; } + public global::System.Collections.Generic.List? ListType102 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType103 { get; set; } + public global::System.Collections.Generic.List? ListType103 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType104 { get; set; } + public global::System.Collections.Generic.List? ListType104 { get; set; } /// /// /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentRun.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentRun.g.cs index 21725e5..e7038c8 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentRun.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.AgentRun.g.cs @@ -4,7 +4,7 @@ namespace Speechify { /// - /// A durable async agent run. Enqueue it, get this handle, follow it with the run event stream (or poll `status`) until terminal. Backed by a durable job, so it survives a deploy. + /// A durable async agent run. Enqueue it, get this handle, follow it with the run event stream (or poll `status`) until terminal. Backed by a durable job, so it survives a deploy. What the run made along the way - a generated picture, a rendered chart, a file it kept - is listed under `files`, so an application never has to search the workspace's files for what its own run produced. /// public sealed partial class AgentRun { @@ -29,6 +29,25 @@ public sealed partial class AgentRun [global::System.Text.Json.Serialization.JsonRequired] public required string AgentId { get; set; } + /// + /// The files this run's own tool calls produced, in the order they were
+ /// made: a picture from `generate_image` or `edit_image`, a chart from
+ /// `render_chart`, a file `run_code` kept, a tool response that was not
+ /// text. Each is the same object `GET /v1/files/{file_id}` returns, so
+ /// `content_path` streams the bytes and `source.step` is the journal
+ /// step of the tool call that made it, with no second lookup.
+ /// Always present. It grows while the run is going - the event stream
+ /// carries each file on the step that produced it - and an empty list on
+ /// a finished run means it produced nothing, never that the files are on
+ /// another page. A run that failed or was cancelled after making a file
+ /// still lists it. A file scoped to the run's `user_identity` is listed
+ /// here and is readable by a run acting for that same person, exactly as
+ /// under `/v1/files`. A file deleted or expired since is no longer listed. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("files")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Files { get; set; } + /// /// Lifecycle: `queued` -> `running` -> `succeeded` | `failed` | `canceled` | `expired`. `requires_action` (a pending human approval) and `canceling` are transient. Terminal set: succeeded, failed, canceled, expired. /// @@ -121,6 +140,21 @@ public sealed partial class AgentRun /// /// The agent that ran. On a delegated child this is the member agent, not the manager. /// + /// + /// The files this run's own tool calls produced, in the order they were
+ /// made: a picture from `generate_image` or `edit_image`, a chart from
+ /// `render_chart`, a file `run_code` kept, a tool response that was not
+ /// text. Each is the same object `GET /v1/files/{file_id}` returns, so
+ /// `content_path` streams the bytes and `source.step` is the journal
+ /// step of the tool call that made it, with no second lookup.
+ /// Always present. It grows while the run is going - the event stream
+ /// carries each file on the step that produced it - and an empty list on
+ /// a finished run means it produced nothing, never that the files are on
+ /// another page. A run that failed or was cancelled after making a file
+ /// still lists it. A file scoped to the run's `user_identity` is listed
+ /// here and is readable by a run acting for that same person, exactly as
+ /// under `/v1/files`. A file deleted or expired since is no longer listed. + /// /// /// Lifecycle: `queued` -> `running` -> `succeeded` | `failed` | `canceled` | `expired`. `requires_action` (a pending human approval) and `canceling` are transient. Terminal set: succeeded, failed, canceled, expired. /// @@ -165,6 +199,7 @@ public sealed partial class AgentRun public AgentRun( string id, string agentId, + global::System.Collections.Generic.IList files, global::Speechify.AgentRunStatus status, global::Speechify.AgentRunInput input, global::System.DateTime createdAt, @@ -182,6 +217,7 @@ public AgentRun( this.ProjectId = projectId; this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.AgentId = agentId ?? throw new global::System.ArgumentNullException(nameof(agentId)); + this.Files = files ?? throw new global::System.ArgumentNullException(nameof(files)); this.Status = status; this.Input = input ?? throw new global::System.ArgumentNullException(nameof(input)); this.Output = output; diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStep.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStep.g.cs index 7b98530..652a645 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStep.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStep.g.cs @@ -4,7 +4,7 @@ namespace Speechify { /// - /// One iteration of a durable run's plan-act-observe loop, journaled in order. A `plan` step carries the agent's rationale (`content`); a `tool_call` step carries the tool it invoked (`tool`) and its rendered arguments (`args`); an `observation` step carries the tool's result (`content`); a `delegation` step carries the sub-goal it handed to a team member (`content`) and the member + child run that took it (`delegation`). The run's final answer is not a step - read it from the run object. Credential-shaped values in `args` and `content` are redacted. + /// One iteration of a durable run's plan-act-observe loop, journaled in order. A `plan` step carries the agent's rationale (`content`); a `tool_call` step carries the tool it invoked (`tool`) and its rendered arguments (`args`); an `observation` step carries the tool's result (`content`) and, when the call it answers produced a file, that file (`files`); a `delegation` step carries the sub-goal it handed to a team member (`content`) and the member + child run that took it (`delegation`). The run's final answer is not a step - read it from the run object. Credential-shaped values in `args` and `content` are redacted. /// public sealed partial class AgentRunStep { @@ -58,6 +58,18 @@ public sealed partial class AgentRunStep [global::System.Text.Json.Serialization.JsonPropertyName("delegation")] public global::Speechify.RunStepDelegation? Delegation { get; set; } + /// + /// On an `observation` step: the files the tool call it answers
+ /// produced, each the object `GET /v1/files/{file_id}` returns. A
+ /// picture or chart is here the moment it exists, one step after the
+ /// `tool_call` that asked for it (`source.step` names that call), so a
+ /// client following the event stream can show it before the run ends.
+ /// Absent on a step whose call produced nothing, and on every other
+ /// kind. The run object's `files` is the same set across all steps. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("files")] + public global::System.Collections.Generic.IList? Files { get; set; } + /// /// Wall-clock the brain spent producing this step. /// @@ -142,6 +154,15 @@ public sealed partial class AgentRunStep /// It appears on BOTH halves of a hand-off, keyed by the same `child_run_id`: the `delegation` step that made it (carrying `depth`), and the later `observation` step that folded the child's result back (carrying `child_status`). Pair them on `child_run_id` to read a sub-goal and its outcome together. The sub-goal and the result themselves are those steps' `content`.
/// `child_run_id` is a real run - fetch it with `getRun` (under `agent_id`) for the member's own status, output, and token usage. That is what makes a team run traversable: the parent's timeline links to each member's actual work rather than summarizing it. /// + /// + /// On an `observation` step: the files the tool call it answers
+ /// produced, each the object `GET /v1/files/{file_id}` returns. A
+ /// picture or chart is here the moment it exists, one step after the
+ /// `tool_call` that asked for it (`source.step` names that call), so a
+ /// client following the event stream can show it before the run ends.
+ /// Absent on a step whose call produced nothing, and on every other
+ /// kind. The run object's `files` is the same set across all steps. + /// /// /// Wall-clock the brain spent producing this step. /// @@ -171,6 +192,7 @@ public AgentRunStep( string? tool, object? args, global::Speechify.RunStepDelegation? delegation, + global::System.Collections.Generic.IList? files, int? durationMs, string? model, int? inputTokens, @@ -184,6 +206,7 @@ public AgentRunStep( this.Tool = tool; this.Args = args; this.Delegation = delegation; + this.Files = files; this.DurationMs = durationMs; this.Model = model; this.InputTokens = inputTokens; diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEvent.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEvent.g.cs index 4c906c4..99a34ce 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEvent.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEvent.g.cs @@ -58,15 +58,60 @@ public bool TryPickRunStepAdded( ? RunStepAdded! : throw new global::System.InvalidOperationException($"Expected union variant 'RunStepAdded' but the value was {ToString()}."); + /// + /// A piece of the text the agent is writing, sent as it is written. `seq`
+ /// is the journal position the text belongs to and `offset` the number of
+ /// characters (Unicode code points) of that position's text before this
+ /// piece; keep one buffer per `seq` and place the piece at its offset. The
+ /// buffer is closed by a `run.step.added` at the same `seq` (it was the
+ /// step's `content`) or by `run.ended` (it was the reply, and
+ /// `output.reply` is the copy to keep). The SSE `id:` records the position
+ /// reached, so a reconnect through `Last-Event-ID` resumes without
+ /// replaying text already rendered. + ///
+#if NET6_0_OR_GREATER + public global::Speechify.AgentRunStreamEventVariant2? RunReplyDelta { get; init; } +#else + public global::Speechify.AgentRunStreamEventVariant2? RunReplyDelta { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunReplyDelta))] +#endif + public bool IsRunReplyDelta => RunReplyDelta != null; + + /// + /// + /// + public bool TryPickRunReplyDelta( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Speechify.AgentRunStreamEventVariant2? value) + { + value = RunReplyDelta; + return IsRunReplyDelta; + } + + /// + /// + /// + public global::Speechify.AgentRunStreamEventVariant2 PickRunReplyDelta() => IsRunReplyDelta + ? RunReplyDelta! + : throw new global::System.InvalidOperationException($"Expected union variant 'RunReplyDelta' but the value was {ToString()}."); + /// /// The run moved to a new status. Not terminal: a run reporting
/// `requires_action` is waiting on a human and the stream keeps tailing,
/// which is precisely when a client most needs to be told. ///
#if NET6_0_OR_GREATER - public global::Speechify.AgentRunStreamEventVariant2? RunStatusChanged { get; init; } + public global::Speechify.AgentRunStreamEventVariant3? RunStatusChanged { get; init; } #else - public global::Speechify.AgentRunStreamEventVariant2? RunStatusChanged { get; } + public global::Speechify.AgentRunStreamEventVariant3? RunStatusChanged { get; } #endif /// @@ -84,7 +129,7 @@ public bool TryPickRunStatusChanged( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Speechify.AgentRunStreamEventVariant2? value) + out global::Speechify.AgentRunStreamEventVariant3? value) { value = RunStatusChanged; return IsRunStatusChanged; @@ -93,7 +138,7 @@ public bool TryPickRunStatusChanged( /// /// /// - public global::Speechify.AgentRunStreamEventVariant2 PickRunStatusChanged() => IsRunStatusChanged + public global::Speechify.AgentRunStreamEventVariant3 PickRunStatusChanged() => IsRunStatusChanged ? RunStatusChanged! : throw new global::System.InvalidOperationException($"Expected union variant 'RunStatusChanged' but the value was {ToString()}."); @@ -104,9 +149,9 @@ public bool TryPickRunStatusChanged( /// request. /// #if NET6_0_OR_GREATER - public global::Speechify.AgentRunStreamEventVariant3? RunEnded { get; init; } + public global::Speechify.AgentRunStreamEventVariant4? RunEnded { get; init; } #else - public global::Speechify.AgentRunStreamEventVariant3? RunEnded { get; } + public global::Speechify.AgentRunStreamEventVariant4? RunEnded { get; } #endif /// @@ -124,7 +169,7 @@ public bool TryPickRunEnded( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Speechify.AgentRunStreamEventVariant3? value) + out global::Speechify.AgentRunStreamEventVariant4? value) { value = RunEnded; return IsRunEnded; @@ -133,7 +178,7 @@ public bool TryPickRunEnded( /// /// /// - public global::Speechify.AgentRunStreamEventVariant3 PickRunEnded() => IsRunEnded + public global::Speechify.AgentRunStreamEventVariant4 PickRunEnded() => IsRunEnded ? RunEnded! : throw new global::System.InvalidOperationException($"Expected union variant 'RunEnded' but the value was {ToString()}."); /// @@ -167,20 +212,20 @@ public AgentRunStreamEvent(global::Speechify.AgentRunStreamEventVariant1? value) /// /// /// - public static implicit operator global::Speechify.AgentRunStreamEventVariant2?(AgentRunStreamEvent @this) => @this.RunStatusChanged; + public static implicit operator global::Speechify.AgentRunStreamEventVariant2?(AgentRunStreamEvent @this) => @this.RunReplyDelta; /// /// /// public AgentRunStreamEvent(global::Speechify.AgentRunStreamEventVariant2? value) { - RunStatusChanged = value; + RunReplyDelta = value; } /// /// /// - public static AgentRunStreamEvent FromRunStatusChanged(global::Speechify.AgentRunStreamEventVariant2? value) => new AgentRunStreamEvent(value); + public static AgentRunStreamEvent FromRunReplyDelta(global::Speechify.AgentRunStreamEventVariant2? value) => new AgentRunStreamEvent(value); /// /// @@ -190,12 +235,35 @@ public AgentRunStreamEvent(global::Speechify.AgentRunStreamEventVariant2? value) /// /// /// - public static implicit operator global::Speechify.AgentRunStreamEventVariant3?(AgentRunStreamEvent @this) => @this.RunEnded; + public static implicit operator global::Speechify.AgentRunStreamEventVariant3?(AgentRunStreamEvent @this) => @this.RunStatusChanged; /// /// /// public AgentRunStreamEvent(global::Speechify.AgentRunStreamEventVariant3? value) + { + RunStatusChanged = value; + } + + /// + /// + /// + public static AgentRunStreamEvent FromRunStatusChanged(global::Speechify.AgentRunStreamEventVariant3? value) => new AgentRunStreamEvent(value); + + /// + /// + /// + public static implicit operator AgentRunStreamEvent(global::Speechify.AgentRunStreamEventVariant4 value) => new AgentRunStreamEvent((global::Speechify.AgentRunStreamEventVariant4?)value); + + /// + /// + /// + public static implicit operator global::Speechify.AgentRunStreamEventVariant4?(AgentRunStreamEvent @this) => @this.RunEnded; + + /// + /// + /// + public AgentRunStreamEvent(global::Speechify.AgentRunStreamEventVariant4? value) { RunEnded = value; } @@ -203,7 +271,7 @@ public AgentRunStreamEvent(global::Speechify.AgentRunStreamEventVariant3? value) /// /// /// - public static AgentRunStreamEvent FromRunEnded(global::Speechify.AgentRunStreamEventVariant3? value) => new AgentRunStreamEvent(value); + public static AgentRunStreamEvent FromRunEnded(global::Speechify.AgentRunStreamEventVariant4? value) => new AgentRunStreamEvent(value); /// /// @@ -211,13 +279,15 @@ public AgentRunStreamEvent(global::Speechify.AgentRunStreamEventVariant3? value) public AgentRunStreamEvent( global::Speechify.AgentRunStreamEventDiscriminatorType? type, global::Speechify.AgentRunStreamEventVariant1? runStepAdded, - global::Speechify.AgentRunStreamEventVariant2? runStatusChanged, - global::Speechify.AgentRunStreamEventVariant3? runEnded + global::Speechify.AgentRunStreamEventVariant2? runReplyDelta, + global::Speechify.AgentRunStreamEventVariant3? runStatusChanged, + global::Speechify.AgentRunStreamEventVariant4? runEnded ) { Type = type; RunStepAdded = runStepAdded; + RunReplyDelta = runReplyDelta; RunStatusChanged = runStatusChanged; RunEnded = runEnded; } @@ -228,6 +298,7 @@ public AgentRunStreamEvent( public object? Object => RunEnded as object ?? RunStatusChanged as object ?? + RunReplyDelta as object ?? RunStepAdded as object ; @@ -236,6 +307,7 @@ RunStepAdded as object /// public override string? ToString() => RunStepAdded?.ToString() ?? + RunReplyDelta?.ToString() ?? RunStatusChanged?.ToString() ?? RunEnded?.ToString() ; @@ -245,7 +317,7 @@ RunStepAdded as object /// public bool Validate() { - return IsRunStepAdded && !IsRunStatusChanged && !IsRunEnded || !IsRunStepAdded && IsRunStatusChanged && !IsRunEnded || !IsRunStepAdded && !IsRunStatusChanged && IsRunEnded; + return IsRunStepAdded && !IsRunReplyDelta && !IsRunStatusChanged && !IsRunEnded || !IsRunStepAdded && IsRunReplyDelta && !IsRunStatusChanged && !IsRunEnded || !IsRunStepAdded && !IsRunReplyDelta && IsRunStatusChanged && !IsRunEnded || !IsRunStepAdded && !IsRunReplyDelta && !IsRunStatusChanged && IsRunEnded; } /// @@ -253,8 +325,9 @@ public bool Validate() /// public TResult? Match( global::System.Func? runStepAdded = null, - global::System.Func? runStatusChanged = null, - global::System.Func? runEnded = null, + global::System.Func? runReplyDelta = null, + global::System.Func? runStatusChanged = null, + global::System.Func? runEnded = null, bool validate = true) { if (validate) @@ -266,6 +339,10 @@ public bool Validate() { return runStepAdded(RunStepAdded!); } + else if (IsRunReplyDelta && runReplyDelta != null) + { + return runReplyDelta(RunReplyDelta!); + } else if (IsRunStatusChanged && runStatusChanged != null) { return runStatusChanged(RunStatusChanged!); @@ -284,9 +361,11 @@ public bool Validate() public void Match( global::System.Action? runStepAdded = null, - global::System.Action? runStatusChanged = null, + global::System.Action? runReplyDelta = null, - global::System.Action? runEnded = null, + global::System.Action? runStatusChanged = null, + + global::System.Action? runEnded = null, bool validate = true) { if (validate) @@ -298,6 +377,10 @@ public void Match( { runStepAdded?.Invoke(RunStepAdded!); } + else if (IsRunReplyDelta) + { + runReplyDelta?.Invoke(RunReplyDelta!); + } else if (IsRunStatusChanged) { runStatusChanged?.Invoke(RunStatusChanged!); @@ -313,8 +396,9 @@ public void Match( /// public void Switch( global::System.Action? runStepAdded = null, - global::System.Action? runStatusChanged = null, - global::System.Action? runEnded = null, + global::System.Action? runReplyDelta = null, + global::System.Action? runStatusChanged = null, + global::System.Action? runEnded = null, bool validate = true) { if (validate) @@ -326,6 +410,10 @@ public void Switch( { runStepAdded?.Invoke(RunStepAdded!); } + else if (IsRunReplyDelta) + { + runReplyDelta?.Invoke(RunReplyDelta!); + } else if (IsRunStatusChanged) { runStatusChanged?.Invoke(RunStatusChanged!); @@ -345,10 +433,12 @@ public override int GetHashCode() { RunStepAdded, typeof(global::Speechify.AgentRunStreamEventVariant1), - RunStatusChanged, + RunReplyDelta, typeof(global::Speechify.AgentRunStreamEventVariant2), - RunEnded, + RunStatusChanged, typeof(global::Speechify.AgentRunStreamEventVariant3), + RunEnded, + typeof(global::Speechify.AgentRunStreamEventVariant4), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -366,8 +456,9 @@ public bool Equals(AgentRunStreamEvent other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStepAdded, other.RunStepAdded) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStatusChanged, other.RunStatusChanged) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunEnded, other.RunEnded) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunReplyDelta, other.RunReplyDelta) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStatusChanged, other.RunStatusChanged) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunEnded, other.RunEnded) ; } diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventDiscriminatorType.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventDiscriminatorType.g.cs index 41a573f..599e3d4 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventDiscriminatorType.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventDiscriminatorType.g.cs @@ -15,6 +15,10 @@ public enum AgentRunStreamEventDiscriminatorType /// /// /// + RunReplyDelta, + /// + /// + /// RunStatusChanged, /// /// @@ -35,6 +39,7 @@ public static string ToValueString(this AgentRunStreamEventDiscriminatorType val return value switch { AgentRunStreamEventDiscriminatorType.RunEnded => "run.ended", + AgentRunStreamEventDiscriminatorType.RunReplyDelta => "run.reply.delta", AgentRunStreamEventDiscriminatorType.RunStatusChanged => "run.status.changed", AgentRunStreamEventDiscriminatorType.RunStepAdded => "run.step.added", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -48,6 +53,7 @@ public static string ToValueString(this AgentRunStreamEventDiscriminatorType val return value switch { "run.ended" => AgentRunStreamEventDiscriminatorType.RunEnded, + "run.reply.delta" => AgentRunStreamEventDiscriminatorType.RunReplyDelta, "run.status.changed" => AgentRunStreamEventDiscriminatorType.RunStatusChanged, "run.step.added" => AgentRunStreamEventDiscriminatorType.RunStepAdded, _ => null, diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant1.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant1.g.cs index 5b2b590..5405bd2 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant1.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant1.g.cs @@ -68,6 +68,18 @@ public sealed partial class AgentRunStreamEventVariant1 [global::System.Text.Json.Serialization.JsonPropertyName("delegation")] public global::Speechify.RunStepDelegation? Delegation { get; set; } + /// + /// On an `observation` step: the files the tool call it answers
+ /// produced, each the object `GET /v1/files/{file_id}` returns. A
+ /// picture or chart is here the moment it exists, one step after the
+ /// `tool_call` that asked for it (`source.step` names that call), so a
+ /// client following the event stream can show it before the run ends.
+ /// Absent on a step whose call produced nothing, and on every other
+ /// kind. The run object's `files` is the same set across all steps. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("files")] + public global::System.Collections.Generic.IList? Files { get; set; } + /// /// Wall-clock the brain spent producing this step. /// @@ -153,6 +165,15 @@ public sealed partial class AgentRunStreamEventVariant1 /// It appears on BOTH halves of a hand-off, keyed by the same `child_run_id`: the `delegation` step that made it (carrying `depth`), and the later `observation` step that folded the child's result back (carrying `child_status`). Pair them on `child_run_id` to read a sub-goal and its outcome together. The sub-goal and the result themselves are those steps' `content`.
/// `child_run_id` is a real run - fetch it with `getRun` (under `agent_id`) for the member's own status, output, and token usage. That is what makes a team run traversable: the parent's timeline links to each member's actual work rather than summarizing it. /// + /// + /// On an `observation` step: the files the tool call it answers
+ /// produced, each the object `GET /v1/files/{file_id}` returns. A
+ /// picture or chart is here the moment it exists, one step after the
+ /// `tool_call` that asked for it (`source.step` names that call), so a
+ /// client following the event stream can show it before the run ends.
+ /// Absent on a step whose call produced nothing, and on every other
+ /// kind. The run object's `files` is the same set across all steps. + /// /// /// Wall-clock the brain spent producing this step. /// @@ -183,6 +204,7 @@ public AgentRunStreamEventVariant1( string? tool, object? args, global::Speechify.RunStepDelegation? delegation, + global::System.Collections.Generic.IList? files, int? durationMs, string? model, int? inputTokens, @@ -197,6 +219,7 @@ public AgentRunStreamEventVariant1( this.Tool = tool; this.Args = args; this.Delegation = delegation; + this.Files = files; this.DurationMs = durationMs; this.Model = model; this.InputTokens = inputTokens; diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant2.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant2.g.cs index c388f7d..bdd5fd2 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant2.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant2.g.cs @@ -4,9 +4,15 @@ namespace Speechify { /// - /// The run moved to a new status. Not terminal: a run reporting
- /// `requires_action` is waiting on a human and the stream keeps tailing,
- /// which is precisely when a client most needs to be told. + /// A piece of the text the agent is writing, sent as it is written. `seq`
+ /// is the journal position the text belongs to and `offset` the number of
+ /// characters (Unicode code points) of that position's text before this
+ /// piece; keep one buffer per `seq` and place the piece at its offset. The
+ /// buffer is closed by a `run.step.added` at the same `seq` (it was the
+ /// step's `content`) or by `run.ended` (it was the reply, and
+ /// `output.reply` is the copy to keep). The SSE `id:` records the position
+ /// reached, so a reconnect through `Last-Event-ID` resumes without
+ /// replaying text already rendered. ///
public sealed partial class AgentRunStreamEventVariant2 { @@ -18,12 +24,25 @@ public sealed partial class AgentRunStreamEventVariant2 public global::Speechify.AgentRunStreamEventVariant2Type Type { get; set; } /// - /// + /// The journal position this text is being written at. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("seq")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Seq { get; set; } + + /// + /// Characters of this position's text that precede this piece. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("offset")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Offset { get; set; } + + /// + /// The piece itself, never empty. /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Speechify.JsonConverters.AgentRunStatusChangedEventStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonPropertyName("text")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Speechify.AgentRunStatusChangedEventStatus Status { get; set; } + public required string Text { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -34,17 +53,29 @@ public sealed partial class AgentRunStreamEventVariant2 /// /// Initializes a new instance of the class. /// - /// + /// + /// The journal position this text is being written at. + /// + /// + /// Characters of this position's text that precede this piece. + /// + /// + /// The piece itself, never empty. + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AgentRunStreamEventVariant2( - global::Speechify.AgentRunStatusChangedEventStatus status, + int seq, + int offset, + string text, global::Speechify.AgentRunStreamEventVariant2Type type) { this.Type = type; - this.Status = status; + this.Seq = seq; + this.Offset = offset; + this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); } /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant2Type.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant2Type.g.cs index 3145eb1..e731741 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant2Type.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant2Type.g.cs @@ -11,7 +11,7 @@ public enum AgentRunStreamEventVariant2Type /// /// /// - RunStatusChanged, + RunReplyDelta, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this AgentRunStreamEventVariant2Type value) { return value switch { - AgentRunStreamEventVariant2Type.RunStatusChanged => "run.status.changed", + AgentRunStreamEventVariant2Type.RunReplyDelta => "run.reply.delta", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this AgentRunStreamEventVariant2Type value) { return value switch { - "run.status.changed" => AgentRunStreamEventVariant2Type.RunStatusChanged, + "run.reply.delta" => AgentRunStreamEventVariant2Type.RunReplyDelta, _ => null, }; } diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant3.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant3.g.cs index 2e448d0..9ffa139 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant3.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant3.g.cs @@ -4,10 +4,9 @@ namespace Speechify { /// - /// The run settled, and this event carries its answer. It is the last event
- /// on the stream - there is no `[DONE]` sentinel - and it is everything a
- /// client needs, so following a run to completion takes no follow-up
- /// request. + /// The run moved to a new status. Not terminal: a run reporting
+ /// `requires_action` is waiting on a human and the stream keeps tailing,
+ /// which is precisely when a client most needs to be told. ///
public sealed partial class AgentRunStreamEventVariant3 { @@ -22,25 +21,9 @@ public sealed partial class AgentRunStreamEventVariant3 /// ///
[global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Speechify.JsonConverters.AgentRunEndedEventStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Speechify.JsonConverters.AgentRunStatusChangedEventStatusJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Speechify.AgentRunEndedEventStatus Status { get; set; } - - /// - /// Why the run stopped short. Absent when it finished its work. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("incomplete_reason")] - public string? IncompleteReason { get; set; } - - /// - /// The run's answer, as Get Agent Run returns it but without
- /// `transcript` - the stream has already delivered every step
- /// individually, so repeating them here would send the run twice.
- /// Absent on a run that produced no answer (failed, cancelled, or
- /// stopped short). - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("output")] - public global::Speechify.AgentRunEndedEventOutput? Output { get; set; } + public required global::Speechify.AgentRunStatusChangedEventStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -53,29 +36,15 @@ public sealed partial class AgentRunStreamEventVariant3 /// /// /// - /// - /// Why the run stopped short. Absent when it finished its work. - /// - /// - /// The run's answer, as Get Agent Run returns it but without
- /// `transcript` - the stream has already delivered every step
- /// individually, so repeating them here would send the run twice.
- /// Absent on a run that produced no answer (failed, cancelled, or
- /// stopped short). - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AgentRunStreamEventVariant3( - global::Speechify.AgentRunEndedEventStatus status, - global::Speechify.AgentRunStreamEventVariant3Type type, - string? incompleteReason, - global::Speechify.AgentRunEndedEventOutput? output) + global::Speechify.AgentRunStatusChangedEventStatus status, + global::Speechify.AgentRunStreamEventVariant3Type type) { this.Type = type; this.Status = status; - this.IncompleteReason = incompleteReason; - this.Output = output; } /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant3Type.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant3Type.g.cs index 7ea3784..278f5da 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant3Type.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant3Type.g.cs @@ -11,7 +11,7 @@ public enum AgentRunStreamEventVariant3Type /// /// /// - RunEnded, + RunStatusChanged, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this AgentRunStreamEventVariant3Type value) { return value switch { - AgentRunStreamEventVariant3Type.RunEnded => "run.ended", + AgentRunStreamEventVariant3Type.RunStatusChanged => "run.status.changed", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this AgentRunStreamEventVariant3Type value) { return value switch { - "run.ended" => AgentRunStreamEventVariant3Type.RunEnded, + "run.status.changed" => AgentRunStreamEventVariant3Type.RunStatusChanged, _ => null, }; } diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant4.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant4.Json.g.cs new file mode 100644 index 0000000..1e05040 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class AgentRunStreamEventVariant4 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.AgentRunStreamEventVariant4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.AgentRunStreamEventVariant4), + jsonSerializerContext) as global::Speechify.AgentRunStreamEventVariant4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.AgentRunStreamEventVariant4? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.AgentRunStreamEventVariant4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.AgentRunStreamEventVariant4), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.AgentRunStreamEventVariant4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant4.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant4.g.cs new file mode 100644 index 0000000..ba34f81 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant4.g.cs @@ -0,0 +1,107 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// The run settled, and this event carries its answer. It is the last event
+ /// on the stream - there is no `[DONE]` sentinel - and it is everything a
+ /// client needs, so following a run to completion takes no follow-up
+ /// request. + ///
+ public sealed partial class AgentRunStreamEventVariant4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Speechify.JsonConverters.AgentRunStreamEventVariant4TypeJsonConverter))] + public global::Speechify.AgentRunStreamEventVariant4Type Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Speechify.JsonConverters.AgentRunEndedEventStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Speechify.AgentRunEndedEventStatus Status { get; set; } + + /// + /// Why the run stopped short. Absent when it finished its work. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("incomplete_reason")] + public string? IncompleteReason { get; set; } + + /// + /// Every file the run produced, as the run object lists them - the
+ /// same files the stream already delivered one by one on their
+ /// observation steps, gathered here so a client that reads only the
+ /// end still learns what was made. Empty when it made nothing. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("files")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Files { get; set; } + + /// + /// The run's answer, as Get Agent Run returns it but without
+ /// `transcript` - the stream has already delivered every step
+ /// individually, so repeating them here would send the run twice.
+ /// Absent on a run that produced no answer (failed, cancelled, or
+ /// stopped short). + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("output")] + public global::Speechify.AgentRunEndedEventOutput? Output { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// Every file the run produced, as the run object lists them - the
+ /// same files the stream already delivered one by one on their
+ /// observation steps, gathered here so a client that reads only the
+ /// end still learns what was made. Empty when it made nothing. + /// + /// + /// + /// Why the run stopped short. Absent when it finished its work. + /// + /// + /// The run's answer, as Get Agent Run returns it but without
+ /// `transcript` - the stream has already delivered every step
+ /// individually, so repeating them here would send the run twice.
+ /// Absent on a run that produced no answer (failed, cancelled, or
+ /// stopped short). + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AgentRunStreamEventVariant4( + global::Speechify.AgentRunEndedEventStatus status, + global::System.Collections.Generic.IList files, + global::Speechify.AgentRunStreamEventVariant4Type type, + string? incompleteReason, + global::Speechify.AgentRunEndedEventOutput? output) + { + this.Type = type; + this.Status = status; + this.IncompleteReason = incompleteReason; + this.Files = files ?? throw new global::System.ArgumentNullException(nameof(files)); + this.Output = output; + } + + /// + /// Initializes a new instance of the class. + /// + public AgentRunStreamEventVariant4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant4Type.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant4Type.g.cs new file mode 100644 index 0000000..1e05130 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.AgentRunStreamEventVariant4Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public enum AgentRunStreamEventVariant4Type + { + /// + /// + /// + RunEnded, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AgentRunStreamEventVariant4TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AgentRunStreamEventVariant4Type value) + { + return value switch + { + AgentRunStreamEventVariant4Type.RunEnded => "run.ended", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AgentRunStreamEventVariant4Type? ToEnum(string value) + { + return value switch + { + "run.ended" => AgentRunStreamEventVariant4Type.RunEnded, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.File.g.cs b/src/libs/Speechify/Generated/Speechify.Models.File.g.cs index b51a235..c4b8b71 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.File.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.File.g.cs @@ -4,9 +4,12 @@ namespace Speechify { /// - /// One uploaded file a run can be handed. The bytes live in Speechify's
- /// storage and are read either by an agent inside a run (its `read_file`
- /// tool) or over `content_path`; this object is the metadata. + /// One file: an upload a run can be handed, or something a run's tool
+ /// produced - a picture, a chart, a file kept out of the sandbox. The
+ /// bytes live in Speechify's storage and are read either by an agent
+ /// inside a run (its `read_file` tool) or over `content_path`; this
+ /// object is the metadata. A run lists what it produced under its own
+ /// `files`, so nothing here has to be searched for by `source`. ///
public sealed partial class File { diff --git a/src/libs/Speechify/Generated/Speechify.Runs.JsonSerializerContext.g.cs b/src/libs/Speechify/Generated/Speechify.Runs.JsonSerializerContext.g.cs index 5672628..e1f68fa 100644 --- a/src/libs/Speechify/Generated/Speechify.Runs.JsonSerializerContext.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Runs.JsonSerializerContext.g.cs @@ -29,6 +29,9 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.CreateAgentRunRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.FileKind), TypeInfoPropertyName = "FileKind2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.FileSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.File))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStatus), TypeInfoPropertyName = "AgentRunStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunInputDelegationTargetsItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunInput))] @@ -46,6 +49,7 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PendingActionDefaultDecision), TypeInfoPropertyName = "PendingActionDefaultDecision2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PendingAction))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRun))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.V1AgentsAgentIdRunsGetParametersStatus), TypeInfoPropertyName = "V1AgentsAgentIdRunsGetParametersStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ListAgentRunsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -69,6 +73,8 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant2Type), TypeInfoPropertyName = "AgentRunStreamEventVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant3Type), TypeInfoPropertyName = "AgentRunStreamEventVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant4Type), TypeInfoPropertyName = "AgentRunStreamEventVariant4Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventDiscriminatorType), TypeInfoPropertyName = "AgentRunStreamEventDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] @@ -76,6 +82,7 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ErrorCode?), TypeInfoPropertyName = "NullableErrorCode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.FileKind?), TypeInfoPropertyName = "NullableFileKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStatus?), TypeInfoPropertyName = "NullableAgentRunStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunIncompleteReason?), TypeInfoPropertyName = "NullableAgentRunIncompleteReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PendingActionDefaultDecision?), TypeInfoPropertyName = "NullablePendingActionDefaultDecision2")] @@ -91,12 +98,14 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant1Type?), TypeInfoPropertyName = "NullableAgentRunStreamEventVariant1Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant2Type?), TypeInfoPropertyName = "NullableAgentRunStreamEventVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant3Type?), TypeInfoPropertyName = "NullableAgentRunStreamEventVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant4Type?), TypeInfoPropertyName = "NullableAgentRunStreamEventVariant4Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventDiscriminatorType?), TypeInfoPropertyName = "NullableAgentRunStreamEventDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class RunsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext @@ -170,6 +179,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Speechify.ErrorCode?) + || typeToConvert == typeof(global::Speechify.FileKind) + + || typeToConvert == typeof(global::Speechify.FileKind?) + || typeToConvert == typeof(global::Speechify.AgentRunStatus) || typeToConvert == typeof(global::Speechify.AgentRunStatus?) @@ -226,6 +239,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Speechify.AgentRunStreamEventVariant3Type?) + || typeToConvert == typeof(global::Speechify.AgentRunStreamEventVariant4Type) + + || typeToConvert == typeof(global::Speechify.AgentRunStreamEventVariant4Type?) + || typeToConvert == typeof(global::Speechify.AgentRunStreamEventDiscriminatorType) || typeToConvert == typeof(global::Speechify.AgentRunStreamEventDiscriminatorType?); @@ -245,6 +262,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Speechify.JsonConverters.ErrorCodeNullableJsonConverter(); } + if (typeToConvert == typeof(global::Speechify.FileKind)) + { + return new global::Speechify.JsonConverters.FileKindJsonConverter(); + } + + if (typeToConvert == typeof(global::Speechify.FileKind?)) + { + return new global::Speechify.JsonConverters.FileKindNullableJsonConverter(); + } + if (typeToConvert == typeof(global::Speechify.AgentRunStatus)) { return new global::Speechify.JsonConverters.AgentRunStatusJsonConverter(); @@ -385,6 +412,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Speechify.JsonConverters.AgentRunStreamEventVariant3TypeNullableJsonConverter(); } + if (typeToConvert == typeof(global::Speechify.AgentRunStreamEventVariant4Type)) + { + return new global::Speechify.JsonConverters.AgentRunStreamEventVariant4TypeJsonConverter(); + } + + if (typeToConvert == typeof(global::Speechify.AgentRunStreamEventVariant4Type?)) + { + return new global::Speechify.JsonConverters.AgentRunStreamEventVariant4TypeNullableJsonConverter(); + } + if (typeToConvert == typeof(global::Speechify.AgentRunStreamEventDiscriminatorType)) { return new global::Speechify.JsonConverters.AgentRunStreamEventDiscriminatorTypeJsonConverter(); diff --git a/src/libs/Speechify/Generated/Speechify.RunsClient.StreamEvents.g.cs b/src/libs/Speechify/Generated/Speechify.RunsClient.StreamEvents.g.cs index bfd053e..6ffb604 100644 --- a/src/libs/Speechify/Generated/Speechify.RunsClient.StreamEvents.g.cs +++ b/src/libs/Speechify/Generated/Speechify.RunsClient.StreamEvents.g.cs @@ -46,13 +46,45 @@ partial void ProcessStreamEventsResponse( /// a long-running agent instead of polling it.
/// Holds the connection open and tails the run's journal: a
/// `run.step.added` event per step (its `data` is a RunStep object, the
- /// same shape List Run Steps returns), a `run.status.changed` event when
- /// the run's status moves, and a terminal `run.ended` event carrying the
- /// final status and, when the run stopped short, its
- /// `incomplete_reason`. Consumers must ignore unknown event types.
+ /// same shape List Run Steps returns), a `run.reply.delta` event for each
+ /// piece of text the agent writes, as it writes it, a
+ /// `run.status.changed` event when the run's status moves, and a terminal
+ /// `run.ended` event carrying the final status and, when the run stopped
+ /// short, its `incomplete_reason`. Consumers must ignore unknown event
+ /// types.
+ /// A picture or chart the agent makes arrives before the run ends: the
+ /// `observation` step for the tool call that made it carries the file
+ /// under `files`, so a client can show it the moment that step is
+ /// delivered. `run.ended` lists every file the run produced.
/// A run waiting on a human approval is not terminal: the stream reports
/// `requires_action` and keeps tailing, so the client learns it has
/// something to decide.
+ /// ## The reply arrives as it is written
+ /// `run.reply.delta` carries the agent's text piece by piece, so a chat
+ /// built on runs shows the answer forming instead of a spinner. Each
+ /// piece names the journal position it is written at (`seq`) and how
+ /// many characters of that position's text precede it (`offset`). Keep
+ /// one buffer per `seq`: append a piece whose `offset` equals what you
+ /// hold, and on any other `offset` cut the buffer to it first (that only
+ /// happens after a step was re-executed, and means the earlier text is
+ /// void). Text is counted in Unicode code points.
+ /// Which text a buffer turns out to be is settled by the event that
+ /// closes it. A `run.step.added` at the same `seq` closes it as that
+ /// step's `content` - the plan of a tool call, which the agent wrote
+ /// before deciding to act - and the next piece starts a new buffer at a
+ /// later `seq`. `run.ended` closes the open buffer as the reply, and its
+ /// `output.reply` is the authoritative copy: replace the buffer with it.
+ /// A `run.ended` with no `output` (the run failed, was cancelled, or
+ /// stopped short) means the open buffer was abandoned mid-sentence -
+ /// show it as such or drop it; it is not an answer. A run parked in
+ /// `requires_action` never leaves a buffer open, because the text it
+ /// wrote before parking lands as the plan step first. A client that
+ /// never subscribes to `run.reply.delta` sees exactly the stream it saw
+ /// before the event existed. An agent on a custom LLM endpoint answers
+ /// whole, with no pieces before the step lands.
+ /// Following a run costs nothing beyond the run: the stream is not
+ /// metered, and its read load is a few small queries per second per
+ /// subscriber, a little more while the answer is being written.
/// ## The stream is expected to reconnect
/// **The server closes the connection after 4 minutes whether or not the
/// run has settled**, so a long run spans several connections. Only
@@ -60,14 +92,16 @@ partial void ProcessStreamEventsResponse( /// response opens with `retry: 2000`, so a browser `EventSource`
/// reconnects on its own; a hand-rolled client must do the same.
/// Resume with the standard `Last-Event-ID` header. Step events carry
- /// their `seq` as the event id, so a reconnect continues exactly where it
- /// left off; status events carry no id, and an absent or unparseable
- /// `Last-Event-ID` replays the journal from the beginning rather than
- /// skipping it. On every connection, including a resume, the server emits
- /// one `run.status.changed` carrying the run's current status before it
- /// starts tailing. A `: keepalive` comment arrives every 15 seconds so an
- /// intermediary does not time the connection out while the agent is
- /// thinking.
+ /// their `seq` as the event id; reply pieces carry the seq of the last
+ /// step plus the position reached in the text being written, so a
+ /// reconnect continues exactly where it left off and never replays text
+ /// the client already rendered. Status events carry no id, and an absent
+ /// or unparseable `Last-Event-ID` replays the journal from the beginning
+ /// rather than skipping it. On every connection, including a resume, the
+ /// server emits one `run.status.changed` carrying the run's current
+ /// status before it starts tailing. A `: keepalive` comment arrives every
+ /// 15 seconds so an intermediary does not time the connection out while
+ /// the agent is thinking.
/// Same read access as List Run Steps, and the same
/// `402 durable_runs_not_in_plan` on a workspace without the grant. ///
diff --git a/src/libs/Speechify/Generated/Speechify.Teams.JsonSerializerContext.g.cs b/src/libs/Speechify/Generated/Speechify.Teams.JsonSerializerContext.g.cs index f606081..6a47031 100644 --- a/src/libs/Speechify/Generated/Speechify.Teams.JsonSerializerContext.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Teams.JsonSerializerContext.g.cs @@ -28,6 +28,9 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.FileKind), TypeInfoPropertyName = "FileKind2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.FileSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.File))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStatus), TypeInfoPropertyName = "AgentRunStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunInputDelegationTargetsItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunInput))] @@ -45,6 +48,7 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PendingActionDefaultDecision), TypeInfoPropertyName = "PendingActionDefaultDecision2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PendingAction))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRun))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ListAgentRunsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.TeamMember))] @@ -62,6 +66,7 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ErrorCode?), TypeInfoPropertyName = "NullableErrorCode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.FileKind?), TypeInfoPropertyName = "NullableFileKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStatus?), TypeInfoPropertyName = "NullableAgentRunStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunIncompleteReason?), TypeInfoPropertyName = "NullableAgentRunIncompleteReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PendingActionDefaultDecision?), TypeInfoPropertyName = "NullablePendingActionDefaultDecision2")] @@ -70,6 +75,7 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -144,6 +150,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Speechify.ErrorCode?) + || typeToConvert == typeof(global::Speechify.FileKind) + + || typeToConvert == typeof(global::Speechify.FileKind?) + || typeToConvert == typeof(global::Speechify.AgentRunStatus) || typeToConvert == typeof(global::Speechify.AgentRunStatus?) @@ -171,6 +181,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Speechify.JsonConverters.ErrorCodeNullableJsonConverter(); } + if (typeToConvert == typeof(global::Speechify.FileKind)) + { + return new global::Speechify.JsonConverters.FileKindJsonConverter(); + } + + if (typeToConvert == typeof(global::Speechify.FileKind?)) + { + return new global::Speechify.JsonConverters.FileKindNullableJsonConverter(); + } + if (typeToConvert == typeof(global::Speechify.AgentRunStatus)) { return new global::Speechify.JsonConverters.AgentRunStatusJsonConverter(); diff --git a/src/libs/Speechify/openapi.yaml b/src/libs/Speechify/openapi.yaml index 886e282..005881a 100644 --- a/src/libs/Speechify/openapi.yaml +++ b/src/libs/Speechify/openapi.yaml @@ -1 +1 @@ -{"openapi":"3.1.0","info":{"title":"API Reference","version":"1.0.0"},"paths":{"/v1/audio/speech":{"post":{"operationId":"audio_speech","summary":"Create Speech","description":"Synthesize speech audio from text or SSML. Returns the complete audio\nfile plus billing and speech-mark metadata in a single JSON response.\nFor low-latency playback or long-form text, use POST /v1/audio/stream.\nSet `output_format` for explicit sample-rate/bitrate control (e.g.\n`pcm_16000` or `ulaw_8000` for telephony).","tags":["audio"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Synthesized speech audio for the requested input.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSpeechResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace has insufficient credits, or the request needs a\nplan tier the workspace is not on (e.g. voice cloning). Distinct\nfrom `Forbidden` so SDK consumers can drive upgrade UX.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A downstream dependency is degraded or the endpoint is\nintentionally disabled (e.g. phone-number purchase before\nops setup).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSpeechRequest"}}}}}},"/v1/audio/stream":{"post":{"operationId":"audio_stream","summary":"Stream Speech","description":"Synthesize speech and stream the audio back as it is generated, for\nlow-latency playback. Set `output_format` in the body for explicit\ncodec/sample-rate/bitrate control (e.g. `pcm_16000` or `ulaw_8000` for\ntelephony), or fall back to the Accept header for the container; the\nresponse is raw audio bytes (HTTP chunked). For Base64-encoded audio\nwith speech-mark metadata in a single JSON response, use\nPOST /v1/audio/speech.","tags":["audio"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}},{"name":"Accept","in":"header","description":"Selects the audio container/codec for the streamed response when\n`output_format` is not set in the request body. The response\nContent-Type echoes this value, except `audio/pcm` returns\n`audio/L16` with rate and channels parameters (raw 16-bit linear\nPCM, 24 kHz mono, little-endian). For explicit sample-rate/bitrate\ncontrol (e.g. `pcm_16000`, `ulaw_8000`), set `output_format` in the\nbody instead; it takes precedence over this header.","required":false,"schema":{"$ref":"#/components/schemas/V1AudioStreamPostParametersAccept"}}],"responses":{"200":{"description":"Streamed audio. When `output_format` is set it selects the\ncodec/sample rate; otherwise the Accept header does. The\nContent-Type reflects the selected format: it matches the Accept\nheader, except raw PCM returns `audio/L16` (with rate and channels\nparameters) and u-law returns `audio/basic`.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace has insufficient credits, or the request needs a\nplan tier the workspace is not on (e.g. voice cloning). Distinct\nfrom `Forbidden` so SDK consumers can drive upgrade UX.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A downstream dependency is degraded or the endpoint is\nintentionally disabled (e.g. phone-number purchase before\nops setup).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetStreamRequest"}}}}}},"/v1/audio/stream/with-timestamps":{"post":{"operationId":"audio_streamWithTimestamps","summary":"Stream Speech With Timestamps","description":"Synthesize speech and stream it back together with word-level speech\nmarks, for text highlighting, captions and audio-text synchronization\nwhile the audio is still arriving.\n\nThe response is a Server-Sent Events stream. Each `speech.chunk` event\ncarries a Base64-encoded run of audio, the speech marks that became\nfinal with it, or both - a chunk may carry only one of the two, and the\nlast chunk of a stream is often marks-only. A terminal `speech.done`\nevent ends the stream; there is no `[DONE]` sentinel. Ignore any event\ntype you do not recognize, so that new event types do not break your\nintegration.\n\nSpeech-mark times are absolute milliseconds from the start of the\nsynthesis, so concatenate the audio chunks into one stream and apply the\nmarks against that single timeline. Which chunk a mark arrives on is a\ndelivery detail and carries no meaning. Times stay correct for every\n`output_format`: changing the codec or sample rate does not change the\nduration.\n\nSpeech marks are produced by the streaming-native models. The default\n`simba-3.0` and `simba-3.2` both serve this route. The legacy\n`simba-english` and `simba-multilingual` models never could: on a\nworkspace pinned before API version `2026-09-21` they return 400\n`speech_marks_unsupported` here, and from that version on they return\n400 `model_retired` on every synthesis route. Both are switched off\nentirely on 2026-11-21.\nFor Base64-encoded audio and speech marks in one non-streamed JSON\nresponse, on any model, use POST /v1/audio/speech.","tags":["audio"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}},{"name":"Accept","in":"header","description":"Selects the audio container/codec carried inside the events when\n`output_format` is not set in the request body. The selected media\ntype is echoed on the `Speechify-Audio-Content-Type` response\nheader, since the response's own Content-Type is `text/event-stream`.","required":false,"schema":{"$ref":"#/components/schemas/V1AudioStreamWithTimestampsPostParametersAccept"}}],"responses":{"200":{"description":"A Server-Sent Events stream of `speech.chunk` events followed by one\nterminal `speech.done` event. A failure after the stream has started\nis delivered as a `speech.error` event carrying the standard error\nenvelope, because the status code is already committed.\n\nThe transport is `text/event-stream`: each event is an\n`event:`/`data:` pair whose `data` is one JSON payload matching the\nschema below. The payload's `type` field mirrors the `event:` name,\nso the stream is also parseable from `data:` lines alone. Ignore\nevent types you do not recognize.","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/SpeechStreamEvent"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace has insufficient credits, or the request needs a\nplan tier the workspace is not on (e.g. voice cloning). Distinct\nfrom `Forbidden` so SDK consumers can drive upgrade UX.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A downstream dependency is degraded or the endpoint is\nintentionally disabled (e.g. phone-number purchase before\nops setup).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetStreamRequest"}}}}}},"/v1/voices":{"get":{"operationId":"voices_list","summary":"List Voices","description":"Lists the voices available to the caller - the shared voice\ncatalog plus the cloned voices they can reach, whichever member or\nservice-account key created them. A clone filed under a project is\nlisted only for a caller who can reach that project; a clone no\nproject filed is shared with the whole workspace and is listed for\neveryone in it. By default\nthe full catalogue is returned in one response. Pagination is\nopt-in: pass `limit` (and then `cursor` from the previous\nresponse) to page through the list while `has_more` is true. Max\npage size is 200. Narrow the list with the `type` and `locale`\nfilters.\n\nA page can come back with fewer than `limit` voices, and a short\npage - an empty one included - is not the end of the list. Keep\nfollowing `next_cursor` while `has_more` is true.","tags":["voices"],"parameters":[{"name":"cursor","in":"query","description":"Opaque pagination cursor from a previous response.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max items per page (default 50, max 200).","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"type","in":"query","description":"Filter by voice type: `personal` (the workspace's cloned voices)\nor `shared` (the public catalogue). Omit to return both.","required":false,"schema":{"$ref":"#/components/schemas/V1VoicesGetParametersType"}},{"name":"locale","in":"query","description":"Filter to voices whose locale matches this BCP-47 language range,\nprefix-matched: `en` matches `en-US` and `en-GB`; `en-US` matches\nonly `en-US`. Case-insensitive. Omit to return all locales.","required":false,"schema":{"type":"string"}},{"name":"gender","in":"query","description":"Filter by voice gender. Omit to return all genders.","required":false,"schema":{"$ref":"#/components/schemas/V1VoicesGetParametersGender"}},{"name":"model","in":"query","description":"Filter to voices that support this model (as listed in each voice's\n`models[]`), e.g. `simba-3.2`. Omit to return voices for all models.","required":false,"schema":{"type":"string"}},{"name":"project_id","in":"query","description":"Filter cloned voices by workspace project: omit for every voice you\ncan reach, pass the literal `shared` for the clones no project\nfiled, or a `proj_...` id for the clones filed under that project.\nThe shared catalog carries no project and is returned either way.\n\nA clone is filed under a project when a project-pinned key created\nit. A clone with no project is shared with the whole workspace\nrather than sitting in a Default project, so the literal here is\n`shared`, never `default` - passing `default` is a 400. Returns 404\nproject_not_found for a malformed id and for any project outside\nyour reach: a project-pinned key reaches only its pinned project,\nand a member holding project grants reaches only the granted ones.\nThat 404 is the same in every case and does not reveal whether such\na project exists. `shared` is always inside your reach.\n","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The voice catalogue (or a page of it when `limit` is set).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListVoicesResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"voices_create","summary":"Create Voice","description":"Create a cloned voice for the workspace from a 10-30 second audio sample, with verified consent from the speaker.\n\nCloning requires proof that the speaker agreed to it. Create a consent challenge with `POST /v1/voices/consent-challenges`, show the returned `phrase` to the speaker, record them reading it aloud, and send that recording here as `consent_recording` together with the challenge's `consent_challenge_id`. Speechify transcribes the recording, checks it against the phrase it issued, checks that its speaker is the speaker in your `sample`, and keeps it as the consent record for the voice. The person consenting therefore has to be the person being cloned. A challenge is single use and short-lived, so record and submit in one sitting.\n\nThe clone belongs to the workspace rather than the member who created it, and access follows the caller's workspace role and API-key scopes exactly as for any other voice: voices scopes to list it, audio scopes to synthesize with it, and the content-management permission plus a write scope on the key to delete it. Cloned voices are usable self-serve on `simba-3.0` (and, on a workspace pinned before API version `2026-09-21`, on the retired `simba-english` and `simba-multilingual` until they are switched off on 2026-11-21). `simba-3.2` also serves cloned voices.\n\nCallers pinned before `Speechify-Version: 2026-09-13` use the previous flow instead: no challenge, and a `consent` form field carrying the speaker's name and email as a JSON string. That flow is deprecated and will be removed after a sunset window announced in the changelog.","tags":["voices"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"A client-generated key (an opaque string, max 255 chars) that makes a\nside-effect POST safe to retry: the server runs the operation exactly\nonce and replays the first response (its status and body) for 24 hours.\nReusing a key with a different request body, or while the first request\nis still in flight, returns `409 idempotency_conflict`. A replayed\nresponse carries the `Idempotent-Replayed: true` header.\n","required":false,"schema":{"type":"string","maxLength":255}}],"responses":{"201":{"description":"A created voice","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetVoice"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace has insufficient credits, or the request needs a\nplan tier the workspace is not on (e.g. voice cloning). Distinct\nfrom `Forbidden` so SDK consumers can drive upgrade UX.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeded a per-endpoint size limit (e.g. the file\nupload cap, KB document upload cap, batch-call CSV cap).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request was well-formed but semantically rejected -\ntypically a referential integrity violation (e.g. flow node\nreferences an audio asset in another workspace) or a state\nmachine refusal.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A downstream dependency is degraded or the endpoint is\nintentionally disabled (e.g. phone-number purchase before\nops setup).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Name of the personal voice"},"locale":{"type":"string","default":"en-US","description":"Native language (locale) of the personal voice (e.g. en-US, es-ES, etc.)"},"gender":{"$ref":"#/components/schemas/V1VoicesPostRequestBodyContentMultipartFormDataSchemaGender","description":"Gender marker for the personal voice\nmale GenderMale\nfemale GenderFemale\nnot_specified GenderNotSpecified"},"sample":{"type":"string","format":"binary","description":"Audio sample of the voice to clone, 10-30 seconds of clean speech."},"avatar":{"type":"string","format":"binary","description":"Avatar image file"},"consent_challenge_id":{"type":"string","description":"The `id` of the consent challenge this create consumes, from\n`POST /v1/voices/consent-challenges`. Single use: once a\ncreate has consumed it, whether or not that create\nsucceeded, it cannot be used again."},"consent_recording":{"type":"string","format":"binary","description":"Recording of the speaker reading the challenge's `phrase`\naloud. This is the consent record for the voice, not a\nsecond voice sample: it must be the same person as in\n`sample`, and it is retained as evidence. 5-30 seconds, at\nmost 25 MB, in any common audio container."}},"required":["name","gender","sample","consent_challenge_id","consent_recording"]}}}}}},"/v1/voices/consent-challenges":{"post":{"operationId":"consentChallenges_create","summary":"Create Consent Challenge","description":"Start the consent check for a voice clone.\n\nReturns a `phrase` for the speaker to read aloud and an `id` that identifies this challenge. Show the phrase to the speaker exactly as returned, record them reading it, then send the recording and the `id` to `POST /v1/voices`, which verifies the recording against the phrase and against the voice sample being cloned, then keeps it as the consent record.\n\nA challenge is single use, is bound to the workspace that created it, and expires at `expires_at` - it is proof that a speaker was in front of a microphone just now, so create it when you are ready to record, not at the start of your flow. If it expires, create another one and record again.\n\nChallenge creation is rate limited per workspace at a few dozen per hour, far more tightly than the rest of the voice surface, because each one precedes a person recording themselves - mint it when your speaker is ready, not speculatively. Read the live ceiling off `RateLimit-*` rather than hard-coding it. **On a `429`, always honour `Retry-After` rather than a fixed backoff of your own**: the wait is measured in minutes and can run to most of an hour. `RateLimit-*` are omitted rather than reporting a bucket that is not the one refusing.","tags":["consentChallenges"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"A client-generated key (an opaque string, max 255 chars) that makes a\nside-effect POST safe to retry: the server runs the operation exactly\nonce and replays the first response (its status and body) for 24 hours.\nReusing a key with a different request body, or while the first request\nis still in flight, returns `409 idempotency_conflict`. A replayed\nresponse carries the `Idempotent-Replayed: true` header.\n","required":false,"schema":{"type":"string","maxLength":255}}],"responses":{"201":{"description":"The created consent challenge.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentChallenge"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace has insufficient credits, or the request needs a\nplan tier the workspace is not on (e.g. voice cloning). Distinct\nfrom `Forbidden` so SDK consumers can drive upgrade UX.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A downstream dependency is degraded or the endpoint is\nintentionally disabled (e.g. phone-number purchase before\nops setup).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConsentChallengeRequest"}}}}}},"/v1/voices/{voice_id}":{"get":{"operationId":"voices_get","summary":"Get Voice","description":"Fetch a single voice by id - a shared catalogue voice or one of\nthe workspace's cloned voices. A cloned voice that belongs to\nanother workspace returns 404, identical to an unknown id, so\nvoice inventory is never enumerable across tenants.","tags":["voices"],"parameters":[{"name":"voice_id","in":"path","description":"The ID of the voice to fetch","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The voice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetVoice"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A downstream dependency is degraded or the endpoint is\nintentionally disabled (e.g. phone-number purchase before\nops setup).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"voices_delete","summary":"Delete Voice","description":"Delete one of the workspace's cloned voices. Requires the\n`content.manage` permission (owner, admin, or member); a\nservice-account key is authorized by its scopes instead.","tags":["voices"],"parameters":[{"name":"voice_id","in":"path","description":"The ID of the voice to delete","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"204":{"description":"Voice deleted successfully","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A downstream dependency is degraded or the endpoint is\nintentionally disabled (e.g. phone-number purchase before\nops setup).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/voices/{voice_id}/sample":{"get":{"operationId":"voices_downloadSample","summary":"Download Voice Sample","description":"Download a personal (cloned) voice sample","tags":["voices"],"parameters":[{"name":"voice_id","in":"path","description":"The ID of the voice to download sample for","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Voice sample audio file","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A downstream dependency is degraded or the endpoint is\nintentionally disabled (e.g. phone-number purchase before\nops setup).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/audio/models":{"get":{"operationId":"models_list","summary":"List Models","description":"List the text-to-speech models available for synthesis. Drive a model\npicker from this response, then pass a model `id` as the `model`\nparameter to POST /v1/audio/speech or /v1/audio/stream. The response\nmarks the default model (used when a request omits `model`), the\nroutes each model may be passed to, and which voices it accepts.\nMulti-speaker models arrive in a separate `dialogue_models` array\nbecause they are valid only on POST /v1/audio/dialogue. Returns\nthe full set in a single response: the model catalog is static\nplatform reference data, so it is intentionally not paginated.","tags":["models"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The available text-to-speech models.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelsResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/audio/watermark/detect":{"post":{"operationId":"watermark_detect","summary":"Detect Watermark","description":"Check whether a clip carries the watermark Speechify seals into audio it\ngenerates. Upload the audio as `audio`; nothing about it is stored, and\nno voice is read or written.\n\nRead the answer carefully in one direction. A `watermarked: true` is\npositive evidence that the audio came from Speechify synthesis. A\n`watermarked: false` is NOT proof that it did not: only models\nredeployed since the watermark shipped mark their output, the detector\nneeds at least three seconds of clear speech to judge, and re-encoding\nor changing the speed of a clip degrades the mark. Treat a negative as\nthe absence of evidence rather than as evidence of absence.\n\nChecks are rate-limited well below the synthesis budget: this is a\nforensic question, not a data-plane call.","tags":["watermark"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The clip was checked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatermarkDetectionResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeded a per-endpoint size limit (e.g. the file\nupload cap, KB document upload cap, batch-call CSV cap).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request was well-formed but semantically rejected -\ntypically a referential integrity violation (e.g. flow node\nreferences an audio asset in another workspace) or a state\nmachine refusal.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"audio":{"type":"string","format":"binary","description":"The clip to check, at most 25MB. Give the detector at least\nthree seconds of clear speech; below that its confidence is\nnot worth acting on, and below half a second it always\nreports zero."}},"required":["audio"]}}}}}},"/v1/audio/watermark/verify":{"post":{"operationId":"watermark_verify","summary":"Verify Watermark","description":"The public AI detection tool. Ask whether a clip carries the watermark\nSpeechify seals into audio it generates, with no account, no API key and\nno credential of any kind.\n\n`verify` answers; `detect` measures. This route returns a bare yes or no,\nthe way verifying a signature does. Its sibling\n`POST /v1/audio/watermark/detect` takes an API key and returns the\ndetector's confidence alongside the verdict.\n\nThis is the programmatic half of the tool published at\n, and it exists so the tool can be invoked\nwithout visiting our website, as California's AI Transparency Act\n(BPC 22757.2) requires. Nothing about the clip is stored, and nothing\nidentifying about you is collected or retained.\n\nThe answer is a bare verdict. `watermarked: true` is positive evidence\nthat the audio came from Speechify synthesis. `watermarked: false` is\nNOT proof that it did not: only models redeployed since the watermark\nshipped mark their output, the detector needs at least three seconds of\nclear speech to judge, and re-encoding or changing the speed of a clip\ndegrades the mark. Treat a negative as the absence of evidence rather\nthan as evidence of absence.\n\nBecause the tool takes no credential, it is rate-limited per client\naddress and shares a platform-wide budget: expect a 429 under sustained\nautomated use, and retry after the interval the response advertises.\nUse `POST /v1/audio/watermark/detect` with an API key for the detector's\nconfidence score and a per-workspace allowance of its own.","tags":["watermark"],"parameters":[{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The clip was checked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatermarkVerificationResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeded a per-endpoint size limit (e.g. the file\nupload cap, KB document upload cap, batch-call CSV cap).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request was well-formed but semantically rejected -\ntypically a referential integrity violation (e.g. flow node\nreferences an audio asset in another workspace) or a state\nmachine refusal.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"audio":{"type":"string","format":"binary","description":"The clip to check, at most 25MB. Give the detector at least\nthree seconds of clear speech; below that its answer is not\nworth acting on."}},"required":["audio"]}}}}}},"/v1/agents":{"get":{"operationId":"agent_list","summary":"List Agents","description":"List voice agents owned by the caller. Cursor-paginated: omit\n`cursor` for the first page; walk pages while `has_more` is true\n(default page size 50, max 200).","tags":["agent"],"parameters":[{"name":"cursor","in":"query","description":"Opaque pagination cursor from a previous response.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max items per page (default 50, max 200).","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"project_id","in":"query","description":"Filter by workspace project: omit for every project you can reach,\npass the literal `default` for resources in the implicit Default\nproject only, or a `proj_...` id for that project's resources.\nReturns 404 project_not_found for a malformed id and for any filter\noutside your reach: a project-pinned API key or service-account key\nreaches only its pinned project, and a member holding project grants\nreaches only the granted projects, so neither can name `default`.\nThat 404 is the same in every case and does not reveal whether such\na project exists - outside your reach a project is answered as\nnonexistent, never as forbidden. Inside it, a well-formed id that\nmatches no project yields an empty page.\n","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"A list of voice agents.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAgentsResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"agent_create","summary":"Create Agent","description":"Create a voice agent.\n\nThe agent lands in the project named by `project_id`, or in the\nimplicit Default project when none is given. Each project holds at\nmost a fixed number of live agents; a create past that answers\n`409 agent_limit_reached` naming the ceiling, and deleting an agent\nin that project - or creating this one in another - frees a slot.\n","tags":["agent"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"201":{"description":"The created agent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAgentRequest"}}}}}},"/v1/agents/voices":{"get":{"operationId":"agent_listAgentVoices","summary":"List Agent Voices","description":"List the voice catalogue available for voice agents: the curated\nshared catalogue plus your workspace's own cloned voices, each\nmarked by `type` (`shared` or `personal`). The same slug set is\naccepted by POST/PATCH /v1/agents, so any voice listed here can be\nassigned to an agent. Cloned voices are workspace-owned only - a\npersonal voice scoped to an individual is not selectable on an\nagent, which is a workspace-shared resource. The JSON layout\nintentionally mirrors the TTS `/v1/voices` shape so a single voice\npicker can consume both endpoints.\n\nCursor-paginated: pass `cursor` + `limit` and walk pages while\n`has_more` is true. From API version `2026-08-07` an omitted `limit`\nreturns the first page (default 50, max 200); a caller pinned before\nthat date keeps the historical whole-catalogue response until it opts\nin. The shared catalogue is served first, then your cloned voices.\n","tags":["agent"],"parameters":[{"name":"cursor","in":"query","description":"Opaque pagination cursor from a previous response.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max items per page (default 50, max 200).","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The curated agent voice catalogue.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAgentVoicesResponse"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/tts-models":{"get":{"operationId":"agent_listTTSModels","summary":"List Agent TTS Models","description":"List the Simba text-to-speech models a voice agent can be pinned to\nwith `tts.model`.\n\nThe response is the whole catalog and is the same for every\nworkspace - which model serves an agent is a routing decision, not\nan entitlement, so nothing here is plan-gated. Whether a *particular*\nagent may select an entry depends on two facts this response\npublishes rather than resolving for you, because both change without\nthis list changing:\n\n- `english_only` - the model has no multilingual deployment, so an\n agent that declares `additional_languages` (or whose `language` is\n not English) cannot select it.\n- `requires_voice_curation` - deprecated and always false. No model\n asks a voice for a registration: every training conditions on the\n voice's own prompt audio, so every model is selectable on every\n voice we speak ourselves, cloned voices included.\n\nDrive a model picker from this and the agent's languages and it can\nonly offer combinations POST/PATCH /v1/agents will accept.\nReturns the full set in one response: bounded by the platform's\ncurated model catalog, so it is intentionally not paginated.\n","tags":["agent"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The TTS models selectable for voice agents.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTTSModelsResponse"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{agent_id}":{"delete":{"operationId":"agent_delete","summary":"Delete Agent","description":"Delete an agent, and with it everything that belonged only to that\nagent.\n\n**Goes with the agent**, immediately unreadable through every\nendpoint: its runs and their step journals and approvals, its\nconversations and the transcripts, messages and recordings inside\nthem, what it learned about the people it spoke to, its triggers,\nshare links, channel bindings, team memberships and the batch\ncampaigns it dialled. A run that has not settled is asked to stop,\nincluding one parked waiting on a person or on a delegated child. These are removed for good 30 days\nlater; until then the delete can still be walked back by support.\n\n**Survives the agent**, because it belongs to the workspace rather\nthan to this agent: attached tools, knowledge bases, stores and\nskills (only the attachment is dropped), the agent's tests, phone\nnumbers, and the teams it belonged to.\n\n**Kept regardless**, because it is accounting rather than content:\nthe usage the workspace was billed for.\n\nRefused with `409 agent_in_use` while a live phone number still\nroutes to the agent, including the agent a webhook binding\nprovisioned for its number; `used_by` names the numbers. Unbind them\n(`DELETE /v1/agents/{agent_id}/phone-numbers/{phone_number_id}`,\nwhich also clears a webhook binding) and the delete proceeds.\n","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Agent id (prefixed external id, `agent_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"204":{"description":"Agent deleted.","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"A live phone number still routes to the agent. `used_by` names\nthem so the caller can unbind first.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentInUseError"}}}}}},"get":{"operationId":"agent_get","summary":"Get Agent","description":"Retrieve a voice agent by ID.","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Agent id (prefixed external id, `agent_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The requested agent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"agent_update","summary":"Update Agent","description":"Update a voice agent. Only fields present on the request body are changed.","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Agent id (prefixed external id, `agent_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The updated agent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAgentRequest"}}}}}},"/v1/agents/{agent_id}/widget-config":{"get":{"operationId":"agent_getWidgetConfig","summary":"Get Agent Widget Config","description":"Return the embed-widget appearance config for an agent. Works\nunauthenticated for public agents; the body is cosmetic only.\n","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Prefixed agent id.","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The agent's widget configuration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetConfig"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/flow/schema":{"get":{"operationId":"flow_getSchema","summary":"Get Flow Graph Schema","description":"Return the JSON Schema describing the flow graph node taxonomy.\nUnauthenticated; flow editors fetch it to validate graphs client-side.\n","tags":["flow"],"parameters":[{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"A JSON Schema document for the flow graph.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/agent_flow_getSchema_Response_200"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{agent_id}/flow":{"get":{"operationId":"flow_getFlow","summary":"Get Agent Flow","description":"Return the agent's flow graph: the current draft (if any), the\nactive published graph (if any), and the version history.\n","tags":["flow"],"parameters":[{"name":"agent_id","in":"path","description":"Prefixed agent id.","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The draft graph, active graph, and version history.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetFlowResponse"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"flow_updateFlow","summary":"Update Agent Flow Draft","description":"Replace the agent's draft flow graph. The graph is validated\nbefore it is stored; publish it separately to make it active.\n","tags":["flow"],"parameters":[{"name":"agent_id","in":"path","description":"Prefixed agent id.","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The stored draft graph.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowGraph"}}}},"400":{"description":"Flow validation failed (or the request body was undecodable). The\nstandard `Error` envelope plus an `issues` array locating each problem\nfor the editor. See the `FlowValidationError` schema.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowValidationError"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutFlowRequest"}}}}}},"/v1/agents/{agent_id}/flow/publish":{"post":{"operationId":"flow_publish","summary":"Publish Agent Flow","description":"Publish the agent's draft graph as a new active flow version.","tags":["flow"],"parameters":[{"name":"agent_id","in":"path","description":"Prefixed agent id.","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The newly published flow version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowVersion"}}}},"400":{"description":"Flow validation failed (or the request body was undecodable). The\nstandard `Error` envelope plus an `issues` array locating each problem\nfor the editor. See the `FlowValidationError` schema.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowValidationError"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The behavioral-eval publish gate refused the publish, on one of two\ncodes the caller can FIX (neither is waited out):\n\n- `agent_publish_gate_failed`: the agent's configured suite did not\n pass. `error.details` carries the verdict (per-case, per-criterion).\n- `agent_publish_gate_tool_unreachable`: the checks never ran because\n a tool the agent is attached to could not be reached. Nothing was\n judged, and no retry helps while the endpoint is down;\n `error.message` names the tool, the endpoint and the reason.\n\nThe one publish failure that IS waited out is the `503`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The publish checks could not run (`agent_publish_gate_unavailable`):\nthe eval worker, the judge or the probe corpus errored, so nothing\nabout the agent was judged. This is OURS, and the only publish failure\na caller waits out: not a verdict on the configuration, retry after\n`Retry-After`. `error.details` lists the cases that could not run. A\ncheck that could not run because of the agent's own configuration is\nthe `422 agent_publish_gate_tool_unreachable` instead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishFlowRequest"}}}}}},"/v1/agents/{agent_id}/flow/rollback":{"post":{"operationId":"flow_rollback","summary":"Roll Back Agent Flow","description":"Publish a prior flow version as the active graph.","tags":["flow"],"parameters":[{"name":"agent_id","in":"path","description":"Prefixed agent id.","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The flow version that is now active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowVersion"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The behavioral-eval publish gate refused the rollback, on one of two\ncodes the caller can FIX (neither is waited out):\n\n- `agent_publish_gate_failed`: the target version did not pass the\n agent's configured suite. `error.details` carries the verdict.\n- `agent_publish_gate_tool_unreachable`: the checks never ran because\n a tool the agent is attached to could not be reached;\n `error.message` names the tool, the endpoint and the reason.\n\nThe one rollback failure that IS waited out is the `503`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The gate's checks could not run on the rollback target\n(`agent_publish_gate_unavailable`): the eval worker, the judge or\nthe probe corpus errored, so nothing about the version was judged.\nThis is OURS, and the only rollback failure a caller waits out: not a\nverdict on it, retry after `Retry-After`. `error.details` lists the\ncases that could not run. A check that could not run because of the\nagent's own configuration is the `422\nagent_publish_gate_tool_unreachable` instead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RollbackFlowRequest"}}}}}},"/v1/agents/{agent_id}/flow/deactivate":{"post":{"operationId":"flow_deactivate","summary":"Deactivate Agent Flow","description":"Deactivate the agent's published flow so the agent runs the synthesized default flow.","tags":["flow"],"parameters":[{"name":"agent_id","in":"path","description":"Prefixed agent id.","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"204":{"description":"Flow deactivated.","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{agent_id}/flow/draft":{"delete":{"operationId":"flow_discardDraft","summary":"Discard Agent Flow Draft","description":"Discard the agent's unpublished draft flow graph.","tags":["flow"],"parameters":[{"name":"agent_id","in":"path","description":"Prefixed agent id.","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"204":{"description":"Draft discarded.","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{agent_id}/flow/versions":{"get":{"operationId":"flow_listVersions","summary":"List Agent Flow Versions","description":"List every published flow version for the agent, newest first.\nCursor-paginated: omit `cursor` for the first page; walk pages\nwhile `has_more` is true (default page size 50, max 200).","tags":["flow"],"parameters":[{"name":"agent_id","in":"path","description":"Prefixed agent id.","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"Opaque pagination cursor from a previous response.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max items per page (default 50, max 200).","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The agent's flow version history.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListFlowVersionsResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{agent_id}/flow/versions/{version_id}":{"get":{"operationId":"flow_getVersion","summary":"Get Agent Flow Version","description":"Return the full flow graph for a specific published version.","tags":["flow"],"parameters":[{"name":"agent_id","in":"path","description":"Prefixed agent id.","required":true,"schema":{"type":"string"}},{"name":"version_id","in":"path","description":"Prefixed flow version id (`fver_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The requested flow version's graph.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowGraph"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/flow/templates":{"get":{"operationId":"flow_listTemplates","summary":"List Flow Templates","description":"List the reusable flow templates available to the workspace.\nCursor-paginated: omit `cursor` for the first page; walk pages\nwhile `has_more` is true (default page size 50, max 200).","tags":["flow"],"parameters":[{"name":"cursor","in":"query","description":"Opaque pagination cursor from a previous response.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max items per page (default 50, max 200).","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The available flow templates.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListFlowTemplatesResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"flow_createTemplate","summary":"Create Flow Template","description":"Create a reusable flow template from a graph.","tags":["flow"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"201":{"description":"The created flow template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowTemplate"}}}},"400":{"description":"Flow validation failed (or the request body was undecodable). The\nstandard `Error` envelope plus an `issues` array locating each problem\nfor the editor. See the `FlowValidationError` schema.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowValidationError"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFlowTemplateRequest"}}}}}},"/v1/agents/flow/templates/{flow_template_id}":{"get":{"operationId":"flow_getTemplate","summary":"Get Flow Template","description":"Retrieve a flow template by id.","tags":["flow"],"parameters":[{"name":"flow_template_id","in":"path","description":"Flow template id (prefixed external id, `tmpl_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The requested flow template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowTemplate"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"flow_updateTemplate","summary":"Update Flow Template","description":"Replace a flow template. The whole template is replaced, not patched field-by-field.","tags":["flow"],"parameters":[{"name":"flow_template_id","in":"path","description":"Flow template id (prefixed external id, `tmpl_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The updated flow template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowTemplate"}}}},"400":{"description":"Flow validation failed (or the request body was undecodable). The\nstandard `Error` envelope plus an `issues` array locating each problem\nfor the editor. See the `FlowValidationError` schema.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowValidationError"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFlowTemplateRequest"}}}}},"delete":{"operationId":"flow_deleteTemplate","summary":"Delete Flow Template","description":"Delete a flow template.","tags":["flow"],"parameters":[{"name":"flow_template_id","in":"path","description":"Flow template id (prefixed external id, `tmpl_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"204":{"description":"Template deleted.","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/flow/templates/{flow_template_id}/clone":{"post":{"operationId":"flow_cloneTemplate","summary":"Clone Flow Template","description":"Clone a flow template onto an agent as a new draft graph.","tags":["flow"],"parameters":[{"name":"flow_template_id","in":"path","description":"Flow template id (prefixed external id, `tmpl_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The agent's new draft graph.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowGraph"}}}},"400":{"description":"Flow validation failed (or the request body was undecodable). The\nstandard `Error` envelope plus an `issues` array locating each problem\nfor the editor. See the `FlowValidationError` schema.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowValidationError"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneFlowTemplateRequest"}}}}}},"/v1/agents/{agent_id}/evaluation-config":{"get":{"operationId":"agent_getEvaluationConfig","summary":"Get Evaluation Config","description":"Retrieve the agent's post-call evaluation criteria + data-collection config.","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Agent id (prefixed external id, `agent_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The evaluation config for the agent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationConfig"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"agent_updateEvaluationConfig","summary":"Update Evaluation Config","description":"Replace the agent's evaluation criteria + data-collection fields.","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Agent id (prefixed external id, `agent_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The updated evaluation config.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationConfig"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEvaluationConfigRequest"}}}}}},"/v1/agents/{agent_id}/variables":{"get":{"operationId":"agent_getDynamicVariables","summary":"Get Dynamic Variables","description":"Retrieve the agent's customer-scope dynamic variables and the read-only\ncatalogue of reserved `system__*` keys. The system variables list is\nprovided so editor UIs can render the reference list without maintaining\na client-side copy of the catalogue.\n","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Agent id (prefixed external id, `agent_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The agent's variable catalogue.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDynamicVariablesResponse"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"agent_updateDynamicVariables","summary":"Update Dynamic Variables","description":"Replace the agent's customer-scope dynamic variable definitions.\nThe supplied list overwrites the stored list wholesale (same\nsemantics as `updateEvaluationConfig`). Pass an empty array to\nclear all variables. Up to 20 variables per agent. Keys must\nmatch `[a-zA-Z0-9_]+` and must not start with the reserved\n`system__` prefix.\n","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Agent id (prefixed external id, `agent_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The updated variable catalogue.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDynamicVariablesResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDynamicVariablesRequest"}}}}}},"/v1/agents/{agent_id}/conversations":{"post":{"operationId":"agent_createConversation","summary":"Create Conversation","description":"Start a new voice conversation with the agent. Returns a realtime\nvoice session + short-lived client token so the caller can\nconnect the audio pipeline directly. The agent is dispatched\nserver-side; no additional client action required.\n\nPass `dynamic_variables` to supply per-session values that override\nthe agent's stored variable defaults for this one conversation.\nKeys in the `system__` namespace are rejected at this boundary.\n\nPass `user_identity` as the stable caller key your application uses\nfor memory and caller correlation. It is kept separate from the\nopaque, per-session realtime participant identity.\n\n`overrides.voice_id` replaces the configured voice for the entire\nconversation, including every configured language the voice can\nserve. The request is rejected when the voice is unavailable or\ncannot cover the agent's configured language set; the rejection\nnames `overrides.voice_id` in the error envelope's `fields` map.\nThe override belongs to this conversation only: if the call is\ntransferred to another agent mid-conversation, that agent speaks\nwith its own configured voice.\n","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Agent id (prefixed external id, `agent_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"A client-generated key (an opaque string, max 255 chars) that makes a\nside-effect POST safe to retry: the server runs the operation exactly\nonce and replays the first response (its status and body) for 24 hours.\nReusing a key with a different request body, or while the first request\nis still in flight, returns `409 idempotency_conflict`. A replayed\nresponse carries the `Idempotent-Replayed: true` header.\n","required":false,"schema":{"type":"string","maxLength":255}}],"responses":{"201":{"description":"The created conversation with its realtime session token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConversationResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConversationRequest"}}}}}},"/v1/agents/{agent_id}/sessions":{"post":{"operationId":"agent_createSession","summary":"Create Session","description":"Mint a realtime voice session for the given agent. Widget-friendly\ncounterpart to `createConversation` \u2014 same response shape, dual\nauthentication:\n\n* **Authenticated (Bearer)**: works for any agent the caller\n owns. Typical server-to-server flow where the embedding\n site's backend mints a token and hands it to the browser so\n the API key never reaches the client.\n* **Unauthenticated**: works only when `agent.is_public = true`\n AND the request's `Origin` header matches `agent.allowed_origins`\n (or that list is empty). When `agent.hostname_allowlist` is\n non-empty, the `Origin` hostname must additionally be a\n member of that list. Used directly by the\n `` web component.\n\nResponds with the same `CreateConversationResponse` as\n`createConversation`.\n\n`Idempotency-Key` replay is scoped to the authenticated caller, so it\napplies to Bearer requests only: an unauthenticated mint has no scope\nto replay under, and retrying one mints a fresh session.\n","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Agent id (prefixed external id, `agent_...`).","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"A client-generated key (an opaque string, max 255 chars) that makes a\nside-effect POST safe to retry: the server runs the operation exactly\nonce and replays the first response (its status and body) for 24 hours.\nReusing a key with a different request body, or while the first request\nis still in flight, returns `409 idempotency_conflict`. A replayed\nresponse carries the `Idempotent-Replayed: true` header.\n","required":false,"schema":{"type":"string","maxLength":255}}],"responses":{"201":{"description":"The created session with its realtime token + URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConversationResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace has insufficient credits, or the request needs a\nplan tier the workspace is not on (e.g. voice cloning). Distinct\nfrom `Forbidden` so SDK consumers can drive upgrade UX.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSessionRequest"}}}}}},"/v1/agents/conversations":{"get":{"operationId":"conversations_list","summary":"List Conversations","description":"List conversations owned by the caller, ordered by most recent.\nCursor-paginated: omit `cursor` to fetch the first page; pass the\nprevious response's `next_cursor` back to fetch the next page.\nWalk pages while `has_more` is true.\n\n`project_id` matches the project the call was DISPATCHED under, which\nis frozen when the conversation starts. Moving an agent to another\nproject therefore leaves its past calls attributed where they ran, the\nsame way per-project usage reports them.","tags":["conversations"],"parameters":[{"name":"cursor","in":"query","description":"Opaque pagination cursor from a previous response.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max items per page (default 50, max 200).","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"agent_id","in":"query","description":"Filter to conversations for this agent.","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter by conversation status.","required":false,"schema":{"$ref":"#/components/schemas/ConversationStatus"}},{"name":"transport","in":"query","description":"Filter by the runtime that carried the conversation. `phone`\nmatches calls in either direction.\n","required":false,"schema":{"$ref":"#/components/schemas/ConversationTransport"}},{"name":"channel","in":"query","description":"Filter by the front door the conversation arrived through.\nThis is the axis that separates two conversations sharing one\ntransport: `channel=slack` and `channel=text` both run the\n`text` transport. Combining it with `transport` narrows by\nboth.\n","required":false,"schema":{"$ref":"#/components/schemas/ConversationChannel"}},{"name":"live","in":"query","description":"Narrow to (`true`) or away from (`false`) the conversations that\nare a realtime session in progress: non-terminal AND holding a\nroom. A text or Slack thread holds no room, so it is open rather\nthan live however long it stays non-terminal - `status=active`\nalone matches it. This is the filter a live view asks for.\n","required":false,"schema":{"type":"boolean"}},{"name":"caller_identity","in":"query","description":"Filter by caller identity.","required":false,"schema":{"type":"string"}},{"name":"contact_id","in":"query","description":"Narrow to one person's conversations, whichever agent or channel\nreached them. Prefixed `contact_...` id.\n","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","description":"Free-text search across conversation content.","required":false,"schema":{"type":"string"}},{"name":"started_after","in":"query","description":"Only conversations started at or after this RFC 3339 timestamp.","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"started_before","in":"query","description":"Only conversations started at or before this RFC 3339 timestamp.","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"duration_min_ms","in":"query","description":"Minimum conversation duration in milliseconds.","required":false,"schema":{"type":"integer"}},{"name":"duration_max_ms","in":"query","description":"Maximum conversation duration in milliseconds.","required":false,"schema":{"type":"integer"}},{"name":"project_id","in":"query","description":"Filter by workspace project: omit for every project you can reach,\npass the literal `default` for resources in the implicit Default\nproject only, or a `proj_...` id for that project's resources.\nReturns 404 project_not_found for a malformed id and for any filter\noutside your reach: a project-pinned API key or service-account key\nreaches only its pinned project, and a member holding project grants\nreaches only the granted projects, so neither can name `default`.\nThat 404 is the same in every case and does not reveal whether such\na project exists - outside your reach a project is answered as\nnonexistent, never as forbidden. Inside it, a well-formed id that\nmatches no project yields an empty page.\n","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"A list of conversations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListConversationsResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/conversations/{conversation_id}":{"get":{"operationId":"conversations_get","summary":"Get Conversation","description":"Retrieve a conversation by ID.","tags":["conversations"],"parameters":[{"name":"conversation_id","in":"path","description":"Conversation id (prefixed external id, `conv_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The requested conversation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/conversations/recent-callees":{"get":{"operationId":"conversations_recent_callees","summary":"List recent callees","description":"Distinct phone numbers the caller's workspace has dialled on\noutbound calls, ordered by most recent. Feeds the batch-calls\ncomposer's \"Suggested from history\" surface. Cursor-paginated:\nomit `cursor` to fetch the first page. Default page size is 50\nand max is 200. Walk pages while `has_more` is true.\n","tags":["conversations"],"parameters":[{"name":"cursor","in":"query","description":"Opaque pagination cursor from a previous response.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max items per page (default 50, max 200).","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Recent callees for the caller's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListRecentCalleesResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/conversations/stats":{"get":{"operationId":"conversations_stats","summary":"Conversation stats","description":"Aggregated counts and averages over the caller's conversations, scoped\nby the same filters as the list endpoint, `project_id` included.","tags":["conversations"],"parameters":[{"name":"agent_id","in":"query","description":"Filter to conversations for this agent.","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter by conversation status.","required":false,"schema":{"$ref":"#/components/schemas/ConversationStatus"}},{"name":"transport","in":"query","description":"Filter by the runtime that carried the conversation. `phone`\nmatches calls in either direction.\n","required":false,"schema":{"$ref":"#/components/schemas/ConversationTransport"}},{"name":"channel","in":"query","description":"Filter by the front door the conversation arrived through.\nThis is the axis that separates two conversations sharing one\ntransport: `channel=slack` and `channel=text` both run the\n`text` transport. Combining it with `transport` narrows by\nboth.\n","required":false,"schema":{"$ref":"#/components/schemas/ConversationChannel"}},{"name":"live","in":"query","description":"Narrow to (`true`) or away from (`false`) the conversations that\nare a realtime session in progress: non-terminal AND holding a\nroom. A text or Slack thread holds no room, so it is open rather\nthan live however long it stays non-terminal - `status=active`\nalone matches it. This is the filter a live view asks for.\n","required":false,"schema":{"type":"boolean"}},{"name":"caller_identity","in":"query","description":"Filter by caller identity.","required":false,"schema":{"type":"string"}},{"name":"contact_id","in":"query","description":"Narrow to one person's conversations, whichever agent or channel\nreached them. Prefixed `contact_...` id.\n","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","description":"Free-text search across conversation content.","required":false,"schema":{"type":"string"}},{"name":"started_after","in":"query","description":"Only conversations started at or after this RFC 3339 timestamp.","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"started_before","in":"query","description":"Only conversations started at or before this RFC 3339 timestamp.","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"duration_min_ms","in":"query","description":"Minimum conversation duration in milliseconds.","required":false,"schema":{"type":"integer"}},{"name":"duration_max_ms","in":"query","description":"Maximum conversation duration in milliseconds.","required":false,"schema":{"type":"integer"}},{"name":"project_id","in":"query","description":"Filter by workspace project: omit for every project you can reach,\npass the literal `default` for resources in the implicit Default\nproject only, or a `proj_...` id for that project's resources.\nReturns 404 project_not_found for a malformed id and for any filter\noutside your reach: a project-pinned API key or service-account key\nreaches only its pinned project, and a member holding project grants\nreaches only the granted projects, so neither can name `default`.\nThat 404 is the same in every case and does not reveal whether such\na project exists - outside your reach a project is answered as\nnonexistent, never as forbidden. Inside it, a well-formed id that\nmatches no project yields an empty page.\n","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Stats for the matched conversations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationStats"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/conversations/{conversation_id}/messages":{"get":{"operationId":"conversations_listMessages","summary":"List Messages","description":"Retrieve the transcript for a conversation in started_at order\n(oldest first). Cursor-paginated: omit `cursor` to fetch the\nfirst page. Default page size is 50 and max is 200. Walk pages\nwhile `has_more` is true.","tags":["conversations"],"parameters":[{"name":"conversation_id","in":"path","description":"Conversation id (prefixed external id, `conv_...`).","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"Opaque pagination cursor from a previous response.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max items per page (default 50, max 200).","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The messages for the conversation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMessagesResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/conversations/{conversation_id}/recording":{"get":{"operationId":"conversations_streamRecording","summary":"Stream Recording","description":"Proxy the GCS-stored audio recording for a conversation through\nthe Cloud Run service identity. Returns OGG/Opus bytes (LiveKit\nroom-composite egress default). The response is streamed so a\nlong recording does not buffer in memory; `