firecrawl 4.28.4 → 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.4",
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.4",
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
@@ -524,6 +524,12 @@ interface SearchRequest {
524
524
  ignoreInvalidURLs?: boolean;
525
525
  timeout?: number;
526
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">;
527
533
  integration?: string;
528
534
  origin?: string;
529
535
  }
package/dist/index.d.ts CHANGED
@@ -524,6 +524,12 @@ interface SearchRequest {
524
524
  ignoreInvalidURLs?: boolean;
525
525
  timeout?: number;
526
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">;
527
533
  integration?: string;
528
534
  origin?: string;
529
535
  }
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_package
3
- } from "./chunk-VRKVHB52.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-EYT327NL.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-VRKVHB52.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.4",
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
@@ -675,6 +675,12 @@ export interface SearchRequest {
675
675
  ignoreInvalidURLs?: boolean;
676
676
  timeout?: number; // ms
677
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">;
678
684
  integration?: string;
679
685
  origin?: string;
680
686
  }