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 @@ -42,5 +42,6 @@ public CancelAllPendingGenerationsResponse(
public CancelAllPendingGenerationsResponse()
{
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

}
}
27 changes: 26 additions & 1 deletion src/libs/BlockadeLabs/Generated/BlockadeLabs.OptionsSupport.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,24 @@ public sealed class AutoSDKAuthorizationProviderHook : global::BlockadeLabs.Auto
{
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::BlockadeLabs.AutoSDKAuthorizationValue>? Authorizations { get; set; }
}

/// <summary>
Expand Down