diff --git a/src/libs/Helicone/Generated/Helicone.AgentClient.CreateAndEscalateThread.g.cs b/src/libs/Helicone/Generated/Helicone.AgentClient.CreateAndEscalateThread.g.cs index 4ed9340b..098279cc 100644 --- a/src/libs/Helicone/Generated/Helicone.AgentClient.CreateAndEscalateThread.g.cs +++ b/src/libs/Helicone/Generated/Helicone.AgentClient.CreateAndEscalateThread.g.cs @@ -362,17 +362,15 @@ partial void ProcessCreateAndEscalateThreadResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessCreateAndEscalateThreadResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.AgentClient.DeleteThread.g.cs b/src/libs/Helicone/Generated/Helicone.AgentClient.DeleteThread.g.cs index 3f4b4853..0730d522 100644 --- a/src/libs/Helicone/Generated/Helicone.AgentClient.DeleteThread.g.cs +++ b/src/libs/Helicone/Generated/Helicone.AgentClient.DeleteThread.g.cs @@ -371,17 +371,15 @@ partial void ProcessDeleteThreadResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessDeleteThreadResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.AgentClient.EscalateThread.g.cs b/src/libs/Helicone/Generated/Helicone.AgentClient.EscalateThread.g.cs index f2ba5d13..d306c2c3 100644 --- a/src/libs/Helicone/Generated/Helicone.AgentClient.EscalateThread.g.cs +++ b/src/libs/Helicone/Generated/Helicone.AgentClient.EscalateThread.g.cs @@ -371,17 +371,15 @@ partial void ProcessEscalateThreadResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessEscalateThreadResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.AgentClient.Generate.g.cs b/src/libs/Helicone/Generated/Helicone.AgentClient.Generate.g.cs index 6f7f2a62..3992feaf 100644 --- a/src/libs/Helicone/Generated/Helicone.AgentClient.Generate.g.cs +++ b/src/libs/Helicone/Generated/Helicone.AgentClient.Generate.g.cs @@ -380,17 +380,15 @@ partial void ProcessGenerateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -427,17 +425,15 @@ partial void ProcessGenerateResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.AgentClient.GetAllThreads.g.cs b/src/libs/Helicone/Generated/Helicone.AgentClient.GetAllThreads.g.cs index d734a981..35cf39a5 100644 --- a/src/libs/Helicone/Generated/Helicone.AgentClient.GetAllThreads.g.cs +++ b/src/libs/Helicone/Generated/Helicone.AgentClient.GetAllThreads.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetAllThreadsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetAllThreadsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.AgentClient.GetThread.g.cs b/src/libs/Helicone/Generated/Helicone.AgentClient.GetThread.g.cs index 01754d12..39ad38b9 100644 --- a/src/libs/Helicone/Generated/Helicone.AgentClient.GetThread.g.cs +++ b/src/libs/Helicone/Generated/Helicone.AgentClient.GetThread.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetThreadResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetThreadResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.AgentClient.ReopenThread.g.cs b/src/libs/Helicone/Generated/Helicone.AgentClient.ReopenThread.g.cs index 9ebd3fe6..286d27e5 100644 --- a/src/libs/Helicone/Generated/Helicone.AgentClient.ReopenThread.g.cs +++ b/src/libs/Helicone/Generated/Helicone.AgentClient.ReopenThread.g.cs @@ -371,17 +371,15 @@ partial void ProcessReopenThreadResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessReopenThreadResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.AgentClient.SearchDocs.g.cs b/src/libs/Helicone/Generated/Helicone.AgentClient.SearchDocs.g.cs index 16b4ef34..c1fc141b 100644 --- a/src/libs/Helicone/Generated/Helicone.AgentClient.SearchDocs.g.cs +++ b/src/libs/Helicone/Generated/Helicone.AgentClient.SearchDocs.g.cs @@ -382,17 +382,15 @@ partial void ProcessSearchDocsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessSearchDocsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.AgentClient.UpsertThreadMessage.g.cs b/src/libs/Helicone/Generated/Helicone.AgentClient.UpsertThreadMessage.g.cs index 8a25b2c2..5711f33d 100644 --- a/src/libs/Helicone/Generated/Helicone.AgentClient.UpsertThreadMessage.g.cs +++ b/src/libs/Helicone/Generated/Helicone.AgentClient.UpsertThreadMessage.g.cs @@ -391,17 +391,15 @@ partial void ProcessUpsertThreadMessageResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessUpsertThreadMessageResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.CreateAPIKey.g.cs b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.CreateAPIKey.g.cs index 8c62854b..ce001281 100644 --- a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.CreateAPIKey.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.CreateAPIKey.g.cs @@ -382,17 +382,15 @@ partial void ProcessCreateAPIKeyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessCreateAPIKeyResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.CreateProviderKey.g.cs b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.CreateProviderKey.g.cs index 7f1d6fec..3d92f822 100644 --- a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.CreateProviderKey.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.CreateProviderKey.g.cs @@ -382,17 +382,15 @@ partial void ProcessCreateProviderKeyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessCreateProviderKeyResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.CreateProxyKey.g.cs b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.CreateProxyKey.g.cs index 46b08c6a..8a2a9336 100644 --- a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.CreateProxyKey.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.CreateProxyKey.g.cs @@ -382,17 +382,15 @@ partial void ProcessCreateProxyKeyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessCreateProxyKeyResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.DeleteAPIKey.g.cs b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.DeleteAPIKey.g.cs index d653f08d..8ffc9b1d 100644 --- a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.DeleteAPIKey.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.DeleteAPIKey.g.cs @@ -371,17 +371,15 @@ partial void ProcessDeleteAPIKeyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessDeleteAPIKeyResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.DeleteProviderKey.g.cs b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.DeleteProviderKey.g.cs index 3fd4f295..cebb31a7 100644 --- a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.DeleteProviderKey.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.DeleteProviderKey.g.cs @@ -371,17 +371,15 @@ partial void ProcessDeleteProviderKeyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessDeleteProviderKeyResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.GetAPIKeys.g.cs b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.GetAPIKeys.g.cs index 83c23944..7fd336d6 100644 --- a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.GetAPIKeys.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.GetAPIKeys.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetAPIKeysResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetAPIKeysResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.GetProviderKey.g.cs b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.GetProviderKey.g.cs index ab204512..b6e7f735 100644 --- a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.GetProviderKey.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.GetProviderKey.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetProviderKeyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetProviderKeyResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.GetProviderKeys.g.cs b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.GetProviderKeys.g.cs index dc76ce3a..0a2917d6 100644 --- a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.GetProviderKeys.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.GetProviderKeys.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetProviderKeysResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetProviderKeysResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.UpdateAPIKey.g.cs b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.UpdateAPIKey.g.cs index 35d6edb7..b8cc6965 100644 --- a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.UpdateAPIKey.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.UpdateAPIKey.g.cs @@ -391,17 +391,15 @@ partial void ProcessUpdateAPIKeyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessUpdateAPIKeyResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.UpdateProviderKey.g.cs b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.UpdateProviderKey.g.cs index f78e8e43..9d4234c4 100644 --- a/src/libs/Helicone/Generated/Helicone.ApiKeyClient.UpdateProviderKey.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ApiKeyClient.UpdateProviderKey.g.cs @@ -391,17 +391,15 @@ partial void ProcessUpdateProviderKeyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessUpdateProviderKeyResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ComparisonClient.GetModelComparison.g.cs b/src/libs/Helicone/Generated/Helicone.ComparisonClient.GetModelComparison.g.cs index cbd08b98..f0264a3d 100644 --- a/src/libs/Helicone/Generated/Helicone.ComparisonClient.GetModelComparison.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ComparisonClient.GetModelComparison.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetModelComparisonResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetModelComparisonResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.CreditsClient.GetCreditsBalance.g.cs b/src/libs/Helicone/Generated/Helicone.CreditsClient.GetCreditsBalance.g.cs index 7696d226..dc285509 100644 --- a/src/libs/Helicone/Generated/Helicone.CreditsClient.GetCreditsBalance.g.cs +++ b/src/libs/Helicone/Generated/Helicone.CreditsClient.GetCreditsBalance.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetCreditsBalanceResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetCreditsBalanceResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.CreditsClient.GetDiscounts.g.cs b/src/libs/Helicone/Generated/Helicone.CreditsClient.GetDiscounts.g.cs index 330a8808..2ae5fcc6 100644 --- a/src/libs/Helicone/Generated/Helicone.CreditsClient.GetDiscounts.g.cs +++ b/src/libs/Helicone/Generated/Helicone.CreditsClient.GetDiscounts.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetDiscountsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetDiscountsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.CreditsClient.GetSpendBreakdown.g.cs b/src/libs/Helicone/Generated/Helicone.CreditsClient.GetSpendBreakdown.g.cs index 93182c15..87b18fc9 100644 --- a/src/libs/Helicone/Generated/Helicone.CreditsClient.GetSpendBreakdown.g.cs +++ b/src/libs/Helicone/Generated/Helicone.CreditsClient.GetSpendBreakdown.g.cs @@ -394,17 +394,15 @@ partial void ProcessGetSpendBreakdownResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -441,17 +439,15 @@ partial void ProcessGetSpendBreakdownResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.CreditsClient.GetTotalSpend.g.cs b/src/libs/Helicone/Generated/Helicone.CreditsClient.GetTotalSpend.g.cs index 9458add1..488ac4f2 100644 --- a/src/libs/Helicone/Generated/Helicone.CreditsClient.GetTotalSpend.g.cs +++ b/src/libs/Helicone/Generated/Helicone.CreditsClient.GetTotalSpend.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetTotalSpendResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetTotalSpendResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.CreditsClient.ListInvoices.g.cs b/src/libs/Helicone/Generated/Helicone.CreditsClient.ListInvoices.g.cs index 744c09ec..0be0bde4 100644 --- a/src/libs/Helicone/Generated/Helicone.CreditsClient.ListInvoices.g.cs +++ b/src/libs/Helicone/Generated/Helicone.CreditsClient.ListInvoices.g.cs @@ -362,17 +362,15 @@ partial void ProcessListInvoicesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessListInvoicesResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.CreditsClient.ListTokenUsagePayments.g.cs b/src/libs/Helicone/Generated/Helicone.CreditsClient.ListTokenUsagePayments.g.cs index ac210761..b77b0eb7 100644 --- a/src/libs/Helicone/Generated/Helicone.CreditsClient.ListTokenUsagePayments.g.cs +++ b/src/libs/Helicone/Generated/Helicone.CreditsClient.ListTokenUsagePayments.g.cs @@ -384,17 +384,15 @@ partial void ProcessListTokenUsagePaymentsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -431,17 +429,15 @@ partial void ProcessListTokenUsagePaymentsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.CustomerClient.GetCustomerUsage.g.cs b/src/libs/Helicone/Generated/Helicone.CustomerClient.GetCustomerUsage.g.cs index db98e659..234de644 100644 --- a/src/libs/Helicone/Generated/Helicone.CustomerClient.GetCustomerUsage.g.cs +++ b/src/libs/Helicone/Generated/Helicone.CustomerClient.GetCustomerUsage.g.cs @@ -391,17 +391,15 @@ partial void ProcessGetCustomerUsageResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessGetCustomerUsageResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.CustomerClient.GetCustomers.g.cs b/src/libs/Helicone/Generated/Helicone.CustomerClient.GetCustomers.g.cs index 60f951de..e1c3dc9a 100644 --- a/src/libs/Helicone/Generated/Helicone.CustomerClient.GetCustomers.g.cs +++ b/src/libs/Helicone/Generated/Helicone.CustomerClient.GetCustomers.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetCustomersResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetCustomersResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.DashboardClient.GetScoresOverTime.g.cs b/src/libs/Helicone/Generated/Helicone.DashboardClient.GetScoresOverTime.g.cs index 075236aa..d1394041 100644 --- a/src/libs/Helicone/Generated/Helicone.DashboardClient.GetScoresOverTime.g.cs +++ b/src/libs/Helicone/Generated/Helicone.DashboardClient.GetScoresOverTime.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetScoresOverTimeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetScoresOverTimeResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.DatasetClient.AddDataset.g.cs b/src/libs/Helicone/Generated/Helicone.DatasetClient.AddDataset.g.cs index 19dba8d8..c7c71b6b 100644 --- a/src/libs/Helicone/Generated/Helicone.DatasetClient.AddDataset.g.cs +++ b/src/libs/Helicone/Generated/Helicone.DatasetClient.AddDataset.g.cs @@ -382,17 +382,15 @@ partial void ProcessAddDatasetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessAddDatasetResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.DatasetClient.AddHeliconeDataset.g.cs b/src/libs/Helicone/Generated/Helicone.DatasetClient.AddHeliconeDataset.g.cs index 2671a0af..d2b66a01 100644 --- a/src/libs/Helicone/Generated/Helicone.DatasetClient.AddHeliconeDataset.g.cs +++ b/src/libs/Helicone/Generated/Helicone.DatasetClient.AddHeliconeDataset.g.cs @@ -382,17 +382,15 @@ partial void ProcessAddHeliconeDatasetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessAddHeliconeDatasetResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.DatasetClient.AddRandomDataset.g.cs b/src/libs/Helicone/Generated/Helicone.DatasetClient.AddRandomDataset.g.cs index 9c2fc72c..29952779 100644 --- a/src/libs/Helicone/Generated/Helicone.DatasetClient.AddRandomDataset.g.cs +++ b/src/libs/Helicone/Generated/Helicone.DatasetClient.AddRandomDataset.g.cs @@ -382,17 +382,15 @@ partial void ProcessAddRandomDatasetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessAddRandomDatasetResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.DatasetClient.CountHeliconeDatasetRows.g.cs b/src/libs/Helicone/Generated/Helicone.DatasetClient.CountHeliconeDatasetRows.g.cs index d97b24e0..2108ef24 100644 --- a/src/libs/Helicone/Generated/Helicone.DatasetClient.CountHeliconeDatasetRows.g.cs +++ b/src/libs/Helicone/Generated/Helicone.DatasetClient.CountHeliconeDatasetRows.g.cs @@ -371,17 +371,15 @@ partial void ProcessCountHeliconeDatasetRowsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessCountHeliconeDatasetRowsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.DatasetClient.CreateDatasetRow.g.cs b/src/libs/Helicone/Generated/Helicone.DatasetClient.CreateDatasetRow.g.cs index 6b785c4d..b789ca68 100644 --- a/src/libs/Helicone/Generated/Helicone.DatasetClient.CreateDatasetRow.g.cs +++ b/src/libs/Helicone/Generated/Helicone.DatasetClient.CreateDatasetRow.g.cs @@ -400,17 +400,15 @@ partial void ProcessCreateDatasetRowResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -447,17 +445,15 @@ partial void ProcessCreateDatasetRowResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.DatasetClient.DeleteHeliconeDataset.g.cs b/src/libs/Helicone/Generated/Helicone.DatasetClient.DeleteHeliconeDataset.g.cs index 3d97d6b4..fd875d86 100644 --- a/src/libs/Helicone/Generated/Helicone.DatasetClient.DeleteHeliconeDataset.g.cs +++ b/src/libs/Helicone/Generated/Helicone.DatasetClient.DeleteHeliconeDataset.g.cs @@ -371,17 +371,15 @@ partial void ProcessDeleteHeliconeDatasetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessDeleteHeliconeDatasetResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.DatasetClient.GetDataset.g.cs b/src/libs/Helicone/Generated/Helicone.DatasetClient.GetDataset.g.cs index 705d258b..a90dea32 100644 --- a/src/libs/Helicone/Generated/Helicone.DatasetClient.GetDataset.g.cs +++ b/src/libs/Helicone/Generated/Helicone.DatasetClient.GetDataset.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetDatasetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetDatasetResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.DatasetClient.GetDatasets.g.cs b/src/libs/Helicone/Generated/Helicone.DatasetClient.GetDatasets.g.cs index 08ee6bbf..1c4de2cf 100644 --- a/src/libs/Helicone/Generated/Helicone.DatasetClient.GetDatasets.g.cs +++ b/src/libs/Helicone/Generated/Helicone.DatasetClient.GetDatasets.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetDatasetsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetDatasetsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.DatasetClient.InsertDatasetRow.g.cs b/src/libs/Helicone/Generated/Helicone.DatasetClient.InsertDatasetRow.g.cs index be7a0bfc..a7b7eae2 100644 --- a/src/libs/Helicone/Generated/Helicone.DatasetClient.InsertDatasetRow.g.cs +++ b/src/libs/Helicone/Generated/Helicone.DatasetClient.InsertDatasetRow.g.cs @@ -391,17 +391,15 @@ partial void ProcessInsertDatasetRowResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessInsertDatasetRowResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.DatasetClient.MutateDataset.g.cs b/src/libs/Helicone/Generated/Helicone.DatasetClient.MutateDataset.g.cs index 07d50153..ac2e3f4f 100644 --- a/src/libs/Helicone/Generated/Helicone.DatasetClient.MutateDataset.g.cs +++ b/src/libs/Helicone/Generated/Helicone.DatasetClient.MutateDataset.g.cs @@ -391,17 +391,15 @@ partial void ProcessMutateDatasetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessMutateDatasetResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.DatasetClient.MutateHeliconeDataset.g.cs b/src/libs/Helicone/Generated/Helicone.DatasetClient.MutateHeliconeDataset.g.cs index 6d3df268..02d1ee24 100644 --- a/src/libs/Helicone/Generated/Helicone.DatasetClient.MutateHeliconeDataset.g.cs +++ b/src/libs/Helicone/Generated/Helicone.DatasetClient.MutateHeliconeDataset.g.cs @@ -391,17 +391,15 @@ partial void ProcessMutateHeliconeDatasetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessMutateHeliconeDatasetResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.DatasetClient.QueryHeliconeDataset.g.cs b/src/libs/Helicone/Generated/Helicone.DatasetClient.QueryHeliconeDataset.g.cs index f43f0e9c..dc5a71fa 100644 --- a/src/libs/Helicone/Generated/Helicone.DatasetClient.QueryHeliconeDataset.g.cs +++ b/src/libs/Helicone/Generated/Helicone.DatasetClient.QueryHeliconeDataset.g.cs @@ -382,17 +382,15 @@ partial void ProcessQueryHeliconeDatasetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessQueryHeliconeDatasetResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.DatasetClient.QueryHeliconeDatasetRows.g.cs b/src/libs/Helicone/Generated/Helicone.DatasetClient.QueryHeliconeDatasetRows.g.cs index 6e6098f5..65c0f018 100644 --- a/src/libs/Helicone/Generated/Helicone.DatasetClient.QueryHeliconeDatasetRows.g.cs +++ b/src/libs/Helicone/Generated/Helicone.DatasetClient.QueryHeliconeDatasetRows.g.cs @@ -391,17 +391,15 @@ partial void ProcessQueryHeliconeDatasetRowsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessQueryHeliconeDatasetRowsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.DatasetClient.UpdateHeliconeDatasetRequest.g.cs b/src/libs/Helicone/Generated/Helicone.DatasetClient.UpdateHeliconeDatasetRequest.g.cs index 58c062ab..10d3e2b1 100644 --- a/src/libs/Helicone/Generated/Helicone.DatasetClient.UpdateHeliconeDatasetRequest.g.cs +++ b/src/libs/Helicone/Generated/Helicone.DatasetClient.UpdateHeliconeDatasetRequest.g.cs @@ -400,17 +400,15 @@ partial void ProcessUpdateHeliconeDatasetRequestResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -447,17 +445,15 @@ partial void ProcessUpdateHeliconeDatasetRequestResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.EvalsClient.AddEval.g.cs b/src/libs/Helicone/Generated/Helicone.EvalsClient.AddEval.g.cs index ac943563..9d2b39bd 100644 --- a/src/libs/Helicone/Generated/Helicone.EvalsClient.AddEval.g.cs +++ b/src/libs/Helicone/Generated/Helicone.EvalsClient.AddEval.g.cs @@ -391,17 +391,15 @@ partial void ProcessAddEvalResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessAddEvalResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.EvalsClient.GetEvalScores.g.cs b/src/libs/Helicone/Generated/Helicone.EvalsClient.GetEvalScores.g.cs index 91f8007e..0254d7aa 100644 --- a/src/libs/Helicone/Generated/Helicone.EvalsClient.GetEvalScores.g.cs +++ b/src/libs/Helicone/Generated/Helicone.EvalsClient.GetEvalScores.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetEvalScoresResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetEvalScoresResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.EvalsClient.QueryEvals.g.cs b/src/libs/Helicone/Generated/Helicone.EvalsClient.QueryEvals.g.cs index 959bd406..c5204778 100644 --- a/src/libs/Helicone/Generated/Helicone.EvalsClient.QueryEvals.g.cs +++ b/src/libs/Helicone/Generated/Helicone.EvalsClient.QueryEvals.g.cs @@ -382,17 +382,15 @@ partial void ProcessQueryEvalsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessQueryEvalsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.EvalsClient.QueryScoreDistributions.g.cs b/src/libs/Helicone/Generated/Helicone.EvalsClient.QueryScoreDistributions.g.cs index 3b6bef2c..c7fd61a3 100644 --- a/src/libs/Helicone/Generated/Helicone.EvalsClient.QueryScoreDistributions.g.cs +++ b/src/libs/Helicone/Generated/Helicone.EvalsClient.QueryScoreDistributions.g.cs @@ -382,17 +382,15 @@ partial void ProcessQueryScoreDistributionsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessQueryScoreDistributionsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.CreateEvaluator.g.cs b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.CreateEvaluator.g.cs index 4e70d3b0..0121d068 100644 --- a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.CreateEvaluator.g.cs +++ b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.CreateEvaluator.g.cs @@ -382,17 +382,15 @@ partial void ProcessCreateEvaluatorResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessCreateEvaluatorResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.CreateOnlineEvaluator.g.cs b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.CreateOnlineEvaluator.g.cs index 12b8bbba..0b0557bf 100644 --- a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.CreateOnlineEvaluator.g.cs +++ b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.CreateOnlineEvaluator.g.cs @@ -391,17 +391,15 @@ partial void ProcessCreateOnlineEvaluatorResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessCreateOnlineEvaluatorResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.DeleteEvaluator.g.cs b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.DeleteEvaluator.g.cs index 0606d778..7be57910 100644 --- a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.DeleteEvaluator.g.cs +++ b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.DeleteEvaluator.g.cs @@ -371,17 +371,15 @@ partial void ProcessDeleteEvaluatorResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessDeleteEvaluatorResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.DeleteOnlineEvaluator.g.cs b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.DeleteOnlineEvaluator.g.cs index f70e8faa..36853313 100644 --- a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.DeleteOnlineEvaluator.g.cs +++ b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.DeleteOnlineEvaluator.g.cs @@ -380,17 +380,15 @@ partial void ProcessDeleteOnlineEvaluatorResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -427,17 +425,15 @@ partial void ProcessDeleteOnlineEvaluatorResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.GetEvaluator.g.cs b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.GetEvaluator.g.cs index 530820b5..2111edbd 100644 --- a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.GetEvaluator.g.cs +++ b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.GetEvaluator.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetEvaluatorResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetEvaluatorResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.GetEvaluatorStats.g.cs b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.GetEvaluatorStats.g.cs index 04100a68..c5e5210b 100644 --- a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.GetEvaluatorStats.g.cs +++ b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.GetEvaluatorStats.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetEvaluatorStatsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetEvaluatorStatsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.GetExperimentsForEvaluator.g.cs b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.GetExperimentsForEvaluator.g.cs index 0ecc4b70..91fd02ac 100644 --- a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.GetExperimentsForEvaluator.g.cs +++ b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.GetExperimentsForEvaluator.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetExperimentsForEvaluatorResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetExperimentsForEvaluatorResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.GetOnlineEvaluators.g.cs b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.GetOnlineEvaluators.g.cs index ccf73e64..a5045246 100644 --- a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.GetOnlineEvaluators.g.cs +++ b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.GetOnlineEvaluators.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetOnlineEvaluatorsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetOnlineEvaluatorsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.QueryEvaluators.g.cs b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.QueryEvaluators.g.cs index 5fb0416d..86de06b1 100644 --- a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.QueryEvaluators.g.cs +++ b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.QueryEvaluators.g.cs @@ -382,17 +382,15 @@ partial void ProcessQueryEvaluatorsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessQueryEvaluatorsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.TestLLMEvaluator.g.cs b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.TestLLMEvaluator.g.cs index 426d2ddb..94f1ef4e 100644 --- a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.TestLLMEvaluator.g.cs +++ b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.TestLLMEvaluator.g.cs @@ -382,17 +382,15 @@ partial void ProcessTestLLMEvaluatorResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessTestLLMEvaluatorResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.TestLastMileEvaluator.g.cs b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.TestLastMileEvaluator.g.cs index 930e0d8f..dcbd598a 100644 --- a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.TestLastMileEvaluator.g.cs +++ b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.TestLastMileEvaluator.g.cs @@ -382,17 +382,15 @@ partial void ProcessTestLastMileEvaluatorResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessTestLastMileEvaluatorResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.TestPythonEvaluator.g.cs b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.TestPythonEvaluator.g.cs index 73b8fdb2..568b9cd8 100644 --- a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.TestPythonEvaluator.g.cs +++ b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.TestPythonEvaluator.g.cs @@ -382,17 +382,15 @@ partial void ProcessTestPythonEvaluatorResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessTestPythonEvaluatorResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.UpdateEvaluator.g.cs b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.UpdateEvaluator.g.cs index 3c1564d1..e133692f 100644 --- a/src/libs/Helicone/Generated/Helicone.EvaluatorClient.UpdateEvaluator.g.cs +++ b/src/libs/Helicone/Generated/Helicone.EvaluatorClient.UpdateEvaluator.g.cs @@ -391,17 +391,15 @@ partial void ProcessUpdateEvaluatorResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessUpdateEvaluatorResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Exceptions.g.cs b/src/libs/Helicone/Generated/Helicone.Exceptions.g.cs index d926ce3a..e50b913a 100644 --- a/src/libs/Helicone/Generated/Helicone.Exceptions.g.cs +++ b/src/libs/Helicone/Generated/Helicone.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::Helicone.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Helicone.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body and headers populated. + /// + public static global::Helicone.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException, + string? responseBody, + global::System.Collections.Generic.Dictionary>? responseHeaders) + { + var exception = global::Helicone.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::Helicone.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Helicone.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body, object, and headers populated. + /// + public static global::Helicone.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::Helicone.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/Helicone/Generated/Helicone.ExperimentClient.AddManualRowToExperiment.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.AddManualRowToExperiment.g.cs index 4ab94ed2..ec1f83d1 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.AddManualRowToExperiment.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.AddManualRowToExperiment.g.cs @@ -391,17 +391,15 @@ partial void ProcessAddManualRowToExperimentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessAddManualRowToExperimentResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.AddManualRowsToExperimentBatch.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.AddManualRowsToExperimentBatch.g.cs index 64f4a006..044cdb4d 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.AddManualRowsToExperimentBatch.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.AddManualRowsToExperimentBatch.g.cs @@ -391,17 +391,15 @@ partial void ProcessAddManualRowsToExperimentBatchResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessAddManualRowsToExperimentBatchResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateEmptyExperiment.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateEmptyExperiment.g.cs index 9ece6028..0a2dfbd7 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateEmptyExperiment.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateEmptyExperiment.g.cs @@ -362,17 +362,15 @@ partial void ProcessCreateEmptyExperimentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessCreateEmptyExperimentResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentCell.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentCell.g.cs index d221ea12..25fed877 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentCell.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentCell.g.cs @@ -391,17 +391,15 @@ partial void ProcessCreateExperimentCellResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessCreateExperimentCellResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentColumn.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentColumn.g.cs index 5e717eed..b473178f 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentColumn.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentColumn.g.cs @@ -391,17 +391,15 @@ partial void ProcessCreateExperimentColumnResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessCreateExperimentColumnResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentEvaluator.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentEvaluator.g.cs index b5e802a8..f248be96 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentEvaluator.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentEvaluator.g.cs @@ -391,17 +391,15 @@ partial void ProcessCreateExperimentEvaluatorResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessCreateExperimentEvaluatorResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentEvaluatorOld.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentEvaluatorOld.g.cs index 216b8fff..6914b48d 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentEvaluatorOld.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentEvaluatorOld.g.cs @@ -391,17 +391,15 @@ partial void ProcessCreateExperimentEvaluatorOldResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessCreateExperimentEvaluatorOldResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentFromRequest.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentFromRequest.g.cs index ec40c50d..673e6d30 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentFromRequest.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentFromRequest.g.cs @@ -371,17 +371,15 @@ partial void ProcessCreateExperimentFromRequestResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessCreateExperimentFromRequestResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentTableRow.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentTableRow.g.cs index de76712a..da8af2c0 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentTableRow.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentTableRow.g.cs @@ -391,17 +391,15 @@ partial void ProcessCreateExperimentTableRowResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessCreateExperimentTableRowResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentTableRowBatch.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentTableRowBatch.g.cs index b41f277d..49e5e789 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentTableRowBatch.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentTableRowBatch.g.cs @@ -391,17 +391,15 @@ partial void ProcessCreateExperimentTableRowBatchResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessCreateExperimentTableRowBatchResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentTableRowFromDataset.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentTableRowFromDataset.g.cs index 263f9e86..def2f03c 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentTableRowFromDataset.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentTableRowFromDataset.g.cs @@ -380,17 +380,15 @@ partial void ProcessCreateExperimentTableRowFromDatasetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -427,17 +425,15 @@ partial void ProcessCreateExperimentTableRowFromDatasetResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentTableRowWithCellsBatch.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentTableRowWithCellsBatch.g.cs index 33580869..65951162 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentTableRowWithCellsBatch.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateExperimentTableRowWithCellsBatch.g.cs @@ -391,17 +391,15 @@ partial void ProcessCreateExperimentTableRowWithCellsBatchResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessCreateExperimentTableRowWithCellsBatchResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewEmptyExperiment.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewEmptyExperiment.g.cs index b4145a70..503df69d 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewEmptyExperiment.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewEmptyExperiment.g.cs @@ -382,17 +382,15 @@ partial void ProcessCreateNewEmptyExperimentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessCreateNewEmptyExperimentResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewExperiment.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewExperiment.g.cs index c7ab77b2..7dda1778 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewExperiment.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewExperiment.g.cs @@ -382,17 +382,15 @@ partial void ProcessCreateNewExperimentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessCreateNewExperimentResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewExperimentHypothesis.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewExperimentHypothesis.g.cs index 329af91b..3ebab8c5 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewExperimentHypothesis.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewExperimentHypothesis.g.cs @@ -382,17 +382,15 @@ partial void ProcessCreateNewExperimentHypothesisResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessCreateNewExperimentHypothesisResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewExperimentOld.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewExperimentOld.g.cs index 57ca678d..0945790a 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewExperimentOld.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewExperimentOld.g.cs @@ -382,17 +382,15 @@ partial void ProcessCreateNewExperimentOldResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessCreateNewExperimentOldResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewExperimentTable.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewExperimentTable.g.cs index 42e2346a..333f2200 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewExperimentTable.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewExperimentTable.g.cs @@ -382,17 +382,15 @@ partial void ProcessCreateNewExperimentTableResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessCreateNewExperimentTableResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewPromptVersionForExperiment.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewPromptVersionForExperiment.g.cs index 8b8bf415..e1d90e8c 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewPromptVersionForExperiment.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.CreateNewPromptVersionForExperiment.g.cs @@ -391,17 +391,15 @@ partial void ProcessCreateNewPromptVersionForExperimentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessCreateNewPromptVersionForExperimentResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperiment.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperiment.g.cs index 20a30c67..5fc96f9e 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperiment.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperiment.g.cs @@ -371,17 +371,15 @@ partial void ProcessDeleteExperimentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessDeleteExperimentResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperimentEvaluator.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperimentEvaluator.g.cs index 53171490..cf439e65 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperimentEvaluator.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperimentEvaluator.g.cs @@ -380,17 +380,15 @@ partial void ProcessDeleteExperimentEvaluatorResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -427,17 +425,15 @@ partial void ProcessDeleteExperimentEvaluatorResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperimentEvaluatorOld.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperimentEvaluatorOld.g.cs index 0366e8c8..2a2b8145 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperimentEvaluatorOld.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperimentEvaluatorOld.g.cs @@ -380,17 +380,15 @@ partial void ProcessDeleteExperimentEvaluatorOldResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -427,17 +425,15 @@ partial void ProcessDeleteExperimentEvaluatorOldResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperimentTableRow.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperimentTableRow.g.cs index 829f950b..c8deecd9 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperimentTableRow.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperimentTableRow.g.cs @@ -380,17 +380,15 @@ partial void ProcessDeleteExperimentTableRowResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -427,17 +425,15 @@ partial void ProcessDeleteExperimentTableRowResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperimentTableRows.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperimentTableRows.g.cs index c41a99d9..c5357548 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperimentTableRows.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeleteExperimentTableRows.g.cs @@ -391,17 +391,15 @@ partial void ProcessDeleteExperimentTableRowsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessDeleteExperimentTableRowsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeletePromptVersion.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeletePromptVersion.g.cs index 97039415..6b1dc7b0 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeletePromptVersion.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.DeletePromptVersion.g.cs @@ -380,17 +380,15 @@ partial void ProcessDeletePromptVersionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -427,17 +425,15 @@ partial void ProcessDeletePromptVersionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentById.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentById.g.cs index 6d4f5b25..a724deaa 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentById.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentById.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetExperimentByIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetExperimentByIdResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentEvaluators.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentEvaluators.g.cs index 770827f8..322d4474 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentEvaluators.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentEvaluators.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetExperimentEvaluatorsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetExperimentEvaluatorsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentEvaluators2.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentEvaluators2.g.cs index 49403884..53e6f88a 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentEvaluators2.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentEvaluators2.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetExperimentEvaluators2ResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetExperimentEvaluators2ResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentHypothesisScores.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentHypothesisScores.g.cs index 4876ab99..defa6e02 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentHypothesisScores.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentHypothesisScores.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetExperimentHypothesisScoresResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetExperimentHypothesisScoresResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentPromptVersionScores.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentPromptVersionScores.g.cs index abd2b25c..9f385974 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentPromptVersionScores.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentPromptVersionScores.g.cs @@ -380,17 +380,15 @@ partial void ProcessGetExperimentPromptVersionScoresResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -427,17 +425,15 @@ partial void ProcessGetExperimentPromptVersionScoresResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentScore.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentScore.g.cs index 02d41f53..e0d2a156 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentScore.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentScore.g.cs @@ -389,17 +389,15 @@ partial void ProcessGetExperimentScoreResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetExperimentScoreResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentTableById.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentTableById.g.cs index ae48a6d5..243bce13 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentTableById.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentTableById.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetExperimentTableByIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetExperimentTableByIdResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentTableMetadata.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentTableMetadata.g.cs index 59c8daeb..1b21acc7 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentTableMetadata.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentTableMetadata.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetExperimentTableMetadataResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetExperimentTableMetadataResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentTables.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentTables.g.cs index 2645670b..60c4027c 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentTables.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentTables.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetExperimentTablesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetExperimentTablesResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperiments.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperiments.g.cs index 05062a24..2379d6aa 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperiments.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperiments.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetExperimentsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetExperimentsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentsOld.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentsOld.g.cs index 7ecdfff1..292b035f 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentsOld.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetExperimentsOld.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetExperimentsOldResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetExperimentsOldResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetInputKeysForExperiment.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetInputKeysForExperiment.g.cs index c7cba269..65ca8c8d 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetInputKeysForExperiment.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetInputKeysForExperiment.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetInputKeysForExperimentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetInputKeysForExperimentResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetPromptVersionsForExperiment.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetPromptVersionsForExperiment.g.cs index eb8af1b5..ff6087f6 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetPromptVersionsForExperiment.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.GetPromptVersionsForExperiment.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetPromptVersionsForExperimentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetPromptVersionsForExperimentResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.RunExperimentEvaluators.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.RunExperimentEvaluators.g.cs index c1f3ef68..e3927fbf 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.RunExperimentEvaluators.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.RunExperimentEvaluators.g.cs @@ -371,17 +371,15 @@ partial void ProcessRunExperimentEvaluatorsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessRunExperimentEvaluatorsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.RunExperimentEvaluatorsOld.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.RunExperimentEvaluatorsOld.g.cs index 960b3165..b99dd197 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.RunExperimentEvaluatorsOld.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.RunExperimentEvaluatorsOld.g.cs @@ -371,17 +371,15 @@ partial void ProcessRunExperimentEvaluatorsOldResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessRunExperimentEvaluatorsOldResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.RunHypothesis.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.RunHypothesis.g.cs index 0408a115..6cadc658 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.RunHypothesis.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.RunHypothesis.g.cs @@ -391,17 +391,15 @@ partial void ProcessRunHypothesisResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessRunHypothesisResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.ShouldRunEvaluators.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.ShouldRunEvaluators.g.cs index 205898f8..fecc0af7 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.ShouldRunEvaluators.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.ShouldRunEvaluators.g.cs @@ -371,17 +371,15 @@ partial void ProcessShouldRunEvaluatorsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessShouldRunEvaluatorsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.UpdateExperimentCell.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.UpdateExperimentCell.g.cs index bc26d488..4ac90b4b 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.UpdateExperimentCell.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.UpdateExperimentCell.g.cs @@ -391,17 +391,15 @@ partial void ProcessUpdateExperimentCellResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessUpdateExperimentCellResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.UpdateExperimentMeta.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.UpdateExperimentMeta.g.cs index d6c985d4..2bdb4ad3 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.UpdateExperimentMeta.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.UpdateExperimentMeta.g.cs @@ -382,17 +382,15 @@ partial void ProcessUpdateExperimentMetaResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessUpdateExperimentMetaResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ExperimentClient.UpdateExperimentTableRow.g.cs b/src/libs/Helicone/Generated/Helicone.ExperimentClient.UpdateExperimentTableRow.g.cs index f7c6e31b..4345c369 100644 --- a/src/libs/Helicone/Generated/Helicone.ExperimentClient.UpdateExperimentTableRow.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ExperimentClient.UpdateExperimentTableRow.g.cs @@ -391,17 +391,15 @@ partial void ProcessUpdateExperimentTableRowResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessUpdateExperimentTableRowResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.BulkDeleteSavedQueries.g.cs b/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.BulkDeleteSavedQueries.g.cs index 75317ab7..1e0abd58 100644 --- a/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.BulkDeleteSavedQueries.g.cs +++ b/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.BulkDeleteSavedQueries.g.cs @@ -384,17 +384,15 @@ partial void ProcessBulkDeleteSavedQueriesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -431,17 +429,15 @@ partial void ProcessBulkDeleteSavedQueriesResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.CreateSavedQuery.g.cs b/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.CreateSavedQuery.g.cs index 2b712a23..38d33a48 100644 --- a/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.CreateSavedQuery.g.cs +++ b/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.CreateSavedQuery.g.cs @@ -384,17 +384,15 @@ partial void ProcessCreateSavedQueryResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -431,17 +429,15 @@ partial void ProcessCreateSavedQueryResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.DeleteSavedQuery.g.cs b/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.DeleteSavedQuery.g.cs index 2a973b8d..e5a82138 100644 --- a/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.DeleteSavedQuery.g.cs +++ b/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.DeleteSavedQuery.g.cs @@ -373,17 +373,15 @@ partial void ProcessDeleteSavedQueryResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessDeleteSavedQueryResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.DownloadCsv.g.cs b/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.DownloadCsv.g.cs index d687fd36..d6d28a9f 100644 --- a/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.DownloadCsv.g.cs +++ b/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.DownloadCsv.g.cs @@ -384,17 +384,15 @@ partial void ProcessDownloadCsvResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -431,17 +429,15 @@ partial void ProcessDownloadCsvResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.ExecuteSql.g.cs b/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.ExecuteSql.g.cs index b558a13d..8c2ca215 100644 --- a/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.ExecuteSql.g.cs +++ b/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.ExecuteSql.g.cs @@ -384,17 +384,15 @@ partial void ProcessExecuteSqlResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -431,17 +429,15 @@ partial void ProcessExecuteSqlResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.GetClickHouseSchema.g.cs b/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.GetClickHouseSchema.g.cs index 3c1a831f..0346b6f6 100644 --- a/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.GetClickHouseSchema.g.cs +++ b/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.GetClickHouseSchema.g.cs @@ -364,17 +364,15 @@ partial void ProcessGetClickHouseSchemaResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -411,17 +409,15 @@ partial void ProcessGetClickHouseSchemaResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.GetSavedQueries.g.cs b/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.GetSavedQueries.g.cs index e53180f4..03705c4c 100644 --- a/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.GetSavedQueries.g.cs +++ b/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.GetSavedQueries.g.cs @@ -364,17 +364,15 @@ partial void ProcessGetSavedQueriesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -411,17 +409,15 @@ partial void ProcessGetSavedQueriesResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.GetSavedQuery.g.cs b/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.GetSavedQuery.g.cs index 42a7f564..58b31072 100644 --- a/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.GetSavedQuery.g.cs +++ b/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.GetSavedQuery.g.cs @@ -373,17 +373,15 @@ partial void ProcessGetSavedQueryResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetSavedQueryResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.UpdateSavedQuery.g.cs b/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.UpdateSavedQuery.g.cs index 83f1fc65..ac35286b 100644 --- a/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.UpdateSavedQuery.g.cs +++ b/src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.UpdateSavedQuery.g.cs @@ -393,17 +393,15 @@ partial void ProcessUpdateSavedQueryResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -440,17 +438,15 @@ partial void ProcessUpdateSavedQueryResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.IntegrationClient.CreateIntegration.g.cs b/src/libs/Helicone/Generated/Helicone.IntegrationClient.CreateIntegration.g.cs index 2203b5fc..62d91693 100644 --- a/src/libs/Helicone/Generated/Helicone.IntegrationClient.CreateIntegration.g.cs +++ b/src/libs/Helicone/Generated/Helicone.IntegrationClient.CreateIntegration.g.cs @@ -382,17 +382,15 @@ partial void ProcessCreateIntegrationResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessCreateIntegrationResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetIntegration.g.cs b/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetIntegration.g.cs index ad2e0d9e..474964cd 100644 --- a/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetIntegration.g.cs +++ b/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetIntegration.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetIntegrationResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetIntegrationResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetIntegrationByType.g.cs b/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetIntegrationByType.g.cs index a88c7c7c..fcdae0e6 100644 --- a/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetIntegrationByType.g.cs +++ b/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetIntegrationByType.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetIntegrationByTypeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetIntegrationByTypeResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetIntegrations.g.cs b/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetIntegrations.g.cs index 32120925..a0681919 100644 --- a/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetIntegrations.g.cs +++ b/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetIntegrations.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetIntegrationsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetIntegrationsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetSlackChannels.g.cs b/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetSlackChannels.g.cs index c8b2927f..54137613 100644 --- a/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetSlackChannels.g.cs +++ b/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetSlackChannels.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetSlackChannelsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetSlackChannelsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetSlackSettings.g.cs b/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetSlackSettings.g.cs index e2c1f7ce..3c05a427 100644 --- a/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetSlackSettings.g.cs +++ b/src/libs/Helicone/Generated/Helicone.IntegrationClient.GetSlackSettings.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetSlackSettingsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetSlackSettingsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.IntegrationClient.TestStripeMeterEvent.g.cs b/src/libs/Helicone/Generated/Helicone.IntegrationClient.TestStripeMeterEvent.g.cs index a1b66e90..93e71de9 100644 --- a/src/libs/Helicone/Generated/Helicone.IntegrationClient.TestStripeMeterEvent.g.cs +++ b/src/libs/Helicone/Generated/Helicone.IntegrationClient.TestStripeMeterEvent.g.cs @@ -391,17 +391,15 @@ partial void ProcessTestStripeMeterEventResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessTestStripeMeterEventResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.IntegrationClient.UpdateIntegration.g.cs b/src/libs/Helicone/Generated/Helicone.IntegrationClient.UpdateIntegration.g.cs index 0a1f1b05..cf1ddf2e 100644 --- a/src/libs/Helicone/Generated/Helicone.IntegrationClient.UpdateIntegration.g.cs +++ b/src/libs/Helicone/Generated/Helicone.IntegrationClient.UpdateIntegration.g.cs @@ -391,17 +391,15 @@ partial void ProcessUpdateIntegrationResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessUpdateIntegrationResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetActiveUsers.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetActiveUsers.g.cs index 512c8ac8..541679ae 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetActiveUsers.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetActiveUsers.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetActiveUsersResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetActiveUsersResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetAverageLatency.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetAverageLatency.g.cs index d6ca283b..0ec5bb59 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetAverageLatency.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetAverageLatency.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetAverageLatencyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetAverageLatencyResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetAverageTimeToFirstToken.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetAverageTimeToFirstToken.g.cs index aba524ef..fdaaa76e 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetAverageTimeToFirstToken.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetAverageTimeToFirstToken.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetAverageTimeToFirstTokenResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetAverageTimeToFirstTokenResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetAverageTokensPerRequest.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetAverageTokensPerRequest.g.cs index d3b100c6..858ccbea 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetAverageTokensPerRequest.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetAverageTokensPerRequest.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetAverageTokensPerRequestResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetAverageTokensPerRequestResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetCostOverTime.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetCostOverTime.g.cs index 84fb1469..1b47b75f 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetCostOverTime.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetCostOverTime.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetCostOverTimeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetCostOverTimeResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetCountryMetrics.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetCountryMetrics.g.cs index de93f8bc..557bb647 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetCountryMetrics.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetCountryMetrics.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetCountryMetricsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetCountryMetricsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetErrorsOverTime.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetErrorsOverTime.g.cs index c334b9b0..cd758bf7 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetErrorsOverTime.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetErrorsOverTime.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetErrorsOverTimeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetErrorsOverTimeResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetLatencyOverTime.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetLatencyOverTime.g.cs index bbb579f9..f2f4c6e0 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetLatencyOverTime.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetLatencyOverTime.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetLatencyOverTimeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetLatencyOverTimeResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetModelMetrics.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetModelMetrics.g.cs index ea1ca2e5..54f41640 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetModelMetrics.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetModelMetrics.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetModelMetricsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetModelMetricsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetQuantiles.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetQuantiles.g.cs index ff1ec363..714526ec 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetQuantiles.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetQuantiles.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetQuantilesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetQuantilesResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetRequestCount.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetRequestCount.g.cs index 18cadc8f..400b5152 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetRequestCount.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetRequestCount.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetRequestCountResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetRequestCountResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetRequestStatusOverTime.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetRequestStatusOverTime.g.cs index 297f598f..ae1f0b9b 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetRequestStatusOverTime.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetRequestStatusOverTime.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetRequestStatusOverTimeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetRequestStatusOverTimeResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetRequestsOverTime.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetRequestsOverTime.g.cs index fbe4377e..8d55a801 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetRequestsOverTime.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetRequestsOverTime.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetRequestsOverTimeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetRequestsOverTimeResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetThreatsOverTime.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetThreatsOverTime.g.cs index 21e95711..87ab9e74 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetThreatsOverTime.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetThreatsOverTime.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetThreatsOverTimeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetThreatsOverTimeResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTimeToFirstTokenOverTime.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTimeToFirstTokenOverTime.g.cs index d4275af0..0a961e2c 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTimeToFirstTokenOverTime.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTimeToFirstTokenOverTime.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetTimeToFirstTokenOverTimeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetTimeToFirstTokenOverTimeResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTokensOverTime.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTokensOverTime.g.cs index 1a36ad4a..9edf711e 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTokensOverTime.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTokensOverTime.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetTokensOverTimeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetTokensOverTimeResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTotalCost.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTotalCost.g.cs index b1aa3b4b..027ff9f1 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTotalCost.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTotalCost.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetTotalCostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetTotalCostResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTotalRequests.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTotalRequests.g.cs index a3dae1c9..f07bfa6b 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTotalRequests.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTotalRequests.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetTotalRequestsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetTotalRequestsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTotalThreats.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTotalThreats.g.cs index 268442ee..be751967 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTotalThreats.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetTotalThreats.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetTotalThreatsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetTotalThreatsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetUsersOverTime.g.cs b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetUsersOverTime.g.cs index a38c0ea9..d4c5de26 100644 --- a/src/libs/Helicone/Generated/Helicone.MetricsClient.GetUsersOverTime.g.cs +++ b/src/libs/Helicone/Generated/Helicone.MetricsClient.GetUsersOverTime.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetUsersOverTimeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetUsersOverTimeResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ModelRegistryClient.GetModelRegistry.g.cs b/src/libs/Helicone/Generated/Helicone.ModelRegistryClient.GetModelRegistry.g.cs index 2ec735a9..59c740b7 100644 --- a/src/libs/Helicone/Generated/Helicone.ModelRegistryClient.GetModelRegistry.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ModelRegistryClient.GetModelRegistry.g.cs @@ -364,17 +364,15 @@ partial void ProcessGetModelRegistryResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -411,17 +409,15 @@ partial void ProcessGetModelRegistryResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ModelsClient.GetModels.g.cs b/src/libs/Helicone/Generated/Helicone.ModelsClient.GetModels.g.cs index 1e1f881b..35fcea85 100644 --- a/src/libs/Helicone/Generated/Helicone.ModelsClient.GetModels.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ModelsClient.GetModels.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetModelsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetModelsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ModelsClient.GetMultimodalModels.g.cs b/src/libs/Helicone/Generated/Helicone.ModelsClient.GetMultimodalModels.g.cs index 260ee781..aace7e56 100644 --- a/src/libs/Helicone/Generated/Helicone.ModelsClient.GetMultimodalModels.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ModelsClient.GetMultimodalModels.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetMultimodalModelsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetMultimodalModelsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PiClient.AddSession.g.cs b/src/libs/Helicone/Generated/Helicone.PiClient.AddSession.g.cs index 69967a6f..143536ae 100644 --- a/src/libs/Helicone/Generated/Helicone.PiClient.AddSession.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PiClient.AddSession.g.cs @@ -382,17 +382,15 @@ partial void ProcessAddSessionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessAddSessionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PiClient.GetApiKey.g.cs b/src/libs/Helicone/Generated/Helicone.PiClient.GetApiKey.g.cs index d4d56880..94d915dd 100644 --- a/src/libs/Helicone/Generated/Helicone.PiClient.GetApiKey.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PiClient.GetApiKey.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetApiKeyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetApiKeyResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PiClient.GetCostsOverTime.g.cs b/src/libs/Helicone/Generated/Helicone.PiClient.GetCostsOverTime.g.cs index 5c7fbdec..53f21b86 100644 --- a/src/libs/Helicone/Generated/Helicone.PiClient.GetCostsOverTime.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PiClient.GetCostsOverTime.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetCostsOverTimeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetCostsOverTimeResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PiClient.GetOrgName.g.cs b/src/libs/Helicone/Generated/Helicone.PiClient.GetOrgName.g.cs index c5f1221d..956aa565 100644 --- a/src/libs/Helicone/Generated/Helicone.PiClient.GetOrgName.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PiClient.GetOrgName.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetOrgNameResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetOrgNameResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PiClient.GetTotalCosts.g.cs b/src/libs/Helicone/Generated/Helicone.PiClient.GetTotalCosts.g.cs index 9f2677b5..da55d72f 100644 --- a/src/libs/Helicone/Generated/Helicone.PiClient.GetTotalCosts.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PiClient.GetTotalCosts.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetTotalCostsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetTotalCostsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PiClient.PiGetTotalRequests.g.cs b/src/libs/Helicone/Generated/Helicone.PiClient.PiGetTotalRequests.g.cs index 1daf0d58..5674013a 100644 --- a/src/libs/Helicone/Generated/Helicone.PiClient.PiGetTotalRequests.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PiClient.PiGetTotalRequests.g.cs @@ -362,17 +362,15 @@ partial void ProcessPiGetTotalRequestsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessPiGetTotalRequestsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PlaygroundClient.Generate.g.cs b/src/libs/Helicone/Generated/Helicone.PlaygroundClient.Generate.g.cs index 02ea00be..bd3eb1e4 100644 --- a/src/libs/Helicone/Generated/Helicone.PlaygroundClient.Generate.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PlaygroundClient.Generate.g.cs @@ -380,17 +380,15 @@ partial void ProcessGenerateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -427,17 +425,15 @@ partial void ProcessGenerateResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PlaygroundClient.GetRequestsThroughHelicone.g.cs b/src/libs/Helicone/Generated/Helicone.PlaygroundClient.GetRequestsThroughHelicone.g.cs index dc133d6a..f5734f05 100644 --- a/src/libs/Helicone/Generated/Helicone.PlaygroundClient.GetRequestsThroughHelicone.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PlaygroundClient.GetRequestsThroughHelicone.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetRequestsThroughHeliconeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetRequestsThroughHeliconeResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PlaygroundClient.RequestsThroughHelicone.g.cs b/src/libs/Helicone/Generated/Helicone.PlaygroundClient.RequestsThroughHelicone.g.cs index f1b471c8..9a30da05 100644 --- a/src/libs/Helicone/Generated/Helicone.PlaygroundClient.RequestsThroughHelicone.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PlaygroundClient.RequestsThroughHelicone.g.cs @@ -382,17 +382,15 @@ partial void ProcessRequestsThroughHeliconeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessRequestsThroughHeliconeResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.CreatePrompt2025.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.CreatePrompt2025.g.cs index 0c2f7d23..5f12ce98 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.CreatePrompt2025.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.CreatePrompt2025.g.cs @@ -382,17 +382,15 @@ partial void ProcessCreatePrompt2025ResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessCreatePrompt2025ResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.DeletePrompt2025.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.DeletePrompt2025.g.cs index 864006c8..a52904d0 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.DeletePrompt2025.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.DeletePrompt2025.g.cs @@ -371,17 +371,15 @@ partial void ProcessDeletePrompt2025ResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessDeletePrompt2025ResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.DeletePrompt2025Version.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.DeletePrompt2025Version.g.cs index 5c5db1d6..89d9fe28 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.DeletePrompt2025Version.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.DeletePrompt2025Version.g.cs @@ -380,17 +380,15 @@ partial void ProcessDeletePrompt2025VersionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -427,17 +425,15 @@ partial void ProcessDeletePrompt2025VersionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025.g.cs index 44d1dd20..d9196db5 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetPrompt2025ResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetPrompt2025ResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Count.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Count.g.cs index 114dfa5b..3a2073b6 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Count.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Count.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetPrompt2025CountResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetPrompt2025CountResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025EnvironmentVersion.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025EnvironmentVersion.g.cs index 08e3dc31..16cd8784 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025EnvironmentVersion.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025EnvironmentVersion.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetPrompt2025EnvironmentVersionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetPrompt2025EnvironmentVersionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Environments.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Environments.g.cs index 4962989d..5010c44d 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Environments.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Environments.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetPrompt2025EnvironmentsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetPrompt2025EnvironmentsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Inputs.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Inputs.g.cs index 496e3ce1..15c6b26a 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Inputs.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Inputs.g.cs @@ -392,17 +392,15 @@ partial void ProcessGetPrompt2025InputsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetPrompt2025InputsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025ProductionVersion.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025ProductionVersion.g.cs index 33968ab5..aff9cbbf 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025ProductionVersion.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025ProductionVersion.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetPrompt2025ProductionVersionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetPrompt2025ProductionVersionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Tags.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Tags.g.cs index b68edb40..2bb8c9cd 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Tags.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Tags.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetPrompt2025TagsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetPrompt2025TagsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025TotalVersions.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025TotalVersions.g.cs index 5b796323..f2d96cdb 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025TotalVersions.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025TotalVersions.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetPrompt2025TotalVersionsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetPrompt2025TotalVersionsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Version.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Version.g.cs index 075dfc43..efd8e0ce 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Version.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Version.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetPrompt2025VersionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetPrompt2025VersionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025VersionBody.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025VersionBody.g.cs index b16952ff..6c292073 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025VersionBody.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025VersionBody.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetPrompt2025VersionBodyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetPrompt2025VersionBodyResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Versions.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Versions.g.cs index 22dac0d5..19e13a8c 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Versions.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompt2025Versions.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetPrompt2025VersionsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetPrompt2025VersionsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompts2025.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompts2025.g.cs index 151248e2..922aa434 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompts2025.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.GetPrompts2025.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetPrompts2025ResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetPrompts2025ResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.RemoveEnvironmentFromVersion.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.RemoveEnvironmentFromVersion.g.cs index 1f1ddbac..c75ec791 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.RemoveEnvironmentFromVersion.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.RemoveEnvironmentFromVersion.g.cs @@ -382,17 +382,15 @@ partial void ProcessRemoveEnvironmentFromVersionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessRemoveEnvironmentFromVersionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.RenamePrompt2025.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.RenamePrompt2025.g.cs index bd22b984..1705b356 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.RenamePrompt2025.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.RenamePrompt2025.g.cs @@ -391,17 +391,15 @@ partial void ProcessRenamePrompt2025ResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessRenamePrompt2025ResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.SetPromptVersionEnvironment.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.SetPromptVersionEnvironment.g.cs index 03fc3926..aceeef5a 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.SetPromptVersionEnvironment.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.SetPromptVersionEnvironment.g.cs @@ -382,17 +382,15 @@ partial void ProcessSetPromptVersionEnvironmentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessSetPromptVersionEnvironmentResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.UpdatePrompt2025.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.UpdatePrompt2025.g.cs index dc8cc26a..1ae6e5fd 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.UpdatePrompt2025.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.UpdatePrompt2025.g.cs @@ -382,17 +382,15 @@ partial void ProcessUpdatePrompt2025ResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessUpdatePrompt2025ResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.UpdatePrompt2025Tags.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.UpdatePrompt2025Tags.g.cs index 57c6f8cd..98da112e 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025Client.UpdatePrompt2025Tags.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025Client.UpdatePrompt2025Tags.g.cs @@ -391,17 +391,15 @@ partial void ProcessUpdatePrompt2025TagsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessUpdatePrompt2025TagsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025V2Client.GetPrompt2025EnvironmentVersion.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025V2Client.GetPrompt2025EnvironmentVersion.g.cs index d210b387..c518fd94 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025V2Client.GetPrompt2025EnvironmentVersion.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025V2Client.GetPrompt2025EnvironmentVersion.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetPrompt2025EnvironmentVersionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetPrompt2025EnvironmentVersionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025V2Client.GetPrompt2025ProductionVersion.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025V2Client.GetPrompt2025ProductionVersion.g.cs index bd4bf73d..f1d55026 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025V2Client.GetPrompt2025ProductionVersion.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025V2Client.GetPrompt2025ProductionVersion.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetPrompt2025ProductionVersionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetPrompt2025ProductionVersionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.Prompt2025V2Client.GetPrompt2025Version.g.cs b/src/libs/Helicone/Generated/Helicone.Prompt2025V2Client.GetPrompt2025Version.g.cs index 6644c7f0..0638a50d 100644 --- a/src/libs/Helicone/Generated/Helicone.Prompt2025V2Client.GetPrompt2025Version.g.cs +++ b/src/libs/Helicone/Generated/Helicone.Prompt2025V2Client.GetPrompt2025Version.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetPrompt2025VersionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetPrompt2025VersionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PromptClient.CreatePrompt.g.cs b/src/libs/Helicone/Generated/Helicone.PromptClient.CreatePrompt.g.cs index 1d796d1e..2ac86489 100644 --- a/src/libs/Helicone/Generated/Helicone.PromptClient.CreatePrompt.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PromptClient.CreatePrompt.g.cs @@ -382,17 +382,15 @@ partial void ProcessCreatePromptResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessCreatePromptResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PromptClient.CreateSubversion.g.cs b/src/libs/Helicone/Generated/Helicone.PromptClient.CreateSubversion.g.cs index 71ae5982..7b949e8a 100644 --- a/src/libs/Helicone/Generated/Helicone.PromptClient.CreateSubversion.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PromptClient.CreateSubversion.g.cs @@ -391,17 +391,15 @@ partial void ProcessCreateSubversionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessCreateSubversionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PromptClient.CreateSubversionFromUi.g.cs b/src/libs/Helicone/Generated/Helicone.PromptClient.CreateSubversionFromUi.g.cs index 297ae465..b1220337 100644 --- a/src/libs/Helicone/Generated/Helicone.PromptClient.CreateSubversionFromUi.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PromptClient.CreateSubversionFromUi.g.cs @@ -391,17 +391,15 @@ partial void ProcessCreateSubversionFromUiResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessCreateSubversionFromUiResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PromptClient.DeletePrompt.g.cs b/src/libs/Helicone/Generated/Helicone.PromptClient.DeletePrompt.g.cs index 518a2b05..c1cf73ce 100644 --- a/src/libs/Helicone/Generated/Helicone.PromptClient.DeletePrompt.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PromptClient.DeletePrompt.g.cs @@ -357,17 +357,15 @@ await DeletePromptAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -395,17 +393,15 @@ await DeletePromptAsResponseAsync( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PromptClient.DeletePromptVersion.g.cs b/src/libs/Helicone/Generated/Helicone.PromptClient.DeletePromptVersion.g.cs index 071866d9..00f0a507 100644 --- a/src/libs/Helicone/Generated/Helicone.PromptClient.DeletePromptVersion.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PromptClient.DeletePromptVersion.g.cs @@ -371,17 +371,15 @@ partial void ProcessDeletePromptVersionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessDeletePromptVersionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PromptClient.EditPromptVersionLabel.g.cs b/src/libs/Helicone/Generated/Helicone.PromptClient.EditPromptVersionLabel.g.cs index ee778d41..347f07e0 100644 --- a/src/libs/Helicone/Generated/Helicone.PromptClient.EditPromptVersionLabel.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PromptClient.EditPromptVersionLabel.g.cs @@ -391,17 +391,15 @@ partial void ProcessEditPromptVersionLabelResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessEditPromptVersionLabelResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PromptClient.EditPromptVersionTemplate.g.cs b/src/libs/Helicone/Generated/Helicone.PromptClient.EditPromptVersionTemplate.g.cs index 0b6bcd64..16030dc2 100644 --- a/src/libs/Helicone/Generated/Helicone.PromptClient.EditPromptVersionTemplate.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PromptClient.EditPromptVersionTemplate.g.cs @@ -391,17 +391,15 @@ partial void ProcessEditPromptVersionTemplateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessEditPromptVersionTemplateResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PromptClient.GetInputs.g.cs b/src/libs/Helicone/Generated/Helicone.PromptClient.GetInputs.g.cs index 88d592c7..0215b7af 100644 --- a/src/libs/Helicone/Generated/Helicone.PromptClient.GetInputs.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PromptClient.GetInputs.g.cs @@ -391,17 +391,15 @@ partial void ProcessGetInputsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessGetInputsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PromptClient.GetPrompt.g.cs b/src/libs/Helicone/Generated/Helicone.PromptClient.GetPrompt.g.cs index dee4a95c..ba2f652b 100644 --- a/src/libs/Helicone/Generated/Helicone.PromptClient.GetPrompt.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PromptClient.GetPrompt.g.cs @@ -391,17 +391,15 @@ partial void ProcessGetPromptResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessGetPromptResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptExperiments.g.cs b/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptExperiments.g.cs index b33e7323..2284890f 100644 --- a/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptExperiments.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptExperiments.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetPromptExperimentsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetPromptExperimentsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptVersion.g.cs b/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptVersion.g.cs index e36d9819..6a0b4ab3 100644 --- a/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptVersion.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptVersion.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetPromptVersionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetPromptVersionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptVersionTemplates.g.cs b/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptVersionTemplates.g.cs index 2d57fc9b..5fafc086 100644 --- a/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptVersionTemplates.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptVersionTemplates.g.cs @@ -391,17 +391,15 @@ partial void ProcessGetPromptVersionTemplatesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessGetPromptVersionTemplatesResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptVersions.g.cs b/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptVersions.g.cs index 36004adc..728fa6b6 100644 --- a/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptVersions.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptVersions.g.cs @@ -391,17 +391,15 @@ partial void ProcessGetPromptVersionsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessGetPromptVersionsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptVersionsCompiled.g.cs b/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptVersionsCompiled.g.cs index 0b5c461c..b916b38c 100644 --- a/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptVersionsCompiled.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PromptClient.GetPromptVersionsCompiled.g.cs @@ -391,17 +391,15 @@ partial void ProcessGetPromptVersionsCompiledResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessGetPromptVersionsCompiledResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PromptClient.GetPrompts.g.cs b/src/libs/Helicone/Generated/Helicone.PromptClient.GetPrompts.g.cs index f0733300..077b94af 100644 --- a/src/libs/Helicone/Generated/Helicone.PromptClient.GetPrompts.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PromptClient.GetPrompts.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetPromptsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetPromptsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PromptClient.HasPrompts.g.cs b/src/libs/Helicone/Generated/Helicone.PromptClient.HasPrompts.g.cs index a1921581..ba8f555c 100644 --- a/src/libs/Helicone/Generated/Helicone.PromptClient.HasPrompts.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PromptClient.HasPrompts.g.cs @@ -362,17 +362,15 @@ partial void ProcessHasPromptsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessHasPromptsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PromptClient.PromotePromptVersionToProduction.g.cs b/src/libs/Helicone/Generated/Helicone.PromptClient.PromotePromptVersionToProduction.g.cs index 541a8d94..a2ae9e4a 100644 --- a/src/libs/Helicone/Generated/Helicone.PromptClient.PromotePromptVersionToProduction.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PromptClient.PromotePromptVersionToProduction.g.cs @@ -391,17 +391,15 @@ partial void ProcessPromotePromptVersionToProductionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessPromotePromptVersionToProductionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PromptClient.UpdatePromptUserDefinedId.g.cs b/src/libs/Helicone/Generated/Helicone.PromptClient.UpdatePromptUserDefinedId.g.cs index de03eff7..d2d19e35 100644 --- a/src/libs/Helicone/Generated/Helicone.PromptClient.UpdatePromptUserDefinedId.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PromptClient.UpdatePromptUserDefinedId.g.cs @@ -391,17 +391,15 @@ partial void ProcessUpdatePromptUserDefinedIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessUpdatePromptUserDefinedIdResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PropertyClient.GetHiddenProperties.g.cs b/src/libs/Helicone/Generated/Helicone.PropertyClient.GetHiddenProperties.g.cs index 47818e55..92c30dce 100644 --- a/src/libs/Helicone/Generated/Helicone.PropertyClient.GetHiddenProperties.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PropertyClient.GetHiddenProperties.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetHiddenPropertiesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetHiddenPropertiesResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PropertyClient.GetProperties.g.cs b/src/libs/Helicone/Generated/Helicone.PropertyClient.GetProperties.g.cs index 55bf7159..a2063713 100644 --- a/src/libs/Helicone/Generated/Helicone.PropertyClient.GetProperties.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PropertyClient.GetProperties.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetPropertiesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetPropertiesResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PropertyClient.GetPropertiesOverTime.g.cs b/src/libs/Helicone/Generated/Helicone.PropertyClient.GetPropertiesOverTime.g.cs index 3f9a5af0..42dc58b3 100644 --- a/src/libs/Helicone/Generated/Helicone.PropertyClient.GetPropertiesOverTime.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PropertyClient.GetPropertiesOverTime.g.cs @@ -380,17 +380,15 @@ partial void ProcessGetPropertiesOverTimeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -427,17 +425,15 @@ partial void ProcessGetPropertiesOverTimeResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PropertyClient.GetTopCosts.g.cs b/src/libs/Helicone/Generated/Helicone.PropertyClient.GetTopCosts.g.cs index 4c1089fa..a074fe25 100644 --- a/src/libs/Helicone/Generated/Helicone.PropertyClient.GetTopCosts.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PropertyClient.GetTopCosts.g.cs @@ -391,17 +391,15 @@ partial void ProcessGetTopCostsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessGetTopCostsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PropertyClient.GetTopRequests.g.cs b/src/libs/Helicone/Generated/Helicone.PropertyClient.GetTopRequests.g.cs index bbeda4f9..3a719140 100644 --- a/src/libs/Helicone/Generated/Helicone.PropertyClient.GetTopRequests.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PropertyClient.GetTopRequests.g.cs @@ -391,17 +391,15 @@ partial void ProcessGetTopRequestsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessGetTopRequestsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PropertyClient.HideProperty.g.cs b/src/libs/Helicone/Generated/Helicone.PropertyClient.HideProperty.g.cs index fa42af90..b9df6772 100644 --- a/src/libs/Helicone/Generated/Helicone.PropertyClient.HideProperty.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PropertyClient.HideProperty.g.cs @@ -382,17 +382,15 @@ partial void ProcessHidePropertyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessHidePropertyResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PropertyClient.RestoreProperty.g.cs b/src/libs/Helicone/Generated/Helicone.PropertyClient.RestoreProperty.g.cs index 259b81df..ba889532 100644 --- a/src/libs/Helicone/Generated/Helicone.PropertyClient.RestoreProperty.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PropertyClient.RestoreProperty.g.cs @@ -382,17 +382,15 @@ partial void ProcessRestorePropertyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessRestorePropertyResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.PropertyClient.SearchProperties.g.cs b/src/libs/Helicone/Generated/Helicone.PropertyClient.SearchProperties.g.cs index b683e011..57917032 100644 --- a/src/libs/Helicone/Generated/Helicone.PropertyClient.SearchProperties.g.cs +++ b/src/libs/Helicone/Generated/Helicone.PropertyClient.SearchProperties.g.cs @@ -391,17 +391,15 @@ partial void ProcessSearchPropertiesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessSearchPropertiesResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.ProvidersClient.GetProviders.g.cs b/src/libs/Helicone/Generated/Helicone.ProvidersClient.GetProviders.g.cs index 8acc3136..50e5bf30 100644 --- a/src/libs/Helicone/Generated/Helicone.ProvidersClient.GetProviders.g.cs +++ b/src/libs/Helicone/Generated/Helicone.ProvidersClient.GetProviders.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetProvidersResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetProvidersResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.RequestClient.AddScores.g.cs b/src/libs/Helicone/Generated/Helicone.RequestClient.AddScores.g.cs index 51159600..884e5b0c 100644 --- a/src/libs/Helicone/Generated/Helicone.RequestClient.AddScores.g.cs +++ b/src/libs/Helicone/Generated/Helicone.RequestClient.AddScores.g.cs @@ -391,17 +391,15 @@ partial void ProcessAddScoresResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessAddScoresResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.RequestClient.FeedbackRequest.g.cs b/src/libs/Helicone/Generated/Helicone.RequestClient.FeedbackRequest.g.cs index c6d717db..44a34ba9 100644 --- a/src/libs/Helicone/Generated/Helicone.RequestClient.FeedbackRequest.g.cs +++ b/src/libs/Helicone/Generated/Helicone.RequestClient.FeedbackRequest.g.cs @@ -391,17 +391,15 @@ partial void ProcessFeedbackRequestResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessFeedbackRequestResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestAssetById.g.cs b/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestAssetById.g.cs index 9db093e0..1595c8a5 100644 --- a/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestAssetById.g.cs +++ b/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestAssetById.g.cs @@ -380,17 +380,15 @@ partial void ProcessGetRequestAssetByIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -427,17 +425,15 @@ partial void ProcessGetRequestAssetByIdResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestById.g.cs b/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestById.g.cs index 3ec88e77..2898c21e 100644 --- a/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestById.g.cs +++ b/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestById.g.cs @@ -387,17 +387,15 @@ partial void ProcessGetRequestByIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetRequestByIdResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestCount.g.cs b/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestCount.g.cs index 20341330..699278a0 100644 --- a/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestCount.g.cs +++ b/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestCount.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetRequestCountResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetRequestCountResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestInputs.g.cs b/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestInputs.g.cs index e0c3f836..6ed5bdcc 100644 --- a/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestInputs.g.cs +++ b/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestInputs.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetRequestInputsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetRequestInputsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequests.g.cs b/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequests.g.cs index 1cde1232..8e3260be 100644 --- a/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequests.g.cs +++ b/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequests.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetRequestsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetRequestsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestsByIds.g.cs b/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestsByIds.g.cs index a89e774e..3fc293a2 100644 --- a/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestsByIds.g.cs +++ b/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestsByIds.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetRequestsByIdsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetRequestsByIdsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestsClickhouse.g.cs b/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestsClickhouse.g.cs index 51eaf45d..bf2cb3e7 100644 --- a/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestsClickhouse.g.cs +++ b/src/libs/Helicone/Generated/Helicone.RequestClient.GetRequestsClickhouse.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetRequestsClickhouseResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetRequestsClickhouseResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.RequestClient.PutProperty.g.cs b/src/libs/Helicone/Generated/Helicone.RequestClient.PutProperty.g.cs index b3770b46..71fcf7d4 100644 --- a/src/libs/Helicone/Generated/Helicone.RequestClient.PutProperty.g.cs +++ b/src/libs/Helicone/Generated/Helicone.RequestClient.PutProperty.g.cs @@ -391,17 +391,15 @@ partial void ProcessPutPropertyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessPutPropertyResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.SecurityClient.GetSecurity.g.cs b/src/libs/Helicone/Generated/Helicone.SecurityClient.GetSecurity.g.cs index 0abedc1c..e06ab31f 100644 --- a/src/libs/Helicone/Generated/Helicone.SecurityClient.GetSecurity.g.cs +++ b/src/libs/Helicone/Generated/Helicone.SecurityClient.GetSecurity.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetSecurityResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetSecurityResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.SessionClient.GetMetrics.g.cs b/src/libs/Helicone/Generated/Helicone.SessionClient.GetMetrics.g.cs index dc3b2821..a413b5b6 100644 --- a/src/libs/Helicone/Generated/Helicone.SessionClient.GetMetrics.g.cs +++ b/src/libs/Helicone/Generated/Helicone.SessionClient.GetMetrics.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetMetricsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetMetricsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.SessionClient.GetNames.g.cs b/src/libs/Helicone/Generated/Helicone.SessionClient.GetNames.g.cs index 8cc60128..97e04060 100644 --- a/src/libs/Helicone/Generated/Helicone.SessionClient.GetNames.g.cs +++ b/src/libs/Helicone/Generated/Helicone.SessionClient.GetNames.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetNamesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetNamesResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.SessionClient.GetSessionTag.g.cs b/src/libs/Helicone/Generated/Helicone.SessionClient.GetSessionTag.g.cs index 61a688d9..d950b5e2 100644 --- a/src/libs/Helicone/Generated/Helicone.SessionClient.GetSessionTag.g.cs +++ b/src/libs/Helicone/Generated/Helicone.SessionClient.GetSessionTag.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetSessionTagResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetSessionTagResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.SessionClient.GetSessions.g.cs b/src/libs/Helicone/Generated/Helicone.SessionClient.GetSessions.g.cs index 099a41d0..3b654831 100644 --- a/src/libs/Helicone/Generated/Helicone.SessionClient.GetSessions.g.cs +++ b/src/libs/Helicone/Generated/Helicone.SessionClient.GetSessions.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetSessionsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetSessionsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.SessionClient.GetSessionsCount.g.cs b/src/libs/Helicone/Generated/Helicone.SessionClient.GetSessionsCount.g.cs index 26313b82..5a281b72 100644 --- a/src/libs/Helicone/Generated/Helicone.SessionClient.GetSessionsCount.g.cs +++ b/src/libs/Helicone/Generated/Helicone.SessionClient.GetSessionsCount.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetSessionsCountResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetSessionsCountResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.SessionClient.UpdateSessionFeedback.g.cs b/src/libs/Helicone/Generated/Helicone.SessionClient.UpdateSessionFeedback.g.cs index 33edb902..f3b902f0 100644 --- a/src/libs/Helicone/Generated/Helicone.SessionClient.UpdateSessionFeedback.g.cs +++ b/src/libs/Helicone/Generated/Helicone.SessionClient.UpdateSessionFeedback.g.cs @@ -391,17 +391,15 @@ partial void ProcessUpdateSessionFeedbackResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessUpdateSessionFeedbackResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.SessionClient.UpdateSessionTag.g.cs b/src/libs/Helicone/Generated/Helicone.SessionClient.UpdateSessionTag.g.cs index 9784c401..0de6ef3a 100644 --- a/src/libs/Helicone/Generated/Helicone.SessionClient.UpdateSessionTag.g.cs +++ b/src/libs/Helicone/Generated/Helicone.SessionClient.UpdateSessionTag.g.cs @@ -391,17 +391,15 @@ partial void ProcessUpdateSessionTagResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessUpdateSessionTagResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StatusClient.GetAllProviderStatus.g.cs b/src/libs/Helicone/Generated/Helicone.StatusClient.GetAllProviderStatus.g.cs index 0d85c5a3..ec4c2706 100644 --- a/src/libs/Helicone/Generated/Helicone.StatusClient.GetAllProviderStatus.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StatusClient.GetAllProviderStatus.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetAllProviderStatusResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetAllProviderStatusResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StatusClient.GetProviderStatus.g.cs b/src/libs/Helicone/Generated/Helicone.StatusClient.GetProviderStatus.g.cs index 2f36cd26..b949624a 100644 --- a/src/libs/Helicone/Generated/Helicone.StatusClient.GetProviderStatus.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StatusClient.GetProviderStatus.g.cs @@ -383,17 +383,15 @@ partial void ProcessGetProviderStatusResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetProviderStatusResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.AddOns.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.AddOns.g.cs index 3993ec4f..5e5623a4 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.AddOns.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.AddOns.g.cs @@ -371,17 +371,15 @@ partial void ProcessAddOnsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessAddOnsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.CancelSubscription.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.CancelSubscription.g.cs index fb79ba0f..cd57f239 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.CancelSubscription.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.CancelSubscription.g.cs @@ -362,17 +362,15 @@ partial void ProcessCancelSubscriptionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessCancelSubscriptionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.CreateCloudGatewayCheckoutSession.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.CreateCloudGatewayCheckoutSession.g.cs index 710784ef..c9e08637 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.CreateCloudGatewayCheckoutSession.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.CreateCloudGatewayCheckoutSession.g.cs @@ -382,17 +382,15 @@ partial void ProcessCreateCloudGatewayCheckoutSessionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessCreateCloudGatewayCheckoutSessionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.CreateSetupSession.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.CreateSetupSession.g.cs index b4435ae8..a0de940d 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.CreateSetupSession.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.CreateSetupSession.g.cs @@ -382,17 +382,15 @@ partial void ProcessCreateSetupSessionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessCreateSetupSessionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.DeleteAddOns.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.DeleteAddOns.g.cs index b0c72809..522a78c1 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.DeleteAddOns.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.DeleteAddOns.g.cs @@ -371,17 +371,15 @@ partial void ProcessDeleteAddOnsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessDeleteAddOnsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.DisableAutoTopoff.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.DisableAutoTopoff.g.cs index 3eb0c6ec..ab6b3b3b 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.DisableAutoTopoff.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.DisableAutoTopoff.g.cs @@ -362,17 +362,15 @@ partial void ProcessDisableAutoTopoffResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessDisableAutoTopoffResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.GetAutoTopoffSettings.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.GetAutoTopoffSettings.g.cs index 988803f7..aece9284 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.GetAutoTopoffSettings.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.GetAutoTopoffSettings.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetAutoTopoffSettingsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetAutoTopoffSettingsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.GetCostForEvals.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.GetCostForEvals.g.cs index 2b4e52eb..1ed2fb3a 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.GetCostForEvals.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.GetCostForEvals.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetCostForEvalsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetCostForEvalsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.GetCostForExperiments.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.GetCostForExperiments.g.cs index 75cd052c..96413903 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.GetCostForExperiments.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.GetCostForExperiments.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetCostForExperimentsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetCostForExperimentsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.GetCostForPrompts.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.GetCostForPrompts.g.cs index 09017ae7..c98e92e2 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.GetCostForPrompts.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.GetCostForPrompts.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetCostForPromptsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetCostForPromptsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.GetFreeUsage.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.GetFreeUsage.g.cs index 87ba16fa..84f23531 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.GetFreeUsage.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.GetFreeUsage.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetFreeUsageResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetFreeUsageResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.GetPaymentMethods.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.GetPaymentMethods.g.cs index bb7e4fca..9ca88b7a 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.GetPaymentMethods.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.GetPaymentMethods.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetPaymentMethodsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetPaymentMethodsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.GetSubscription.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.GetSubscription.g.cs index 80c3ea63..b7a89154 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.GetSubscription.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.GetSubscription.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetSubscriptionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetSubscriptionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.GetUsageStats.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.GetUsageStats.g.cs index 9c6eefd7..a938b3d5 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.GetUsageStats.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.GetUsageStats.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetUsageStatsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetUsageStatsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.ManageSubscription.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.ManageSubscription.g.cs index 01317120..3cbfd7c7 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.ManageSubscription.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.ManageSubscription.g.cs @@ -360,17 +360,15 @@ partial void ProcessManageSubscriptionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -405,17 +403,15 @@ partial void ProcessManageSubscriptionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.MigrateToPro.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.MigrateToPro.g.cs index 5abb9692..dabc19f4 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.MigrateToPro.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.MigrateToPro.g.cs @@ -360,17 +360,15 @@ partial void ProcessMigrateToProResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -405,17 +403,15 @@ partial void ProcessMigrateToProResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.PreviewInvoice.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.PreviewInvoice.g.cs index 6fad29dc..76013123 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.PreviewInvoice.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.PreviewInvoice.g.cs @@ -362,17 +362,15 @@ partial void ProcessPreviewInvoiceResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessPreviewInvoiceResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.RemovePaymentMethod.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.RemovePaymentMethod.g.cs index 92c77d57..ac928524 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.RemovePaymentMethod.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.RemovePaymentMethod.g.cs @@ -371,17 +371,15 @@ partial void ProcessRemovePaymentMethodResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessRemovePaymentMethodResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.SearchPaymentIntents.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.SearchPaymentIntents.g.cs index 8d6b0318..e6a2ec91 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.SearchPaymentIntents.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.SearchPaymentIntents.g.cs @@ -394,17 +394,15 @@ partial void ProcessSearchPaymentIntentsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -441,17 +439,15 @@ partial void ProcessSearchPaymentIntentsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.UndoCancelSubscription.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.UndoCancelSubscription.g.cs index bd1760e7..a69eca21 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.UndoCancelSubscription.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.UndoCancelSubscription.g.cs @@ -362,17 +362,15 @@ partial void ProcessUndoCancelSubscriptionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessUndoCancelSubscriptionResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.UpdateAutoTopoffSettings.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.UpdateAutoTopoffSettings.g.cs index cab4238f..aa1e175e 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.UpdateAutoTopoffSettings.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.UpdateAutoTopoffSettings.g.cs @@ -382,17 +382,15 @@ partial void ProcessUpdateAutoTopoffSettingsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessUpdateAutoTopoffSettingsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.UpgradeExistingCustomer.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.UpgradeExistingCustomer.g.cs index 82043f41..5913e0d1 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.UpgradeExistingCustomer.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.UpgradeExistingCustomer.g.cs @@ -380,17 +380,15 @@ partial void ProcessUpgradeExistingCustomerResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessUpgradeExistingCustomerResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.UpgradeExistingCustomerToTeamBundle.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.UpgradeExistingCustomerToTeamBundle.g.cs index cc5bb0f0..f753eb4d 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.UpgradeExistingCustomerToTeamBundle.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.UpgradeExistingCustomerToTeamBundle.g.cs @@ -380,17 +380,15 @@ partial void ProcessUpgradeExistingCustomerToTeamBundleResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessUpgradeExistingCustomerToTeamBundleResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.UpgradeToPro.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.UpgradeToPro.g.cs index fa7aaeaa..7b91196f 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.UpgradeToPro.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.UpgradeToPro.g.cs @@ -380,17 +380,15 @@ partial void ProcessUpgradeToProResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessUpgradeToProResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.StripeClient.UpgradeToTeamBundle.g.cs b/src/libs/Helicone/Generated/Helicone.StripeClient.UpgradeToTeamBundle.g.cs index e91666b7..665160df 100644 --- a/src/libs/Helicone/Generated/Helicone.StripeClient.UpgradeToTeamBundle.g.cs +++ b/src/libs/Helicone/Generated/Helicone.StripeClient.UpgradeToTeamBundle.g.cs @@ -380,17 +380,15 @@ partial void ProcessUpgradeToTeamBundleResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessUpgradeToTeamBundleResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.TestClient.SendTestRequest.g.cs b/src/libs/Helicone/Generated/Helicone.TestClient.SendTestRequest.g.cs index 090d34b7..eefb40b0 100644 --- a/src/libs/Helicone/Generated/Helicone.TestClient.SendTestRequest.g.cs +++ b/src/libs/Helicone/Generated/Helicone.TestClient.SendTestRequest.g.cs @@ -382,17 +382,15 @@ partial void ProcessSendTestRequestResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessSendTestRequestResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.TraceClient.LogCustomTrace.g.cs b/src/libs/Helicone/Generated/Helicone.TraceClient.LogCustomTrace.g.cs index 802739ec..2fd0acd3 100644 --- a/src/libs/Helicone/Generated/Helicone.TraceClient.LogCustomTrace.g.cs +++ b/src/libs/Helicone/Generated/Helicone.TraceClient.LogCustomTrace.g.cs @@ -368,17 +368,15 @@ await LogCustomTraceAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -406,17 +404,15 @@ await LogCustomTraceAsResponseAsync( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.TraceClient.LogCustomTraceLegacy.g.cs b/src/libs/Helicone/Generated/Helicone.TraceClient.LogCustomTraceLegacy.g.cs index 601e7de0..09836161 100644 --- a/src/libs/Helicone/Generated/Helicone.TraceClient.LogCustomTraceLegacy.g.cs +++ b/src/libs/Helicone/Generated/Helicone.TraceClient.LogCustomTraceLegacy.g.cs @@ -368,17 +368,15 @@ await LogCustomTraceLegacyAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -406,17 +404,15 @@ await LogCustomTraceLegacyAsResponseAsync( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.TraceClient.LogCustomTraceTyped.g.cs b/src/libs/Helicone/Generated/Helicone.TraceClient.LogCustomTraceTyped.g.cs index 6e4ce377..c5dceb1c 100644 --- a/src/libs/Helicone/Generated/Helicone.TraceClient.LogCustomTraceTyped.g.cs +++ b/src/libs/Helicone/Generated/Helicone.TraceClient.LogCustomTraceTyped.g.cs @@ -382,17 +382,15 @@ partial void ProcessLogCustomTraceTypedResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessLogCustomTraceTypedResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.TraceClient.LogPythonTrace.g.cs b/src/libs/Helicone/Generated/Helicone.TraceClient.LogPythonTrace.g.cs index 2fcb9dfe..2f268509 100644 --- a/src/libs/Helicone/Generated/Helicone.TraceClient.LogPythonTrace.g.cs +++ b/src/libs/Helicone/Generated/Helicone.TraceClient.LogPythonTrace.g.cs @@ -368,17 +368,15 @@ await LogPythonTraceAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -406,17 +404,15 @@ await LogPythonTraceAsResponseAsync( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.TraceClient.LogTrace.g.cs b/src/libs/Helicone/Generated/Helicone.TraceClient.LogTrace.g.cs index c7904421..a7aaa56e 100644 --- a/src/libs/Helicone/Generated/Helicone.TraceClient.LogTrace.g.cs +++ b/src/libs/Helicone/Generated/Helicone.TraceClient.LogTrace.g.cs @@ -368,17 +368,15 @@ await LogTraceAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -406,17 +404,15 @@ await LogTraceAsResponseAsync( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.UserClient.GetUserMetrics.g.cs b/src/libs/Helicone/Generated/Helicone.UserClient.GetUserMetrics.g.cs index ad81111b..dedb039e 100644 --- a/src/libs/Helicone/Generated/Helicone.UserClient.GetUserMetrics.g.cs +++ b/src/libs/Helicone/Generated/Helicone.UserClient.GetUserMetrics.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetUserMetricsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetUserMetricsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.UserClient.GetUserMetricsOverview.g.cs b/src/libs/Helicone/Generated/Helicone.UserClient.GetUserMetricsOverview.g.cs index 3a4463a0..2ef58790 100644 --- a/src/libs/Helicone/Generated/Helicone.UserClient.GetUserMetricsOverview.g.cs +++ b/src/libs/Helicone/Generated/Helicone.UserClient.GetUserMetricsOverview.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetUserMetricsOverviewResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetUserMetricsOverviewResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.UserClient.GetUsers.g.cs b/src/libs/Helicone/Generated/Helicone.UserClient.GetUsers.g.cs index ea0a2381..70367050 100644 --- a/src/libs/Helicone/Generated/Helicone.UserClient.GetUsers.g.cs +++ b/src/libs/Helicone/Generated/Helicone.UserClient.GetUsers.g.cs @@ -382,17 +382,15 @@ partial void ProcessGetUsersResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessGetUsersResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.VaultClient.AddKey.g.cs b/src/libs/Helicone/Generated/Helicone.VaultClient.AddKey.g.cs index 38b87969..832c02af 100644 --- a/src/libs/Helicone/Generated/Helicone.VaultClient.AddKey.g.cs +++ b/src/libs/Helicone/Generated/Helicone.VaultClient.AddKey.g.cs @@ -382,17 +382,15 @@ partial void ProcessAddKeyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessAddKeyResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.VaultClient.GetKeyById.g.cs b/src/libs/Helicone/Generated/Helicone.VaultClient.GetKeyById.g.cs index 6f5e7898..a67af748 100644 --- a/src/libs/Helicone/Generated/Helicone.VaultClient.GetKeyById.g.cs +++ b/src/libs/Helicone/Generated/Helicone.VaultClient.GetKeyById.g.cs @@ -371,17 +371,15 @@ partial void ProcessGetKeyByIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessGetKeyByIdResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.VaultClient.GetKeys.g.cs b/src/libs/Helicone/Generated/Helicone.VaultClient.GetKeys.g.cs index 5973dea3..5f4765d4 100644 --- a/src/libs/Helicone/Generated/Helicone.VaultClient.GetKeys.g.cs +++ b/src/libs/Helicone/Generated/Helicone.VaultClient.GetKeys.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetKeysResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetKeysResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.VaultClient.UpdateKey.g.cs b/src/libs/Helicone/Generated/Helicone.VaultClient.UpdateKey.g.cs index 12eea08b..7bbd0dce 100644 --- a/src/libs/Helicone/Generated/Helicone.VaultClient.UpdateKey.g.cs +++ b/src/libs/Helicone/Generated/Helicone.VaultClient.UpdateKey.g.cs @@ -391,17 +391,15 @@ partial void ProcessUpdateKeyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +436,15 @@ partial void ProcessUpdateKeyResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.WebhooksClient.DeleteWebhook.g.cs b/src/libs/Helicone/Generated/Helicone.WebhooksClient.DeleteWebhook.g.cs index fd63bf83..693a6bf2 100644 --- a/src/libs/Helicone/Generated/Helicone.WebhooksClient.DeleteWebhook.g.cs +++ b/src/libs/Helicone/Generated/Helicone.WebhooksClient.DeleteWebhook.g.cs @@ -371,17 +371,15 @@ partial void ProcessDeleteWebhookResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessDeleteWebhookResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.WebhooksClient.GetWebhooks.g.cs b/src/libs/Helicone/Generated/Helicone.WebhooksClient.GetWebhooks.g.cs index 183d793f..8f46bd53 100644 --- a/src/libs/Helicone/Generated/Helicone.WebhooksClient.GetWebhooks.g.cs +++ b/src/libs/Helicone/Generated/Helicone.WebhooksClient.GetWebhooks.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetWebhooksResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetWebhooksResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.WebhooksClient.NewWebhook.g.cs b/src/libs/Helicone/Generated/Helicone.WebhooksClient.NewWebhook.g.cs index f09628b6..e85da1e5 100644 --- a/src/libs/Helicone/Generated/Helicone.WebhooksClient.NewWebhook.g.cs +++ b/src/libs/Helicone/Generated/Helicone.WebhooksClient.NewWebhook.g.cs @@ -382,17 +382,15 @@ partial void ProcessNewWebhookResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +427,15 @@ partial void ProcessNewWebhookResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.WebhooksClient.TestWebhook.g.cs b/src/libs/Helicone/Generated/Helicone.WebhooksClient.TestWebhook.g.cs index 0f42417a..9126b9e6 100644 --- a/src/libs/Helicone/Generated/Helicone.WebhooksClient.TestWebhook.g.cs +++ b/src/libs/Helicone/Generated/Helicone.WebhooksClient.TestWebhook.g.cs @@ -371,17 +371,15 @@ partial void ProcessTestWebhookResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +416,15 @@ partial void ProcessTestWebhookResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.WrappedClient.CheckHasWrapped2025Data.g.cs b/src/libs/Helicone/Generated/Helicone.WrappedClient.CheckHasWrapped2025Data.g.cs index 797ffdfd..3537601d 100644 --- a/src/libs/Helicone/Generated/Helicone.WrappedClient.CheckHasWrapped2025Data.g.cs +++ b/src/libs/Helicone/Generated/Helicone.WrappedClient.CheckHasWrapped2025Data.g.cs @@ -362,17 +362,15 @@ partial void ProcessCheckHasWrapped2025DataResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessCheckHasWrapped2025DataResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Helicone/Generated/Helicone.WrappedClient.GetWrapped2025Stats.g.cs b/src/libs/Helicone/Generated/Helicone.WrappedClient.GetWrapped2025Stats.g.cs index 738dbc78..cf7bbd27 100644 --- a/src/libs/Helicone/Generated/Helicone.WrappedClient.GetWrapped2025Stats.g.cs +++ b/src/libs/Helicone/Generated/Helicone.WrappedClient.GetWrapped2025Stats.g.cs @@ -362,17 +362,15 @@ partial void ProcessGetWrapped2025StatsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +407,15 @@ partial void ProcessGetWrapped2025StatsResponseContent( { } - throw new global::Helicone.ApiException( + throw global::Helicone.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } }