diff --git a/src/libs/HeyGen/Generated/HeyGen.AssetsClient.V1AssetUpload.g.cs b/src/libs/HeyGen/Generated/HeyGen.AssetsClient.V1AssetUpload.g.cs
index aded21f..4e74736 100644
--- a/src/libs/HeyGen/Generated/HeyGen.AssetsClient.V1AssetUpload.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.AssetsClient.V1AssetUpload.g.cs
@@ -123,11 +123,25 @@ partial void ProcessV1AssetUploadResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.V1VideoDelete.g.cs b/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.V1VideoDelete.g.cs
index af014a1..2f6bc60 100644
--- a/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.V1VideoDelete.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.V1VideoDelete.g.cs
@@ -134,11 +134,25 @@ partial void ProcessV1VideoDeleteResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.V2VideoGenerate.g.cs b/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.V2VideoGenerate.g.cs
index 9a90c8b..95bcf75 100644
--- a/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.V2VideoGenerate.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.CreateVideoApiClient.V2VideoGenerate.g.cs
@@ -139,11 +139,25 @@ partial void ProcessV2VideoGenerateResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.Exceptions.g.cs b/src/libs/HeyGen/Generated/HeyGen.Exceptions.g.cs
index 6e93b09..296adc5 100644
--- a/src/libs/HeyGen/Generated/HeyGen.Exceptions.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.Exceptions.g.cs
@@ -13,7 +13,9 @@ public partial class ApiException : global::System.Exception
///
public global::System.Net.HttpStatusCode StatusCode { get; }
///
- /// The response body.
+ /// 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; }
///
diff --git a/src/libs/HeyGen/Generated/HeyGen.HeyGenClient.V1VideoStatusGet.g.cs b/src/libs/HeyGen/Generated/HeyGen.HeyGenClient.V1VideoStatusGet.g.cs
index a4c9f27..0874b4e 100644
--- a/src/libs/HeyGen/Generated/HeyGen.HeyGenClient.V1VideoStatusGet.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.HeyGenClient.V1VideoStatusGet.g.cs
@@ -134,11 +134,25 @@ partial void ProcessV1VideoStatusGetResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.IAssetsClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.IAssetsClient.g.cs
index b572701..c4e25aa 100644
--- a/src/libs/HeyGen/Generated/HeyGen.IAssetsClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.IAssetsClient.g.cs
@@ -29,6 +29,9 @@ public partial interface IAssetsClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.ICreateVideoApiClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.ICreateVideoApiClient.g.cs
index 025fed7..775e529 100644
--- a/src/libs/HeyGen/Generated/HeyGen.ICreateVideoApiClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.ICreateVideoApiClient.g.cs
@@ -29,6 +29,9 @@ public partial interface ICreateVideoApiClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.IHeyGenClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.IHeyGenClient.g.cs
index 59d1ca9..b7046a0 100644
--- a/src/libs/HeyGen/Generated/HeyGen.IHeyGenClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.IHeyGenClient.g.cs
@@ -49,6 +49,9 @@ public partial interface IHeyGenClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.IListsClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.IListsClient.g.cs
index ba1d6b5..a3a215d 100644
--- a/src/libs/HeyGen/Generated/HeyGen.IListsClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.IListsClient.g.cs
@@ -27,6 +27,9 @@ public partial interface IListsClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.IPersonalizedVideoClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.IPersonalizedVideoClient.g.cs
index 7e61349..7d47a7a 100644
--- a/src/libs/HeyGen/Generated/HeyGen.IPersonalizedVideoClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.IPersonalizedVideoClient.g.cs
@@ -30,6 +30,9 @@ public partial interface IPersonalizedVideoClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.IStreamingApiClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.IStreamingApiClient.g.cs
index 3e6775f..b7bfb7c 100644
--- a/src/libs/HeyGen/Generated/HeyGen.IStreamingApiClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.IStreamingApiClient.g.cs
@@ -29,6 +29,9 @@ public partial interface IStreamingApiClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.ITalkingPhotoClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.ITalkingPhotoClient.g.cs
index 1ede3ed..97f9386 100644
--- a/src/libs/HeyGen/Generated/HeyGen.ITalkingPhotoClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.ITalkingPhotoClient.g.cs
@@ -29,6 +29,9 @@ public partial interface ITalkingPhotoClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.ITemplateApiClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.ITemplateApiClient.g.cs
index a50b779..68c80b6 100644
--- a/src/libs/HeyGen/Generated/HeyGen.ITemplateApiClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.ITemplateApiClient.g.cs
@@ -35,6 +35,9 @@ public partial interface ITemplateApiClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.IUserClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.IUserClient.g.cs
index edb1960..b9abe72 100644
--- a/src/libs/HeyGen/Generated/HeyGen.IUserClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.IUserClient.g.cs
@@ -29,6 +29,9 @@ public partial interface IUserClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.IVideoTranslateApiClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.IVideoTranslateApiClient.g.cs
index bdf88ba..65af20a 100644
--- a/src/libs/HeyGen/Generated/HeyGen.IVideoTranslateApiClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.IVideoTranslateApiClient.g.cs
@@ -29,6 +29,9 @@ public partial interface IVideoTranslateApiClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.IWebhooksClient.g.cs b/src/libs/HeyGen/Generated/HeyGen.IWebhooksClient.g.cs
index 7df89da..a442656 100644
--- a/src/libs/HeyGen/Generated/HeyGen.IWebhooksClient.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.IWebhooksClient.g.cs
@@ -29,6 +29,9 @@ public partial interface IWebhooksClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1AvatarList.g.cs b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1AvatarList.g.cs
index f18fb8c..df10418 100644
--- a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1AvatarList.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1AvatarList.g.cs
@@ -123,11 +123,25 @@ partial void ProcessV1AvatarListResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1VideoList.g.cs b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1VideoList.g.cs
index 4402ad6..20af70f 100644
--- a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1VideoList.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1VideoList.g.cs
@@ -123,11 +123,25 @@ partial void ProcessV1VideoListResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1VoiceList.g.cs b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1VoiceList.g.cs
index 894302f..48174a0 100644
--- a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1VoiceList.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1VoiceList.g.cs
@@ -123,11 +123,25 @@ partial void ProcessV1VoiceListResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V2Avatars.g.cs b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V2Avatars.g.cs
index 1787801..cadd966 100644
--- a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V2Avatars.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V2Avatars.g.cs
@@ -123,11 +123,25 @@ partial void ProcessV2AvatarsResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V2Voices.g.cs b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V2Voices.g.cs
index bfe7900..18e1b9d 100644
--- a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V2Voices.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V2Voices.g.cs
@@ -123,11 +123,25 @@ partial void ProcessV2VoicesResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoAddContact.g.cs b/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoAddContact.g.cs
index d7c3c49..3c578c6 100644
--- a/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoAddContact.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoAddContact.g.cs
@@ -138,11 +138,25 @@ partial void ProcessPersonalizedVideoAddContactResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoAudienceDetail.g.cs b/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoAudienceDetail.g.cs
index 8897358..415411e 100644
--- a/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoAudienceDetail.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoAudienceDetail.g.cs
@@ -134,11 +134,25 @@ partial void ProcessPersonalizedVideoAudienceDetailResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoProjectDetail.g.cs b/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoProjectDetail.g.cs
index 1abd90f..e7163e2 100644
--- a/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoProjectDetail.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoProjectDetail.g.cs
@@ -134,11 +134,25 @@ partial void ProcessPersonalizedVideoProjectDetailResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingAvatarList.g.cs b/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingAvatarList.g.cs
index 7f1b8e9..ab39077 100644
--- a/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingAvatarList.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingAvatarList.g.cs
@@ -123,11 +123,25 @@ partial void ProcessStreamingAvatarListResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingCreateToken.g.cs b/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingCreateToken.g.cs
index 7a2c9f2..e57f537 100644
--- a/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingCreateToken.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingCreateToken.g.cs
@@ -138,11 +138,25 @@ partial void ProcessStreamingCreateTokenResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingIce.g.cs b/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingIce.g.cs
index 0aa1813..9bf3363 100644
--- a/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingIce.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingIce.g.cs
@@ -138,11 +138,25 @@ partial void ProcessStreamingIceResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingInterrupt.g.cs b/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingInterrupt.g.cs
index d321a06..0511713 100644
--- a/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingInterrupt.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingInterrupt.g.cs
@@ -138,11 +138,25 @@ partial void ProcessStreamingInterruptResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingList.g.cs b/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingList.g.cs
index 61f0fb0..b4cb796 100644
--- a/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingList.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingList.g.cs
@@ -123,11 +123,25 @@ partial void ProcessStreamingListResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingNew.g.cs b/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingNew.g.cs
index 1872b81..c5ae702 100644
--- a/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingNew.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingNew.g.cs
@@ -138,11 +138,25 @@ partial void ProcessStreamingNewResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingStart.g.cs b/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingStart.g.cs
index 381db44..3021006 100644
--- a/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingStart.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingStart.g.cs
@@ -138,11 +138,25 @@ partial void ProcessStreamingStartResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingStop.g.cs b/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingStop.g.cs
index 78662d7..8606c4d 100644
--- a/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingStop.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingStop.g.cs
@@ -138,11 +138,25 @@ partial void ProcessStreamingStopResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingTask.g.cs b/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingTask.g.cs
index b91efc2..a3e3d06 100644
--- a/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingTask.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.StreamingApiClient.StreamingTask.g.cs
@@ -138,11 +138,25 @@ partial void ProcessStreamingTaskResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V1TalkingPhotoList.g.cs b/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V1TalkingPhotoList.g.cs
index 2760f55..4490f23 100644
--- a/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V1TalkingPhotoList.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V1TalkingPhotoList.g.cs
@@ -123,11 +123,25 @@ partial void ProcessV1TalkingPhotoListResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V1TalkingPhotoUpload.g.cs b/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V1TalkingPhotoUpload.g.cs
index d13ae1d..320261b 100644
--- a/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V1TalkingPhotoUpload.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V1TalkingPhotoUpload.g.cs
@@ -123,11 +123,25 @@ partial void ProcessV1TalkingPhotoUploadResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V2TalkingPhotoIdDelete.g.cs b/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V2TalkingPhotoIdDelete.g.cs
index 2fba024..b7be6c7 100644
--- a/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V2TalkingPhotoIdDelete.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V2TalkingPhotoIdDelete.g.cs
@@ -123,11 +123,25 @@ partial void ProcessV2TalkingPhotoIdDeleteResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.TemplateApiClient.V2TemplateGenerate.g.cs b/src/libs/HeyGen/Generated/HeyGen.TemplateApiClient.V2TemplateGenerate.g.cs
index 20104e4..8944294 100644
--- a/src/libs/HeyGen/Generated/HeyGen.TemplateApiClient.V2TemplateGenerate.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.TemplateApiClient.V2TemplateGenerate.g.cs
@@ -139,11 +139,25 @@ partial void ProcessV2TemplateGenerateResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.TemplateApiClient.V2TemplateId.g.cs b/src/libs/HeyGen/Generated/HeyGen.TemplateApiClient.V2TemplateId.g.cs
index a8dbfd7..4427003 100644
--- a/src/libs/HeyGen/Generated/HeyGen.TemplateApiClient.V2TemplateId.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.TemplateApiClient.V2TemplateId.g.cs
@@ -123,11 +123,25 @@ partial void ProcessV2TemplateIdResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.TemplateApiClient.V2Templates.g.cs b/src/libs/HeyGen/Generated/HeyGen.TemplateApiClient.V2Templates.g.cs
index 4ea6e59..6869fb9 100644
--- a/src/libs/HeyGen/Generated/HeyGen.TemplateApiClient.V2Templates.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.TemplateApiClient.V2Templates.g.cs
@@ -123,11 +123,25 @@ partial void ProcessV2TemplatesResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.UserClient.V2UserRemainingQuota.g.cs b/src/libs/HeyGen/Generated/HeyGen.UserClient.V2UserRemainingQuota.g.cs
index 0380902..b8db07b 100644
--- a/src/libs/HeyGen/Generated/HeyGen.UserClient.V2UserRemainingQuota.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.UserClient.V2UserRemainingQuota.g.cs
@@ -123,11 +123,25 @@ partial void ProcessV2UserRemainingQuotaResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.VideoTranslateApiClient.V2VideoTranslate.g.cs b/src/libs/HeyGen/Generated/HeyGen.VideoTranslateApiClient.V2VideoTranslate.g.cs
index 96e8a5e..fcef82c 100644
--- a/src/libs/HeyGen/Generated/HeyGen.VideoTranslateApiClient.V2VideoTranslate.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.VideoTranslateApiClient.V2VideoTranslate.g.cs
@@ -138,11 +138,25 @@ partial void ProcessV2VideoTranslateResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.VideoTranslateApiClient.V2VideoTranslateIdStatus.g.cs b/src/libs/HeyGen/Generated/HeyGen.VideoTranslateApiClient.V2VideoTranslateIdStatus.g.cs
index 0a4ee80..d382ab0 100644
--- a/src/libs/HeyGen/Generated/HeyGen.VideoTranslateApiClient.V2VideoTranslateIdStatus.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.VideoTranslateApiClient.V2VideoTranslateIdStatus.g.cs
@@ -123,11 +123,25 @@ partial void ProcessV2VideoTranslateIdStatusResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.VideoTranslateApiClient.V2VideoTranslateTargetLanguages.g.cs b/src/libs/HeyGen/Generated/HeyGen.VideoTranslateApiClient.V2VideoTranslateTargetLanguages.g.cs
index 61f56a1..5c198df 100644
--- a/src/libs/HeyGen/Generated/HeyGen.VideoTranslateApiClient.V2VideoTranslateTargetLanguages.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.VideoTranslateApiClient.V2VideoTranslateTargetLanguages.g.cs
@@ -123,11 +123,25 @@ partial void ProcessV2VideoTranslateTargetLanguagesResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointAdd.g.cs b/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointAdd.g.cs
index 6e6d792..28b83e7 100644
--- a/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointAdd.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointAdd.g.cs
@@ -138,11 +138,25 @@ partial void ProcessV1WebhookEndpointAddResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointDelete.g.cs b/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointDelete.g.cs
index 1959615..5b474bd 100644
--- a/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointDelete.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointDelete.g.cs
@@ -134,11 +134,25 @@ partial void ProcessV1WebhookEndpointDeleteResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointList.g.cs b/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointList.g.cs
index 215d8cd..d2d2ef5 100644
--- a/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointList.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointList.g.cs
@@ -123,11 +123,25 @@ partial void ProcessV1WebhookEndpointListResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookWebhookList.g.cs b/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookWebhookList.g.cs
index f00887e..2a34100 100644
--- a/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookWebhookList.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookWebhookList.g.cs
@@ -123,11 +123,25 @@ partial void ProcessV1WebhookWebhookListResponse(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::HeyGen.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,