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 @@ -15,11 +15,11 @@ public enum CrawlUrlsRequestWebhookEvent
/// <summary>
///
/// </summary>
Page,
Failed,
/// <summary>
///
/// </summary>
Failed,
Page,
/// <summary>
///
/// </summary>
Expand All @@ -39,8 +39,8 @@ public static string ToValueString(this CrawlUrlsRequestWebhookEvent value)
return value switch
{
CrawlUrlsRequestWebhookEvent.Completed => "completed",
CrawlUrlsRequestWebhookEvent.Page => "page",
CrawlUrlsRequestWebhookEvent.Failed => "failed",
CrawlUrlsRequestWebhookEvent.Page => "page",
CrawlUrlsRequestWebhookEvent.Started => "started",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
Expand All @@ -53,8 +53,8 @@ public static string ToValueString(this CrawlUrlsRequestWebhookEvent value)
return value switch
{
"completed" => CrawlUrlsRequestWebhookEvent.Completed,
"page" => CrawlUrlsRequestWebhookEvent.Page,
"failed" => CrawlUrlsRequestWebhookEvent.Failed,
"page" => CrawlUrlsRequestWebhookEvent.Page,
"started" => CrawlUrlsRequestWebhookEvent.Started,
_ => null,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ public enum ExtractStatusResponseStatus
/// <summary>
///
/// </summary>
Completed,
Cancelled,
/// <summary>
///
/// </summary>
Processing,
Completed,
/// <summary>
///
/// </summary>
Failed,
/// <summary>
///
/// </summary>
Cancelled,
Processing,
}

/// <summary>
Expand All @@ -38,10 +38,10 @@ public static string ToValueString(this ExtractStatusResponseStatus value)
{
return value switch
{
ExtractStatusResponseStatus.Cancelled => "cancelled",
ExtractStatusResponseStatus.Completed => "completed",
ExtractStatusResponseStatus.Processing => "processing",
ExtractStatusResponseStatus.Failed => "failed",
ExtractStatusResponseStatus.Cancelled => "cancelled",
ExtractStatusResponseStatus.Processing => "processing",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -52,10 +52,10 @@ public static string ToValueString(this ExtractStatusResponseStatus value)
{
return value switch
{
"cancelled" => ExtractStatusResponseStatus.Cancelled,
"completed" => ExtractStatusResponseStatus.Completed,
"processing" => ExtractStatusResponseStatus.Processing,
"failed" => ExtractStatusResponseStatus.Failed,
"cancelled" => ExtractStatusResponseStatus.Cancelled,
"processing" => ExtractStatusResponseStatus.Processing,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ public enum GetDeepResearchStatusResponseDataStatus
/// <summary>
///
/// </summary>
Processing,
Completed,
/// <summary>
///
/// </summary>
Completed,
Failed,
/// <summary>
///
/// </summary>
Failed,
Processing,
}

/// <summary>
Expand All @@ -34,9 +34,9 @@ public static string ToValueString(this GetDeepResearchStatusResponseDataStatus
{
return value switch
{
GetDeepResearchStatusResponseDataStatus.Processing => "processing",
GetDeepResearchStatusResponseDataStatus.Completed => "completed",
GetDeepResearchStatusResponseDataStatus.Failed => "failed",
GetDeepResearchStatusResponseDataStatus.Processing => "processing",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -47,9 +47,9 @@ public static string ToValueString(this GetDeepResearchStatusResponseDataStatus
{
return value switch
{
"processing" => GetDeepResearchStatusResponseDataStatus.Processing,
"completed" => GetDeepResearchStatusResponseDataStatus.Completed,
"failed" => GetDeepResearchStatusResponseDataStatus.Failed,
"processing" => GetDeepResearchStatusResponseDataStatus.Processing,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ public enum GetLLMsTxtStatusResponseStatus
/// <summary>
///
/// </summary>
Processing,
Completed,
/// <summary>
///
/// </summary>
Completed,
Failed,
/// <summary>
///
/// </summary>
Failed,
Processing,
}

/// <summary>
Expand All @@ -34,9 +34,9 @@ public static string ToValueString(this GetLLMsTxtStatusResponseStatus value)
{
return value switch
{
GetLLMsTxtStatusResponseStatus.Processing => "processing",
GetLLMsTxtStatusResponseStatus.Completed => "completed",
GetLLMsTxtStatusResponseStatus.Failed => "failed",
GetLLMsTxtStatusResponseStatus.Processing => "processing",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -47,9 +47,9 @@ public static string ToValueString(this GetLLMsTxtStatusResponseStatus value)
{
return value switch
{
"processing" => GetLLMsTxtStatusResponseStatus.Processing,
"completed" => GetLLMsTxtStatusResponseStatus.Completed,
"failed" => GetLLMsTxtStatusResponseStatus.Failed,
"processing" => GetLLMsTxtStatusResponseStatus.Processing,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public enum ScrapeAndExtractFromUrlsRequestWebhookEvent
/// <summary>
///
/// </summary>
Page,
Failed,
/// <summary>
///
/// </summary>
Failed,
Page,
/// <summary>
///
/// </summary>
Expand All @@ -39,8 +39,8 @@ public static string ToValueString(this ScrapeAndExtractFromUrlsRequestWebhookEv
return value switch
{
ScrapeAndExtractFromUrlsRequestWebhookEvent.Completed => "completed",
ScrapeAndExtractFromUrlsRequestWebhookEvent.Page => "page",
ScrapeAndExtractFromUrlsRequestWebhookEvent.Failed => "failed",
ScrapeAndExtractFromUrlsRequestWebhookEvent.Page => "page",
ScrapeAndExtractFromUrlsRequestWebhookEvent.Started => "started",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
Expand All @@ -53,8 +53,8 @@ public static string ToValueString(this ScrapeAndExtractFromUrlsRequestWebhookEv
return value switch
{
"completed" => ScrapeAndExtractFromUrlsRequestWebhookEvent.Completed,
"page" => ScrapeAndExtractFromUrlsRequestWebhookEvent.Page,
"failed" => ScrapeAndExtractFromUrlsRequestWebhookEvent.Failed,
"page" => ScrapeAndExtractFromUrlsRequestWebhookEvent.Page,
"started" => ScrapeAndExtractFromUrlsRequestWebhookEvent.Started,
_ => null,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ public enum ScrapeOptionsActionScrollDirection
/// <summary>
///
/// </summary>
Up,
Down,
/// <summary>
///
/// </summary>
Down,
Up,
}

/// <summary>
Expand All @@ -31,8 +31,8 @@ public static string ToValueString(this ScrapeOptionsActionScrollDirection value
{
return value switch
{
ScrapeOptionsActionScrollDirection.Up => "up",
ScrapeOptionsActionScrollDirection.Down => "down",
ScrapeOptionsActionScrollDirection.Up => "up",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -43,8 +43,8 @@ public static string ToValueString(this ScrapeOptionsActionScrollDirection value
{
return value switch
{
"up" => ScrapeOptionsActionScrollDirection.Up,
"down" => ScrapeOptionsActionScrollDirection.Down,
"up" => ScrapeOptionsActionScrollDirection.Up,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,39 +11,39 @@ public enum ScrapeOptionsFormat
/// <summary>
///
/// </summary>
Markdown,
Branding,
/// <summary>
///
/// </summary>
Html,
ChangeTracking,
/// <summary>
///
/// </summary>
RawHtml,
Html,
/// <summary>
///
/// </summary>
Links,
Json,
/// <summary>
///
/// </summary>
Screenshot,
Links,
/// <summary>
///
/// </summary>
Screenshot_fullPage,
Markdown,
/// <summary>
///
/// </summary>
Json,
RawHtml,
/// <summary>
///
/// </summary>
ChangeTracking,
Screenshot,
/// <summary>
///
/// </summary>
Branding,
Screenshot_fullPage,
}

/// <summary>
Expand All @@ -58,15 +58,15 @@ public static string ToValueString(this ScrapeOptionsFormat value)
{
return value switch
{
ScrapeOptionsFormat.Markdown => "markdown",
ScrapeOptionsFormat.Branding => "branding",
ScrapeOptionsFormat.ChangeTracking => "changeTracking",
ScrapeOptionsFormat.Html => "html",
ScrapeOptionsFormat.RawHtml => "rawHtml",
ScrapeOptionsFormat.Json => "json",
ScrapeOptionsFormat.Links => "links",
ScrapeOptionsFormat.Markdown => "markdown",
ScrapeOptionsFormat.RawHtml => "rawHtml",
ScrapeOptionsFormat.Screenshot => "screenshot",
ScrapeOptionsFormat.Screenshot_fullPage => "screenshot@fullPage",
ScrapeOptionsFormat.Json => "json",
ScrapeOptionsFormat.ChangeTracking => "changeTracking",
ScrapeOptionsFormat.Branding => "branding",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -77,15 +77,15 @@ public static string ToValueString(this ScrapeOptionsFormat value)
{
return value switch
{
"markdown" => ScrapeOptionsFormat.Markdown,
"branding" => ScrapeOptionsFormat.Branding,
"changeTracking" => ScrapeOptionsFormat.ChangeTracking,
"html" => ScrapeOptionsFormat.Html,
"rawHtml" => ScrapeOptionsFormat.RawHtml,
"json" => ScrapeOptionsFormat.Json,
"links" => ScrapeOptionsFormat.Links,
"markdown" => ScrapeOptionsFormat.Markdown,
"rawHtml" => ScrapeOptionsFormat.RawHtml,
"screenshot" => ScrapeOptionsFormat.Screenshot,
"screenshot@fullPage" => ScrapeOptionsFormat.Screenshot_fullPage,
"json" => ScrapeOptionsFormat.Json,
"changeTracking" => ScrapeOptionsFormat.ChangeTracking,
"branding" => ScrapeOptionsFormat.Branding,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ namespace Firecrawl
/// </summary>
public enum ScrapeOptionsProxy
{
/// <summary>
/// Firecrawl will automatically retry scraping with enhanced proxies if the basic proxy fails. If the retry with enhanced is successful, 5 credits will be billed for the scrape. If the first attempt with basic is successful, only the regular cost will be billed.
/// </summary>
Auto,
/// <summary>
/// Proxies for scraping sites with none to basic anti-bot solutions. Fast and usually works.
/// </summary>
Expand All @@ -20,10 +24,6 @@ public enum ScrapeOptionsProxy
/// Enhanced proxies for scraping sites with advanced anti-bot solutions. Slower, but more reliable on certain sites. Costs up to 5 credits per request.
/// </summary>
Enhanced,
/// <summary>
/// Firecrawl will automatically retry scraping with enhanced proxies if the basic proxy fails. If the retry with enhanced is successful, 5 credits will be billed for the scrape. If the first attempt with basic is successful, only the regular cost will be billed.
/// </summary>
Auto,
}

/// <summary>
Expand All @@ -38,9 +38,9 @@ public static string ToValueString(this ScrapeOptionsProxy value)
{
return value switch
{
ScrapeOptionsProxy.Auto => "auto",
ScrapeOptionsProxy.Basic => "basic",
ScrapeOptionsProxy.Enhanced => "enhanced",
ScrapeOptionsProxy.Auto => "auto",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -51,9 +51,9 @@ public static string ToValueString(this ScrapeOptionsProxy value)
{
return value switch
{
"auto" => ScrapeOptionsProxy.Auto,
"basic" => ScrapeOptionsProxy.Basic,
"enhanced" => ScrapeOptionsProxy.Enhanced,
"auto" => ScrapeOptionsProxy.Auto,
_ => null,
};
}
Expand Down
Loading