diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IOpenRouterClient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IOpenRouterClient.g.cs index b3727b0..5244815 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IOpenRouterClient.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IOpenRouterClient.g.cs @@ -64,6 +64,11 @@ public partial interface IOpenRouterClient : global::System.IDisposable /// public SubpackageBetaResponsesClient SubpackageBetaResponses { get; } + /// + /// + /// + public SubpackageByokClient SubpackageByok { get; } + /// /// /// @@ -104,6 +109,11 @@ public partial interface IOpenRouterClient : global::System.IDisposable /// public SubpackageOAuthClient SubpackageOAuth { get; } + /// + /// + /// + public SubpackageObservabilityClient SubpackageObservability { get; } + /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.GetByokKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.GetByokKey.g.cs new file mode 100644 index 0000000..29fa755 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.GetByokKey.g.cs @@ -0,0 +1,36 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackageByokClient + { + /// + /// Get a BYOK provider credential
+ /// Get a single bring-your-own-key (BYOK) provider credential by its `id`. Defaults to the authenticated entity's default workspace; use the `workspace_id` query parameter to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetByokKeyAsync( + global::System.Guid id, + global::System.Guid? workspaceId = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get a BYOK provider credential
+ /// Get a single bring-your-own-key (BYOK) provider credential by its `id`. Defaults to the authenticated entity's default workspace; use the `workspace_id` query parameter to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> GetByokKeyAsResponseAsync( + global::System.Guid id, + global::System.Guid? workspaceId = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.ListByokKeys.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.ListByokKeys.g.cs new file mode 100644 index 0000000..50acc25 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.ListByokKeys.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackageByokClient + { + /// + /// List BYOK provider credentials
+ /// List the bring-your-own-key (BYOK) provider credentials for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace, or the `provider` query parameter to filter by upstream provider. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// + /// + /// Optional provider slug to filter by (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ListByokKeysAsync( + int? offset = default, + int? limit = default, + global::System.Guid? workspaceId = default, + global::OpenRouter.ByokGetParametersProvider? provider = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List BYOK provider credentials
+ /// List the bring-your-own-key (BYOK) provider credentials for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace, or the `provider` query parameter to filter by upstream provider. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// + /// + /// Optional provider slug to filter by (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> ListByokKeysAsResponseAsync( + int? offset = default, + int? limit = default, + global::System.Guid? workspaceId = default, + global::OpenRouter.ByokGetParametersProvider? provider = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.g.cs new file mode 100644 index 0000000..d6f096a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public partial interface ISubpackageByokClient : global::System.IDisposable + { + /// + /// The HttpClient instance. + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + /// The base URL for the API. + /// + public System.Uri? BaseUri { get; } + + /// + /// The authorizations to use for the requests. + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + /// Gets or sets a value indicating whether the response content should be read as a string. + /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. + /// + public bool ReadResponseAsString { get; set; } + /// + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// + public global::OpenRouter.AutoSDKClientOptions Options { get; } + + + /// + /// + /// + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.GetObservabilityDestination.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.GetObservabilityDestination.g.cs new file mode 100644 index 0000000..01b39d3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.GetObservabilityDestination.g.cs @@ -0,0 +1,36 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackageObservabilityClient + { + /// + /// Get an observability destination
+ /// Fetch a single observability destination by its UUID. Defaults to the authenticated entity's default workspace — use `workspace_id` to override. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetObservabilityDestinationAsync( + global::System.Guid id, + global::System.Guid? workspaceId = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get an observability destination
+ /// Fetch a single observability destination by its UUID. Defaults to the authenticated entity's default workspace — use `workspace_id` to override. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> GetObservabilityDestinationAsResponseAsync( + global::System.Guid id, + global::System.Guid? workspaceId = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.ListObservabilityDestinations.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.ListObservabilityDestinations.g.cs new file mode 100644 index 0000000..eb32ab3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.ListObservabilityDestinations.g.cs @@ -0,0 +1,40 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackageObservabilityClient + { + /// + /// List observability destinations
+ /// List the observability destinations configured for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace. Only destinations with stable release status are surfaced — destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ListObservabilityDestinationsAsync( + int? offset = default, + int? limit = default, + global::System.Guid? workspaceId = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List observability destinations
+ /// List the observability destinations configured for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace. Only destinations with stable release status are surfaced — destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> ListObservabilityDestinationsAsResponseAsync( + int? offset = default, + int? limit = default, + global::System.Guid? workspaceId = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.g.cs new file mode 100644 index 0000000..6ed0283 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public partial interface ISubpackageObservabilityClient : global::System.IDisposable + { + /// + /// The HttpClient instance. + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + /// The base URL for the API. + /// + public System.Uri? BaseUri { get; } + + /// + /// The authorizations to use for the requests. + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + /// Gets or sets a value indicating whether the response content should be read as a string. + /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. + /// + public bool ReadResponseAsString { get; set; } + /// + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// + public global::OpenRouter.AutoSDKClientOptions Options { get; } + + + /// + /// + /// + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ByokGetParametersProvider.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ByokGetParametersProvider.g.cs new file mode 100644 index 0000000..e6054c7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ByokGetParametersProvider.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ByokGetParametersProviderJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ByokGetParametersProvider 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::OpenRouter.ByokGetParametersProviderExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ByokGetParametersProvider)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ByokGetParametersProvider); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ByokGetParametersProvider value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ByokGetParametersProviderExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ByokGetParametersProviderNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ByokGetParametersProviderNullable.g.cs new file mode 100644 index 0000000..67a633f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ByokGetParametersProviderNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ByokGetParametersProviderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ByokGetParametersProvider? 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::OpenRouter.ByokGetParametersProviderExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ByokGetParametersProvider)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ByokGetParametersProvider?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ByokGetParametersProvider? 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::OpenRouter.ByokGetParametersProviderExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ByokKeyProvider.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ByokKeyProvider.g.cs new file mode 100644 index 0000000..81f1475 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ByokKeyProvider.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ByokKeyProviderJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ByokKeyProvider 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::OpenRouter.ByokKeyProviderExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ByokKeyProvider)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ByokKeyProvider); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ByokKeyProvider value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ByokKeyProviderExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ByokKeyProviderNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ByokKeyProviderNullable.g.cs new file mode 100644 index 0000000..68cf654 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ByokKeyProviderNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ByokKeyProviderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ByokKeyProvider? 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::OpenRouter.ByokKeyProviderExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ByokKeyProvider)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ByokKeyProvider?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ByokKeyProvider? 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::OpenRouter.ByokKeyProviderExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetByokKeyResponseDataProvider.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetByokKeyResponseDataProvider.g.cs new file mode 100644 index 0000000..2eb6929 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetByokKeyResponseDataProvider.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetByokKeyResponseDataProviderJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetByokKeyResponseDataProvider 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::OpenRouter.GetByokKeyResponseDataProviderExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetByokKeyResponseDataProvider)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetByokKeyResponseDataProvider); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetByokKeyResponseDataProvider value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.GetByokKeyResponseDataProviderExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetByokKeyResponseDataProviderNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetByokKeyResponseDataProviderNullable.g.cs new file mode 100644 index 0000000..aa0234f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetByokKeyResponseDataProviderNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetByokKeyResponseDataProviderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetByokKeyResponseDataProvider? 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::OpenRouter.GetByokKeyResponseDataProviderExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetByokKeyResponseDataProvider)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetByokKeyResponseDataProvider?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetByokKeyResponseDataProvider? 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::OpenRouter.GetByokKeyResponseDataProviderExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseData.g.cs new file mode 100644 index 0000000..d34982d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseData.g.cs @@ -0,0 +1,297 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class GetObservabilityDestinationResponseDataJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseData Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::OpenRouter.GetObservabilityDestinationResponseDataVariant1? arize = default; + if (discriminator?.Type == global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType.Arize) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant1)}"); + arize = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.GetObservabilityDestinationResponseDataVariant2? braintrust = default; + if (discriminator?.Type == global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType.Braintrust) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant2)}"); + braintrust = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.GetObservabilityDestinationResponseDataVariant3? clickhouse = default; + if (discriminator?.Type == global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType.Clickhouse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant3)}"); + clickhouse = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.GetObservabilityDestinationResponseDataVariant4? datadog = default; + if (discriminator?.Type == global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType.Datadog) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant4)}"); + datadog = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.GetObservabilityDestinationResponseDataVariant5? grafana = default; + if (discriminator?.Type == global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType.Grafana) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant5)}"); + grafana = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.GetObservabilityDestinationResponseDataVariant6? langfuse = default; + if (discriminator?.Type == global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType.Langfuse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant6)}"); + langfuse = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.GetObservabilityDestinationResponseDataVariant7? langsmith = default; + if (discriminator?.Type == global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType.Langsmith) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant7)}"); + langsmith = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.GetObservabilityDestinationResponseDataVariant8? newrelic = default; + if (discriminator?.Type == global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType.Newrelic) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant8)}"); + newrelic = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.GetObservabilityDestinationResponseDataVariant9? opik = default; + if (discriminator?.Type == global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType.Opik) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant9)}"); + opik = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.GetObservabilityDestinationResponseDataVariant10? otelCollector = default; + if (discriminator?.Type == global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType.OtelCollector) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant10)}"); + otelCollector = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.GetObservabilityDestinationResponseDataVariant11? posthog = default; + if (discriminator?.Type == global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType.Posthog) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant11)}"); + posthog = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.GetObservabilityDestinationResponseDataVariant12? ramp = default; + if (discriminator?.Type == global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType.Ramp) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant12)}"); + ramp = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.GetObservabilityDestinationResponseDataVariant13? s3 = default; + if (discriminator?.Type == global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType.S3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant13)}"); + s3 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.GetObservabilityDestinationResponseDataVariant14? sentry = default; + if (discriminator?.Type == global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType.Sentry) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant14)}"); + sentry = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.GetObservabilityDestinationResponseDataVariant15? snowflake = default; + if (discriminator?.Type == global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType.Snowflake) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant15)}"); + snowflake = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.GetObservabilityDestinationResponseDataVariant16? weave = default; + if (discriminator?.Type == global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType.Weave) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant16)}"); + weave = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.GetObservabilityDestinationResponseDataVariant17? webhook = default; + if (discriminator?.Type == global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType.Webhook) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant17)}"); + webhook = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::OpenRouter.GetObservabilityDestinationResponseData( + discriminator?.Type, + arize, + + braintrust, + + clickhouse, + + datadog, + + grafana, + + langfuse, + + langsmith, + + newrelic, + + opik, + + otelCollector, + + posthog, + + ramp, + + s3, + + sentry, + + snowflake, + + weave, + + webhook + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseData value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsArize) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Arize!, typeInfo); + } + else if (value.IsBraintrust) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Braintrust!, typeInfo); + } + else if (value.IsClickhouse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Clickhouse!, typeInfo); + } + else if (value.IsDatadog) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant4).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Datadog!, typeInfo); + } + else if (value.IsGrafana) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant5).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Grafana!, typeInfo); + } + else if (value.IsLangfuse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant6).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo); + } + else if (value.IsLangsmith) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant7).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langsmith!, typeInfo); + } + else if (value.IsNewrelic) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant8).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Newrelic!, typeInfo); + } + else if (value.IsOpik) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant9).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Opik!, typeInfo); + } + else if (value.IsOtelCollector) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant10).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OtelCollector!, typeInfo); + } + else if (value.IsPosthog) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant11).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Posthog!, typeInfo); + } + else if (value.IsRamp) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant12).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Ramp!, typeInfo); + } + else if (value.IsS3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant13).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo); + } + else if (value.IsSentry) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant14).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sentry!, typeInfo); + } + else if (value.IsSnowflake) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant15).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Snowflake!, typeInfo); + } + else if (value.IsWeave) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant16).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Weave!, typeInfo); + } + else if (value.IsWebhook) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant17).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorType.g.cs new file mode 100644 index 0000000..5f60cee --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType 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::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullable.g.cs new file mode 100644 index 0000000..276efd7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType? 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::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType? 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::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1Type.g.cs new file mode 100644 index 0000000..3b4377e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type 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::OpenRouter.GetObservabilityDestinationResponseDataVariant1TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant1TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeNullable.g.cs new file mode 100644 index 0000000..271a66a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type? 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::OpenRouter.GetObservabilityDestinationResponseDataVariant1TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type? 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::OpenRouter.GetObservabilityDestinationResponseDataVariant1TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant2Type.g.cs new file mode 100644 index 0000000..08e6456 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant2Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type 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::OpenRouter.GetObservabilityDestinationResponseDataVariant2TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant2TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant2TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant2TypeNullable.g.cs new file mode 100644 index 0000000..ef4e4a5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant2TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type? 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::OpenRouter.GetObservabilityDestinationResponseDataVariant2TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type? 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::OpenRouter.GetObservabilityDestinationResponseDataVariant2TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant3Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant3Type.g.cs new file mode 100644 index 0000000..939ea06 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant3Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant3TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type 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::OpenRouter.GetObservabilityDestinationResponseDataVariant3TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant3TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant3TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant3TypeNullable.g.cs new file mode 100644 index 0000000..317e37c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant3TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type? 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::OpenRouter.GetObservabilityDestinationResponseDataVariant3TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type? 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::OpenRouter.GetObservabilityDestinationResponseDataVariant3TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4Type.g.cs new file mode 100644 index 0000000..809dbd7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant4TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type 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::OpenRouter.GetObservabilityDestinationResponseDataVariant4TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant4TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeNullable.g.cs new file mode 100644 index 0000000..469a424 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type? 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::OpenRouter.GetObservabilityDestinationResponseDataVariant4TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type? 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::OpenRouter.GetObservabilityDestinationResponseDataVariant4TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestination.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestination.g.cs new file mode 100644 index 0000000..fd9a4de --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestination.g.cs @@ -0,0 +1,297 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class ObservabilityDestinationJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestination Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ObservabilityDestinationDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::OpenRouter.ObservabilityDestinationVariant1? arize = default; + if (discriminator?.Type == global::OpenRouter.ObservabilityDestinationDiscriminatorType.Arize) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ObservabilityDestinationVariant1)}"); + arize = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ObservabilityDestinationVariant2? braintrust = default; + if (discriminator?.Type == global::OpenRouter.ObservabilityDestinationDiscriminatorType.Braintrust) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ObservabilityDestinationVariant2)}"); + braintrust = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ObservabilityDestinationVariant3? clickhouse = default; + if (discriminator?.Type == global::OpenRouter.ObservabilityDestinationDiscriminatorType.Clickhouse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ObservabilityDestinationVariant3)}"); + clickhouse = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ObservabilityDestinationVariant4? datadog = default; + if (discriminator?.Type == global::OpenRouter.ObservabilityDestinationDiscriminatorType.Datadog) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ObservabilityDestinationVariant4)}"); + datadog = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ObservabilityDestinationVariant5? grafana = default; + if (discriminator?.Type == global::OpenRouter.ObservabilityDestinationDiscriminatorType.Grafana) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ObservabilityDestinationVariant5)}"); + grafana = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ObservabilityDestinationVariant6? langfuse = default; + if (discriminator?.Type == global::OpenRouter.ObservabilityDestinationDiscriminatorType.Langfuse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ObservabilityDestinationVariant6)}"); + langfuse = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ObservabilityDestinationVariant7? langsmith = default; + if (discriminator?.Type == global::OpenRouter.ObservabilityDestinationDiscriminatorType.Langsmith) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ObservabilityDestinationVariant7)}"); + langsmith = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ObservabilityDestinationVariant8? newrelic = default; + if (discriminator?.Type == global::OpenRouter.ObservabilityDestinationDiscriminatorType.Newrelic) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ObservabilityDestinationVariant8)}"); + newrelic = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ObservabilityDestinationVariant9? opik = default; + if (discriminator?.Type == global::OpenRouter.ObservabilityDestinationDiscriminatorType.Opik) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ObservabilityDestinationVariant9)}"); + opik = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ObservabilityDestinationVariant10? otelCollector = default; + if (discriminator?.Type == global::OpenRouter.ObservabilityDestinationDiscriminatorType.OtelCollector) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ObservabilityDestinationVariant10)}"); + otelCollector = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ObservabilityDestinationVariant11? posthog = default; + if (discriminator?.Type == global::OpenRouter.ObservabilityDestinationDiscriminatorType.Posthog) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ObservabilityDestinationVariant11)}"); + posthog = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ObservabilityDestinationVariant12? ramp = default; + if (discriminator?.Type == global::OpenRouter.ObservabilityDestinationDiscriminatorType.Ramp) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ObservabilityDestinationVariant12)}"); + ramp = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ObservabilityDestinationVariant13? s3 = default; + if (discriminator?.Type == global::OpenRouter.ObservabilityDestinationDiscriminatorType.S3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ObservabilityDestinationVariant13)}"); + s3 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ObservabilityDestinationVariant14? sentry = default; + if (discriminator?.Type == global::OpenRouter.ObservabilityDestinationDiscriminatorType.Sentry) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ObservabilityDestinationVariant14)}"); + sentry = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ObservabilityDestinationVariant15? snowflake = default; + if (discriminator?.Type == global::OpenRouter.ObservabilityDestinationDiscriminatorType.Snowflake) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ObservabilityDestinationVariant15)}"); + snowflake = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ObservabilityDestinationVariant16? weave = default; + if (discriminator?.Type == global::OpenRouter.ObservabilityDestinationDiscriminatorType.Weave) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ObservabilityDestinationVariant16)}"); + weave = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ObservabilityDestinationVariant17? webhook = default; + if (discriminator?.Type == global::OpenRouter.ObservabilityDestinationDiscriminatorType.Webhook) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ObservabilityDestinationVariant17)}"); + webhook = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::OpenRouter.ObservabilityDestination( + discriminator?.Type, + arize, + + braintrust, + + clickhouse, + + datadog, + + grafana, + + langfuse, + + langsmith, + + newrelic, + + opik, + + otelCollector, + + posthog, + + ramp, + + s3, + + sentry, + + snowflake, + + weave, + + webhook + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestination value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsArize) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ObservabilityDestinationVariant1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Arize!, typeInfo); + } + else if (value.IsBraintrust) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ObservabilityDestinationVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Braintrust!, typeInfo); + } + else if (value.IsClickhouse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ObservabilityDestinationVariant3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Clickhouse!, typeInfo); + } + else if (value.IsDatadog) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ObservabilityDestinationVariant4).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Datadog!, typeInfo); + } + else if (value.IsGrafana) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ObservabilityDestinationVariant5).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Grafana!, typeInfo); + } + else if (value.IsLangfuse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ObservabilityDestinationVariant6).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo); + } + else if (value.IsLangsmith) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ObservabilityDestinationVariant7).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langsmith!, typeInfo); + } + else if (value.IsNewrelic) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ObservabilityDestinationVariant8).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Newrelic!, typeInfo); + } + else if (value.IsOpik) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ObservabilityDestinationVariant9).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Opik!, typeInfo); + } + else if (value.IsOtelCollector) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ObservabilityDestinationVariant10).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OtelCollector!, typeInfo); + } + else if (value.IsPosthog) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ObservabilityDestinationVariant11).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Posthog!, typeInfo); + } + else if (value.IsRamp) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ObservabilityDestinationVariant12).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Ramp!, typeInfo); + } + else if (value.IsS3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ObservabilityDestinationVariant13).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo); + } + else if (value.IsSentry) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ObservabilityDestinationVariant14).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sentry!, typeInfo); + } + else if (value.IsSnowflake) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ObservabilityDestinationVariant15).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Snowflake!, typeInfo); + } + else if (value.IsWeave) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ObservabilityDestinationVariant16).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Weave!, typeInfo); + } + else if (value.IsWebhook) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ObservabilityDestinationVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ObservabilityDestinationVariant17).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorType.g.cs new file mode 100644 index 0000000..ac1a8a9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationDiscriminatorType 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::OpenRouter.ObservabilityDestinationDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeNullable.g.cs new file mode 100644 index 0000000..a969640 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationDiscriminatorType? 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::OpenRouter.ObservabilityDestinationDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationDiscriminatorType? 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::OpenRouter.ObservabilityDestinationDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant1Type.g.cs new file mode 100644 index 0000000..16b4477 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant1Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant1Type 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::OpenRouter.ObservabilityDestinationVariant1TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant1Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant1Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant1Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant1TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeNullable.g.cs new file mode 100644 index 0000000..613ca7e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant1Type? 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::OpenRouter.ObservabilityDestinationVariant1TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant1Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant1Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant1Type? 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::OpenRouter.ObservabilityDestinationVariant1TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant2Type.g.cs new file mode 100644 index 0000000..6eff253 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant2Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant2Type 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::OpenRouter.ObservabilityDestinationVariant2TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant2Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant2Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant2Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant2TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeNullable.g.cs new file mode 100644 index 0000000..894ab4a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant2Type? 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::OpenRouter.ObservabilityDestinationVariant2TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant2Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant2Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant2Type? 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::OpenRouter.ObservabilityDestinationVariant2TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant3Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant3Type.g.cs new file mode 100644 index 0000000..a9ebc6c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant3Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant3TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant3Type 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::OpenRouter.ObservabilityDestinationVariant3TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant3Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant3Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant3Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant3TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeNullable.g.cs new file mode 100644 index 0000000..d5578c5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant3TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant3Type? 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::OpenRouter.ObservabilityDestinationVariant3TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant3Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant3Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant3Type? 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::OpenRouter.ObservabilityDestinationVariant3TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant4Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant4Type.g.cs new file mode 100644 index 0000000..4ec8ee6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant4Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant4TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant4Type 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::OpenRouter.ObservabilityDestinationVariant4TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant4Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant4Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant4Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant4TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeNullable.g.cs new file mode 100644 index 0000000..de5707f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant4TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant4Type? 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::OpenRouter.ObservabilityDestinationVariant4TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant4Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant4Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant4Type? 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::OpenRouter.ObservabilityDestinationVariant4TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogic.g.cs new file mode 100644 index 0000000..136126d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogic.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic 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::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogicExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogicExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullable.g.cs new file mode 100644 index 0000000..b66a68a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic? 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::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogicExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic? 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::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogicExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.g.cs new file mode 100644 index 0000000..8e7dee1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField 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::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullable.g.cs new file mode 100644 index 0000000..2315647 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField? 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::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField? 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::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.g.cs new file mode 100644 index 0000000..f492b4e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator 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::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullable.g.cs new file mode 100644 index 0000000..d653862 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator? 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::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator? 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::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue.g.cs new file mode 100644 index 0000000..4e84c1c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + } + } + + var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(double), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + string? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 = default; + double? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 1) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 == null && observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 == null && observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue( + observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1, + + observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1!, typeInfo); + } + else if (value.IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2!.Value, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityGrafanaDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityGrafanaDestinationType.g.cs new file mode 100644 index 0000000..8a1043e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityGrafanaDestinationType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityGrafanaDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityGrafanaDestinationType 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::OpenRouter.ObservabilityGrafanaDestinationTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityGrafanaDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityGrafanaDestinationType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityGrafanaDestinationType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityGrafanaDestinationTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeNullable.g.cs new file mode 100644 index 0000000..a299673 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityGrafanaDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityGrafanaDestinationType? 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::OpenRouter.ObservabilityGrafanaDestinationTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityGrafanaDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityGrafanaDestinationType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityGrafanaDestinationType? 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::OpenRouter.ObservabilityGrafanaDestinationTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangfuseDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangfuseDestinationType.g.cs new file mode 100644 index 0000000..c243bae --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangfuseDestinationType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityLangfuseDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityLangfuseDestinationType 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::OpenRouter.ObservabilityLangfuseDestinationTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityLangfuseDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityLangfuseDestinationType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityLangfuseDestinationType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityLangfuseDestinationTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeNullable.g.cs new file mode 100644 index 0000000..e8a665b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityLangfuseDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityLangfuseDestinationType? 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::OpenRouter.ObservabilityLangfuseDestinationTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityLangfuseDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityLangfuseDestinationType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityLangfuseDestinationType? 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::OpenRouter.ObservabilityLangfuseDestinationTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangsmithDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangsmithDestinationType.g.cs new file mode 100644 index 0000000..f1a06e7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangsmithDestinationType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityLangsmithDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityLangsmithDestinationType 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::OpenRouter.ObservabilityLangsmithDestinationTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityLangsmithDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityLangsmithDestinationType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityLangsmithDestinationType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityLangsmithDestinationTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeNullable.g.cs new file mode 100644 index 0000000..5c9ef04 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityLangsmithDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityLangsmithDestinationType? 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::OpenRouter.ObservabilityLangsmithDestinationTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityLangsmithDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityLangsmithDestinationType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityLangsmithDestinationType? 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::OpenRouter.ObservabilityLangsmithDestinationTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegion.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegion.g.cs new file mode 100644 index 0000000..7e434fa --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegion.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityNewrelicDestinationConfigRegionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion 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::OpenRouter.ObservabilityNewrelicDestinationConfigRegionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityNewrelicDestinationConfigRegionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionNullable.g.cs new file mode 100644 index 0000000..390fc80 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityNewrelicDestinationConfigRegionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion? 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::OpenRouter.ObservabilityNewrelicDestinationConfigRegionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion? 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::OpenRouter.ObservabilityNewrelicDestinationConfigRegionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationType.g.cs new file mode 100644 index 0000000..ee231ed --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityNewrelicDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityNewrelicDestinationType 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::OpenRouter.ObservabilityNewrelicDestinationTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityNewrelicDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityNewrelicDestinationType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityNewrelicDestinationType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityNewrelicDestinationTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeNullable.g.cs new file mode 100644 index 0000000..bf002d9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityNewrelicDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityNewrelicDestinationType? 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::OpenRouter.ObservabilityNewrelicDestinationTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityNewrelicDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityNewrelicDestinationType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityNewrelicDestinationType? 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::OpenRouter.ObservabilityNewrelicDestinationTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOpikDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOpikDestinationType.g.cs new file mode 100644 index 0000000..254fe70 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOpikDestinationType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityOpikDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityOpikDestinationType 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::OpenRouter.ObservabilityOpikDestinationTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityOpikDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityOpikDestinationType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityOpikDestinationType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityOpikDestinationTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeNullable.g.cs new file mode 100644 index 0000000..9a28323 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityOpikDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityOpikDestinationType? 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::OpenRouter.ObservabilityOpikDestinationTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityOpikDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityOpikDestinationType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityOpikDestinationType? 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::OpenRouter.ObservabilityOpikDestinationTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationType.g.cs new file mode 100644 index 0000000..ffd233e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityOtelCollectorDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityOtelCollectorDestinationType 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::OpenRouter.ObservabilityOtelCollectorDestinationTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityOtelCollectorDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityOtelCollectorDestinationType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityOtelCollectorDestinationType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityOtelCollectorDestinationTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeNullable.g.cs new file mode 100644 index 0000000..81cc48f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityOtelCollectorDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityOtelCollectorDestinationType? 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::OpenRouter.ObservabilityOtelCollectorDestinationTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityOtelCollectorDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityOtelCollectorDestinationType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityOtelCollectorDestinationType? 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::OpenRouter.ObservabilityOtelCollectorDestinationTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityPosthogDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityPosthogDestinationType.g.cs new file mode 100644 index 0000000..079dfd8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityPosthogDestinationType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityPosthogDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityPosthogDestinationType 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::OpenRouter.ObservabilityPosthogDestinationTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityPosthogDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityPosthogDestinationType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityPosthogDestinationType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityPosthogDestinationTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeNullable.g.cs new file mode 100644 index 0000000..cdd9f26 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityPosthogDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityPosthogDestinationType? 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::OpenRouter.ObservabilityPosthogDestinationTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityPosthogDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityPosthogDestinationType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityPosthogDestinationType? 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::OpenRouter.ObservabilityPosthogDestinationTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityRampDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityRampDestinationType.g.cs new file mode 100644 index 0000000..c179598 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityRampDestinationType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityRampDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityRampDestinationType 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::OpenRouter.ObservabilityRampDestinationTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityRampDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityRampDestinationType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityRampDestinationType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityRampDestinationTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityRampDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityRampDestinationTypeNullable.g.cs new file mode 100644 index 0000000..108f0f6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityRampDestinationTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityRampDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityRampDestinationType? 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::OpenRouter.ObservabilityRampDestinationTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityRampDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityRampDestinationType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityRampDestinationType? 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::OpenRouter.ObservabilityRampDestinationTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityS3DestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityS3DestinationType.g.cs new file mode 100644 index 0000000..8551df7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityS3DestinationType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityS3DestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityS3DestinationType 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::OpenRouter.ObservabilityS3DestinationTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityS3DestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityS3DestinationType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityS3DestinationType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityS3DestinationTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityS3DestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityS3DestinationTypeNullable.g.cs new file mode 100644 index 0000000..343928f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityS3DestinationTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityS3DestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityS3DestinationType? 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::OpenRouter.ObservabilityS3DestinationTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityS3DestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityS3DestinationType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityS3DestinationType? 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::OpenRouter.ObservabilityS3DestinationTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySentryDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySentryDestinationType.g.cs new file mode 100644 index 0000000..86e11a0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySentryDestinationType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilitySentryDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilitySentryDestinationType 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::OpenRouter.ObservabilitySentryDestinationTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilitySentryDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilitySentryDestinationType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilitySentryDestinationType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilitySentryDestinationTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeNullable.g.cs new file mode 100644 index 0000000..a202ce9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilitySentryDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilitySentryDestinationType? 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::OpenRouter.ObservabilitySentryDestinationTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilitySentryDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilitySentryDestinationType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilitySentryDestinationType? 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::OpenRouter.ObservabilitySentryDestinationTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationType.g.cs new file mode 100644 index 0000000..f0e62ba --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilitySnowflakeDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilitySnowflakeDestinationType 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::OpenRouter.ObservabilitySnowflakeDestinationTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilitySnowflakeDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilitySnowflakeDestinationType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilitySnowflakeDestinationType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilitySnowflakeDestinationTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeNullable.g.cs new file mode 100644 index 0000000..0c03665 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilitySnowflakeDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilitySnowflakeDestinationType? 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::OpenRouter.ObservabilitySnowflakeDestinationTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilitySnowflakeDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilitySnowflakeDestinationType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilitySnowflakeDestinationType? 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::OpenRouter.ObservabilitySnowflakeDestinationTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWeaveDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWeaveDestinationType.g.cs new file mode 100644 index 0000000..cbf4342 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWeaveDestinationType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityWeaveDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityWeaveDestinationType 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::OpenRouter.ObservabilityWeaveDestinationTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityWeaveDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityWeaveDestinationType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityWeaveDestinationType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityWeaveDestinationTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeNullable.g.cs new file mode 100644 index 0000000..c4280a9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityWeaveDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityWeaveDestinationType? 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::OpenRouter.ObservabilityWeaveDestinationTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityWeaveDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityWeaveDestinationType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityWeaveDestinationType? 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::OpenRouter.ObservabilityWeaveDestinationTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethod.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethod.g.cs new file mode 100644 index 0000000..a4bc531 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethod.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityWebhookDestinationConfigMethodJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityWebhookDestinationConfigMethod 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::OpenRouter.ObservabilityWebhookDestinationConfigMethodExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityWebhookDestinationConfigMethod)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityWebhookDestinationConfigMethod); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityWebhookDestinationConfigMethod value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityWebhookDestinationConfigMethodExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodNullable.g.cs new file mode 100644 index 0000000..165db1b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityWebhookDestinationConfigMethodNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityWebhookDestinationConfigMethod? 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::OpenRouter.ObservabilityWebhookDestinationConfigMethodExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityWebhookDestinationConfigMethod)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityWebhookDestinationConfigMethod?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityWebhookDestinationConfigMethod? 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::OpenRouter.ObservabilityWebhookDestinationConfigMethodExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationType.g.cs new file mode 100644 index 0000000..879840d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityWebhookDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityWebhookDestinationType 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::OpenRouter.ObservabilityWebhookDestinationTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityWebhookDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityWebhookDestinationType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityWebhookDestinationType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityWebhookDestinationTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeNullable.g.cs new file mode 100644 index 0000000..df243ae --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityWebhookDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityWebhookDestinationType? 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::OpenRouter.ObservabilityWebhookDestinationTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityWebhookDestinationType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityWebhookDestinationType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityWebhookDestinationType? 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::OpenRouter.ObservabilityWebhookDestinationTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs index 538ea43..ef1402e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs @@ -1041,6 +1041,18 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ByokGetParametersProviderJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ByokGetParametersProviderNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ByokKeyProviderJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ByokKeyProviderNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetByokKeyResponseDataProviderJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetByokKeyResponseDataProviderNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetailJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetailNullableJsonConverter), @@ -1921,6 +1933,118 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ModelsGetParametersCategoryNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleJsonConverter), typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleNullableJsonConverter), @@ -2211,6 +2335,12 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataJsonConverter), + typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItemsJsonConverter), @@ -3816,6 +3946,18 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ByokGetParametersProviderJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ByokGetParametersProviderNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ByokKeyProviderJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ByokKeyProviderNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetByokKeyResponseDataProviderJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetByokKeyResponseDataProviderNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetailJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetailNullableJsonConverter), @@ -4696,6 +4838,118 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ModelsGetParametersCategoryNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleJsonConverter), typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleNullableJsonConverter), @@ -4986,6 +5240,12 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataJsonConverter), + typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItemsJsonConverter), @@ -5205,6 +5465,15 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ActivityItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ActivityResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ByokGetParametersProvider), TypeInfoPropertyName = "ByokGetParametersProvider2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ByokKeyProvider), TypeInfoPropertyName = "ByokKeyProvider2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BYOKKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListBYOKKeysResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetByokKeyResponseDataProvider), TypeInfoPropertyName = "GetByokKeyResponseDataProvider2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetByokKeyResponseData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetBYOKKeyResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatDebugOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatAudioOutput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentItemsDiscriminatorMappingFileFile))] @@ -5440,7 +5709,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Guardrail))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListGuardrailsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateGuardrailRequest))] @@ -5544,14 +5812,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicPlainTextSourceMediaType), TypeInfoPropertyName = "AnthropicPlainTextSourceMediaType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicPlainTextSourceType), TypeInfoPropertyName = "AnthropicPlainTextSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicPlainTextSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items), TypeInfoPropertyName = "AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType), TypeInfoPropertyName = "AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content), TypeInfoPropertyName = "AnthropicDocumentBlockParamSourceOneOf2Content2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type), TypeInfoPropertyName = "AnthropicDocumentBlockParamSourceOneOf2Type2")] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -6591,6 +6851,18 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ByokGetParametersProviderJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ByokGetParametersProviderNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ByokKeyProviderJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ByokKeyProviderNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetByokKeyResponseDataProviderJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetByokKeyResponseDataProviderNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetailJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetailNullableJsonConverter), @@ -7471,6 +7743,118 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ModelsGetParametersCategoryNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleJsonConverter), typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleNullableJsonConverter), @@ -7761,6 +8145,12 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataJsonConverter), + typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItemsJsonConverter), @@ -7827,6 +8217,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items), TypeInfoPropertyName = "AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType), TypeInfoPropertyName = "AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content), TypeInfoPropertyName = "AnthropicDocumentBlockParamSourceOneOf2Content2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type), TypeInfoPropertyName = "AnthropicDocumentBlockParamSourceOneOf2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSource2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicUrlPdfSourceType), TypeInfoPropertyName = "AnthropicUrlPdfSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicUrlPdfSource))] @@ -8112,6 +8510,98 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsGetParametersCategory), TypeInfoPropertyName = "ModelsGetParametersCategory2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponseData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsLogic2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsRulesItemsField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityGrafanaDestinationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityGrafanaDestinationType), TypeInfoPropertyName = "ObservabilityGrafanaDestinationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityLangfuseDestinationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityLangfuseDestinationType), TypeInfoPropertyName = "ObservabilityLangfuseDestinationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityLangsmithDestinationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityLangsmithDestinationType), TypeInfoPropertyName = "ObservabilityLangsmithDestinationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion), TypeInfoPropertyName = "ObservabilityNewrelicDestinationConfigRegion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityNewrelicDestinationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityNewrelicDestinationType), TypeInfoPropertyName = "ObservabilityNewrelicDestinationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityOpikDestinationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityOpikDestinationType), TypeInfoPropertyName = "ObservabilityOpikDestinationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityOtelCollectorDestinationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityOtelCollectorDestinationType), TypeInfoPropertyName = "ObservabilityOtelCollectorDestinationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityPosthogDestinationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityPosthogDestinationType), TypeInfoPropertyName = "ObservabilityPosthogDestinationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityRampDestinationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityRampDestinationType), TypeInfoPropertyName = "ObservabilityRampDestinationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityS3DestinationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityS3DestinationType), TypeInfoPropertyName = "ObservabilityS3DestinationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilitySentryDestinationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilitySentryDestinationType), TypeInfoPropertyName = "ObservabilitySentryDestinationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilitySnowflakeDestinationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilitySnowflakeDestinationType), TypeInfoPropertyName = "ObservabilitySnowflakeDestinationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityWeaveDestinationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityWeaveDestinationType), TypeInfoPropertyName = "ObservabilityWeaveDestinationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityWebhookDestinationConfigMethod), TypeInfoPropertyName = "ObservabilityWebhookDestinationConfigMethod2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityWebhookDestinationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityWebhookDestinationType), TypeInfoPropertyName = "ObservabilityWebhookDestinationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestination), TypeInfoPropertyName = "ObservabilityDestination2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant1Type), TypeInfoPropertyName = "ObservabilityDestinationVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant2Type), TypeInfoPropertyName = "ObservabilityDestinationVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant3Type), TypeInfoPropertyName = "ObservabilityDestinationVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant4Type), TypeInfoPropertyName = "ObservabilityDestinationVariant4Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant7))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant8))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant9))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant10))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant11))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant12))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant13))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant14))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant15))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant16))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant17))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorType), TypeInfoPropertyName = "ObservabilityDestinationDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListObservabilityDestinationsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseData), TypeInfoPropertyName = "GetObservabilityDestinationResponseData2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant4Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant7))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant8))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant9))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant10))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant11))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant12))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant13))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant14))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant15))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant16))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant17))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole), TypeInfoPropertyName = "OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrganizationListOrganizationMembersResponse200))] @@ -8227,49 +8717,2455 @@ 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))] - [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))] - [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))] - [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))] - [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))] - [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 SourceGenerationContextChunk2 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + Converters = new global::System.Type[] + { + typeof(global::OpenRouter.JsonConverters.MetadataLevelJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MetadataLevelNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCacheControlTtlJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCacheControlTtlNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCacheControlDirectiveTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCacheControlDirectiveTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponseIncludesEnumJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponseIncludesEnumNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningTextContentTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningTextContentTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningItemStatus0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningItemStatus0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningItemStatus1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningItemStatus1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningItemStatus2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningItemStatus2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningSummaryTextTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningSummaryTextTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningFormatNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1DetailJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1DetailNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputAudioInputAudioFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputAudioInputAudioFormatNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputVideoTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputVideoTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessagePhase0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessagePhase0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessagePhase1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessagePhase1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessageRole0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessageRole0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessageRole1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessageRole1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessageRole2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessageRole2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessageRole3JsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessageRole3NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessageTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessageTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputMessageItemContentItemsOneOf1DetailJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputMessageItemContentItemsOneOf1DetailNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputMessageItemContentItemsOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputMessageItemContentItemsOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputMessageItemRole0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputMessageItemRole0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputMessageItemRole1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputMessageItemRole1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputMessageItemRole2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputMessageItemRole2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputMessageItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputMessageItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolCallStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolCallStatusNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FunctionCallItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FunctionCallItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputImageDetailJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputImageDetailNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemOutputOneOf1ItemsVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemOutputOneOf1ItemsVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemOutputOneOf1ItemsVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemOutputOneOf1ItemsVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemOutputOneOf1ItemsVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemOutputOneOf1ItemsVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemOutputOneOf1ItemsDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemOutputOneOf1ItemsDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationOneOf2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallStatusNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemStatusNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOutputItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileCitationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileCitationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UrlCitationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UrlCitationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FilePathTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FilePathTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponseOutputTextTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponseOutputTextTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesRefusalContentTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesRefusalContentTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputFunctionCallItemStatus0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputFunctionCallItemStatus0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputFunctionCallItemStatus1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputFunctionCallItemStatus1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputFunctionCallItemStatus2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputFunctionCallItemStatus2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputFunctionCallItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputFunctionCallItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchSourceTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchSourceTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebSearchCallItemActionOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebSearchCallItemActionOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebSearchCallItemActionOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebSearchCallItemActionOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebSearchCallItemActionOneOf2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebSearchCallItemActionOneOf2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchStatusNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebSearchCallItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebSearchCallItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputFileSearchCallItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputFileSearchCallItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationStatusNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputImageGenerationCallItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputImageGenerationCallItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputCodeInterpreterCallItemOutputsItemsOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputCodeInterpreterCallItemOutputsItemsOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputCodeInterpreterCallItemOutputsItemsOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputCodeInterpreterCallItemOutputsItemsOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputCodeInterpreterCallItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputCodeInterpreterCallItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorMappingComputerCallStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorMappingComputerCallStatusNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebSearchServerToolItemActionSourcesItemsTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebSearchServerToolItemActionSourcesItemsTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebSearchServerToolItemActionTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebSearchServerToolItemActionTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebSearchServerToolItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebSearchServerToolItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputTextEditorServerToolItemCommandJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputTextEditorServerToolItemCommandNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputTextEditorServerToolItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputTextEditorServerToolItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebFetchServerToolItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebFetchServerToolItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputToolSearchServerToolItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputToolSearchServerToolItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMemoryServerToolItemActionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMemoryServerToolItemActionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMemoryServerToolItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMemoryServerToolItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMcpServerToolItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMcpServerToolItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputSearchModelsServerToolItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputSearchModelsServerToolItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.LocalShellCallItemActionTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.LocalShellCallItemActionTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.LocalShellCallItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.LocalShellCallItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.LocalShellCallOutputItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.LocalShellCallOutputItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellCallItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellCallItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellCallOutputItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellCallOutputItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpListToolsItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpListToolsItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpApprovalRequestItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpApprovalRequestItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpApprovalResponseItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpApprovalResponseItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpCallItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpCallItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolCallItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolCallItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CompactionItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CompactionItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputModalityEnumJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputModalityEnumNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PdfParserEngine0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.PdfParserEngine0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PdfParserEngine1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.PdfParserEngine1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchEngineNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderNameJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderNameNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.QuantizationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.QuantizationNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningEffortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningEffortNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchEngineEnumJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchEngineEnumNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SearchContextSizeEnumJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SearchContextSizeEnumNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PreviewWebSearchServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PreviewWebSearchServerToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PreviewWebSearchUserLocationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PreviewWebSearchUserLocationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.Preview20250311WebSearchServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.Preview20250311WebSearchServerToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.LegacyWebSearchServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.LegacyWebSearchServerToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchUserLocationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchUserLocationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchServerToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CompoundFilterTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CompoundFilterTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolRankingOptionsRankerJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolRankingOptionsRankerNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolEnvironmentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolEnvironmentNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1MemoryLimitJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1MemoryLimitNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolConnectorIdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolConnectorIdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolBackgroundJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolBackgroundNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolInputFidelityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolInputFidelityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModelJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModelNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOutputFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOutputFormatNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolQualityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolQualityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolSizeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolSizeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodexLocalShellToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodexLocalShellToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1SyntaxJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1SyntaxNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatetimeServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatetimeServerToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FusionServerToolOpenRouterTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FusionServerToolOpenRouterTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebFetchEngineEnumJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebFetchEngineEnumNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebFetchServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebFetchServerToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SearchQualityLevelJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SearchQualityLevelNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchUserLocationServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchUserLocationServerToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchServerToolOpenRouterTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchServerToolOpenRouterTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesErrorFieldCodeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesErrorFieldCodeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.IncompleteDetailsReasonJsonConverter), + + typeof(global::OpenRouter.JsonConverters.IncompleteDetailsReasonNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role3JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role3NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemRole0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemRole0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemRole1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemRole1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemRole2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemRole2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallOutputTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallOutputTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemImageGenerationCallTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemImageGenerationCallTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessagePhase0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessagePhase0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessagePhase1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessagePhase1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageRoleJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageRoleNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageStatus0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageStatus0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageStatus1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageStatus1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageStatus2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageStatus2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseCustomToolCallTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseCustomToolCallTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseCustomToolCallOutputTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseCustomToolCallOutputTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenResponsesResultObjectJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenResponsesResultObjectNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageItemPhase0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageItemPhase0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageItemPhase1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageItemPhase1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageItemRoleJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageItemRoleNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageItemStatus0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageItemStatus0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageItemStatus1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageItemStatus1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageItemStatus2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageItemStatus2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputReasoningItemStatus0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputReasoningItemStatus0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputReasoningItemStatus1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputReasoningItemStatus1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputReasoningItemStatus2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputReasoningItemStatus2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputReasoningItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputReasoningItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant9TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant9TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant10TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant10TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant11TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant11TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant12TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant12TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant13TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant13TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant15TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant15TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant16TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant16TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant17TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant17TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ServiceTier2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.ServiceTier2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAIResponsesResponseStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAIResponsesResponseStatusNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenResponsesResultToolsItemsOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenResponsesResultToolsItemsOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.TruncationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.TruncationNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PipelineStageTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PipelineStageTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.RoutingStrategyJsonConverter), + + typeof(global::OpenRouter.JsonConverters.RoutingStrategyNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethodJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethodNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaCodeChallengeMethodJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaCodeChallengeMethodNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ByokGetParametersProviderJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ByokGetParametersProviderNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ByokKeyProviderJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ByokKeyProviderNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetByokKeyResponseDataProviderJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetByokKeyResponseDataProviderNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetailJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetailNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.LegacyChatContentVideoTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.LegacyChatContentVideoTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatContentCacheControlTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatContentCacheControlTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatContentTextTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatContentTextTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatContentVideoTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatContentVideoTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatContentItemsVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatContentItemsVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatContentItemsVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatContentItemsVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatContentItemsVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatContentItemsVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatContentItemsDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatContentItemsDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatToolCallTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatToolCallTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatSystemMessageRoleJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatSystemMessageRoleNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatToolMessageRoleJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatToolMessageRoleNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatUserMessageRoleJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatUserMessageRoleNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatMessagesVariant1RoleJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatMessagesVariant1RoleNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatMessagesVariant2RoleJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatMessagesVariant2RoleNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatMessagesDiscriminatorRoleJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatMessagesDiscriminatorRoleNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestModalitiesItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestModalitiesItemsNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant1IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant1IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant2IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant2IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant3IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant3IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant4IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant4IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant5IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant5IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant6IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant6IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant7IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant7IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsDiscriminatorIdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsDiscriminatorIdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestReasoningEffortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestReasoningEffortNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatReasoningSummaryVerbosityEnumJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatReasoningSummaryVerbosityEnumNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant5TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant5TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestServiceTierJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestServiceTierNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatToolChoice0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatToolChoice0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatToolChoice1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatToolChoice1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatToolChoice2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatToolChoice2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatNamedToolChoiceTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatNamedToolChoiceTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatFunctionToolOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatFunctionToolOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenRouterWebSearchServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenRouterWebSearchServerToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatWebSearchShorthandTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatWebSearchShorthandTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatFinishReasonEnumJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatFinishReasonEnumNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatResultObjectJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatResultObjectNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentPartInputAudioTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentPartInputAudioTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentPartInputVideoTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentPartInputVideoTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentPartInputFileTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentPartInputFileTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollectionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollectionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObjectJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObjectNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaObjectJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaObjectNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ModelGroupJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ModelGroupNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ParameterJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ParameterNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EndpointStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EndpointStatusNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InstructType2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.InstructType2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GenerationResponseDataApiTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GenerationResponseDataApiTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderResponseProviderNameJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderResponseProviderNameNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentFilterBuiltinActionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentFilterBuiltinActionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentFilterBuiltinSlugJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentFilterBuiltinSlugNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentFilterActionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentFilterActionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GuardrailIntervalJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GuardrailIntervalNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.KeysPostRequestBodyContentApplicationJsonSchemaLimitResetJsonConverter), + + typeof(global::OpenRouter.JsonConverters.KeysPostRequestBodyContentApplicationJsonSchemaLimitResetNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitResetJsonConverter), + + typeof(global::OpenRouter.JsonConverters.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitResetNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicInputTokensClearAtLeastTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicInputTokensClearAtLeastTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicToolUsesKeepTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicToolUsesKeepTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicThinkingTurnsTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicThinkingTurnsTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1Keep2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1Keep2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextBlockParamCitationsItemsVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextBlockParamCitationsItemsVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextBlockParamCitationsItemsVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextBlockParamCitationsItemsVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextBlockParamCitationsItemsVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextBlockParamCitationsItemsVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextBlockParamCitationsItemsVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextBlockParamCitationsItemsVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextBlockParamCitationsItemsVariant5TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextBlockParamCitationsItemsVariant5TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextBlockParamCitationsItemsDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextBlockParamCitationsItemsDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextBlockParamTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextBlockParamTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicImageMimeTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicImageMimeTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicUrlImageSourceTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicUrlImageSourceTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicImageBlockParamSourceVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicImageBlockParamSourceVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicImageBlockParamSourceDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicImageBlockParamSourceDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicImageBlockParamTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicImageBlockParamTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicBase64PdfSourceMediaTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicBase64PdfSourceMediaTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicBase64PdfSourceTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicBase64PdfSourceTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicPlainTextSourceMediaTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicPlainTextSourceMediaTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicPlainTextSourceTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicPlainTextSourceTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicDocumentBlockParamSourceOneOf2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicDocumentBlockParamSourceOneOf2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicUrlPdfSourceTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicUrlPdfSourceTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicDocumentBlockParamTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicDocumentBlockParamTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicSearchResultBlockParamTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicSearchResultBlockParamTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf5TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf5TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf7TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebSearchResultBlockParamTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebSearchResultBlockParamTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCodeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCodeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf8TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf8TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf10TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf10TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesAdvisorToolResultBlockTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesAdvisorToolResultBlockTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamRoleJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamRoleNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesOutputConfigEffortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesOutputConfigEffortNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesOutputConfigFormatTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesOutputConfigFormatTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesOutputConfigTaskBudgetTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesOutputConfigTaskBudgetTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant1IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant1IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant2IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant2IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant3IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant3IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant4IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant4IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant5IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant5IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant6IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant6IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant7IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant7IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicSpeedJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicSpeedNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicThinkingDisplayJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicThinkingDisplayNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestThinkingOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestThinkingOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestThinkingOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestThinkingOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestThinkingOneOf2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestThinkingOneOf2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolChoiceOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolChoiceOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolChoiceOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolChoiceOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolChoiceOneOf2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolChoiceOneOf2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolChoiceOneOf3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolChoiceOneOf3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf1NameJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf1NameNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf2NameJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf2NameNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf3NameJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf3NameNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebSearchToolUserLocationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebSearchToolUserLocationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicAllowedCallersItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicAllowedCallersItemsNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf4NameJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf4NameNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5NameJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5NameNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionOutputTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionOutputTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionResultTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionResultTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionToolResultErrorErrorCodeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionToolResultErrorErrorCodeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionToolResultErrorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionToolResultErrorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionContentDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionOutputTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionOutputTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionResultTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionResultTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicServerToolErrorCodeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicServerToolErrorCodeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionToolResultErrorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionToolResultErrorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicEncryptedCodeExecutionResultTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicEncryptedCodeExecutionResultTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionContentDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OrAnthropicServerToolUseBlockTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OrAnthropicServerToolUseBlockTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationVariant5TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationVariant5TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionCreateResultTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionCreateResultTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionStrReplaceResultTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionStrReplaceResultTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionToolResultErrorErrorCodeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionToolResultErrorErrorCodeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionToolResultErrorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionToolResultErrorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionViewResultFileTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionViewResultFileTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionViewResultTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionViewResultTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionContentDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicToolSearchResultErrorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicToolSearchResultErrorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicToolReferenceTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicToolReferenceTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicToolSearchResultTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicToolSearchResultTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicToolSearchContentDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicToolSearchContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCallerVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCallerVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCallerVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCallerVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCallerVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCallerVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCallerDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCallerDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicDocumentBlockTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicDocumentBlockTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebFetchToolResultErrorErrorCodeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebFetchToolResultErrorErrorCodeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebFetchToolResultErrorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebFetchToolResultErrorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebFetchContentVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebFetchContentVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebFetchContentDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebFetchContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebSearchResultTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebSearchResultTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebSearchToolResultErrorErrorCodeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebSearchToolResultErrorErrorCodeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebSearchToolResultErrorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebSearchToolResultErrorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant5TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant5TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant8TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant8TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant9TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant9TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant10TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant10TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant11TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant11TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant12TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant12TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant13TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant13TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant14TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockVariant14TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesResultRoleJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesResultRoleNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicRefusalStopDetailsCategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicRefusalStopDetailsCategoryNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicRefusalStopDetailsTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicRefusalStopDetailsTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicStopReasonJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicStopReasonNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesResultTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesResultTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicServiceTierJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicServiceTierNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesErrorResponseTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesErrorResponseTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ModelsGetParametersCategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ModelsGetParametersCategoryNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItemsNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquartersJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquartersNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollectionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollectionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.VideoGenerationRequestAspectRatioJsonConverter), + + typeof(global::OpenRouter.JsonConverters.VideoGenerationRequestAspectRatioNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FrameImageTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FrameImageTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FrameImageFrameTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FrameImageFrameTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentPartImageTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentPartImageTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.VideoGenerationRequestResolutionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.VideoGenerationRequestResolutionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.VideoGenerationResponseStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.VideoGenerationResponseStatusNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.VideoModelSupportedAspectRatiosItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.VideoModelSupportedAspectRatiosItemsNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.VideoModelSupportedFrameImagesItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.VideoModelSupportedFrameImagesItemsNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.VideoModelSupportedResolutionsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.VideoModelSupportedResolutionsItemsNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.VideoModelSupportedSizesItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.VideoModelSupportedSizesItemsNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WorkspaceMemberRoleJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WorkspaceMemberRoleNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageConfigJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningItemStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessagePhaseJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EasyInputMessageRoleJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputMessageItemContentItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputMessageItemRoleJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemOutputOneOf1ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemOutputJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ApplyPatchCallOperationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAIResponsesAnnotationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7ContentOneOf0ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7ContentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputFunctionCallItemStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputWebSearchCallItemActionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputCodeInterpreterCallItemOutputsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PDFParserEngineJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StoredPromptTemplateVariablesJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderPreferencesIgnoreItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderPreferencesOnlyItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderPreferencesOrderItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PreferredMaxLatencyJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PreferredMinThroughputJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderPreferencesSortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedModeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAIResponsesToolChoiceJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueOneOf3ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolAllowedToolsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApprovalJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0PhaseJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0RoleJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemRoleJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallOutputOutputJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageContentItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessagePhaseJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseCustomToolCallOutputOutputJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageItemContentItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageItemPhaseJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputMessageItemStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputReasoningItemStatusJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenResponsesResultToolsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatContentItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatMessagesDiscriminatorMappingAssistantContentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatMessagesDiscriminatorMappingDeveloperContentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatSystemMessageContentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatToolMessageContentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatUserMessageContentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatMessagesJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestStopJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatToolChoiceJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatFunctionToolJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbeddingJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GenerationContentDataInputJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0TriggerJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1KeepJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextBlockParamCitationsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicImageBlockParamSourceJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicDocumentBlockParamSourceOneOf2ContentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicDocumentBlockParamSourceJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf4ContentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf8ContentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesMessageParamContentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestSystemJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestThinkingJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolChoiceJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionContentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionContentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionContentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicToolSearchContentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCallerJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicDocumentBlockSourceJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicWebFetchContentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataJsonConverter), + + typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderSortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter), + })] + [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))] + [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))] + [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))] + [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))] + [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))] + [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))] @@ -8296,6 +11192,9 @@ 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))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -8313,7 +11212,7 @@ 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))] - internal sealed partial class SourceGenerationContextChunk2 : global::System.Text.Json.Serialization.JsonSerializerContext + internal sealed partial class SourceGenerationContextChunk3 : global::System.Text.Json.Serialization.JsonSerializerContext { } /// @@ -8326,7 +11225,9 @@ public sealed partial class SourceGenerationContext : global::System.Text.Json.S SourceGenerationContextChunk1.Default, - SourceGenerationContextChunk2.Default + SourceGenerationContextChunk2.Default, + + SourceGenerationContextChunk3.Default ); private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); @@ -8871,6 +11772,12 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.SpeechRequestResponseFormatJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.SpeechRequestResponseFormatNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ByokGetParametersProviderJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ByokGetParametersProviderNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ByokKeyProviderJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ByokKeyProviderNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetByokKeyResponseDataProviderJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetByokKeyResponseDataProviderNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetailJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetailNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.LegacyChatContentVideoTypeJsonConverter()); @@ -9311,6 +12218,62 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesErrorResponseTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ModelsGetParametersCategoryJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ModelsGetParametersCategoryNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant2TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant2TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant3TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItemsJsonConverter()); @@ -9456,6 +12419,9 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContentJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ORAnthropicContentBlockJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItemsJsonConverter()); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs index bcb6c09..3a1bff0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs @@ -2636,2871 +2636,3271 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.ChatDebugOptions? Type652 { get; set; } + public global::OpenRouter.ByokGetParametersProvider? Type652 { get; set; } /// /// /// - public global::OpenRouter.ChatAudioOutput? Type653 { get; set; } + public global::OpenRouter.ByokKeyProvider? Type653 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingFileFile? Type654 { get; set; } + public global::OpenRouter.BYOKKey? Type654 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail? Type655 { get; set; } + public global::System.Guid? Type655 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrl? Type656 { get; set; } + public global::OpenRouter.ListBYOKKeysResponse? Type656 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingInputAudioInputAudio? Type657 { get; set; } + public global::System.Collections.Generic.IList? Type657 { get; set; } /// /// /// - public global::OpenRouter.LegacyChatContentVideoType? Type658 { get; set; } + public global::OpenRouter.GetByokKeyResponseDataProvider? Type658 { get; set; } /// /// /// - public global::OpenRouter.ChatContentVideoInput? Type659 { get; set; } + public global::OpenRouter.GetByokKeyResponseData? Type659 { get; set; } /// /// /// - public global::OpenRouter.ChatContentCacheControlType? Type660 { get; set; } + public global::OpenRouter.GetBYOKKeyResponse? Type660 { get; set; } /// /// /// - public global::OpenRouter.ChatContentCacheControl? Type661 { get; set; } + public global::OpenRouter.ChatDebugOptions? Type661 { get; set; } /// /// /// - public global::OpenRouter.ChatContentTextType? Type662 { get; set; } + public global::OpenRouter.ChatAudioOutput? Type662 { get; set; } /// /// /// - public global::OpenRouter.ChatContentVideoType? Type663 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingFileFile? Type663 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItems? Type664 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail? Type664 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant1? Type665 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrl? Type665 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant1Type? Type666 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingInputAudioInputAudio? Type666 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant2? Type667 { get; set; } + public global::OpenRouter.LegacyChatContentVideoType? Type667 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant2Type? Type668 { get; set; } + public global::OpenRouter.ChatContentVideoInput? Type668 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant3? Type669 { get; set; } + public global::OpenRouter.ChatContentCacheControlType? Type669 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant3Type? Type670 { get; set; } + public global::OpenRouter.ChatContentCacheControl? Type670 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant4? Type671 { get; set; } + public global::OpenRouter.ChatContentTextType? Type671 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant5? Type672 { get; set; } + public global::OpenRouter.ChatContentVideoType? Type672 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant6? Type673 { get; set; } + public global::OpenRouter.ChatContentItems? Type673 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminator? Type674 { get; set; } + public global::OpenRouter.ChatContentItemsVariant1? Type674 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorType? Type675 { get; set; } + public global::OpenRouter.ChatContentItemsVariant1Type? Type675 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type676 { get; set; } + public global::OpenRouter.ChatContentItemsVariant2? Type676 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContent? Type677 { get; set; } + public global::OpenRouter.ChatContentItemsVariant2Type? Type677 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantImagesItemsImageUrl? Type678 { get; set; } + public global::OpenRouter.ChatContentItemsVariant3? Type678 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantImagesItems? Type679 { get; set; } + public global::OpenRouter.ChatContentItemsVariant3Type? Type679 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type680 { get; set; } + public global::OpenRouter.ChatContentItemsVariant4? Type680 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnion? Type681 { get; set; } + public global::OpenRouter.ChatContentItemsVariant5? Type681 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant1? Type682 { get; set; } + public global::OpenRouter.ChatContentItemsVariant6? Type682 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant1Type? Type683 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminator? Type683 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant2? Type684 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorType? Type684 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant2Type? Type685 { get; set; } + public global::System.Collections.Generic.IList? Type685 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant3? Type686 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContent? Type686 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant3Type? Type687 { get; set; } + public global::OpenRouter.ChatAssistantImagesItemsImageUrl? Type687 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionDiscriminator? Type688 { get; set; } + public global::OpenRouter.ChatAssistantImagesItems? Type688 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionDiscriminatorType? Type689 { get; set; } + public global::System.Collections.Generic.IList? Type689 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type690 { get; set; } + public global::OpenRouter.ReasoningDetailUnion? Type690 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCallFunction? Type691 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant1? Type691 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCallType? Type692 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant1Type? Type692 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCall? Type693 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant2? Type693 { get; set; } /// /// /// - public global::OpenRouter.ChatContentText? Type694 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant2Type? Type694 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type695 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant3? Type695 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminatorMappingDeveloperContent? Type696 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant3Type? Type696 { get; set; } /// /// /// - public global::OpenRouter.ChatSystemMessageContent? Type697 { get; set; } + public global::OpenRouter.ReasoningDetailUnionDiscriminator? Type697 { get; set; } /// /// /// - public global::OpenRouter.ChatSystemMessageRole? Type698 { get; set; } + public global::OpenRouter.ReasoningDetailUnionDiscriminatorType? Type698 { get; set; } /// /// /// - public global::OpenRouter.ChatToolMessageContent? Type699 { get; set; } + public global::System.Collections.Generic.IList? Type699 { get; set; } /// /// /// - public global::OpenRouter.ChatToolMessageRole? Type700 { get; set; } + public global::OpenRouter.ChatToolCallFunction? Type700 { get; set; } /// /// /// - public global::OpenRouter.ChatUserMessageContent? Type701 { get; set; } + public global::OpenRouter.ChatToolCallType? Type701 { get; set; } /// /// /// - public global::OpenRouter.ChatUserMessageRole? Type702 { get; set; } + public global::OpenRouter.ChatToolCall? Type702 { get; set; } /// /// /// - public global::OpenRouter.ChatMessages? Type703 { get; set; } + public global::OpenRouter.ChatContentText? Type703 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant1? Type704 { get; set; } + public global::System.Collections.Generic.IList? Type704 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant1Role? Type705 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminatorMappingDeveloperContent? Type705 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type706 { get; set; } + public global::OpenRouter.ChatSystemMessageContent? Type706 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant2? Type707 { get; set; } + public global::OpenRouter.ChatSystemMessageRole? Type707 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant2Role? Type708 { get; set; } + public global::OpenRouter.ChatToolMessageContent? Type708 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant3? Type709 { get; set; } + public global::OpenRouter.ChatToolMessageRole? Type709 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant4? Type710 { get; set; } + public global::OpenRouter.ChatUserMessageContent? Type710 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant5? Type711 { get; set; } + public global::OpenRouter.ChatUserMessageRole? Type711 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminator? Type712 { get; set; } + public global::OpenRouter.ChatMessages? Type712 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminatorRole? Type713 { get; set; } + public global::OpenRouter.ChatMessagesVariant1? Type713 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestModalitiesItems? Type714 { get; set; } + public global::OpenRouter.ChatMessagesVariant1Role? Type714 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItems? Type715 { get; set; } + public global::System.Collections.Generic.IList? Type715 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant1? Type716 { get; set; } + public global::OpenRouter.ChatMessagesVariant2? Type716 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant1Id? Type717 { get; set; } + public global::OpenRouter.ChatMessagesVariant2Role? Type717 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant2? Type718 { get; set; } + public global::OpenRouter.ChatMessagesVariant3? Type718 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant2Id? Type719 { get; set; } + public global::OpenRouter.ChatMessagesVariant4? Type719 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant3? Type720 { get; set; } + public global::OpenRouter.ChatMessagesVariant5? Type720 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant3Id? Type721 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminator? Type721 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant4? Type722 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminatorRole? Type722 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant4Id? Type723 { get; set; } + public global::OpenRouter.ChatRequestModalitiesItems? Type723 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant5? Type724 { get; set; } + public global::OpenRouter.ChatRequestPluginsItems? Type724 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant5Id? Type725 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant1? Type725 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant6? Type726 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant1Id? Type726 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant6Id? Type727 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant2? Type727 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant7? Type728 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant2Id? Type728 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant7Id? Type729 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant3? Type729 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant8? Type730 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant3Id? Type730 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsDiscriminator? Type731 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant4? Type731 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId? Type732 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant4Id? Type732 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestReasoningEffort? Type733 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant5? Type733 { get; set; } /// /// /// - public global::OpenRouter.ChatReasoningSummaryVerbosityEnum? Type734 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant5Id? Type734 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestReasoning? Type735 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant6? Type735 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type736 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant6Id? Type736 { get; set; } /// /// /// - public global::OpenRouter.ChatJsonSchemaConfig? Type737 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant7? Type737 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormat? Type738 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant7Id? Type738 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant1? Type739 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant8? Type739 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant1Type? Type740 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsDiscriminator? Type740 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant2? Type741 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId? Type741 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant3? Type742 { get; set; } + public global::OpenRouter.ChatRequestReasoningEffort? Type742 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant3Type? Type743 { get; set; } + public global::OpenRouter.ChatReasoningSummaryVerbosityEnum? Type743 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant4? Type744 { get; set; } + public global::OpenRouter.ChatRequestReasoning? Type744 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant4Type? Type745 { get; set; } + public global::OpenRouter.OneOf? Type745 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant5? Type746 { get; set; } + public global::OpenRouter.ChatJsonSchemaConfig? Type746 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant5Type? Type747 { get; set; } + public global::OpenRouter.ChatRequestResponseFormat? Type747 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatDiscriminator? Type748 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant1? Type748 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatDiscriminatorType? Type749 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant1Type? Type749 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestServiceTier? Type750 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant2? Type750 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestStop? Type751 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant3? Type751 { get; set; } /// /// /// - public global::OpenRouter.ChatStreamOptions? Type752 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant3Type? Type752 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice0? Type753 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant4? Type753 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice1? Type754 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant4Type? Type754 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice2? Type755 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant5? Type755 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoiceFunction? Type756 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant5Type? Type756 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoiceType? Type757 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatDiscriminator? Type757 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoice? Type758 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatDiscriminatorType? Type758 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice? Type759 { get; set; } + public global::OpenRouter.ChatRequestServiceTier? Type759 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionToolOneOf0Function? Type760 { get; set; } + public global::OpenRouter.ChatRequestStop? Type760 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionToolOneOf0Type? Type761 { get; set; } + public global::OpenRouter.ChatStreamOptions? Type761 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionTool0? Type762 { get; set; } + public global::OpenRouter.ChatToolChoice0? Type762 { get; set; } /// /// /// - public global::OpenRouter.WebSearchConfig? Type763 { get; set; } + public global::OpenRouter.ChatToolChoice1? Type763 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterWebSearchServerToolType? Type764 { get; set; } + public global::OpenRouter.ChatToolChoice2? Type764 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterWebSearchServerTool? Type765 { get; set; } + public global::OpenRouter.ChatNamedToolChoiceFunction? Type765 { get; set; } /// /// /// - public global::OpenRouter.ChatWebSearchShorthandType? Type766 { get; set; } + public global::OpenRouter.ChatNamedToolChoiceType? Type766 { get; set; } /// /// /// - public global::OpenRouter.ChatWebSearchShorthand? Type767 { get; set; } + public global::OpenRouter.ChatNamedToolChoice? Type767 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionTool? Type768 { get; set; } + public global::OpenRouter.ChatToolChoice? Type768 { get; set; } /// /// /// - public global::OpenRouter.ChatRequest? Type769 { get; set; } + public global::OpenRouter.ChatFunctionToolOneOf0Function? Type769 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type770 { get; set; } + public global::OpenRouter.ChatFunctionToolOneOf0Type? Type770 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type771 { get; set; } + public global::OpenRouter.ChatFunctionTool0? Type771 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type772 { get; set; } + public global::OpenRouter.WebSearchConfig? Type772 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type773 { get; set; } + public global::OpenRouter.OpenRouterWebSearchServerToolType? Type773 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type774 { get; set; } + public global::OpenRouter.OpenRouterWebSearchServerTool? Type774 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type775 { get; set; } + public global::OpenRouter.ChatWebSearchShorthandType? Type775 { get; set; } /// /// /// - public global::OpenRouter.ChatFinishReasonEnum? Type776 { get; set; } + public global::OpenRouter.ChatWebSearchShorthand? Type776 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprobTopLogprobsItems? Type777 { get; set; } + public global::OpenRouter.ChatFunctionTool? Type777 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprob? Type778 { get; set; } + public global::OpenRouter.ChatRequest? Type778 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type779 { get; set; } + public global::System.Collections.Generic.Dictionary? Type779 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprobs? Type780 { get; set; } + public global::System.Collections.Generic.IList? Type780 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type781 { get; set; } + public global::System.Collections.Generic.IList? Type781 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantMessage? Type782 { get; set; } + public global::System.Collections.Generic.IList? Type782 { get; set; } /// /// /// - public global::OpenRouter.ChatChoice? Type783 { get; set; } + public global::OpenRouter.OneOf? Type783 { get; set; } /// /// /// - public global::OpenRouter.ChatResultObject? Type784 { get; set; } + public global::System.Collections.Generic.IList? Type784 { get; set; } /// /// /// - public global::OpenRouter.ChatUsageCompletionTokensDetails? Type785 { get; set; } + public global::OpenRouter.ChatFinishReasonEnum? Type785 { get; set; } /// /// /// - public global::OpenRouter.CostDetails? Type786 { get; set; } + public global::OpenRouter.ChatTokenLogprobTopLogprobsItems? Type786 { get; set; } /// /// /// - public global::OpenRouter.ChatUsagePromptTokensDetails? Type787 { get; set; } + public global::OpenRouter.ChatTokenLogprob? Type787 { get; set; } /// /// /// - public global::OpenRouter.ChatUsage? Type788 { get; set; } + public global::System.Collections.Generic.IList? Type788 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type789 { get; set; } + public global::OpenRouter.ChatTokenLogprobs? Type789 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type790 { get; set; } + public global::System.Collections.Generic.IList? Type790 { get; set; } /// /// /// - public global::OpenRouter.ChatResult? Type791 { get; set; } + public global::OpenRouter.ChatAssistantMessage? Type791 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type792 { get; set; } + public global::OpenRouter.ChatChoice? Type792 { get; set; } /// /// /// - public global::System.DateTimeOffset? Type793 { get; set; } + public global::OpenRouter.ChatResultObject? Type793 { get; set; } /// /// /// - public global::OpenRouter.CreditsGetResponsesContentApplicationJsonSchemaData? Type794 { get; set; } + public global::OpenRouter.ChatUsageCompletionTokensDetails? Type794 { get; set; } /// /// /// - public global::OpenRouter.CreditsGetCreditsResponse200? Type795 { get; set; } + public global::OpenRouter.CostDetails? Type795 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat? Type796 { get; set; } + public global::OpenRouter.ChatUsagePromptTokensDetails? Type796 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type? Type797 { get; set; } + public global::OpenRouter.ChatUsage? Type797 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0? Type798 { get; set; } + public global::OpenRouter.OneOf? Type798 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl? Type799 { get; set; } + public global::OpenRouter.OneOf? Type799 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type? Type800 { get; set; } + public global::OpenRouter.ChatResult? Type800 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1? Type801 { get; set; } + public global::System.Collections.Generic.IList? Type801 { get; set; } /// /// /// - public global::OpenRouter.MultimodalMedia? Type802 { get; set; } + public global::System.DateTimeOffset? Type802 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputAudioType? Type803 { get; set; } + public global::OpenRouter.CreditsGetResponsesContentApplicationJsonSchemaData? Type803 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputAudio? Type804 { get; set; } + public global::OpenRouter.CreditsGetCreditsResponse200? Type804 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputVideoType? Type805 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat? Type805 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputVideo? Type806 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type? Type806 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputFileType? Type807 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0? Type807 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputFile? Type808 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl? Type808 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems? Type809 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type? Type809 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items? Type810 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1? Type810 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type811 { get; set; } + public global::OpenRouter.MultimodalMedia? Type811 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type812 { get; set; } + public global::OpenRouter.ContentPartInputAudioType? Type812 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput? Type813 { get; set; } + public global::OpenRouter.ContentPartInputAudio? Type813 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type814 { get; set; } + public global::OpenRouter.ContentPartInputVideoType? Type814 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type815 { get; set; } + public global::OpenRouter.ContentPartInputVideo? Type815 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type816 { get; set; } + public global::OpenRouter.ContentPartInputFileType? Type816 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type817 { get; set; } + public global::OpenRouter.ContentPartInputFile? Type817 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type818 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems? Type818 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type819 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items? Type819 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type820 { get; set; } + public global::System.Collections.Generic.IList? Type820 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort? Type821 { get; set; } + public global::System.Collections.Generic.IList? Type821 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider? Type822 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput? Type822 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type823 { get; set; } + public global::System.Collections.Generic.IList? Type823 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type824 { get; set; } + public global::System.Collections.Generic.IList>? Type824 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type825 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type825 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type826 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type826 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding? Type827 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type827 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject? Type828 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type828 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems? Type829 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type829 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject? Type830 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort? Type830 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails? Type831 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider? Type831 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage? Type832 { get; set; } + public global::OpenRouter.OneOf? Type832 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200? Type833 { get; set; } + public global::System.Collections.Generic.IList? Type833 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type834 { get; set; } + public global::System.Collections.Generic.IList? Type834 { get; set; } /// /// /// - public global::OpenRouter.InputModality? Type835 { get; set; } + public global::System.Collections.Generic.IList? Type835 { get; set; } /// /// /// - public global::OpenRouter.ModelArchitectureInstructType? Type836 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding? Type836 { get; set; } /// /// /// - public global::OpenRouter.OutputModality? Type837 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject? Type837 { get; set; } /// /// /// - public global::OpenRouter.ModelGroup? Type838 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems? Type838 { get; set; } /// /// /// - public global::OpenRouter.ModelArchitecture? Type839 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject? Type839 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type840 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails? Type840 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type841 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage? Type841 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type842 { get; set; } + public global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200? Type842 { get; set; } /// /// /// - public global::OpenRouter.DefaultParameters? Type843 { get; set; } + public global::System.Collections.Generic.IList? Type843 { get; set; } /// /// /// - public global::OpenRouter.ModelLinks? Type844 { get; set; } + public global::OpenRouter.InputModality? Type844 { get; set; } /// /// /// - public global::OpenRouter.PerRequestLimits? Type845 { get; set; } + public global::OpenRouter.ModelArchitectureInstructType? Type845 { get; set; } /// /// /// - public global::OpenRouter.PublicPricing? Type846 { get; set; } + public global::OpenRouter.OutputModality? Type846 { get; set; } /// /// /// - public global::OpenRouter.Parameter? Type847 { get; set; } + public global::OpenRouter.ModelGroup? Type847 { get; set; } /// /// /// - public global::OpenRouter.TopProviderInfo? Type848 { get; set; } + public global::OpenRouter.ModelArchitecture? Type848 { get; set; } /// /// /// - public global::OpenRouter.Model? Type849 { get; set; } + public global::System.Collections.Generic.IList? Type849 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type850 { get; set; } + public global::OpenRouter.OneOf? Type850 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type851 { get; set; } + public global::System.Collections.Generic.IList? Type851 { get; set; } /// /// /// - public global::OpenRouter.ModelsListResponse? Type852 { get; set; } + public global::OpenRouter.DefaultParameters? Type852 { get; set; } /// /// /// - public global::OpenRouter.PercentileStats? Type853 { get; set; } + public global::OpenRouter.ModelLinks? Type853 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricing? Type854 { get; set; } + public global::OpenRouter.PerRequestLimits? Type854 { get; set; } /// /// /// - public global::OpenRouter.EndpointStatus? Type855 { get; set; } + public global::OpenRouter.PublicPricing? Type855 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointThroughputLast30M? Type856 { get; set; } + public global::OpenRouter.Parameter? Type856 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpoint? Type857 { get; set; } + public global::OpenRouter.TopProviderInfo? Type857 { get; set; } /// /// /// - public global::OpenRouter.EndpointsListEndpointsZdrResponse200? Type858 { get; set; } + public global::OpenRouter.Model? Type858 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type859 { get; set; } + public global::System.Collections.Generic.IList? Type859 { get; set; } /// /// /// - public global::OpenRouter.InstructType2? Type860 { get; set; } + public global::System.Collections.Generic.IList? Type860 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponseArchitecture? Type861 { get; set; } + public global::OpenRouter.ModelsListResponse? Type861 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type862 { get; set; } + public global::OpenRouter.PercentileStats? Type862 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponse? Type863 { get; set; } + public global::OpenRouter.PublicEndpointPricing? Type863 { get; set; } /// /// /// - public global::OpenRouter.EndpointsListEndpointsResponse200? Type864 { get; set; } + public global::OpenRouter.EndpointStatus? Type864 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponseDataApiType? Type865 { get; set; } + public global::OpenRouter.PublicEndpointThroughputLast30M? Type865 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponseProviderName? Type866 { get; set; } + public global::OpenRouter.PublicEndpoint? Type866 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponse? Type867 { get; set; } + public global::OpenRouter.EndpointsListEndpointsZdrResponse200? Type867 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponseData? Type868 { get; set; } + public global::System.Collections.Generic.IList? Type868 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type869 { get; set; } + public global::OpenRouter.InstructType2? Type869 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type870 { get; set; } + public global::OpenRouter.ListEndpointsResponseArchitecture? Type870 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponse? Type871 { get; set; } + public global::OpenRouter.OneOf? Type871 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInput0? Type872 { get; set; } + public global::OpenRouter.ListEndpointsResponse? Type872 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInput1? Type873 { get; set; } + public global::OpenRouter.EndpointsListEndpointsResponse200? Type873 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInput? Type874 { get; set; } + public global::OpenRouter.GenerationResponseDataApiType? Type874 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataOutput? Type875 { get; set; } + public global::OpenRouter.ProviderResponseProviderName? Type875 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentData? Type876 { get; set; } + public global::OpenRouter.ProviderResponse? Type876 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentResponse? Type877 { get; set; } + public global::OpenRouter.GenerationResponseData? Type877 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinAction? Type878 { get; set; } + public global::OpenRouter.OneOf? Type878 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinSlug? Type879 { get; set; } + public global::System.Collections.Generic.IList? Type879 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinEntry? Type880 { get; set; } + public global::OpenRouter.GenerationResponse? Type880 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterAction? Type881 { get; set; } + public global::OpenRouter.GenerationContentDataInput0? Type881 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterEntry? Type882 { get; set; } + public global::OpenRouter.GenerationContentDataInput1? Type882 { get; set; } /// /// /// - public global::OpenRouter.GuardrailInterval? Type883 { get; set; } + public global::OpenRouter.GenerationContentDataInput? Type883 { get; set; } /// /// /// - public global::OpenRouter.Guardrail? Type884 { get; set; } + public global::OpenRouter.GenerationContentDataOutput? Type884 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type885 { get; set; } + public global::OpenRouter.GenerationContentData? Type885 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type886 { get; set; } + public global::OpenRouter.GenerationContentResponse? Type886 { get; set; } /// /// /// - public global::System.Guid? Type887 { get; set; } + public global::OpenRouter.ContentFilterBuiltinAction? Type887 { get; set; } /// /// /// - public global::OpenRouter.ListGuardrailsResponse? Type888 { get; set; } + public global::OpenRouter.ContentFilterBuiltinSlug? Type888 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type889 { get; set; } + public global::OpenRouter.ContentFilterBuiltinEntry? Type889 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailRequest? Type890 { get; set; } + public global::OpenRouter.ContentFilterAction? Type890 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailResponseData? Type891 { get; set; } + public global::OpenRouter.ContentFilterEntry? Type891 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailResponse? Type892 { get; set; } + public global::OpenRouter.GuardrailInterval? Type892 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponseData? Type893 { get; set; } + public global::OpenRouter.Guardrail? Type893 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponse? Type894 { get; set; } + public global::System.Collections.Generic.IList? Type894 { get; set; } /// /// /// - public global::OpenRouter.DeleteGuardrailResponse? Type895 { get; set; } + public global::System.Collections.Generic.IList? Type895 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailRequest? Type896 { get; set; } + public global::OpenRouter.ListGuardrailsResponse? Type896 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponseData? Type897 { get; set; } + public global::System.Collections.Generic.IList? Type897 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponse? Type898 { get; set; } + public global::OpenRouter.CreateGuardrailRequest? Type898 { get; set; } /// /// /// - public global::OpenRouter.KeyAssignment? Type899 { get; set; } + public global::OpenRouter.CreateGuardrailResponseData? Type899 { get; set; } /// /// /// - public global::OpenRouter.ListKeyAssignmentsResponse? Type900 { get; set; } + public global::OpenRouter.CreateGuardrailResponse? Type900 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type901 { get; set; } + public global::OpenRouter.GetGuardrailResponseData? Type901 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignKeysRequest? Type902 { get; set; } + public global::OpenRouter.GetGuardrailResponse? Type902 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignKeysResponse? Type903 { get; set; } + public global::OpenRouter.DeleteGuardrailResponse? Type903 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignKeysRequest? Type904 { get; set; } + public global::OpenRouter.UpdateGuardrailRequest? Type904 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignKeysResponse? Type905 { get; set; } + public global::OpenRouter.UpdateGuardrailResponseData? Type905 { get; set; } /// /// /// - public global::OpenRouter.MemberAssignment? Type906 { get; set; } + public global::OpenRouter.UpdateGuardrailResponse? Type906 { get; set; } /// /// /// - public global::OpenRouter.ListMemberAssignmentsResponse? Type907 { get; set; } + public global::OpenRouter.KeyAssignment? Type907 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type908 { get; set; } + public global::OpenRouter.ListKeyAssignmentsResponse? Type908 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignMembersRequest? Type909 { get; set; } + public global::System.Collections.Generic.IList? Type909 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignMembersResponse? Type910 { get; set; } + public global::OpenRouter.BulkAssignKeysRequest? Type910 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignMembersRequest? Type911 { get; set; } + public global::OpenRouter.BulkAssignKeysResponse? Type911 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignMembersResponse? Type912 { get; set; } + public global::OpenRouter.BulkUnassignKeysRequest? Type912 { get; set; } /// /// /// - public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaDataRateLimit? Type913 { get; set; } + public global::OpenRouter.BulkUnassignKeysResponse? Type913 { get; set; } /// /// /// - public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaData? Type914 { get; set; } + public global::OpenRouter.MemberAssignment? Type914 { get; set; } /// /// /// - public global::System.DateTime? Type915 { get; set; } + public global::OpenRouter.ListMemberAssignmentsResponse? Type915 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysGetCurrentKeyResponse200? Type916 { get; set; } + public global::System.Collections.Generic.IList? Type916 { get; set; } /// /// /// - public global::OpenRouter.KeysGetResponsesContentApplicationJsonSchemaDataItems? Type917 { get; set; } + public global::OpenRouter.BulkAssignMembersRequest? Type917 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysListResponse200? Type918 { get; set; } + public global::OpenRouter.BulkAssignMembersResponse? Type918 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type919 { get; set; } + public global::OpenRouter.BulkUnassignMembersRequest? Type919 { get; set; } /// /// /// - public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? Type920 { get; set; } + public global::OpenRouter.BulkUnassignMembersResponse? Type920 { get; set; } /// /// /// - public global::OpenRouter.KeysPostResponsesContentApplicationJsonSchemaData? Type921 { get; set; } + public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaDataRateLimit? Type921 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysCreateKeysResponse201? Type922 { get; set; } + public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaData? Type922 { get; set; } /// /// /// - public global::OpenRouter.KeysHashGetResponsesContentApplicationJsonSchemaData? Type923 { get; set; } + public global::System.DateTime? Type923 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysGetKeyResponse200? Type924 { get; set; } + public global::OpenRouter.ApiKeysGetCurrentKeyResponse200? Type924 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysDeleteKeysResponse200? Type925 { get; set; } + public global::OpenRouter.KeysGetResponsesContentApplicationJsonSchemaDataItems? Type925 { get; set; } /// /// /// - public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? Type926 { get; set; } + public global::OpenRouter.ApiKeysListResponse200? Type926 { get; set; } /// /// /// - public global::OpenRouter.KeysHashPatchResponsesContentApplicationJsonSchemaData? Type927 { get; set; } + public global::System.Collections.Generic.IList? Type927 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysUpdateKeysResponse200? Type928 { get; set; } + public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? Type928 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensClearAtLeastType? Type929 { get; set; } + public global::OpenRouter.KeysPostResponsesContentApplicationJsonSchemaData? Type929 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensClearAtLeast? Type930 { get; set; } + public global::OpenRouter.ApiKeysCreateKeysResponse201? Type930 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? Type931 { get; set; } + public global::OpenRouter.KeysHashGetResponsesContentApplicationJsonSchemaData? Type931 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesKeepType? Type932 { get; set; } + public global::OpenRouter.ApiKeysGetKeyResponse200? Type932 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesKeep? Type933 { get; set; } + public global::OpenRouter.ApiKeysDeleteKeysResponse200? Type933 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? Type934 { get; set; } + public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? Type934 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1? Type935 { get; set; } + public global::OpenRouter.KeysHashPatchResponsesContentApplicationJsonSchemaData? Type935 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1Type? Type936 { get; set; } + public global::OpenRouter.ApiKeysUpdateKeysResponse200? Type936 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2? Type937 { get; set; } + public global::OpenRouter.AnthropicInputTokensClearAtLeastType? Type937 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2Type? Type938 { get; set; } + public global::OpenRouter.AnthropicInputTokensClearAtLeast? Type938 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminator? Type939 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? Type939 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorType? Type940 { get; set; } + public global::OpenRouter.AnthropicToolUsesKeepType? Type940 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type? Type941 { get; set; } + public global::OpenRouter.AnthropicToolUsesKeep? Type941 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems0? Type942 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? Type942 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingTurnsType? Type943 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1? Type943 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingTurns? Type944 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1Type? Type944 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type? Type945 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2? Type945 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep1? Type946 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2Type? Type946 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2? Type947 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminator? Type947 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep? Type948 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorType? Type948 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type? Type949 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type? Type949 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems1? Type950 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems0? Type950 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType? Type951 { get; set; } + public global::OpenRouter.AnthropicThinkingTurnsType? Type951 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Type952 { get; set; } + public global::OpenRouter.AnthropicThinkingTurns? Type952 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type? Type953 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type? Type953 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems2? Type954 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep1? Type954 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems? Type955 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2? Type955 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagement? Type956 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep? Type956 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type957 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type? Type957 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItems? Type958 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems1? Type958 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1? Type959 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType? Type959 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1Type? Type960 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Type960 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2? Type961 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type? Type961 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2Type? Type962 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems2? Type962 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3? Type963 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems? Type963 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3Type? Type964 { get; set; } + public global::OpenRouter.MessagesRequestContextManagement? Type964 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4? Type965 { get; set; } + public global::System.Collections.Generic.IList? Type965 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4Type? Type966 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItems? Type966 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5? Type967 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1? Type967 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5Type? Type968 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1Type? Type968 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminator? Type969 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2? Type969 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminatorType? Type970 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2Type? Type970 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamType? Type971 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3? Type971 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParam? Type972 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3Type? Type972 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type973 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4? Type973 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageMimeType? Type974 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4Type? Type974 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlImageSourceType? Type975 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5? Type975 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSource? Type976 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5Type? Type976 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceVariant1? Type977 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminator? Type977 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceVariant1Type? Type978 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminatorType? Type978 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceVariant2? Type979 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamType? Type979 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminator? Type980 { get; set; } + public global::OpenRouter.AnthropicTextBlockParam? Type980 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminatorType? Type981 { get; set; } + public global::System.Collections.Generic.IList? Type981 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamType? Type982 { get; set; } + public global::OpenRouter.AnthropicImageMimeType? Type982 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParam? Type983 { get; set; } + public global::OpenRouter.AnthropicUrlImageSourceType? Type983 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamCitations? Type984 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSource? Type984 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSourceMediaType? Type985 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceVariant1? Type985 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSourceType? Type986 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceVariant1Type? Type986 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSource? Type987 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceVariant2? Type987 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSourceMediaType? Type988 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminator? Type988 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSourceType? Type989 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminatorType? Type989 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSource? Type990 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamType? Type990 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items? Type991 { get; set; } + public global::OpenRouter.AnthropicImageBlockParam? Type991 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1? Type992 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamCitations? Type992 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2? Type993 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSourceMediaType? Type993 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminator? Type994 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSourceType? Type994 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType? Type995 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSource? Type995 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type996 { get; set; } + public global::OpenRouter.AnthropicPlainTextSourceMediaType? Type996 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content? Type997 { get; set; } + public global::OpenRouter.AnthropicPlainTextSourceType? Type997 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type? Type998 { get; set; } + public global::OpenRouter.AnthropicPlainTextSource? Type998 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSource2? Type999 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items? Type999 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlPdfSourceType? Type1000 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1? Type1000 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlPdfSource? Type1001 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2? Type1001 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSource? Type1002 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminator? Type1002 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamType? Type1003 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType? Type1003 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParam? Type1004 { get; set; } + public global::System.Collections.Generic.IList? Type1004 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1005 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content? Type1005 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type? Type1006 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type? Type1006 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items3? Type1007 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSource2? Type1007 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type? Type1008 { get; set; } + public global::OpenRouter.AnthropicUrlPdfSourceType? Type1008 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2? Type1009 { get; set; } + public global::OpenRouter.AnthropicUrlPdfSource? Type1009 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParamCitations? Type1010 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSource? Type1010 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParamType? Type1011 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamType? Type1011 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParam? Type1012 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParam? Type1012 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1013 { get; set; } + public global::OpenRouter.OneOf? Type1013 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items? Type1014 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type? Type1014 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1015 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items3? Type1015 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content? Type1016 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type? Type1016 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type? Type1017 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2? Type1017 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items4? Type1018 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParamCitations? Type1018 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type? Type1019 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParamType? Type1019 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items5? Type1020 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParam? Type1020 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type? Type1021 { get; set; } + public global::System.Collections.Generic.IList? Type1021 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items6? Type1022 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items? Type1022 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type? Type1023 { get; set; } + public global::System.Collections.Generic.IList? Type1023 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items7? Type1024 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content? Type1024 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultBlockParamType? Type1025 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type? Type1025 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultBlockParam? Type1026 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items4? Type1026 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1027 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type? Type1027 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode? Type1028 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items5? Type1028 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type? Type1029 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type? Type1029 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content1? Type1030 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items6? Type1030 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content? Type1031 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type? Type1031 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type? Type1032 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items7? Type1032 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items8? Type1033 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultBlockParamType? Type1033 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type? Type1034 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultBlockParam? Type1034 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items10? Type1035 { get; set; } + public global::System.Collections.Generic.IList? Type1035 { get; set; } /// /// /// - public global::OpenRouter.MessagesAdvisorToolResultBlockType? Type1036 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode? Type1036 { get; set; } /// /// /// - public global::OpenRouter.MessagesAdvisorToolResultBlock? Type1037 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type? Type1037 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items? Type1038 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content1? Type1038 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1039 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content? Type1039 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContent? Type1040 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type? Type1040 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamRole? Type1041 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items8? Type1041 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParam? Type1042 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type? Type1042 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestMetadata? Type1043 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items10? Type1043 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigEffort? Type1044 { get; set; } + public global::OpenRouter.MessagesAdvisorToolResultBlockType? Type1044 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormatType? Type1045 { get; set; } + public global::OpenRouter.MessagesAdvisorToolResultBlock? Type1045 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormat? Type1046 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items? Type1046 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigTaskBudgetType? Type1047 { get; set; } + public global::System.Collections.Generic.IList? Type1047 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigTaskBudget? Type1048 { get; set; } + public global::OpenRouter.MessagesMessageParamContent? Type1048 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfig? Type1049 { get; set; } + public global::OpenRouter.MessagesMessageParamRole? Type1049 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1050 { get; set; } + public global::OpenRouter.MessagesMessageParam? Type1050 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1051 { get; set; } + public global::OpenRouter.MessagesRequestMetadata? Type1051 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1052 { get; set; } + public global::OpenRouter.MessagesOutputConfigEffort? Type1052 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItems? Type1053 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormatType? Type1053 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant1? Type1054 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormat? Type1054 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant1Id? Type1055 { get; set; } + public global::OpenRouter.MessagesOutputConfigTaskBudgetType? Type1055 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant2? Type1056 { get; set; } + public global::OpenRouter.MessagesOutputConfigTaskBudget? Type1056 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant2Id? Type1057 { get; set; } + public global::OpenRouter.MessagesOutputConfig? Type1057 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant3? Type1058 { get; set; } + public global::OpenRouter.OneOf? Type1058 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant3Id? Type1059 { get; set; } + public global::OpenRouter.OneOf? Type1059 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant4? Type1060 { get; set; } + public global::OpenRouter.OneOf? Type1060 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant4Id? Type1061 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItems? Type1061 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant5? Type1062 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant1? Type1062 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant5Id? Type1063 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant1Id? Type1063 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant6? Type1064 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant2? Type1064 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant6Id? Type1065 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant2Id? Type1065 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant7? Type1066 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant3? Type1066 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant7Id? Type1067 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant3Id? Type1067 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant8? Type1068 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant4? Type1068 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsDiscriminator? Type1069 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant4Id? Type1069 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId? Type1070 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant5? Type1070 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSpeed? Type1071 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant5Id? Type1071 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestSystem? Type1072 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant6? Type1072 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingDisplay? Type1073 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant6Id? Type1073 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type1074 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant7? Type1074 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking0? Type1075 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant7Id? Type1075 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type1076 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant8? Type1076 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking1? Type1077 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsDiscriminator? Type1077 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type1078 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId? Type1078 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking2? Type1079 { get; set; } + public global::OpenRouter.AnthropicSpeed? Type1079 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking? Type1080 { get; set; } + public global::OpenRouter.MessagesRequestSystem? Type1080 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type1081 { get; set; } + public global::OpenRouter.AnthropicThinkingDisplay? Type1081 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice0? Type1082 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type1082 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type1083 { get; set; } + public global::OpenRouter.MessagesRequestThinking0? Type1083 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice1? Type1084 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type1084 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type1085 { get; set; } + public global::OpenRouter.MessagesRequestThinking1? Type1085 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice2? Type1086 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type1086 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type1087 { get; set; } + public global::OpenRouter.MessagesRequestThinking2? Type1087 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice3? Type1088 { get; set; } + public global::OpenRouter.MessagesRequestThinking? Type1088 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice? Type1089 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type1089 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type1090 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice0? Type1090 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type1091 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type1091 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems0? Type1092 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice1? Type1092 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type1093 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type1093 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type1094 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice2? Type1094 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems1? Type1095 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type1095 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type1096 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice3? Type1096 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type1097 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice? Type1097 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems2? Type1098 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type1098 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type1099 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type1099 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type1100 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems0? Type1100 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type1101 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type1101 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type1102 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type1102 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems3? Type1103 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems1? Type1103 { get; set; } /// /// /// - public global::OpenRouter.AnthropicAllowedCallersItems? Type1104 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type1104 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1105 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type1105 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type1106 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems2? Type1106 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type1107 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type1107 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems4? Type1108 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type1108 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType? Type1109 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type1109 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching? Type1110 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type1110 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Name? Type1111 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems3? Type1111 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Type? Type1112 { get; set; } + public global::OpenRouter.AnthropicAllowedCallersItems? Type1112 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems5? Type1113 { get; set; } + public global::System.Collections.Generic.IList? Type1113 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems11? Type1114 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type1114 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems? Type1115 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type1115 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequest? Type1116 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems4? Type1116 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1117 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType? Type1117 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1118 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching? Type1118 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1119 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5Name? Type1119 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1120 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5Type? Type1120 { get; set; } /// /// /// - public global::OpenRouter.AnthropicContainer? Type1121 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems5? Type1121 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type1122 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems11? Type1122 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type1123 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems? Type1123 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type1124 { get; set; } + public global::OpenRouter.MessagesRequest? Type1124 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type1125 { get; set; } + public global::OpenRouter.OneOf? Type1125 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type1126 { get; set; } + public global::System.Collections.Generic.IList? Type1126 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContent? Type1127 { get; set; } + public global::System.Collections.Generic.IList? Type1127 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentVariant1? Type1128 { get; set; } + public global::System.Collections.Generic.IList? Type1128 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1129 { get; set; } + public global::OpenRouter.AnthropicContainer? Type1129 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentVariant2? Type1130 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type1130 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminator? Type1131 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type1131 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminatorType? Type1132 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type1132 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutputType? Type1133 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type1133 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutput? Type1134 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type1134 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionResultType? Type1135 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContent? Type1135 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolErrorCode? Type1136 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentVariant1? Type1136 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type1137 { get; set; } + public global::System.Collections.Generic.IList? Type1137 { get; set; } /// /// /// - public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type1138 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentVariant2? Type1138 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContent? Type1139 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminator? Type1139 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentVariant1? Type1140 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminatorType? Type1140 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1141 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutputType? Type1141 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentVariant2? Type1142 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutput? Type1142 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentVariant3? Type1143 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionResultType? Type1143 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentDiscriminator? Type1144 { get; set; } + public global::OpenRouter.AnthropicServerToolErrorCode? Type1144 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentDiscriminatorType? Type1145 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type1145 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCaller? Type1146 { get; set; } + public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type1146 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant1? Type1147 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContent? Type1147 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant1Type? Type1148 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentVariant1? Type1148 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant2? Type1149 { get; set; } + public global::System.Collections.Generic.IList? Type1149 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant2Type? Type1150 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentVariant2? Type1150 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant3? Type1151 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentVariant3? Type1151 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant3Type? Type1152 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentDiscriminator? Type1152 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerDiscriminator? Type1153 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentDiscriminatorType? Type1153 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? Type1154 { get; set; } + public global::OpenRouter.ORAnthropicNullableCaller? Type1154 { get; set; } /// /// /// - public global::OpenRouter.OrAnthropicServerToolUseBlockType? Type1155 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant1? Type1155 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitation? Type1156 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant1Type? Type1156 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant1? Type1157 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant2? Type1157 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant1Type? Type1158 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant2Type? Type1158 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant2? Type1159 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant3? Type1159 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant2Type? Type1160 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant3Type? Type1160 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant3? Type1161 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerDiscriminator? Type1161 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant3Type? Type1162 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? Type1162 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant4? Type1163 { get; set; } + public global::OpenRouter.OrAnthropicServerToolUseBlockType? Type1163 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant4Type? Type1164 { get; set; } + public global::OpenRouter.AnthropicTextCitation? Type1164 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant5? Type1165 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant1? Type1165 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant5Type? Type1166 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant1Type? Type1166 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationDiscriminator? Type1167 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant2? Type1167 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationDiscriminatorType? Type1168 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant2Type? Type1168 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type1169 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant3? Type1169 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type1170 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant3Type? Type1170 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type1171 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant4? Type1171 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type1172 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant4Type? Type1172 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type1173 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant5? Type1173 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type1174 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant5Type? Type1174 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type1175 { get; set; } + public global::OpenRouter.AnthropicTextCitationDiscriminator? Type1175 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant1? Type1176 { get; set; } + public global::OpenRouter.AnthropicTextCitationDiscriminatorType? Type1176 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant2? Type1177 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type1177 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant3? Type1178 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type1178 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant4? Type1179 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type1179 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminator? Type1180 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type1180 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminatorType? Type1181 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type1181 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultErrorType? Type1182 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type1182 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReferenceType? Type1183 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type1183 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReference? Type1184 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant1? Type1184 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultType? Type1185 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant2? Type1185 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContent? Type1186 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant3? Type1186 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentVariant1? Type1187 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant4? Type1187 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentVariant2? Type1188 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminator? Type1188 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1189 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminatorType? Type1189 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentDiscriminator? Type1190 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultErrorType? Type1190 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentDiscriminatorType? Type1191 { get; set; } + public global::OpenRouter.AnthropicToolReferenceType? Type1191 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCaller? Type1192 { get; set; } + public global::OpenRouter.AnthropicToolReference? Type1192 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant1? Type1193 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultType? Type1193 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant1Type? Type1194 { get; set; } + public global::OpenRouter.AnthropicToolSearchContent? Type1194 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant2? Type1195 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentVariant1? Type1195 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant2Type? Type1196 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentVariant2? Type1196 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant3? Type1197 { get; set; } + public global::System.Collections.Generic.IList? Type1197 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant3Type? Type1198 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentDiscriminator? Type1198 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerDiscriminator? Type1199 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentDiscriminatorType? Type1199 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerDiscriminatorType? Type1200 { get; set; } + public global::OpenRouter.AnthropicCaller? Type1200 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationsConfig? Type1201 { get; set; } + public global::OpenRouter.AnthropicCallerVariant1? Type1201 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockSource? Type1202 { get; set; } + public global::OpenRouter.AnthropicCallerVariant1Type? Type1202 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockType? Type1203 { get; set; } + public global::OpenRouter.AnthropicCallerVariant2? Type1203 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlock? Type1204 { get; set; } + public global::OpenRouter.AnthropicCallerVariant2Type? Type1204 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type1205 { get; set; } + public global::OpenRouter.AnthropicCallerVariant3? Type1205 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type1206 { get; set; } + public global::OpenRouter.AnthropicCallerVariant3Type? Type1206 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContent? Type1207 { get; set; } + public global::OpenRouter.AnthropicCallerDiscriminator? Type1207 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentVariant1? Type1208 { get; set; } + public global::OpenRouter.AnthropicCallerDiscriminatorType? Type1208 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentVariant1Type? Type1209 { get; set; } + public global::OpenRouter.AnthropicCitationsConfig? Type1209 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentVariant2? Type1210 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockSource? Type1210 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentDiscriminator? Type1211 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockType? Type1211 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentDiscriminatorType? Type1212 { get; set; } + public global::OpenRouter.AnthropicDocumentBlock? Type1212 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultType? Type1213 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type1213 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResult? Type1214 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type1214 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1215 { get; set; } + public global::OpenRouter.AnthropicWebFetchContent? Type1215 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type1216 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentVariant1? Type1216 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type1217 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentVariant1Type? Type1217 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultError? Type1218 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentVariant2? Type1218 { get; set; } /// /// /// - public global::OpenRouter.OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent? Type1219 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentDiscriminator? Type1219 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlock? Type1220 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentDiscriminatorType? Type1220 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant1? Type1221 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultType? Type1221 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant1Type? Type1222 { get; set; } + public global::OpenRouter.AnthropicWebSearchResult? Type1222 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant2? Type1223 { get; set; } + public global::System.Collections.Generic.IList? Type1223 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant2Type? Type1224 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type1224 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant3? Type1225 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type1225 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant3Type? Type1226 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultError? Type1226 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant4? Type1227 { get; set; } + public global::OpenRouter.OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent? Type1227 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant4Type? Type1228 { get; set; } + public global::OpenRouter.ORAnthropicContentBlock? Type1228 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant5? Type1229 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant1? Type1229 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant5Type? Type1230 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant1Type? Type1230 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant6? Type1231 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant2? Type1231 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant6Type? Type1232 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant2Type? Type1232 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant7? Type1233 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant3? Type1233 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant8? Type1234 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant3Type? Type1234 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant8Type? Type1235 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant4? Type1235 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1236 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant4Type? Type1236 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant9? Type1237 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant5? Type1237 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant9Type? Type1238 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant5Type? Type1238 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant10? Type1239 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant6? Type1239 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant10Type? Type1240 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant6Type? Type1240 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant11? Type1241 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant7? Type1241 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant11Type? Type1242 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant8? Type1242 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant12? Type1243 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant8Type? Type1243 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant12Type? Type1244 { get; set; } + public global::System.Collections.Generic.IList? Type1244 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant13? Type1245 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant9? Type1245 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant13Type? Type1246 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant9Type? Type1246 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant14? Type1247 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant10? Type1247 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant14Type? Type1248 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant10Type? Type1248 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockDiscriminator? Type1249 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant11? Type1249 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockDiscriminatorType? Type1250 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant11Type? Type1250 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultRole? Type1251 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant12? Type1251 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetailsCategory? Type1252 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant12Type? Type1252 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetailsType? Type1253 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant13? Type1253 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetails? Type1254 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant13Type? Type1254 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1255 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant14? Type1255 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicStopReason? Type1256 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant14Type? Type1256 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultType? Type1257 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockDiscriminator? Type1257 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCacheCreation? Type1258 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockDiscriminatorType? Type1258 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolUsage? Type1259 { get; set; } + public global::OpenRouter.MessagesResultRole? Type1259 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServiceTier? Type1260 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetailsCategory? Type1260 { get; set; } /// /// /// - public global::OpenRouter.AnthropicIterationCacheCreation? Type1261 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetailsType? Type1261 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIterationType? Type1262 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetails? Type1262 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIteration? Type1263 { get; set; } + public global::OpenRouter.OneOf? Type1263 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIterationType? Type1264 { get; set; } + public global::OpenRouter.ORAnthropicStopReason? Type1264 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIteration? Type1265 { get; set; } + public global::OpenRouter.MessagesResultType? Type1265 { get; set; } /// /// /// - public global::OpenRouter.AnthropicAdvisorMessageUsageIterationType? Type1266 { get; set; } + public global::OpenRouter.AnthropicCacheCreation? Type1266 { get; set; } /// /// /// - public global::OpenRouter.AnthropicAdvisorMessageUsageIteration? Type1267 { get; set; } + public global::OpenRouter.AnthropicServerToolUsage? Type1267 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUnknownUsageIteration? Type1268 { get; set; } + public global::OpenRouter.AnthropicServiceTier? Type1268 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUsageIteration? Type1269 { get; set; } + public global::OpenRouter.AnthropicIterationCacheCreation? Type1269 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultUsage? Type1270 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIterationType? Type1270 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1271 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIteration? Type1271 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultContextManagementAppliedEditsItems? Type1272 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIterationType? Type1272 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultContextManagement? Type1273 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIteration? Type1273 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1274 { get; set; } + public global::OpenRouter.AnthropicAdvisorMessageUsageIterationType? Type1274 { get; set; } /// /// /// - public global::OpenRouter.MessagesResult? Type1275 { get; set; } + public global::OpenRouter.AnthropicAdvisorMessageUsageIteration? Type1275 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1276 { get; set; } + public global::OpenRouter.AnthropicUnknownUsageIteration? Type1276 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1277 { get; set; } + public global::OpenRouter.AnthropicUsageIteration? Type1277 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorDetail? Type1278 { get; set; } + public global::OpenRouter.MessagesResultUsage? Type1278 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponseType? Type1279 { get; set; } + public global::System.Collections.Generic.IList? Type1279 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponse? Type1280 { get; set; } + public global::OpenRouter.MessagesResultContextManagementAppliedEditsItems? Type1280 { get; set; } /// /// /// - public global::OpenRouter.ModelsGetParametersCategory? Type1281 { get; set; } + public global::OpenRouter.MessagesResultContextManagement? Type1281 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponseData? Type1282 { get; set; } + public global::System.Collections.Generic.IList? Type1282 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponse? Type1283 { get; set; } + public global::OpenRouter.MessagesResult? Type1283 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type1284 { get; set; } + public global::System.Collections.Generic.IList? Type1284 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type1285 { get; set; } + public global::OpenRouter.OneOf? Type1285 { get; set; } /// /// /// - public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type1286 { get; set; } + public global::OpenRouter.MessagesErrorDetail? Type1286 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1287 { get; set; } + public global::OpenRouter.MessagesErrorResponseType? Type1287 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type1288 { get; set; } + public global::OpenRouter.MessagesErrorResponse? Type1288 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type1289 { get; set; } + public global::OpenRouter.ModelsGetParametersCategory? Type1289 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type1290 { get; set; } + public global::OpenRouter.ModelsCountResponseData? Type1290 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1291 { get; set; } + public global::OpenRouter.ModelsCountResponse? Type1291 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1292 { get; set; } + public global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig? Type1292 { get; set; } /// /// /// - public global::OpenRouter.ProvidersListProvidersResponse200? Type1293 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic? Type1293 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1294 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField? Type1294 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type1295 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator? Type1295 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type1296 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue? Type1296 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type1297 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems? Type1297 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type1298 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems? Type1298 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type1299 { get; set; } + public global::System.Collections.Generic.IList? Type1299 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort? Type1300 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfig? Type1300 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type1301 { get; set; } + public global::System.Collections.Generic.IList? Type1301 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1302 { get; set; } + public global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig? Type1302 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1303 { get; set; } + public global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig? Type1303 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1304 { get; set; } + public global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig? Type1304 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1305 { get; set; } + public global::OpenRouter.ObservabilityGrafanaDestinationConfig? Type1305 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type1306 { get; set; } + public global::OpenRouter.ObservabilityGrafanaDestinationType? Type1306 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type1307 { get; set; } + public global::OpenRouter.ObservabilityLangfuseDestinationConfig? Type1307 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type1308 { get; set; } + public global::OpenRouter.ObservabilityLangfuseDestinationType? Type1308 { get; set; } /// /// /// - public global::OpenRouter.RerankCreateRerankResponse200? Type1309 { get; set; } + public global::OpenRouter.ObservabilityLangsmithDestinationConfig? Type1309 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1310 { get; set; } + public global::OpenRouter.ObservabilityLangsmithDestinationType? Type1310 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestAspectRatio? Type1311 { get; set; } + public global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion? Type1311 { get; set; } /// /// /// - public global::OpenRouter.FrameImageImageUrl? Type1312 { get; set; } + public global::OpenRouter.ObservabilityNewrelicDestinationConfig? Type1312 { get; set; } /// /// /// - public global::OpenRouter.FrameImageType? Type1313 { get; set; } + public global::OpenRouter.ObservabilityNewrelicDestinationType? Type1313 { get; set; } /// /// /// - public global::OpenRouter.FrameImageFrameType? Type1314 { get; set; } + public global::OpenRouter.ObservabilityOpikDestinationConfig? Type1314 { get; set; } /// /// /// - public global::OpenRouter.FrameImage? Type1315 { get; set; } + public global::OpenRouter.ObservabilityOpikDestinationType? Type1315 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImageImageUrl? Type1316 { get; set; } + public global::OpenRouter.ObservabilityOtelCollectorDestinationConfig? Type1316 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImageType? Type1317 { get; set; } + public global::OpenRouter.ObservabilityOtelCollectorDestinationType? Type1317 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImage? Type1318 { get; set; } + public global::OpenRouter.ObservabilityPosthogDestinationConfig? Type1318 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProviderOptions? Type1319 { get; set; } + public global::OpenRouter.ObservabilityPosthogDestinationType? Type1319 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProvider? Type1320 { get; set; } + public global::OpenRouter.ObservabilityRampDestinationConfig? Type1320 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestResolution? Type1321 { get; set; } + public global::OpenRouter.ObservabilityRampDestinationType? Type1321 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequest? Type1322 { get; set; } + public global::OpenRouter.ObservabilityS3DestinationConfig? Type1322 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1323 { get; set; } + public global::OpenRouter.ObservabilityS3DestinationType? Type1323 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1324 { get; set; } + public global::OpenRouter.ObservabilitySentryDestinationConfig? Type1324 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponseStatus? Type1325 { get; set; } + public global::OpenRouter.ObservabilitySentryDestinationType? Type1325 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationUsage? Type1326 { get; set; } + public global::OpenRouter.ObservabilitySnowflakeDestinationConfig? Type1326 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponse? Type1327 { get; set; } + public global::OpenRouter.ObservabilitySnowflakeDestinationType? Type1327 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1328 { get; set; } + public global::OpenRouter.ObservabilityWeaveDestinationConfig? Type1328 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedFrameImagesItems? Type1329 { get; set; } + public global::OpenRouter.ObservabilityWeaveDestinationType? Type1329 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1330 { get; set; } + public global::OpenRouter.ObservabilityWebhookDestinationConfigMethod? Type1330 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedSizesItems? Type1331 { get; set; } + public global::OpenRouter.ObservabilityWebhookDestinationConfig? Type1331 { get; set; } /// /// /// - public global::OpenRouter.VideoModel? Type1332 { get; set; } + public global::OpenRouter.ObservabilityWebhookDestinationType? Type1332 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1333 { get; set; } + public global::OpenRouter.ObservabilityDestination? Type1333 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1334 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant1? Type1334 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1335 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant1Type? Type1335 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1336 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant2? Type1336 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1337 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant2Type? Type1337 { get; set; } /// /// /// - public global::OpenRouter.VideoModelsListResponse? Type1338 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant3? Type1338 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1339 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant3Type? Type1339 { get; set; } /// /// /// - public global::OpenRouter.Workspace? Type1340 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant4? Type1340 { get; set; } /// /// /// - public global::OpenRouter.ListWorkspacesResponse? Type1341 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant4Type? Type1341 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1342 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant5? Type1342 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceRequest? Type1343 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant6? Type1343 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceResponseData? Type1344 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant7? Type1344 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceResponse? Type1345 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant8? Type1345 { get; set; } /// /// /// - public global::OpenRouter.GetWorkspaceResponseData? Type1346 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant9? Type1346 { get; set; } /// /// /// - public global::OpenRouter.GetWorkspaceResponse? Type1347 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant10? Type1347 { get; set; } /// /// /// - public global::OpenRouter.DeleteWorkspaceResponse? Type1348 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant11? Type1348 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceRequest? Type1349 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant12? Type1349 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceResponseData? Type1350 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant13? Type1350 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceResponse? Type1351 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant14? Type1351 { get; set; } /// /// /// - public global::OpenRouter.BulkAddWorkspaceMembersRequest? Type1352 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant15? Type1352 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceMemberRole? Type1353 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant16? Type1353 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceMember? Type1354 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant17? Type1354 { get; set; } /// /// /// - public global::OpenRouter.BulkAddWorkspaceMembersResponse? Type1355 { get; set; } + public global::OpenRouter.ObservabilityDestinationDiscriminator? Type1355 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1356 { get; set; } + public global::OpenRouter.ObservabilityDestinationDiscriminatorType? Type1356 { get; set; } /// /// /// - public global::OpenRouter.BulkRemoveWorkspaceMembersRequest? Type1357 { get; set; } + public global::OpenRouter.ListObservabilityDestinationsResponse? Type1357 { get; set; } /// /// /// - public global::OpenRouter.BulkRemoveWorkspaceMembersResponse? Type1358 { get; set; } + public global::System.Collections.Generic.IList? Type1358 { get; set; } /// /// /// - public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1359 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseData? Type1359 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1360 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1? Type1360 { get; set; } /// /// /// - public global::OpenRouter.CreateAuthKeysCodeRequest? Type1361 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type? Type1361 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsRequest? Type1362 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2? Type1362 { get; set; } /// /// /// - public global::OpenRouter.CreateKeysRequest? Type1363 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type? Type1363 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1364 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3? Type1364 { get; set; } /// /// /// - public global::OpenRouter.UpdateKeysRequest? Type1365 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type? Type1365 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1366 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4? Type1366 { get; set; } /// /// /// - public global::OpenRouter.CreateRerankRequest? Type1367 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type? Type1367 { get; set; } /// /// /// - public byte[]? Type1368 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5? Type1368 { get; set; } + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6? Type1369 { get; set; } + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7? Type1370 { get; set; } + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8? Type1371 { get; set; } + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9? Type1372 { get; set; } + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10? Type1373 { get; set; } + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11? Type1374 { get; set; } + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12? Type1375 { get; set; } + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13? Type1376 { get; set; } + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14? Type1377 { get; set; } + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15? Type1378 { get; set; } + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16? Type1379 { get; set; } + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17? Type1380 { get; set; } + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator? Type1381 { get; set; } + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType? Type1382 { get; set; } + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponse? Type1383 { get; set; } + /// + /// + /// + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type1384 { get; set; } + /// + /// + /// + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type1385 { get; set; } + /// + /// + /// + public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type1386 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1387 { get; set; } + /// + /// + /// + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type1388 { get; set; } + /// + /// + /// + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type1389 { get; set; } + /// + /// + /// + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type1390 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1391 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1392 { get; set; } + /// + /// + /// + public global::OpenRouter.ProvidersListProvidersResponse200? Type1393 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1394 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type1395 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type1396 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type1397 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type1398 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type1399 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort? Type1400 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type1401 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1402 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1403 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1404 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1405 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type1406 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type1407 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type1408 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankCreateRerankResponse200? Type1409 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1410 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequestAspectRatio? Type1411 { get; set; } + /// + /// + /// + public global::OpenRouter.FrameImageImageUrl? Type1412 { get; set; } + /// + /// + /// + public global::OpenRouter.FrameImageType? Type1413 { get; set; } + /// + /// + /// + public global::OpenRouter.FrameImageFrameType? Type1414 { get; set; } + /// + /// + /// + public global::OpenRouter.FrameImage? Type1415 { get; set; } + /// + /// + /// + public global::OpenRouter.ContentPartImageImageUrl? Type1416 { get; set; } + /// + /// + /// + public global::OpenRouter.ContentPartImageType? Type1417 { get; set; } + /// + /// + /// + public global::OpenRouter.ContentPartImage? Type1418 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequestProviderOptions? Type1419 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequestProvider? Type1420 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequestResolution? Type1421 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequest? Type1422 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1423 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1424 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationResponseStatus? Type1425 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationUsage? Type1426 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationResponse? Type1427 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1428 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelSupportedFrameImagesItems? Type1429 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1430 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelSupportedSizesItems? Type1431 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModel? Type1432 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1433 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1434 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1435 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1436 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1437 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelsListResponse? Type1438 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1439 { get; set; } + /// + /// + /// + public global::OpenRouter.Workspace? Type1440 { get; set; } + /// + /// + /// + public global::OpenRouter.ListWorkspacesResponse? Type1441 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1442 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateWorkspaceRequest? Type1443 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateWorkspaceResponseData? Type1444 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateWorkspaceResponse? Type1445 { get; set; } + /// + /// + /// + public global::OpenRouter.GetWorkspaceResponseData? Type1446 { get; set; } + /// + /// + /// + public global::OpenRouter.GetWorkspaceResponse? Type1447 { get; set; } + /// + /// + /// + public global::OpenRouter.DeleteWorkspaceResponse? Type1448 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateWorkspaceRequest? Type1449 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateWorkspaceResponseData? Type1450 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateWorkspaceResponse? Type1451 { get; set; } + /// + /// + /// + public global::OpenRouter.BulkAddWorkspaceMembersRequest? Type1452 { get; set; } + /// + /// + /// + public global::OpenRouter.WorkspaceMemberRole? Type1453 { get; set; } + /// + /// + /// + public global::OpenRouter.WorkspaceMember? Type1454 { get; set; } + /// + /// + /// + public global::OpenRouter.BulkAddWorkspaceMembersResponse? Type1455 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1456 { get; set; } + /// + /// + /// + public global::OpenRouter.BulkRemoveWorkspaceMembersRequest? Type1457 { get; set; } + /// + /// + /// + public global::OpenRouter.BulkRemoveWorkspaceMembersResponse? Type1458 { get; set; } + /// + /// + /// + public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1459 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1460 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateAuthKeysCodeRequest? Type1461 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateEmbeddingsRequest? Type1462 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateKeysRequest? Type1463 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1464 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateKeysRequest? Type1465 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1466 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateRerankRequest? Type1467 { get; set; } + /// + /// + /// + public byte[]? Type1468 { get; set; } /// /// @@ -5697,274 +6097,290 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - 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? ListType50 { 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? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType53 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType54 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType51 { get; set; } + public global::System.Collections.Generic.List? ListType55 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType52 { get; set; } + public global::System.Collections.Generic.List? ListType56 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType53 { get; set; } + public global::System.Collections.Generic.List? ListType57 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType54 { get; set; } + public global::System.Collections.Generic.List? ListType58 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType55 { get; set; } + public global::System.Collections.Generic.List? ListType59 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType56 { get; set; } + public global::System.Collections.Generic.List? ListType60 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType57 { get; set; } + public global::System.Collections.Generic.List? ListType61 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType58 { get; set; } + public global::System.Collections.Generic.List? ListType62 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType59 { get; set; } + public global::System.Collections.Generic.List? ListType63 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType60 { get; set; } + public global::System.Collections.Generic.List>? ListType64 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType61 { get; set; } + public global::System.Collections.Generic.List? ListType65 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType62 { get; set; } + public global::System.Collections.Generic.List? ListType66 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType63 { get; set; } + public global::System.Collections.Generic.List? ListType67 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType64 { get; set; } + public global::System.Collections.Generic.List? ListType68 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType65 { get; set; } + public global::System.Collections.Generic.List? ListType69 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType66 { get; set; } + public global::System.Collections.Generic.List? ListType70 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType67 { get; set; } + public global::System.Collections.Generic.List? ListType71 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType68 { get; set; } + public global::System.Collections.Generic.List? ListType72 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType69 { get; set; } + public global::System.Collections.Generic.List? ListType73 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType70 { get; set; } + public global::System.Collections.Generic.List? ListType74 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType71 { get; set; } + public global::System.Collections.Generic.List? ListType75 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType76 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType77 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType74 { get; set; } + public global::System.Collections.Generic.List? ListType78 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List? ListType79 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType76 { get; set; } + public global::System.Collections.Generic.List? ListType80 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType77 { get; set; } + public global::System.Collections.Generic.List? ListType81 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType78 { get; set; } + public global::System.Collections.Generic.List? ListType82 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType83 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType80 { get; set; } + public global::System.Collections.Generic.List? ListType84 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType82 { get; set; } + public global::System.Collections.Generic.List? ListType86 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType83 { get; set; } + public global::System.Collections.Generic.List? ListType87 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType84 { get; set; } + public global::System.Collections.Generic.List? ListType88 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::System.Collections.Generic.List? ListType89 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType86 { get; set; } + public global::System.Collections.Generic.List? ListType90 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType87 { get; set; } + public global::System.Collections.Generic.List? ListType91 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType88 { get; set; } + public global::System.Collections.Generic.List? ListType92 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType89 { get; set; } + public global::System.Collections.Generic.List? ListType93 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType90 { get; set; } + public global::System.Collections.Generic.List? ListType94 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType91 { get; set; } + public global::System.Collections.Generic.List? ListType95 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType92 { get; set; } + public global::System.Collections.Generic.List? ListType96 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType93 { get; set; } + public global::System.Collections.Generic.List? ListType97 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType94 { get; set; } + public global::System.Collections.Generic.List? ListType98 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType95 { get; set; } + public global::System.Collections.Generic.List? ListType99 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType96 { get; set; } + public global::System.Collections.Generic.List? ListType100 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType97 { get; set; } + public global::System.Collections.Generic.List? ListType101 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType98 { get; set; } + public global::System.Collections.Generic.List? ListType102 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType99 { get; set; } + public global::System.Collections.Generic.List? ListType103 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType100 { get; set; } + public global::System.Collections.Generic.List? ListType104 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType101 { get; set; } + public global::System.Collections.Generic.List? ListType105 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType102 { get; set; } + public global::System.Collections.Generic.List? ListType106 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType103 { get; set; } + public global::System.Collections.Generic.List? ListType107 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType104 { get; set; } + public global::System.Collections.Generic.List? ListType108 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType105 { get; set; } + public global::System.Collections.Generic.List? ListType109 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType106 { get; set; } + public global::System.Collections.Generic.List? ListType110 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType107 { get; set; } + public global::System.Collections.Generic.List? ListType111 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType108 { get; set; } + public global::System.Collections.Generic.List? ListType112 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType109 { get; set; } + public global::System.Collections.Generic.List? ListType113 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType110 { get; set; } + public global::System.Collections.Generic.List? ListType114 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType111 { get; set; } + public global::System.Collections.Generic.List? ListType115 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType112 { get; set; } + public global::System.Collections.Generic.List? ListType116 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType113 { get; set; } + public global::System.Collections.Generic.List? ListType117 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType114 { get; set; } + public global::System.Collections.Generic.List? ListType118 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType115 { get; set; } + public global::System.Collections.Generic.List? ListType119 { get; set; } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.BYOKKey.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.BYOKKey.Json.g.cs new file mode 100644 index 0000000..255fa02 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.BYOKKey.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class BYOKKey + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.BYOKKey? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.BYOKKey), + jsonSerializerContext) as global::OpenRouter.BYOKKey; + } + + /// + /// 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::OpenRouter.BYOKKey? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.BYOKKey), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.BYOKKey; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.BYOKKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.BYOKKey.g.cs new file mode 100644 index 0000000..593fc0c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.BYOKKey.g.cs @@ -0,0 +1,176 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class BYOKKey + { + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_api_key_hashes")] + public global::System.Collections.Generic.IList? AllowedApiKeyHashes { get; set; } + + /// + /// Optional allowlist of model slugs this credential may be used for. `null` means no restriction. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_models")] + public global::System.Collections.Generic.IList? AllowedModels { get; set; } + + /// + /// Optional allowlist of user IDs that may use this credential. `null` means no restriction. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_user_ids")] + public global::System.Collections.Generic.IList? AllowedUserIds { get; set; } + + /// + /// ISO timestamp of when the credential was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this credential is currently disabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("disabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Disabled { get; set; } + + /// + /// Stable public identifier for this BYOK credential. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("is_fallback")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool IsFallback { get; set; } + + /// + /// Short masked snippet of the key (e.g. the first/last few characters) used to identify it in the UI. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("label")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Label { get; set; } + + /// + /// Optional human-readable name for the credential. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ByokKeyProviderJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ByokKeyProvider Provider { get; set; } + + /// + /// Position within the provider — credentials are tried in ascending sort order. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sort_order")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int SortOrder { get; set; } + + /// + /// ID of the workspace this credential belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// ISO timestamp of when the credential was created. + /// + /// + /// Whether this credential is currently disabled. + /// + /// + /// Stable public identifier for this BYOK credential. + /// + /// + /// Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried. + /// + /// + /// Short masked snippet of the key (e.g. the first/last few characters) used to identify it in the UI. + /// + /// + /// The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + /// + /// Position within the provider — credentials are tried in ascending sort order. + /// + /// + /// ID of the workspace this credential belongs to. + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction. + /// + /// + /// Optional allowlist of model slugs this credential may be used for. `null` means no restriction. + /// + /// + /// Optional allowlist of user IDs that may use this credential. `null` means no restriction. + /// + /// + /// Optional human-readable name for the credential. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BYOKKey( + string createdAt, + bool disabled, + global::System.Guid id, + bool isFallback, + string label, + global::OpenRouter.ByokKeyProvider provider, + int sortOrder, + global::System.Guid workspaceId, + global::System.Collections.Generic.IList? allowedApiKeyHashes, + global::System.Collections.Generic.IList? allowedModels, + global::System.Collections.Generic.IList? allowedUserIds, + string? name) + { + this.AllowedApiKeyHashes = allowedApiKeyHashes; + this.AllowedModels = allowedModels; + this.AllowedUserIds = allowedUserIds; + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Disabled = disabled; + this.Id = id; + this.IsFallback = isFallback; + this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); + this.Name = name; + this.Provider = provider; + this.SortOrder = sortOrder; + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public BYOKKey() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ByokGetParametersProvider.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ByokGetParametersProvider.g.cs new file mode 100644 index 0000000..afb2687 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ByokGetParametersProvider.g.cs @@ -0,0 +1,519 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Optional provider slug to filter by (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + public enum ByokGetParametersProvider + { + /// + /// + /// + Ai21, + /// + /// + /// + AionLabs, + /// + /// + /// + Akashml, + /// + /// + /// + Alibaba, + /// + /// + /// + AmazonBedrock, + /// + /// + /// + AmazonNova, + /// + /// + /// + Ambient, + /// + /// + /// + Anthropic, + /// + /// + /// + ArceeAi, + /// + /// + /// + AtlasCloud, + /// + /// + /// + Avian, + /// + /// + /// + Azure, + /// + /// + /// + Baidu, + /// + /// + /// + Baseten, + /// + /// + /// + BlackForestLabs, + /// + /// + /// + Byteplus, + /// + /// + /// + Cerebras, + /// + /// + /// + Chutes, + /// + /// + /// + Cirrascale, + /// + /// + /// + Clarifai, + /// + /// + /// + Cloudflare, + /// + /// + /// + Cohere, + /// + /// + /// + Crusoe, + /// + /// + /// + Deepinfra, + /// + /// + /// + Deepseek, + /// + /// + /// + Dekallm, + /// + /// + /// + Featherless, + /// + /// + /// + Fireworks, + /// + /// + /// + Friendli, + /// + /// + /// + Gmicloud, + /// + /// + /// + GoogleAiStudio, + /// + /// + /// + GoogleVertex, + /// + /// + /// + Groq, + /// + /// + /// + Hyperbolic, + /// + /// + /// + Inception, + /// + /// + /// + Inceptron, + /// + /// + /// + InferenceNet, + /// + /// + /// + Infermatic, + /// + /// + /// + Inflection, + /// + /// + /// + IoNet, + /// + /// + /// + Ionstream, + /// + /// + /// + Liquid, + /// + /// + /// + Mancer, + /// + /// + /// + Mara, + /// + /// + /// + Minimax, + /// + /// + /// + Mistral, + /// + /// + /// + Modelrun, + /// + /// + /// + Modular, + /// + /// + /// + Moonshotai, + /// + /// + /// + Morph, + /// + /// + /// + Ncompass, + /// + /// + /// + Nebius, + /// + /// + /// + NexAgi, + /// + /// + /// + Nextbit, + /// + /// + /// + Novita, + /// + /// + /// + Nvidia, + /// + /// + /// + OpenInference, + /// + /// + /// + Openai, + /// + /// + /// + Parasail, + /// + /// + /// + Perceptron, + /// + /// + /// + Perplexity, + /// + /// + /// + Phala, + /// + /// + /// + Poolside, + /// + /// + /// + Recraft, + /// + /// + /// + Reka, + /// + /// + /// + Relace, + /// + /// + /// + Sambanova, + /// + /// + /// + Seed, + /// + /// + /// + Siliconflow, + /// + /// + /// + Sourceful, + /// + /// + /// + Stepfun, + /// + /// + /// + Streamlake, + /// + /// + /// + Switchpoint, + /// + /// + /// + Together, + /// + /// + /// + Upstage, + /// + /// + /// + Venice, + /// + /// + /// + Wandb, + /// + /// + /// + Xai, + /// + /// + /// + Xiaomi, + /// + /// + /// + ZAi, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ByokGetParametersProviderExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ByokGetParametersProvider value) + { + return value switch + { + ByokGetParametersProvider.Ai21 => "ai21", + ByokGetParametersProvider.AionLabs => "aion-labs", + ByokGetParametersProvider.Akashml => "akashml", + ByokGetParametersProvider.Alibaba => "alibaba", + ByokGetParametersProvider.AmazonBedrock => "amazon-bedrock", + ByokGetParametersProvider.AmazonNova => "amazon-nova", + ByokGetParametersProvider.Ambient => "ambient", + ByokGetParametersProvider.Anthropic => "anthropic", + ByokGetParametersProvider.ArceeAi => "arcee-ai", + ByokGetParametersProvider.AtlasCloud => "atlas-cloud", + ByokGetParametersProvider.Avian => "avian", + ByokGetParametersProvider.Azure => "azure", + ByokGetParametersProvider.Baidu => "baidu", + ByokGetParametersProvider.Baseten => "baseten", + ByokGetParametersProvider.BlackForestLabs => "black-forest-labs", + ByokGetParametersProvider.Byteplus => "byteplus", + ByokGetParametersProvider.Cerebras => "cerebras", + ByokGetParametersProvider.Chutes => "chutes", + ByokGetParametersProvider.Cirrascale => "cirrascale", + ByokGetParametersProvider.Clarifai => "clarifai", + ByokGetParametersProvider.Cloudflare => "cloudflare", + ByokGetParametersProvider.Cohere => "cohere", + ByokGetParametersProvider.Crusoe => "crusoe", + ByokGetParametersProvider.Deepinfra => "deepinfra", + ByokGetParametersProvider.Deepseek => "deepseek", + ByokGetParametersProvider.Dekallm => "dekallm", + ByokGetParametersProvider.Featherless => "featherless", + ByokGetParametersProvider.Fireworks => "fireworks", + ByokGetParametersProvider.Friendli => "friendli", + ByokGetParametersProvider.Gmicloud => "gmicloud", + ByokGetParametersProvider.GoogleAiStudio => "google-ai-studio", + ByokGetParametersProvider.GoogleVertex => "google-vertex", + ByokGetParametersProvider.Groq => "groq", + ByokGetParametersProvider.Hyperbolic => "hyperbolic", + ByokGetParametersProvider.Inception => "inception", + ByokGetParametersProvider.Inceptron => "inceptron", + ByokGetParametersProvider.InferenceNet => "inference-net", + ByokGetParametersProvider.Infermatic => "infermatic", + ByokGetParametersProvider.Inflection => "inflection", + ByokGetParametersProvider.IoNet => "io-net", + ByokGetParametersProvider.Ionstream => "ionstream", + ByokGetParametersProvider.Liquid => "liquid", + ByokGetParametersProvider.Mancer => "mancer", + ByokGetParametersProvider.Mara => "mara", + ByokGetParametersProvider.Minimax => "minimax", + ByokGetParametersProvider.Mistral => "mistral", + ByokGetParametersProvider.Modelrun => "modelrun", + ByokGetParametersProvider.Modular => "modular", + ByokGetParametersProvider.Moonshotai => "moonshotai", + ByokGetParametersProvider.Morph => "morph", + ByokGetParametersProvider.Ncompass => "ncompass", + ByokGetParametersProvider.Nebius => "nebius", + ByokGetParametersProvider.NexAgi => "nex-agi", + ByokGetParametersProvider.Nextbit => "nextbit", + ByokGetParametersProvider.Novita => "novita", + ByokGetParametersProvider.Nvidia => "nvidia", + ByokGetParametersProvider.OpenInference => "open-inference", + ByokGetParametersProvider.Openai => "openai", + ByokGetParametersProvider.Parasail => "parasail", + ByokGetParametersProvider.Perceptron => "perceptron", + ByokGetParametersProvider.Perplexity => "perplexity", + ByokGetParametersProvider.Phala => "phala", + ByokGetParametersProvider.Poolside => "poolside", + ByokGetParametersProvider.Recraft => "recraft", + ByokGetParametersProvider.Reka => "reka", + ByokGetParametersProvider.Relace => "relace", + ByokGetParametersProvider.Sambanova => "sambanova", + ByokGetParametersProvider.Seed => "seed", + ByokGetParametersProvider.Siliconflow => "siliconflow", + ByokGetParametersProvider.Sourceful => "sourceful", + ByokGetParametersProvider.Stepfun => "stepfun", + ByokGetParametersProvider.Streamlake => "streamlake", + ByokGetParametersProvider.Switchpoint => "switchpoint", + ByokGetParametersProvider.Together => "together", + ByokGetParametersProvider.Upstage => "upstage", + ByokGetParametersProvider.Venice => "venice", + ByokGetParametersProvider.Wandb => "wandb", + ByokGetParametersProvider.Xai => "xai", + ByokGetParametersProvider.Xiaomi => "xiaomi", + ByokGetParametersProvider.ZAi => "z-ai", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ByokGetParametersProvider? ToEnum(string value) + { + return value switch + { + "ai21" => ByokGetParametersProvider.Ai21, + "aion-labs" => ByokGetParametersProvider.AionLabs, + "akashml" => ByokGetParametersProvider.Akashml, + "alibaba" => ByokGetParametersProvider.Alibaba, + "amazon-bedrock" => ByokGetParametersProvider.AmazonBedrock, + "amazon-nova" => ByokGetParametersProvider.AmazonNova, + "ambient" => ByokGetParametersProvider.Ambient, + "anthropic" => ByokGetParametersProvider.Anthropic, + "arcee-ai" => ByokGetParametersProvider.ArceeAi, + "atlas-cloud" => ByokGetParametersProvider.AtlasCloud, + "avian" => ByokGetParametersProvider.Avian, + "azure" => ByokGetParametersProvider.Azure, + "baidu" => ByokGetParametersProvider.Baidu, + "baseten" => ByokGetParametersProvider.Baseten, + "black-forest-labs" => ByokGetParametersProvider.BlackForestLabs, + "byteplus" => ByokGetParametersProvider.Byteplus, + "cerebras" => ByokGetParametersProvider.Cerebras, + "chutes" => ByokGetParametersProvider.Chutes, + "cirrascale" => ByokGetParametersProvider.Cirrascale, + "clarifai" => ByokGetParametersProvider.Clarifai, + "cloudflare" => ByokGetParametersProvider.Cloudflare, + "cohere" => ByokGetParametersProvider.Cohere, + "crusoe" => ByokGetParametersProvider.Crusoe, + "deepinfra" => ByokGetParametersProvider.Deepinfra, + "deepseek" => ByokGetParametersProvider.Deepseek, + "dekallm" => ByokGetParametersProvider.Dekallm, + "featherless" => ByokGetParametersProvider.Featherless, + "fireworks" => ByokGetParametersProvider.Fireworks, + "friendli" => ByokGetParametersProvider.Friendli, + "gmicloud" => ByokGetParametersProvider.Gmicloud, + "google-ai-studio" => ByokGetParametersProvider.GoogleAiStudio, + "google-vertex" => ByokGetParametersProvider.GoogleVertex, + "groq" => ByokGetParametersProvider.Groq, + "hyperbolic" => ByokGetParametersProvider.Hyperbolic, + "inception" => ByokGetParametersProvider.Inception, + "inceptron" => ByokGetParametersProvider.Inceptron, + "inference-net" => ByokGetParametersProvider.InferenceNet, + "infermatic" => ByokGetParametersProvider.Infermatic, + "inflection" => ByokGetParametersProvider.Inflection, + "io-net" => ByokGetParametersProvider.IoNet, + "ionstream" => ByokGetParametersProvider.Ionstream, + "liquid" => ByokGetParametersProvider.Liquid, + "mancer" => ByokGetParametersProvider.Mancer, + "mara" => ByokGetParametersProvider.Mara, + "minimax" => ByokGetParametersProvider.Minimax, + "mistral" => ByokGetParametersProvider.Mistral, + "modelrun" => ByokGetParametersProvider.Modelrun, + "modular" => ByokGetParametersProvider.Modular, + "moonshotai" => ByokGetParametersProvider.Moonshotai, + "morph" => ByokGetParametersProvider.Morph, + "ncompass" => ByokGetParametersProvider.Ncompass, + "nebius" => ByokGetParametersProvider.Nebius, + "nex-agi" => ByokGetParametersProvider.NexAgi, + "nextbit" => ByokGetParametersProvider.Nextbit, + "novita" => ByokGetParametersProvider.Novita, + "nvidia" => ByokGetParametersProvider.Nvidia, + "open-inference" => ByokGetParametersProvider.OpenInference, + "openai" => ByokGetParametersProvider.Openai, + "parasail" => ByokGetParametersProvider.Parasail, + "perceptron" => ByokGetParametersProvider.Perceptron, + "perplexity" => ByokGetParametersProvider.Perplexity, + "phala" => ByokGetParametersProvider.Phala, + "poolside" => ByokGetParametersProvider.Poolside, + "recraft" => ByokGetParametersProvider.Recraft, + "reka" => ByokGetParametersProvider.Reka, + "relace" => ByokGetParametersProvider.Relace, + "sambanova" => ByokGetParametersProvider.Sambanova, + "seed" => ByokGetParametersProvider.Seed, + "siliconflow" => ByokGetParametersProvider.Siliconflow, + "sourceful" => ByokGetParametersProvider.Sourceful, + "stepfun" => ByokGetParametersProvider.Stepfun, + "streamlake" => ByokGetParametersProvider.Streamlake, + "switchpoint" => ByokGetParametersProvider.Switchpoint, + "together" => ByokGetParametersProvider.Together, + "upstage" => ByokGetParametersProvider.Upstage, + "venice" => ByokGetParametersProvider.Venice, + "wandb" => ByokGetParametersProvider.Wandb, + "xai" => ByokGetParametersProvider.Xai, + "xiaomi" => ByokGetParametersProvider.Xiaomi, + "z-ai" => ByokGetParametersProvider.ZAi, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ByokKeyProvider.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ByokKeyProvider.g.cs new file mode 100644 index 0000000..564ecf0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ByokKeyProvider.g.cs @@ -0,0 +1,519 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + public enum ByokKeyProvider + { + /// + /// + /// + Ai21, + /// + /// + /// + AionLabs, + /// + /// + /// + Akashml, + /// + /// + /// + Alibaba, + /// + /// + /// + AmazonBedrock, + /// + /// + /// + AmazonNova, + /// + /// + /// + Ambient, + /// + /// + /// + Anthropic, + /// + /// + /// + ArceeAi, + /// + /// + /// + AtlasCloud, + /// + /// + /// + Avian, + /// + /// + /// + Azure, + /// + /// + /// + Baidu, + /// + /// + /// + Baseten, + /// + /// + /// + BlackForestLabs, + /// + /// + /// + Byteplus, + /// + /// + /// + Cerebras, + /// + /// + /// + Chutes, + /// + /// + /// + Cirrascale, + /// + /// + /// + Clarifai, + /// + /// + /// + Cloudflare, + /// + /// + /// + Cohere, + /// + /// + /// + Crusoe, + /// + /// + /// + Deepinfra, + /// + /// + /// + Deepseek, + /// + /// + /// + Dekallm, + /// + /// + /// + Featherless, + /// + /// + /// + Fireworks, + /// + /// + /// + Friendli, + /// + /// + /// + Gmicloud, + /// + /// + /// + GoogleAiStudio, + /// + /// + /// + GoogleVertex, + /// + /// + /// + Groq, + /// + /// + /// + Hyperbolic, + /// + /// + /// + Inception, + /// + /// + /// + Inceptron, + /// + /// + /// + InferenceNet, + /// + /// + /// + Infermatic, + /// + /// + /// + Inflection, + /// + /// + /// + IoNet, + /// + /// + /// + Ionstream, + /// + /// + /// + Liquid, + /// + /// + /// + Mancer, + /// + /// + /// + Mara, + /// + /// + /// + Minimax, + /// + /// + /// + Mistral, + /// + /// + /// + Modelrun, + /// + /// + /// + Modular, + /// + /// + /// + Moonshotai, + /// + /// + /// + Morph, + /// + /// + /// + Ncompass, + /// + /// + /// + Nebius, + /// + /// + /// + NexAgi, + /// + /// + /// + Nextbit, + /// + /// + /// + Novita, + /// + /// + /// + Nvidia, + /// + /// + /// + OpenInference, + /// + /// + /// + Openai, + /// + /// + /// + Parasail, + /// + /// + /// + Perceptron, + /// + /// + /// + Perplexity, + /// + /// + /// + Phala, + /// + /// + /// + Poolside, + /// + /// + /// + Recraft, + /// + /// + /// + Reka, + /// + /// + /// + Relace, + /// + /// + /// + Sambanova, + /// + /// + /// + Seed, + /// + /// + /// + Siliconflow, + /// + /// + /// + Sourceful, + /// + /// + /// + Stepfun, + /// + /// + /// + Streamlake, + /// + /// + /// + Switchpoint, + /// + /// + /// + Together, + /// + /// + /// + Upstage, + /// + /// + /// + Venice, + /// + /// + /// + Wandb, + /// + /// + /// + Xai, + /// + /// + /// + Xiaomi, + /// + /// + /// + ZAi, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ByokKeyProviderExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ByokKeyProvider value) + { + return value switch + { + ByokKeyProvider.Ai21 => "ai21", + ByokKeyProvider.AionLabs => "aion-labs", + ByokKeyProvider.Akashml => "akashml", + ByokKeyProvider.Alibaba => "alibaba", + ByokKeyProvider.AmazonBedrock => "amazon-bedrock", + ByokKeyProvider.AmazonNova => "amazon-nova", + ByokKeyProvider.Ambient => "ambient", + ByokKeyProvider.Anthropic => "anthropic", + ByokKeyProvider.ArceeAi => "arcee-ai", + ByokKeyProvider.AtlasCloud => "atlas-cloud", + ByokKeyProvider.Avian => "avian", + ByokKeyProvider.Azure => "azure", + ByokKeyProvider.Baidu => "baidu", + ByokKeyProvider.Baseten => "baseten", + ByokKeyProvider.BlackForestLabs => "black-forest-labs", + ByokKeyProvider.Byteplus => "byteplus", + ByokKeyProvider.Cerebras => "cerebras", + ByokKeyProvider.Chutes => "chutes", + ByokKeyProvider.Cirrascale => "cirrascale", + ByokKeyProvider.Clarifai => "clarifai", + ByokKeyProvider.Cloudflare => "cloudflare", + ByokKeyProvider.Cohere => "cohere", + ByokKeyProvider.Crusoe => "crusoe", + ByokKeyProvider.Deepinfra => "deepinfra", + ByokKeyProvider.Deepseek => "deepseek", + ByokKeyProvider.Dekallm => "dekallm", + ByokKeyProvider.Featherless => "featherless", + ByokKeyProvider.Fireworks => "fireworks", + ByokKeyProvider.Friendli => "friendli", + ByokKeyProvider.Gmicloud => "gmicloud", + ByokKeyProvider.GoogleAiStudio => "google-ai-studio", + ByokKeyProvider.GoogleVertex => "google-vertex", + ByokKeyProvider.Groq => "groq", + ByokKeyProvider.Hyperbolic => "hyperbolic", + ByokKeyProvider.Inception => "inception", + ByokKeyProvider.Inceptron => "inceptron", + ByokKeyProvider.InferenceNet => "inference-net", + ByokKeyProvider.Infermatic => "infermatic", + ByokKeyProvider.Inflection => "inflection", + ByokKeyProvider.IoNet => "io-net", + ByokKeyProvider.Ionstream => "ionstream", + ByokKeyProvider.Liquid => "liquid", + ByokKeyProvider.Mancer => "mancer", + ByokKeyProvider.Mara => "mara", + ByokKeyProvider.Minimax => "minimax", + ByokKeyProvider.Mistral => "mistral", + ByokKeyProvider.Modelrun => "modelrun", + ByokKeyProvider.Modular => "modular", + ByokKeyProvider.Moonshotai => "moonshotai", + ByokKeyProvider.Morph => "morph", + ByokKeyProvider.Ncompass => "ncompass", + ByokKeyProvider.Nebius => "nebius", + ByokKeyProvider.NexAgi => "nex-agi", + ByokKeyProvider.Nextbit => "nextbit", + ByokKeyProvider.Novita => "novita", + ByokKeyProvider.Nvidia => "nvidia", + ByokKeyProvider.OpenInference => "open-inference", + ByokKeyProvider.Openai => "openai", + ByokKeyProvider.Parasail => "parasail", + ByokKeyProvider.Perceptron => "perceptron", + ByokKeyProvider.Perplexity => "perplexity", + ByokKeyProvider.Phala => "phala", + ByokKeyProvider.Poolside => "poolside", + ByokKeyProvider.Recraft => "recraft", + ByokKeyProvider.Reka => "reka", + ByokKeyProvider.Relace => "relace", + ByokKeyProvider.Sambanova => "sambanova", + ByokKeyProvider.Seed => "seed", + ByokKeyProvider.Siliconflow => "siliconflow", + ByokKeyProvider.Sourceful => "sourceful", + ByokKeyProvider.Stepfun => "stepfun", + ByokKeyProvider.Streamlake => "streamlake", + ByokKeyProvider.Switchpoint => "switchpoint", + ByokKeyProvider.Together => "together", + ByokKeyProvider.Upstage => "upstage", + ByokKeyProvider.Venice => "venice", + ByokKeyProvider.Wandb => "wandb", + ByokKeyProvider.Xai => "xai", + ByokKeyProvider.Xiaomi => "xiaomi", + ByokKeyProvider.ZAi => "z-ai", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ByokKeyProvider? ToEnum(string value) + { + return value switch + { + "ai21" => ByokKeyProvider.Ai21, + "aion-labs" => ByokKeyProvider.AionLabs, + "akashml" => ByokKeyProvider.Akashml, + "alibaba" => ByokKeyProvider.Alibaba, + "amazon-bedrock" => ByokKeyProvider.AmazonBedrock, + "amazon-nova" => ByokKeyProvider.AmazonNova, + "ambient" => ByokKeyProvider.Ambient, + "anthropic" => ByokKeyProvider.Anthropic, + "arcee-ai" => ByokKeyProvider.ArceeAi, + "atlas-cloud" => ByokKeyProvider.AtlasCloud, + "avian" => ByokKeyProvider.Avian, + "azure" => ByokKeyProvider.Azure, + "baidu" => ByokKeyProvider.Baidu, + "baseten" => ByokKeyProvider.Baseten, + "black-forest-labs" => ByokKeyProvider.BlackForestLabs, + "byteplus" => ByokKeyProvider.Byteplus, + "cerebras" => ByokKeyProvider.Cerebras, + "chutes" => ByokKeyProvider.Chutes, + "cirrascale" => ByokKeyProvider.Cirrascale, + "clarifai" => ByokKeyProvider.Clarifai, + "cloudflare" => ByokKeyProvider.Cloudflare, + "cohere" => ByokKeyProvider.Cohere, + "crusoe" => ByokKeyProvider.Crusoe, + "deepinfra" => ByokKeyProvider.Deepinfra, + "deepseek" => ByokKeyProvider.Deepseek, + "dekallm" => ByokKeyProvider.Dekallm, + "featherless" => ByokKeyProvider.Featherless, + "fireworks" => ByokKeyProvider.Fireworks, + "friendli" => ByokKeyProvider.Friendli, + "gmicloud" => ByokKeyProvider.Gmicloud, + "google-ai-studio" => ByokKeyProvider.GoogleAiStudio, + "google-vertex" => ByokKeyProvider.GoogleVertex, + "groq" => ByokKeyProvider.Groq, + "hyperbolic" => ByokKeyProvider.Hyperbolic, + "inception" => ByokKeyProvider.Inception, + "inceptron" => ByokKeyProvider.Inceptron, + "inference-net" => ByokKeyProvider.InferenceNet, + "infermatic" => ByokKeyProvider.Infermatic, + "inflection" => ByokKeyProvider.Inflection, + "io-net" => ByokKeyProvider.IoNet, + "ionstream" => ByokKeyProvider.Ionstream, + "liquid" => ByokKeyProvider.Liquid, + "mancer" => ByokKeyProvider.Mancer, + "mara" => ByokKeyProvider.Mara, + "minimax" => ByokKeyProvider.Minimax, + "mistral" => ByokKeyProvider.Mistral, + "modelrun" => ByokKeyProvider.Modelrun, + "modular" => ByokKeyProvider.Modular, + "moonshotai" => ByokKeyProvider.Moonshotai, + "morph" => ByokKeyProvider.Morph, + "ncompass" => ByokKeyProvider.Ncompass, + "nebius" => ByokKeyProvider.Nebius, + "nex-agi" => ByokKeyProvider.NexAgi, + "nextbit" => ByokKeyProvider.Nextbit, + "novita" => ByokKeyProvider.Novita, + "nvidia" => ByokKeyProvider.Nvidia, + "open-inference" => ByokKeyProvider.OpenInference, + "openai" => ByokKeyProvider.Openai, + "parasail" => ByokKeyProvider.Parasail, + "perceptron" => ByokKeyProvider.Perceptron, + "perplexity" => ByokKeyProvider.Perplexity, + "phala" => ByokKeyProvider.Phala, + "poolside" => ByokKeyProvider.Poolside, + "recraft" => ByokKeyProvider.Recraft, + "reka" => ByokKeyProvider.Reka, + "relace" => ByokKeyProvider.Relace, + "sambanova" => ByokKeyProvider.Sambanova, + "seed" => ByokKeyProvider.Seed, + "siliconflow" => ByokKeyProvider.Siliconflow, + "sourceful" => ByokKeyProvider.Sourceful, + "stepfun" => ByokKeyProvider.Stepfun, + "streamlake" => ByokKeyProvider.Streamlake, + "switchpoint" => ByokKeyProvider.Switchpoint, + "together" => ByokKeyProvider.Together, + "upstage" => ByokKeyProvider.Upstage, + "venice" => ByokKeyProvider.Venice, + "wandb" => ByokKeyProvider.Wandb, + "xai" => ByokKeyProvider.Xai, + "xiaomi" => ByokKeyProvider.Xiaomi, + "z-ai" => ByokKeyProvider.ZAi, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetBYOKKeyResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetBYOKKeyResponse.Json.g.cs new file mode 100644 index 0000000..a69a0fc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetBYOKKeyResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetBYOKKeyResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetBYOKKeyResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetBYOKKeyResponse), + jsonSerializerContext) as global::OpenRouter.GetBYOKKeyResponse; + } + + /// + /// 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::OpenRouter.GetBYOKKeyResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetBYOKKeyResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetBYOKKeyResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetBYOKKeyResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetBYOKKeyResponse.g.cs new file mode 100644 index 0000000..579738c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetBYOKKeyResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class GetBYOKKeyResponse + { + /// + /// The BYOK credential. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.GetByokKeyResponseData Data { 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. + /// + /// + /// The BYOK credential. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetBYOKKeyResponse( + global::OpenRouter.GetByokKeyResponseData data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public GetBYOKKeyResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetByokKeyResponseData.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetByokKeyResponseData.Json.g.cs new file mode 100644 index 0000000..11d514e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetByokKeyResponseData.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetByokKeyResponseData + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetByokKeyResponseData? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetByokKeyResponseData), + jsonSerializerContext) as global::OpenRouter.GetByokKeyResponseData; + } + + /// + /// 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::OpenRouter.GetByokKeyResponseData? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetByokKeyResponseData), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetByokKeyResponseData; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetByokKeyResponseData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetByokKeyResponseData.g.cs new file mode 100644 index 0000000..17c0591 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetByokKeyResponseData.g.cs @@ -0,0 +1,176 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// The BYOK credential. + /// + public sealed partial class GetByokKeyResponseData + { + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_api_key_hashes")] + public global::System.Collections.Generic.IList? AllowedApiKeyHashes { get; set; } + + /// + /// Optional allowlist of model slugs this credential may be used for. `null` means no restriction. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_models")] + public global::System.Collections.Generic.IList? AllowedModels { get; set; } + + /// + /// Optional allowlist of user IDs that may use this credential. `null` means no restriction. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_user_ids")] + public global::System.Collections.Generic.IList? AllowedUserIds { get; set; } + + /// + /// ISO timestamp of when the credential was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this credential is currently disabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("disabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Disabled { get; set; } + + /// + /// Stable public identifier for this BYOK credential. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("is_fallback")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool IsFallback { get; set; } + + /// + /// Short masked snippet of the key (e.g. the first/last few characters) used to identify it in the UI. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("label")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Label { get; set; } + + /// + /// Optional human-readable name for the credential. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetByokKeyResponseDataProviderJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.GetByokKeyResponseDataProvider Provider { get; set; } + + /// + /// Position within the provider — credentials are tried in ascending sort order. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sort_order")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int SortOrder { get; set; } + + /// + /// ID of the workspace this credential belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// ISO timestamp of when the credential was created. + /// + /// + /// Whether this credential is currently disabled. + /// + /// + /// Stable public identifier for this BYOK credential. + /// + /// + /// Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried. + /// + /// + /// Short masked snippet of the key (e.g. the first/last few characters) used to identify it in the UI. + /// + /// + /// The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + /// + /// Position within the provider — credentials are tried in ascending sort order. + /// + /// + /// ID of the workspace this credential belongs to. + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction. + /// + /// + /// Optional allowlist of model slugs this credential may be used for. `null` means no restriction. + /// + /// + /// Optional allowlist of user IDs that may use this credential. `null` means no restriction. + /// + /// + /// Optional human-readable name for the credential. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetByokKeyResponseData( + string createdAt, + bool disabled, + global::System.Guid id, + bool isFallback, + string label, + global::OpenRouter.GetByokKeyResponseDataProvider provider, + int sortOrder, + global::System.Guid workspaceId, + global::System.Collections.Generic.IList? allowedApiKeyHashes, + global::System.Collections.Generic.IList? allowedModels, + global::System.Collections.Generic.IList? allowedUserIds, + string? name) + { + this.AllowedApiKeyHashes = allowedApiKeyHashes; + this.AllowedModels = allowedModels; + this.AllowedUserIds = allowedUserIds; + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Disabled = disabled; + this.Id = id; + this.IsFallback = isFallback; + this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); + this.Name = name; + this.Provider = provider; + this.SortOrder = sortOrder; + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetByokKeyResponseData() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetByokKeyResponseDataProvider.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetByokKeyResponseDataProvider.g.cs new file mode 100644 index 0000000..4e24ddd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetByokKeyResponseDataProvider.g.cs @@ -0,0 +1,519 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + public enum GetByokKeyResponseDataProvider + { + /// + /// + /// + Ai21, + /// + /// + /// + AionLabs, + /// + /// + /// + Akashml, + /// + /// + /// + Alibaba, + /// + /// + /// + AmazonBedrock, + /// + /// + /// + AmazonNova, + /// + /// + /// + Ambient, + /// + /// + /// + Anthropic, + /// + /// + /// + ArceeAi, + /// + /// + /// + AtlasCloud, + /// + /// + /// + Avian, + /// + /// + /// + Azure, + /// + /// + /// + Baidu, + /// + /// + /// + Baseten, + /// + /// + /// + BlackForestLabs, + /// + /// + /// + Byteplus, + /// + /// + /// + Cerebras, + /// + /// + /// + Chutes, + /// + /// + /// + Cirrascale, + /// + /// + /// + Clarifai, + /// + /// + /// + Cloudflare, + /// + /// + /// + Cohere, + /// + /// + /// + Crusoe, + /// + /// + /// + Deepinfra, + /// + /// + /// + Deepseek, + /// + /// + /// + Dekallm, + /// + /// + /// + Featherless, + /// + /// + /// + Fireworks, + /// + /// + /// + Friendli, + /// + /// + /// + Gmicloud, + /// + /// + /// + GoogleAiStudio, + /// + /// + /// + GoogleVertex, + /// + /// + /// + Groq, + /// + /// + /// + Hyperbolic, + /// + /// + /// + Inception, + /// + /// + /// + Inceptron, + /// + /// + /// + InferenceNet, + /// + /// + /// + Infermatic, + /// + /// + /// + Inflection, + /// + /// + /// + IoNet, + /// + /// + /// + Ionstream, + /// + /// + /// + Liquid, + /// + /// + /// + Mancer, + /// + /// + /// + Mara, + /// + /// + /// + Minimax, + /// + /// + /// + Mistral, + /// + /// + /// + Modelrun, + /// + /// + /// + Modular, + /// + /// + /// + Moonshotai, + /// + /// + /// + Morph, + /// + /// + /// + Ncompass, + /// + /// + /// + Nebius, + /// + /// + /// + NexAgi, + /// + /// + /// + Nextbit, + /// + /// + /// + Novita, + /// + /// + /// + Nvidia, + /// + /// + /// + OpenInference, + /// + /// + /// + Openai, + /// + /// + /// + Parasail, + /// + /// + /// + Perceptron, + /// + /// + /// + Perplexity, + /// + /// + /// + Phala, + /// + /// + /// + Poolside, + /// + /// + /// + Recraft, + /// + /// + /// + Reka, + /// + /// + /// + Relace, + /// + /// + /// + Sambanova, + /// + /// + /// + Seed, + /// + /// + /// + Siliconflow, + /// + /// + /// + Sourceful, + /// + /// + /// + Stepfun, + /// + /// + /// + Streamlake, + /// + /// + /// + Switchpoint, + /// + /// + /// + Together, + /// + /// + /// + Upstage, + /// + /// + /// + Venice, + /// + /// + /// + Wandb, + /// + /// + /// + Xai, + /// + /// + /// + Xiaomi, + /// + /// + /// + ZAi, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetByokKeyResponseDataProviderExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetByokKeyResponseDataProvider value) + { + return value switch + { + GetByokKeyResponseDataProvider.Ai21 => "ai21", + GetByokKeyResponseDataProvider.AionLabs => "aion-labs", + GetByokKeyResponseDataProvider.Akashml => "akashml", + GetByokKeyResponseDataProvider.Alibaba => "alibaba", + GetByokKeyResponseDataProvider.AmazonBedrock => "amazon-bedrock", + GetByokKeyResponseDataProvider.AmazonNova => "amazon-nova", + GetByokKeyResponseDataProvider.Ambient => "ambient", + GetByokKeyResponseDataProvider.Anthropic => "anthropic", + GetByokKeyResponseDataProvider.ArceeAi => "arcee-ai", + GetByokKeyResponseDataProvider.AtlasCloud => "atlas-cloud", + GetByokKeyResponseDataProvider.Avian => "avian", + GetByokKeyResponseDataProvider.Azure => "azure", + GetByokKeyResponseDataProvider.Baidu => "baidu", + GetByokKeyResponseDataProvider.Baseten => "baseten", + GetByokKeyResponseDataProvider.BlackForestLabs => "black-forest-labs", + GetByokKeyResponseDataProvider.Byteplus => "byteplus", + GetByokKeyResponseDataProvider.Cerebras => "cerebras", + GetByokKeyResponseDataProvider.Chutes => "chutes", + GetByokKeyResponseDataProvider.Cirrascale => "cirrascale", + GetByokKeyResponseDataProvider.Clarifai => "clarifai", + GetByokKeyResponseDataProvider.Cloudflare => "cloudflare", + GetByokKeyResponseDataProvider.Cohere => "cohere", + GetByokKeyResponseDataProvider.Crusoe => "crusoe", + GetByokKeyResponseDataProvider.Deepinfra => "deepinfra", + GetByokKeyResponseDataProvider.Deepseek => "deepseek", + GetByokKeyResponseDataProvider.Dekallm => "dekallm", + GetByokKeyResponseDataProvider.Featherless => "featherless", + GetByokKeyResponseDataProvider.Fireworks => "fireworks", + GetByokKeyResponseDataProvider.Friendli => "friendli", + GetByokKeyResponseDataProvider.Gmicloud => "gmicloud", + GetByokKeyResponseDataProvider.GoogleAiStudio => "google-ai-studio", + GetByokKeyResponseDataProvider.GoogleVertex => "google-vertex", + GetByokKeyResponseDataProvider.Groq => "groq", + GetByokKeyResponseDataProvider.Hyperbolic => "hyperbolic", + GetByokKeyResponseDataProvider.Inception => "inception", + GetByokKeyResponseDataProvider.Inceptron => "inceptron", + GetByokKeyResponseDataProvider.InferenceNet => "inference-net", + GetByokKeyResponseDataProvider.Infermatic => "infermatic", + GetByokKeyResponseDataProvider.Inflection => "inflection", + GetByokKeyResponseDataProvider.IoNet => "io-net", + GetByokKeyResponseDataProvider.Ionstream => "ionstream", + GetByokKeyResponseDataProvider.Liquid => "liquid", + GetByokKeyResponseDataProvider.Mancer => "mancer", + GetByokKeyResponseDataProvider.Mara => "mara", + GetByokKeyResponseDataProvider.Minimax => "minimax", + GetByokKeyResponseDataProvider.Mistral => "mistral", + GetByokKeyResponseDataProvider.Modelrun => "modelrun", + GetByokKeyResponseDataProvider.Modular => "modular", + GetByokKeyResponseDataProvider.Moonshotai => "moonshotai", + GetByokKeyResponseDataProvider.Morph => "morph", + GetByokKeyResponseDataProvider.Ncompass => "ncompass", + GetByokKeyResponseDataProvider.Nebius => "nebius", + GetByokKeyResponseDataProvider.NexAgi => "nex-agi", + GetByokKeyResponseDataProvider.Nextbit => "nextbit", + GetByokKeyResponseDataProvider.Novita => "novita", + GetByokKeyResponseDataProvider.Nvidia => "nvidia", + GetByokKeyResponseDataProvider.OpenInference => "open-inference", + GetByokKeyResponseDataProvider.Openai => "openai", + GetByokKeyResponseDataProvider.Parasail => "parasail", + GetByokKeyResponseDataProvider.Perceptron => "perceptron", + GetByokKeyResponseDataProvider.Perplexity => "perplexity", + GetByokKeyResponseDataProvider.Phala => "phala", + GetByokKeyResponseDataProvider.Poolside => "poolside", + GetByokKeyResponseDataProvider.Recraft => "recraft", + GetByokKeyResponseDataProvider.Reka => "reka", + GetByokKeyResponseDataProvider.Relace => "relace", + GetByokKeyResponseDataProvider.Sambanova => "sambanova", + GetByokKeyResponseDataProvider.Seed => "seed", + GetByokKeyResponseDataProvider.Siliconflow => "siliconflow", + GetByokKeyResponseDataProvider.Sourceful => "sourceful", + GetByokKeyResponseDataProvider.Stepfun => "stepfun", + GetByokKeyResponseDataProvider.Streamlake => "streamlake", + GetByokKeyResponseDataProvider.Switchpoint => "switchpoint", + GetByokKeyResponseDataProvider.Together => "together", + GetByokKeyResponseDataProvider.Upstage => "upstage", + GetByokKeyResponseDataProvider.Venice => "venice", + GetByokKeyResponseDataProvider.Wandb => "wandb", + GetByokKeyResponseDataProvider.Xai => "xai", + GetByokKeyResponseDataProvider.Xiaomi => "xiaomi", + GetByokKeyResponseDataProvider.ZAi => "z-ai", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetByokKeyResponseDataProvider? ToEnum(string value) + { + return value switch + { + "ai21" => GetByokKeyResponseDataProvider.Ai21, + "aion-labs" => GetByokKeyResponseDataProvider.AionLabs, + "akashml" => GetByokKeyResponseDataProvider.Akashml, + "alibaba" => GetByokKeyResponseDataProvider.Alibaba, + "amazon-bedrock" => GetByokKeyResponseDataProvider.AmazonBedrock, + "amazon-nova" => GetByokKeyResponseDataProvider.AmazonNova, + "ambient" => GetByokKeyResponseDataProvider.Ambient, + "anthropic" => GetByokKeyResponseDataProvider.Anthropic, + "arcee-ai" => GetByokKeyResponseDataProvider.ArceeAi, + "atlas-cloud" => GetByokKeyResponseDataProvider.AtlasCloud, + "avian" => GetByokKeyResponseDataProvider.Avian, + "azure" => GetByokKeyResponseDataProvider.Azure, + "baidu" => GetByokKeyResponseDataProvider.Baidu, + "baseten" => GetByokKeyResponseDataProvider.Baseten, + "black-forest-labs" => GetByokKeyResponseDataProvider.BlackForestLabs, + "byteplus" => GetByokKeyResponseDataProvider.Byteplus, + "cerebras" => GetByokKeyResponseDataProvider.Cerebras, + "chutes" => GetByokKeyResponseDataProvider.Chutes, + "cirrascale" => GetByokKeyResponseDataProvider.Cirrascale, + "clarifai" => GetByokKeyResponseDataProvider.Clarifai, + "cloudflare" => GetByokKeyResponseDataProvider.Cloudflare, + "cohere" => GetByokKeyResponseDataProvider.Cohere, + "crusoe" => GetByokKeyResponseDataProvider.Crusoe, + "deepinfra" => GetByokKeyResponseDataProvider.Deepinfra, + "deepseek" => GetByokKeyResponseDataProvider.Deepseek, + "dekallm" => GetByokKeyResponseDataProvider.Dekallm, + "featherless" => GetByokKeyResponseDataProvider.Featherless, + "fireworks" => GetByokKeyResponseDataProvider.Fireworks, + "friendli" => GetByokKeyResponseDataProvider.Friendli, + "gmicloud" => GetByokKeyResponseDataProvider.Gmicloud, + "google-ai-studio" => GetByokKeyResponseDataProvider.GoogleAiStudio, + "google-vertex" => GetByokKeyResponseDataProvider.GoogleVertex, + "groq" => GetByokKeyResponseDataProvider.Groq, + "hyperbolic" => GetByokKeyResponseDataProvider.Hyperbolic, + "inception" => GetByokKeyResponseDataProvider.Inception, + "inceptron" => GetByokKeyResponseDataProvider.Inceptron, + "inference-net" => GetByokKeyResponseDataProvider.InferenceNet, + "infermatic" => GetByokKeyResponseDataProvider.Infermatic, + "inflection" => GetByokKeyResponseDataProvider.Inflection, + "io-net" => GetByokKeyResponseDataProvider.IoNet, + "ionstream" => GetByokKeyResponseDataProvider.Ionstream, + "liquid" => GetByokKeyResponseDataProvider.Liquid, + "mancer" => GetByokKeyResponseDataProvider.Mancer, + "mara" => GetByokKeyResponseDataProvider.Mara, + "minimax" => GetByokKeyResponseDataProvider.Minimax, + "mistral" => GetByokKeyResponseDataProvider.Mistral, + "modelrun" => GetByokKeyResponseDataProvider.Modelrun, + "modular" => GetByokKeyResponseDataProvider.Modular, + "moonshotai" => GetByokKeyResponseDataProvider.Moonshotai, + "morph" => GetByokKeyResponseDataProvider.Morph, + "ncompass" => GetByokKeyResponseDataProvider.Ncompass, + "nebius" => GetByokKeyResponseDataProvider.Nebius, + "nex-agi" => GetByokKeyResponseDataProvider.NexAgi, + "nextbit" => GetByokKeyResponseDataProvider.Nextbit, + "novita" => GetByokKeyResponseDataProvider.Novita, + "nvidia" => GetByokKeyResponseDataProvider.Nvidia, + "open-inference" => GetByokKeyResponseDataProvider.OpenInference, + "openai" => GetByokKeyResponseDataProvider.Openai, + "parasail" => GetByokKeyResponseDataProvider.Parasail, + "perceptron" => GetByokKeyResponseDataProvider.Perceptron, + "perplexity" => GetByokKeyResponseDataProvider.Perplexity, + "phala" => GetByokKeyResponseDataProvider.Phala, + "poolside" => GetByokKeyResponseDataProvider.Poolside, + "recraft" => GetByokKeyResponseDataProvider.Recraft, + "reka" => GetByokKeyResponseDataProvider.Reka, + "relace" => GetByokKeyResponseDataProvider.Relace, + "sambanova" => GetByokKeyResponseDataProvider.Sambanova, + "seed" => GetByokKeyResponseDataProvider.Seed, + "siliconflow" => GetByokKeyResponseDataProvider.Siliconflow, + "sourceful" => GetByokKeyResponseDataProvider.Sourceful, + "stepfun" => GetByokKeyResponseDataProvider.Stepfun, + "streamlake" => GetByokKeyResponseDataProvider.Streamlake, + "switchpoint" => GetByokKeyResponseDataProvider.Switchpoint, + "together" => GetByokKeyResponseDataProvider.Together, + "upstage" => GetByokKeyResponseDataProvider.Upstage, + "venice" => GetByokKeyResponseDataProvider.Venice, + "wandb" => GetByokKeyResponseDataProvider.Wandb, + "xai" => GetByokKeyResponseDataProvider.Xai, + "xiaomi" => GetByokKeyResponseDataProvider.Xiaomi, + "z-ai" => GetByokKeyResponseDataProvider.ZAi, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponse.Json.g.cs new file mode 100644 index 0000000..9ba38f9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponse), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponse; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponse.g.cs new file mode 100644 index 0000000..33ed6e3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponse.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class GetObservabilityDestinationResponse + { + /// + /// The observability destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.GetObservabilityDestinationResponseData Data { 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. + /// + /// + /// The observability destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponse( + global::OpenRouter.GetObservabilityDestinationResponseData data) + { + this.Data = data; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseData.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseData.Json.g.cs new file mode 100644 index 0000000..17bebce --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseData.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct GetObservabilityDestinationResponseData + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseData? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseData), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseData?; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseData? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseData), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseData?; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseData.g.cs new file mode 100644 index 0000000..b233c9a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseData.g.cs @@ -0,0 +1,1548 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// The observability destination. + /// + public readonly partial struct GetObservabilityDestinationResponseData : global::System.IEquatable + { + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType? Type { get; } + + /// + /// arize variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1? Arize { get; init; } +#else + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1? Arize { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Arize))] +#endif + public bool IsArize => Arize != null; + + /// + /// + /// + public bool TryPickArize( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.GetObservabilityDestinationResponseDataVariant1? value) + { + value = Arize; + return IsArize; + } + + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1 PickArize() => IsArize + ? Arize! + : throw new global::System.InvalidOperationException($"Expected union variant 'Arize' but the value was {ToString()}."); + + /// + /// braintrust variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2? Braintrust { get; init; } +#else + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2? Braintrust { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Braintrust))] +#endif + public bool IsBraintrust => Braintrust != null; + + /// + /// + /// + public bool TryPickBraintrust( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.GetObservabilityDestinationResponseDataVariant2? value) + { + value = Braintrust; + return IsBraintrust; + } + + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2 PickBraintrust() => IsBraintrust + ? Braintrust! + : throw new global::System.InvalidOperationException($"Expected union variant 'Braintrust' but the value was {ToString()}."); + + /// + /// clickhouse variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3? Clickhouse { get; init; } +#else + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3? Clickhouse { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Clickhouse))] +#endif + public bool IsClickhouse => Clickhouse != null; + + /// + /// + /// + public bool TryPickClickhouse( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.GetObservabilityDestinationResponseDataVariant3? value) + { + value = Clickhouse; + return IsClickhouse; + } + + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3 PickClickhouse() => IsClickhouse + ? Clickhouse! + : throw new global::System.InvalidOperationException($"Expected union variant 'Clickhouse' but the value was {ToString()}."); + + /// + /// datadog variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4? Datadog { get; init; } +#else + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4? Datadog { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Datadog))] +#endif + public bool IsDatadog => Datadog != null; + + /// + /// + /// + public bool TryPickDatadog( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.GetObservabilityDestinationResponseDataVariant4? value) + { + value = Datadog; + return IsDatadog; + } + + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4 PickDatadog() => IsDatadog + ? Datadog! + : throw new global::System.InvalidOperationException($"Expected union variant 'Datadog' but the value was {ToString()}."); + + /// + /// grafana variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5? Grafana { get; init; } +#else + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5? Grafana { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Grafana))] +#endif + public bool IsGrafana => Grafana != null; + + /// + /// + /// + public bool TryPickGrafana( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.GetObservabilityDestinationResponseDataVariant5? value) + { + value = Grafana; + return IsGrafana; + } + + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5 PickGrafana() => IsGrafana + ? Grafana! + : throw new global::System.InvalidOperationException($"Expected union variant 'Grafana' but the value was {ToString()}."); + + /// + /// langfuse variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6? Langfuse { get; init; } +#else + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6? Langfuse { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Langfuse))] +#endif + public bool IsLangfuse => Langfuse != null; + + /// + /// + /// + public bool TryPickLangfuse( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.GetObservabilityDestinationResponseDataVariant6? value) + { + value = Langfuse; + return IsLangfuse; + } + + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6 PickLangfuse() => IsLangfuse + ? Langfuse! + : throw new global::System.InvalidOperationException($"Expected union variant 'Langfuse' but the value was {ToString()}."); + + /// + /// langsmith variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7? Langsmith { get; init; } +#else + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7? Langsmith { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Langsmith))] +#endif + public bool IsLangsmith => Langsmith != null; + + /// + /// + /// + public bool TryPickLangsmith( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.GetObservabilityDestinationResponseDataVariant7? value) + { + value = Langsmith; + return IsLangsmith; + } + + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7 PickLangsmith() => IsLangsmith + ? Langsmith! + : throw new global::System.InvalidOperationException($"Expected union variant 'Langsmith' but the value was {ToString()}."); + + /// + /// newrelic variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8? Newrelic { get; init; } +#else + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8? Newrelic { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Newrelic))] +#endif + public bool IsNewrelic => Newrelic != null; + + /// + /// + /// + public bool TryPickNewrelic( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.GetObservabilityDestinationResponseDataVariant8? value) + { + value = Newrelic; + return IsNewrelic; + } + + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8 PickNewrelic() => IsNewrelic + ? Newrelic! + : throw new global::System.InvalidOperationException($"Expected union variant 'Newrelic' but the value was {ToString()}."); + + /// + /// opik variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9? Opik { get; init; } +#else + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9? Opik { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Opik))] +#endif + public bool IsOpik => Opik != null; + + /// + /// + /// + public bool TryPickOpik( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.GetObservabilityDestinationResponseDataVariant9? value) + { + value = Opik; + return IsOpik; + } + + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9 PickOpik() => IsOpik + ? Opik! + : throw new global::System.InvalidOperationException($"Expected union variant 'Opik' but the value was {ToString()}."); + + /// + /// otel-collector variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10? OtelCollector { get; init; } +#else + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10? OtelCollector { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OtelCollector))] +#endif + public bool IsOtelCollector => OtelCollector != null; + + /// + /// + /// + public bool TryPickOtelCollector( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.GetObservabilityDestinationResponseDataVariant10? value) + { + value = OtelCollector; + return IsOtelCollector; + } + + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10 PickOtelCollector() => IsOtelCollector + ? OtelCollector! + : throw new global::System.InvalidOperationException($"Expected union variant 'OtelCollector' but the value was {ToString()}."); + + /// + /// posthog variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11? Posthog { get; init; } +#else + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11? Posthog { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Posthog))] +#endif + public bool IsPosthog => Posthog != null; + + /// + /// + /// + public bool TryPickPosthog( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.GetObservabilityDestinationResponseDataVariant11? value) + { + value = Posthog; + return IsPosthog; + } + + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11 PickPosthog() => IsPosthog + ? Posthog! + : throw new global::System.InvalidOperationException($"Expected union variant 'Posthog' but the value was {ToString()}."); + + /// + /// ramp variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12? Ramp { get; init; } +#else + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12? Ramp { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Ramp))] +#endif + public bool IsRamp => Ramp != null; + + /// + /// + /// + public bool TryPickRamp( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.GetObservabilityDestinationResponseDataVariant12? value) + { + value = Ramp; + return IsRamp; + } + + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12 PickRamp() => IsRamp + ? Ramp! + : throw new global::System.InvalidOperationException($"Expected union variant 'Ramp' but the value was {ToString()}."); + + /// + /// s3 variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13? S3 { get; init; } +#else + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13? S3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(S3))] +#endif + public bool IsS3 => S3 != null; + + /// + /// + /// + public bool TryPickS3( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.GetObservabilityDestinationResponseDataVariant13? value) + { + value = S3; + return IsS3; + } + + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13 PickS3() => IsS3 + ? S3! + : throw new global::System.InvalidOperationException($"Expected union variant 'S3' but the value was {ToString()}."); + + /// + /// sentry variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14? Sentry { get; init; } +#else + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14? Sentry { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Sentry))] +#endif + public bool IsSentry => Sentry != null; + + /// + /// + /// + public bool TryPickSentry( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.GetObservabilityDestinationResponseDataVariant14? value) + { + value = Sentry; + return IsSentry; + } + + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14 PickSentry() => IsSentry + ? Sentry! + : throw new global::System.InvalidOperationException($"Expected union variant 'Sentry' but the value was {ToString()}."); + + /// + /// snowflake variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15? Snowflake { get; init; } +#else + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15? Snowflake { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Snowflake))] +#endif + public bool IsSnowflake => Snowflake != null; + + /// + /// + /// + public bool TryPickSnowflake( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.GetObservabilityDestinationResponseDataVariant15? value) + { + value = Snowflake; + return IsSnowflake; + } + + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15 PickSnowflake() => IsSnowflake + ? Snowflake! + : throw new global::System.InvalidOperationException($"Expected union variant 'Snowflake' but the value was {ToString()}."); + + /// + /// weave variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16? Weave { get; init; } +#else + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16? Weave { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Weave))] +#endif + public bool IsWeave => Weave != null; + + /// + /// + /// + public bool TryPickWeave( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.GetObservabilityDestinationResponseDataVariant16? value) + { + value = Weave; + return IsWeave; + } + + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16 PickWeave() => IsWeave + ? Weave! + : throw new global::System.InvalidOperationException($"Expected union variant 'Weave' but the value was {ToString()}."); + + /// + /// webhook variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17? Webhook { get; init; } +#else + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17? Webhook { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Webhook))] +#endif + public bool IsWebhook => Webhook != null; + + /// + /// + /// + public bool TryPickWebhook( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.GetObservabilityDestinationResponseDataVariant17? value) + { + value = Webhook; + return IsWebhook; + } + + /// + /// + /// + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17 PickWebhook() => IsWebhook + ? Webhook! + : throw new global::System.InvalidOperationException($"Expected union variant 'Webhook' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant1 value) => new GetObservabilityDestinationResponseData((global::OpenRouter.GetObservabilityDestinationResponseDataVariant1?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GetObservabilityDestinationResponseDataVariant1?(GetObservabilityDestinationResponseData @this) => @this.Arize; + + /// + /// + /// + public GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant1? value) + { + Arize = value; + } + + /// + /// + /// + public static GetObservabilityDestinationResponseData FromArize(global::OpenRouter.GetObservabilityDestinationResponseDataVariant1? value) => new GetObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant2 value) => new GetObservabilityDestinationResponseData((global::OpenRouter.GetObservabilityDestinationResponseDataVariant2?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GetObservabilityDestinationResponseDataVariant2?(GetObservabilityDestinationResponseData @this) => @this.Braintrust; + + /// + /// + /// + public GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant2? value) + { + Braintrust = value; + } + + /// + /// + /// + public static GetObservabilityDestinationResponseData FromBraintrust(global::OpenRouter.GetObservabilityDestinationResponseDataVariant2? value) => new GetObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant3 value) => new GetObservabilityDestinationResponseData((global::OpenRouter.GetObservabilityDestinationResponseDataVariant3?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GetObservabilityDestinationResponseDataVariant3?(GetObservabilityDestinationResponseData @this) => @this.Clickhouse; + + /// + /// + /// + public GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant3? value) + { + Clickhouse = value; + } + + /// + /// + /// + public static GetObservabilityDestinationResponseData FromClickhouse(global::OpenRouter.GetObservabilityDestinationResponseDataVariant3? value) => new GetObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant4 value) => new GetObservabilityDestinationResponseData((global::OpenRouter.GetObservabilityDestinationResponseDataVariant4?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GetObservabilityDestinationResponseDataVariant4?(GetObservabilityDestinationResponseData @this) => @this.Datadog; + + /// + /// + /// + public GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant4? value) + { + Datadog = value; + } + + /// + /// + /// + public static GetObservabilityDestinationResponseData FromDatadog(global::OpenRouter.GetObservabilityDestinationResponseDataVariant4? value) => new GetObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant5 value) => new GetObservabilityDestinationResponseData((global::OpenRouter.GetObservabilityDestinationResponseDataVariant5?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GetObservabilityDestinationResponseDataVariant5?(GetObservabilityDestinationResponseData @this) => @this.Grafana; + + /// + /// + /// + public GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant5? value) + { + Grafana = value; + } + + /// + /// + /// + public static GetObservabilityDestinationResponseData FromGrafana(global::OpenRouter.GetObservabilityDestinationResponseDataVariant5? value) => new GetObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant6 value) => new GetObservabilityDestinationResponseData((global::OpenRouter.GetObservabilityDestinationResponseDataVariant6?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GetObservabilityDestinationResponseDataVariant6?(GetObservabilityDestinationResponseData @this) => @this.Langfuse; + + /// + /// + /// + public GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant6? value) + { + Langfuse = value; + } + + /// + /// + /// + public static GetObservabilityDestinationResponseData FromLangfuse(global::OpenRouter.GetObservabilityDestinationResponseDataVariant6? value) => new GetObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant7 value) => new GetObservabilityDestinationResponseData((global::OpenRouter.GetObservabilityDestinationResponseDataVariant7?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GetObservabilityDestinationResponseDataVariant7?(GetObservabilityDestinationResponseData @this) => @this.Langsmith; + + /// + /// + /// + public GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant7? value) + { + Langsmith = value; + } + + /// + /// + /// + public static GetObservabilityDestinationResponseData FromLangsmith(global::OpenRouter.GetObservabilityDestinationResponseDataVariant7? value) => new GetObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant8 value) => new GetObservabilityDestinationResponseData((global::OpenRouter.GetObservabilityDestinationResponseDataVariant8?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GetObservabilityDestinationResponseDataVariant8?(GetObservabilityDestinationResponseData @this) => @this.Newrelic; + + /// + /// + /// + public GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant8? value) + { + Newrelic = value; + } + + /// + /// + /// + public static GetObservabilityDestinationResponseData FromNewrelic(global::OpenRouter.GetObservabilityDestinationResponseDataVariant8? value) => new GetObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant9 value) => new GetObservabilityDestinationResponseData((global::OpenRouter.GetObservabilityDestinationResponseDataVariant9?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GetObservabilityDestinationResponseDataVariant9?(GetObservabilityDestinationResponseData @this) => @this.Opik; + + /// + /// + /// + public GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant9? value) + { + Opik = value; + } + + /// + /// + /// + public static GetObservabilityDestinationResponseData FromOpik(global::OpenRouter.GetObservabilityDestinationResponseDataVariant9? value) => new GetObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant10 value) => new GetObservabilityDestinationResponseData((global::OpenRouter.GetObservabilityDestinationResponseDataVariant10?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GetObservabilityDestinationResponseDataVariant10?(GetObservabilityDestinationResponseData @this) => @this.OtelCollector; + + /// + /// + /// + public GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant10? value) + { + OtelCollector = value; + } + + /// + /// + /// + public static GetObservabilityDestinationResponseData FromOtelCollector(global::OpenRouter.GetObservabilityDestinationResponseDataVariant10? value) => new GetObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant11 value) => new GetObservabilityDestinationResponseData((global::OpenRouter.GetObservabilityDestinationResponseDataVariant11?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GetObservabilityDestinationResponseDataVariant11?(GetObservabilityDestinationResponseData @this) => @this.Posthog; + + /// + /// + /// + public GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant11? value) + { + Posthog = value; + } + + /// + /// + /// + public static GetObservabilityDestinationResponseData FromPosthog(global::OpenRouter.GetObservabilityDestinationResponseDataVariant11? value) => new GetObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant12 value) => new GetObservabilityDestinationResponseData((global::OpenRouter.GetObservabilityDestinationResponseDataVariant12?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GetObservabilityDestinationResponseDataVariant12?(GetObservabilityDestinationResponseData @this) => @this.Ramp; + + /// + /// + /// + public GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant12? value) + { + Ramp = value; + } + + /// + /// + /// + public static GetObservabilityDestinationResponseData FromRamp(global::OpenRouter.GetObservabilityDestinationResponseDataVariant12? value) => new GetObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant13 value) => new GetObservabilityDestinationResponseData((global::OpenRouter.GetObservabilityDestinationResponseDataVariant13?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GetObservabilityDestinationResponseDataVariant13?(GetObservabilityDestinationResponseData @this) => @this.S3; + + /// + /// + /// + public GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant13? value) + { + S3 = value; + } + + /// + /// + /// + public static GetObservabilityDestinationResponseData FromS3(global::OpenRouter.GetObservabilityDestinationResponseDataVariant13? value) => new GetObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant14 value) => new GetObservabilityDestinationResponseData((global::OpenRouter.GetObservabilityDestinationResponseDataVariant14?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GetObservabilityDestinationResponseDataVariant14?(GetObservabilityDestinationResponseData @this) => @this.Sentry; + + /// + /// + /// + public GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant14? value) + { + Sentry = value; + } + + /// + /// + /// + public static GetObservabilityDestinationResponseData FromSentry(global::OpenRouter.GetObservabilityDestinationResponseDataVariant14? value) => new GetObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant15 value) => new GetObservabilityDestinationResponseData((global::OpenRouter.GetObservabilityDestinationResponseDataVariant15?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GetObservabilityDestinationResponseDataVariant15?(GetObservabilityDestinationResponseData @this) => @this.Snowflake; + + /// + /// + /// + public GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant15? value) + { + Snowflake = value; + } + + /// + /// + /// + public static GetObservabilityDestinationResponseData FromSnowflake(global::OpenRouter.GetObservabilityDestinationResponseDataVariant15? value) => new GetObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant16 value) => new GetObservabilityDestinationResponseData((global::OpenRouter.GetObservabilityDestinationResponseDataVariant16?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GetObservabilityDestinationResponseDataVariant16?(GetObservabilityDestinationResponseData @this) => @this.Weave; + + /// + /// + /// + public GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant16? value) + { + Weave = value; + } + + /// + /// + /// + public static GetObservabilityDestinationResponseData FromWeave(global::OpenRouter.GetObservabilityDestinationResponseDataVariant16? value) => new GetObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant17 value) => new GetObservabilityDestinationResponseData((global::OpenRouter.GetObservabilityDestinationResponseDataVariant17?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.GetObservabilityDestinationResponseDataVariant17?(GetObservabilityDestinationResponseData @this) => @this.Webhook; + + /// + /// + /// + public GetObservabilityDestinationResponseData(global::OpenRouter.GetObservabilityDestinationResponseDataVariant17? value) + { + Webhook = value; + } + + /// + /// + /// + public static GetObservabilityDestinationResponseData FromWebhook(global::OpenRouter.GetObservabilityDestinationResponseDataVariant17? value) => new GetObservabilityDestinationResponseData(value); + + /// + /// + /// + public GetObservabilityDestinationResponseData( + global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType? type, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant1? arize, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant2? braintrust, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant3? clickhouse, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant4? datadog, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant5? grafana, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant6? langfuse, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant7? langsmith, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant8? newrelic, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant9? opik, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant10? otelCollector, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant11? posthog, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant12? ramp, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant13? s3, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant14? sentry, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant15? snowflake, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant16? weave, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant17? webhook + ) + { + Type = type; + + Arize = arize; + Braintrust = braintrust; + Clickhouse = clickhouse; + Datadog = datadog; + Grafana = grafana; + Langfuse = langfuse; + Langsmith = langsmith; + Newrelic = newrelic; + Opik = opik; + OtelCollector = otelCollector; + Posthog = posthog; + Ramp = ramp; + S3 = s3; + Sentry = sentry; + Snowflake = snowflake; + Weave = weave; + Webhook = webhook; + } + + /// + /// + /// + public object? Object => + Webhook as object ?? + Weave as object ?? + Snowflake as object ?? + Sentry as object ?? + S3 as object ?? + Ramp as object ?? + Posthog as object ?? + OtelCollector as object ?? + Opik as object ?? + Newrelic as object ?? + Langsmith as object ?? + Langfuse as object ?? + Grafana as object ?? + Datadog as object ?? + Clickhouse as object ?? + Braintrust as object ?? + Arize as object + ; + + /// + /// + /// + public override string? ToString() => + Arize?.ToString() ?? + Braintrust?.ToString() ?? + Clickhouse?.ToString() ?? + Datadog?.ToString() ?? + Grafana?.ToString() ?? + Langfuse?.ToString() ?? + Langsmith?.ToString() ?? + Newrelic?.ToString() ?? + Opik?.ToString() ?? + OtelCollector?.ToString() ?? + Posthog?.ToString() ?? + Ramp?.ToString() ?? + S3?.ToString() ?? + Sentry?.ToString() ?? + Snowflake?.ToString() ?? + Weave?.ToString() ?? + Webhook?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && IsWebhook; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? arize = null, + global::System.Func? braintrust = null, + global::System.Func? clickhouse = null, + global::System.Func? datadog = null, + global::System.Func? grafana = null, + global::System.Func? langfuse = null, + global::System.Func? langsmith = null, + global::System.Func? newrelic = null, + global::System.Func? opik = null, + global::System.Func? otelCollector = null, + global::System.Func? posthog = null, + global::System.Func? ramp = null, + global::System.Func? s3 = null, + global::System.Func? sentry = null, + global::System.Func? snowflake = null, + global::System.Func? weave = null, + global::System.Func? webhook = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsArize && arize != null) + { + return arize(Arize!); + } + else if (IsBraintrust && braintrust != null) + { + return braintrust(Braintrust!); + } + else if (IsClickhouse && clickhouse != null) + { + return clickhouse(Clickhouse!); + } + else if (IsDatadog && datadog != null) + { + return datadog(Datadog!); + } + else if (IsGrafana && grafana != null) + { + return grafana(Grafana!); + } + else if (IsLangfuse && langfuse != null) + { + return langfuse(Langfuse!); + } + else if (IsLangsmith && langsmith != null) + { + return langsmith(Langsmith!); + } + else if (IsNewrelic && newrelic != null) + { + return newrelic(Newrelic!); + } + else if (IsOpik && opik != null) + { + return opik(Opik!); + } + else if (IsOtelCollector && otelCollector != null) + { + return otelCollector(OtelCollector!); + } + else if (IsPosthog && posthog != null) + { + return posthog(Posthog!); + } + else if (IsRamp && ramp != null) + { + return ramp(Ramp!); + } + else if (IsS3 && s3 != null) + { + return s3(S3!); + } + else if (IsSentry && sentry != null) + { + return sentry(Sentry!); + } + else if (IsSnowflake && snowflake != null) + { + return snowflake(Snowflake!); + } + else if (IsWeave && weave != null) + { + return weave(Weave!); + } + else if (IsWebhook && webhook != null) + { + return webhook(Webhook!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? arize = null, + + global::System.Action? braintrust = null, + + global::System.Action? clickhouse = null, + + global::System.Action? datadog = null, + + global::System.Action? grafana = null, + + global::System.Action? langfuse = null, + + global::System.Action? langsmith = null, + + global::System.Action? newrelic = null, + + global::System.Action? opik = null, + + global::System.Action? otelCollector = null, + + global::System.Action? posthog = null, + + global::System.Action? ramp = null, + + global::System.Action? s3 = null, + + global::System.Action? sentry = null, + + global::System.Action? snowflake = null, + + global::System.Action? weave = null, + + global::System.Action? webhook = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsArize) + { + arize?.Invoke(Arize!); + } + else if (IsBraintrust) + { + braintrust?.Invoke(Braintrust!); + } + else if (IsClickhouse) + { + clickhouse?.Invoke(Clickhouse!); + } + else if (IsDatadog) + { + datadog?.Invoke(Datadog!); + } + else if (IsGrafana) + { + grafana?.Invoke(Grafana!); + } + else if (IsLangfuse) + { + langfuse?.Invoke(Langfuse!); + } + else if (IsLangsmith) + { + langsmith?.Invoke(Langsmith!); + } + else if (IsNewrelic) + { + newrelic?.Invoke(Newrelic!); + } + else if (IsOpik) + { + opik?.Invoke(Opik!); + } + else if (IsOtelCollector) + { + otelCollector?.Invoke(OtelCollector!); + } + else if (IsPosthog) + { + posthog?.Invoke(Posthog!); + } + else if (IsRamp) + { + ramp?.Invoke(Ramp!); + } + else if (IsS3) + { + s3?.Invoke(S3!); + } + else if (IsSentry) + { + sentry?.Invoke(Sentry!); + } + else if (IsSnowflake) + { + snowflake?.Invoke(Snowflake!); + } + else if (IsWeave) + { + weave?.Invoke(Weave!); + } + else if (IsWebhook) + { + webhook?.Invoke(Webhook!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? arize = null, + global::System.Action? braintrust = null, + global::System.Action? clickhouse = null, + global::System.Action? datadog = null, + global::System.Action? grafana = null, + global::System.Action? langfuse = null, + global::System.Action? langsmith = null, + global::System.Action? newrelic = null, + global::System.Action? opik = null, + global::System.Action? otelCollector = null, + global::System.Action? posthog = null, + global::System.Action? ramp = null, + global::System.Action? s3 = null, + global::System.Action? sentry = null, + global::System.Action? snowflake = null, + global::System.Action? weave = null, + global::System.Action? webhook = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsArize) + { + arize?.Invoke(Arize!); + } + else if (IsBraintrust) + { + braintrust?.Invoke(Braintrust!); + } + else if (IsClickhouse) + { + clickhouse?.Invoke(Clickhouse!); + } + else if (IsDatadog) + { + datadog?.Invoke(Datadog!); + } + else if (IsGrafana) + { + grafana?.Invoke(Grafana!); + } + else if (IsLangfuse) + { + langfuse?.Invoke(Langfuse!); + } + else if (IsLangsmith) + { + langsmith?.Invoke(Langsmith!); + } + else if (IsNewrelic) + { + newrelic?.Invoke(Newrelic!); + } + else if (IsOpik) + { + opik?.Invoke(Opik!); + } + else if (IsOtelCollector) + { + otelCollector?.Invoke(OtelCollector!); + } + else if (IsPosthog) + { + posthog?.Invoke(Posthog!); + } + else if (IsRamp) + { + ramp?.Invoke(Ramp!); + } + else if (IsS3) + { + s3?.Invoke(S3!); + } + else if (IsSentry) + { + sentry?.Invoke(Sentry!); + } + else if (IsSnowflake) + { + snowflake?.Invoke(Snowflake!); + } + else if (IsWeave) + { + weave?.Invoke(Weave!); + } + else if (IsWebhook) + { + webhook?.Invoke(Webhook!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Arize, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant1), + Braintrust, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant2), + Clickhouse, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant3), + Datadog, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant4), + Grafana, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant5), + Langfuse, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant6), + Langsmith, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant7), + Newrelic, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant8), + Opik, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant9), + OtelCollector, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant10), + Posthog, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant11), + Ramp, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant12), + S3, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant13), + Sentry, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant14), + Snowflake, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant15), + Weave, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant16), + Webhook, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant17), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(GetObservabilityDestinationResponseData other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Arize, other.Arize) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Braintrust, other.Braintrust) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Clickhouse, other.Clickhouse) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Datadog, other.Datadog) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Grafana, other.Grafana) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Langfuse, other.Langfuse) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Langsmith, other.Langsmith) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Newrelic, other.Newrelic) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Opik, other.Opik) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OtelCollector, other.OtelCollector) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Posthog, other.Posthog) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Ramp, other.Ramp) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(S3, other.S3) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Sentry, other.Sentry) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Snowflake, other.Snowflake) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Weave, other.Weave) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Webhook, other.Webhook) + ; + } + + /// + /// + /// + public static bool operator ==(GetObservabilityDestinationResponseData obj1, GetObservabilityDestinationResponseData obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(GetObservabilityDestinationResponseData obj1, GetObservabilityDestinationResponseData obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is GetObservabilityDestinationResponseData o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataDiscriminator.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataDiscriminator.Json.g.cs new file mode 100644 index 0000000..e618eb4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponseDataDiscriminator + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataDiscriminator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataDiscriminator.g.cs new file mode 100644 index 0000000..d536a0b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class GetObservabilityDestinationResponseDataDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter))] + public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType? Type { 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. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponseDataDiscriminator( + global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponseDataDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataDiscriminatorType.g.cs new file mode 100644 index 0000000..d92a008 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataDiscriminatorType.g.cs @@ -0,0 +1,141 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum GetObservabilityDestinationResponseDataDiscriminatorType + { + /// + /// + /// + Arize, + /// + /// + /// + Braintrust, + /// + /// + /// + Clickhouse, + /// + /// + /// + Datadog, + /// + /// + /// + Grafana, + /// + /// + /// + Langfuse, + /// + /// + /// + Langsmith, + /// + /// + /// + Newrelic, + /// + /// + /// + Opik, + /// + /// + /// + OtelCollector, + /// + /// + /// + Posthog, + /// + /// + /// + Ramp, + /// + /// + /// + S3, + /// + /// + /// + Sentry, + /// + /// + /// + Snowflake, + /// + /// + /// + Weave, + /// + /// + /// + Webhook, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetObservabilityDestinationResponseDataDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetObservabilityDestinationResponseDataDiscriminatorType value) + { + return value switch + { + GetObservabilityDestinationResponseDataDiscriminatorType.Arize => "arize", + GetObservabilityDestinationResponseDataDiscriminatorType.Braintrust => "braintrust", + GetObservabilityDestinationResponseDataDiscriminatorType.Clickhouse => "clickhouse", + GetObservabilityDestinationResponseDataDiscriminatorType.Datadog => "datadog", + GetObservabilityDestinationResponseDataDiscriminatorType.Grafana => "grafana", + GetObservabilityDestinationResponseDataDiscriminatorType.Langfuse => "langfuse", + GetObservabilityDestinationResponseDataDiscriminatorType.Langsmith => "langsmith", + GetObservabilityDestinationResponseDataDiscriminatorType.Newrelic => "newrelic", + GetObservabilityDestinationResponseDataDiscriminatorType.Opik => "opik", + GetObservabilityDestinationResponseDataDiscriminatorType.OtelCollector => "otel-collector", + GetObservabilityDestinationResponseDataDiscriminatorType.Posthog => "posthog", + GetObservabilityDestinationResponseDataDiscriminatorType.Ramp => "ramp", + GetObservabilityDestinationResponseDataDiscriminatorType.S3 => "s3", + GetObservabilityDestinationResponseDataDiscriminatorType.Sentry => "sentry", + GetObservabilityDestinationResponseDataDiscriminatorType.Snowflake => "snowflake", + GetObservabilityDestinationResponseDataDiscriminatorType.Weave => "weave", + GetObservabilityDestinationResponseDataDiscriminatorType.Webhook => "webhook", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetObservabilityDestinationResponseDataDiscriminatorType? ToEnum(string value) + { + return value switch + { + "arize" => GetObservabilityDestinationResponseDataDiscriminatorType.Arize, + "braintrust" => GetObservabilityDestinationResponseDataDiscriminatorType.Braintrust, + "clickhouse" => GetObservabilityDestinationResponseDataDiscriminatorType.Clickhouse, + "datadog" => GetObservabilityDestinationResponseDataDiscriminatorType.Datadog, + "grafana" => GetObservabilityDestinationResponseDataDiscriminatorType.Grafana, + "langfuse" => GetObservabilityDestinationResponseDataDiscriminatorType.Langfuse, + "langsmith" => GetObservabilityDestinationResponseDataDiscriminatorType.Langsmith, + "newrelic" => GetObservabilityDestinationResponseDataDiscriminatorType.Newrelic, + "opik" => GetObservabilityDestinationResponseDataDiscriminatorType.Opik, + "otel-collector" => GetObservabilityDestinationResponseDataDiscriminatorType.OtelCollector, + "posthog" => GetObservabilityDestinationResponseDataDiscriminatorType.Posthog, + "ramp" => GetObservabilityDestinationResponseDataDiscriminatorType.Ramp, + "s3" => GetObservabilityDestinationResponseDataDiscriminatorType.S3, + "sentry" => GetObservabilityDestinationResponseDataDiscriminatorType.Sentry, + "snowflake" => GetObservabilityDestinationResponseDataDiscriminatorType.Snowflake, + "weave" => GetObservabilityDestinationResponseDataDiscriminatorType.Weave, + "webhook" => GetObservabilityDestinationResponseDataDiscriminatorType.Webhook, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant1.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant1.Json.g.cs new file mode 100644 index 0000000..e3df471 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant1.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponseDataVariant1 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseDataVariant1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant1), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant1; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseDataVariant1? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseDataVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant1; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant1.g.cs new file mode 100644 index 0000000..d6929cc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant1.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// arize variant + /// + public sealed partial class GetObservabilityDestinationResponseDataVariant1 + { + /// + /// Discriminator value: arize + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeJsonConverter))] + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: arize + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponseDataVariant1( + global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponseDataVariant1() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant10.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant10.Json.g.cs new file mode 100644 index 0000000..61b1ae9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant10.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponseDataVariant10 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseDataVariant10? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant10), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant10; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseDataVariant10? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseDataVariant10), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant10; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant10.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant10.g.cs new file mode 100644 index 0000000..0266166 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant10.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// otel-collector variant + /// + public sealed partial class GetObservabilityDestinationResponseDataVariant10 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityOtelCollectorDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityOtelCollectorDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponseDataVariant10( + global::OpenRouter.ObservabilityOtelCollectorDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityOtelCollectorDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponseDataVariant10() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant11.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant11.Json.g.cs new file mode 100644 index 0000000..02fb568 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant11.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponseDataVariant11 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseDataVariant11? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant11), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant11; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseDataVariant11? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseDataVariant11), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant11; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant11.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant11.g.cs new file mode 100644 index 0000000..c847b5c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant11.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// posthog variant + /// + public sealed partial class GetObservabilityDestinationResponseDataVariant11 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityPosthogDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityPosthogDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponseDataVariant11( + global::OpenRouter.ObservabilityPosthogDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityPosthogDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponseDataVariant11() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant12.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant12.Json.g.cs new file mode 100644 index 0000000..cc6d325 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant12.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponseDataVariant12 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseDataVariant12? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant12), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant12; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseDataVariant12? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseDataVariant12), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant12; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant12.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant12.g.cs new file mode 100644 index 0000000..345a5a7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant12.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// ramp variant + /// + public sealed partial class GetObservabilityDestinationResponseDataVariant12 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityRampDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityRampDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponseDataVariant12( + global::OpenRouter.ObservabilityRampDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityRampDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponseDataVariant12() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant13.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant13.Json.g.cs new file mode 100644 index 0000000..f06ebeb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant13.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponseDataVariant13 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseDataVariant13? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant13), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant13; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseDataVariant13? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseDataVariant13), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant13; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant13.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant13.g.cs new file mode 100644 index 0000000..e965cee --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant13.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// s3 variant + /// + public sealed partial class GetObservabilityDestinationResponseDataVariant13 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityS3DestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityS3DestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponseDataVariant13( + global::OpenRouter.ObservabilityS3DestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityS3DestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponseDataVariant13() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant14.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant14.Json.g.cs new file mode 100644 index 0000000..3a42676 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant14.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponseDataVariant14 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseDataVariant14? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant14), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant14; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseDataVariant14? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseDataVariant14), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant14; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant14.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant14.g.cs new file mode 100644 index 0000000..f735676 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant14.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// sentry variant + /// + public sealed partial class GetObservabilityDestinationResponseDataVariant14 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilitySentryDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilitySentryDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponseDataVariant14( + global::OpenRouter.ObservabilitySentryDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilitySentryDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponseDataVariant14() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant15.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant15.Json.g.cs new file mode 100644 index 0000000..d70886e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant15.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponseDataVariant15 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseDataVariant15? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant15), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant15; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseDataVariant15? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseDataVariant15), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant15; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant15.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant15.g.cs new file mode 100644 index 0000000..afcfb29 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant15.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// snowflake variant + /// + public sealed partial class GetObservabilityDestinationResponseDataVariant15 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilitySnowflakeDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilitySnowflakeDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponseDataVariant15( + global::OpenRouter.ObservabilitySnowflakeDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilitySnowflakeDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponseDataVariant15() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant16.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant16.Json.g.cs new file mode 100644 index 0000000..9d81ac4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant16.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponseDataVariant16 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseDataVariant16? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant16), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant16; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseDataVariant16? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseDataVariant16), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant16; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant16.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant16.g.cs new file mode 100644 index 0000000..a3384e1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant16.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// weave variant + /// + public sealed partial class GetObservabilityDestinationResponseDataVariant16 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityWeaveDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityWeaveDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponseDataVariant16( + global::OpenRouter.ObservabilityWeaveDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityWeaveDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponseDataVariant16() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant17.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant17.Json.g.cs new file mode 100644 index 0000000..a1674dd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant17.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponseDataVariant17 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseDataVariant17? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant17), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant17; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseDataVariant17? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseDataVariant17), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant17; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant17.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant17.g.cs new file mode 100644 index 0000000..e3fa6cb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant17.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// webhook variant + /// + public sealed partial class GetObservabilityDestinationResponseDataVariant17 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityWebhookDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityWebhookDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponseDataVariant17( + global::OpenRouter.ObservabilityWebhookDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityWebhookDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponseDataVariant17() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant1Type.g.cs new file mode 100644 index 0000000..16b9739 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant1Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: arize + /// + public enum GetObservabilityDestinationResponseDataVariant1Type + { + /// + /// arize + /// + Arize, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetObservabilityDestinationResponseDataVariant1TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetObservabilityDestinationResponseDataVariant1Type value) + { + return value switch + { + GetObservabilityDestinationResponseDataVariant1Type.Arize => "arize", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetObservabilityDestinationResponseDataVariant1Type? ToEnum(string value) + { + return value switch + { + "arize" => GetObservabilityDestinationResponseDataVariant1Type.Arize, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant2.Json.g.cs new file mode 100644 index 0000000..0bb1539 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponseDataVariant2 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseDataVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant2), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant2; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseDataVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseDataVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant2; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant2.g.cs new file mode 100644 index 0000000..ec07529 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant2.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// braintrust variant + /// + public sealed partial class GetObservabilityDestinationResponseDataVariant2 + { + /// + /// Discriminator value: braintrust + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant2TypeJsonConverter))] + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: braintrust + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponseDataVariant2( + global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponseDataVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant2Type.g.cs new file mode 100644 index 0000000..24d6468 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant2Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: braintrust + /// + public enum GetObservabilityDestinationResponseDataVariant2Type + { + /// + /// braintrust + /// + Braintrust, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetObservabilityDestinationResponseDataVariant2TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetObservabilityDestinationResponseDataVariant2Type value) + { + return value switch + { + GetObservabilityDestinationResponseDataVariant2Type.Braintrust => "braintrust", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetObservabilityDestinationResponseDataVariant2Type? ToEnum(string value) + { + return value switch + { + "braintrust" => GetObservabilityDestinationResponseDataVariant2Type.Braintrust, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant3.Json.g.cs new file mode 100644 index 0000000..cd35cbd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant3.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponseDataVariant3 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseDataVariant3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant3), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant3; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseDataVariant3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseDataVariant3), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant3; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant3.g.cs new file mode 100644 index 0000000..943202d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant3.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// clickhouse variant + /// + public sealed partial class GetObservabilityDestinationResponseDataVariant3 + { + /// + /// Discriminator value: clickhouse + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant3TypeJsonConverter))] + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: clickhouse + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponseDataVariant3( + global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponseDataVariant3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant3Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant3Type.g.cs new file mode 100644 index 0000000..196e626 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant3Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: clickhouse + /// + public enum GetObservabilityDestinationResponseDataVariant3Type + { + /// + /// clickhouse + /// + Clickhouse, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetObservabilityDestinationResponseDataVariant3TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetObservabilityDestinationResponseDataVariant3Type value) + { + return value switch + { + GetObservabilityDestinationResponseDataVariant3Type.Clickhouse => "clickhouse", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetObservabilityDestinationResponseDataVariant3Type? ToEnum(string value) + { + return value switch + { + "clickhouse" => GetObservabilityDestinationResponseDataVariant3Type.Clickhouse, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant4.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant4.Json.g.cs new file mode 100644 index 0000000..029197b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant4.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponseDataVariant4 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseDataVariant4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant4), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant4; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseDataVariant4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseDataVariant4), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant4; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant4.g.cs new file mode 100644 index 0000000..ff469f3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant4.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// datadog variant + /// + public sealed partial class GetObservabilityDestinationResponseDataVariant4 + { + /// + /// Discriminator value: datadog + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeJsonConverter))] + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: datadog + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponseDataVariant4( + global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponseDataVariant4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant4Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant4Type.g.cs new file mode 100644 index 0000000..a9b14ea --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant4Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: datadog + /// + public enum GetObservabilityDestinationResponseDataVariant4Type + { + /// + /// datadog + /// + Datadog, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetObservabilityDestinationResponseDataVariant4TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetObservabilityDestinationResponseDataVariant4Type value) + { + return value switch + { + GetObservabilityDestinationResponseDataVariant4Type.Datadog => "datadog", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetObservabilityDestinationResponseDataVariant4Type? ToEnum(string value) + { + return value switch + { + "datadog" => GetObservabilityDestinationResponseDataVariant4Type.Datadog, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant5.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant5.Json.g.cs new file mode 100644 index 0000000..49dc7e5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant5.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponseDataVariant5 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseDataVariant5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant5), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant5; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseDataVariant5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseDataVariant5), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant5; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant5.g.cs new file mode 100644 index 0000000..16efcd9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant5.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// grafana variant + /// + public sealed partial class GetObservabilityDestinationResponseDataVariant5 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityGrafanaDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityGrafanaDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponseDataVariant5( + global::OpenRouter.ObservabilityGrafanaDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityGrafanaDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponseDataVariant5() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant6.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant6.Json.g.cs new file mode 100644 index 0000000..ec20a05 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant6.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponseDataVariant6 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseDataVariant6? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant6), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant6; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseDataVariant6? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseDataVariant6), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant6; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant6.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant6.g.cs new file mode 100644 index 0000000..e7d5978 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant6.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// langfuse variant + /// + public sealed partial class GetObservabilityDestinationResponseDataVariant6 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityLangfuseDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityLangfuseDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponseDataVariant6( + global::OpenRouter.ObservabilityLangfuseDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityLangfuseDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponseDataVariant6() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant7.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant7.Json.g.cs new file mode 100644 index 0000000..ed1e838 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant7.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponseDataVariant7 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseDataVariant7? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant7), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant7; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseDataVariant7? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseDataVariant7), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant7; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant7.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant7.g.cs new file mode 100644 index 0000000..e4a64a9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant7.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// langsmith variant + /// + public sealed partial class GetObservabilityDestinationResponseDataVariant7 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityLangsmithDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityLangsmithDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponseDataVariant7( + global::OpenRouter.ObservabilityLangsmithDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityLangsmithDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponseDataVariant7() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant8.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant8.Json.g.cs new file mode 100644 index 0000000..1fb7343 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant8.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponseDataVariant8 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseDataVariant8? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant8), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant8; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseDataVariant8? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseDataVariant8), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant8; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant8.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant8.g.cs new file mode 100644 index 0000000..bfeb1b0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant8.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// newrelic variant + /// + public sealed partial class GetObservabilityDestinationResponseDataVariant8 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityNewrelicDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityNewrelicDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponseDataVariant8( + global::OpenRouter.ObservabilityNewrelicDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityNewrelicDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponseDataVariant8() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant9.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant9.Json.g.cs new file mode 100644 index 0000000..3dfb58c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant9.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetObservabilityDestinationResponseDataVariant9 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetObservabilityDestinationResponseDataVariant9? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant9), + jsonSerializerContext) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant9; + } + + /// + /// 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::OpenRouter.GetObservabilityDestinationResponseDataVariant9? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.GetObservabilityDestinationResponseDataVariant9), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetObservabilityDestinationResponseDataVariant9; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant9.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant9.g.cs new file mode 100644 index 0000000..6c80c02 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant9.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// opik variant + /// + public sealed partial class GetObservabilityDestinationResponseDataVariant9 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityOpikDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityOpikDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetObservabilityDestinationResponseDataVariant9( + global::OpenRouter.ObservabilityOpikDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityOpikDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetObservabilityDestinationResponseDataVariant9() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ListBYOKKeysResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListBYOKKeysResponse.Json.g.cs new file mode 100644 index 0000000..b03897c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListBYOKKeysResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ListBYOKKeysResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ListBYOKKeysResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ListBYOKKeysResponse), + jsonSerializerContext) as global::OpenRouter.ListBYOKKeysResponse; + } + + /// + /// 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::OpenRouter.ListBYOKKeysResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ListBYOKKeysResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ListBYOKKeysResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ListBYOKKeysResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListBYOKKeysResponse.g.cs new file mode 100644 index 0000000..91ab18a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListBYOKKeysResponse.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ListBYOKKeysResponse + { + /// + /// List of BYOK credentials. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Data { get; set; } + + /// + /// Total number of BYOK credentials matching the filters. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int TotalCount { 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. + /// + /// + /// List of BYOK credentials. + /// + /// + /// Total number of BYOK credentials matching the filters. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListBYOKKeysResponse( + global::System.Collections.Generic.IList data, + int totalCount) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + this.TotalCount = totalCount; + } + + /// + /// Initializes a new instance of the class. + /// + public ListBYOKKeysResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ListObservabilityDestinationsResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListObservabilityDestinationsResponse.Json.g.cs new file mode 100644 index 0000000..897b218 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListObservabilityDestinationsResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ListObservabilityDestinationsResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ListObservabilityDestinationsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ListObservabilityDestinationsResponse), + jsonSerializerContext) as global::OpenRouter.ListObservabilityDestinationsResponse; + } + + /// + /// 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::OpenRouter.ListObservabilityDestinationsResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ListObservabilityDestinationsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ListObservabilityDestinationsResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ListObservabilityDestinationsResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListObservabilityDestinationsResponse.g.cs new file mode 100644 index 0000000..5eaf7e4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListObservabilityDestinationsResponse.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ListObservabilityDestinationsResponse + { + /// + /// List of observability destinations. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Data { get; set; } + + /// + /// Total number of destinations matching the filters. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int TotalCount { 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. + /// + /// + /// List of observability destinations. + /// + /// + /// Total number of destinations matching the filters. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListObservabilityDestinationsResponse( + global::System.Collections.Generic.IList data, + int totalCount) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + this.TotalCount = totalCount; + } + + /// + /// Initializes a new instance of the class. + /// + public ListObservabilityDestinationsResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestination.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestination.Json.g.cs new file mode 100644 index 0000000..ff52ae7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestination.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct ObservabilityDestination + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestination? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestination), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestination?; + } + + /// + /// 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::OpenRouter.ObservabilityDestination? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestination), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestination?; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestination.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestination.g.cs new file mode 100644 index 0000000..ac290be --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestination.g.cs @@ -0,0 +1,1548 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct ObservabilityDestination : global::System.IEquatable + { + /// + /// + /// + public global::OpenRouter.ObservabilityDestinationDiscriminatorType? Type { get; } + + /// + /// arize variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ObservabilityDestinationVariant1? Arize { get; init; } +#else + public global::OpenRouter.ObservabilityDestinationVariant1? Arize { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Arize))] +#endif + public bool IsArize => Arize != null; + + /// + /// + /// + public bool TryPickArize( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ObservabilityDestinationVariant1? value) + { + value = Arize; + return IsArize; + } + + /// + /// + /// + public global::OpenRouter.ObservabilityDestinationVariant1 PickArize() => IsArize + ? Arize! + : throw new global::System.InvalidOperationException($"Expected union variant 'Arize' but the value was {ToString()}."); + + /// + /// braintrust variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ObservabilityDestinationVariant2? Braintrust { get; init; } +#else + public global::OpenRouter.ObservabilityDestinationVariant2? Braintrust { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Braintrust))] +#endif + public bool IsBraintrust => Braintrust != null; + + /// + /// + /// + public bool TryPickBraintrust( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ObservabilityDestinationVariant2? value) + { + value = Braintrust; + return IsBraintrust; + } + + /// + /// + /// + public global::OpenRouter.ObservabilityDestinationVariant2 PickBraintrust() => IsBraintrust + ? Braintrust! + : throw new global::System.InvalidOperationException($"Expected union variant 'Braintrust' but the value was {ToString()}."); + + /// + /// clickhouse variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ObservabilityDestinationVariant3? Clickhouse { get; init; } +#else + public global::OpenRouter.ObservabilityDestinationVariant3? Clickhouse { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Clickhouse))] +#endif + public bool IsClickhouse => Clickhouse != null; + + /// + /// + /// + public bool TryPickClickhouse( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ObservabilityDestinationVariant3? value) + { + value = Clickhouse; + return IsClickhouse; + } + + /// + /// + /// + public global::OpenRouter.ObservabilityDestinationVariant3 PickClickhouse() => IsClickhouse + ? Clickhouse! + : throw new global::System.InvalidOperationException($"Expected union variant 'Clickhouse' but the value was {ToString()}."); + + /// + /// datadog variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ObservabilityDestinationVariant4? Datadog { get; init; } +#else + public global::OpenRouter.ObservabilityDestinationVariant4? Datadog { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Datadog))] +#endif + public bool IsDatadog => Datadog != null; + + /// + /// + /// + public bool TryPickDatadog( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ObservabilityDestinationVariant4? value) + { + value = Datadog; + return IsDatadog; + } + + /// + /// + /// + public global::OpenRouter.ObservabilityDestinationVariant4 PickDatadog() => IsDatadog + ? Datadog! + : throw new global::System.InvalidOperationException($"Expected union variant 'Datadog' but the value was {ToString()}."); + + /// + /// grafana variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ObservabilityDestinationVariant5? Grafana { get; init; } +#else + public global::OpenRouter.ObservabilityDestinationVariant5? Grafana { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Grafana))] +#endif + public bool IsGrafana => Grafana != null; + + /// + /// + /// + public bool TryPickGrafana( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ObservabilityDestinationVariant5? value) + { + value = Grafana; + return IsGrafana; + } + + /// + /// + /// + public global::OpenRouter.ObservabilityDestinationVariant5 PickGrafana() => IsGrafana + ? Grafana! + : throw new global::System.InvalidOperationException($"Expected union variant 'Grafana' but the value was {ToString()}."); + + /// + /// langfuse variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ObservabilityDestinationVariant6? Langfuse { get; init; } +#else + public global::OpenRouter.ObservabilityDestinationVariant6? Langfuse { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Langfuse))] +#endif + public bool IsLangfuse => Langfuse != null; + + /// + /// + /// + public bool TryPickLangfuse( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ObservabilityDestinationVariant6? value) + { + value = Langfuse; + return IsLangfuse; + } + + /// + /// + /// + public global::OpenRouter.ObservabilityDestinationVariant6 PickLangfuse() => IsLangfuse + ? Langfuse! + : throw new global::System.InvalidOperationException($"Expected union variant 'Langfuse' but the value was {ToString()}."); + + /// + /// langsmith variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ObservabilityDestinationVariant7? Langsmith { get; init; } +#else + public global::OpenRouter.ObservabilityDestinationVariant7? Langsmith { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Langsmith))] +#endif + public bool IsLangsmith => Langsmith != null; + + /// + /// + /// + public bool TryPickLangsmith( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ObservabilityDestinationVariant7? value) + { + value = Langsmith; + return IsLangsmith; + } + + /// + /// + /// + public global::OpenRouter.ObservabilityDestinationVariant7 PickLangsmith() => IsLangsmith + ? Langsmith! + : throw new global::System.InvalidOperationException($"Expected union variant 'Langsmith' but the value was {ToString()}."); + + /// + /// newrelic variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ObservabilityDestinationVariant8? Newrelic { get; init; } +#else + public global::OpenRouter.ObservabilityDestinationVariant8? Newrelic { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Newrelic))] +#endif + public bool IsNewrelic => Newrelic != null; + + /// + /// + /// + public bool TryPickNewrelic( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ObservabilityDestinationVariant8? value) + { + value = Newrelic; + return IsNewrelic; + } + + /// + /// + /// + public global::OpenRouter.ObservabilityDestinationVariant8 PickNewrelic() => IsNewrelic + ? Newrelic! + : throw new global::System.InvalidOperationException($"Expected union variant 'Newrelic' but the value was {ToString()}."); + + /// + /// opik variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ObservabilityDestinationVariant9? Opik { get; init; } +#else + public global::OpenRouter.ObservabilityDestinationVariant9? Opik { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Opik))] +#endif + public bool IsOpik => Opik != null; + + /// + /// + /// + public bool TryPickOpik( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ObservabilityDestinationVariant9? value) + { + value = Opik; + return IsOpik; + } + + /// + /// + /// + public global::OpenRouter.ObservabilityDestinationVariant9 PickOpik() => IsOpik + ? Opik! + : throw new global::System.InvalidOperationException($"Expected union variant 'Opik' but the value was {ToString()}."); + + /// + /// otel-collector variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ObservabilityDestinationVariant10? OtelCollector { get; init; } +#else + public global::OpenRouter.ObservabilityDestinationVariant10? OtelCollector { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OtelCollector))] +#endif + public bool IsOtelCollector => OtelCollector != null; + + /// + /// + /// + public bool TryPickOtelCollector( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ObservabilityDestinationVariant10? value) + { + value = OtelCollector; + return IsOtelCollector; + } + + /// + /// + /// + public global::OpenRouter.ObservabilityDestinationVariant10 PickOtelCollector() => IsOtelCollector + ? OtelCollector! + : throw new global::System.InvalidOperationException($"Expected union variant 'OtelCollector' but the value was {ToString()}."); + + /// + /// posthog variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ObservabilityDestinationVariant11? Posthog { get; init; } +#else + public global::OpenRouter.ObservabilityDestinationVariant11? Posthog { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Posthog))] +#endif + public bool IsPosthog => Posthog != null; + + /// + /// + /// + public bool TryPickPosthog( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ObservabilityDestinationVariant11? value) + { + value = Posthog; + return IsPosthog; + } + + /// + /// + /// + public global::OpenRouter.ObservabilityDestinationVariant11 PickPosthog() => IsPosthog + ? Posthog! + : throw new global::System.InvalidOperationException($"Expected union variant 'Posthog' but the value was {ToString()}."); + + /// + /// ramp variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ObservabilityDestinationVariant12? Ramp { get; init; } +#else + public global::OpenRouter.ObservabilityDestinationVariant12? Ramp { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Ramp))] +#endif + public bool IsRamp => Ramp != null; + + /// + /// + /// + public bool TryPickRamp( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ObservabilityDestinationVariant12? value) + { + value = Ramp; + return IsRamp; + } + + /// + /// + /// + public global::OpenRouter.ObservabilityDestinationVariant12 PickRamp() => IsRamp + ? Ramp! + : throw new global::System.InvalidOperationException($"Expected union variant 'Ramp' but the value was {ToString()}."); + + /// + /// s3 variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ObservabilityDestinationVariant13? S3 { get; init; } +#else + public global::OpenRouter.ObservabilityDestinationVariant13? S3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(S3))] +#endif + public bool IsS3 => S3 != null; + + /// + /// + /// + public bool TryPickS3( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ObservabilityDestinationVariant13? value) + { + value = S3; + return IsS3; + } + + /// + /// + /// + public global::OpenRouter.ObservabilityDestinationVariant13 PickS3() => IsS3 + ? S3! + : throw new global::System.InvalidOperationException($"Expected union variant 'S3' but the value was {ToString()}."); + + /// + /// sentry variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ObservabilityDestinationVariant14? Sentry { get; init; } +#else + public global::OpenRouter.ObservabilityDestinationVariant14? Sentry { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Sentry))] +#endif + public bool IsSentry => Sentry != null; + + /// + /// + /// + public bool TryPickSentry( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ObservabilityDestinationVariant14? value) + { + value = Sentry; + return IsSentry; + } + + /// + /// + /// + public global::OpenRouter.ObservabilityDestinationVariant14 PickSentry() => IsSentry + ? Sentry! + : throw new global::System.InvalidOperationException($"Expected union variant 'Sentry' but the value was {ToString()}."); + + /// + /// snowflake variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ObservabilityDestinationVariant15? Snowflake { get; init; } +#else + public global::OpenRouter.ObservabilityDestinationVariant15? Snowflake { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Snowflake))] +#endif + public bool IsSnowflake => Snowflake != null; + + /// + /// + /// + public bool TryPickSnowflake( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ObservabilityDestinationVariant15? value) + { + value = Snowflake; + return IsSnowflake; + } + + /// + /// + /// + public global::OpenRouter.ObservabilityDestinationVariant15 PickSnowflake() => IsSnowflake + ? Snowflake! + : throw new global::System.InvalidOperationException($"Expected union variant 'Snowflake' but the value was {ToString()}."); + + /// + /// weave variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ObservabilityDestinationVariant16? Weave { get; init; } +#else + public global::OpenRouter.ObservabilityDestinationVariant16? Weave { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Weave))] +#endif + public bool IsWeave => Weave != null; + + /// + /// + /// + public bool TryPickWeave( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ObservabilityDestinationVariant16? value) + { + value = Weave; + return IsWeave; + } + + /// + /// + /// + public global::OpenRouter.ObservabilityDestinationVariant16 PickWeave() => IsWeave + ? Weave! + : throw new global::System.InvalidOperationException($"Expected union variant 'Weave' but the value was {ToString()}."); + + /// + /// webhook variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ObservabilityDestinationVariant17? Webhook { get; init; } +#else + public global::OpenRouter.ObservabilityDestinationVariant17? Webhook { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Webhook))] +#endif + public bool IsWebhook => Webhook != null; + + /// + /// + /// + public bool TryPickWebhook( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ObservabilityDestinationVariant17? value) + { + value = Webhook; + return IsWebhook; + } + + /// + /// + /// + public global::OpenRouter.ObservabilityDestinationVariant17 PickWebhook() => IsWebhook + ? Webhook! + : throw new global::System.InvalidOperationException($"Expected union variant 'Webhook' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant1 value) => new ObservabilityDestination((global::OpenRouter.ObservabilityDestinationVariant1?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ObservabilityDestinationVariant1?(ObservabilityDestination @this) => @this.Arize; + + /// + /// + /// + public ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant1? value) + { + Arize = value; + } + + /// + /// + /// + public static ObservabilityDestination FromArize(global::OpenRouter.ObservabilityDestinationVariant1? value) => new ObservabilityDestination(value); + + /// + /// + /// + public static implicit operator ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant2 value) => new ObservabilityDestination((global::OpenRouter.ObservabilityDestinationVariant2?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ObservabilityDestinationVariant2?(ObservabilityDestination @this) => @this.Braintrust; + + /// + /// + /// + public ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant2? value) + { + Braintrust = value; + } + + /// + /// + /// + public static ObservabilityDestination FromBraintrust(global::OpenRouter.ObservabilityDestinationVariant2? value) => new ObservabilityDestination(value); + + /// + /// + /// + public static implicit operator ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant3 value) => new ObservabilityDestination((global::OpenRouter.ObservabilityDestinationVariant3?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ObservabilityDestinationVariant3?(ObservabilityDestination @this) => @this.Clickhouse; + + /// + /// + /// + public ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant3? value) + { + Clickhouse = value; + } + + /// + /// + /// + public static ObservabilityDestination FromClickhouse(global::OpenRouter.ObservabilityDestinationVariant3? value) => new ObservabilityDestination(value); + + /// + /// + /// + public static implicit operator ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant4 value) => new ObservabilityDestination((global::OpenRouter.ObservabilityDestinationVariant4?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ObservabilityDestinationVariant4?(ObservabilityDestination @this) => @this.Datadog; + + /// + /// + /// + public ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant4? value) + { + Datadog = value; + } + + /// + /// + /// + public static ObservabilityDestination FromDatadog(global::OpenRouter.ObservabilityDestinationVariant4? value) => new ObservabilityDestination(value); + + /// + /// + /// + public static implicit operator ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant5 value) => new ObservabilityDestination((global::OpenRouter.ObservabilityDestinationVariant5?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ObservabilityDestinationVariant5?(ObservabilityDestination @this) => @this.Grafana; + + /// + /// + /// + public ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant5? value) + { + Grafana = value; + } + + /// + /// + /// + public static ObservabilityDestination FromGrafana(global::OpenRouter.ObservabilityDestinationVariant5? value) => new ObservabilityDestination(value); + + /// + /// + /// + public static implicit operator ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant6 value) => new ObservabilityDestination((global::OpenRouter.ObservabilityDestinationVariant6?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ObservabilityDestinationVariant6?(ObservabilityDestination @this) => @this.Langfuse; + + /// + /// + /// + public ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant6? value) + { + Langfuse = value; + } + + /// + /// + /// + public static ObservabilityDestination FromLangfuse(global::OpenRouter.ObservabilityDestinationVariant6? value) => new ObservabilityDestination(value); + + /// + /// + /// + public static implicit operator ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant7 value) => new ObservabilityDestination((global::OpenRouter.ObservabilityDestinationVariant7?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ObservabilityDestinationVariant7?(ObservabilityDestination @this) => @this.Langsmith; + + /// + /// + /// + public ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant7? value) + { + Langsmith = value; + } + + /// + /// + /// + public static ObservabilityDestination FromLangsmith(global::OpenRouter.ObservabilityDestinationVariant7? value) => new ObservabilityDestination(value); + + /// + /// + /// + public static implicit operator ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant8 value) => new ObservabilityDestination((global::OpenRouter.ObservabilityDestinationVariant8?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ObservabilityDestinationVariant8?(ObservabilityDestination @this) => @this.Newrelic; + + /// + /// + /// + public ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant8? value) + { + Newrelic = value; + } + + /// + /// + /// + public static ObservabilityDestination FromNewrelic(global::OpenRouter.ObservabilityDestinationVariant8? value) => new ObservabilityDestination(value); + + /// + /// + /// + public static implicit operator ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant9 value) => new ObservabilityDestination((global::OpenRouter.ObservabilityDestinationVariant9?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ObservabilityDestinationVariant9?(ObservabilityDestination @this) => @this.Opik; + + /// + /// + /// + public ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant9? value) + { + Opik = value; + } + + /// + /// + /// + public static ObservabilityDestination FromOpik(global::OpenRouter.ObservabilityDestinationVariant9? value) => new ObservabilityDestination(value); + + /// + /// + /// + public static implicit operator ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant10 value) => new ObservabilityDestination((global::OpenRouter.ObservabilityDestinationVariant10?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ObservabilityDestinationVariant10?(ObservabilityDestination @this) => @this.OtelCollector; + + /// + /// + /// + public ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant10? value) + { + OtelCollector = value; + } + + /// + /// + /// + public static ObservabilityDestination FromOtelCollector(global::OpenRouter.ObservabilityDestinationVariant10? value) => new ObservabilityDestination(value); + + /// + /// + /// + public static implicit operator ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant11 value) => new ObservabilityDestination((global::OpenRouter.ObservabilityDestinationVariant11?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ObservabilityDestinationVariant11?(ObservabilityDestination @this) => @this.Posthog; + + /// + /// + /// + public ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant11? value) + { + Posthog = value; + } + + /// + /// + /// + public static ObservabilityDestination FromPosthog(global::OpenRouter.ObservabilityDestinationVariant11? value) => new ObservabilityDestination(value); + + /// + /// + /// + public static implicit operator ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant12 value) => new ObservabilityDestination((global::OpenRouter.ObservabilityDestinationVariant12?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ObservabilityDestinationVariant12?(ObservabilityDestination @this) => @this.Ramp; + + /// + /// + /// + public ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant12? value) + { + Ramp = value; + } + + /// + /// + /// + public static ObservabilityDestination FromRamp(global::OpenRouter.ObservabilityDestinationVariant12? value) => new ObservabilityDestination(value); + + /// + /// + /// + public static implicit operator ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant13 value) => new ObservabilityDestination((global::OpenRouter.ObservabilityDestinationVariant13?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ObservabilityDestinationVariant13?(ObservabilityDestination @this) => @this.S3; + + /// + /// + /// + public ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant13? value) + { + S3 = value; + } + + /// + /// + /// + public static ObservabilityDestination FromS3(global::OpenRouter.ObservabilityDestinationVariant13? value) => new ObservabilityDestination(value); + + /// + /// + /// + public static implicit operator ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant14 value) => new ObservabilityDestination((global::OpenRouter.ObservabilityDestinationVariant14?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ObservabilityDestinationVariant14?(ObservabilityDestination @this) => @this.Sentry; + + /// + /// + /// + public ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant14? value) + { + Sentry = value; + } + + /// + /// + /// + public static ObservabilityDestination FromSentry(global::OpenRouter.ObservabilityDestinationVariant14? value) => new ObservabilityDestination(value); + + /// + /// + /// + public static implicit operator ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant15 value) => new ObservabilityDestination((global::OpenRouter.ObservabilityDestinationVariant15?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ObservabilityDestinationVariant15?(ObservabilityDestination @this) => @this.Snowflake; + + /// + /// + /// + public ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant15? value) + { + Snowflake = value; + } + + /// + /// + /// + public static ObservabilityDestination FromSnowflake(global::OpenRouter.ObservabilityDestinationVariant15? value) => new ObservabilityDestination(value); + + /// + /// + /// + public static implicit operator ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant16 value) => new ObservabilityDestination((global::OpenRouter.ObservabilityDestinationVariant16?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ObservabilityDestinationVariant16?(ObservabilityDestination @this) => @this.Weave; + + /// + /// + /// + public ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant16? value) + { + Weave = value; + } + + /// + /// + /// + public static ObservabilityDestination FromWeave(global::OpenRouter.ObservabilityDestinationVariant16? value) => new ObservabilityDestination(value); + + /// + /// + /// + public static implicit operator ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant17 value) => new ObservabilityDestination((global::OpenRouter.ObservabilityDestinationVariant17?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ObservabilityDestinationVariant17?(ObservabilityDestination @this) => @this.Webhook; + + /// + /// + /// + public ObservabilityDestination(global::OpenRouter.ObservabilityDestinationVariant17? value) + { + Webhook = value; + } + + /// + /// + /// + public static ObservabilityDestination FromWebhook(global::OpenRouter.ObservabilityDestinationVariant17? value) => new ObservabilityDestination(value); + + /// + /// + /// + public ObservabilityDestination( + global::OpenRouter.ObservabilityDestinationDiscriminatorType? type, + global::OpenRouter.ObservabilityDestinationVariant1? arize, + global::OpenRouter.ObservabilityDestinationVariant2? braintrust, + global::OpenRouter.ObservabilityDestinationVariant3? clickhouse, + global::OpenRouter.ObservabilityDestinationVariant4? datadog, + global::OpenRouter.ObservabilityDestinationVariant5? grafana, + global::OpenRouter.ObservabilityDestinationVariant6? langfuse, + global::OpenRouter.ObservabilityDestinationVariant7? langsmith, + global::OpenRouter.ObservabilityDestinationVariant8? newrelic, + global::OpenRouter.ObservabilityDestinationVariant9? opik, + global::OpenRouter.ObservabilityDestinationVariant10? otelCollector, + global::OpenRouter.ObservabilityDestinationVariant11? posthog, + global::OpenRouter.ObservabilityDestinationVariant12? ramp, + global::OpenRouter.ObservabilityDestinationVariant13? s3, + global::OpenRouter.ObservabilityDestinationVariant14? sentry, + global::OpenRouter.ObservabilityDestinationVariant15? snowflake, + global::OpenRouter.ObservabilityDestinationVariant16? weave, + global::OpenRouter.ObservabilityDestinationVariant17? webhook + ) + { + Type = type; + + Arize = arize; + Braintrust = braintrust; + Clickhouse = clickhouse; + Datadog = datadog; + Grafana = grafana; + Langfuse = langfuse; + Langsmith = langsmith; + Newrelic = newrelic; + Opik = opik; + OtelCollector = otelCollector; + Posthog = posthog; + Ramp = ramp; + S3 = s3; + Sentry = sentry; + Snowflake = snowflake; + Weave = weave; + Webhook = webhook; + } + + /// + /// + /// + public object? Object => + Webhook as object ?? + Weave as object ?? + Snowflake as object ?? + Sentry as object ?? + S3 as object ?? + Ramp as object ?? + Posthog as object ?? + OtelCollector as object ?? + Opik as object ?? + Newrelic as object ?? + Langsmith as object ?? + Langfuse as object ?? + Grafana as object ?? + Datadog as object ?? + Clickhouse as object ?? + Braintrust as object ?? + Arize as object + ; + + /// + /// + /// + public override string? ToString() => + Arize?.ToString() ?? + Braintrust?.ToString() ?? + Clickhouse?.ToString() ?? + Datadog?.ToString() ?? + Grafana?.ToString() ?? + Langfuse?.ToString() ?? + Langsmith?.ToString() ?? + Newrelic?.ToString() ?? + Opik?.ToString() ?? + OtelCollector?.ToString() ?? + Posthog?.ToString() ?? + Ramp?.ToString() ?? + S3?.ToString() ?? + Sentry?.ToString() ?? + Snowflake?.ToString() ?? + Weave?.ToString() ?? + Webhook?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && IsWebhook; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? arize = null, + global::System.Func? braintrust = null, + global::System.Func? clickhouse = null, + global::System.Func? datadog = null, + global::System.Func? grafana = null, + global::System.Func? langfuse = null, + global::System.Func? langsmith = null, + global::System.Func? newrelic = null, + global::System.Func? opik = null, + global::System.Func? otelCollector = null, + global::System.Func? posthog = null, + global::System.Func? ramp = null, + global::System.Func? s3 = null, + global::System.Func? sentry = null, + global::System.Func? snowflake = null, + global::System.Func? weave = null, + global::System.Func? webhook = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsArize && arize != null) + { + return arize(Arize!); + } + else if (IsBraintrust && braintrust != null) + { + return braintrust(Braintrust!); + } + else if (IsClickhouse && clickhouse != null) + { + return clickhouse(Clickhouse!); + } + else if (IsDatadog && datadog != null) + { + return datadog(Datadog!); + } + else if (IsGrafana && grafana != null) + { + return grafana(Grafana!); + } + else if (IsLangfuse && langfuse != null) + { + return langfuse(Langfuse!); + } + else if (IsLangsmith && langsmith != null) + { + return langsmith(Langsmith!); + } + else if (IsNewrelic && newrelic != null) + { + return newrelic(Newrelic!); + } + else if (IsOpik && opik != null) + { + return opik(Opik!); + } + else if (IsOtelCollector && otelCollector != null) + { + return otelCollector(OtelCollector!); + } + else if (IsPosthog && posthog != null) + { + return posthog(Posthog!); + } + else if (IsRamp && ramp != null) + { + return ramp(Ramp!); + } + else if (IsS3 && s3 != null) + { + return s3(S3!); + } + else if (IsSentry && sentry != null) + { + return sentry(Sentry!); + } + else if (IsSnowflake && snowflake != null) + { + return snowflake(Snowflake!); + } + else if (IsWeave && weave != null) + { + return weave(Weave!); + } + else if (IsWebhook && webhook != null) + { + return webhook(Webhook!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? arize = null, + + global::System.Action? braintrust = null, + + global::System.Action? clickhouse = null, + + global::System.Action? datadog = null, + + global::System.Action? grafana = null, + + global::System.Action? langfuse = null, + + global::System.Action? langsmith = null, + + global::System.Action? newrelic = null, + + global::System.Action? opik = null, + + global::System.Action? otelCollector = null, + + global::System.Action? posthog = null, + + global::System.Action? ramp = null, + + global::System.Action? s3 = null, + + global::System.Action? sentry = null, + + global::System.Action? snowflake = null, + + global::System.Action? weave = null, + + global::System.Action? webhook = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsArize) + { + arize?.Invoke(Arize!); + } + else if (IsBraintrust) + { + braintrust?.Invoke(Braintrust!); + } + else if (IsClickhouse) + { + clickhouse?.Invoke(Clickhouse!); + } + else if (IsDatadog) + { + datadog?.Invoke(Datadog!); + } + else if (IsGrafana) + { + grafana?.Invoke(Grafana!); + } + else if (IsLangfuse) + { + langfuse?.Invoke(Langfuse!); + } + else if (IsLangsmith) + { + langsmith?.Invoke(Langsmith!); + } + else if (IsNewrelic) + { + newrelic?.Invoke(Newrelic!); + } + else if (IsOpik) + { + opik?.Invoke(Opik!); + } + else if (IsOtelCollector) + { + otelCollector?.Invoke(OtelCollector!); + } + else if (IsPosthog) + { + posthog?.Invoke(Posthog!); + } + else if (IsRamp) + { + ramp?.Invoke(Ramp!); + } + else if (IsS3) + { + s3?.Invoke(S3!); + } + else if (IsSentry) + { + sentry?.Invoke(Sentry!); + } + else if (IsSnowflake) + { + snowflake?.Invoke(Snowflake!); + } + else if (IsWeave) + { + weave?.Invoke(Weave!); + } + else if (IsWebhook) + { + webhook?.Invoke(Webhook!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? arize = null, + global::System.Action? braintrust = null, + global::System.Action? clickhouse = null, + global::System.Action? datadog = null, + global::System.Action? grafana = null, + global::System.Action? langfuse = null, + global::System.Action? langsmith = null, + global::System.Action? newrelic = null, + global::System.Action? opik = null, + global::System.Action? otelCollector = null, + global::System.Action? posthog = null, + global::System.Action? ramp = null, + global::System.Action? s3 = null, + global::System.Action? sentry = null, + global::System.Action? snowflake = null, + global::System.Action? weave = null, + global::System.Action? webhook = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsArize) + { + arize?.Invoke(Arize!); + } + else if (IsBraintrust) + { + braintrust?.Invoke(Braintrust!); + } + else if (IsClickhouse) + { + clickhouse?.Invoke(Clickhouse!); + } + else if (IsDatadog) + { + datadog?.Invoke(Datadog!); + } + else if (IsGrafana) + { + grafana?.Invoke(Grafana!); + } + else if (IsLangfuse) + { + langfuse?.Invoke(Langfuse!); + } + else if (IsLangsmith) + { + langsmith?.Invoke(Langsmith!); + } + else if (IsNewrelic) + { + newrelic?.Invoke(Newrelic!); + } + else if (IsOpik) + { + opik?.Invoke(Opik!); + } + else if (IsOtelCollector) + { + otelCollector?.Invoke(OtelCollector!); + } + else if (IsPosthog) + { + posthog?.Invoke(Posthog!); + } + else if (IsRamp) + { + ramp?.Invoke(Ramp!); + } + else if (IsS3) + { + s3?.Invoke(S3!); + } + else if (IsSentry) + { + sentry?.Invoke(Sentry!); + } + else if (IsSnowflake) + { + snowflake?.Invoke(Snowflake!); + } + else if (IsWeave) + { + weave?.Invoke(Weave!); + } + else if (IsWebhook) + { + webhook?.Invoke(Webhook!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Arize, + typeof(global::OpenRouter.ObservabilityDestinationVariant1), + Braintrust, + typeof(global::OpenRouter.ObservabilityDestinationVariant2), + Clickhouse, + typeof(global::OpenRouter.ObservabilityDestinationVariant3), + Datadog, + typeof(global::OpenRouter.ObservabilityDestinationVariant4), + Grafana, + typeof(global::OpenRouter.ObservabilityDestinationVariant5), + Langfuse, + typeof(global::OpenRouter.ObservabilityDestinationVariant6), + Langsmith, + typeof(global::OpenRouter.ObservabilityDestinationVariant7), + Newrelic, + typeof(global::OpenRouter.ObservabilityDestinationVariant8), + Opik, + typeof(global::OpenRouter.ObservabilityDestinationVariant9), + OtelCollector, + typeof(global::OpenRouter.ObservabilityDestinationVariant10), + Posthog, + typeof(global::OpenRouter.ObservabilityDestinationVariant11), + Ramp, + typeof(global::OpenRouter.ObservabilityDestinationVariant12), + S3, + typeof(global::OpenRouter.ObservabilityDestinationVariant13), + Sentry, + typeof(global::OpenRouter.ObservabilityDestinationVariant14), + Snowflake, + typeof(global::OpenRouter.ObservabilityDestinationVariant15), + Weave, + typeof(global::OpenRouter.ObservabilityDestinationVariant16), + Webhook, + typeof(global::OpenRouter.ObservabilityDestinationVariant17), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(ObservabilityDestination other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Arize, other.Arize) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Braintrust, other.Braintrust) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Clickhouse, other.Clickhouse) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Datadog, other.Datadog) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Grafana, other.Grafana) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Langfuse, other.Langfuse) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Langsmith, other.Langsmith) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Newrelic, other.Newrelic) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Opik, other.Opik) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OtelCollector, other.OtelCollector) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Posthog, other.Posthog) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Ramp, other.Ramp) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(S3, other.S3) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Sentry, other.Sentry) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Snowflake, other.Snowflake) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Weave, other.Weave) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Webhook, other.Webhook) + ; + } + + /// + /// + /// + public static bool operator ==(ObservabilityDestination obj1, ObservabilityDestination obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ObservabilityDestination obj1, ObservabilityDestination obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ObservabilityDestination o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminator.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminator.Json.g.cs new file mode 100644 index 0000000..4c156bf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationDiscriminator + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationDiscriminator), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationDiscriminator; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationDiscriminator; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminator.g.cs new file mode 100644 index 0000000..f889ace --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityDestinationDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeJsonConverter))] + public global::OpenRouter.ObservabilityDestinationDiscriminatorType? Type { 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. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationDiscriminator( + global::OpenRouter.ObservabilityDestinationDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfig.Json.g.cs new file mode 100644 index 0000000..1a3914c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationDiscriminatorMappingArizeConfig + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfig.g.cs new file mode 100644 index 0000000..85f553a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfig.g.cs @@ -0,0 +1,87 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityDestinationDiscriminatorMappingArizeConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("apiKey")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ApiKey { get; set; } + + /// + /// Default Value: https://otlp.arize.com + /// + [global::System.Text.Json.Serialization.JsonPropertyName("baseUrl")] + public string? BaseUrl { get; set; } + + /// + /// Custom HTTP headers to include in requests to this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public global::System.Collections.Generic.Dictionary? Headers { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modelId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ModelId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("spaceKey")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string SpaceKey { 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. + /// + /// + /// + /// + /// + /// Default Value: https://otlp.arize.com + /// + /// + /// Custom HTTP headers to include in requests to this destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationDiscriminatorMappingArizeConfig( + string apiKey, + string modelId, + string spaceKey, + string? baseUrl, + global::System.Collections.Generic.Dictionary? headers) + { + this.ApiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); + this.BaseUrl = baseUrl; + this.Headers = headers; + this.ModelId = modelId ?? throw new global::System.ArgumentNullException(nameof(modelId)); + this.SpaceKey = spaceKey ?? throw new global::System.ArgumentNullException(nameof(spaceKey)); + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationDiscriminatorMappingArizeConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders.Json.g.cs new file mode 100644 index 0000000..9fe5f77 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders.g.cs new file mode 100644 index 0000000..7fc64da --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfig.Json.g.cs new file mode 100644 index 0000000..05a5a31 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationDiscriminatorMappingBraintrustConfig + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfig.g.cs new file mode 100644 index 0000000..1769bdd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfig.g.cs @@ -0,0 +1,77 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityDestinationDiscriminatorMappingBraintrustConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("apiKey")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ApiKey { get; set; } + + /// + /// Default Value: https://api.braintrust.dev + /// + [global::System.Text.Json.Serialization.JsonPropertyName("baseUrl")] + public string? BaseUrl { get; set; } + + /// + /// Custom HTTP headers to include in requests to this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public global::System.Collections.Generic.Dictionary? Headers { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("projectId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ProjectId { 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. + /// + /// + /// + /// + /// Default Value: https://api.braintrust.dev + /// + /// + /// Custom HTTP headers to include in requests to this destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationDiscriminatorMappingBraintrustConfig( + string apiKey, + string projectId, + string? baseUrl, + global::System.Collections.Generic.Dictionary? headers) + { + this.ApiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); + this.BaseUrl = baseUrl; + this.Headers = headers; + this.ProjectId = projectId ?? throw new global::System.ArgumentNullException(nameof(projectId)); + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationDiscriminatorMappingBraintrustConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders.Json.g.cs new file mode 100644 index 0000000..1d9af56 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders.g.cs new file mode 100644 index 0000000..82d1391 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfig.Json.g.cs new file mode 100644 index 0000000..4879c4a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationDiscriminatorMappingClickhouseConfig + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfig.g.cs new file mode 100644 index 0000000..5db26db --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfig.g.cs @@ -0,0 +1,99 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityDestinationDiscriminatorMappingClickhouseConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("database")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Database { get; set; } + + /// + /// Custom HTTP headers to include in requests to this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public global::System.Collections.Generic.Dictionary? Headers { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("host")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Host { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("password")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Password { get; set; } + + /// + /// Default Value: OPENROUTER_TRACES + /// + [global::System.Text.Json.Serialization.JsonPropertyName("table")] + public string? Table { get; set; } + + /// + /// If you have not set a specific username in ClickHouse, simply type in 'default' below. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("username")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Username { 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. + /// + /// + /// + /// + /// + /// If you have not set a specific username in ClickHouse, simply type in 'default' below. + /// + /// + /// Custom HTTP headers to include in requests to this destination. + /// + /// + /// Default Value: OPENROUTER_TRACES + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationDiscriminatorMappingClickhouseConfig( + string database, + string host, + string password, + string username, + global::System.Collections.Generic.Dictionary? headers, + string? table) + { + this.Database = database ?? throw new global::System.ArgumentNullException(nameof(database)); + this.Headers = headers; + this.Host = host ?? throw new global::System.ArgumentNullException(nameof(host)); + this.Password = password ?? throw new global::System.ArgumentNullException(nameof(password)); + this.Table = table; + this.Username = username ?? throw new global::System.ArgumentNullException(nameof(username)); + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationDiscriminatorMappingClickhouseConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders.Json.g.cs new file mode 100644 index 0000000..2bee3de --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders.g.cs new file mode 100644 index 0000000..f7f0f40 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfig.Json.g.cs new file mode 100644 index 0000000..180c5ed --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationDiscriminatorMappingDatadogConfig + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfig.g.cs new file mode 100644 index 0000000..1f9b09a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfig.g.cs @@ -0,0 +1,83 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityDestinationDiscriminatorMappingDatadogConfig + { + /// + /// Datadog API key must have LLM Observability permissions. Create at: + /// + [global::System.Text.Json.Serialization.JsonPropertyName("apiKey")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ApiKey { get; set; } + + /// + /// Custom HTTP headers to include in requests to this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public global::System.Collections.Generic.Dictionary? Headers { get; set; } + + /// + /// Name to identify your application in Datadog LLM Observability + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mlApp")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string MlApp { get; set; } + + /// + /// Datadog API URL for your region (e.g., https://api.datadoghq.com, https://api.us3.datadoghq.com, https://api.datadoghq.eu)
+ /// Default Value: https://api.us5.datadoghq.com + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("url")] + public string? Url { 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. + /// + /// + /// Datadog API key must have LLM Observability permissions. Create at: + /// + /// + /// Name to identify your application in Datadog LLM Observability + /// + /// + /// Custom HTTP headers to include in requests to this destination. + /// + /// + /// Datadog API URL for your region (e.g., https://api.datadoghq.com, https://api.us3.datadoghq.com, https://api.datadoghq.eu)
+ /// Default Value: https://api.us5.datadoghq.com + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationDiscriminatorMappingDatadogConfig( + string apiKey, + string mlApp, + global::System.Collections.Generic.Dictionary? headers, + string? url) + { + this.ApiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); + this.Headers = headers; + this.MlApp = mlApp ?? throw new global::System.ArgumentNullException(nameof(mlApp)); + this.Url = url; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationDiscriminatorMappingDatadogConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders.Json.g.cs new file mode 100644 index 0000000..be6d988 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders.g.cs new file mode 100644 index 0000000..84e57f1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorType.g.cs new file mode 100644 index 0000000..3710da3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorType.g.cs @@ -0,0 +1,141 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ObservabilityDestinationDiscriminatorType + { + /// + /// + /// + Arize, + /// + /// + /// + Braintrust, + /// + /// + /// + Clickhouse, + /// + /// + /// + Datadog, + /// + /// + /// + Grafana, + /// + /// + /// + Langfuse, + /// + /// + /// + Langsmith, + /// + /// + /// + Newrelic, + /// + /// + /// + Opik, + /// + /// + /// + OtelCollector, + /// + /// + /// + Posthog, + /// + /// + /// + Ramp, + /// + /// + /// + S3, + /// + /// + /// + Sentry, + /// + /// + /// + Snowflake, + /// + /// + /// + Weave, + /// + /// + /// + Webhook, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityDestinationDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityDestinationDiscriminatorType value) + { + return value switch + { + ObservabilityDestinationDiscriminatorType.Arize => "arize", + ObservabilityDestinationDiscriminatorType.Braintrust => "braintrust", + ObservabilityDestinationDiscriminatorType.Clickhouse => "clickhouse", + ObservabilityDestinationDiscriminatorType.Datadog => "datadog", + ObservabilityDestinationDiscriminatorType.Grafana => "grafana", + ObservabilityDestinationDiscriminatorType.Langfuse => "langfuse", + ObservabilityDestinationDiscriminatorType.Langsmith => "langsmith", + ObservabilityDestinationDiscriminatorType.Newrelic => "newrelic", + ObservabilityDestinationDiscriminatorType.Opik => "opik", + ObservabilityDestinationDiscriminatorType.OtelCollector => "otel-collector", + ObservabilityDestinationDiscriminatorType.Posthog => "posthog", + ObservabilityDestinationDiscriminatorType.Ramp => "ramp", + ObservabilityDestinationDiscriminatorType.S3 => "s3", + ObservabilityDestinationDiscriminatorType.Sentry => "sentry", + ObservabilityDestinationDiscriminatorType.Snowflake => "snowflake", + ObservabilityDestinationDiscriminatorType.Weave => "weave", + ObservabilityDestinationDiscriminatorType.Webhook => "webhook", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityDestinationDiscriminatorType? ToEnum(string value) + { + return value switch + { + "arize" => ObservabilityDestinationDiscriminatorType.Arize, + "braintrust" => ObservabilityDestinationDiscriminatorType.Braintrust, + "clickhouse" => ObservabilityDestinationDiscriminatorType.Clickhouse, + "datadog" => ObservabilityDestinationDiscriminatorType.Datadog, + "grafana" => ObservabilityDestinationDiscriminatorType.Grafana, + "langfuse" => ObservabilityDestinationDiscriminatorType.Langfuse, + "langsmith" => ObservabilityDestinationDiscriminatorType.Langsmith, + "newrelic" => ObservabilityDestinationDiscriminatorType.Newrelic, + "opik" => ObservabilityDestinationDiscriminatorType.Opik, + "otel-collector" => ObservabilityDestinationDiscriminatorType.OtelCollector, + "posthog" => ObservabilityDestinationDiscriminatorType.Posthog, + "ramp" => ObservabilityDestinationDiscriminatorType.Ramp, + "s3" => ObservabilityDestinationDiscriminatorType.S3, + "sentry" => ObservabilityDestinationDiscriminatorType.Sentry, + "snowflake" => ObservabilityDestinationDiscriminatorType.Snowflake, + "weave" => ObservabilityDestinationDiscriminatorType.Weave, + "webhook" => ObservabilityDestinationDiscriminatorType.Webhook, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant1.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant1.Json.g.cs new file mode 100644 index 0000000..da8aab5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant1.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationVariant1 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationVariant1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationVariant1), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationVariant1; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationVariant1? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationVariant1; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant1.g.cs new file mode 100644 index 0000000..4fab763 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant1.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// arize variant + /// + public sealed partial class ObservabilityDestinationVariant1 + { + /// + /// Discriminator value: arize + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeJsonConverter))] + public global::OpenRouter.ObservabilityDestinationVariant1Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: arize + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationVariant1( + global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityDestinationVariant1Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationVariant1() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant10.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant10.Json.g.cs new file mode 100644 index 0000000..146a5ac --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant10.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationVariant10 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationVariant10? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationVariant10), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationVariant10; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationVariant10? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationVariant10), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationVariant10; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant10.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant10.g.cs new file mode 100644 index 0000000..dcc36f5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant10.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// otel-collector variant + /// + public sealed partial class ObservabilityDestinationVariant10 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityOtelCollectorDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityOtelCollectorDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationVariant10( + global::OpenRouter.ObservabilityOtelCollectorDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityOtelCollectorDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationVariant10() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant11.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant11.Json.g.cs new file mode 100644 index 0000000..dea9b49 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant11.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationVariant11 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationVariant11? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationVariant11), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationVariant11; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationVariant11? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationVariant11), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationVariant11; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant11.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant11.g.cs new file mode 100644 index 0000000..64378d2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant11.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// posthog variant + /// + public sealed partial class ObservabilityDestinationVariant11 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityPosthogDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityPosthogDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationVariant11( + global::OpenRouter.ObservabilityPosthogDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityPosthogDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationVariant11() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant12.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant12.Json.g.cs new file mode 100644 index 0000000..7334004 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant12.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationVariant12 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationVariant12? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationVariant12), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationVariant12; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationVariant12? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationVariant12), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationVariant12; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant12.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant12.g.cs new file mode 100644 index 0000000..90dc0cc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant12.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// ramp variant + /// + public sealed partial class ObservabilityDestinationVariant12 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityRampDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityRampDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationVariant12( + global::OpenRouter.ObservabilityRampDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityRampDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationVariant12() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant13.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant13.Json.g.cs new file mode 100644 index 0000000..0bbcc51 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant13.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationVariant13 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationVariant13? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationVariant13), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationVariant13; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationVariant13? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationVariant13), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationVariant13; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant13.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant13.g.cs new file mode 100644 index 0000000..fec7831 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant13.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// s3 variant + /// + public sealed partial class ObservabilityDestinationVariant13 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityS3DestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityS3DestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationVariant13( + global::OpenRouter.ObservabilityS3DestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityS3DestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationVariant13() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant14.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant14.Json.g.cs new file mode 100644 index 0000000..fd29406 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant14.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationVariant14 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationVariant14? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationVariant14), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationVariant14; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationVariant14? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationVariant14), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationVariant14; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant14.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant14.g.cs new file mode 100644 index 0000000..baf3bac --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant14.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// sentry variant + /// + public sealed partial class ObservabilityDestinationVariant14 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilitySentryDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilitySentryDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationVariant14( + global::OpenRouter.ObservabilitySentryDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilitySentryDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationVariant14() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant15.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant15.Json.g.cs new file mode 100644 index 0000000..eac4c93 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant15.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationVariant15 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationVariant15? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationVariant15), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationVariant15; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationVariant15? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationVariant15), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationVariant15; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant15.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant15.g.cs new file mode 100644 index 0000000..1999e75 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant15.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// snowflake variant + /// + public sealed partial class ObservabilityDestinationVariant15 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilitySnowflakeDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilitySnowflakeDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationVariant15( + global::OpenRouter.ObservabilitySnowflakeDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilitySnowflakeDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationVariant15() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant16.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant16.Json.g.cs new file mode 100644 index 0000000..65bf40c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant16.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationVariant16 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationVariant16? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationVariant16), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationVariant16; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationVariant16? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationVariant16), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationVariant16; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant16.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant16.g.cs new file mode 100644 index 0000000..a34f821 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant16.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// weave variant + /// + public sealed partial class ObservabilityDestinationVariant16 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityWeaveDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityWeaveDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationVariant16( + global::OpenRouter.ObservabilityWeaveDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityWeaveDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationVariant16() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant17.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant17.Json.g.cs new file mode 100644 index 0000000..d301be6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant17.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationVariant17 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationVariant17? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationVariant17), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationVariant17; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationVariant17? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationVariant17), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationVariant17; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant17.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant17.g.cs new file mode 100644 index 0000000..decc5d3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant17.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// webhook variant + /// + public sealed partial class ObservabilityDestinationVariant17 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityWebhookDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityWebhookDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationVariant17( + global::OpenRouter.ObservabilityWebhookDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityWebhookDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationVariant17() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant1Type.g.cs new file mode 100644 index 0000000..ee0a58b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant1Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: arize + /// + public enum ObservabilityDestinationVariant1Type + { + /// + /// arize + /// + Arize, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityDestinationVariant1TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityDestinationVariant1Type value) + { + return value switch + { + ObservabilityDestinationVariant1Type.Arize => "arize", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityDestinationVariant1Type? ToEnum(string value) + { + return value switch + { + "arize" => ObservabilityDestinationVariant1Type.Arize, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant2.Json.g.cs new file mode 100644 index 0000000..9294705 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationVariant2 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationVariant2), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationVariant2; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationVariant2; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant2.g.cs new file mode 100644 index 0000000..44f4356 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant2.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// braintrust variant + /// + public sealed partial class ObservabilityDestinationVariant2 + { + /// + /// Discriminator value: braintrust + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeJsonConverter))] + public global::OpenRouter.ObservabilityDestinationVariant2Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: braintrust + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationVariant2( + global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityDestinationVariant2Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant2Type.g.cs new file mode 100644 index 0000000..616cbb3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant2Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: braintrust + /// + public enum ObservabilityDestinationVariant2Type + { + /// + /// braintrust + /// + Braintrust, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityDestinationVariant2TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityDestinationVariant2Type value) + { + return value switch + { + ObservabilityDestinationVariant2Type.Braintrust => "braintrust", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityDestinationVariant2Type? ToEnum(string value) + { + return value switch + { + "braintrust" => ObservabilityDestinationVariant2Type.Braintrust, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant3.Json.g.cs new file mode 100644 index 0000000..48853f4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant3.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationVariant3 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationVariant3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationVariant3), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationVariant3; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationVariant3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationVariant3), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationVariant3; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant3.g.cs new file mode 100644 index 0000000..5add623 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant3.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// clickhouse variant + /// + public sealed partial class ObservabilityDestinationVariant3 + { + /// + /// Discriminator value: clickhouse + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeJsonConverter))] + public global::OpenRouter.ObservabilityDestinationVariant3Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: clickhouse + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationVariant3( + global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityDestinationVariant3Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationVariant3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant3Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant3Type.g.cs new file mode 100644 index 0000000..af2a6be --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant3Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: clickhouse + /// + public enum ObservabilityDestinationVariant3Type + { + /// + /// clickhouse + /// + Clickhouse, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityDestinationVariant3TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityDestinationVariant3Type value) + { + return value switch + { + ObservabilityDestinationVariant3Type.Clickhouse => "clickhouse", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityDestinationVariant3Type? ToEnum(string value) + { + return value switch + { + "clickhouse" => ObservabilityDestinationVariant3Type.Clickhouse, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant4.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant4.Json.g.cs new file mode 100644 index 0000000..1d73ea4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant4.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationVariant4 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationVariant4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationVariant4), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationVariant4; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationVariant4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationVariant4), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationVariant4; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant4.g.cs new file mode 100644 index 0000000..8987bb1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant4.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// datadog variant + /// + public sealed partial class ObservabilityDestinationVariant4 + { + /// + /// Discriminator value: datadog + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeJsonConverter))] + public global::OpenRouter.ObservabilityDestinationVariant4Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: datadog + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationVariant4( + global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityDestinationVariant4Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationVariant4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant4Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant4Type.g.cs new file mode 100644 index 0000000..bed0906 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant4Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: datadog + /// + public enum ObservabilityDestinationVariant4Type + { + /// + /// datadog + /// + Datadog, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityDestinationVariant4TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityDestinationVariant4Type value) + { + return value switch + { + ObservabilityDestinationVariant4Type.Datadog => "datadog", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityDestinationVariant4Type? ToEnum(string value) + { + return value switch + { + "datadog" => ObservabilityDestinationVariant4Type.Datadog, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant5.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant5.Json.g.cs new file mode 100644 index 0000000..61f0c6e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant5.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationVariant5 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationVariant5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationVariant5), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationVariant5; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationVariant5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationVariant5), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationVariant5; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant5.g.cs new file mode 100644 index 0000000..da0dea8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant5.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// grafana variant + /// + public sealed partial class ObservabilityDestinationVariant5 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityGrafanaDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityGrafanaDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationVariant5( + global::OpenRouter.ObservabilityGrafanaDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityGrafanaDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationVariant5() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant6.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant6.Json.g.cs new file mode 100644 index 0000000..0425f05 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant6.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationVariant6 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationVariant6? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationVariant6), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationVariant6; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationVariant6? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationVariant6), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationVariant6; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant6.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant6.g.cs new file mode 100644 index 0000000..9f8ba40 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant6.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// langfuse variant + /// + public sealed partial class ObservabilityDestinationVariant6 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityLangfuseDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityLangfuseDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationVariant6( + global::OpenRouter.ObservabilityLangfuseDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityLangfuseDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationVariant6() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant7.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant7.Json.g.cs new file mode 100644 index 0000000..66d48f1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant7.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationVariant7 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationVariant7? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationVariant7), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationVariant7; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationVariant7? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationVariant7), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationVariant7; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant7.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant7.g.cs new file mode 100644 index 0000000..a0f2219 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant7.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// langsmith variant + /// + public sealed partial class ObservabilityDestinationVariant7 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityLangsmithDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityLangsmithDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationVariant7( + global::OpenRouter.ObservabilityLangsmithDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityLangsmithDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationVariant7() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant8.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant8.Json.g.cs new file mode 100644 index 0000000..99d7d7b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant8.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationVariant8 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationVariant8? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationVariant8), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationVariant8; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationVariant8? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationVariant8), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationVariant8; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant8.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant8.g.cs new file mode 100644 index 0000000..f96d0c3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant8.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// newrelic variant + /// + public sealed partial class ObservabilityDestinationVariant8 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityNewrelicDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityNewrelicDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationVariant8( + global::OpenRouter.ObservabilityNewrelicDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityNewrelicDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationVariant8() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant9.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant9.Json.g.cs new file mode 100644 index 0000000..6b9fa98 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant9.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityDestinationVariant9 + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityDestinationVariant9? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityDestinationVariant9), + jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationVariant9; + } + + /// + /// 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::OpenRouter.ObservabilityDestinationVariant9? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityDestinationVariant9), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationVariant9; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant9.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant9.g.cs new file mode 100644 index 0000000..3d01593 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant9.g.cs @@ -0,0 +1,173 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// opik variant + /// + public sealed partial class ObservabilityDestinationVariant9 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeJsonConverter))] + public global::OpenRouter.ObservabilityOpikDestinationType Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityOpikDestinationConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { 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. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityDestinationVariant9( + global::OpenRouter.ObservabilityOpikDestinationConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.ObservabilityOpikDestinationType type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityDestinationVariant9() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfig.Json.g.cs new file mode 100644 index 0000000..9b67ef0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityFilterRulesConfig + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityFilterRulesConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityFilterRulesConfig), + jsonSerializerContext) as global::OpenRouter.ObservabilityFilterRulesConfig; + } + + /// + /// 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::OpenRouter.ObservabilityFilterRulesConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityFilterRulesConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityFilterRulesConfig; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfig.g.cs new file mode 100644 index 0000000..c5f9e6a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfig.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + public sealed partial class ObservabilityFilterRulesConfig + { + /// + /// Default Value: true + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("groups")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Groups { 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. + /// + /// + /// + /// Default Value: true + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityFilterRulesConfig( + global::System.Collections.Generic.IList groups, + bool? enabled) + { + this.Enabled = enabled; + this.Groups = groups ?? throw new global::System.ArgumentNullException(nameof(groups)); + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityFilterRulesConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItems.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItems.Json.g.cs new file mode 100644 index 0000000..36ed743 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItems.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityFilterRulesConfigGroupsItems + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems), + jsonSerializerContext) as global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems; + } + + /// + /// 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::OpenRouter.ObservabilityFilterRulesConfigGroupsItems? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityFilterRulesConfigGroupsItems), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItems.g.cs new file mode 100644 index 0000000..93ba5d8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItems.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityFilterRulesConfigGroupsItems + { + /// + /// Default Value: and + /// + [global::System.Text.Json.Serialization.JsonPropertyName("logic")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter))] + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic? Logic { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Rules { 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. + /// + /// + /// + /// Default Value: and + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityFilterRulesConfigGroupsItems( + global::System.Collections.Generic.IList rules, + global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic? logic) + { + this.Logic = logic; + this.Rules = rules ?? throw new global::System.ArgumentNullException(nameof(rules)); + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityFilterRulesConfigGroupsItems() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsLogic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsLogic.g.cs new file mode 100644 index 0000000..e665cc3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsLogic.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Default Value: and + /// + public enum ObservabilityFilterRulesConfigGroupsItemsLogic + { + /// + /// + /// + And, + /// + /// + /// + Or, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityFilterRulesConfigGroupsItemsLogicExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityFilterRulesConfigGroupsItemsLogic value) + { + return value switch + { + ObservabilityFilterRulesConfigGroupsItemsLogic.And => "and", + ObservabilityFilterRulesConfigGroupsItemsLogic.Or => "or", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityFilterRulesConfigGroupsItemsLogic? ToEnum(string value) + { + return value switch + { + "and" => ObservabilityFilterRulesConfigGroupsItemsLogic.And, + "or" => ObservabilityFilterRulesConfigGroupsItemsLogic.Or, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItems.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItems.Json.g.cs new file mode 100644 index 0000000..83d3de0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItems.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityFilterRulesConfigGroupsItemsRulesItems + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems), + jsonSerializerContext) as global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems; + } + + /// + /// 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::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItems.g.cs new file mode 100644 index 0000000..950882d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItems.g.cs @@ -0,0 +1,67 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityFilterRulesConfigGroupsItemsRulesItems + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("field")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField Field { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operator")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator Operator { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter))] + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue? Value { 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. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityFilterRulesConfigGroupsItemsRulesItems( + global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField field, + global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator @operator, + global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue? value) + { + this.Field = field; + this.Operator = @operator; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityFilterRulesConfigGroupsItemsRulesItems() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.g.cs new file mode 100644 index 0000000..3614094 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.g.cs @@ -0,0 +1,111 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ObservabilityFilterRulesConfigGroupsItemsRulesItemsField + { + /// + /// + /// + ApiKeyName, + /// + /// + /// + CompletionTokens, + /// + /// + /// + FinishReason, + /// + /// + /// + Input, + /// + /// + /// + Model, + /// + /// + /// + Output, + /// + /// + /// + PromptTokens, + /// + /// + /// + Provider, + /// + /// + /// + SessionId, + /// + /// + /// + TotalCost, + /// + /// + /// + TotalTokens, + /// + /// + /// + UserId, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityFilterRulesConfigGroupsItemsRulesItemsField value) + { + return value switch + { + ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.ApiKeyName => "api_key_name", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.CompletionTokens => "completion_tokens", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.FinishReason => "finish_reason", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.Input => "input", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.Model => "model", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.Output => "output", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.PromptTokens => "prompt_tokens", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.Provider => "provider", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.SessionId => "session_id", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.TotalCost => "total_cost", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.TotalTokens => "total_tokens", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.UserId => "user_id", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityFilterRulesConfigGroupsItemsRulesItemsField? ToEnum(string value) + { + return value switch + { + "api_key_name" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.ApiKeyName, + "completion_tokens" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.CompletionTokens, + "finish_reason" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.FinishReason, + "input" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.Input, + "model" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.Model, + "output" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.Output, + "prompt_tokens" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.PromptTokens, + "provider" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.Provider, + "session_id" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.SessionId, + "total_cost" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.TotalCost, + "total_tokens" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.TotalTokens, + "user_id" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.UserId, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.g.cs new file mode 100644 index 0000000..83cb0f1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.g.cs @@ -0,0 +1,117 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator + { + /// + /// + /// + Contains, + /// + /// + /// + EndsWith, + /// + /// + /// + Equals, + /// + /// + /// + Exists, + /// + /// + /// + Gt, + /// + /// + /// + Gte, + /// + /// + /// + Lt, + /// + /// + /// + Lte, + /// + /// + /// + NotContains, + /// + /// + /// + NotEquals, + /// + /// + /// + NotExists, + /// + /// + /// + Regex, + /// + /// + /// + StartsWith, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator value) + { + return value switch + { + ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Contains => "contains", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.EndsWith => "ends_with", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Equals => "equals", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Exists => "exists", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Gt => "gt", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Gte => "gte", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Lt => "lt", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Lte => "lte", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.NotContains => "not_contains", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.NotEquals => "not_equals", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.NotExists => "not_exists", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Regex => "regex", + ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.StartsWith => "starts_with", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator? ToEnum(string value) + { + return value switch + { + "contains" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Contains, + "ends_with" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.EndsWith, + "equals" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Equals, + "exists" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Exists, + "gt" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Gt, + "gte" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Gte, + "lt" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Lt, + "lte" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Lte, + "not_contains" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.NotContains, + "not_equals" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.NotEquals, + "not_exists" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.NotExists, + "regex" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Regex, + "starts_with" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.StartsWith, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue.Json.g.cs new file mode 100644 index 0000000..7e0dd1d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue), + jsonSerializerContext) as global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue?; + } + + /// + /// 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::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue?; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue.g.cs new file mode 100644 index 0000000..797980e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public string? ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 { get; init; } +#else + public string? ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1))] +#endif + public bool IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 => ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 != null; + + /// + /// + /// + public bool TryPickObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1; + return IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1; + } + + /// + /// + /// + public string PickObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1() => IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 + ? ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1! + : throw new global::System.InvalidOperationException($"Expected union variant 'ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public double? ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 { get; init; } +#else + public double? ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2))] +#endif + public bool IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 => ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 != null; + + /// + /// + /// + public bool TryPickObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out double? value) + { + value = ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2; + return IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2; + } + + /// + /// + /// + public double PickObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2() => IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 + ? ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue(string value) => new ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue((string?)value); + + /// + /// + /// + public static implicit operator string?(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue @this) => @this.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1; + + /// + /// + /// + public ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue(string? value) + { + ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 = value; + } + + /// + /// + /// + public static ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue FromObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1(string? value) => new ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue(value); + + /// + /// + /// + public static implicit operator ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue(double value) => new ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue((double?)value); + + /// + /// + /// + public static implicit operator double?(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue @this) => @this.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2; + + /// + /// + /// + public ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue(double? value) + { + ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 = value; + } + + /// + /// + /// + public static ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue FromObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2(double? value) => new ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue(value); + + /// + /// + /// + public ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue( + string? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1, + double? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 + ) + { + ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 = observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1; + ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 = observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2; + } + + /// + /// + /// + public object? Object => + ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 as object ?? + ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 as object + ; + + /// + /// + /// + public override string? ToString() => + ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1?.ToString() ?? + ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 && !IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 || !IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 && IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 = null, + global::System.Func? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 && observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 != null) + { + return observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1!); + } + else if (IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 && observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 != null) + { + return observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 = null, + + global::System.Action? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1) + { + observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1?.Invoke(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1!); + } + else if (IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2) + { + observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2?.Invoke(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 = null, + global::System.Action? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1) + { + observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1?.Invoke(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1!); + } + else if (IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2) + { + observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2?.Invoke(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1, + typeof(string), + ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2, + typeof(double), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1, other.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2, other.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue obj1, ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue obj1, ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfig.Json.g.cs new file mode 100644 index 0000000..3ca277e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityGrafanaDestinationConfig + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityGrafanaDestinationConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityGrafanaDestinationConfig), + jsonSerializerContext) as global::OpenRouter.ObservabilityGrafanaDestinationConfig; + } + + /// + /// 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::OpenRouter.ObservabilityGrafanaDestinationConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityGrafanaDestinationConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityGrafanaDestinationConfig; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfig.g.cs new file mode 100644 index 0000000..712be4c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfig.g.cs @@ -0,0 +1,77 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityGrafanaDestinationConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("apiKey")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ApiKey { get; set; } + + /// + /// Default Value: https://otlp-gateway-prod-us-west-0.grafana.net + /// + [global::System.Text.Json.Serialization.JsonPropertyName("baseUrl")] + public string? BaseUrl { get; set; } + + /// + /// Custom HTTP headers to include in requests to this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public global::System.Collections.Generic.Dictionary? Headers { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instanceId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string InstanceId { 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. + /// + /// + /// + /// + /// Default Value: https://otlp-gateway-prod-us-west-0.grafana.net + /// + /// + /// Custom HTTP headers to include in requests to this destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityGrafanaDestinationConfig( + string apiKey, + string instanceId, + string? baseUrl, + global::System.Collections.Generic.Dictionary? headers) + { + this.ApiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); + this.BaseUrl = baseUrl; + this.Headers = headers; + this.InstanceId = instanceId ?? throw new global::System.ArgumentNullException(nameof(instanceId)); + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityGrafanaDestinationConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfigHeaders.Json.g.cs new file mode 100644 index 0000000..830c1cb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityGrafanaDestinationConfigHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityGrafanaDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityGrafanaDestinationConfigHeaders), + jsonSerializerContext) as global::OpenRouter.ObservabilityGrafanaDestinationConfigHeaders; + } + + /// + /// 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::OpenRouter.ObservabilityGrafanaDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityGrafanaDestinationConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityGrafanaDestinationConfigHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfigHeaders.g.cs new file mode 100644 index 0000000..c4dab81 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class ObservabilityGrafanaDestinationConfigHeaders + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationType.g.cs new file mode 100644 index 0000000..13f20e3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ObservabilityGrafanaDestinationType + { + /// + /// + /// + Grafana, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityGrafanaDestinationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityGrafanaDestinationType value) + { + return value switch + { + ObservabilityGrafanaDestinationType.Grafana => "grafana", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityGrafanaDestinationType? ToEnum(string value) + { + return value switch + { + "grafana" => ObservabilityGrafanaDestinationType.Grafana, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfig.Json.g.cs new file mode 100644 index 0000000..9c4e9b9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityLangfuseDestinationConfig + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityLangfuseDestinationConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityLangfuseDestinationConfig), + jsonSerializerContext) as global::OpenRouter.ObservabilityLangfuseDestinationConfig; + } + + /// + /// 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::OpenRouter.ObservabilityLangfuseDestinationConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityLangfuseDestinationConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityLangfuseDestinationConfig; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfig.g.cs new file mode 100644 index 0000000..7d3e80b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfig.g.cs @@ -0,0 +1,77 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityLangfuseDestinationConfig + { + /// + /// Default Value: https://us.cloud.langfuse.com + /// + [global::System.Text.Json.Serialization.JsonPropertyName("baseUrl")] + public string? BaseUrl { get; set; } + + /// + /// Custom HTTP headers to include in requests to this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public global::System.Collections.Generic.Dictionary? Headers { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("publicKey")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string PublicKey { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("secretKey")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string SecretKey { 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. + /// + /// + /// + /// + /// Default Value: https://us.cloud.langfuse.com + /// + /// + /// Custom HTTP headers to include in requests to this destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityLangfuseDestinationConfig( + string publicKey, + string secretKey, + string? baseUrl, + global::System.Collections.Generic.Dictionary? headers) + { + this.BaseUrl = baseUrl; + this.Headers = headers; + this.PublicKey = publicKey ?? throw new global::System.ArgumentNullException(nameof(publicKey)); + this.SecretKey = secretKey ?? throw new global::System.ArgumentNullException(nameof(secretKey)); + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityLangfuseDestinationConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfigHeaders.Json.g.cs new file mode 100644 index 0000000..b7f3751 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityLangfuseDestinationConfigHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityLangfuseDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityLangfuseDestinationConfigHeaders), + jsonSerializerContext) as global::OpenRouter.ObservabilityLangfuseDestinationConfigHeaders; + } + + /// + /// 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::OpenRouter.ObservabilityLangfuseDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityLangfuseDestinationConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityLangfuseDestinationConfigHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfigHeaders.g.cs new file mode 100644 index 0000000..dfa93e5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class ObservabilityLangfuseDestinationConfigHeaders + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationType.g.cs new file mode 100644 index 0000000..96b359f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ObservabilityLangfuseDestinationType + { + /// + /// + /// + Langfuse, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityLangfuseDestinationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityLangfuseDestinationType value) + { + return value switch + { + ObservabilityLangfuseDestinationType.Langfuse => "langfuse", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityLangfuseDestinationType? ToEnum(string value) + { + return value switch + { + "langfuse" => ObservabilityLangfuseDestinationType.Langfuse, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfig.Json.g.cs new file mode 100644 index 0000000..96ae927 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityLangsmithDestinationConfig + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityLangsmithDestinationConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityLangsmithDestinationConfig), + jsonSerializerContext) as global::OpenRouter.ObservabilityLangsmithDestinationConfig; + } + + /// + /// 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::OpenRouter.ObservabilityLangsmithDestinationConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityLangsmithDestinationConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityLangsmithDestinationConfig; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfig.g.cs new file mode 100644 index 0000000..8151b32 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfig.g.cs @@ -0,0 +1,91 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityLangsmithDestinationConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("apiKey")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ApiKey { get; set; } + + /// + /// Default Value: https://api.smith.langchain.com + /// + [global::System.Text.Json.Serialization.JsonPropertyName("endpoint")] + public string? Endpoint { get; set; } + + /// + /// Custom HTTP headers to include in requests to this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public global::System.Collections.Generic.Dictionary? Headers { get; set; } + + /// + /// The name for this project, such as pr-openrouter-demo. Defaults to "main" if not set.
+ /// Default Value: main + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("project")] + public string? Project { get; set; } + + /// + /// Required for org-scoped API keys. Find this in your LangSmith workspace settings. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspaceId")] + public string? WorkspaceId { 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. + /// + /// + /// + /// Default Value: https://api.smith.langchain.com + /// + /// + /// Custom HTTP headers to include in requests to this destination. + /// + /// + /// The name for this project, such as pr-openrouter-demo. Defaults to "main" if not set.
+ /// Default Value: main + /// + /// + /// Required for org-scoped API keys. Find this in your LangSmith workspace settings. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityLangsmithDestinationConfig( + string apiKey, + string? endpoint, + global::System.Collections.Generic.Dictionary? headers, + string? project, + string? workspaceId) + { + this.ApiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); + this.Endpoint = endpoint; + this.Headers = headers; + this.Project = project; + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityLangsmithDestinationConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfigHeaders.Json.g.cs new file mode 100644 index 0000000..c7ad0e5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityLangsmithDestinationConfigHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityLangsmithDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityLangsmithDestinationConfigHeaders), + jsonSerializerContext) as global::OpenRouter.ObservabilityLangsmithDestinationConfigHeaders; + } + + /// + /// 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::OpenRouter.ObservabilityLangsmithDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityLangsmithDestinationConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityLangsmithDestinationConfigHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfigHeaders.g.cs new file mode 100644 index 0000000..847c0a4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class ObservabilityLangsmithDestinationConfigHeaders + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationType.g.cs new file mode 100644 index 0000000..6e9c272 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ObservabilityLangsmithDestinationType + { + /// + /// + /// + Langsmith, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityLangsmithDestinationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityLangsmithDestinationType value) + { + return value switch + { + ObservabilityLangsmithDestinationType.Langsmith => "langsmith", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityLangsmithDestinationType? ToEnum(string value) + { + return value switch + { + "langsmith" => ObservabilityLangsmithDestinationType.Langsmith, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfig.Json.g.cs new file mode 100644 index 0000000..64748ab --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityNewrelicDestinationConfig + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityNewrelicDestinationConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityNewrelicDestinationConfig), + jsonSerializerContext) as global::OpenRouter.ObservabilityNewrelicDestinationConfig; + } + + /// + /// 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::OpenRouter.ObservabilityNewrelicDestinationConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityNewrelicDestinationConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityNewrelicDestinationConfig; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfig.g.cs new file mode 100644 index 0000000..e93dfed --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfig.g.cs @@ -0,0 +1,68 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityNewrelicDestinationConfig + { + /// + /// Custom HTTP headers to include in requests to this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public global::System.Collections.Generic.Dictionary? Headers { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("licenseKey")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string LicenseKey { get; set; } + + /// + /// Default Value: us + /// + [global::System.Text.Json.Serialization.JsonPropertyName("region")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionJsonConverter))] + public global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion? Region { 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. + /// + /// + /// + /// Custom HTTP headers to include in requests to this destination. + /// + /// + /// Default Value: us + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityNewrelicDestinationConfig( + string licenseKey, + global::System.Collections.Generic.Dictionary? headers, + global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion? region) + { + this.Headers = headers; + this.LicenseKey = licenseKey ?? throw new global::System.ArgumentNullException(nameof(licenseKey)); + this.Region = region; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityNewrelicDestinationConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigHeaders.Json.g.cs new file mode 100644 index 0000000..b352ac6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityNewrelicDestinationConfigHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityNewrelicDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityNewrelicDestinationConfigHeaders), + jsonSerializerContext) as global::OpenRouter.ObservabilityNewrelicDestinationConfigHeaders; + } + + /// + /// 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::OpenRouter.ObservabilityNewrelicDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityNewrelicDestinationConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityNewrelicDestinationConfigHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigHeaders.g.cs new file mode 100644 index 0000000..e42df45 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class ObservabilityNewrelicDestinationConfigHeaders + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigRegion.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigRegion.g.cs new file mode 100644 index 0000000..837cda3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigRegion.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Default Value: us + /// + public enum ObservabilityNewrelicDestinationConfigRegion + { + /// + /// + /// + Eu, + /// + /// + /// + Us, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityNewrelicDestinationConfigRegionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityNewrelicDestinationConfigRegion value) + { + return value switch + { + ObservabilityNewrelicDestinationConfigRegion.Eu => "eu", + ObservabilityNewrelicDestinationConfigRegion.Us => "us", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityNewrelicDestinationConfigRegion? ToEnum(string value) + { + return value switch + { + "eu" => ObservabilityNewrelicDestinationConfigRegion.Eu, + "us" => ObservabilityNewrelicDestinationConfigRegion.Us, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationType.g.cs new file mode 100644 index 0000000..3855d06 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ObservabilityNewrelicDestinationType + { + /// + /// + /// + Newrelic, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityNewrelicDestinationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityNewrelicDestinationType value) + { + return value switch + { + ObservabilityNewrelicDestinationType.Newrelic => "newrelic", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityNewrelicDestinationType? ToEnum(string value) + { + return value switch + { + "newrelic" => ObservabilityNewrelicDestinationType.Newrelic, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfig.Json.g.cs new file mode 100644 index 0000000..0d16efd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityOpikDestinationConfig + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityOpikDestinationConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityOpikDestinationConfig), + jsonSerializerContext) as global::OpenRouter.ObservabilityOpikDestinationConfig; + } + + /// + /// 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::OpenRouter.ObservabilityOpikDestinationConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityOpikDestinationConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityOpikDestinationConfig; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfig.g.cs new file mode 100644 index 0000000..5b9cd60 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfig.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityOpikDestinationConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("apiKey")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ApiKey { get; set; } + + /// + /// Custom HTTP headers to include in requests to this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public global::System.Collections.Generic.Dictionary? Headers { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("projectName")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ProjectName { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Workspace { 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. + /// + /// + /// + /// + /// + /// Custom HTTP headers to include in requests to this destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityOpikDestinationConfig( + string apiKey, + string projectName, + string workspace, + global::System.Collections.Generic.Dictionary? headers) + { + this.ApiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); + this.Headers = headers; + this.ProjectName = projectName ?? throw new global::System.ArgumentNullException(nameof(projectName)); + this.Workspace = workspace ?? throw new global::System.ArgumentNullException(nameof(workspace)); + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityOpikDestinationConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfigHeaders.Json.g.cs new file mode 100644 index 0000000..114adbc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityOpikDestinationConfigHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityOpikDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityOpikDestinationConfigHeaders), + jsonSerializerContext) as global::OpenRouter.ObservabilityOpikDestinationConfigHeaders; + } + + /// + /// 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::OpenRouter.ObservabilityOpikDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityOpikDestinationConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityOpikDestinationConfigHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfigHeaders.g.cs new file mode 100644 index 0000000..2e00664 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class ObservabilityOpikDestinationConfigHeaders + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationType.g.cs new file mode 100644 index 0000000..51a1d49 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ObservabilityOpikDestinationType + { + /// + /// + /// + Opik, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityOpikDestinationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityOpikDestinationType value) + { + return value switch + { + ObservabilityOpikDestinationType.Opik => "opik", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityOpikDestinationType? ToEnum(string value) + { + return value switch + { + "opik" => ObservabilityOpikDestinationType.Opik, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfig.Json.g.cs new file mode 100644 index 0000000..7faf241 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityOtelCollectorDestinationConfig + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityOtelCollectorDestinationConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityOtelCollectorDestinationConfig), + jsonSerializerContext) as global::OpenRouter.ObservabilityOtelCollectorDestinationConfig; + } + + /// + /// 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::OpenRouter.ObservabilityOtelCollectorDestinationConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityOtelCollectorDestinationConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityOtelCollectorDestinationConfig; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfig.g.cs new file mode 100644 index 0000000..4c9f2f2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfig.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityOtelCollectorDestinationConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("endpoint")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Endpoint { get; set; } + + /// + /// Custom HTTP headers as a JSON object. For Axiom, use {"Authorization": "Bearer xaat-xxx", "X-Axiom-Dataset": "your-dataset"} + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public global::System.Collections.Generic.Dictionary? Headers { 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. + /// + /// + /// + /// Custom HTTP headers as a JSON object. For Axiom, use {"Authorization": "Bearer xaat-xxx", "X-Axiom-Dataset": "your-dataset"} + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityOtelCollectorDestinationConfig( + string endpoint, + global::System.Collections.Generic.Dictionary? headers) + { + this.Endpoint = endpoint ?? throw new global::System.ArgumentNullException(nameof(endpoint)); + this.Headers = headers; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityOtelCollectorDestinationConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfigHeaders.Json.g.cs new file mode 100644 index 0000000..eaa099e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityOtelCollectorDestinationConfigHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityOtelCollectorDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityOtelCollectorDestinationConfigHeaders), + jsonSerializerContext) as global::OpenRouter.ObservabilityOtelCollectorDestinationConfigHeaders; + } + + /// + /// 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::OpenRouter.ObservabilityOtelCollectorDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityOtelCollectorDestinationConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityOtelCollectorDestinationConfigHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfigHeaders.g.cs new file mode 100644 index 0000000..2842170 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers as a JSON object. For Axiom, use {"Authorization": "Bearer xaat-xxx", "X-Axiom-Dataset": "your-dataset"} + /// + public sealed partial class ObservabilityOtelCollectorDestinationConfigHeaders + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationType.g.cs new file mode 100644 index 0000000..8ef89fc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ObservabilityOtelCollectorDestinationType + { + /// + /// + /// + OtelCollector, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityOtelCollectorDestinationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityOtelCollectorDestinationType value) + { + return value switch + { + ObservabilityOtelCollectorDestinationType.OtelCollector => "otel-collector", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityOtelCollectorDestinationType? ToEnum(string value) + { + return value switch + { + "otel-collector" => ObservabilityOtelCollectorDestinationType.OtelCollector, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfig.Json.g.cs new file mode 100644 index 0000000..0661aad --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityPosthogDestinationConfig + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityPosthogDestinationConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityPosthogDestinationConfig), + jsonSerializerContext) as global::OpenRouter.ObservabilityPosthogDestinationConfig; + } + + /// + /// 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::OpenRouter.ObservabilityPosthogDestinationConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityPosthogDestinationConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityPosthogDestinationConfig; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfig.g.cs new file mode 100644 index 0000000..5bbd1f8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfig.g.cs @@ -0,0 +1,67 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityPosthogDestinationConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("apiKey")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ApiKey { get; set; } + + /// + /// Default Value: https://us.i.posthog.com + /// + [global::System.Text.Json.Serialization.JsonPropertyName("endpoint")] + public string? Endpoint { get; set; } + + /// + /// Custom HTTP headers to include in requests to this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public global::System.Collections.Generic.Dictionary? Headers { 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. + /// + /// + /// + /// Default Value: https://us.i.posthog.com + /// + /// + /// Custom HTTP headers to include in requests to this destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityPosthogDestinationConfig( + string apiKey, + string? endpoint, + global::System.Collections.Generic.Dictionary? headers) + { + this.ApiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); + this.Endpoint = endpoint; + this.Headers = headers; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityPosthogDestinationConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfigHeaders.Json.g.cs new file mode 100644 index 0000000..159a720 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityPosthogDestinationConfigHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityPosthogDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityPosthogDestinationConfigHeaders), + jsonSerializerContext) as global::OpenRouter.ObservabilityPosthogDestinationConfigHeaders; + } + + /// + /// 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::OpenRouter.ObservabilityPosthogDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityPosthogDestinationConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityPosthogDestinationConfigHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfigHeaders.g.cs new file mode 100644 index 0000000..d3346bd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class ObservabilityPosthogDestinationConfigHeaders + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationType.g.cs new file mode 100644 index 0000000..eb0c603 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ObservabilityPosthogDestinationType + { + /// + /// + /// + Posthog, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityPosthogDestinationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityPosthogDestinationType value) + { + return value switch + { + ObservabilityPosthogDestinationType.Posthog => "posthog", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityPosthogDestinationType? ToEnum(string value) + { + return value switch + { + "posthog" => ObservabilityPosthogDestinationType.Posthog, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfig.Json.g.cs new file mode 100644 index 0000000..8d14da8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityRampDestinationConfig + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityRampDestinationConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityRampDestinationConfig), + jsonSerializerContext) as global::OpenRouter.ObservabilityRampDestinationConfig; + } + + /// + /// 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::OpenRouter.ObservabilityRampDestinationConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityRampDestinationConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityRampDestinationConfig; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfig.g.cs new file mode 100644 index 0000000..23ac97d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfig.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityRampDestinationConfig + { + /// + /// Generate this in your Ramp integration settings. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("apiKey")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ApiKey { get; set; } + + /// + /// Default Value: https://api.ramp.com/developer/v1/ai-usage/openrouter + /// + [global::System.Text.Json.Serialization.JsonPropertyName("baseUrl")] + public string? BaseUrl { get; set; } + + /// + /// Custom HTTP headers to include in requests to Ramp. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public global::System.Collections.Generic.Dictionary? Headers { 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. + /// + /// + /// Generate this in your Ramp integration settings. + /// + /// + /// Default Value: https://api.ramp.com/developer/v1/ai-usage/openrouter + /// + /// + /// Custom HTTP headers to include in requests to Ramp. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityRampDestinationConfig( + string apiKey, + string? baseUrl, + global::System.Collections.Generic.Dictionary? headers) + { + this.ApiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); + this.BaseUrl = baseUrl; + this.Headers = headers; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityRampDestinationConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfigHeaders.Json.g.cs new file mode 100644 index 0000000..6df6c70 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityRampDestinationConfigHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityRampDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityRampDestinationConfigHeaders), + jsonSerializerContext) as global::OpenRouter.ObservabilityRampDestinationConfigHeaders; + } + + /// + /// 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::OpenRouter.ObservabilityRampDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityRampDestinationConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityRampDestinationConfigHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfigHeaders.g.cs new file mode 100644 index 0000000..dc35ecd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to Ramp. + /// + public sealed partial class ObservabilityRampDestinationConfigHeaders + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationType.g.cs new file mode 100644 index 0000000..134330d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ObservabilityRampDestinationType + { + /// + /// + /// + Ramp, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityRampDestinationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityRampDestinationType value) + { + return value switch + { + ObservabilityRampDestinationType.Ramp => "ramp", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityRampDestinationType? ToEnum(string value) + { + return value switch + { + "ramp" => ObservabilityRampDestinationType.Ramp, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfig.Json.g.cs new file mode 100644 index 0000000..63bddde --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityS3DestinationConfig + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityS3DestinationConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityS3DestinationConfig), + jsonSerializerContext) as global::OpenRouter.ObservabilityS3DestinationConfig; + } + + /// + /// 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::OpenRouter.ObservabilityS3DestinationConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityS3DestinationConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityS3DestinationConfig; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfig.g.cs new file mode 100644 index 0000000..312c6b7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfig.g.cs @@ -0,0 +1,129 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityS3DestinationConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("accessKeyId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AccessKeyId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("bucketName")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string BucketName { get; set; } + + /// + /// Only for S3-compatible services like Cloudflare R2 (https://account-id.r2.cloudflarestorage.com) or MinIO. Leave blank for standard AWS S3. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("endpoint")] + public string? Endpoint { get; set; } + + /// + /// Custom HTTP headers to include in requests to this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public global::System.Collections.Generic.Dictionary? Headers { get; set; } + + /// + /// Template for S3 object path. The filename ({traceId}-{timestamp}.json) is automatically appended. Available variables: {prefix}, {date}, {year}, {month}, {day}, {apiKeyName}
+ /// Default Value: {prefix}/{date} + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("pathTemplate")] + public string? PathTemplate { get; set; } + + /// + /// Default Value: openrouter-traces + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] + public string? Prefix { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("region")] + public string? Region { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("secretAccessKey")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string SecretAccessKey { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sessionToken")] + public string? SessionToken { 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. + /// + /// + /// + /// + /// + /// Only for S3-compatible services like Cloudflare R2 (https://account-id.r2.cloudflarestorage.com) or MinIO. Leave blank for standard AWS S3. + /// + /// + /// Custom HTTP headers to include in requests to this destination. + /// + /// + /// Template for S3 object path. The filename ({traceId}-{timestamp}.json) is automatically appended. Available variables: {prefix}, {date}, {year}, {month}, {day}, {apiKeyName}
+ /// Default Value: {prefix}/{date} + /// + /// + /// Default Value: openrouter-traces + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityS3DestinationConfig( + string accessKeyId, + string bucketName, + string secretAccessKey, + string? endpoint, + global::System.Collections.Generic.Dictionary? headers, + string? pathTemplate, + string? prefix, + string? region, + string? sessionToken) + { + this.AccessKeyId = accessKeyId ?? throw new global::System.ArgumentNullException(nameof(accessKeyId)); + this.BucketName = bucketName ?? throw new global::System.ArgumentNullException(nameof(bucketName)); + this.Endpoint = endpoint; + this.Headers = headers; + this.PathTemplate = pathTemplate; + this.Prefix = prefix; + this.Region = region; + this.SecretAccessKey = secretAccessKey ?? throw new global::System.ArgumentNullException(nameof(secretAccessKey)); + this.SessionToken = sessionToken; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityS3DestinationConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfigHeaders.Json.g.cs new file mode 100644 index 0000000..b4d293d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityS3DestinationConfigHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityS3DestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityS3DestinationConfigHeaders), + jsonSerializerContext) as global::OpenRouter.ObservabilityS3DestinationConfigHeaders; + } + + /// + /// 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::OpenRouter.ObservabilityS3DestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityS3DestinationConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityS3DestinationConfigHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfigHeaders.g.cs new file mode 100644 index 0000000..ab7224b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class ObservabilityS3DestinationConfigHeaders + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationType.g.cs new file mode 100644 index 0000000..46afe8a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ObservabilityS3DestinationType + { + /// + /// + /// + S3, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityS3DestinationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityS3DestinationType value) + { + return value switch + { + ObservabilityS3DestinationType.S3 => "s3", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityS3DestinationType? ToEnum(string value) + { + return value switch + { + "s3" => ObservabilityS3DestinationType.S3, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfig.Json.g.cs new file mode 100644 index 0000000..ffd08f3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilitySentryDestinationConfig + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilitySentryDestinationConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilitySentryDestinationConfig), + jsonSerializerContext) as global::OpenRouter.ObservabilitySentryDestinationConfig; + } + + /// + /// 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::OpenRouter.ObservabilitySentryDestinationConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilitySentryDestinationConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilitySentryDestinationConfig; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfig.g.cs new file mode 100644 index 0000000..9854da0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfig.g.cs @@ -0,0 +1,66 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilitySentryDestinationConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("dsn")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Dsn { get; set; } + + /// + /// Custom HTTP headers to include in requests to this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public global::System.Collections.Generic.Dictionary? Headers { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("otlpEndpoint")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string OtlpEndpoint { 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. + /// + /// + /// + /// + /// Custom HTTP headers to include in requests to this destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilitySentryDestinationConfig( + string dsn, + string otlpEndpoint, + global::System.Collections.Generic.Dictionary? headers) + { + this.Dsn = dsn ?? throw new global::System.ArgumentNullException(nameof(dsn)); + this.Headers = headers; + this.OtlpEndpoint = otlpEndpoint ?? throw new global::System.ArgumentNullException(nameof(otlpEndpoint)); + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilitySentryDestinationConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfigHeaders.Json.g.cs new file mode 100644 index 0000000..8c2a354 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilitySentryDestinationConfigHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilitySentryDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilitySentryDestinationConfigHeaders), + jsonSerializerContext) as global::OpenRouter.ObservabilitySentryDestinationConfigHeaders; + } + + /// + /// 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::OpenRouter.ObservabilitySentryDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilitySentryDestinationConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilitySentryDestinationConfigHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfigHeaders.g.cs new file mode 100644 index 0000000..378e42a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class ObservabilitySentryDestinationConfigHeaders + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationType.g.cs new file mode 100644 index 0000000..2b09d49 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ObservabilitySentryDestinationType + { + /// + /// + /// + Sentry, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilitySentryDestinationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilitySentryDestinationType value) + { + return value switch + { + ObservabilitySentryDestinationType.Sentry => "sentry", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilitySentryDestinationType? ToEnum(string value) + { + return value switch + { + "sentry" => ObservabilitySentryDestinationType.Sentry, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfig.Json.g.cs new file mode 100644 index 0000000..8ea1c3a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilitySnowflakeDestinationConfig + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilitySnowflakeDestinationConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilitySnowflakeDestinationConfig), + jsonSerializerContext) as global::OpenRouter.ObservabilitySnowflakeDestinationConfig; + } + + /// + /// 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::OpenRouter.ObservabilitySnowflakeDestinationConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilitySnowflakeDestinationConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilitySnowflakeDestinationConfig; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfig.g.cs new file mode 100644 index 0000000..1b96788 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfig.g.cs @@ -0,0 +1,110 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilitySnowflakeDestinationConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("account")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Account { get; set; } + + /// + /// Default Value: SNOWFLAKE_LEARNING_DB + /// + [global::System.Text.Json.Serialization.JsonPropertyName("database")] + public string? Database { get; set; } + + /// + /// Custom HTTP headers to include in requests to this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public global::System.Collections.Generic.Dictionary? Headers { get; set; } + + /// + /// Default Value: PUBLIC + /// + [global::System.Text.Json.Serialization.JsonPropertyName("schema")] + public string? Schema { get; set; } + + /// + /// Default Value: OPENROUTER_TRACES + /// + [global::System.Text.Json.Serialization.JsonPropertyName("table")] + public string? Table { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("token")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Token { get; set; } + + /// + /// Default Value: COMPUTE_WH + /// + [global::System.Text.Json.Serialization.JsonPropertyName("warehouse")] + public string? Warehouse { 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. + /// + /// + /// + /// + /// Default Value: SNOWFLAKE_LEARNING_DB + /// + /// + /// Custom HTTP headers to include in requests to this destination. + /// + /// + /// Default Value: PUBLIC + /// + /// + /// Default Value: OPENROUTER_TRACES + /// + /// + /// Default Value: COMPUTE_WH + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilitySnowflakeDestinationConfig( + string account, + string token, + string? database, + global::System.Collections.Generic.Dictionary? headers, + string? schema, + string? table, + string? warehouse) + { + this.Account = account ?? throw new global::System.ArgumentNullException(nameof(account)); + this.Database = database; + this.Headers = headers; + this.Schema = schema; + this.Table = table; + this.Token = token ?? throw new global::System.ArgumentNullException(nameof(token)); + this.Warehouse = warehouse; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilitySnowflakeDestinationConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfigHeaders.Json.g.cs new file mode 100644 index 0000000..32ea515 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilitySnowflakeDestinationConfigHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilitySnowflakeDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilitySnowflakeDestinationConfigHeaders), + jsonSerializerContext) as global::OpenRouter.ObservabilitySnowflakeDestinationConfigHeaders; + } + + /// + /// 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::OpenRouter.ObservabilitySnowflakeDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilitySnowflakeDestinationConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilitySnowflakeDestinationConfigHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfigHeaders.g.cs new file mode 100644 index 0000000..9b37780 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class ObservabilitySnowflakeDestinationConfigHeaders + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationType.g.cs new file mode 100644 index 0000000..8f5692d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ObservabilitySnowflakeDestinationType + { + /// + /// + /// + Snowflake, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilitySnowflakeDestinationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilitySnowflakeDestinationType value) + { + return value switch + { + ObservabilitySnowflakeDestinationType.Snowflake => "snowflake", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilitySnowflakeDestinationType? ToEnum(string value) + { + return value switch + { + "snowflake" => ObservabilitySnowflakeDestinationType.Snowflake, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfig.Json.g.cs new file mode 100644 index 0000000..8afe71f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityWeaveDestinationConfig + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityWeaveDestinationConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityWeaveDestinationConfig), + jsonSerializerContext) as global::OpenRouter.ObservabilityWeaveDestinationConfig; + } + + /// + /// 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::OpenRouter.ObservabilityWeaveDestinationConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityWeaveDestinationConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityWeaveDestinationConfig; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfig.g.cs new file mode 100644 index 0000000..2a649ec --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfig.g.cs @@ -0,0 +1,87 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityWeaveDestinationConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("apiKey")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ApiKey { get; set; } + + /// + /// Default Value: https://trace.wandb.ai + /// + [global::System.Text.Json.Serialization.JsonPropertyName("baseUrl")] + public string? BaseUrl { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("entity")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Entity { get; set; } + + /// + /// Custom HTTP headers to include in requests to this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public global::System.Collections.Generic.Dictionary? Headers { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("project")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Project { 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. + /// + /// + /// + /// + /// + /// Default Value: https://trace.wandb.ai + /// + /// + /// Custom HTTP headers to include in requests to this destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityWeaveDestinationConfig( + string apiKey, + string entity, + string project, + string? baseUrl, + global::System.Collections.Generic.Dictionary? headers) + { + this.ApiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); + this.BaseUrl = baseUrl; + this.Entity = entity ?? throw new global::System.ArgumentNullException(nameof(entity)); + this.Headers = headers; + this.Project = project ?? throw new global::System.ArgumentNullException(nameof(project)); + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityWeaveDestinationConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfigHeaders.Json.g.cs new file mode 100644 index 0000000..c1600e2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityWeaveDestinationConfigHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityWeaveDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityWeaveDestinationConfigHeaders), + jsonSerializerContext) as global::OpenRouter.ObservabilityWeaveDestinationConfigHeaders; + } + + /// + /// 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::OpenRouter.ObservabilityWeaveDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityWeaveDestinationConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityWeaveDestinationConfigHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfigHeaders.g.cs new file mode 100644 index 0000000..a942261 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class ObservabilityWeaveDestinationConfigHeaders + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationType.g.cs new file mode 100644 index 0000000..e3883e7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ObservabilityWeaveDestinationType + { + /// + /// + /// + Weave, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityWeaveDestinationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityWeaveDestinationType value) + { + return value switch + { + ObservabilityWeaveDestinationType.Weave => "weave", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityWeaveDestinationType? ToEnum(string value) + { + return value switch + { + "weave" => ObservabilityWeaveDestinationType.Weave, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfig.Json.g.cs new file mode 100644 index 0000000..cc2d18b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityWebhookDestinationConfig + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityWebhookDestinationConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityWebhookDestinationConfig), + jsonSerializerContext) as global::OpenRouter.ObservabilityWebhookDestinationConfig; + } + + /// + /// 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::OpenRouter.ObservabilityWebhookDestinationConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityWebhookDestinationConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityWebhookDestinationConfig; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfig.g.cs new file mode 100644 index 0000000..5450b45 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfig.g.cs @@ -0,0 +1,66 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityWebhookDestinationConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public global::System.Collections.Generic.Dictionary? Headers { get; set; } + + /// + /// Default Value: POST + /// + [global::System.Text.Json.Serialization.JsonPropertyName("method")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodJsonConverter))] + public global::OpenRouter.ObservabilityWebhookDestinationConfigMethod? Method { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Url { 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. + /// + /// + /// + /// + /// Default Value: POST + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityWebhookDestinationConfig( + string url, + global::System.Collections.Generic.Dictionary? headers, + global::OpenRouter.ObservabilityWebhookDestinationConfigMethod? method) + { + this.Headers = headers; + this.Method = method; + this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url)); + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityWebhookDestinationConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigHeaders.Json.g.cs new file mode 100644 index 0000000..b5368a9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityWebhookDestinationConfigHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityWebhookDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityWebhookDestinationConfigHeaders), + jsonSerializerContext) as global::OpenRouter.ObservabilityWebhookDestinationConfigHeaders; + } + + /// + /// 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::OpenRouter.ObservabilityWebhookDestinationConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::OpenRouter.ObservabilityWebhookDestinationConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityWebhookDestinationConfigHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigHeaders.g.cs new file mode 100644 index 0000000..3fcfd62 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityWebhookDestinationConfigHeaders + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigMethod.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigMethod.g.cs new file mode 100644 index 0000000..01e5ea6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigMethod.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Default Value: POST + /// + public enum ObservabilityWebhookDestinationConfigMethod + { + /// + /// + /// + Post, + /// + /// + /// + Put, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityWebhookDestinationConfigMethodExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityWebhookDestinationConfigMethod value) + { + return value switch + { + ObservabilityWebhookDestinationConfigMethod.Post => "POST", + ObservabilityWebhookDestinationConfigMethod.Put => "PUT", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityWebhookDestinationConfigMethod? ToEnum(string value) + { + return value switch + { + "POST" => ObservabilityWebhookDestinationConfigMethod.Post, + "PUT" => ObservabilityWebhookDestinationConfigMethod.Put, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationType.g.cs new file mode 100644 index 0000000..58b9679 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ObservabilityWebhookDestinationType + { + /// + /// + /// + Webhook, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityWebhookDestinationTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityWebhookDestinationType value) + { + return value switch + { + ObservabilityWebhookDestinationType.Webhook => "webhook", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityWebhookDestinationType? ToEnum(string value) + { + return value switch + { + "webhook" => ObservabilityWebhookDestinationType.Webhook, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.OpenRouterClient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.OpenRouterClient.g.cs index 3232b58..569c3f0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.OpenRouterClient.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.OpenRouterClient.g.cs @@ -75,6 +75,15 @@ public sealed partial class OpenRouterClient : global::OpenRouter.IOpenRouterCli JsonSerializerContext = JsonSerializerContext, }; + /// + /// + /// + public SubpackageByokClient SubpackageByok => new SubpackageByokClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + { + ReadResponseAsString = ReadResponseAsString, + JsonSerializerContext = JsonSerializerContext, + }; + /// /// /// @@ -147,6 +156,15 @@ public sealed partial class OpenRouterClient : global::OpenRouter.IOpenRouterCli JsonSerializerContext = JsonSerializerContext, }; + /// + /// + /// + public SubpackageObservabilityClient SubpackageObservability => new SubpackageObservabilityClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + { + ReadResponseAsString = ReadResponseAsString, + JsonSerializerContext = JsonSerializerContext, + }; + /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.GetByokKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.GetByokKey.g.cs new file mode 100644 index 0000000..cdd4a04 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.GetByokKey.g.cs @@ -0,0 +1,556 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackageByokClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_GetByokKeySecurityRequirement0 = + new global::OpenRouter.EndPointSecurityRequirement + { + Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] + { new global::OpenRouter.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Bearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_GetByokKeySecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_GetByokKeySecurityRequirement0, + }; + partial void PrepareGetByokKeyArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid id, + ref global::System.Guid? workspaceId); + partial void PrepareGetByokKeyRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid id, + global::System.Guid? workspaceId); + partial void ProcessGetByokKeyResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetByokKeyResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get a BYOK provider credential
+ /// Get a single bring-your-own-key (BYOK) provider credential by its `id`. Defaults to the authenticated entity's default workspace; use the `workspace_id` query parameter to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetByokKeyAsync( + global::System.Guid id, + global::System.Guid? workspaceId = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetByokKeyAsResponseAsync( + id: id, + workspaceId: workspaceId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get a BYOK provider credential
+ /// Get a single bring-your-own-key (BYOK) provider credential by its `id`. Defaults to the authenticated entity's default workspace; use the `workspace_id` query parameter to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> GetByokKeyAsResponseAsync( + global::System.Guid id, + global::System.Guid? workspaceId = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetByokKeyArguments( + httpClient: HttpClient, + id: ref id, + workspaceId: ref workspaceId); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetByokKeySecurityRequirements, + operationName: "GetByokKeyAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: $"/byok/{id}", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("workspace_id", workspaceId?.ToString()) + ; + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetByokKeyRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id!, + workspaceId: workspaceId); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetByokKey", + methodName: "GetByokKeyAsync", + pathTemplate: "$\"/byok/{id}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetByokKey", + methodName: "GetByokKeyAsync", + pathTemplate: "$\"/byok/{id}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetByokKey", + methodName: "GetByokKeyAsync", + pathTemplate: "$\"/byok/{id}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetByokKeyResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetByokKey", + methodName: "GetByokKeyAsync", + pathTemplate: "$\"/byok/{id}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetByokKey", + methodName: "GetByokKeyAsync", + pathTemplate: "$\"/byok/{id}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + statusCode: __response.StatusCode) + { + ResponseBody = __content_401, + ResponseObject = __value_401, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Not Found - Resource does not exist + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::OpenRouter.NotFoundResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + statusCode: __response.StatusCode) + { + ResponseBody = __content_404, + ResponseObject = __value_404, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + statusCode: __response.StatusCode) + { + ResponseBody = __content_500, + ResponseObject = __value_500, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetByokKeyResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.GetBYOKKeyResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::OpenRouter.GetBYOKKeyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.ListByokKeys.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.ListByokKeys.g.cs new file mode 100644 index 0000000..9683fe0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.ListByokKeys.g.cs @@ -0,0 +1,543 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackageByokClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_ListByokKeysSecurityRequirement0 = + new global::OpenRouter.EndPointSecurityRequirement + { + Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] + { new global::OpenRouter.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Bearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_ListByokKeysSecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_ListByokKeysSecurityRequirement0, + }; + partial void PrepareListByokKeysArguments( + global::System.Net.Http.HttpClient httpClient, + ref int? offset, + ref int? limit, + ref global::System.Guid? workspaceId, + ref global::OpenRouter.ByokGetParametersProvider? provider); + partial void PrepareListByokKeysRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int? offset, + int? limit, + global::System.Guid? workspaceId, + global::OpenRouter.ByokGetParametersProvider? provider); + partial void ProcessListByokKeysResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListByokKeysResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List BYOK provider credentials
+ /// List the bring-your-own-key (BYOK) provider credentials for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace, or the `provider` query parameter to filter by upstream provider. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// + /// + /// Optional provider slug to filter by (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ListByokKeysAsync( + int? offset = default, + int? limit = default, + global::System.Guid? workspaceId = default, + global::OpenRouter.ByokGetParametersProvider? provider = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListByokKeysAsResponseAsync( + offset: offset, + limit: limit, + workspaceId: workspaceId, + provider: provider, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List BYOK provider credentials
+ /// List the bring-your-own-key (BYOK) provider credentials for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace, or the `provider` query parameter to filter by upstream provider. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// + /// + /// Optional provider slug to filter by (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> ListByokKeysAsResponseAsync( + int? offset = default, + int? limit = default, + global::System.Guid? workspaceId = default, + global::OpenRouter.ByokGetParametersProvider? provider = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListByokKeysArguments( + httpClient: HttpClient, + offset: ref offset, + limit: ref limit, + workspaceId: ref workspaceId, + provider: ref provider); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListByokKeysSecurityRequirements, + operationName: "ListByokKeysAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: "/byok", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("offset", offset?.ToString()) + .AddOptionalParameter("limit", limit?.ToString()) + .AddOptionalParameter("workspace_id", workspaceId?.ToString()) + .AddOptionalParameter("provider", provider?.ToValueString()) + ; + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListByokKeysRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + offset: offset, + limit: limit, + workspaceId: workspaceId, + provider: provider); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListByokKeys", + methodName: "ListByokKeysAsync", + pathTemplate: "\"/byok\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListByokKeys", + methodName: "ListByokKeysAsync", + pathTemplate: "\"/byok\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListByokKeys", + methodName: "ListByokKeysAsync", + pathTemplate: "\"/byok\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListByokKeysResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListByokKeys", + methodName: "ListByokKeysAsync", + pathTemplate: "\"/byok\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListByokKeys", + methodName: "ListByokKeysAsync", + pathTemplate: "\"/byok\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + statusCode: __response.StatusCode) + { + ResponseBody = __content_401, + ResponseObject = __value_401, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + statusCode: __response.StatusCode) + { + ResponseBody = __content_500, + ResponseObject = __value_500, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListByokKeysResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.ListBYOKKeysResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::OpenRouter.ListBYOKKeysResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.g.cs new file mode 100644 index 0000000..ca83098 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.g.cs @@ -0,0 +1,136 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public sealed partial class SubpackageByokClient : global::OpenRouter.ISubpackageByokClient, global::System.IDisposable + { + /// + /// + /// + public const string DefaultBaseUrl = "https://openrouter.ai/api/v1"; + + private bool _disposeHttpClient = true; + + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + public System.Uri? BaseUri => HttpClient.BaseAddress; + + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif + + /// + public global::OpenRouter.AutoSDKClientOptions Options { get; } + /// + /// + /// + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::OpenRouter.SourceGenerationContext.Default; + + + /// + /// Creates a new instance of the SubpackageByokClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Dispose the HttpClient when the instance is disposed. True by default. + public SubpackageByokClient( + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null, + global::System.Collections.Generic.List? authorizations = null, + bool disposeHttpClient = true) : this( + httpClient, + baseUri, + authorizations, + options: null, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the SubpackageByokClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public SubpackageByokClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::OpenRouter.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the SubpackageByokClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public SubpackageByokClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Uri? baseUri, + global::System.Collections.Generic.List? authorizations, + global::OpenRouter.AutoSDKClientOptions? options, + bool disposeHttpClient = true) + { + + HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); + HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl); + Authorizations = authorizations ?? new global::System.Collections.Generic.List(); + Options = options ?? new global::OpenRouter.AutoSDKClientOptions(); + _disposeHttpClient = disposeHttpClient; + + Initialized(HttpClient); + } + + /// + public void Dispose() + { + if (_disposeHttpClient) + { + HttpClient.Dispose(); + } + } + + partial void Initialized( + global::System.Net.Http.HttpClient client); + partial void PrepareArguments( + global::System.Net.Http.HttpClient client); + partial void PrepareRequest( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpRequestMessage request); + partial void ProcessResponse( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response); + partial void ProcessResponseContent( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response, + ref string content); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.GetObservabilityDestination.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.GetObservabilityDestination.g.cs new file mode 100644 index 0000000..d3e6ea7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.GetObservabilityDestination.g.cs @@ -0,0 +1,556 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackageObservabilityClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_GetObservabilityDestinationSecurityRequirement0 = + new global::OpenRouter.EndPointSecurityRequirement + { + Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] + { new global::OpenRouter.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Bearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_GetObservabilityDestinationSecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_GetObservabilityDestinationSecurityRequirement0, + }; + partial void PrepareGetObservabilityDestinationArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid id, + ref global::System.Guid? workspaceId); + partial void PrepareGetObservabilityDestinationRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid id, + global::System.Guid? workspaceId); + partial void ProcessGetObservabilityDestinationResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetObservabilityDestinationResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get an observability destination
+ /// Fetch a single observability destination by its UUID. Defaults to the authenticated entity's default workspace — use `workspace_id` to override. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetObservabilityDestinationAsync( + global::System.Guid id, + global::System.Guid? workspaceId = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetObservabilityDestinationAsResponseAsync( + id: id, + workspaceId: workspaceId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get an observability destination
+ /// Fetch a single observability destination by its UUID. Defaults to the authenticated entity's default workspace — use `workspace_id` to override. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> GetObservabilityDestinationAsResponseAsync( + global::System.Guid id, + global::System.Guid? workspaceId = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetObservabilityDestinationArguments( + httpClient: HttpClient, + id: ref id, + workspaceId: ref workspaceId); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetObservabilityDestinationSecurityRequirements, + operationName: "GetObservabilityDestinationAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: $"/observability/destinations/{id}", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("workspace_id", workspaceId?.ToString()) + ; + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetObservabilityDestinationRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id!, + workspaceId: workspaceId); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetObservabilityDestination", + methodName: "GetObservabilityDestinationAsync", + pathTemplate: "$\"/observability/destinations/{id}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetObservabilityDestination", + methodName: "GetObservabilityDestinationAsync", + pathTemplate: "$\"/observability/destinations/{id}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetObservabilityDestination", + methodName: "GetObservabilityDestinationAsync", + pathTemplate: "$\"/observability/destinations/{id}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetObservabilityDestinationResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetObservabilityDestination", + methodName: "GetObservabilityDestinationAsync", + pathTemplate: "$\"/observability/destinations/{id}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetObservabilityDestination", + methodName: "GetObservabilityDestinationAsync", + pathTemplate: "$\"/observability/destinations/{id}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + statusCode: __response.StatusCode) + { + ResponseBody = __content_401, + ResponseObject = __value_401, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Not Found - Resource does not exist + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::OpenRouter.NotFoundResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + statusCode: __response.StatusCode) + { + ResponseBody = __content_404, + ResponseObject = __value_404, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + statusCode: __response.StatusCode) + { + ResponseBody = __content_500, + ResponseObject = __value_500, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetObservabilityDestinationResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.GetObservabilityDestinationResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::OpenRouter.GetObservabilityDestinationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.ListObservabilityDestinations.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.ListObservabilityDestinations.g.cs new file mode 100644 index 0000000..7cf7aca --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.ListObservabilityDestinations.g.cs @@ -0,0 +1,529 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackageObservabilityClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_ListObservabilityDestinationsSecurityRequirement0 = + new global::OpenRouter.EndPointSecurityRequirement + { + Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] + { new global::OpenRouter.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Bearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_ListObservabilityDestinationsSecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_ListObservabilityDestinationsSecurityRequirement0, + }; + partial void PrepareListObservabilityDestinationsArguments( + global::System.Net.Http.HttpClient httpClient, + ref int? offset, + ref int? limit, + ref global::System.Guid? workspaceId); + partial void PrepareListObservabilityDestinationsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int? offset, + int? limit, + global::System.Guid? workspaceId); + partial void ProcessListObservabilityDestinationsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListObservabilityDestinationsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List observability destinations
+ /// List the observability destinations configured for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace. Only destinations with stable release status are surfaced — destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ListObservabilityDestinationsAsync( + int? offset = default, + int? limit = default, + global::System.Guid? workspaceId = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListObservabilityDestinationsAsResponseAsync( + offset: offset, + limit: limit, + workspaceId: workspaceId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List observability destinations
+ /// List the observability destinations configured for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace. Only destinations with stable release status are surfaced — destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> ListObservabilityDestinationsAsResponseAsync( + int? offset = default, + int? limit = default, + global::System.Guid? workspaceId = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListObservabilityDestinationsArguments( + httpClient: HttpClient, + offset: ref offset, + limit: ref limit, + workspaceId: ref workspaceId); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListObservabilityDestinationsSecurityRequirements, + operationName: "ListObservabilityDestinationsAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: "/observability/destinations", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("offset", offset?.ToString()) + .AddOptionalParameter("limit", limit?.ToString()) + .AddOptionalParameter("workspace_id", workspaceId?.ToString()) + ; + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListObservabilityDestinationsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + offset: offset, + limit: limit, + workspaceId: workspaceId); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListObservabilityDestinations", + methodName: "ListObservabilityDestinationsAsync", + pathTemplate: "\"/observability/destinations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListObservabilityDestinations", + methodName: "ListObservabilityDestinationsAsync", + pathTemplate: "\"/observability/destinations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListObservabilityDestinations", + methodName: "ListObservabilityDestinationsAsync", + pathTemplate: "\"/observability/destinations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListObservabilityDestinationsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListObservabilityDestinations", + methodName: "ListObservabilityDestinationsAsync", + pathTemplate: "\"/observability/destinations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListObservabilityDestinations", + methodName: "ListObservabilityDestinationsAsync", + pathTemplate: "\"/observability/destinations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + statusCode: __response.StatusCode) + { + ResponseBody = __content_401, + ResponseObject = __value_401, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + statusCode: __response.StatusCode) + { + ResponseBody = __content_500, + ResponseObject = __value_500, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListObservabilityDestinationsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.ListObservabilityDestinationsResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::OpenRouter.ListObservabilityDestinationsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.g.cs new file mode 100644 index 0000000..5d51d4e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.g.cs @@ -0,0 +1,136 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public sealed partial class SubpackageObservabilityClient : global::OpenRouter.ISubpackageObservabilityClient, global::System.IDisposable + { + /// + /// + /// + public const string DefaultBaseUrl = "https://openrouter.ai/api/v1"; + + private bool _disposeHttpClient = true; + + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + public System.Uri? BaseUri => HttpClient.BaseAddress; + + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif + + /// + public global::OpenRouter.AutoSDKClientOptions Options { get; } + /// + /// + /// + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::OpenRouter.SourceGenerationContext.Default; + + + /// + /// Creates a new instance of the SubpackageObservabilityClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Dispose the HttpClient when the instance is disposed. True by default. + public SubpackageObservabilityClient( + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null, + global::System.Collections.Generic.List? authorizations = null, + bool disposeHttpClient = true) : this( + httpClient, + baseUri, + authorizations, + options: null, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the SubpackageObservabilityClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public SubpackageObservabilityClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::OpenRouter.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the SubpackageObservabilityClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public SubpackageObservabilityClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Uri? baseUri, + global::System.Collections.Generic.List? authorizations, + global::OpenRouter.AutoSDKClientOptions? options, + bool disposeHttpClient = true) + { + + HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); + HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl); + Authorizations = authorizations ?? new global::System.Collections.Generic.List(); + Options = options ?? new global::OpenRouter.AutoSDKClientOptions(); + _disposeHttpClient = disposeHttpClient; + + Initialized(HttpClient); + } + + /// + public void Dispose() + { + if (_disposeHttpClient) + { + HttpClient.Dispose(); + } + } + + partial void Initialized( + global::System.Net.Http.HttpClient client); + partial void PrepareArguments( + global::System.Net.Http.HttpClient client); + partial void PrepareRequest( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpRequestMessage request); + partial void ProcessResponse( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response); + partial void ProcessResponseContent( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response, + ref string content); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/openapi.yaml b/src/libs/OpenRouter/openapi.yaml index 35ff068..196b05e 100644 --- a/src/libs/OpenRouter/openapi.yaml +++ b/src/libs/OpenRouter/openapi.yaml @@ -690,6 +690,161 @@ } } }, + "/byok": { + "get": { + "operationId": "list-byok-keys", + "summary": "List BYOK provider credentials", + "description": "List the bring-your-own-key (BYOK) provider credentials for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace, or the `provider` query parameter to filter by upstream provider. [Management key](/docs/guides/overview/auth/management-api-keys) required.", + "tags": [ + "subpackage_byok" + ], + "parameters": [ + { + "name": "offset", + "in": "query", + "description": "Number of records to skip for pagination", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "limit", + "in": "query", + "description": "Maximum number of records to return (max 100)", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "workspace_id", + "in": "query", + "description": "Optional workspace ID to filter by. Defaults to the authenticated entity's default workspace.", + "required": false, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "provider", + "in": "query", + "description": "Optional provider slug to filter by (e.g. `openai`, `anthropic`, `amazon-bedrock`).", + "required": false, + "schema": { + "$ref": "#/components/schemas/ByokGetParametersProvider" + } + } + ], + "responses": { + "200": { + "description": "List of BYOK credentials", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListBYOKKeysResponse" + } + } + } + }, + "401": { + "description": "Unauthorized - Authentication required or invalid credentials", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + } + } + }, + "/byok/{id}": { + "get": { + "operationId": "get-byok-key", + "summary": "Get a BYOK provider credential", + "description": "Get a single bring-your-own-key (BYOK) provider credential by its `id`. Defaults to the authenticated entity's default workspace; use the `workspace_id` query parameter to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.", + "tags": [ + "subpackage_byok" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "The BYOK credential ID (UUID).", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "workspace_id", + "in": "query", + "description": "Optional workspace ID. Defaults to the authenticated entity's default workspace.", + "required": false, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "BYOK credential details", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetBYOKKeyResponse" + } + } + } + }, + "401": { + "description": "Unauthorized - Authentication required or invalid credentials", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + } + }, + "404": { + "description": "Not Found - Resource does not exist", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + } + } + }, "/chat/completions": { "post": { "operationId": "send-chat-completion-request", @@ -3165,13 +3320,13 @@ } } }, - "/organization/members": { + "/observability/destinations": { "get": { - "operationId": "list-organization-members", - "summary": "List organization members", - "description": "List all members of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required.", + "operationId": "list-observability-destinations", + "summary": "List observability destinations", + "description": "List the observability destinations configured for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace. Only destinations with stable release status are surfaced — destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ - "subpackage_organization" + "subpackage_observability" ], "parameters": [ { @@ -3191,15 +3346,25 @@ "schema": { "type": "integer" } + }, + { + "name": "workspace_id", + "in": "query", + "description": "Optional workspace ID to filter by. Defaults to the authenticated entity's default workspace.", + "required": false, + "schema": { + "type": "string", + "format": "uuid" + } } ], "responses": { "200": { - "description": "List of organization members", + "description": "List of observability destinations", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Organization_listOrganizationMembers_Response_200" + "$ref": "#/components/schemas/ListObservabilityDestinationsResponse" } } } @@ -3214,16 +3379,6 @@ } } }, - "404": { - "description": "Not Found - Resource does not exist", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotFoundResponse" - } - } - } - }, "500": { "description": "Internal Server Error - Unexpected server error", "content": { @@ -3237,64 +3392,43 @@ } } }, - "/providers": { + "/observability/destinations/{id}": { "get": { - "operationId": "list-providers", - "summary": "List all providers", + "operationId": "get-observability-destination", + "summary": "Get an observability destination", + "description": "Fetch a single observability destination by its UUID. Defaults to the authenticated entity's default workspace — use `workspace_id` to override. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ - "subpackage_providers" + "subpackage_observability" ], - "parameters": [], - "responses": { - "200": { - "description": "Returns a list of providers", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Providers_listProviders_Response_200" - } - } + "parameters": [ + { + "name": "id", + "in": "path", + "description": "The destination ID (UUID).", + "required": true, + "schema": { + "type": "string", + "format": "uuid" } }, - "500": { - "description": "Internal Server Error - Unexpected server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InternalServerResponse" - } - } + { + "name": "workspace_id", + "in": "query", + "description": "Optional workspace ID. Defaults to the authenticated entity's default workspace.", + "required": false, + "schema": { + "type": "string", + "format": "uuid" } } - } - } - }, - "/rerank": { - "post": { - "operationId": "create-rerank", - "summary": "Submit a rerank request", - "description": "Submits a rerank request to the rerank router", - "tags": [ - "subpackage_rerank" ], - "parameters": [], "responses": { "200": { - "description": "Rerank response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Rerank_createRerank_Response_200" - } - } - } - }, - "400": { - "description": "Bad Request - Invalid request parameters or malformed input", + "description": "The observability destination", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BadRequestResponse" + "$ref": "#/components/schemas/GetObservabilityDestinationResponse" } } } @@ -3309,16 +3443,6 @@ } } }, - "402": { - "description": "Payment Required - Insufficient credits or quota to complete request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentRequiredResponse" - } - } - } - }, "404": { "description": "Not Found - Resource does not exist", "content": { @@ -3329,16 +3453,6 @@ } } }, - "429": { - "description": "Too Many Requests - Rate limit exceeded", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TooManyRequestsResponse" - } - } - } - }, "500": { "description": "Internal Server Error - Unexpected server error", "content": { @@ -3348,21 +3462,208 @@ } } } - }, - "502": { - "description": "Bad Gateway - Provider/upstream API failure", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BadGatewayResponse" - } - } - } - }, - "503": { - "description": "Service Unavailable - Service temporarily unavailable", - "content": { - "application/json": { + } + } + } + }, + "/organization/members": { + "get": { + "operationId": "list-organization-members", + "summary": "List organization members", + "description": "List all members of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required.", + "tags": [ + "subpackage_organization" + ], + "parameters": [ + { + "name": "offset", + "in": "query", + "description": "Number of records to skip for pagination", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "limit", + "in": "query", + "description": "Maximum number of records to return (max 100)", + "required": false, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "List of organization members", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Organization_listOrganizationMembers_Response_200" + } + } + } + }, + "401": { + "description": "Unauthorized - Authentication required or invalid credentials", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + } + }, + "404": { + "description": "Not Found - Resource does not exist", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + } + } + }, + "/providers": { + "get": { + "operationId": "list-providers", + "summary": "List all providers", + "tags": [ + "subpackage_providers" + ], + "parameters": [], + "responses": { + "200": { + "description": "Returns a list of providers", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Providers_listProviders_Response_200" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + } + } + }, + "/rerank": { + "post": { + "operationId": "create-rerank", + "summary": "Submit a rerank request", + "description": "Submits a rerank request to the rerank router", + "tags": [ + "subpackage_rerank" + ], + "parameters": [], + "responses": { + "200": { + "description": "Rerank response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Rerank_createRerank_Response_200" + } + } + } + }, + "400": { + "description": "Bad Request - Invalid request parameters or malformed input", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestResponse" + } + } + } + }, + "401": { + "description": "Unauthorized - Authentication required or invalid credentials", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + } + }, + "402": { + "description": "Payment Required - Insufficient credits or quota to complete request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PaymentRequiredResponse" + } + } + } + }, + "404": { + "description": "Not Found - Resource does not exist", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundResponse" + } + } + } + }, + "429": { + "description": "Too Many Requests - Rate limit exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TooManyRequestsResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + }, + "502": { + "description": "Bad Gateway - Provider/upstream API failure", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadGatewayResponse" + } + } + } + }, + "503": { + "description": "Service Unavailable - Service temporarily unavailable", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/ServiceUnavailableResponse" } @@ -14838,35 +15139,510 @@ ], "title": "ActivityResponse" }, - "ChatDebugOptions": { - "type": "object", - "properties": { - "echo_upstream_body": { - "type": "boolean", - "description": "If true, includes the transformed upstream request body in a debug chunk at the start of the stream. Only works with streaming mode." - } - }, - "description": "Debug options for inspecting request transformations (streaming only)", - "title": "ChatDebugOptions" + "ByokGetParametersProvider": { + "type": "string", + "enum": [ + "ai21", + "aion-labs", + "akashml", + "alibaba", + "amazon-bedrock", + "amazon-nova", + "ambient", + "anthropic", + "arcee-ai", + "atlas-cloud", + "avian", + "azure", + "baidu", + "baseten", + "black-forest-labs", + "byteplus", + "cerebras", + "chutes", + "cirrascale", + "clarifai", + "cloudflare", + "cohere", + "crusoe", + "deepinfra", + "deepseek", + "dekallm", + "featherless", + "fireworks", + "friendli", + "gmicloud", + "google-ai-studio", + "google-vertex", + "groq", + "hyperbolic", + "inception", + "inceptron", + "inference-net", + "infermatic", + "inflection", + "io-net", + "ionstream", + "liquid", + "mancer", + "mara", + "minimax", + "mistral", + "modelrun", + "modular", + "moonshotai", + "morph", + "ncompass", + "nebius", + "nex-agi", + "nextbit", + "novita", + "nvidia", + "open-inference", + "openai", + "parasail", + "perceptron", + "perplexity", + "phala", + "poolside", + "recraft", + "reka", + "relace", + "sambanova", + "seed", + "siliconflow", + "sourceful", + "stepfun", + "streamlake", + "switchpoint", + "together", + "upstage", + "venice", + "wandb", + "xai", + "xiaomi", + "z-ai" + ], + "description": "Optional provider slug to filter by (e.g. `openai`, `anthropic`, `amazon-bedrock`).", + "title": "ByokGetParametersProvider" + }, + "ByokKeyProvider": { + "type": "string", + "enum": [ + "ai21", + "aion-labs", + "akashml", + "alibaba", + "amazon-bedrock", + "amazon-nova", + "ambient", + "anthropic", + "arcee-ai", + "atlas-cloud", + "avian", + "azure", + "baidu", + "baseten", + "black-forest-labs", + "byteplus", + "cerebras", + "chutes", + "cirrascale", + "clarifai", + "cloudflare", + "cohere", + "crusoe", + "deepinfra", + "deepseek", + "dekallm", + "featherless", + "fireworks", + "friendli", + "gmicloud", + "google-ai-studio", + "google-vertex", + "groq", + "hyperbolic", + "inception", + "inceptron", + "inference-net", + "infermatic", + "inflection", + "io-net", + "ionstream", + "liquid", + "mancer", + "mara", + "minimax", + "mistral", + "modelrun", + "modular", + "moonshotai", + "morph", + "ncompass", + "nebius", + "nex-agi", + "nextbit", + "novita", + "nvidia", + "open-inference", + "openai", + "parasail", + "perceptron", + "perplexity", + "phala", + "poolside", + "recraft", + "reka", + "relace", + "sambanova", + "seed", + "siliconflow", + "sourceful", + "stepfun", + "streamlake", + "switchpoint", + "together", + "upstage", + "venice", + "wandb", + "xai", + "xiaomi", + "z-ai" + ], + "description": "The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`).", + "title": "ByokKeyProvider" }, - "ChatAudioOutput": { + "BYOKKey": { "type": "object", "properties": { - "data": { + "allowed_api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction." + }, + "allowed_models": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of model slugs this credential may be used for. `null` means no restriction." + }, + "allowed_user_ids": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of user IDs that may use this credential. `null` means no restriction." + }, + "created_at": { "type": "string", - "description": "Base64 encoded audio data" + "description": "ISO timestamp of when the credential was created." }, - "expires_at": { - "type": "integer", - "description": "Audio expiration timestamp" + "disabled": { + "type": "boolean", + "description": "Whether this credential is currently disabled." }, "id": { "type": "string", - "description": "Audio output identifier" + "format": "uuid", + "description": "Stable public identifier for this BYOK credential." }, - "transcript": { - "type": "string", - "description": "Audio transcript" + "is_fallback": { + "type": "boolean", + "description": "Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried." + }, + "label": { + "type": "string", + "description": "Short masked snippet of the key (e.g. the first/last few characters) used to identify it in the UI." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Optional human-readable name for the credential." + }, + "provider": { + "$ref": "#/components/schemas/ByokKeyProvider", + "description": "The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`)." + }, + "sort_order": { + "type": "integer", + "description": "Position within the provider — credentials are tried in ascending sort order." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this credential belongs to." + } + }, + "required": [ + "allowed_api_key_hashes", + "allowed_models", + "allowed_user_ids", + "created_at", + "disabled", + "id", + "is_fallback", + "label", + "provider", + "sort_order", + "workspace_id" + ], + "title": "BYOKKey" + }, + "ListBYOKKeysResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BYOKKey" + }, + "description": "List of BYOK credentials." + }, + "total_count": { + "type": "integer", + "description": "Total number of BYOK credentials matching the filters." + } + }, + "required": [ + "data", + "total_count" + ], + "title": "ListBYOKKeysResponse" + }, + "GetByokKeyResponseDataProvider": { + "type": "string", + "enum": [ + "ai21", + "aion-labs", + "akashml", + "alibaba", + "amazon-bedrock", + "amazon-nova", + "ambient", + "anthropic", + "arcee-ai", + "atlas-cloud", + "avian", + "azure", + "baidu", + "baseten", + "black-forest-labs", + "byteplus", + "cerebras", + "chutes", + "cirrascale", + "clarifai", + "cloudflare", + "cohere", + "crusoe", + "deepinfra", + "deepseek", + "dekallm", + "featherless", + "fireworks", + "friendli", + "gmicloud", + "google-ai-studio", + "google-vertex", + "groq", + "hyperbolic", + "inception", + "inceptron", + "inference-net", + "infermatic", + "inflection", + "io-net", + "ionstream", + "liquid", + "mancer", + "mara", + "minimax", + "mistral", + "modelrun", + "modular", + "moonshotai", + "morph", + "ncompass", + "nebius", + "nex-agi", + "nextbit", + "novita", + "nvidia", + "open-inference", + "openai", + "parasail", + "perceptron", + "perplexity", + "phala", + "poolside", + "recraft", + "reka", + "relace", + "sambanova", + "seed", + "siliconflow", + "sourceful", + "stepfun", + "streamlake", + "switchpoint", + "together", + "upstage", + "venice", + "wandb", + "xai", + "xiaomi", + "z-ai" + ], + "description": "The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`).", + "title": "GetByokKeyResponseDataProvider" + }, + "GetByokKeyResponseData": { + "type": "object", + "properties": { + "allowed_api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction." + }, + "allowed_models": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of model slugs this credential may be used for. `null` means no restriction." + }, + "allowed_user_ids": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of user IDs that may use this credential. `null` means no restriction." + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the credential was created." + }, + "disabled": { + "type": "boolean", + "description": "Whether this credential is currently disabled." + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this BYOK credential." + }, + "is_fallback": { + "type": "boolean", + "description": "Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried." + }, + "label": { + "type": "string", + "description": "Short masked snippet of the key (e.g. the first/last few characters) used to identify it in the UI." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Optional human-readable name for the credential." + }, + "provider": { + "$ref": "#/components/schemas/GetByokKeyResponseDataProvider", + "description": "The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`)." + }, + "sort_order": { + "type": "integer", + "description": "Position within the provider — credentials are tried in ascending sort order." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this credential belongs to." + } + }, + "required": [ + "allowed_api_key_hashes", + "allowed_models", + "allowed_user_ids", + "created_at", + "disabled", + "id", + "is_fallback", + "label", + "provider", + "sort_order", + "workspace_id" + ], + "description": "The BYOK credential.", + "title": "GetByokKeyResponseData" + }, + "GetBYOKKeyResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/GetByokKeyResponseData" + } + }, + "required": [ + "data" + ], + "title": "GetBYOKKeyResponse" + }, + "ChatDebugOptions": { + "type": "object", + "properties": { + "echo_upstream_body": { + "type": "boolean", + "description": "If true, includes the transformed upstream request body in a debug chunk at the start of the stream. Only works with streaming mode." + } + }, + "description": "Debug options for inspecting request transformations (streaming only)", + "title": "ChatDebugOptions" + }, + "ChatAudioOutput": { + "type": "object", + "properties": { + "data": { + "type": "string", + "description": "Base64 encoded audio data" + }, + "expires_at": { + "type": "integer", + "description": "Audio expiration timestamp" + }, + "id": { + "type": "string", + "description": "Audio output identifier" + }, + "transcript": { + "type": "string", + "description": "Audio transcript" } }, "description": "Audio output data or reference", @@ -25610,6 +26386,3416 @@ "description": "Model count data", "title": "ModelsCountResponse" }, + "ObservabilityDestinationDiscriminatorMappingArizeConfig": { + "type": "object", + "properties": { + "apiKey": { + "type": "string" + }, + "baseUrl": { + "type": "string", + "default": "https://otlp.arize.com" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "modelId": { + "type": "string" + }, + "spaceKey": { + "type": "string" + } + }, + "required": [ + "apiKey", + "modelId", + "spaceKey" + ], + "title": "ObservabilityDestinationDiscriminatorMappingArizeConfig" + }, + "ObservabilityFilterRulesConfigGroupsItemsLogic": { + "type": "string", + "enum": [ + "and", + "or" + ], + "default": "and", + "title": "ObservabilityFilterRulesConfigGroupsItemsLogic" + }, + "ObservabilityFilterRulesConfigGroupsItemsRulesItemsField": { + "type": "string", + "enum": [ + "model", + "provider", + "session_id", + "user_id", + "api_key_name", + "finish_reason", + "input", + "output", + "total_cost", + "total_tokens", + "prompt_tokens", + "completion_tokens" + ], + "title": "ObservabilityFilterRulesConfigGroupsItemsRulesItemsField" + }, + "ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator": { + "type": "string", + "enum": [ + "equals", + "not_equals", + "contains", + "not_contains", + "regex", + "starts_with", + "ends_with", + "gt", + "lt", + "gte", + "lte", + "exists", + "not_exists" + ], + "title": "ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator" + }, + "ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number", + "format": "double" + } + ], + "title": "ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue" + }, + "ObservabilityFilterRulesConfigGroupsItemsRulesItems": { + "type": "object", + "properties": { + "field": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsRulesItemsField" + }, + "operator": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator" + }, + "value": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue" + } + }, + "required": [ + "field", + "operator" + ], + "title": "ObservabilityFilterRulesConfigGroupsItemsRulesItems" + }, + "ObservabilityFilterRulesConfigGroupsItems": { + "type": "object", + "properties": { + "logic": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsLogic" + }, + "rules": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsRulesItems" + } + } + }, + "required": [ + "rules" + ], + "title": "ObservabilityFilterRulesConfigGroupsItems" + }, + "ObservabilityFilterRulesConfig": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "groups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItems" + } + } + }, + "required": [ + "groups" + ], + "description": "Optional structured filter rules controlling which events are forwarded.", + "title": "ObservabilityFilterRulesConfig" + }, + "ObservabilityDestinationDiscriminatorMappingBraintrustConfig": { + "type": "object", + "properties": { + "apiKey": { + "type": "string" + }, + "baseUrl": { + "type": "string", + "default": "https://api.braintrust.dev" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "projectId": { + "type": "string" + } + }, + "required": [ + "apiKey", + "projectId" + ], + "title": "ObservabilityDestinationDiscriminatorMappingBraintrustConfig" + }, + "ObservabilityDestinationDiscriminatorMappingClickhouseConfig": { + "type": "object", + "properties": { + "database": { + "type": "string" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "host": { + "type": "string" + }, + "password": { + "type": "string" + }, + "table": { + "type": "string", + "default": "OPENROUTER_TRACES" + }, + "username": { + "type": "string", + "description": "If you have not set a specific username in ClickHouse, simply type in 'default' below." + } + }, + "required": [ + "database", + "host", + "password", + "username" + ], + "title": "ObservabilityDestinationDiscriminatorMappingClickhouseConfig" + }, + "ObservabilityDestinationDiscriminatorMappingDatadogConfig": { + "type": "object", + "properties": { + "apiKey": { + "type": "string", + "description": "Datadog API key must have LLM Observability permissions. Create at: " + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "mlApp": { + "type": "string", + "description": "Name to identify your application in Datadog LLM Observability" + }, + "url": { + "type": "string", + "default": "https://api.us5.datadoghq.com", + "description": "Datadog API URL for your region (e.g., https://api.datadoghq.com, https://api.us3.datadoghq.com, https://api.datadoghq.eu)" + } + }, + "required": [ + "apiKey", + "mlApp" + ], + "title": "ObservabilityDestinationDiscriminatorMappingDatadogConfig" + }, + "ObservabilityGrafanaDestinationConfig": { + "type": "object", + "properties": { + "apiKey": { + "type": "string" + }, + "baseUrl": { + "type": "string", + "default": "https://otlp-gateway-prod-us-west-0.grafana.net" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "instanceId": { + "type": "string" + } + }, + "required": [ + "apiKey", + "instanceId" + ], + "title": "ObservabilityGrafanaDestinationConfig" + }, + "ObservabilityGrafanaDestinationType": { + "type": "string", + "enum": [ + "grafana" + ], + "title": "ObservabilityGrafanaDestinationType" + }, + "ObservabilityLangfuseDestinationConfig": { + "type": "object", + "properties": { + "baseUrl": { + "type": "string", + "default": "https://us.cloud.langfuse.com" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "publicKey": { + "type": "string" + }, + "secretKey": { + "type": "string" + } + }, + "required": [ + "publicKey", + "secretKey" + ], + "title": "ObservabilityLangfuseDestinationConfig" + }, + "ObservabilityLangfuseDestinationType": { + "type": "string", + "enum": [ + "langfuse" + ], + "title": "ObservabilityLangfuseDestinationType" + }, + "ObservabilityLangsmithDestinationConfig": { + "type": "object", + "properties": { + "apiKey": { + "type": "string" + }, + "endpoint": { + "type": "string", + "default": "https://api.smith.langchain.com" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "project": { + "type": "string", + "default": "main", + "description": "The name for this project, such as pr-openrouter-demo. Defaults to \"main\" if not set." + }, + "workspaceId": { + "type": "string", + "description": "Required for org-scoped API keys. Find this in your LangSmith workspace settings." + } + }, + "required": [ + "apiKey" + ], + "title": "ObservabilityLangsmithDestinationConfig" + }, + "ObservabilityLangsmithDestinationType": { + "type": "string", + "enum": [ + "langsmith" + ], + "title": "ObservabilityLangsmithDestinationType" + }, + "ObservabilityNewrelicDestinationConfigRegion": { + "type": "string", + "enum": [ + "us", + "eu" + ], + "default": "us", + "title": "ObservabilityNewrelicDestinationConfigRegion" + }, + "ObservabilityNewrelicDestinationConfig": { + "type": "object", + "properties": { + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "licenseKey": { + "type": "string" + }, + "region": { + "$ref": "#/components/schemas/ObservabilityNewrelicDestinationConfigRegion" + } + }, + "required": [ + "licenseKey" + ], + "title": "ObservabilityNewrelicDestinationConfig" + }, + "ObservabilityNewrelicDestinationType": { + "type": "string", + "enum": [ + "newrelic" + ], + "title": "ObservabilityNewrelicDestinationType" + }, + "ObservabilityOpikDestinationConfig": { + "type": "object", + "properties": { + "apiKey": { + "type": "string" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "projectName": { + "type": "string" + }, + "workspace": { + "type": "string" + } + }, + "required": [ + "apiKey", + "projectName", + "workspace" + ], + "title": "ObservabilityOpikDestinationConfig" + }, + "ObservabilityOpikDestinationType": { + "type": "string", + "enum": [ + "opik" + ], + "title": "ObservabilityOpikDestinationType" + }, + "ObservabilityOtelCollectorDestinationConfig": { + "type": "object", + "properties": { + "endpoint": { + "type": "string" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers as a JSON object. For Axiom, use {\"Authorization\": \"Bearer xaat-xxx\", \"X-Axiom-Dataset\": \"your-dataset\"}" + } + }, + "required": [ + "endpoint" + ], + "title": "ObservabilityOtelCollectorDestinationConfig" + }, + "ObservabilityOtelCollectorDestinationType": { + "type": "string", + "enum": [ + "otel-collector" + ], + "title": "ObservabilityOtelCollectorDestinationType" + }, + "ObservabilityPosthogDestinationConfig": { + "type": "object", + "properties": { + "apiKey": { + "type": "string" + }, + "endpoint": { + "type": "string", + "default": "https://us.i.posthog.com" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + } + }, + "required": [ + "apiKey" + ], + "title": "ObservabilityPosthogDestinationConfig" + }, + "ObservabilityPosthogDestinationType": { + "type": "string", + "enum": [ + "posthog" + ], + "title": "ObservabilityPosthogDestinationType" + }, + "ObservabilityRampDestinationConfig": { + "type": "object", + "properties": { + "apiKey": { + "type": "string", + "description": "Generate this in your Ramp integration settings." + }, + "baseUrl": { + "type": "string", + "default": "https://api.ramp.com/developer/v1/ai-usage/openrouter" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to Ramp." + } + }, + "required": [ + "apiKey" + ], + "title": "ObservabilityRampDestinationConfig" + }, + "ObservabilityRampDestinationType": { + "type": "string", + "enum": [ + "ramp" + ], + "title": "ObservabilityRampDestinationType" + }, + "ObservabilityS3DestinationConfig": { + "type": "object", + "properties": { + "accessKeyId": { + "type": "string" + }, + "bucketName": { + "type": "string" + }, + "endpoint": { + "type": "string", + "format": "uri", + "description": "Only for S3-compatible services like Cloudflare R2 (https://account-id.r2.cloudflarestorage.com) or MinIO. Leave blank for standard AWS S3." + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "pathTemplate": { + "type": "string", + "default": "{prefix}/{date}", + "description": "Template for S3 object path. The filename ({traceId}-{timestamp}.json) is automatically appended. Available variables: {prefix}, {date}, {year}, {month}, {day}, {apiKeyName}" + }, + "prefix": { + "type": "string", + "default": "openrouter-traces" + }, + "region": { + "type": "string" + }, + "secretAccessKey": { + "type": "string" + }, + "sessionToken": { + "type": "string" + } + }, + "required": [ + "accessKeyId", + "bucketName", + "secretAccessKey" + ], + "title": "ObservabilityS3DestinationConfig" + }, + "ObservabilityS3DestinationType": { + "type": "string", + "enum": [ + "s3" + ], + "title": "ObservabilityS3DestinationType" + }, + "ObservabilitySentryDestinationConfig": { + "type": "object", + "properties": { + "dsn": { + "type": "string" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "otlpEndpoint": { + "type": "string" + } + }, + "required": [ + "dsn", + "otlpEndpoint" + ], + "title": "ObservabilitySentryDestinationConfig" + }, + "ObservabilitySentryDestinationType": { + "type": "string", + "enum": [ + "sentry" + ], + "title": "ObservabilitySentryDestinationType" + }, + "ObservabilitySnowflakeDestinationConfig": { + "type": "object", + "properties": { + "account": { + "type": "string" + }, + "database": { + "type": "string", + "default": "SNOWFLAKE_LEARNING_DB" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "schema": { + "type": "string", + "default": "PUBLIC" + }, + "table": { + "type": "string", + "default": "OPENROUTER_TRACES" + }, + "token": { + "type": "string" + }, + "warehouse": { + "type": "string", + "default": "COMPUTE_WH" + } + }, + "required": [ + "account", + "token" + ], + "title": "ObservabilitySnowflakeDestinationConfig" + }, + "ObservabilitySnowflakeDestinationType": { + "type": "string", + "enum": [ + "snowflake" + ], + "title": "ObservabilitySnowflakeDestinationType" + }, + "ObservabilityWeaveDestinationConfig": { + "type": "object", + "properties": { + "apiKey": { + "type": "string" + }, + "baseUrl": { + "type": "string", + "default": "https://trace.wandb.ai" + }, + "entity": { + "type": "string" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "project": { + "type": "string" + } + }, + "required": [ + "apiKey", + "entity", + "project" + ], + "title": "ObservabilityWeaveDestinationConfig" + }, + "ObservabilityWeaveDestinationType": { + "type": "string", + "enum": [ + "weave" + ], + "title": "ObservabilityWeaveDestinationType" + }, + "ObservabilityWebhookDestinationConfigMethod": { + "type": "string", + "enum": [ + "POST", + "PUT" + ], + "default": "POST", + "title": "ObservabilityWebhookDestinationConfigMethod" + }, + "ObservabilityWebhookDestinationConfig": { + "type": "object", + "properties": { + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "method": { + "$ref": "#/components/schemas/ObservabilityWebhookDestinationConfigMethod" + }, + "url": { + "type": "string" + } + }, + "required": [ + "url" + ], + "title": "ObservabilityWebhookDestinationConfig" + }, + "ObservabilityWebhookDestinationType": { + "type": "string", + "enum": [ + "webhook" + ], + "title": "ObservabilityWebhookDestinationType" + }, + "ObservabilityDestination": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "arize" + ], + "description": "Discriminator value: arize" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityDestinationDiscriminatorMappingArizeConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "arize variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "braintrust" + ], + "description": "Discriminator value: braintrust" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityDestinationDiscriminatorMappingBraintrustConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "braintrust variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "clickhouse" + ], + "description": "Discriminator value: clickhouse" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityDestinationDiscriminatorMappingClickhouseConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "clickhouse variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "datadog" + ], + "description": "Discriminator value: datadog" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityDestinationDiscriminatorMappingDatadogConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "datadog variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityGrafanaDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityGrafanaDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "grafana variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityLangfuseDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityLangfuseDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "langfuse variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityLangsmithDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityLangsmithDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "langsmith variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityNewrelicDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityNewrelicDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "newrelic variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityOpikDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityOpikDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "opik variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityOtelCollectorDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityOtelCollectorDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "otel-collector variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityPosthogDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityPosthogDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "posthog variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityRampDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityRampDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "ramp variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityS3DestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityS3DestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "s3 variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilitySentryDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilitySentryDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "sentry variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilitySnowflakeDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilitySnowflakeDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "snowflake variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityWeaveDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityWeaveDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "weave variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityWebhookDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityWebhookDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "webhook variant" + } + ], + "discriminator": { + "propertyName": "type" + }, + "title": "ObservabilityDestination" + }, + "ListObservabilityDestinationsResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ObservabilityDestination" + }, + "description": "List of observability destinations." + }, + "total_count": { + "type": "integer", + "description": "Total number of destinations matching the filters." + } + }, + "required": [ + "data", + "total_count" + ], + "title": "ListObservabilityDestinationsResponse" + }, + "GetObservabilityDestinationResponseData": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "arize" + ], + "description": "Discriminator value: arize" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityDestinationDiscriminatorMappingArizeConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "arize variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "braintrust" + ], + "description": "Discriminator value: braintrust" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityDestinationDiscriminatorMappingBraintrustConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "braintrust variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "clickhouse" + ], + "description": "Discriminator value: clickhouse" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityDestinationDiscriminatorMappingClickhouseConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "clickhouse variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "datadog" + ], + "description": "Discriminator value: datadog" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityDestinationDiscriminatorMappingDatadogConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "datadog variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityGrafanaDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityGrafanaDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "grafana variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityLangfuseDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityLangfuseDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "langfuse variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityLangsmithDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityLangsmithDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "langsmith variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityNewrelicDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityNewrelicDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "newrelic variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityOpikDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityOpikDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "opik variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityOtelCollectorDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityOtelCollectorDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "otel-collector variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityPosthogDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityPosthogDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "posthog variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityRampDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityRampDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "ramp variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityS3DestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityS3DestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "s3 variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilitySentryDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilitySentryDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "sentry variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilitySnowflakeDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilitySnowflakeDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "snowflake variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityWeaveDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityWeaveDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "weave variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ObservabilityWebhookDestinationType" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/ObservabilityWebhookDestinationConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "webhook variant" + } + ], + "discriminator": { + "propertyName": "type" + }, + "description": "The observability destination.", + "title": "GetObservabilityDestinationResponseData" + }, + "GetObservabilityDestinationResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/GetObservabilityDestinationResponseData" + } + }, + "required": [ + "data" + ], + "title": "GetObservabilityDestinationResponse" + }, "OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole": { "type": "string", "enum": [