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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/// <summary>
Expand Down