Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down
Loading