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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,6 @@ public CreatePredictionRequest(
public CreatePredictionRequest()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ public sealed partial class CreatePredictionRequestInput
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@ public CreatePredictionResponse(
public CreatePredictionResponse()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/EachLabs/Generated/EachLabs.Models.Error.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ public Error(
public Error()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,6 @@ public ListWebhooksResponse(
public ListWebhooksResponse()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/EachLabs/Generated/EachLabs.Models.Model.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,6 @@ public Model(
public Model()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,6 @@ public ModelDetail(
public ModelDetail()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ public sealed partial class ModelDetailRequestSchema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ public sealed partial class ModelRequestSchema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,6 @@ public Prediction(
public Prediction()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ public sealed partial class PredictionInput
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ public PredictionMetrics(
public PredictionMetrics()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public sealed partial class PredictionOutput
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ public PredictionUrls(
public PredictionUrls()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/EachLabs/Generated/EachLabs.Models.Webhook.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,6 @@ public Webhook(
public Webhook()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,6 @@ public WebhookAttempt(
public WebhookAttempt()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ public sealed partial class WebhookHeaders
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ public bool TryPickWebhook(
return IsWebhook;
}

/// <summary>
///
/// </summary>
public global::EachLabs.Webhook PickWebhook() => IsWebhook
? Webhook!
: throw new global::System.InvalidOperationException($"Expected union variant 'Webhook' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -68,6 +75,13 @@ public bool TryPickWebhookWithAttemptsVariant2(
value = WebhookWithAttemptsVariant2;
return IsWebhookWithAttemptsVariant2;
}

/// <summary>
///
/// </summary>
public global::EachLabs.WebhookWithAttemptsVariant2 PickWebhookWithAttemptsVariant2() => IsWebhookWithAttemptsVariant2
? WebhookWithAttemptsVariant2!
: throw new global::System.InvalidOperationException($"Expected union variant 'WebhookWithAttemptsVariant2' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ public WebhookWithAttemptsVariant2(
public WebhookWithAttemptsVariant2()
{
}

}
}
21 changes: 21 additions & 0 deletions src/libs/EachLabs/Generated/EachLabs.OneOf.3.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ public bool TryPickValue1(
return IsValue1;
}

/// <summary>
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -68,6 +75,13 @@ public bool TryPickValue2(
return IsValue2;
}

/// <summary>
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -97,6 +111,13 @@ public bool TryPickValue3(
value = Value3;
return IsValue3;
}

/// <summary>
///
/// </summary>
public T3 PickValue3() => IsValue3
? Value3!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
27 changes: 26 additions & 1 deletion src/libs/EachLabs/Generated/EachLabs.OptionsSupport.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -237,6 +253,15 @@ public sealed class AutoSDKRequestOptions
/// Overrides response buffering for this request when set.
/// </summary>
public bool? ReadResponseAsString { get; set; }

/// <summary>
/// Optional per-request authorization values. When non-empty, the built-in
/// <see cref="AutoSDKAuthorizationProviderHook"/> applies these instead of consulting
/// <see cref="AutoSDKClientOptions.AuthorizationProvider"/> 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.
/// </summary>
public global::System.Collections.Generic.IReadOnlyList<global::EachLabs.AutoSDKAuthorizationValue>? Authorizations { get; set; }
}

/// <summary>
Expand Down