Skip to content

Commit a1dd275

Browse files
author
github-actions[bot]
committed
feat: Updated OpenAPI spec
1 parent cbabfd0 commit a1dd275

21 files changed

Lines changed: 635 additions & 624 deletions

src/libs/Firecrawl/Generated/Firecrawl.BillingClient.GetCreditUsage.g.cs

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -340,18 +340,17 @@ partial void ProcessGetCreditUsageResponseContent(
340340
__exception_404 = __ex;
341341
}
342342

343-
throw new global::Firecrawl.ApiException<global::Firecrawl.GetCreditUsageResponse2>(
343+
344+
throw global::Firecrawl.ApiException<global::Firecrawl.GetCreditUsageResponse2>.Create(
345+
statusCode: __response.StatusCode,
344346
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
345347
innerException: __exception_404,
346-
statusCode: __response.StatusCode)
347-
{
348-
ResponseBody = __content_404,
349-
ResponseObject = __value_404,
350-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
348+
responseBody: __content_404,
349+
responseObject: __value_404,
350+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
351351
__response.Headers,
352352
h => h.Key,
353-
h => h.Value),
354-
};
353+
h => h.Value));
355354
}
356355
// Server error
357356
if ((int)__response.StatusCode == 500)
@@ -378,18 +377,17 @@ partial void ProcessGetCreditUsageResponseContent(
378377
__exception_500 = __ex;
379378
}
380379

381-
throw new global::Firecrawl.ApiException<global::Firecrawl.GetCreditUsageResponse3>(
380+
381+
throw global::Firecrawl.ApiException<global::Firecrawl.GetCreditUsageResponse3>.Create(
382+
statusCode: __response.StatusCode,
382383
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
383384
innerException: __exception_500,
384-
statusCode: __response.StatusCode)
385-
{
386-
ResponseBody = __content_500,
387-
ResponseObject = __value_500,
388-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
385+
responseBody: __content_500,
386+
responseObject: __value_500,
387+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
389388
__response.Headers,
390389
h => h.Key,
391-
h => h.Value),
392-
};
390+
h => h.Value));
393391
}
394392

395393
if (__effectiveReadResponseAsString)
@@ -423,17 +421,15 @@ partial void ProcessGetCreditUsageResponseContent(
423421
}
424422
catch (global::System.Exception __ex)
425423
{
426-
throw new global::Firecrawl.ApiException(
424+
throw global::Firecrawl.ApiException.Create(
425+
statusCode: __response.StatusCode,
427426
message: __content ?? __response.ReasonPhrase ?? string.Empty,
428427
innerException: __ex,
429-
statusCode: __response.StatusCode)
430-
{
431-
ResponseBody = __content,
432-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
428+
responseBody: __content,
429+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
433430
__response.Headers,
434431
h => h.Key,
435-
h => h.Value),
436-
};
432+
h => h.Value));
437433
}
438434
}
439435
else
@@ -470,17 +466,15 @@ partial void ProcessGetCreditUsageResponseContent(
470466
{
471467
}
472468

473-
throw new global::Firecrawl.ApiException(
469+
throw global::Firecrawl.ApiException.Create(
470+
statusCode: __response.StatusCode,
474471
message: __content ?? __response.ReasonPhrase ?? string.Empty,
475472
innerException: __ex,
476-
statusCode: __response.StatusCode)
477-
{
478-
ResponseBody = __content,
479-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
473+
responseBody: __content,
474+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
480475
__response.Headers,
481476
h => h.Key,
482-
h => h.Value),
483-
};
477+
h => h.Value));
484478
}
485479
}
486480

src/libs/Firecrawl/Generated/Firecrawl.BillingClient.GetTokenUsage.g.cs

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -340,18 +340,17 @@ partial void ProcessGetTokenUsageResponseContent(
340340
__exception_404 = __ex;
341341
}
342342

343-
throw new global::Firecrawl.ApiException<global::Firecrawl.GetTokenUsageResponse2>(
343+
344+
throw global::Firecrawl.ApiException<global::Firecrawl.GetTokenUsageResponse2>.Create(
345+
statusCode: __response.StatusCode,
344346
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
345347
innerException: __exception_404,
346-
statusCode: __response.StatusCode)
347-
{
348-
ResponseBody = __content_404,
349-
ResponseObject = __value_404,
350-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
348+
responseBody: __content_404,
349+
responseObject: __value_404,
350+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
351351
__response.Headers,
352352
h => h.Key,
353-
h => h.Value),
354-
};
353+
h => h.Value));
355354
}
356355
// Server error
357356
if ((int)__response.StatusCode == 500)
@@ -378,18 +377,17 @@ partial void ProcessGetTokenUsageResponseContent(
378377
__exception_500 = __ex;
379378
}
380379

381-
throw new global::Firecrawl.ApiException<global::Firecrawl.GetTokenUsageResponse3>(
380+
381+
throw global::Firecrawl.ApiException<global::Firecrawl.GetTokenUsageResponse3>.Create(
382+
statusCode: __response.StatusCode,
382383
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
383384
innerException: __exception_500,
384-
statusCode: __response.StatusCode)
385-
{
386-
ResponseBody = __content_500,
387-
ResponseObject = __value_500,
388-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
385+
responseBody: __content_500,
386+
responseObject: __value_500,
387+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
389388
__response.Headers,
390389
h => h.Key,
391-
h => h.Value),
392-
};
390+
h => h.Value));
393391
}
394392

