diff --git a/src/libs/EachLabs/Generated/EachLabs.Models.CreatePredictionRequest.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.CreatePredictionRequest.g.cs index 2ea3bdd..d280d88 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.CreatePredictionRequest.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.CreatePredictionRequest.g.cs @@ -99,5 +99,6 @@ public CreatePredictionRequest( public CreatePredictionRequest() { } + } } \ No newline at end of file diff --git a/src/libs/EachLabs/Generated/EachLabs.Models.CreatePredictionRequestInput.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.CreatePredictionRequestInput.g.cs index c396768..75e3542 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.CreatePredictionRequestInput.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.CreatePredictionRequestInput.g.cs @@ -15,5 +15,6 @@ public sealed partial class CreatePredictionRequestInput /// [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/EachLabs/Generated/EachLabs.Models.CreatePredictionResponse.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.CreatePredictionResponse.g.cs index 71c26a1..778c06c 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.CreatePredictionResponse.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.CreatePredictionResponse.g.cs @@ -72,5 +72,6 @@ public CreatePredictionResponse( public CreatePredictionResponse() { } + } } \ No newline at end of file diff --git a/src/libs/EachLabs/Generated/EachLabs.Models.Error.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.Error.g.cs index 62416e9..7f85032 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.Error.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.Error.g.cs @@ -42,5 +42,6 @@ public Error( public Error() { } + } } \ No newline at end of file diff --git a/src/libs/EachLabs/Generated/EachLabs.Models.ListWebhooksResponse.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.ListWebhooksResponse.g.cs index c75c054..d2f036a 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.ListWebhooksResponse.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.ListWebhooksResponse.g.cs @@ -70,5 +70,6 @@ public ListWebhooksResponse( public ListWebhooksResponse() { } + } } \ No newline at end of file diff --git a/src/libs/EachLabs/Generated/EachLabs.Models.Model.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.Model.g.cs index 325da0e..a82f9f9 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.Model.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.Model.g.cs @@ -93,5 +93,6 @@ public Model( public Model() { } + } } \ No newline at end of file diff --git a/src/libs/EachLabs/Generated/EachLabs.Models.ModelDetail.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.ModelDetail.g.cs index b85492c..11aa628 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.ModelDetail.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.ModelDetail.g.cs @@ -93,5 +93,6 @@ public ModelDetail( public ModelDetail() { } + } } \ No newline at end of file diff --git a/src/libs/EachLabs/Generated/EachLabs.Models.ModelDetailRequestSchema.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.ModelDetailRequestSchema.g.cs index 17b6998..14efebc 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.ModelDetailRequestSchema.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.ModelDetailRequestSchema.g.cs @@ -16,5 +16,6 @@ public sealed partial class ModelDetailRequestSchema /// [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/EachLabs/Generated/EachLabs.Models.ModelRequestSchema.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.ModelRequestSchema.g.cs index a83a81b..5f68942 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.ModelRequestSchema.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.ModelRequestSchema.g.cs @@ -16,5 +16,6 @@ public sealed partial class ModelRequestSchema /// [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/EachLabs/Generated/EachLabs.Models.Prediction.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.Prediction.g.cs index af86902..85d9541 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.Prediction.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.Prediction.g.cs @@ -124,5 +124,6 @@ public Prediction( public Prediction() { } + } } \ No newline at end of file diff --git a/src/libs/EachLabs/Generated/EachLabs.Models.PredictionInput.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.PredictionInput.g.cs index c0cfcd7..d2d9adf 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.PredictionInput.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.PredictionInput.g.cs @@ -15,5 +15,6 @@ public sealed partial class PredictionInput /// [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/EachLabs/Generated/EachLabs.Models.PredictionMetrics.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.PredictionMetrics.g.cs index ae0f2c7..f2afda7 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.PredictionMetrics.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.PredictionMetrics.g.cs @@ -58,5 +58,6 @@ public PredictionMetrics( public PredictionMetrics() { } + } } \ No newline at end of file diff --git a/src/libs/EachLabs/Generated/EachLabs.Models.PredictionOutput.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.PredictionOutput.g.cs index 0f526ba..271f1c3 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.PredictionOutput.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.PredictionOutput.g.cs @@ -14,5 +14,6 @@ public sealed partial class PredictionOutput /// [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/EachLabs/Generated/EachLabs.Models.PredictionUrls.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.PredictionUrls.g.cs index 80db52f..80b4593 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.PredictionUrls.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.PredictionUrls.g.cs @@ -58,5 +58,6 @@ public PredictionUrls( public PredictionUrls() { } + } } \ No newline at end of file diff --git a/src/libs/EachLabs/Generated/EachLabs.Models.Webhook.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.Webhook.g.cs index 16de1d2..74111dd 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.Webhook.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.Webhook.g.cs @@ -118,5 +118,6 @@ public Webhook( public Webhook() { } + } } \ No newline at end of file diff --git a/src/libs/EachLabs/Generated/EachLabs.Models.WebhookAttempt.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.WebhookAttempt.g.cs index 4a129e8..f4e2efc 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.WebhookAttempt.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.WebhookAttempt.g.cs @@ -103,5 +103,6 @@ public WebhookAttempt( public WebhookAttempt() { } + } } \ No newline at end of file diff --git a/src/libs/EachLabs/Generated/EachLabs.Models.WebhookHeaders.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.WebhookHeaders.g.cs index 551a391..702ab5d 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.WebhookHeaders.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.WebhookHeaders.g.cs @@ -15,5 +15,6 @@ public sealed partial class WebhookHeaders /// [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/EachLabs/Generated/EachLabs.Models.WebhookWithAttempts.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.WebhookWithAttempts.g.cs index c0aee41..3f74400 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.WebhookWithAttempts.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.WebhookWithAttempts.g.cs @@ -39,6 +39,13 @@ public bool TryPickWebhook( return IsWebhook; } + /// + /// + /// + public global::EachLabs.Webhook PickWebhook() => IsWebhook + ? Webhook! + : throw new global::System.InvalidOperationException($"Expected union variant 'Webhook' but the value was {ToString()}."); + /// /// /// @@ -68,6 +75,13 @@ public bool TryPickWebhookWithAttemptsVariant2( value = WebhookWithAttemptsVariant2; return IsWebhookWithAttemptsVariant2; } + + /// + /// + /// + public global::EachLabs.WebhookWithAttemptsVariant2 PickWebhookWithAttemptsVariant2() => IsWebhookWithAttemptsVariant2 + ? WebhookWithAttemptsVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'WebhookWithAttemptsVariant2' but the value was {ToString()}."); /// /// /// diff --git a/src/libs/EachLabs/Generated/EachLabs.Models.WebhookWithAttemptsVariant2.g.cs b/src/libs/EachLabs/Generated/EachLabs.Models.WebhookWithAttemptsVariant2.g.cs index af2734f..73f74c9 100644 --- a/src/libs/EachLabs/Generated/EachLabs.Models.WebhookWithAttemptsVariant2.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.Models.WebhookWithAttemptsVariant2.g.cs @@ -41,5 +41,6 @@ public WebhookWithAttemptsVariant2( public WebhookWithAttemptsVariant2() { } + } } \ No newline at end of file diff --git a/src/libs/EachLabs/Generated/EachLabs.OneOf.3.g.cs b/src/libs/EachLabs/Generated/EachLabs.OneOf.3.g.cs index 52192eb..e4d1865 100644 --- a/src/libs/EachLabs/Generated/EachLabs.OneOf.3.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.OneOf.3.g.cs @@ -38,6 +38,13 @@ public bool TryPickValue1( return IsValue1; } + /// + /// + /// + public T1 PickValue1() => IsValue1 + ? Value1! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); + /// /// /// @@ -68,6 +75,13 @@ public bool TryPickValue2( return IsValue2; } + /// + /// + /// + public T2 PickValue2() => IsValue2 + ? Value2! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); + /// /// /// @@ -97,6 +111,13 @@ public bool TryPickValue3( value = Value3; return IsValue3; } + + /// + /// + /// + public T3 PickValue3() => IsValue3 + ? Value3! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// /// /// diff --git a/src/libs/EachLabs/Generated/EachLabs.OptionsSupport.g.cs b/src/libs/EachLabs/Generated/EachLabs.OptionsSupport.g.cs index fb3e98b..24a8a49 100644 --- a/src/libs/EachLabs/Generated/EachLabs.OptionsSupport.g.cs +++ b/src/libs/EachLabs/Generated/EachLabs.OptionsSupport.g.cs @@ -163,8 +163,24 @@ public sealed class AutoSDKAuthorizationProviderHook : global::EachLabs.AutoSDKH { context = context ?? throw new global::System.ArgumentNullException(nameof(context)); + if (context.Request == null) + { + return; + } + + var perRequest = context.RequestOptions?.Authorizations; + if (perRequest != null && perRequest.Count > 0) + { + for (var index = 0; index < perRequest.Count; index++) + { + ApplyAuthorization(context.Request, perRequest[index]); + } + + return; + } + var provider = context.ClientOptions?.AuthorizationProvider; - if (provider == null || context.Request == null) + if (provider == null) { return; } @@ -237,6 +253,15 @@ public sealed class AutoSDKRequestOptions /// Overrides response buffering for this request when set. /// public bool? ReadResponseAsString { get; set; } + + /// + /// Optional per-request authorization values. When non-empty, the built-in + /// applies these instead of consulting + /// for this request only. + /// Useful for multi-tenant routing or "act-as" admin tooling that needs a different + /// credential per call without mutating shared client state. + /// + public global::System.Collections.Generic.IReadOnlyList? Authorizations { get; set; } } ///