diff --git a/src/libs/Vapi/Generated/Vapi.AnalyticsClient.AnalyticsControllerQuery.g.cs b/src/libs/Vapi/Generated/Vapi.AnalyticsClient.AnalyticsControllerQuery.g.cs
index 94a001b..56ae6e3 100644
--- a/src/libs/Vapi/Generated/Vapi.AnalyticsClient.AnalyticsControllerQuery.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.AnalyticsClient.AnalyticsControllerQuery.g.cs
@@ -367,17 +367,15 @@ partial void ProcessAnalyticsControllerQueryResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessAnalyticsControllerQueryResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerCreate.g.cs
index ea04f54..56cf522 100644
--- a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerCreate.g.cs
@@ -367,17 +367,15 @@ partial void ProcessAssistantControllerCreateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessAssistantControllerCreateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindAll.g.cs
index 31bb181..b4028f6 100644
--- a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindAll.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindAll.g.cs
@@ -439,17 +439,15 @@ partial void ProcessAssistantControllerFindAllResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -486,17 +484,15 @@ partial void ProcessAssistantControllerFindAllResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindOne.g.cs
index 786d88c..5d91caf 100644
--- a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindOne.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindOne.g.cs
@@ -356,17 +356,15 @@ partial void ProcessAssistantControllerFindOneResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessAssistantControllerFindOneResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerRemove.g.cs
index 501d7e4..415939f 100644
--- a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerRemove.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerRemove.g.cs
@@ -356,17 +356,15 @@ partial void ProcessAssistantControllerRemoveResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessAssistantControllerRemoveResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerUpdate.g.cs
index cd4bf5d..674dae9 100644
--- a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerUpdate.g.cs
@@ -376,17 +376,15 @@ partial void ProcessAssistantControllerUpdateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessAssistantControllerUpdateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerAssistantRecordingDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerAssistantRecordingDownload.g.cs
index e21f723..de91d50 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerAssistantRecordingDownload.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerAssistantRecordingDownload.g.cs
@@ -338,17 +338,16 @@ await CallArtifactControllerAssistantRecordingDownloadAsResponseAsync(
__exception_302 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_302 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_302,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_302,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_302,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -371,17 +370,16 @@ await CallArtifactControllerAssistantRecordingDownloadAsResponseAsync(
__exception_401 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -404,17 +402,16 @@ await CallArtifactControllerAssistantRecordingDownloadAsResponseAsync(
__exception_404 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -441,17 +438,15 @@ await CallArtifactControllerAssistantRecordingDownloadAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -479,17 +474,15 @@ await CallArtifactControllerAssistantRecordingDownloadAsResponseAsync(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCallLogsDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCallLogsDownload.g.cs
index 2241961..fd0daa7 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCallLogsDownload.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCallLogsDownload.g.cs
@@ -338,17 +338,16 @@ await CallArtifactControllerCallLogsDownloadAsResponseAsync(
__exception_302 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_302 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_302,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_302,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_302,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -371,17 +370,16 @@ await CallArtifactControllerCallLogsDownloadAsResponseAsync(
__exception_401 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -404,17 +402,16 @@ await CallArtifactControllerCallLogsDownloadAsResponseAsync(
__exception_404 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -441,17 +438,15 @@ await CallArtifactControllerCallLogsDownloadAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -479,17 +474,15 @@ await CallArtifactControllerCallLogsDownloadAsResponseAsync(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCustomerRecordingDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCustomerRecordingDownload.g.cs
index f9c14a9..05ee1b5 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCustomerRecordingDownload.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCustomerRecordingDownload.g.cs
@@ -338,17 +338,16 @@ await CallArtifactControllerCustomerRecordingDownloadAsResponseAsync(
__exception_302 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_302 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_302,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_302,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_302,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -371,17 +370,16 @@ await CallArtifactControllerCustomerRecordingDownloadAsResponseAsync(
__exception_401 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -404,17 +402,16 @@ await CallArtifactControllerCustomerRecordingDownloadAsResponseAsync(
__exception_404 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -441,17 +438,15 @@ await CallArtifactControllerCustomerRecordingDownloadAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -479,17 +474,15 @@ await CallArtifactControllerCustomerRecordingDownloadAsResponseAsync(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerMonoRecordingDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerMonoRecordingDownload.g.cs
index 018a2ac..0724752 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerMonoRecordingDownload.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerMonoRecordingDownload.g.cs
@@ -338,17 +338,16 @@ await CallArtifactControllerMonoRecordingDownloadAsResponseAsync(
__exception_302 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_302 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_302,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_302,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_302,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -371,17 +370,16 @@ await CallArtifactControllerMonoRecordingDownloadAsResponseAsync(
__exception_401 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -404,17 +402,16 @@ await CallArtifactControllerMonoRecordingDownloadAsResponseAsync(
__exception_404 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -441,17 +438,15 @@ await CallArtifactControllerMonoRecordingDownloadAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -479,17 +474,15 @@ await CallArtifactControllerMonoRecordingDownloadAsResponseAsync(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerPcapDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerPcapDownload.g.cs
index d1f909a..793c2d5 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerPcapDownload.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerPcapDownload.g.cs
@@ -338,17 +338,16 @@ await CallArtifactControllerPcapDownloadAsResponseAsync(
__exception_302 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_302 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_302,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_302,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_302,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -371,17 +370,16 @@ await CallArtifactControllerPcapDownloadAsResponseAsync(
__exception_401 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -404,17 +402,16 @@ await CallArtifactControllerPcapDownloadAsResponseAsync(
__exception_404 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -441,17 +438,15 @@ await CallArtifactControllerPcapDownloadAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -479,17 +474,15 @@ await CallArtifactControllerPcapDownloadAsResponseAsync(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerStereoRecordingDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerStereoRecordingDownload.g.cs
index 64797a9..3781c70 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerStereoRecordingDownload.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerStereoRecordingDownload.g.cs
@@ -338,17 +338,16 @@ await CallArtifactControllerStereoRecordingDownloadAsResponseAsync(
__exception_302 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_302 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_302,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_302,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_302,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -371,17 +370,16 @@ await CallArtifactControllerStereoRecordingDownloadAsResponseAsync(
__exception_401 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -404,17 +402,16 @@ await CallArtifactControllerStereoRecordingDownloadAsResponseAsync(
__exception_404 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -441,17 +438,15 @@ await CallArtifactControllerStereoRecordingDownloadAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -479,17 +474,15 @@ await CallArtifactControllerStereoRecordingDownloadAsResponseAsync(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerVideoRecordingDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerVideoRecordingDownload.g.cs
index 81649bf..29bbda0 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerVideoRecordingDownload.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerVideoRecordingDownload.g.cs
@@ -338,17 +338,16 @@ await CallArtifactControllerVideoRecordingDownloadAsResponseAsync(
__exception_302 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_302 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_302,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_302,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_302,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -371,17 +370,16 @@ await CallArtifactControllerVideoRecordingDownloadAsResponseAsync(
__exception_401 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -404,17 +402,16 @@ await CallArtifactControllerVideoRecordingDownloadAsResponseAsync(
__exception_404 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -441,17 +438,15 @@ await CallArtifactControllerVideoRecordingDownloadAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -479,17 +474,15 @@ await CallArtifactControllerVideoRecordingDownloadAsResponseAsync(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerCreate.g.cs
index 7e41807..d2adfd3 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerCreate.g.cs
@@ -367,17 +367,15 @@ partial void ProcessCallControllerCreateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessCallControllerCreateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerDeleteCallData.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerDeleteCallData.g.cs
index 11b9742..7b862ea 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerDeleteCallData.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerDeleteCallData.g.cs
@@ -376,17 +376,15 @@ partial void ProcessCallControllerDeleteCallDataResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessCallControllerDeleteCallDataResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindAll.g.cs
index cdd42ff..0ddc21a 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindAll.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindAll.g.cs
@@ -469,17 +469,15 @@ partial void ProcessCallControllerFindAllResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -516,17 +514,15 @@ partial void ProcessCallControllerFindAllResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindOne.g.cs
index 0ea0ec1..8c0ecd6 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindOne.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindOne.g.cs
@@ -356,17 +356,15 @@ partial void ProcessCallControllerFindOneResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessCallControllerFindOneResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerUpdate.g.cs
index b6d81cc..0d86466 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerUpdate.g.cs
@@ -376,17 +376,15 @@ partial void ProcessCallControllerUpdateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessCallControllerUpdateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreate.g.cs
index 41c7b7c..602a89c 100644
--- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreate.g.cs
@@ -367,17 +367,15 @@ partial void ProcessCampaignControllerCreateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessCampaignControllerCreateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAll.g.cs
index df77096..0018604 100644
--- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAll.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAll.g.cs
@@ -489,17 +489,15 @@ partial void ProcessCampaignControllerFindAllResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -536,17 +534,15 @@ partial void ProcessCampaignControllerFindAllResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOne.g.cs
index 8fcdf3d..505ab31 100644
--- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOne.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOne.g.cs
@@ -356,17 +356,15 @@ partial void ProcessCampaignControllerFindOneResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessCampaignControllerFindOneResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemove.g.cs
index c641473..1323466 100644
--- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemove.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemove.g.cs
@@ -356,17 +356,15 @@ partial void ProcessCampaignControllerRemoveResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessCampaignControllerRemoveResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdate.g.cs
index b25cd08..1978e54 100644
--- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdate.g.cs
@@ -376,17 +376,15 @@ partial void ProcessCampaignControllerUpdateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessCampaignControllerUpdateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateChat.g.cs b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateChat.g.cs
index 0cd5911..2d88ab4 100644
--- a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateChat.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateChat.g.cs
@@ -369,17 +369,15 @@ partial void ProcessChatControllerCreateChatResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -416,17 +414,15 @@ partial void ProcessChatControllerCreateChatResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateOpenAIChat.g.cs b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateOpenAIChat.g.cs
index 4937702..c10260a 100644
--- a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateOpenAIChat.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateOpenAIChat.g.cs
@@ -367,17 +367,15 @@ partial void ProcessChatControllerCreateOpenAIChatResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessChatControllerCreateOpenAIChatResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerDeleteChat.g.cs b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerDeleteChat.g.cs
index 4c78942..27a55e9 100644
--- a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerDeleteChat.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerDeleteChat.g.cs
@@ -356,17 +356,15 @@ partial void ProcessChatControllerDeleteChatResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessChatControllerDeleteChatResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerGetChat.g.cs b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerGetChat.g.cs
index e553f6d..e03433b 100644
--- a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerGetChat.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerGetChat.g.cs
@@ -356,17 +356,15 @@ partial void ProcessChatControllerGetChatResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessChatControllerGetChatResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerListChats.g.cs b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerListChats.g.cs
index be2cc29..cd9d109 100644
--- a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerListChats.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerListChats.g.cs
@@ -533,17 +533,15 @@ partial void ProcessChatControllerListChatsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -580,17 +578,15 @@ partial void ProcessChatControllerListChatsResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerCreate.g.cs
index 2bac7ca..9a131f5 100644
--- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerCreate.g.cs
@@ -367,17 +367,15 @@ partial void ProcessEvalControllerCreateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessEvalControllerCreateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGet.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGet.g.cs
index fe213b7..17ac71a 100644
--- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGet.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGet.g.cs
@@ -356,17 +356,15 @@ partial void ProcessEvalControllerGetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessEvalControllerGetResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetPaginated.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetPaginated.g.cs
index ae737c8..98932ed 100644
--- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetPaginated.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetPaginated.g.cs
@@ -479,17 +479,15 @@ partial void ProcessEvalControllerGetPaginatedResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -526,17 +524,15 @@ partial void ProcessEvalControllerGetPaginatedResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRun.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRun.g.cs
index e706d79..db4771f 100644
--- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRun.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRun.g.cs
@@ -356,17 +356,15 @@ partial void ProcessEvalControllerGetRunResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessEvalControllerGetRunResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRunsPaginated.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRunsPaginated.g.cs
index 956a41f..59f6bbf 100644
--- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRunsPaginated.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRunsPaginated.g.cs
@@ -479,17 +479,15 @@ partial void ProcessEvalControllerGetRunsPaginatedResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -526,17 +524,15 @@ partial void ProcessEvalControllerGetRunsPaginatedResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemove.g.cs
index b6e9b9f..f0f5f90 100644
--- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemove.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemove.g.cs
@@ -356,17 +356,15 @@ partial void ProcessEvalControllerRemoveResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessEvalControllerRemoveResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemoveRun.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemoveRun.g.cs
index c775957..5f6e384 100644
--- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemoveRun.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemoveRun.g.cs
@@ -356,17 +356,15 @@ partial void ProcessEvalControllerRemoveRunResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessEvalControllerRemoveRunResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRun.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRun.g.cs
index 903b92b..8e70676 100644
--- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRun.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRun.g.cs
@@ -365,17 +365,15 @@ partial void ProcessEvalControllerRunResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -410,17 +408,15 @@ partial void ProcessEvalControllerRunResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerUpdate.g.cs
index aae43f7..6ca8ef5 100644
--- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerUpdate.g.cs
@@ -376,17 +376,15 @@ partial void ProcessEvalControllerUpdateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessEvalControllerUpdateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.Exceptions.g.cs b/src/libs/Vapi/Generated/Vapi.Exceptions.g.cs
index 456fa80..bd29b77 100644
--- a/src/libs/Vapi/Generated/Vapi.Exceptions.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.Exceptions.g.cs
@@ -12,16 +12,19 @@ public partial class ApiException : global::System.Exception
/// The HTTP status code of the response.
///
public global::System.Net.HttpStatusCode StatusCode { get; }
+
///
/// The response body as a string, or null if the body could not be read.
/// This is always populated for error responses regardless of the ReadResponseAsString setting.
/// For success-path failures (e.g. deserialization errors), the client attempts a best-effort read.
///
public string? ResponseBody { get; set; }
+
///
/// The response headers.
///
public global::System.Collections.Generic.Dictionary>? ResponseHeaders { get; set; }
+
///
/// Initializes a new instance of the class.
///
@@ -49,6 +52,103 @@ public ApiException(string message, global::System.Exception? innerException, gl
{
StatusCode = statusCode;
}
+
+ ///
+ /// Constructs an instance whose runtime type matches the response status code when the typed exception hierarchy is enabled. Always returns a plain when the hierarchy is disabled.
+ ///
+ /// The HTTP status code of the response.
+ /// The error message.
+ /// An inner exception, when one is available.
+ /// The response headers; consulted for 429 Retry-After parsing when present.
+ public static global::Vapi.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException = null,
+ global::System.Collections.Generic.IDictionary>? responseHeaders = null)
+ {
+ return new global::Vapi.ApiException(message, innerException, statusCode);
+ }
+
+ ///
+ /// Convenience overload that constructs an with response body and headers populated.
+ ///
+ public static global::Vapi.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException,
+ string? responseBody,
+ global::System.Collections.Generic.Dictionary>? responseHeaders)
+ {
+ var exception = global::Vapi.ApiException.Create(statusCode, message, innerException, responseHeaders);
+ exception.ResponseBody = responseBody;
+ exception.ResponseHeaders = responseHeaders;
+ return exception;
+ }
+
+ ///
+ /// Parses a Retry-After response header (delta-seconds or HTTP-date) into a .
+ /// Returns null when the header is missing or unparseable. Public so consumer code that observes
+ /// directly can recover the value without re-implementing the parser.
+ ///
+ public static global::System.TimeSpan? TryParseRetryAfter(
+ global::System.Collections.Generic.IDictionary>? headers)
+ {
+ if (headers == null)
+ {
+ return null;
+ }
+
+ global::System.Collections.Generic.IEnumerable? values = null;
+ foreach (var entry in headers)
+ {
+ if (string.Equals(entry.Key, "Retry-After", global::System.StringComparison.OrdinalIgnoreCase))
+ {
+ values = entry.Value;
+ break;
+ }
+ }
+
+ if (values == null)
+ {
+ return null;
+ }
+
+ string? raw = null;
+ foreach (var value in values)
+ {
+ if (!string.IsNullOrWhiteSpace(value))
+ {
+ raw = value.Trim();
+ break;
+ }
+ }
+
+ if (string.IsNullOrEmpty(raw))
+ {
+ return null;
+ }
+
+ if (int.TryParse(
+ raw,
+ global::System.Globalization.NumberStyles.Integer,
+ global::System.Globalization.CultureInfo.InvariantCulture,
+ out var seconds) && seconds >= 0)
+ {
+ return global::System.TimeSpan.FromSeconds(seconds);
+ }
+
+ if (global::System.DateTimeOffset.TryParse(
+ raw,
+ global::System.Globalization.CultureInfo.InvariantCulture,
+ global::System.Globalization.DateTimeStyles.AssumeUniversal | global::System.Globalization.DateTimeStyles.AdjustToUniversal,
+ out var when))
+ {
+ var delta = when - global::System.DateTimeOffset.UtcNow;
+ return delta > global::System.TimeSpan.Zero ? delta : global::System.TimeSpan.Zero;
+ }
+
+ return null;
+ }
}
///
@@ -88,5 +188,39 @@ public ApiException(string message, global::System.Net.HttpStatusCode statusCode
public ApiException(string message, global::System.Exception? innerException, global::System.Net.HttpStatusCode statusCode) : base(message, innerException, statusCode)
{
}
+
+ ///
+ /// Constructs an whose runtime type matches the response status code when the typed exception hierarchy is enabled.
+ ///
+ /// The HTTP status code of the response.
+ /// The error message.
+ /// An inner exception, when one is available.
+ /// The response headers; consulted for 429 Retry-After parsing when present.
+ public static new global::Vapi.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException = null,
+ global::System.Collections.Generic.IDictionary>? responseHeaders = null)
+ {
+ return new global::Vapi.ApiException(message, innerException, statusCode);
+ }
+
+ ///
+ /// Convenience overload that constructs an with response body, object, and headers populated.
+ ///
+ public static global::Vapi.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException,
+ string? responseBody,
+ T? responseObject,
+ global::System.Collections.Generic.Dictionary>? responseHeaders)
+ {
+ var exception = global::Vapi.ApiException.Create(statusCode, message, innerException, responseHeaders);
+ exception.ResponseBody = responseBody;
+ exception.ResponseObject = responseObject;
+ exception.ResponseHeaders = responseHeaders;
+ return exception;
+ }
}
}
\ No newline at end of file
diff --git a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerCreate.g.cs
index 8c2af33..3e9425c 100644
--- a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerCreate.g.cs
@@ -392,17 +392,16 @@ request.Filename is null
__exception_400 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -436,17 +435,15 @@ request.Filename is null
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -483,17 +480,15 @@ request.Filename is null
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
@@ -873,17 +868,16 @@ request.Filename is null
__exception_400 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -913,17 +907,15 @@ request.Filename is null
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -956,17 +948,15 @@ request.Filename is null
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
@@ -1316,17 +1306,16 @@ request.Filename is null
__exception_400 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -1360,17 +1349,15 @@ request.Filename is null
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -1407,17 +1394,15 @@ request.Filename is null
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindAll.g.cs
index 0fb7996..51edbb5 100644
--- a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindAll.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindAll.g.cs
@@ -359,17 +359,15 @@ partial void ProcessFileControllerFindAllResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -406,17 +404,15 @@ partial void ProcessFileControllerFindAllResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindOne.g.cs
index 94b8ef1..d569c6a 100644
--- a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindOne.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindOne.g.cs
@@ -356,17 +356,15 @@ partial void ProcessFileControllerFindOneResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessFileControllerFindOneResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerRemove.g.cs
index 1f673e0..810da18 100644
--- a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerRemove.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerRemove.g.cs
@@ -356,17 +356,15 @@ partial void ProcessFileControllerRemoveResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessFileControllerRemoveResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerUpdate.g.cs
index 5b66d23..93ac0f2 100644
--- a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerUpdate.g.cs
@@ -376,17 +376,15 @@ partial void ProcessFileControllerUpdateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessFileControllerUpdateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerCreate.g.cs
index 5296b7b..0caa09a 100644
--- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerCreate.g.cs
@@ -365,17 +365,15 @@ partial void ProcessInsightControllerCreateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessInsightControllerCreateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindAll.g.cs
index 031c63d..eca86f2 100644
--- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindAll.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindAll.g.cs
@@ -479,17 +479,15 @@ partial void ProcessInsightControllerFindAllResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -526,17 +524,15 @@ partial void ProcessInsightControllerFindAllResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindOne.g.cs
index 1994a04..b87acd1 100644
--- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindOne.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindOne.g.cs
@@ -356,17 +356,15 @@ partial void ProcessInsightControllerFindOneResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessInsightControllerFindOneResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerPreview.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerPreview.g.cs
index e7e8211..128b51c 100644
--- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerPreview.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerPreview.g.cs
@@ -365,17 +365,15 @@ partial void ProcessInsightControllerPreviewResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessInsightControllerPreviewResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRemove.g.cs
index e4fb34c..6d7819f 100644
--- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRemove.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRemove.g.cs
@@ -356,17 +356,15 @@ partial void ProcessInsightControllerRemoveResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessInsightControllerRemoveResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRun.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRun.g.cs
index 908ae78..8565952 100644
--- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRun.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRun.g.cs
@@ -376,17 +376,15 @@ partial void ProcessInsightControllerRunResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessInsightControllerRunResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerUpdate.g.cs
index 8dc8be3..2181985 100644
--- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerUpdate.g.cs
@@ -374,17 +374,15 @@ partial void ProcessInsightControllerUpdateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -421,17 +419,15 @@ partial void ProcessInsightControllerUpdateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerCreate.g.cs
index 44f62f5..b990b68 100644
--- a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerCreate.g.cs
@@ -367,17 +367,15 @@ partial void ProcessScorecardControllerCreateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessScorecardControllerCreateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerGet.g.cs b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerGet.g.cs
index fb37c2f..1e308e0 100644
--- a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerGet.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerGet.g.cs
@@ -356,17 +356,15 @@ partial void ProcessScorecardControllerGetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessScorecardControllerGetResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerGetPaginated.g.cs b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerGetPaginated.g.cs
index dfe2692..593e7de 100644
--- a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerGetPaginated.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerGetPaginated.g.cs
@@ -479,17 +479,15 @@ partial void ProcessScorecardControllerGetPaginatedResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -526,17 +524,15 @@ partial void ProcessScorecardControllerGetPaginatedResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerRemove.g.cs
index 1981f53..c01f6e5 100644
--- a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerRemove.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerRemove.g.cs
@@ -356,17 +356,15 @@ partial void ProcessScorecardControllerRemoveResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessScorecardControllerRemoveResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerUpdate.g.cs
index 2536db6..10d122f 100644
--- a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerUpdate.g.cs
@@ -376,17 +376,15 @@ partial void ProcessScorecardControllerUpdateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessScorecardControllerUpdateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerCreate.g.cs
index 844d65a..c96101c 100644
--- a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerCreate.g.cs
@@ -365,17 +365,15 @@ partial void ProcessPhoneNumberControllerCreateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessPhoneNumberControllerCreateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindAll.g.cs
index 56cbf26..aa2ab6f 100644
--- a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindAll.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindAll.g.cs
@@ -439,17 +439,15 @@ partial void ProcessPhoneNumberControllerFindAllResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -486,17 +484,15 @@ partial void ProcessPhoneNumberControllerFindAllResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindAllPaginated.g.cs b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindAllPaginated.g.cs
index b05a40e..c1c20d3 100644
--- a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindAllPaginated.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindAllPaginated.g.cs
@@ -479,17 +479,15 @@ partial void ProcessPhoneNumberControllerFindAllPaginatedResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -526,17 +524,15 @@ partial void ProcessPhoneNumberControllerFindAllPaginatedResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindOne.g.cs
index a50bde9..220abe1 100644
--- a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindOne.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindOne.g.cs
@@ -356,17 +356,15 @@ partial void ProcessPhoneNumberControllerFindOneResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessPhoneNumberControllerFindOneResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerRemove.g.cs
index ce42a53..82a9274 100644
--- a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerRemove.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerRemove.g.cs
@@ -356,17 +356,15 @@ partial void ProcessPhoneNumberControllerRemoveResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessPhoneNumberControllerRemoveResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerUpdate.g.cs
index 7a09e4e..202d740 100644
--- a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerUpdate.g.cs
@@ -374,17 +374,15 @@ partial void ProcessPhoneNumberControllerUpdateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -421,17 +419,15 @@ partial void ProcessPhoneNumberControllerUpdateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerCreateProviderResource.g.cs b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerCreateProviderResource.g.cs
index 887046b..25aaff0 100644
--- a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerCreateProviderResource.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerCreateProviderResource.g.cs
@@ -377,17 +377,15 @@ partial void ProcessProviderResourceControllerCreateProviderResourceResponseCont
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -424,17 +422,15 @@ partial void ProcessProviderResourceControllerCreateProviderResourceResponseCont
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerDeleteProviderResource.g.cs b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerDeleteProviderResource.g.cs
index 6e1d45f..8d2512f 100644
--- a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerDeleteProviderResource.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerDeleteProviderResource.g.cs
@@ -363,17 +363,16 @@ partial void ProcessProviderResourceControllerDeleteProviderResourceResponseCont
__exception_404 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -407,17 +406,15 @@ partial void ProcessProviderResourceControllerDeleteProviderResourceResponseCont
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -454,17 +451,15 @@ partial void ProcessProviderResourceControllerDeleteProviderResourceResponseCont
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerGetProviderResource.g.cs b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerGetProviderResource.g.cs
index 544c182..79237d7 100644
--- a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerGetProviderResource.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerGetProviderResource.g.cs
@@ -363,17 +363,16 @@ partial void ProcessProviderResourceControllerGetProviderResourceResponseContent
__exception_404 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -407,17 +406,15 @@ partial void ProcessProviderResourceControllerGetProviderResourceResponseContent
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -454,17 +451,15 @@ partial void ProcessProviderResourceControllerGetProviderResourceResponseContent
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerGetProviderResourcesPaginated.g.cs b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerGetProviderResourcesPaginated.g.cs
index f8f1b4f..aceb24a 100644
--- a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerGetProviderResourcesPaginated.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerGetProviderResourcesPaginated.g.cs
@@ -507,17 +507,15 @@ partial void ProcessProviderResourceControllerGetProviderResourcesPaginatedRespo
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -554,17 +552,15 @@ partial void ProcessProviderResourceControllerGetProviderResourcesPaginatedRespo
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerUpdateProviderResource.g.cs b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerUpdateProviderResource.g.cs
index 7b771f9..f522c2a 100644
--- a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerUpdateProviderResource.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerUpdateProviderResource.g.cs
@@ -363,17 +363,16 @@ partial void ProcessProviderResourceControllerUpdateProviderResourceResponseCont
__exception_404 = __ex;
}
- throw new global::Vapi.ApiException(
+
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -407,17 +406,15 @@ partial void ProcessProviderResourceControllerUpdateProviderResourceResponseCont
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -454,17 +451,15 @@ partial void ProcessProviderResourceControllerUpdateProviderResourceResponseCont
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerCreate.g.cs
index 42e01eb..d263993 100644
--- a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerCreate.g.cs
@@ -367,17 +367,15 @@ partial void ProcessSessionControllerCreateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessSessionControllerCreateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerFindAllPaginated.g.cs b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerFindAllPaginated.g.cs
index 078b18e..5ed7493 100644
--- a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerFindAllPaginated.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerFindAllPaginated.g.cs
@@ -655,17 +655,15 @@ partial void ProcessSessionControllerFindAllPaginatedResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -702,17 +700,15 @@ partial void ProcessSessionControllerFindAllPaginatedResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerFindOne.g.cs
index d044852..ef7cc1e 100644
--- a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerFindOne.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerFindOne.g.cs
@@ -356,17 +356,15 @@ partial void ProcessSessionControllerFindOneResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessSessionControllerFindOneResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerRemove.g.cs
index bd13e95..6a87005 100644
--- a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerRemove.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerRemove.g.cs
@@ -356,17 +356,15 @@ partial void ProcessSessionControllerRemoveResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessSessionControllerRemoveResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerUpdate.g.cs
index 4743d05..6cabf5a 100644
--- a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerUpdate.g.cs
@@ -376,17 +376,15 @@ partial void ProcessSessionControllerUpdateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessSessionControllerUpdateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerCreate.g.cs
index 7df11f4..fc295cc 100644
--- a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerCreate.g.cs
@@ -367,17 +367,15 @@ partial void ProcessSquadControllerCreateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessSquadControllerCreateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerFindAll.g.cs
index 01d458c..ccf3e61 100644
--- a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerFindAll.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerFindAll.g.cs
@@ -439,17 +439,15 @@ partial void ProcessSquadControllerFindAllResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -486,17 +484,15 @@ partial void ProcessSquadControllerFindAllResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerFindOne.g.cs
index 28d251b..62916bc 100644
--- a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerFindOne.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerFindOne.g.cs
@@ -356,17 +356,15 @@ partial void ProcessSquadControllerFindOneResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessSquadControllerFindOneResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerRemove.g.cs
index e6f2498..3785a21 100644
--- a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerRemove.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerRemove.g.cs
@@ -356,17 +356,15 @@ partial void ProcessSquadControllerRemoveResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessSquadControllerRemoveResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerUpdate.g.cs
index 3be36fc..725fbd8 100644
--- a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerUpdate.g.cs
@@ -376,17 +376,15 @@ partial void ProcessSquadControllerUpdateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessSquadControllerUpdateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerCreate.g.cs
index 9ce844d..d8efdba 100644
--- a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerCreate.g.cs
@@ -367,17 +367,15 @@ partial void ProcessStructuredOutputControllerCreateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessStructuredOutputControllerCreateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerFindAll.g.cs
index 6582034..d2acdd6 100644
--- a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerFindAll.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerFindAll.g.cs
@@ -489,17 +489,15 @@ partial void ProcessStructuredOutputControllerFindAllResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -536,17 +534,15 @@ partial void ProcessStructuredOutputControllerFindAllResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerFindOne.g.cs
index 0f900d7..7d52ab3 100644
--- a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerFindOne.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerFindOne.g.cs
@@ -356,17 +356,15 @@ partial void ProcessStructuredOutputControllerFindOneResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessStructuredOutputControllerFindOneResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerRemove.g.cs
index 304ca88..a5751cd 100644
--- a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerRemove.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerRemove.g.cs
@@ -356,17 +356,15 @@ partial void ProcessStructuredOutputControllerRemoveResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessStructuredOutputControllerRemoveResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerRun.g.cs b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerRun.g.cs
index 374b841..f225f1e 100644
--- a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerRun.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerRun.g.cs
@@ -367,17 +367,15 @@ partial void ProcessStructuredOutputControllerRunResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessStructuredOutputControllerRunResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerUpdate.g.cs
index 5985835..3db5f33 100644
--- a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerUpdate.g.cs
@@ -388,17 +388,15 @@ partial void ProcessStructuredOutputControllerUpdateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -435,17 +433,15 @@ partial void ProcessStructuredOutputControllerUpdateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerCreate.g.cs
index e2a677f..4995658 100644
--- a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerCreate.g.cs
@@ -365,17 +365,15 @@ partial void ProcessToolControllerCreateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessToolControllerCreateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerFindAll.g.cs
index 3ffb98b..c588c48 100644
--- a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerFindAll.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerFindAll.g.cs
@@ -439,17 +439,15 @@ partial void ProcessToolControllerFindAllResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -486,17 +484,15 @@ partial void ProcessToolControllerFindAllResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerFindOne.g.cs
index 09bd97c..401064a 100644
--- a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerFindOne.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerFindOne.g.cs
@@ -356,17 +356,15 @@ partial void ProcessToolControllerFindOneResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessToolControllerFindOneResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerRemove.g.cs
index 528ba8d..c4e8652 100644
--- a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerRemove.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerRemove.g.cs
@@ -356,17 +356,15 @@ partial void ProcessToolControllerRemoveResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessToolControllerRemoveResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerUpdate.g.cs
index c0d1e19..ac7a9b8 100644
--- a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerUpdate.g.cs
@@ -374,17 +374,15 @@ partial void ProcessToolControllerUpdateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -421,17 +419,15 @@ partial void ProcessToolControllerUpdateResponseContent(
{
}
- throw new global::Vapi.ApiException(
+ throw global::Vapi.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}