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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ partial void ProcessListToolCapabilitiesResponseContent(
/// `kind=builtin` tool to an agent). Fetch this at runtime rather<br/>
/// than maintaining a parallel client-side list; the server is the<br/>
/// single source of truth for the label and description text a<br/>
/// customer sees in the capability picker. Returns<br/>
/// customer sees in the capability picker, and for `reach`, where each<br/>
/// one executes in this deployment. Returns<br/>
/// the full set in a single response: bounded by the platform's<br/>
/// built-in tool-capability registry, so this list is intentionally<br/>
/// not paginated.
Expand Down Expand Up @@ -77,7 +78,8 @@ partial void ProcessListToolCapabilitiesResponseContent(
/// `kind=builtin` tool to an agent). Fetch this at runtime rather<br/>
/// than maintaining a parallel client-side list; the server is the<br/>
/// single source of truth for the label and description text a<br/>
/// customer sees in the capability picker. Returns<br/>
/// customer sees in the capability picker, and for `reach`, where each<br/>
/// one executes in this deployment. Returns<br/>
/// the full set in a single response: bounded by the platform's<br/>
/// built-in tool-capability registry, so this list is intentionally<br/>
/// not paginated.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ public partial interface IAgentClient
/// `kind=builtin` tool to an agent). Fetch this at runtime rather<br/>
/// than maintaining a parallel client-side list; the server is the<br/>
/// single source of truth for the label and description text a<br/>
/// customer sees in the capability picker. Returns<br/>
/// customer sees in the capability picker, and for `reach`, where each<br/>
/// one executes in this deployment. Returns<br/>
/// the full set in a single response: bounded by the platform's<br/>
/// built-in tool-capability registry, so this list is intentionally<br/>
/// not paginated.
Expand All @@ -31,7 +32,8 @@ public partial interface IAgentClient
/// `kind=builtin` tool to an agent). Fetch this at runtime rather<br/>
/// than maintaining a parallel client-side list; the server is the<br/>
/// single source of truth for the label and description text a<br/>
/// customer sees in the capability picker. Returns<br/>
/// customer sees in the capability picker, and for `reach`, where each<br/>
/// one executes in this deployment. Returns<br/>
/// the full set in a single response: bounded by the platform's<br/>
/// built-in tool-capability registry, so this list is intentionally<br/>
/// not paginated.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace Speechify.JsonConverters
{
/// <inheritdoc />
public sealed class ProjectMonthlyBudgetStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Speechify.ProjectMonthlyBudgetStatus>
{
/// <inheritdoc />
public override global::Speechify.ProjectMonthlyBudgetStatus 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.ProjectMonthlyBudgetStatusExtensions.ToEnum(stringValue) ?? default;
}

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

return default;
}

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

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

namespace Speechify.JsonConverters
{
/// <inheritdoc />
public sealed class ProjectMonthlyBudgetStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Speechify.ProjectMonthlyBudgetStatus?>
{
/// <inheritdoc />
public override global::Speechify.ProjectMonthlyBudgetStatus? 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.ProjectMonthlyBudgetStatusExtensions.ToEnum(stringValue);
}

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

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Speechify.ProjectMonthlyBudgetStatus? 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.ProjectMonthlyBudgetStatusExtensions.ToValueString(value.Value));
}
}
}
}
20 changes: 18 additions & 2 deletions src/libs/Speechify/Generated/Speechify.JsonSerializerContext.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.WebhookEndpointDelivery))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ListWebhookEndpointDeliveriesResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Speechify.WebhookEndpointDelivery>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ProjectMonthlyBudgetStatus), TypeInfoPropertyName = "ProjectMonthlyBudgetStatus2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.Project))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ListProjectsResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Speechify.Project>))]
Expand Down Expand Up @@ -932,6 +933,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ContactIdentifierAssertedBy?), TypeInfoPropertyName = "NullableContactIdentifierAssertedBy2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AttachContactIdentifierRequestKind?), TypeInfoPropertyName = "NullableAttachContactIdentifierRequestKind2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.BillingEntitlementsMaxLlmModelClass?), TypeInfoPropertyName = "NullableBillingEntitlementsMaxLlmModelClass2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ProjectMonthlyBudgetStatus?), TypeInfoPropertyName = "NullableProjectMonthlyBudgetStatus2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.DeleteProjectRequestMode?), TypeInfoPropertyName = "NullableDeleteProjectRequestMode2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ProjectTeardownBlockerKind?), TypeInfoPropertyName = "NullableProjectTeardownBlockerKind2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ProjectTeardownBlockerBlocksItems?), TypeInfoPropertyName = "NullableProjectTeardownBlockerBlocksItems2")]
Expand Down Expand Up @@ -1024,8 +1026,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Speechify.AgentTestSuiteRun>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Speechify.SuiteChildRun>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Speechify.TestStatsBucket>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Speechify.ShareLink>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Speechify.PhoneNumberCapability>))]
internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext
{
}
Expand All @@ -1038,6 +1038,8 @@ 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::Speechify.ShareLink>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Speechify.PhoneNumberCapability>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Speechify.PhoneNumber>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Speechify.AvailablePhoneNumber>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Speechify.BatchCall>))]
Expand Down Expand Up @@ -1726,6 +1728,10 @@ public override bool CanConvert(global::System.Type typeToConvert)

|| typeToConvert == typeof(global::Speechify.BillingEntitlementsMaxLlmModelClass?)

|| typeToConvert == typeof(global::Speechify.ProjectMonthlyBudgetStatus)

|| typeToConvert == typeof(global::Speechify.ProjectMonthlyBudgetStatus?)

|| typeToConvert == typeof(global::Speechify.DeleteProjectRequestMode)

|| typeToConvert == typeof(global::Speechify.DeleteProjectRequestMode?)
Expand Down Expand Up @@ -3205,6 +3211,16 @@ public override bool CanConvert(global::System.Type typeToConvert)
return new global::Speechify.JsonConverters.BillingEntitlementsMaxLlmModelClassNullableJsonConverter();
}

if (typeToConvert == typeof(global::Speechify.ProjectMonthlyBudgetStatus))
{
return new global::Speechify.JsonConverters.ProjectMonthlyBudgetStatusJsonConverter();
}

if (typeToConvert == typeof(global::Speechify.ProjectMonthlyBudgetStatus?))
{
return new global::Speechify.JsonConverters.ProjectMonthlyBudgetStatusNullableJsonConverter();
}

if (typeToConvert == typeof(global::Speechify.DeleteProjectRequestMode))
{
return new global::Speechify.JsonConverters.DeleteProjectRequestModeJsonConverter();
Expand Down
Loading