395393
if (__effectiveReadResponseAsString)
@@ -423,17 +421,15 @@ partial void ProcessGetTokenUsageResponseContent(
423421
}
424422
catch (global::System.Exception __ex)
425423
{
426-
throw new global::Firecrawl.ApiException(
424+
throw global::Firecrawl.ApiException.Create(
425+
statusCode: __response.StatusCode,
427426
message: __content ?? __response.ReasonPhrase ?? string.Empty,
428427
innerException: __ex,
429-
statusCode: __response.StatusCode)
430-
{
431-
ResponseBody = __content,
432-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
428+
responseBody: __content,
429+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
433430
__response.Headers,
434431
h => h.Key,
435-
h => h.Value),
436-
};
432+
h => h.Value));
437433
}
438434
}
439435
else
@@ -470,17 +466,15 @@ partial void ProcessGetTokenUsageResponseContent(
470466
{
471467
}
472468

473-
throw new global::Firecrawl.ApiException(
469+
throw global::Firecrawl.ApiException.Create(
470+
statusCode: __response.StatusCode,
474471
message: __content ?? __response.ReasonPhrase ?? string.Empty,
475472
innerException: __ex,
476-
statusCode: __response.StatusCode)
477-
{
478-
ResponseBody = __content,
479-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
473+
responseBody: __content,
474+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
480475
__response.Headers,
481476
h => h.Key,
482-
h => h.Value),
483-
};
477+
h => h.Value));
484478
}
485479
}
486480

src/libs/Firecrawl/Generated/Firecrawl.CrawlingClient.CancelCrawl.g.cs

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -349,18 +349,17 @@ partial void ProcessCancelCrawlResponseContent(
349349
__exception_404 = __ex;
350350
}
351351

352-
throw new global::Firecrawl.ApiException<global::Firecrawl.CancelCrawlResponse2>(
352+
353+
throw global::Firecrawl.ApiException<global::Firecrawl.CancelCrawlResponse2>.Create(
354+
statusCode: __response.StatusCode,
353355
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
354356
innerException: __exception_404,
355-
statusCode: __response.StatusCode)
356-
{
357-
ResponseBody = __content_404,
358-
ResponseObject = __value_404,
359-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
357+
responseBody: __content_404,
358+
responseObject: __value_404,
359+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
360360
__response.Headers,
361361
h => h.Key,
362-
h => h.Value),
363-
};
362+
h => h.Value));
364363
}
365364
// Server error
366365
if ((int)__response.StatusCode == 500)
@@ -387,18 +386,17 @@ partial void ProcessCancelCrawlResponseContent(
387386
__exception_500 = __ex;
388387
}
389388

390-
throw new global::Firecrawl.ApiException<global::Firecrawl.CancelCrawlResponse3>(
389+
390+
throw global::Firecrawl.ApiException<global::Firecrawl.CancelCrawlResponse3>.Create(
391+
statusCode: __response.StatusCode,
391392
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
392393
innerException: __exception_500,
393-
statusCode: __response.StatusCode)
394-
{
395-
ResponseBody = __content_500,
396-
ResponseObject = __value_500,
397-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
394+
responseBody: __content_500,
395+
responseObject: __value_500,
396+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
398397
__response.Headers,
399398
h => h.Key,
400-
h => h.Value),
401-
};
399+
h => h.Value));
402400
}
403401

404402
if (__effectiveReadResponseAsString)
@@ -432,17 +430,15 @@ partial void ProcessCancelCrawlResponseContent(
432430
}
433431
catch (global::System.Exception __ex)
434432
{
435-
throw new global::Firecrawl.ApiException(
433+
throw global::Firecrawl.ApiException.Create(
434+
statusCode: __response.StatusCode,
436435
message: __content ?? __response.ReasonPhrase ?? string.Empty,
437436
innerException: __ex,
438-
statusCode: __response.StatusCode)
439-
{
440-
ResponseBody = __content,
441-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
437+
responseBody: __content,
438+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
442439
__response.Headers,
443440
h => h.Key,
444-
h => h.Value),
445-
};
441+
h => h.Value));
446442
}
447443
}
448444
else
@@ -479,17 +475,15 @@ partial void ProcessCancelCrawlResponseContent(
479475
{
480476
}
481477

482-
throw new global::Firecrawl.ApiException(
478+
throw global::Firecrawl.ApiException.Create(
479+
statusCode: __response.StatusCode,
483480
message: __content ?? __response.ReasonPhrase ?? string.Empty,
484481
innerException: __ex,
485-
statusCode: __response.StatusCode)
486-
{
487-
ResponseBody = __content,
488-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
482+
responseBody: __content,
483+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
489484
__response.Headers,
490485
h => h.Key,
491-
h => h.Value),
492-
};
486+
h => h.Value));
493487
}
494488
}
495489

0 commit comments

Comments
 (0)