diff --git a/src/libs/HeyGen/Generated/HeyGen.AssetsClient.V1AssetUpload.g.cs b/src/libs/HeyGen/Generated/HeyGen.AssetsClient.V1AssetUpload.g.cs
index 32580f3..f0cc3fe 100644
--- a/src/libs/HeyGen/Generated/HeyGen.AssetsClient.V1AssetUpload.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.AssetsClient.V1AssetUpload.g.cs
@@ -134,7 +134,7 @@ await V1AssetUploadAsResponseAsync(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
- }
+ }
}
global::HeyGen.AutoSDKRequestOptionsSupport.ApplyHeaders(
request: __httpRequest,
@@ -350,17 +350,15 @@ await V1AssetUploadAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::HeyGen.ApiException(
+ throw global::HeyGen.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -388,17 +386,15 @@ await V1AssetUploadAsResponseAsync(
{
}
- throw new global::HeyGen.ApiException(
+ throw global::HeyGen.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.AssetsClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.AssetsClient.g.cs
index 76dc45d..827bad7 100644
--- a/src/libs/HeyGen/Generated/HeyGen.AssetsClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.AssetsClient.g.cs
@@ -12,7 +12,7 @@ namespace HeyGen
public sealed partial class AssetsClient : global::HeyGen.IAssetsClient, global::System.IDisposable
{
///
- ///
+ ///
///
public const string DefaultBaseUrl = "https://api.heygen.com/";
@@ -38,10 +38,17 @@ public sealed partial class AssetsClient : global::HeyGen.IAssetsClient, global:
internal global::HeyGen.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::HeyGen.AutoSDKServerConfiguration();
+
+ internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::HeyGen.SourceGenerationContext.Default);
+
///
- ///
+ ///
///
- public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::HeyGen.SourceGenerationContext.Default;
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext
+ {
+ get => JsonSerializerContextProvider.Value;
+ set => JsonSerializerContextProvider = new(() => value);
+ }
diff --git a/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.V1VideoDelete.g.cs b/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.V1VideoDelete.g.cs
index fcd5df8..b003a6d 100644
--- a/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.V1VideoDelete.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.V1VideoDelete.g.cs
@@ -149,7 +149,7 @@ await V1VideoDeleteAsResponseAsync(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
- }
+ }
}
global::HeyGen.AutoSDKRequestOptionsSupport.ApplyHeaders(
request: __httpRequest,
@@ -366,17 +366,15 @@ await V1VideoDeleteAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::HeyGen.ApiException(
+ throw global::HeyGen.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -404,17 +402,15 @@ await V1VideoDeleteAsResponseAsync(
{
}
- throw new global::HeyGen.ApiException(
+ throw global::HeyGen.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.V2VideoGenerate.g.cs b/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.V2VideoGenerate.g.cs
index 861799b..620aa0d 100644
--- a/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.V2VideoGenerate.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.V2VideoGenerate.g.cs
@@ -149,7 +149,7 @@ await V2VideoGenerateAsResponseAsync(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
- }
+ }
}
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
@@ -372,17 +372,15 @@ await V2VideoGenerateAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::HeyGen.ApiException(
+ throw global::HeyGen.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -410,17 +408,15 @@ await V2VideoGenerateAsResponseAsync(
{
}
- throw new global::HeyGen.ApiException(
+ throw global::HeyGen.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.g.cs
index 74953c0..938748e 100644
--- a/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.g.cs
@@ -12,7 +12,7 @@ namespace HeyGen
public sealed partial class CreateVideoApiClient : global::HeyGen.ICreateVideoApiClient, global::System.IDisposable
{
///
- ///
+ ///
///
public const string DefaultBaseUrl = "https://api.heygen.com/";
@@ -38,10 +38,17 @@ public sealed partial class CreateVideoApiClient : global::HeyGen.ICreateVideoAp
internal global::HeyGen.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::HeyGen.AutoSDKServerConfiguration();
+
+ internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::HeyGen.SourceGenerationContext.Default);
+
///
- ///
+ ///
///
- public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::HeyGen.SourceGenerationContext.Default;
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext
+ {
+ get => JsonSerializerContextProvider.Value;
+ set => JsonSerializerContextProvider = new(() => value);
+ }
diff --git a/src/libs/HeyGen/Generated/HeyGen.Exceptions.g.cs b/src/libs/HeyGen/Generated/HeyGen.Exceptions.g.cs
index 296adc5..5a8c21e 100644
--- a/src/libs/HeyGen/Generated/HeyGen.Exceptions.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.Exceptions.g.cs
@@ -12,16 +12,19 @@ public partial class ApiException : global::System.Exception
/// The HTTP status code of the response.
///
public global::System.Net.HttpStatusCode StatusCode { get; }
+
///
/// The response body as a string, or null if the body could not be read.
/// This is always populated for error responses regardless of the ReadResponseAsString setting.
/// For success-path failures (e.g. deserialization errors), the client attempts a best-effort read.
///
public string? ResponseBody { get; set; }
+
///
/// The response headers.
///
public global::System.Collections.Generic.Dictionary>? ResponseHeaders { get; set; }
+
///
/// Initializes a new instance of the class.
///
@@ -49,6 +52,103 @@ public ApiException(string message, global::System.Exception? innerException, gl
{
StatusCode = statusCode;
}
+
+ ///
+ /// Constructs an instance whose runtime type matches the response status code when the typed exception hierarchy is enabled. Always returns a plain when the hierarchy is disabled.
+ ///
+ /// The HTTP status code of the response.
+ /// The error message.
+ /// An inner exception, when one is available.
+ /// The response headers; consulted for 429 Retry-After parsing when present.
+ public static global::HeyGen.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException = null,
+ global::System.Collections.Generic.IDictionary>? responseHeaders = null)
+ {
+ return new global::HeyGen.ApiException(message, innerException, statusCode);
+ }
+
+ ///
+ /// Convenience overload that constructs an with response body and headers populated.
+ ///
+ public static global::HeyGen.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException,
+ string? responseBody,
+ global::System.Collections.Generic.Dictionary>? responseHeaders)
+ {
+ var exception = global::HeyGen.ApiException.Create(statusCode, message, innerException, responseHeaders);
+ exception.ResponseBody = responseBody;
+ exception.ResponseHeaders = responseHeaders;
+ return exception;
+ }
+
+ ///
+ /// Parses a Retry-After response header (delta-seconds or HTTP-date) into a .
+ /// Returns null when the header is missing or unparseable. Public so consumer code that observes
+ /// directly can recover the value without re-implementing the parser.
+ ///
+ public static global::System.TimeSpan? TryParseRetryAfter(
+ global::System.Collections.Generic.IDictionary>? headers)
+ {
+ if (headers == null)
+ {
+ return null;
+ }
+
+ global::System.Collections.Generic.IEnumerable? values = null;
+ foreach (var entry in headers)
+ {
+ if (string.Equals(entry.Key, "Retry-After", global::System.StringComparison.OrdinalIgnoreCase))
+ {
+ values = entry.Value;
+ break;
+ }
+ }
+
+ if (values == null)
+ {
+ return null;
+ }
+
+ string? raw = null;
+ foreach (var value in values)
+ {
+ if (!string.IsNullOrWhiteSpace(value))
+ {
+ raw = value.Trim();
+ break;
+ }
+ }
+
+ if (string.IsNullOrEmpty(raw))
+ {
+ return null;
+ }
+
+ if (int.TryParse(
+ raw,
+ global::System.Globalization.NumberStyles.Integer,
+ global::System.Globalization.CultureInfo.InvariantCulture,
+ out var seconds) && seconds >= 0)
+ {
+ return global::System.TimeSpan.FromSeconds(seconds);
+ }
+
+ if (global::System.DateTimeOffset.TryParse(
+ raw,
+ global::System.Globalization.CultureInfo.InvariantCulture,
+ global::System.Globalization.DateTimeStyles.AssumeUniversal | global::System.Globalization.DateTimeStyles.AdjustToUniversal,
+ out var when))
+ {
+ var delta = when - global::System.DateTimeOffset.UtcNow;
+ return delta > global::System.TimeSpan.Zero ? delta : global::System.TimeSpan.Zero;
+ }
+
+ return null;
+ }
}
///
@@ -88,5 +188,39 @@ public ApiException(string message, global::System.Net.HttpStatusCode statusCode
public ApiException(string message, global::System.Exception? innerException, global::System.Net.HttpStatusCode statusCode) : base(message, innerException, statusCode)
{
}
+
+ ///
+ /// Constructs an whose runtime type matches the response status code when the typed exception hierarchy is enabled.
+ ///
+ /// The HTTP status code of the response.
+ /// The error message.
+ /// An inner exception, when one is available.
+ /// The response headers; consulted for 429 Retry-After parsing when present.
+ public static new global::HeyGen.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException = null,
+ global::System.Collections.Generic.IDictionary>? responseHeaders = null)
+ {
+ return new global::HeyGen.ApiException(message, innerException, statusCode);
+ }
+
+ ///
+ /// Convenience overload that constructs an with response body, object, and headers populated.
+ ///
+ public static global::HeyGen.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException,
+ string? responseBody,
+ T? responseObject,
+ global::System.Collections.Generic.Dictionary>? responseHeaders)
+ {
+ var exception = global::HeyGen.ApiException.Create(statusCode, message, innerException, responseHeaders);
+ exception.ResponseBody = responseBody;
+ exception.ResponseObject = responseObject;
+ exception.ResponseHeaders = responseHeaders;
+ return exception;
+ }
}
}
\ No newline at end of file
diff --git a/src/libs/HeyGen/Generated/HeyGen.HeyGenClient.V1VideoStatusGet.g.cs b/src/libs/HeyGen/Generated/HeyGen.HeyGenClient.V1VideoStatusGet.g.cs
index ab38fd0..2fcce94 100644
--- a/src/libs/HeyGen/Generated/HeyGen.HeyGenClient.V1VideoStatusGet.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.HeyGenClient.V1VideoStatusGet.g.cs
@@ -149,7 +149,7 @@ await V1VideoStatusGetAsResponseAsync(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
- }
+ }
}
global::HeyGen.AutoSDKRequestOptionsSupport.ApplyHeaders(
request: __httpRequest,
@@ -366,17 +366,15 @@ await V1VideoStatusGetAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::HeyGen.ApiException(
+ throw global::HeyGen.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -404,17 +402,15 @@ await V1VideoStatusGetAsResponseAsync(
{
}
- throw new global::HeyGen.ApiException(
+ throw global::HeyGen.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.HeyGenClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.HeyGenClient.g.cs
index 1fe55c8..2dd3c70 100644
--- a/src/libs/HeyGen/Generated/HeyGen.HeyGenClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.HeyGenClient.g.cs
@@ -32,7 +32,7 @@ namespace HeyGen
public sealed partial class HeyGenClient : global::HeyGen.IHeyGenClient, global::System.IDisposable
{
///
- ///
+ ///
///
public const string DefaultBaseUrl = "https://api.heygen.com/";
@@ -58,10 +58,17 @@ public sealed partial class HeyGenClient : global::HeyGen.IHeyGenClient, global:
internal global::HeyGen.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::HeyGen.AutoSDKServerConfiguration();
+
+ internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::HeyGen.SourceGenerationContext.Default);
+
///
- ///
+ ///
///
- public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::HeyGen.SourceGenerationContext.Default;
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext
+ {
+ get => JsonSerializerContextProvider.Value;
+ set => JsonSerializerContextProvider = new(() => value);
+ }
///
@@ -71,7 +78,7 @@ public sealed partial class HeyGenClient : global::HeyGen.IHeyGenClient, global:
public AssetsClient Assets => new AssetsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerContext = JsonSerializerContext,
+ JsonSerializerContextProvider = JsonSerializerContextProvider,
AutoSDKServerConfiguration = AutoSDKServerConfiguration,
};
@@ -82,17 +89,17 @@ public sealed partial class HeyGenClient : global::HeyGen.IHeyGenClient, global:
public CreateVideoApiClient CreateVideoApi => new CreateVideoApiClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerContext = JsonSerializerContext,
+ JsonSerializerContextProvider = JsonSerializerContextProvider,
AutoSDKServerConfiguration = AutoSDKServerConfiguration,
};
///
- ///
+ ///
///
public ListsClient Lists => new ListsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerContext = JsonSerializerContext,
+ JsonSerializerContextProvider = JsonSerializerContextProvider,
AutoSDKServerConfiguration = AutoSDKServerConfiguration,
};
@@ -104,7 +111,7 @@ public sealed partial class HeyGenClient : global::HeyGen.IHeyGenClient, global:
public PersonalizedVideoClient PersonalizedVideo => new PersonalizedVideoClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerContext = JsonSerializerContext,
+ JsonSerializerContextProvider = JsonSerializerContextProvider,
AutoSDKServerConfiguration = AutoSDKServerConfiguration,
};
@@ -115,7 +122,7 @@ public sealed partial class HeyGenClient : global::HeyGen.IHeyGenClient, global:
public StreamingApiClient StreamingApi => new StreamingApiClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerContext = JsonSerializerContext,
+ JsonSerializerContextProvider = JsonSerializerContextProvider,
AutoSDKServerConfiguration = AutoSDKServerConfiguration,
};
@@ -126,7 +133,7 @@ public sealed partial class HeyGenClient : global::HeyGen.IHeyGenClient, global:
public TalkingPhotoClient TalkingPhoto => new TalkingPhotoClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerContext = JsonSerializerContext,
+ JsonSerializerContextProvider = JsonSerializerContextProvider,
AutoSDKServerConfiguration = AutoSDKServerConfiguration,
};
@@ -143,7 +150,7 @@ public sealed partial class HeyGenClient : global::HeyGen.IHeyGenClient, global:
public TemplateApiClient TemplateApi => new TemplateApiClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerContext = JsonSerializerContext,
+ JsonSerializerContextProvider = JsonSerializerContextProvider,
AutoSDKServerConfiguration = AutoSDKServerConfiguration,
};
@@ -154,7 +161,7 @@ public sealed partial class HeyGenClient : global::HeyGen.IHeyGenClient, global:
public UserClient User => new UserClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerContext = JsonSerializerContext,
+ JsonSerializerContextProvider = JsonSerializerContextProvider,
AutoSDKServerConfiguration = AutoSDKServerConfiguration,
};
@@ -165,7 +172,7 @@ public sealed partial class HeyGenClient : global::HeyGen.IHeyGenClient, global:
public VideoTranslateApiClient VideoTranslateApi => new VideoTranslateApiClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerContext = JsonSerializerContext,
+ JsonSerializerContextProvider = JsonSerializerContextProvider,
AutoSDKServerConfiguration = AutoSDKServerConfiguration,
};
@@ -176,7 +183,7 @@ public sealed partial class HeyGenClient : global::HeyGen.IHeyGenClient, global:
public WebhooksClient Webhooks => new WebhooksClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
- JsonSerializerContext = JsonSerializerContext,
+ JsonSerializerContextProvider = JsonSerializerContextProvider,
AutoSDKServerConfiguration = AutoSDKServerConfiguration,
};
diff --git a/src/libs/HeyGen/Generated/HeyGen.IAssetsClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.IAssetsClient.g.cs
index b57727a..a9a4f65 100644
--- a/src/libs/HeyGen/Generated/HeyGen.IAssetsClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.IAssetsClient.g.cs
@@ -62,7 +62,7 @@ public partial interface IAssetsClient : global::System.IDisposable
///
- ///
+ ///
///
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.ICreateVideoApiClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.ICreateVideoApiClient.g.cs
index 8502122..b53ab09 100644
--- a/src/libs/HeyGen/Generated/HeyGen.ICreateVideoApiClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.ICreateVideoApiClient.g.cs
@@ -62,7 +62,7 @@ public partial interface ICreateVideoApiClient : global::System.IDisposable
///
- ///
+ ///
///
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.IHeyGenClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.IHeyGenClient.g.cs
index 4fd8d8c..8fb8dac 100644
--- a/src/libs/HeyGen/Generated/HeyGen.IHeyGenClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.IHeyGenClient.g.cs
@@ -82,7 +82,7 @@ public partial interface IHeyGenClient : global::System.IDisposable
///
- ///
+ ///
///
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
@@ -100,7 +100,7 @@ public partial interface IHeyGenClient : global::System.IDisposable
public CreateVideoApiClient CreateVideoApi { get; }
///
- ///
+ ///
///
public ListsClient Lists { get; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.IListsClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.IListsClient.g.cs
index 59fce84..0a63bd6 100644
--- a/src/libs/HeyGen/Generated/HeyGen.IListsClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.IListsClient.g.cs
@@ -60,7 +60,7 @@ public partial interface IListsClient : global::System.IDisposable
///
- ///
+ ///
///
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.IPersonalizedVideoClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.IPersonalizedVideoClient.g.cs
index bfde304..bb87ecf 100644
--- a/src/libs/HeyGen/Generated/HeyGen.IPersonalizedVideoClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.IPersonalizedVideoClient.g.cs
@@ -63,7 +63,7 @@ public partial interface IPersonalizedVideoClient : global::System.IDisposable
///
- ///
+ ///
///
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.IStreamingApiClient.StreamingAvatarList.g.cs b/src/libs/HeyGen/Generated/HeyGen.IStreamingApiClient.StreamingAvatarList.g.cs
index 76c4840..3755a3c 100644
--- a/src/libs/HeyGen/Generated/HeyGen.IStreamingApiClient.StreamingAvatarList.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.IStreamingApiClient.StreamingAvatarList.g.cs
@@ -8,20 +8,26 @@ public partial interface IStreamingApiClient
/// streaming/avatar.list
/// streaming/avatar.list
///
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task StreamingAvatarListAsync(
+
+ string request,
global::HeyGen.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
/// streaming/avatar.list
/// streaming/avatar.list
///
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task StreamingAvatarListAsResponseAsync(
+
+ string request,
global::HeyGen.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.IStreamingApiClient.StreamingList.g.cs b/src/libs/HeyGen/Generated/HeyGen.IStreamingApiClient.StreamingList.g.cs
index 18234bd..ef03f9a 100644
--- a/src/libs/HeyGen/Generated/HeyGen.IStreamingApiClient.StreamingList.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.IStreamingApiClient.StreamingList.g.cs
@@ -8,20 +8,26 @@ public partial interface IStreamingApiClient
/// streaming.list
/// streaming.list
///
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task StreamingListAsync(
+
+ string request,
global::HeyGen.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
///
/// streaming.list
/// streaming.list
///
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task StreamingListAsResponseAsync(
+
+ string request,
global::HeyGen.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.IStreamingApiClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.IStreamingApiClient.g.cs
index 193ba9b..b7cc176 100644
--- a/src/libs/HeyGen/Generated/HeyGen.IStreamingApiClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.IStreamingApiClient.g.cs
@@ -62,7 +62,7 @@ public partial interface IStreamingApiClient : global::System.IDisposable
///
- ///
+ ///
///
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.ITalkingPhotoClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.ITalkingPhotoClient.g.cs
index 6752d14..e89ac37 100644
--- a/src/libs/HeyGen/Generated/HeyGen.ITalkingPhotoClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.ITalkingPhotoClient.g.cs
@@ -62,7 +62,7 @@ public partial interface ITalkingPhotoClient : global::System.IDisposable
///
- ///
+ ///
///
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.ITemplateApiClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.ITemplateApiClient.g.cs
index bea7890..0e2a0f6 100644
--- a/src/libs/HeyGen/Generated/HeyGen.ITemplateApiClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.ITemplateApiClient.g.cs
@@ -68,7 +68,7 @@ public partial interface ITemplateApiClient : global::System.IDisposable
///
- ///
+ ///
///
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.IUserClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.IUserClient.g.cs
index 10d390d..f1b93fa 100644
--- a/src/libs/HeyGen/Generated/HeyGen.IUserClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.IUserClient.g.cs
@@ -62,7 +62,7 @@ public partial interface IUserClient : global::System.IDisposable
///
- ///
+ ///
///
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.IVideoTranslateApiClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.IVideoTranslateApiClient.g.cs
index 7ef7624..773c7b4 100644
--- a/src/libs/HeyGen/Generated/HeyGen.IVideoTranslateApiClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.IVideoTranslateApiClient.g.cs
@@ -62,7 +62,7 @@ public partial interface IVideoTranslateApiClient : global::System.IDisposable
///
- ///
+ ///
///
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.IWebhooksClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.IWebhooksClient.g.cs
index be37143..53bd218 100644
--- a/src/libs/HeyGen/Generated/HeyGen.IWebhooksClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.IWebhooksClient.g.cs
@@ -62,7 +62,7 @@ public partial interface IWebhooksClient : global::System.IDisposable
///
- ///
+ ///
///
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.JsonConverters.UnixTimestamp.g.cs b/src/libs/HeyGen/Generated/HeyGen.JsonConverters.UnixTimestamp.g.cs
index 9bbf7d7..3ba08a6 100644
--- a/src/libs/HeyGen/Generated/HeyGen.JsonConverters.UnixTimestamp.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.JsonConverters.UnixTimestamp.g.cs
@@ -19,7 +19,7 @@ public class UnixTimestampJsonConverter : global::System.Text.Json.Serialization
{
return global::System.DateTimeOffset.FromUnixTimeSeconds(unixTimestamp);
}
-
+
return global::System.DateTimeOffset.FromUnixTimeMilliseconds(unixTimestamp);
}
if (reader.TryGetInt32(out int unixTimestampInt))
diff --git a/src/libs/HeyGen/Generated/HeyGen.JsonSerializerContext.g.cs b/src/libs/HeyGen/Generated/HeyGen.JsonSerializerContext.g.cs
index 13efcca..59ff8a3 100644
--- a/src/libs/HeyGen/Generated/HeyGen.JsonSerializerContext.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.JsonSerializerContext.g.cs
@@ -7,7 +7,7 @@
namespace HeyGen
{
///
- ///
+ ///
///
[global::System.Text.Json.Serialization.JsonSourceGenerationOptions(
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
@@ -16,6 +16,7 @@ namespace HeyGen
typeof(global::HeyGen.JsonConverters.UnixTimestampJsonConverter),
})]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::HeyGen.JsonSerializerContextTypes))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List