diff --git a/src/libs/Firecrawl/Generated/Firecrawl.BillingClient.GetCreditUsage.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.BillingClient.GetCreditUsage.g.cs index 2f7e725..77f047f 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.BillingClient.GetCreditUsage.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.BillingClient.GetCreditUsage.g.cs @@ -93,8 +93,9 @@ partial void ProcessGetCreditUsageResponseContent( } else { - var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_404 = await global::Firecrawl.GetCreditUsageResponse2.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false); + __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_404 = global::Firecrawl.GetCreditUsageResponse2.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -130,8 +131,9 @@ partial void ProcessGetCreditUsageResponseContent( } else { - var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_500 = await global::Firecrawl.GetCreditUsageResponse3.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false); + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_500 = global::Firecrawl.GetCreditUsageResponse3.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -211,11 +213,25 @@ partial void ProcessGetCreditUsageResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.BillingClient.GetTokenUsage.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.BillingClient.GetTokenUsage.g.cs index d197746..b80af79 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.BillingClient.GetTokenUsage.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.BillingClient.GetTokenUsage.g.cs @@ -93,8 +93,9 @@ partial void ProcessGetTokenUsageResponseContent( } else { - var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_404 = await global::Firecrawl.GetTokenUsageResponse2.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false); + __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_404 = global::Firecrawl.GetTokenUsageResponse2.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -130,8 +131,9 @@ partial void ProcessGetTokenUsageResponseContent( } else { - var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_500 = await global::Firecrawl.GetTokenUsageResponse3.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false); + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_500 = global::Firecrawl.GetTokenUsageResponse3.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -211,11 +213,25 @@ partial void ProcessGetTokenUsageResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.CancelCrawl.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.CancelCrawl.g.cs index 64a2e2e..04357e5 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.CancelCrawl.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.CancelCrawl.g.cs @@ -99,8 +99,9 @@ partial void ProcessCancelCrawlResponseContent( } else { - var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_404 = await global::Firecrawl.CancelCrawlResponse2.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false); + __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_404 = global::Firecrawl.CancelCrawlResponse2.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -136,8 +137,9 @@ partial void ProcessCancelCrawlResponseContent( } else { - var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_500 = await global::Firecrawl.CancelCrawlResponse3.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false); + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_500 = global::Firecrawl.CancelCrawlResponse3.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -217,11 +219,25 @@ partial void ProcessCancelCrawlResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.CrawlUrls.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.CrawlUrls.g.cs index 1c07ea8..8556bcd 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.CrawlUrls.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.CrawlUrls.g.cs @@ -108,8 +108,9 @@ partial void ProcessCrawlUrlsResponseContent( } else { - var __contentStream_402 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_402 = await global::Firecrawl.CrawlUrlsResponse.FromJsonStreamAsync(__contentStream_402, JsonSerializerContext).ConfigureAwait(false); + __content_402 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_402 = global::Firecrawl.CrawlUrlsResponse.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -145,8 +146,9 @@ partial void ProcessCrawlUrlsResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Firecrawl.CrawlUrlsResponse2.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Firecrawl.CrawlUrlsResponse2.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -182,8 +184,9 @@ partial void ProcessCrawlUrlsResponseContent( } else { - var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_500 = await global::Firecrawl.CrawlUrlsResponse3.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false); + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_500 = global::Firecrawl.CrawlUrlsResponse3.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -263,11 +266,25 @@ partial void ProcessCrawlUrlsResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.GetActiveCrawls.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.GetActiveCrawls.g.cs index 038a156..a41f9f4 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.GetActiveCrawls.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.GetActiveCrawls.g.cs @@ -93,8 +93,9 @@ partial void ProcessGetActiveCrawlsResponseContent( } else { - var __contentStream_402 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_402 = await global::Firecrawl.GetActiveCrawlsResponse2.FromJsonStreamAsync(__contentStream_402, JsonSerializerContext).ConfigureAwait(false); + __content_402 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_402 = global::Firecrawl.GetActiveCrawlsResponse2.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -130,8 +131,9 @@ partial void ProcessGetActiveCrawlsResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Firecrawl.GetActiveCrawlsResponse3.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Firecrawl.GetActiveCrawlsResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -167,8 +169,9 @@ partial void ProcessGetActiveCrawlsResponseContent( } else { - var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_500 = await global::Firecrawl.GetActiveCrawlsResponse4.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false); + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_500 = global::Firecrawl.GetActiveCrawlsResponse4.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -248,11 +251,25 @@ partial void ProcessGetActiveCrawlsResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.GetCrawlErrors.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.GetCrawlErrors.g.cs index 0b251a1..ca2d322 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.GetCrawlErrors.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.GetCrawlErrors.g.cs @@ -99,8 +99,9 @@ partial void ProcessGetCrawlErrorsResponseContent( } else { - var __contentStream_402 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_402 = await global::Firecrawl.GetCrawlErrorsResponse.FromJsonStreamAsync(__contentStream_402, JsonSerializerContext).ConfigureAwait(false); + __content_402 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_402 = global::Firecrawl.GetCrawlErrorsResponse.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -136,8 +137,9 @@ partial void ProcessGetCrawlErrorsResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Firecrawl.GetCrawlErrorsResponse2.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Firecrawl.GetCrawlErrorsResponse2.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -173,8 +175,9 @@ partial void ProcessGetCrawlErrorsResponseContent( } else { - var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_500 = await global::Firecrawl.GetCrawlErrorsResponse3.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false); + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_500 = global::Firecrawl.GetCrawlErrorsResponse3.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -254,11 +257,25 @@ partial void ProcessGetCrawlErrorsResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.GetCrawlStatus.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.GetCrawlStatus.g.cs index 54a8650..15c1faa 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.GetCrawlStatus.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.GetCrawlStatus.g.cs @@ -99,8 +99,9 @@ partial void ProcessGetCrawlStatusResponseContent( } else { - var __contentStream_402 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_402 = await global::Firecrawl.GetCrawlStatusResponse.FromJsonStreamAsync(__contentStream_402, JsonSerializerContext).ConfigureAwait(false); + __content_402 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_402 = global::Firecrawl.GetCrawlStatusResponse.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -136,8 +137,9 @@ partial void ProcessGetCrawlStatusResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Firecrawl.GetCrawlStatusResponse2.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Firecrawl.GetCrawlStatusResponse2.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -173,8 +175,9 @@ partial void ProcessGetCrawlStatusResponseContent( } else { - var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_500 = await global::Firecrawl.GetCrawlStatusResponse3.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false); + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_500 = global::Firecrawl.GetCrawlStatusResponse3.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -254,11 +257,25 @@ partial void ProcessGetCrawlStatusResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.Exceptions.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.Exceptions.g.cs index 187f500..54f748d 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.Exceptions.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.Exceptions.g.cs @@ -13,7 +13,9 @@ public partial class ApiException : global::System.Exception /// public global::System.Net.HttpStatusCode StatusCode { get; } /// - /// The response body. + /// 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; } /// diff --git a/src/libs/Firecrawl/Generated/Firecrawl.ExtractionClient.ExtractData.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.ExtractionClient.ExtractData.g.cs index aeb488b..6dac3ce 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.ExtractionClient.ExtractData.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.ExtractionClient.ExtractData.g.cs @@ -108,8 +108,9 @@ partial void ProcessExtractDataResponseContent( } else { - var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_400 = await global::Firecrawl.ExtractDataResponse.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false); + __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_400 = global::Firecrawl.ExtractDataResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -145,8 +146,9 @@ partial void ProcessExtractDataResponseContent( } else { - var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_500 = await global::Firecrawl.ExtractDataResponse2.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false); + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_500 = global::Firecrawl.ExtractDataResponse2.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -226,11 +228,25 @@ partial void ProcessExtractDataResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.ExtractionClient.GetExtractStatus.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.ExtractionClient.GetExtractStatus.g.cs index 11c03f1..92f2e3a 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.ExtractionClient.GetExtractStatus.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.ExtractionClient.GetExtractStatus.g.cs @@ -143,11 +143,25 @@ partial void ProcessGetExtractStatusResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.IBillingClient.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.IBillingClient.g.cs index c769c7c..25f01a9 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.IBillingClient.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.IBillingClient.g.cs @@ -27,6 +27,9 @@ public partial interface IBillingClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/Firecrawl/Generated/Firecrawl.ICrawlingClient.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.ICrawlingClient.g.cs index 06a0551..4dd90a3 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.ICrawlingClient.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.ICrawlingClient.g.cs @@ -27,6 +27,9 @@ public partial interface ICrawlingClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/Firecrawl/Generated/Firecrawl.IExtractionClient.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.IExtractionClient.g.cs index adbbb00..5bcb1b4 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.IExtractionClient.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.IExtractionClient.g.cs @@ -27,6 +27,9 @@ public partial interface IExtractionClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/Firecrawl/Generated/Firecrawl.IFirecrawlClient.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.IFirecrawlClient.g.cs index 94e976a..11044af 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.IFirecrawlClient.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.IFirecrawlClient.g.cs @@ -28,6 +28,9 @@ public partial interface IFirecrawlClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/Firecrawl/Generated/Firecrawl.ILLMsTxtClient.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.ILLMsTxtClient.g.cs index 82f0456..765472c 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.ILLMsTxtClient.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.ILLMsTxtClient.g.cs @@ -27,6 +27,9 @@ public partial interface ILLMsTxtClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/Firecrawl/Generated/Firecrawl.IMappingClient.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.IMappingClient.g.cs index 78f9152..359efdb 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.IMappingClient.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.IMappingClient.g.cs @@ -27,6 +27,9 @@ public partial interface IMappingClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/Firecrawl/Generated/Firecrawl.IResearchClient.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.IResearchClient.g.cs index 6db353d..aa2b852 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.IResearchClient.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.IResearchClient.g.cs @@ -27,6 +27,9 @@ public partial interface IResearchClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/Firecrawl/Generated/Firecrawl.IScrapingClient.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.IScrapingClient.g.cs index db30091..80aff3d 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.IScrapingClient.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.IScrapingClient.g.cs @@ -27,6 +27,9 @@ public partial interface IScrapingClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/Firecrawl/Generated/Firecrawl.ISearchClient.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.ISearchClient.g.cs index 4967b81..ec5673b 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.ISearchClient.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.ISearchClient.g.cs @@ -27,6 +27,9 @@ public partial interface ISearchClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/Firecrawl/Generated/Firecrawl.LLMsTxtClient.GenerateLLMsTxt.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.LLMsTxtClient.GenerateLLMsTxt.g.cs index c48b955..785b9b0 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.LLMsTxtClient.GenerateLLMsTxt.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.LLMsTxtClient.GenerateLLMsTxt.g.cs @@ -108,8 +108,9 @@ partial void ProcessGenerateLLMsTxtResponseContent( } else { - var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_400 = await global::Firecrawl.GenerateLLMsTxtResponse2.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false); + __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_400 = global::Firecrawl.GenerateLLMsTxtResponse2.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -189,11 +190,25 @@ partial void ProcessGenerateLLMsTxtResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.LLMsTxtClient.GetLLMsTxtStatus.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.LLMsTxtClient.GetLLMsTxtStatus.g.cs index d29f578..48e0ffb 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.LLMsTxtClient.GetLLMsTxtStatus.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.LLMsTxtClient.GetLLMsTxtStatus.g.cs @@ -99,8 +99,9 @@ partial void ProcessGetLLMsTxtStatusResponseContent( } else { - var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_404 = await global::Firecrawl.GetLLMsTxtStatusResponse2.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false); + __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_404 = global::Firecrawl.GetLLMsTxtStatusResponse2.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,11 +181,25 @@ partial void ProcessGetLLMsTxtStatusResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.MappingClient.MapUrls.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.MappingClient.MapUrls.g.cs index dc4c94b..7004fc5 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.MappingClient.MapUrls.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.MappingClient.MapUrls.g.cs @@ -108,8 +108,9 @@ partial void ProcessMapUrlsResponseContent( } else { - var __contentStream_402 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_402 = await global::Firecrawl.MapUrlsResponse.FromJsonStreamAsync(__contentStream_402, JsonSerializerContext).ConfigureAwait(false); + __content_402 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_402 = global::Firecrawl.MapUrlsResponse.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -145,8 +146,9 @@ partial void ProcessMapUrlsResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Firecrawl.MapUrlsResponse2.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Firecrawl.MapUrlsResponse2.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -182,8 +184,9 @@ partial void ProcessMapUrlsResponseContent( } else { - var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_500 = await global::Firecrawl.MapUrlsResponse3.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false); + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_500 = global::Firecrawl.MapUrlsResponse3.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -263,11 +266,25 @@ partial void ProcessMapUrlsResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.ResearchClient.GetDeepResearchStatus.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.ResearchClient.GetDeepResearchStatus.g.cs index fc70f1c..ab9c0bf 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.ResearchClient.GetDeepResearchStatus.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.ResearchClient.GetDeepResearchStatus.g.cs @@ -99,8 +99,9 @@ partial void ProcessGetDeepResearchStatusResponseContent( } else { - var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_404 = await global::Firecrawl.GetDeepResearchStatusResponse2.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false); + __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_404 = global::Firecrawl.GetDeepResearchStatusResponse2.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,11 +181,25 @@ partial void ProcessGetDeepResearchStatusResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.ResearchClient.StartDeepResearch.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.ResearchClient.StartDeepResearch.g.cs index 1fa3e84..4f24527 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.ResearchClient.StartDeepResearch.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.ResearchClient.StartDeepResearch.g.cs @@ -108,8 +108,9 @@ partial void ProcessStartDeepResearchResponseContent( } else { - var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_400 = await global::Firecrawl.StartDeepResearchResponse2.FromJsonStreamAsync(__contentStream_400, JsonSerializerContext).ConfigureAwait(false); + __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_400 = global::Firecrawl.StartDeepResearchResponse2.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -189,11 +190,25 @@ partial void ProcessStartDeepResearchResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.CancelBatchScrape.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.CancelBatchScrape.g.cs index fc108bd..af336d4 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.CancelBatchScrape.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.CancelBatchScrape.g.cs @@ -99,8 +99,9 @@ partial void ProcessCancelBatchScrapeResponseContent( } else { - var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_404 = await global::Firecrawl.CancelBatchScrapeResponse2.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false); + __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_404 = global::Firecrawl.CancelBatchScrapeResponse2.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -136,8 +137,9 @@ partial void ProcessCancelBatchScrapeResponseContent( } else { - var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_500 = await global::Firecrawl.CancelBatchScrapeResponse3.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false); + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_500 = global::Firecrawl.CancelBatchScrapeResponse3.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -217,11 +219,25 @@ partial void ProcessCancelBatchScrapeResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.GetBatchScrapeErrors.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.GetBatchScrapeErrors.g.cs index 5f8bca8..e863813 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.GetBatchScrapeErrors.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.GetBatchScrapeErrors.g.cs @@ -99,8 +99,9 @@ partial void ProcessGetBatchScrapeErrorsResponseContent( } else { - var __contentStream_402 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_402 = await global::Firecrawl.GetBatchScrapeErrorsResponse.FromJsonStreamAsync(__contentStream_402, JsonSerializerContext).ConfigureAwait(false); + __content_402 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_402 = global::Firecrawl.GetBatchScrapeErrorsResponse.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -136,8 +137,9 @@ partial void ProcessGetBatchScrapeErrorsResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Firecrawl.GetBatchScrapeErrorsResponse2.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Firecrawl.GetBatchScrapeErrorsResponse2.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -173,8 +175,9 @@ partial void ProcessGetBatchScrapeErrorsResponseContent( } else { - var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_500 = await global::Firecrawl.GetBatchScrapeErrorsResponse3.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false); + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_500 = global::Firecrawl.GetBatchScrapeErrorsResponse3.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -254,11 +257,25 @@ partial void ProcessGetBatchScrapeErrorsResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.GetBatchScrapeStatus.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.GetBatchScrapeStatus.g.cs index 5cc1b5e..2f009da 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.GetBatchScrapeStatus.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.GetBatchScrapeStatus.g.cs @@ -99,8 +99,9 @@ partial void ProcessGetBatchScrapeStatusResponseContent( } else { - var __contentStream_402 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_402 = await global::Firecrawl.GetBatchScrapeStatusResponse.FromJsonStreamAsync(__contentStream_402, JsonSerializerContext).ConfigureAwait(false); + __content_402 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_402 = global::Firecrawl.GetBatchScrapeStatusResponse.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -136,8 +137,9 @@ partial void ProcessGetBatchScrapeStatusResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Firecrawl.GetBatchScrapeStatusResponse2.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Firecrawl.GetBatchScrapeStatusResponse2.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -173,8 +175,9 @@ partial void ProcessGetBatchScrapeStatusResponseContent( } else { - var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_500 = await global::Firecrawl.GetBatchScrapeStatusResponse3.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false); + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_500 = global::Firecrawl.GetBatchScrapeStatusResponse3.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -254,11 +257,25 @@ partial void ProcessGetBatchScrapeStatusResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.ScrapeAndExtractFromUrl.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.ScrapeAndExtractFromUrl.g.cs index 0938bc7..dbfc1d2 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.ScrapeAndExtractFromUrl.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.ScrapeAndExtractFromUrl.g.cs @@ -106,8 +106,9 @@ partial void ProcessScrapeAndExtractFromUrlResponseContent( } else { - var __contentStream_402 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_402 = await global::Firecrawl.ScrapeAndExtractFromUrlResponse.FromJsonStreamAsync(__contentStream_402, JsonSerializerContext).ConfigureAwait(false); + __content_402 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_402 = global::Firecrawl.ScrapeAndExtractFromUrlResponse.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -143,8 +144,9 @@ partial void ProcessScrapeAndExtractFromUrlResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Firecrawl.ScrapeAndExtractFromUrlResponse2.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Firecrawl.ScrapeAndExtractFromUrlResponse2.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,8 +182,9 @@ partial void ProcessScrapeAndExtractFromUrlResponseContent( } else { - var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_500 = await global::Firecrawl.ScrapeAndExtractFromUrlResponse3.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false); + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_500 = global::Firecrawl.ScrapeAndExtractFromUrlResponse3.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -261,11 +264,25 @@ partial void ProcessScrapeAndExtractFromUrlResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.ScrapeAndExtractFromUrls.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.ScrapeAndExtractFromUrls.g.cs index 69695d9..704dc98 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.ScrapeAndExtractFromUrls.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.ScrapingClient.ScrapeAndExtractFromUrls.g.cs @@ -106,8 +106,9 @@ partial void ProcessScrapeAndExtractFromUrlsResponseContent( } else { - var __contentStream_402 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_402 = await global::Firecrawl.ScrapeAndExtractFromUrlsResponse.FromJsonStreamAsync(__contentStream_402, JsonSerializerContext).ConfigureAwait(false); + __content_402 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_402 = global::Firecrawl.ScrapeAndExtractFromUrlsResponse.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -143,8 +144,9 @@ partial void ProcessScrapeAndExtractFromUrlsResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Firecrawl.ScrapeAndExtractFromUrlsResponse2.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Firecrawl.ScrapeAndExtractFromUrlsResponse2.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,8 +182,9 @@ partial void ProcessScrapeAndExtractFromUrlsResponseContent( } else { - var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_500 = await global::Firecrawl.ScrapeAndExtractFromUrlsResponse3.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false); + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_500 = global::Firecrawl.ScrapeAndExtractFromUrlsResponse3.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -261,11 +264,25 @@ partial void ProcessScrapeAndExtractFromUrlsResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Firecrawl/Generated/Firecrawl.SearchClient.SearchAndScrape.g.cs b/src/libs/Firecrawl/Generated/Firecrawl.SearchClient.SearchAndScrape.g.cs index 4b3e166..0fb544c 100644 --- a/src/libs/Firecrawl/Generated/Firecrawl.SearchClient.SearchAndScrape.g.cs +++ b/src/libs/Firecrawl/Generated/Firecrawl.SearchClient.SearchAndScrape.g.cs @@ -108,8 +108,9 @@ partial void ProcessSearchAndScrapeResponseContent( } else { - var __contentStream_408 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_408 = await global::Firecrawl.SearchAndScrapeResponse2.FromJsonStreamAsync(__contentStream_408, JsonSerializerContext).ConfigureAwait(false); + __content_408 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_408 = global::Firecrawl.SearchAndScrapeResponse2.FromJson(__content_408, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -145,8 +146,9 @@ partial void ProcessSearchAndScrapeResponseContent( } else { - var __contentStream_500 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_500 = await global::Firecrawl.SearchAndScrapeResponse3.FromJsonStreamAsync(__contentStream_500, JsonSerializerContext).ConfigureAwait(false); + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_500 = global::Firecrawl.SearchAndScrapeResponse3.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -226,11 +228,25 @@ partial void ProcessSearchAndScrapeResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Firecrawl.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key,