diff --git a/src/libs/HeyGen/Generated/HeyGen.AssetsClient.V1AssetUpload.g.cs b/src/libs/HeyGen/Generated/HeyGen.AssetsClient.V1AssetUpload.g.cs
index 2aa00a0..aded21f 100644
--- a/src/libs/HeyGen/Generated/HeyGen.AssetsClient.V1AssetUpload.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.AssetsClient.V1AssetUpload.g.cs
@@ -91,8 +91,9 @@ partial void ProcessV1AssetUploadResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -106,15 +107,21 @@ partial void ProcessV1AssetUploadResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -127,13 +134,6 @@ partial void ProcessV1AssetUploadResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.CreateVideoAPIClient.V1VideoDelete.g.cs b/src/libs/HeyGen/Generated/HeyGen.CreateVideoAPIClient.V1VideoDelete.g.cs
index 0199e8b..16e43ad 100644
--- a/src/libs/HeyGen/Generated/HeyGen.CreateVideoAPIClient.V1VideoDelete.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.CreateVideoAPIClient.V1VideoDelete.g.cs
@@ -102,8 +102,9 @@ partial void ProcessV1VideoDeleteResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -117,15 +118,21 @@ partial void ProcessV1VideoDeleteResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -138,13 +145,6 @@ partial void ProcessV1VideoDeleteResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.CreateVideoAPIClient.V2VideoGenerate.g.cs b/src/libs/HeyGen/Generated/HeyGen.CreateVideoAPIClient.V2VideoGenerate.g.cs
index 432325a..1928239 100644
--- a/src/libs/HeyGen/Generated/HeyGen.CreateVideoAPIClient.V2VideoGenerate.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.CreateVideoAPIClient.V2VideoGenerate.g.cs
@@ -106,8 +106,9 @@ partial void ProcessV2VideoGenerateResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -121,15 +122,21 @@ partial void ProcessV2VideoGenerateResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -142,13 +149,6 @@ partial void ProcessV2VideoGenerateResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.Exceptions.g.cs b/src/libs/HeyGen/Generated/HeyGen.Exceptions.g.cs
index dd2ff97..6e93b09 100644
--- a/src/libs/HeyGen/Generated/HeyGen.Exceptions.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.Exceptions.g.cs
@@ -43,7 +43,7 @@ public ApiException(string message, global::System.Net.HttpStatusCode statusCode
/// The error message that explains the reason for the exception.
/// The exception that is the cause of the current exception, or a null reference if no inner exception is specified.
/// The HTTP status code of the response.
- public ApiException(string message, global::System.Exception innerException, global::System.Net.HttpStatusCode statusCode) : base(message, innerException)
+ public ApiException(string message, global::System.Exception? innerException, global::System.Net.HttpStatusCode statusCode) : base(message, innerException)
{
StatusCode = statusCode;
}
@@ -83,7 +83,7 @@ public ApiException(string message, global::System.Net.HttpStatusCode statusCode
/// The error message that explains the reason for the exception.
/// The exception that is the cause of the current exception, or a null reference if no inner exception is specified.
/// The HTTP status code of the response.
- public ApiException(string message, global::System.Exception innerException, global::System.Net.HttpStatusCode statusCode) : base(message, innerException, statusCode)
+ public ApiException(string message, global::System.Exception? innerException, global::System.Net.HttpStatusCode statusCode) : base(message, innerException, statusCode)
{
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.HeyGenApi.V1VideoStatusGet.g.cs b/src/libs/HeyGen/Generated/HeyGen.HeyGenApi.V1VideoStatusGet.g.cs
index 7c84e67..ff129d1 100644
--- a/src/libs/HeyGen/Generated/HeyGen.HeyGenApi.V1VideoStatusGet.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.HeyGenApi.V1VideoStatusGet.g.cs
@@ -102,8 +102,9 @@ partial void ProcessV1VideoStatusGetResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -117,15 +118,21 @@ partial void ProcessV1VideoStatusGetResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -138,13 +145,6 @@ partial void ProcessV1VideoStatusGetResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1AvatarList.g.cs b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1AvatarList.g.cs
index 379a598..f18fb8c 100644
--- a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1AvatarList.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1AvatarList.g.cs
@@ -91,8 +91,9 @@ partial void ProcessV1AvatarListResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -106,15 +107,21 @@ partial void ProcessV1AvatarListResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -127,13 +134,6 @@ partial void ProcessV1AvatarListResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1VideoList.g.cs b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1VideoList.g.cs
index 1cd4a4e..4402ad6 100644
--- a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1VideoList.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1VideoList.g.cs
@@ -91,8 +91,9 @@ partial void ProcessV1VideoListResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -106,15 +107,21 @@ partial void ProcessV1VideoListResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -127,13 +134,6 @@ partial void ProcessV1VideoListResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1VoiceList.g.cs b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1VoiceList.g.cs
index 7cc29a2..894302f 100644
--- a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1VoiceList.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V1VoiceList.g.cs
@@ -91,8 +91,9 @@ partial void ProcessV1VoiceListResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -106,15 +107,21 @@ partial void ProcessV1VoiceListResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -127,13 +134,6 @@ partial void ProcessV1VoiceListResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V2Avatars.g.cs b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V2Avatars.g.cs
index d76201b..1787801 100644
--- a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V2Avatars.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V2Avatars.g.cs
@@ -91,8 +91,9 @@ partial void ProcessV2AvatarsResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -106,15 +107,21 @@ partial void ProcessV2AvatarsResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -127,13 +134,6 @@ partial void ProcessV2AvatarsResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V2Voices.g.cs b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V2Voices.g.cs
index 07cc797..bfe7900 100644
--- a/src/libs/HeyGen/Generated/HeyGen.ListsClient.V2Voices.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.ListsClient.V2Voices.g.cs
@@ -91,8 +91,9 @@ partial void ProcessV2VoicesResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -106,15 +107,21 @@ partial void ProcessV2VoicesResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -127,13 +134,6 @@ partial void ProcessV2VoicesResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoAddContact.g.cs b/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoAddContact.g.cs
index 8411c03..22a7cf4 100644
--- a/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoAddContact.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoAddContact.g.cs
@@ -105,8 +105,9 @@ partial void ProcessPersonalizedVideoAddContactResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -120,15 +121,21 @@ partial void ProcessPersonalizedVideoAddContactResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -141,13 +148,6 @@ partial void ProcessPersonalizedVideoAddContactResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoAudienceDetail.g.cs b/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoAudienceDetail.g.cs
index 4adf93d..33c9ffe 100644
--- a/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoAudienceDetail.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoAudienceDetail.g.cs
@@ -102,8 +102,9 @@ partial void ProcessPersonalizedVideoAudienceDetailResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -117,15 +118,21 @@ partial void ProcessPersonalizedVideoAudienceDetailResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -138,13 +145,6 @@ partial void ProcessPersonalizedVideoAudienceDetailResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoProjectDetail.g.cs b/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoProjectDetail.g.cs
index f38cb5a..9fa3324 100644
--- a/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoProjectDetail.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.PersonalizedVideoClient.PersonalizedVideoProjectDetail.g.cs
@@ -102,8 +102,9 @@ partial void ProcessPersonalizedVideoProjectDetailResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -117,15 +118,21 @@ partial void ProcessPersonalizedVideoProjectDetailResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -138,13 +145,6 @@ partial void ProcessPersonalizedVideoProjectDetailResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingAvatarList.g.cs b/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingAvatarList.g.cs
index 268cf75..eec12cd 100644
--- a/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingAvatarList.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingAvatarList.g.cs
@@ -91,8 +91,9 @@ partial void ProcessStreamingAvatarListResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -106,15 +107,21 @@ partial void ProcessStreamingAvatarListResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -127,13 +134,6 @@ partial void ProcessStreamingAvatarListResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingCreateToken.g.cs b/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingCreateToken.g.cs
index 9cda264..554de11 100644
--- a/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingCreateToken.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingCreateToken.g.cs
@@ -105,8 +105,9 @@ partial void ProcessStreamingCreateTokenResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -120,15 +121,21 @@ partial void ProcessStreamingCreateTokenResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -141,13 +148,6 @@ partial void ProcessStreamingCreateTokenResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingIce.g.cs b/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingIce.g.cs
index 7ac20da..60cc353 100644
--- a/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingIce.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingIce.g.cs
@@ -105,8 +105,9 @@ partial void ProcessStreamingIceResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -120,15 +121,21 @@ partial void ProcessStreamingIceResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -141,13 +148,6 @@ partial void ProcessStreamingIceResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingInterrupt.g.cs b/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingInterrupt.g.cs
index 058db9e..e03b306 100644
--- a/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingInterrupt.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingInterrupt.g.cs
@@ -105,8 +105,9 @@ partial void ProcessStreamingInterruptResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -120,15 +121,21 @@ partial void ProcessStreamingInterruptResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -141,13 +148,6 @@ partial void ProcessStreamingInterruptResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingList.g.cs b/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingList.g.cs
index 39f89eb..09977cb 100644
--- a/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingList.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingList.g.cs
@@ -91,8 +91,9 @@ partial void ProcessStreamingListResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -106,15 +107,21 @@ partial void ProcessStreamingListResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -127,13 +134,6 @@ partial void ProcessStreamingListResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingNew.g.cs b/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingNew.g.cs
index 490dfc3..dfaaf0e 100644
--- a/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingNew.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingNew.g.cs
@@ -105,8 +105,9 @@ partial void ProcessStreamingNewResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -120,15 +121,21 @@ partial void ProcessStreamingNewResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -141,13 +148,6 @@ partial void ProcessStreamingNewResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingStart.g.cs b/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingStart.g.cs
index a609a2b..8901477 100644
--- a/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingStart.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingStart.g.cs
@@ -105,8 +105,9 @@ partial void ProcessStreamingStartResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -120,15 +121,21 @@ partial void ProcessStreamingStartResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -141,13 +148,6 @@ partial void ProcessStreamingStartResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingStop.g.cs b/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingStop.g.cs
index e421537..d49a4fe 100644
--- a/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingStop.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingStop.g.cs
@@ -105,8 +105,9 @@ partial void ProcessStreamingStopResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -120,15 +121,21 @@ partial void ProcessStreamingStopResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -141,13 +148,6 @@ partial void ProcessStreamingStopResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingTask.g.cs b/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingTask.g.cs
index 700fd04..24cdf63 100644
--- a/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingTask.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.StreamingAPIClient.StreamingTask.g.cs
@@ -105,8 +105,9 @@ partial void ProcessStreamingTaskResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -120,15 +121,21 @@ partial void ProcessStreamingTaskResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -141,13 +148,6 @@ partial void ProcessStreamingTaskResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V1TalkingPhotoList.g.cs b/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V1TalkingPhotoList.g.cs
index c9f9c99..2760f55 100644
--- a/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V1TalkingPhotoList.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V1TalkingPhotoList.g.cs
@@ -91,8 +91,9 @@ partial void ProcessV1TalkingPhotoListResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -106,15 +107,21 @@ partial void ProcessV1TalkingPhotoListResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -127,13 +134,6 @@ partial void ProcessV1TalkingPhotoListResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V1TalkingPhotoUpload.g.cs b/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V1TalkingPhotoUpload.g.cs
index fb20d8c..d13ae1d 100644
--- a/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V1TalkingPhotoUpload.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V1TalkingPhotoUpload.g.cs
@@ -91,8 +91,9 @@ partial void ProcessV1TalkingPhotoUploadResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -106,15 +107,21 @@ partial void ProcessV1TalkingPhotoUploadResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -127,13 +134,6 @@ partial void ProcessV1TalkingPhotoUploadResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V2TalkingPhotoIdDelete.g.cs b/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V2TalkingPhotoIdDelete.g.cs
index ccf0336..2fba024 100644
--- a/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V2TalkingPhotoIdDelete.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.TalkingPhotoClient.V2TalkingPhotoIdDelete.g.cs
@@ -91,8 +91,9 @@ partial void ProcessV2TalkingPhotoIdDeleteResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -106,15 +107,21 @@ partial void ProcessV2TalkingPhotoIdDeleteResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -127,13 +134,6 @@ partial void ProcessV2TalkingPhotoIdDeleteResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.TemplateAPIClient.V2TemplateGenerate.g.cs b/src/libs/HeyGen/Generated/HeyGen.TemplateAPIClient.V2TemplateGenerate.g.cs
index e824997..f1d30ef 100644
--- a/src/libs/HeyGen/Generated/HeyGen.TemplateAPIClient.V2TemplateGenerate.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.TemplateAPIClient.V2TemplateGenerate.g.cs
@@ -106,8 +106,9 @@ partial void ProcessV2TemplateGenerateResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -121,15 +122,21 @@ partial void ProcessV2TemplateGenerateResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -142,13 +149,6 @@ partial void ProcessV2TemplateGenerateResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.TemplateAPIClient.V2TemplateId.g.cs b/src/libs/HeyGen/Generated/HeyGen.TemplateAPIClient.V2TemplateId.g.cs
index c012e85..b1c3c00 100644
--- a/src/libs/HeyGen/Generated/HeyGen.TemplateAPIClient.V2TemplateId.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.TemplateAPIClient.V2TemplateId.g.cs
@@ -91,8 +91,9 @@ partial void ProcessV2TemplateIdResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -106,15 +107,21 @@ partial void ProcessV2TemplateIdResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -127,13 +134,6 @@ partial void ProcessV2TemplateIdResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.TemplateAPIClient.V2Templates.g.cs b/src/libs/HeyGen/Generated/HeyGen.TemplateAPIClient.V2Templates.g.cs
index 0332bf7..5746631 100644
--- a/src/libs/HeyGen/Generated/HeyGen.TemplateAPIClient.V2Templates.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.TemplateAPIClient.V2Templates.g.cs
@@ -91,8 +91,9 @@ partial void ProcessV2TemplatesResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -106,15 +107,21 @@ partial void ProcessV2TemplatesResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -127,13 +134,6 @@ partial void ProcessV2TemplatesResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.UserClient.V2UserRemainingQuota.g.cs b/src/libs/HeyGen/Generated/HeyGen.UserClient.V2UserRemainingQuota.g.cs
index 2912bb4..0380902 100644
--- a/src/libs/HeyGen/Generated/HeyGen.UserClient.V2UserRemainingQuota.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.UserClient.V2UserRemainingQuota.g.cs
@@ -91,8 +91,9 @@ partial void ProcessV2UserRemainingQuotaResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -106,15 +107,21 @@ partial void ProcessV2UserRemainingQuotaResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -127,13 +134,6 @@ partial void ProcessV2UserRemainingQuotaResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.VideoTranslateAPIClient.V2VideoTranslate.g.cs b/src/libs/HeyGen/Generated/HeyGen.VideoTranslateAPIClient.V2VideoTranslate.g.cs
index 05d8dfe..61f1f74 100644
--- a/src/libs/HeyGen/Generated/HeyGen.VideoTranslateAPIClient.V2VideoTranslate.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.VideoTranslateAPIClient.V2VideoTranslate.g.cs
@@ -105,8 +105,9 @@ partial void ProcessV2VideoTranslateResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -120,15 +121,21 @@ partial void ProcessV2VideoTranslateResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -141,13 +148,6 @@ partial void ProcessV2VideoTranslateResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.VideoTranslateAPIClient.V2VideoTranslateIdStatus.g.cs b/src/libs/HeyGen/Generated/HeyGen.VideoTranslateAPIClient.V2VideoTranslateIdStatus.g.cs
index 5fd93fb..214075d 100644
--- a/src/libs/HeyGen/Generated/HeyGen.VideoTranslateAPIClient.V2VideoTranslateIdStatus.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.VideoTranslateAPIClient.V2VideoTranslateIdStatus.g.cs
@@ -91,8 +91,9 @@ partial void ProcessV2VideoTranslateIdStatusResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -106,15 +107,21 @@ partial void ProcessV2VideoTranslateIdStatusResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -127,13 +134,6 @@ partial void ProcessV2VideoTranslateIdStatusResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.VideoTranslateAPIClient.V2VideoTranslateTargetLanguages.g.cs b/src/libs/HeyGen/Generated/HeyGen.VideoTranslateAPIClient.V2VideoTranslateTargetLanguages.g.cs
index d46c6db..5f74ab7 100644
--- a/src/libs/HeyGen/Generated/HeyGen.VideoTranslateAPIClient.V2VideoTranslateTargetLanguages.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.VideoTranslateAPIClient.V2VideoTranslateTargetLanguages.g.cs
@@ -91,8 +91,9 @@ partial void ProcessV2VideoTranslateTargetLanguagesResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -106,15 +107,21 @@ partial void ProcessV2VideoTranslateTargetLanguagesResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -127,13 +134,6 @@ partial void ProcessV2VideoTranslateTargetLanguagesResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointAdd.g.cs b/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointAdd.g.cs
index 7c869c0..4d84868 100644
--- a/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointAdd.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointAdd.g.cs
@@ -105,8 +105,9 @@ partial void ProcessV1WebhookEndpointAddResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -120,15 +121,21 @@ partial void ProcessV1WebhookEndpointAddResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -141,13 +148,6 @@ partial void ProcessV1WebhookEndpointAddResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointDelete.g.cs b/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointDelete.g.cs
index 1c7d9a2..5bdec83 100644
--- a/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointDelete.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointDelete.g.cs
@@ -102,8 +102,9 @@ partial void ProcessV1WebhookEndpointDeleteResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -117,15 +118,21 @@ partial void ProcessV1WebhookEndpointDeleteResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -138,13 +145,6 @@ partial void ProcessV1WebhookEndpointDeleteResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointList.g.cs b/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointList.g.cs
index 5f20579..215d8cd 100644
--- a/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointList.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookEndpointList.g.cs
@@ -91,8 +91,9 @@ partial void ProcessV1WebhookEndpointListResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -106,15 +107,21 @@ partial void ProcessV1WebhookEndpointListResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -127,13 +134,6 @@ partial void ProcessV1WebhookEndpointListResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}
diff --git a/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookWebhookList.g.cs b/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookWebhookList.g.cs
index e7ce57a..f00887e 100644
--- a/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookWebhookList.g.cs
+++ b/src/libs/HeyGen/Generated/HeyGen.WebhooksClient.V1WebhookWebhookList.g.cs
@@ -91,8 +91,9 @@ partial void ProcessV1WebhookWebhookListResponse(
try
{
__response.EnsureSuccessStatusCode();
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __content ?? __response.ReasonPhrase ?? string.Empty,
@@ -106,15 +107,21 @@ partial void ProcessV1WebhookWebhookListResponse(
h => h.Value),
};
}
-
}
else
{
try
{
__response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
}
- catch (global::System.Net.Http.HttpRequestException __ex)
+ catch (global::System.Exception __ex)
{
throw new global::HeyGen.ApiException(
message: __response.ReasonPhrase ?? string.Empty,
@@ -127,13 +134,6 @@ partial void ProcessV1WebhookWebhookListResponse(
h => h.Value),
};
}
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
}
}