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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/// <summary>
Expand Down