diff --git a/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsList.g.cs index f704df0..0cc0f09 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsList.g.cs @@ -347,17 +347,15 @@ partial void ProcessAccountsListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -394,17 +392,15 @@ partial void ProcessAccountsListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeBillingInvoicesRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeBillingInvoicesRetrieve.g.cs index b2d9344..2c092ee 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeBillingInvoicesRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeBillingInvoicesRetrieve.g.cs @@ -373,17 +373,15 @@ partial void ProcessAccountsMeBillingInvoicesRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -420,17 +418,15 @@ partial void ProcessAccountsMeBillingInvoicesRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeBillingRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeBillingRetrieve.g.cs index a3a4f0a..a6aa9b4 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeBillingRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeBillingRetrieve.g.cs @@ -347,17 +347,15 @@ partial void ProcessAccountsMeBillingRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -394,17 +392,15 @@ partial void ProcessAccountsMeBillingRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeBillingUsageRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeBillingUsageRetrieve.g.cs index 76d71d6..2c718a6 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeBillingUsageRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeBillingUsageRetrieve.g.cs @@ -369,17 +369,15 @@ partial void ProcessAccountsMeBillingUsageRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessAccountsMeBillingUsageRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeRetrieve.g.cs index 2bc17db..56cded7 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeRetrieve.g.cs @@ -347,17 +347,15 @@ partial void ProcessAccountsMeRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -394,17 +392,15 @@ partial void ProcessAccountsMeRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeTtsApiKeysPartialUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeTtsApiKeysPartialUpdate.g.cs index fddb5cd..a9480bf 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeTtsApiKeysPartialUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeTtsApiKeysPartialUpdate.g.cs @@ -367,17 +367,15 @@ partial void ProcessAccountsMeTtsApiKeysPartialUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessAccountsMeTtsApiKeysPartialUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeTtsApiKeysRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeTtsApiKeysRetrieve.g.cs index 58bf8d5..86d97b1 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeTtsApiKeysRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeTtsApiKeysRetrieve.g.cs @@ -347,17 +347,15 @@ partial void ProcessAccountsMeTtsApiKeysRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -394,17 +392,15 @@ partial void ProcessAccountsMeTtsApiKeysRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeUsageCallsRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeUsageCallsRetrieve.g.cs index 9fa3f9c..3446f1f 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeUsageCallsRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeUsageCallsRetrieve.g.cs @@ -457,17 +457,15 @@ partial void ProcessAccountsMeUsageCallsRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -504,17 +502,15 @@ partial void ProcessAccountsMeUsageCallsRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeUsageConcurrencyRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeUsageConcurrencyRetrieve.g.cs index 3ca2f2d..a66aacc 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeUsageConcurrencyRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeUsageConcurrencyRetrieve.g.cs @@ -383,17 +383,15 @@ partial void ProcessAccountsMeUsageConcurrencyRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -430,17 +428,15 @@ partial void ProcessAccountsMeUsageConcurrencyRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AgentsClient.AgentsCallsCreate.g.cs b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsCallsCreate.g.cs index 9f603c2..a013c40 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsCallsCreate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsCallsCreate.g.cs @@ -388,17 +388,15 @@ partial void ProcessAgentsCallsCreateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessAgentsCallsCreateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AgentsClient.AgentsCallsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsCallsList.g.cs index 5d28f11..2fae645 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsCallsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsCallsList.g.cs @@ -378,17 +378,15 @@ partial void ProcessAgentsCallsListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -425,17 +423,15 @@ partial void ProcessAgentsCallsListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AgentsClient.AgentsCreate.g.cs b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsCreate.g.cs index 258629d..fc2037f 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsCreate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsCreate.g.cs @@ -367,17 +367,15 @@ partial void ProcessAgentsCreateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessAgentsCreateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AgentsClient.AgentsDestroy.g.cs b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsDestroy.g.cs index fb437b2..c6757b4 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsDestroy.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsDestroy.g.cs @@ -342,17 +342,15 @@ await AgentsDestroyAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -380,17 +378,15 @@ await AgentsDestroyAsResponseAsync( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AgentsClient.AgentsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsList.g.cs index c0e4eee..3e2539d 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsList.g.cs @@ -389,17 +389,15 @@ partial void ProcessAgentsListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -436,17 +434,15 @@ partial void ProcessAgentsListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AgentsClient.AgentsPartialUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsPartialUpdate.g.cs index ace9979..409dc8e 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsPartialUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsPartialUpdate.g.cs @@ -376,17 +376,15 @@ partial void ProcessAgentsPartialUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessAgentsPartialUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AgentsClient.AgentsRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsRetrieve.g.cs index 4da4c63..323a2e5 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsRetrieve.g.cs @@ -356,17 +356,15 @@ partial void ProcessAgentsRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessAgentsRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesCreate.g.cs b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesCreate.g.cs index 3979512..fb1270b 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesCreate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesCreate.g.cs @@ -376,17 +376,15 @@ partial void ProcessAgentsScheduledBatchesCreateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessAgentsScheduledBatchesCreateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesCreatedCallsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesCreatedCallsList.g.cs index c3122cd..82ca4e5 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesCreatedCallsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesCreatedCallsList.g.cs @@ -387,17 +387,15 @@ partial void ProcessAgentsScheduledBatchesCreatedCallsListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -434,17 +432,15 @@ partial void ProcessAgentsScheduledBatchesCreatedCallsListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesDestroy.g.cs b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesDestroy.g.cs index e72671f..0539f14 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesDestroy.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesDestroy.g.cs @@ -351,17 +351,15 @@ await AgentsScheduledBatchesDestroyAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -389,17 +387,15 @@ await AgentsScheduledBatchesDestroyAsResponseAsync( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesList.g.cs b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesList.g.cs index 26c646b..64cd0f2 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesList.g.cs @@ -378,17 +378,15 @@ partial void ProcessAgentsScheduledBatchesListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -425,17 +423,15 @@ partial void ProcessAgentsScheduledBatchesListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesPartialUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesPartialUpdate.g.cs index a027926..d2ffe5b 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesPartialUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesPartialUpdate.g.cs @@ -385,17 +385,15 @@ partial void ProcessAgentsScheduledBatchesPartialUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -432,17 +430,15 @@ partial void ProcessAgentsScheduledBatchesPartialUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesRetrieve.g.cs index a7c3115..237fc9d 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesRetrieve.g.cs @@ -365,17 +365,15 @@ partial void ProcessAgentsScheduledBatchesRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessAgentsScheduledBatchesRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesScheduledCallsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesScheduledCallsList.g.cs index f4e45cc..371dc4a 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesScheduledCallsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsScheduledBatchesScheduledCallsList.g.cs @@ -397,17 +397,15 @@ partial void ProcessAgentsScheduledBatchesScheduledCallsListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -444,17 +442,15 @@ partial void ProcessAgentsScheduledBatchesScheduledCallsListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AgentsClient.AgentsTelephonyXml.g.cs b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsTelephonyXml.g.cs index 6b23cb0..f739ce2 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsTelephonyXml.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsTelephonyXml.g.cs @@ -374,17 +374,15 @@ partial void ProcessAgentsTelephonyXmlResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -419,17 +417,15 @@ partial void ProcessAgentsTelephonyXmlResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.AgentsClient.AgentsUsageList.g.cs b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsUsageList.g.cs index a1fa6c4..cae28b3 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsUsageList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsUsageList.g.cs @@ -457,17 +457,15 @@ partial void ProcessAgentsUsageListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -504,17 +502,15 @@ partial void ProcessAgentsUsageListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysCreate.g.cs b/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysCreate.g.cs index de3e3f6..73359f2 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysCreate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysCreate.g.cs @@ -367,17 +367,15 @@ partial void ProcessApiKeysCreateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessApiKeysCreateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysDestroy.g.cs b/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysDestroy.g.cs index 1cdd5d0..552c1ac 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysDestroy.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysDestroy.g.cs @@ -342,17 +342,15 @@ await ApiKeysDestroyAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -380,17 +378,15 @@ await ApiKeysDestroyAsResponseAsync( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysList.g.cs b/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysList.g.cs index c4f81f7..be36d1e 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysList.g.cs @@ -369,17 +369,15 @@ partial void ProcessApiKeysListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessApiKeysListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysPartialUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysPartialUpdate.g.cs index a5bd9b1..242d2e3 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysPartialUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysPartialUpdate.g.cs @@ -376,17 +376,15 @@ partial void ProcessApiKeysPartialUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessApiKeysPartialUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysRetrieve.g.cs index df57023..bd410a6 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysRetrieve.g.cs @@ -356,17 +356,15 @@ partial void ProcessApiKeysRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessApiKeysRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysUpdate.g.cs index 8ba9907..9af45c5 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysUpdate.g.cs @@ -376,17 +376,15 @@ partial void ProcessApiKeysUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessApiKeysUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesCreate.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesCreate.g.cs index b22d003..f338464 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesCreate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesCreate.g.cs @@ -367,17 +367,15 @@ partial void ProcessCallThrottlesCreateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCallThrottlesCreateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesDestroy.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesDestroy.g.cs index 78c25c8..843557e 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesDestroy.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesDestroy.g.cs @@ -342,17 +342,15 @@ await CallThrottlesDestroyAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -380,17 +378,15 @@ await CallThrottlesDestroyAsResponseAsync( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesList.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesList.g.cs index 42d6b3e..0a67301 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesList.g.cs @@ -369,17 +369,15 @@ partial void ProcessCallThrottlesListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCallThrottlesListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesPartialUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesPartialUpdate.g.cs index 28690eb..912df3d 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesPartialUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesPartialUpdate.g.cs @@ -376,17 +376,15 @@ partial void ProcessCallThrottlesPartialUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCallThrottlesPartialUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesRetrieve.g.cs index 9dc0373..f0cefd1 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesRetrieve.g.cs @@ -356,17 +356,15 @@ partial void ProcessCallThrottlesRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCallThrottlesRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesUpdate.g.cs index 6dfc827..9086bbd 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallThrottlesClient.CallThrottlesUpdate.g.cs @@ -376,17 +376,15 @@ partial void ProcessCallThrottlesUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCallThrottlesUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallsClient.CallsCreate.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsCreate.g.cs index f8b5314..90fa60a 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsCreate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsCreate.g.cs @@ -403,17 +403,15 @@ partial void ProcessCallsCreateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -450,17 +448,15 @@ partial void ProcessCallsCreateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallsClient.CallsDestroy.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsDestroy.g.cs index 707b43c..4ee7eef 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsDestroy.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsDestroy.g.cs @@ -342,17 +342,15 @@ await CallsDestroyAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -380,17 +378,15 @@ await CallsDestroyAsResponseAsync( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallsClient.CallsEventsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsEventsList.g.cs index 24a472b..ed526ac 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsEventsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsEventsList.g.cs @@ -402,17 +402,15 @@ partial void ProcessCallsEventsListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -449,17 +447,15 @@ partial void ProcessCallsEventsListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallsClient.CallsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsList.g.cs index d166d56..b5f8b47 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsList.g.cs @@ -487,17 +487,15 @@ partial void ProcessCallsListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -534,17 +532,15 @@ partial void ProcessCallsListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallsClient.CallsMessagesList.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsMessagesList.g.cs index 3a882d9..ac6d3ad 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsMessagesList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsMessagesList.g.cs @@ -392,17 +392,15 @@ partial void ProcessCallsMessagesListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -439,17 +437,15 @@ partial void ProcessCallsMessagesListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallsClient.CallsRecordingRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsRecordingRetrieve.g.cs index 1d65a6a..cd7468f 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsRecordingRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsRecordingRetrieve.g.cs @@ -345,17 +345,16 @@ partial void ProcessCallsRecordingRetrieveResponseContent( __exception_302 = __ex; } - throw new global::Ultravox.ApiException( + + throw global::Ultravox.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)); } try @@ -385,17 +384,15 @@ partial void ProcessCallsRecordingRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -694,17 +691,16 @@ partial void ProcessCallsRecordingRetrieveResponseContent( __exception_302 = __ex; } - throw new global::Ultravox.ApiException( + + throw global::Ultravox.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 (__effectiveReadResponseAsString) @@ -732,16 +728,15 @@ partial void ProcessCallsRecordingRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: null, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -776,17 +771,15 @@ partial void ProcessCallsRecordingRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallsClient.CallsRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsRetrieve.g.cs index fec89aa..2dc7656 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsRetrieve.g.cs @@ -356,17 +356,15 @@ partial void ProcessCallsRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCallsRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallsClient.CallsSipLogsRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsSipLogsRetrieve.g.cs index ebf10b4..e106db2 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsSipLogsRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsSipLogsRetrieve.g.cs @@ -338,17 +338,16 @@ await CallsSipLogsRetrieveAsResponseAsync( __exception_302 = __ex; } - throw new global::Ultravox.ApiException( + + throw global::Ultravox.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 == 404) @@ -371,17 +370,16 @@ await CallsSipLogsRetrieveAsResponseAsync( __exception_404 = __ex; } - throw new global::Ultravox.ApiException( + + throw global::Ultravox.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 ((int)__response.StatusCode == 425) @@ -404,17 +402,16 @@ await CallsSipLogsRetrieveAsResponseAsync( __exception_425 = __ex; } - throw new global::Ultravox.ApiException( + + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_425 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_425, - statusCode: __response.StatusCode) - { - ResponseBody = __content_425, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_425, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -441,17 +438,15 @@ await CallsSipLogsRetrieveAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 CallsSipLogsRetrieveAsResponseAsync( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallsClient.CallsStagesList.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesList.g.cs index c4c0c05..c0dd13d 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesList.g.cs @@ -378,17 +378,15 @@ partial void ProcessCallsStagesListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -425,17 +423,15 @@ partial void ProcessCallsStagesListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallsClient.CallsStagesMessagesAudioRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesMessagesAudioRetrieve.g.cs index 1590226..fbf0e93 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesMessagesAudioRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesMessagesAudioRetrieve.g.cs @@ -360,17 +360,15 @@ await CallsStagesMessagesAudioRetrieveAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -398,17 +396,15 @@ await CallsStagesMessagesAudioRetrieveAsResponseAsync( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallsClient.CallsStagesMessagesList.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesMessagesList.g.cs index 05df9f6..17e42ad 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesMessagesList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesMessagesList.g.cs @@ -387,17 +387,15 @@ partial void ProcessCallsStagesMessagesListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -434,17 +432,15 @@ partial void ProcessCallsStagesMessagesListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallsClient.CallsStagesRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesRetrieve.g.cs index 0a490c3..e4667fe 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesRetrieve.g.cs @@ -365,17 +365,15 @@ partial void ProcessCallsStagesRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCallsStagesRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallsClient.CallsStagesToolsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesToolsList.g.cs index da14895..48101a6 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesToolsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesToolsList.g.cs @@ -365,17 +365,15 @@ partial void ProcessCallsStagesToolsListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCallsStagesToolsListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallsClient.CallsToolsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsToolsList.g.cs index cd00d84..26a5bd1 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsToolsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsToolsList.g.cs @@ -356,17 +356,15 @@ partial void ProcessCallsToolsListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCallsToolsListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CallsClient.SendDataMessageToCall.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.SendDataMessageToCall.g.cs index 56fcb4c..3e2cc9d 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.SendDataMessageToCall.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.SendDataMessageToCall.g.cs @@ -362,17 +362,15 @@ await SendDataMessageToCallAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -400,17 +398,15 @@ await SendDataMessageToCallAsResponseAsync( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CorporaClient.CorporaCreate.g.cs b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaCreate.g.cs index ee7ab31..f205b99 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaCreate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaCreate.g.cs @@ -367,17 +367,15 @@ partial void ProcessCorporaCreateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCorporaCreateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CorporaClient.CorporaDestroy.g.cs b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaDestroy.g.cs index c023661..be86d9f 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaDestroy.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaDestroy.g.cs @@ -342,17 +342,15 @@ await CorporaDestroyAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -380,17 +378,15 @@ await CorporaDestroyAsResponseAsync( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CorporaClient.CorporaList.g.cs b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaList.g.cs index db8896c..908113a 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaList.g.cs @@ -369,17 +369,15 @@ partial void ProcessCorporaListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCorporaListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CorporaClient.CorporaPartialUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaPartialUpdate.g.cs index 7cbce0a..34b50b4 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaPartialUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaPartialUpdate.g.cs @@ -376,17 +376,15 @@ partial void ProcessCorporaPartialUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCorporaPartialUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CorporaClient.CorporaQuery.g.cs b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaQuery.g.cs index 8ada432..4c57155 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaQuery.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaQuery.g.cs @@ -376,17 +376,15 @@ partial void ProcessCorporaQueryResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCorporaQueryResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CorporaClient.CorporaRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaRetrieve.g.cs index 7308978..721d627 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaRetrieve.g.cs @@ -356,17 +356,15 @@ partial void ProcessCorporaRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCorporaRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesCreate.g.cs b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesCreate.g.cs index 31baa30..31d7843 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesCreate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesCreate.g.cs @@ -376,17 +376,15 @@ partial void ProcessCorporaSourcesCreateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCorporaSourcesCreateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesDestroy.g.cs b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesDestroy.g.cs index 7e86aa6..0d1ce79 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesDestroy.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesDestroy.g.cs @@ -351,17 +351,15 @@ await CorporaSourcesDestroyAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -389,17 +387,15 @@ await CorporaSourcesDestroyAsResponseAsync( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesDocumentsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesDocumentsList.g.cs index 9701398..dccf114 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesDocumentsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesDocumentsList.g.cs @@ -387,17 +387,15 @@ partial void ProcessCorporaSourcesDocumentsListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -434,17 +432,15 @@ partial void ProcessCorporaSourcesDocumentsListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesDocumentsRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesDocumentsRetrieve.g.cs index 1ac92f1..d10b2ad 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesDocumentsRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesDocumentsRetrieve.g.cs @@ -374,17 +374,15 @@ partial void ProcessCorporaSourcesDocumentsRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCorporaSourcesDocumentsRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesList.g.cs b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesList.g.cs index d921f89..c189307 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesList.g.cs @@ -378,17 +378,15 @@ partial void ProcessCorporaSourcesListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -425,17 +423,15 @@ partial void ProcessCorporaSourcesListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesPartialUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesPartialUpdate.g.cs index e0a94a7..5ce43e7 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesPartialUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesPartialUpdate.g.cs @@ -385,17 +385,15 @@ partial void ProcessCorporaSourcesPartialUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -432,17 +430,15 @@ partial void ProcessCorporaSourcesPartialUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesRetrieve.g.cs index beda65d..a6a02e7 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesRetrieve.g.cs @@ -365,17 +365,15 @@ partial void ProcessCorporaSourcesRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCorporaSourcesRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesUpdate.g.cs index 05d1685..f2787f9 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaSourcesUpdate.g.cs @@ -385,17 +385,15 @@ partial void ProcessCorporaSourcesUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -432,17 +430,15 @@ partial void ProcessCorporaSourcesUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CorporaClient.CorporaUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaUpdate.g.cs index 0aa7af1..8342155 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaUpdate.g.cs @@ -376,17 +376,15 @@ partial void ProcessCorporaUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCorporaUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.CorporaClient.CorporaUploadsCreate.g.cs b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaUploadsCreate.g.cs index f970a3a..0cde865 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaUploadsCreate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaUploadsCreate.g.cs @@ -376,17 +376,15 @@ partial void ProcessCorporaUploadsCreateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessCorporaUploadsCreateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.DeletedCallsClient.DeletedCallsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.DeletedCallsClient.DeletedCallsList.g.cs index cd3d34a..82d623d 100644 --- a/src/libs/Ultravox/Generated/Ultravox.DeletedCallsClient.DeletedCallsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.DeletedCallsClient.DeletedCallsList.g.cs @@ -477,17 +477,15 @@ partial void ProcessDeletedCallsListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -524,17 +522,15 @@ partial void ProcessDeletedCallsListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.DeletedCallsClient.DeletedCallsRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.DeletedCallsClient.DeletedCallsRetrieve.g.cs index ffcc9bd..cbfad84 100644 --- a/src/libs/Ultravox/Generated/Ultravox.DeletedCallsClient.DeletedCallsRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.DeletedCallsClient.DeletedCallsRetrieve.g.cs @@ -356,17 +356,15 @@ partial void ProcessDeletedCallsRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessDeletedCallsRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.Exceptions.g.cs b/src/libs/Ultravox/Generated/Ultravox.Exceptions.g.cs index 170e6eb..9b5efd0 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Exceptions.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.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::Ultravox.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Ultravox.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body and headers populated. + /// + public static global::Ultravox.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException, + string? responseBody, + global::System.Collections.Generic.Dictionary>? responseHeaders) + { + var exception = global::Ultravox.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::Ultravox.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Ultravox.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body, object, and headers populated. + /// + public static global::Ultravox.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::Ultravox.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/Ultravox/Generated/Ultravox.ModelsClient.ModelsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.ModelsClient.ModelsList.g.cs index c425ff2..348027c 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ModelsClient.ModelsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ModelsClient.ModelsList.g.cs @@ -369,17 +369,15 @@ partial void ProcessModelsListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessModelsListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.Realtime.Exceptions.g.cs b/src/libs/Ultravox/Generated/Ultravox.Realtime.Exceptions.g.cs index 72b00e7..e7b8c42 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Realtime.Exceptions.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Realtime.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::Ultravox.Realtime.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Ultravox.Realtime.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body and headers populated. + /// + public static global::Ultravox.Realtime.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException, + string? responseBody, + global::System.Collections.Generic.Dictionary>? responseHeaders) + { + var exception = global::Ultravox.Realtime.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::Ultravox.Realtime.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Ultravox.Realtime.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body, object, and headers populated. + /// + public static global::Ultravox.Realtime.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::Ultravox.Realtime.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/Ultravox/Generated/Ultravox.SchemaClient.SchemaRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.SchemaClient.SchemaRetrieve.g.cs index 0c32541..06c84ed 100644 --- a/src/libs/Ultravox/Generated/Ultravox.SchemaClient.SchemaRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.SchemaClient.SchemaRetrieve.g.cs @@ -371,17 +371,15 @@ partial void ProcessSchemaRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessSchemaRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.SipClient.SipPartialUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.SipClient.SipPartialUpdate.g.cs index f696ad4..a85b370 100644 --- a/src/libs/Ultravox/Generated/Ultravox.SipClient.SipPartialUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.SipClient.SipPartialUpdate.g.cs @@ -367,17 +367,15 @@ partial void ProcessSipPartialUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessSipPartialUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsCreate.g.cs b/src/libs/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsCreate.g.cs index 9336bf1..063c9de 100644 --- a/src/libs/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsCreate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsCreate.g.cs @@ -367,17 +367,15 @@ partial void ProcessSipRegistrationsCreateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessSipRegistrationsCreateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsDestroy.g.cs b/src/libs/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsDestroy.g.cs index be4b924..46abe01 100644 --- a/src/libs/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsDestroy.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsDestroy.g.cs @@ -342,17 +342,15 @@ await SipRegistrationsDestroyAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -380,17 +378,15 @@ await SipRegistrationsDestroyAsResponseAsync( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsList.g.cs index e371612..b4c1ee8 100644 --- a/src/libs/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsList.g.cs @@ -369,17 +369,15 @@ partial void ProcessSipRegistrationsListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessSipRegistrationsListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsPartialUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsPartialUpdate.g.cs index 5d6461f..fc24932 100644 --- a/src/libs/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsPartialUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsPartialUpdate.g.cs @@ -376,17 +376,15 @@ partial void ProcessSipRegistrationsPartialUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessSipRegistrationsPartialUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsRetrieve.g.cs index 1c25d5f..90adfd5 100644 --- a/src/libs/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.SipClient.SipRegistrationsRetrieve.g.cs @@ -356,17 +356,15 @@ partial void ProcessSipRegistrationsRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessSipRegistrationsRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.SipClient.SipRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.SipClient.SipRetrieve.g.cs index 2a321d0..12dbe5b 100644 --- a/src/libs/Ultravox/Generated/Ultravox.SipClient.SipRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.SipClient.SipRetrieve.g.cs @@ -347,17 +347,15 @@ partial void ProcessSipRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -394,17 +392,15 @@ partial void ProcessSipRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsPlivoCreate.g.cs b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsPlivoCreate.g.cs index d349a78..c95e04b 100644 --- a/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsPlivoCreate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsPlivoCreate.g.cs @@ -367,17 +367,15 @@ partial void ProcessTelephonyConfigsPlivoCreateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessTelephonyConfigsPlivoCreateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsPlivoDestroy.g.cs b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsPlivoDestroy.g.cs index a340b3e..ffff486 100644 --- a/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsPlivoDestroy.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsPlivoDestroy.g.cs @@ -333,17 +333,15 @@ await TelephonyConfigsPlivoDestroyAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -371,17 +369,15 @@ await TelephonyConfigsPlivoDestroyAsResponseAsync( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsPlivoPartialUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsPlivoPartialUpdate.g.cs index c782f4d..6333b2f 100644 --- a/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsPlivoPartialUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsPlivoPartialUpdate.g.cs @@ -367,17 +367,15 @@ partial void ProcessTelephonyConfigsPlivoPartialUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessTelephonyConfigsPlivoPartialUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsPlivoRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsPlivoRetrieve.g.cs index c77ccb7..0d53832 100644 --- a/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsPlivoRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsPlivoRetrieve.g.cs @@ -347,17 +347,15 @@ partial void ProcessTelephonyConfigsPlivoRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -394,17 +392,15 @@ partial void ProcessTelephonyConfigsPlivoRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTelnyxCreate.g.cs b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTelnyxCreate.g.cs index 561c6c1..447ed0a 100644 --- a/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTelnyxCreate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTelnyxCreate.g.cs @@ -367,17 +367,15 @@ partial void ProcessTelephonyConfigsTelnyxCreateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessTelephonyConfigsTelnyxCreateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTelnyxDestroy.g.cs b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTelnyxDestroy.g.cs index 780f62e..6a6bf52 100644 --- a/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTelnyxDestroy.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTelnyxDestroy.g.cs @@ -333,17 +333,15 @@ await TelephonyConfigsTelnyxDestroyAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -371,17 +369,15 @@ await TelephonyConfigsTelnyxDestroyAsResponseAsync( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTelnyxPartialUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTelnyxPartialUpdate.g.cs index 8c6639c..a3d087b 100644 --- a/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTelnyxPartialUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTelnyxPartialUpdate.g.cs @@ -367,17 +367,15 @@ partial void ProcessTelephonyConfigsTelnyxPartialUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessTelephonyConfigsTelnyxPartialUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTelnyxRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTelnyxRetrieve.g.cs index 568bade..750ccdd 100644 --- a/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTelnyxRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTelnyxRetrieve.g.cs @@ -347,17 +347,15 @@ partial void ProcessTelephonyConfigsTelnyxRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -394,17 +392,15 @@ partial void ProcessTelephonyConfigsTelnyxRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTwilioCreate.g.cs b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTwilioCreate.g.cs index c252644..3957c8d 100644 --- a/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTwilioCreate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTwilioCreate.g.cs @@ -367,17 +367,15 @@ partial void ProcessTelephonyConfigsTwilioCreateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessTelephonyConfigsTwilioCreateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTwilioDestroy.g.cs b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTwilioDestroy.g.cs index 7d55b1c..862e8a2 100644 --- a/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTwilioDestroy.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTwilioDestroy.g.cs @@ -333,17 +333,15 @@ await TelephonyConfigsTwilioDestroyAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -371,17 +369,15 @@ await TelephonyConfigsTwilioDestroyAsResponseAsync( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTwilioPartialUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTwilioPartialUpdate.g.cs index 3250694..453befa 100644 --- a/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTwilioPartialUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTwilioPartialUpdate.g.cs @@ -367,17 +367,15 @@ partial void ProcessTelephonyConfigsTwilioPartialUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessTelephonyConfigsTwilioPartialUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTwilioRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTwilioRetrieve.g.cs index 491a4a4..259af19 100644 --- a/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTwilioRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.TelephonyConfigsClient.TelephonyConfigsTwilioRetrieve.g.cs @@ -347,17 +347,15 @@ partial void ProcessTelephonyConfigsTwilioRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -394,17 +392,15 @@ partial void ProcessTelephonyConfigsTwilioRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.ToolsClient.ToolsCreate.g.cs b/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsCreate.g.cs index b287f8b..c9537a7 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsCreate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsCreate.g.cs @@ -367,17 +367,15 @@ partial void ProcessToolsCreateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessToolsCreateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.ToolsClient.ToolsDestroy.g.cs b/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsDestroy.g.cs index d3860ca..7291935 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsDestroy.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsDestroy.g.cs @@ -342,17 +342,15 @@ await ToolsDestroyAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -380,17 +378,15 @@ await ToolsDestroyAsResponseAsync( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.ToolsClient.ToolsHistoryList.g.cs b/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsHistoryList.g.cs index 8d1a50a..0d57700 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsHistoryList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsHistoryList.g.cs @@ -378,17 +378,15 @@ partial void ProcessToolsHistoryListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -425,17 +423,15 @@ partial void ProcessToolsHistoryListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.ToolsClient.ToolsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsList.g.cs index 8e66607..672393a 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsList.g.cs @@ -403,17 +403,15 @@ partial void ProcessToolsListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -450,17 +448,15 @@ partial void ProcessToolsListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.ToolsClient.ToolsRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsRetrieve.g.cs index ecbd23c..f1f9829 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsRetrieve.g.cs @@ -356,17 +356,15 @@ partial void ProcessToolsRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessToolsRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.ToolsClient.ToolsTestCreate.g.cs b/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsTestCreate.g.cs index c279738..b701791 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsTestCreate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsTestCreate.g.cs @@ -349,18 +349,17 @@ partial void ProcessToolsTestCreateResponseContent( __exception_default = __ex; } - throw new global::Ultravox.ApiException( + + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_default ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_default, - statusCode: __response.StatusCode) - { - ResponseBody = __content_default, - ResponseObject = __value_default, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_default, + responseObject: __value_default, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -392,17 +391,15 @@ partial void ProcessToolsTestCreateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -437,17 +434,15 @@ partial void ProcessToolsTestCreateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.ToolsClient.ToolsUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsUpdate.g.cs index 65da4f3..e568019 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsUpdate.g.cs @@ -376,17 +376,15 @@ partial void ProcessToolsUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessToolsUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.VoicesClient.PreviewVoice.g.cs b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.PreviewVoice.g.cs index 08d78f4..6c0f925 100644 --- a/src/libs/Ultravox/Generated/Ultravox.VoicesClient.PreviewVoice.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.PreviewVoice.g.cs @@ -360,18 +360,17 @@ partial void ProcessPreviewVoiceResponseContent( __exception_400 = __ex; } - throw new global::Ultravox.ApiException( + + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } try @@ -401,17 +400,15 @@ partial void ProcessPreviewVoiceResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -723,18 +720,17 @@ partial void ProcessPreviewVoiceResponseContent( __exception_400 = __ex; } - throw new global::Ultravox.ApiException( + + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -762,16 +758,15 @@ partial void ProcessPreviewVoiceResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: null, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -806,17 +801,15 @@ partial void ProcessPreviewVoiceResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.VoicesClient.VoicesCreate.g.cs b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesCreate.g.cs index 61bba72..eea5929 100644 --- a/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesCreate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesCreate.g.cs @@ -442,17 +442,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -489,17 +487,15 @@ request.Filename is null { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -954,17 +950,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -997,17 +991,15 @@ request.Filename is null { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1417,17 +1409,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -1464,17 +1454,15 @@ request.Filename is null { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.VoicesClient.VoicesDestroy.g.cs b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesDestroy.g.cs index 24c1681..073d0f3 100644 --- a/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesDestroy.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesDestroy.g.cs @@ -342,17 +342,15 @@ await VoicesDestroyAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -380,17 +378,15 @@ await VoicesDestroyAsResponseAsync( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.VoicesClient.VoicesList.g.cs b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesList.g.cs index 847a892..ad405e4 100644 --- a/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesList.g.cs @@ -419,17 +419,15 @@ partial void ProcessVoicesListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -466,17 +464,15 @@ partial void ProcessVoicesListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.VoicesClient.VoicesPartialUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesPartialUpdate.g.cs index 689c147..fbf0992 100644 --- a/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesPartialUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesPartialUpdate.g.cs @@ -376,17 +376,15 @@ partial void ProcessVoicesPartialUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessVoicesPartialUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.VoicesClient.VoicesPreviewRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesPreviewRetrieve.g.cs index 270bf41..3acaa5a 100644 --- a/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesPreviewRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesPreviewRetrieve.g.cs @@ -345,17 +345,16 @@ partial void ProcessVoicesPreviewRetrieveResponseContent( __exception_302 = __ex; } - throw new global::Ultravox.ApiException( + + throw global::Ultravox.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 == 400) @@ -382,18 +381,17 @@ partial void ProcessVoicesPreviewRetrieveResponseContent( __exception_400 = __ex; } - throw new global::Ultravox.ApiException( + + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } try @@ -423,17 +421,15 @@ partial void ProcessVoicesPreviewRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -732,17 +728,16 @@ partial void ProcessVoicesPreviewRetrieveResponseContent( __exception_302 = __ex; } - throw new global::Ultravox.ApiException( + + throw global::Ultravox.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 == 400) @@ -769,18 +764,17 @@ partial void ProcessVoicesPreviewRetrieveResponseContent( __exception_400 = __ex; } - throw new global::Ultravox.ApiException( + + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -808,16 +802,15 @@ partial void ProcessVoicesPreviewRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: null, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -852,17 +845,15 @@ partial void ProcessVoicesPreviewRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.VoicesClient.VoicesRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesRetrieve.g.cs index a7368e3..4172953 100644 --- a/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesRetrieve.g.cs @@ -356,17 +356,15 @@ partial void ProcessVoicesRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessVoicesRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.VoicesClient.VoicesUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesUpdate.g.cs index fa46366..b2062bf 100644 --- a/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesUpdate.g.cs @@ -376,17 +376,15 @@ partial void ProcessVoicesUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessVoicesUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksCreate.g.cs b/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksCreate.g.cs index 972f943..0dde16f 100644 --- a/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksCreate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksCreate.g.cs @@ -367,17 +367,15 @@ partial void ProcessWebhooksCreateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessWebhooksCreateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksDestroy.g.cs b/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksDestroy.g.cs index 41ee2c3..ca86329 100644 --- a/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksDestroy.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksDestroy.g.cs @@ -342,17 +342,15 @@ await WebhooksDestroyAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -380,17 +378,15 @@ await WebhooksDestroyAsResponseAsync( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksList.g.cs b/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksList.g.cs index f515224..4c92f00 100644 --- a/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksList.g.cs @@ -379,17 +379,15 @@ partial void ProcessWebhooksListResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -426,17 +424,15 @@ partial void ProcessWebhooksListResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksPartialUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksPartialUpdate.g.cs index b04539b..2391296 100644 --- a/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksPartialUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksPartialUpdate.g.cs @@ -376,17 +376,15 @@ partial void ProcessWebhooksPartialUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessWebhooksPartialUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksRetrieve.g.cs index 5e94684..e929571 100644 --- a/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksRetrieve.g.cs @@ -356,17 +356,15 @@ partial void ProcessWebhooksRetrieveResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessWebhooksRetrieveResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksUpdate.g.cs b/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksUpdate.g.cs index 1d95b06..659bfe0 100644 --- a/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksUpdate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksUpdate.g.cs @@ -376,17 +376,15 @@ partial void ProcessWebhooksUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessWebhooksUpdateResponseContent( { } - throw new global::Ultravox.ApiException( + throw global::Ultravox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } }