From 93d24474c21a75a020928312ba31d45d3cccf37e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 24 May 2026 04:13:37 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...lyticsClient.AnalyticsControllerQuery.g.cs | 24 ++-- ...tantsClient.AssistantControllerCreate.g.cs | 24 ++-- ...antsClient.AssistantControllerFindAll.g.cs | 24 ++-- ...antsClient.AssistantControllerFindOne.g.cs | 24 ++-- ...tantsClient.AssistantControllerRemove.g.cs | 24 ++-- ...tantsClient.AssistantControllerUpdate.g.cs | 24 ++-- ...tControllerAssistantRecordingDownload.g.cs | 63 ++++---- ...allArtifactControllerCallLogsDownload.g.cs | 63 ++++---- ...ctControllerCustomerRecordingDownload.g.cs | 63 ++++---- ...tifactControllerMonoRecordingDownload.g.cs | 63 ++++---- ...nt.CallArtifactControllerPcapDownload.g.cs | 63 ++++---- ...factControllerStereoRecordingDownload.g.cs | 63 ++++---- ...ifactControllerVideoRecordingDownload.g.cs | 63 ++++---- ...Vapi.CallsClient.CallControllerCreate.g.cs | 24 ++-- ...lsClient.CallControllerDeleteCallData.g.cs | 24 ++-- ...api.CallsClient.CallControllerFindAll.g.cs | 24 ++-- ...api.CallsClient.CallControllerFindOne.g.cs | 24 ++-- ...Vapi.CallsClient.CallControllerUpdate.g.cs | 24 ++-- ...paignsClient.CampaignControllerCreate.g.cs | 24 ++-- ...aignsClient.CampaignControllerFindAll.g.cs | 24 ++-- ...aignsClient.CampaignControllerFindOne.g.cs | 24 ++-- ...paignsClient.CampaignControllerRemove.g.cs | 24 ++-- ...paignsClient.CampaignControllerUpdate.g.cs | 24 ++-- ....ChatsClient.ChatControllerCreateChat.g.cs | 24 ++-- ...Client.ChatControllerCreateOpenAIChat.g.cs | 24 ++-- ....ChatsClient.ChatControllerDeleteChat.g.cs | 24 ++-- ...api.ChatsClient.ChatControllerGetChat.g.cs | 24 ++-- ...i.ChatsClient.ChatControllerListChats.g.cs | 24 ++-- .../Vapi.EvalClient.EvalControllerCreate.g.cs | 24 ++-- .../Vapi.EvalClient.EvalControllerGet.g.cs | 24 ++-- ...EvalClient.EvalControllerGetPaginated.g.cs | 24 ++-- .../Vapi.EvalClient.EvalControllerGetRun.g.cs | 24 ++-- ...Client.EvalControllerGetRunsPaginated.g.cs | 24 ++-- .../Vapi.EvalClient.EvalControllerRemove.g.cs | 24 ++-- ...pi.EvalClient.EvalControllerRemoveRun.g.cs | 24 ++-- .../Vapi.EvalClient.EvalControllerRun.g.cs | 24 ++-- .../Vapi.EvalClient.EvalControllerUpdate.g.cs | 24 ++-- src/libs/Vapi/Generated/Vapi.Exceptions.g.cs | 134 ++++++++++++++++++ ...Vapi.FilesClient.FileControllerCreate.g.cs | 111 +++++++-------- ...api.FilesClient.FileControllerFindAll.g.cs | 24 ++-- ...api.FilesClient.FileControllerFindOne.g.cs | 24 ++-- ...Vapi.FilesClient.FileControllerRemove.g.cs | 24 ++-- ...Vapi.FilesClient.FileControllerUpdate.g.cs | 24 ++-- ...InsightClient.InsightControllerCreate.g.cs | 24 ++-- ...nsightClient.InsightControllerFindAll.g.cs | 24 ++-- ...nsightClient.InsightControllerFindOne.g.cs | 24 ++-- ...nsightClient.InsightControllerPreview.g.cs | 24 ++-- ...InsightClient.InsightControllerRemove.g.cs | 24 ++-- ...pi.InsightClient.InsightControllerRun.g.cs | 24 ++-- ...InsightClient.InsightControllerUpdate.g.cs | 24 ++-- ...ecardClient.ScorecardControllerCreate.g.cs | 24 ++-- ...corecardClient.ScorecardControllerGet.g.cs | 24 ++-- ...lient.ScorecardControllerGetPaginated.g.cs | 24 ++-- ...ecardClient.ScorecardControllerRemove.g.cs | 24 ++-- ...ecardClient.ScorecardControllerUpdate.g.cs | 24 ++-- ...ersClient.PhoneNumberControllerCreate.g.cs | 24 ++-- ...rsClient.PhoneNumberControllerFindAll.g.cs | 24 ++-- ...PhoneNumberControllerFindAllPaginated.g.cs | 24 ++-- ...rsClient.PhoneNumberControllerFindOne.g.cs | 24 ++-- ...ersClient.PhoneNumberControllerRemove.g.cs | 24 ++-- ...ersClient.PhoneNumberControllerUpdate.g.cs | 24 ++-- ...ourceControllerCreateProviderResource.g.cs | 24 ++-- ...ourceControllerDeleteProviderResource.g.cs | 37 +++-- ...ResourceControllerGetProviderResource.g.cs | 37 +++-- ...ntrollerGetProviderResourcesPaginated.g.cs | 24 ++-- ...ourceControllerUpdateProviderResource.g.cs | 37 +++-- ...essionsClient.SessionControllerCreate.g.cs | 24 ++-- ...ent.SessionControllerFindAllPaginated.g.cs | 24 ++-- ...ssionsClient.SessionControllerFindOne.g.cs | 24 ++-- ...essionsClient.SessionControllerRemove.g.cs | 24 ++-- ...essionsClient.SessionControllerUpdate.g.cs | 24 ++-- ...pi.SquadsClient.SquadControllerCreate.g.cs | 24 ++-- ...i.SquadsClient.SquadControllerFindAll.g.cs | 24 ++-- ...i.SquadsClient.SquadControllerFindOne.g.cs | 24 ++-- ...pi.SquadsClient.SquadControllerRemove.g.cs | 24 ++-- ...pi.SquadsClient.SquadControllerUpdate.g.cs | 24 ++-- ...ient.StructuredOutputControllerCreate.g.cs | 24 ++-- ...ent.StructuredOutputControllerFindAll.g.cs | 24 ++-- ...ent.StructuredOutputControllerFindOne.g.cs | 24 ++-- ...ient.StructuredOutputControllerRemove.g.cs | 24 ++-- ...sClient.StructuredOutputControllerRun.g.cs | 24 ++-- ...ient.StructuredOutputControllerUpdate.g.cs | 24 ++-- ...Vapi.ToolsClient.ToolControllerCreate.g.cs | 24 ++-- ...api.ToolsClient.ToolControllerFindAll.g.cs | 24 ++-- ...api.ToolsClient.ToolControllerFindOne.g.cs | 24 ++-- ...Vapi.ToolsClient.ToolControllerRemove.g.cs | 24 ++-- ...Vapi.ToolsClient.ToolControllerUpdate.g.cs | 24 ++-- 87 files changed, 1176 insertions(+), 1421 deletions(-) diff --git a/src/libs/Vapi/Generated/Vapi.AnalyticsClient.AnalyticsControllerQuery.g.cs b/src/libs/Vapi/Generated/Vapi.AnalyticsClient.AnalyticsControllerQuery.g.cs index 94a001b1..56ae6e37 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 ea04f54d..56cf522e 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 31bb1814..b4028f6b 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 786d88cc..5d91caf8 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 501d7e4c..415939f6 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 cd4bf5d4..674dae90 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 e21f723e..de91d504 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 22419613..fd0daa79 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 f9c14a97..05ee1b5f 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 018a2acc..07247526 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 d1f909a6..793c2d54 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 64797a93..3781c70d 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 81649bf7..29bbda0b 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 7e41807d..d2adfd33 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 11b97429..7b862eae 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 cdd42fff..0ddc21ac 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 0ea0ec16..8c0ecd6e 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 b6d81cc9..0d864665 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 41c7b7c6..602a89c2 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 df77096b..00186041 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 8fcdf3d4..505ab31e 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 c6414739..13234661 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 b25cd08b..1978e541 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 0cd5911b..2d88ab4f 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 4937702a..c10260ad 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 4c78942e..27a55e9c 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 e553f6dc..e03433b0 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 be2cc299..cd9d1095 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 2bac7caf..9a131f51 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 fe213b74..17ac71a8 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 ae737c88..98932ed9 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 e706d792..db4771f3 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 956a41f0..59f6bbf2 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 b6e9b9f2..f0f5f90c 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 c7759578..5f6e3848 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 903b92b7..8e70676e 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 aae43f79..6ca8ef5f 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 456fa801..bd29b77c 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 8c2af337..3e9425c3 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 0fb79961..51edbb58 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 94b8ef17..d569c6ac 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 1f673e06..810da189 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 5b66d237..93ac0f2c 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 5296b7b7..0caa09a2 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 031c63dc..eca86f28 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 1994a04d..b87acd15 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 e7e8211c..128b51cf 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 e4fb34c0..6d7819f6 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 908ae78b..8565952c 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 8dc8be3c..21819857 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 44f62f51..b990b682 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 fb37c2f4..1e308e04 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 dfe2692f..593e7de5 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 1981f534..c01f6e5a 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 2536db62..10d122fb 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 844d65aa..c96101ca 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 56cbf26e..aa2ab6fe 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 b05a40e4..c1c20d3d 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 a50bde9b..220abe1e 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 ce42a536..82a92747 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 7a09e4e8..202d7405 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 887046b5..25aaff01 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 6e1d45fc..8d2512ff 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 544c1824..79237d7f 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 f8f1b4ff..aceb24a0 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 7b771f94..f522c2a7 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 42e01ebf..d2639937 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 078b18ef..5ed74933 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 d0448521..ef7cc1ed 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 bd13e95f..6a870059 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 4743d053..6cabf5ae 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 7df11f46..fc295cc0 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 01d458cc..ccf3e619 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 28d251b8..62916bc7 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 e6f24985..3785a211 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 3be36fc5..725fbd80 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 9ce844da..d8efdba7 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 65820344..d2acdd60 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 0f900d79..7d52ab3a 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 304ca88f..a5751cd4 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 374b841c..f225f1eb 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 5985835c..3db5f338 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 e2a677f3..4995658b 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 3ffb98b5..c588c48c 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 09bd97c9..401064a4 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 528ba8de..c4e86526 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 c0d1e19c..ac7a9b8e 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)); } }