firecrawl 4.28.3 → 4.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ var require_package = __commonJS({
12
12
  "package.json"(exports, module) {
13
13
  module.exports = {
14
14
  name: "@mendable/firecrawl-js",
15
- version: "4.28.3",
15
+ version: "4.29.0",
16
16
  description: "JavaScript SDK for Firecrawl API",
17
17
  main: "dist/index.js",
18
18
  types: "dist/index.d.ts",
package/dist/index.cjs CHANGED
@@ -39,7 +39,7 @@ var require_package = __commonJS({
39
39
  "package.json"(exports2, module2) {
40
40
  module2.exports = {
41
41
  name: "@mendable/firecrawl-js",
42
- version: "4.28.3",
42
+ version: "4.29.0",
43
43
  description: "JavaScript SDK for Firecrawl API",
44
44
  main: "dist/index.js",
45
45
  types: "dist/index.d.ts",
@@ -719,6 +719,7 @@ function prepareSearchPayload(req) {
719
719
  if (req.integration && req.integration.trim())
720
720
  payload.integration = req.integration.trim();
721
721
  if (req.origin) payload.origin = req.origin;
722
+ if (req.enterprise) payload.enterprise = req.enterprise;
722
723
  if (req.scrapeOptions) {
723
724
  ensureValidScrapeOptions(req.scrapeOptions);
724
725
  payload.scrapeOptions = req.scrapeOptions;
package/dist/index.d.cts CHANGED
@@ -431,6 +431,7 @@ interface DocumentMetadata {
431
431
  statusCode?: number;
432
432
  scrapeId?: string;
433
433
  numPages?: number;
434
+ totalPages?: number;
434
435
  contentType?: string;
435
436
  timezone?: string;
436
437
  proxyUsed?: "basic" | "stealth";
@@ -523,6 +524,12 @@ interface SearchRequest {
523
524
  ignoreInvalidURLs?: boolean;
524
525
  timeout?: number;
525
526
  scrapeOptions?: ScrapeOptions;
527
+ /**
528
+ * Enterprise search options. Use `["zdr"]` for end-to-end Zero Data
529
+ * Retention or `["anon"]` for anonymized search. Must be enabled for
530
+ * your team.
531
+ */
532
+ enterprise?: Array<"default" | "anon" | "zdr">;
526
533
  integration?: string;
527
534
  origin?: string;
528
535
  }
package/dist/index.d.ts CHANGED
@@ -431,6 +431,7 @@ interface DocumentMetadata {
431
431
  statusCode?: number;
432
432
  scrapeId?: string;
433
433
  numPages?: number;
434
+ totalPages?: number;
434
435
  contentType?: string;
435
436
  timezone?: string;
436
437
  proxyUsed?: "basic" | "stealth";
@@ -523,6 +524,12 @@ interface SearchRequest {
523
524
  ignoreInvalidURLs?: boolean;
524
525
  timeout?: number;
525
526
  scrapeOptions?: ScrapeOptions;
527
+ /**
528
+ * Enterprise search options. Use `["zdr"]` for end-to-end Zero Data
529
+ * Retention or `["anon"]` for anonymized search. Must be enabled for
530
+ * your team.
531
+ */
532
+ enterprise?: Array<"default" | "anon" | "zdr">;
526
533
  integration?: string;
527
534
  origin?: string;
528
535
  }
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_package
3
- } from "./chunk-LUZZZPH3.js";
3
+ } from "./chunk-Z2MP42KG.js";
4
4
 
5
5
  // src/v2/utils/httpClient.ts
6
6
  import axios from "axios";
@@ -587,6 +587,7 @@ function prepareSearchPayload(req) {
587
587
  if (req.integration && req.integration.trim())
588
588
  payload.integration = req.integration.trim();
589
589
  if (req.origin) payload.origin = req.origin;
590
+ if (req.enterprise) payload.enterprise = req.enterprise;
590
591
  if (req.scrapeOptions) {
591
592
  ensureValidScrapeOptions(req.scrapeOptions);
592
593
  payload.scrapeOptions = req.scrapeOptions;
@@ -2301,7 +2302,7 @@ var FirecrawlApp = class {
2301
2302
  if (typeof process !== "undefined" && process.env && process.env.npm_package_version) {
2302
2303
  return process.env.npm_package_version;
2303
2304
  }
2304
- const packageJson = await import("./package-GHWNEIJD.js");
2305
+ const packageJson = await import("./package-EHFB74LL.js");
2305
2306
  return packageJson.default.version;
2306
2307
  } catch (error) {
2307
2308
  const isTest = typeof process !== "undefined" && (process.env.JEST_WORKER_ID != null || false);
@@ -1,4 +1,4 @@
1
1
  import {
2
2
  require_package
3
- } from "./chunk-LUZZZPH3.js";
3
+ } from "./chunk-Z2MP42KG.js";
4
4
  export default require_package();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firecrawl",
3
- "version": "4.28.3",
3
+ "version": "4.29.0",
4
4
  "description": "JavaScript SDK for Firecrawl API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -40,6 +40,7 @@ function prepareSearchPayload(req: SearchRequest): Record<string, unknown> {
40
40
  if (req.integration && req.integration.trim())
41
41
  payload.integration = req.integration.trim();
42
42
  if (req.origin) payload.origin = req.origin;
43
+ if (req.enterprise) payload.enterprise = req.enterprise;
43
44
  if (req.scrapeOptions) {
44
45
  ensureValidScrapeOptions(req.scrapeOptions as ScrapeOptions);
45
46
  payload.scrapeOptions = req.scrapeOptions;
package/src/v2/types.ts CHANGED
@@ -570,6 +570,7 @@ export interface DocumentMetadata {
570
570
  statusCode?: number;
571
571
  scrapeId?: string;
572
572
  numPages?: number;
573
+ totalPages?: number;
573
574
  contentType?: string;
574
575
  timezone?: string;
575
576
  proxyUsed?: "basic" | "stealth";
@@ -674,6 +675,12 @@ export interface SearchRequest {
674
675
  ignoreInvalidURLs?: boolean;
675
676
  timeout?: number; // ms
676
677
  scrapeOptions?: ScrapeOptions;
678
+ /**
679
+ * Enterprise search options. Use `["zdr"]` for end-to-end Zero Data
680
+ * Retention or `["anon"]` for anonymized search. Must be enabled for
681
+ * your team.
682
+ */
683
+ enterprise?: Array<"default" | "anon" | "zdr">;
677
684
  integration?: string;
678
685
  origin?: string;
679
686
  }