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
1 change: 1 addition & 0 deletions src/libs/Recraft/Generated/Recraft.Models.BasicStyle.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,6 @@ public BasicStyle(
public BasicStyle()
{
}

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

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

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

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

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public sealed partial class DeleteStyleResponse
/// </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 @@ -99,5 +99,6 @@ public EraseRegionRequest(
public EraseRegionRequest()
{
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/// <summary>
Expand Down