firecrawl 1.22.0 → 1.23.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.
package/dist/index.d.cts CHANGED
@@ -65,10 +65,31 @@ interface FirecrawlDocument<T = any, ActionsSchema extends (ActionsResult | neve
65
65
  screenshot?: string;
66
66
  metadata?: FirecrawlDocumentMetadata;
67
67
  actions: ActionsSchema;
68
- compare?: {
68
+ changeTracking?: {
69
69
  previousScrapeAt: string | null;
70
70
  changeStatus: "new" | "same" | "changed" | "removed";
71
71
  visibility: "visible" | "hidden";
72
+ diff?: {
73
+ text: string;
74
+ json: {
75
+ files: Array<{
76
+ from: string | null;
77
+ to: string | null;
78
+ chunks: Array<{
79
+ content: string;
80
+ changes: Array<{
81
+ type: string;
82
+ normal?: boolean;
83
+ ln?: number;
84
+ ln1?: number;
85
+ ln2?: number;
86
+ content: string;
87
+ }>;
88
+ }>;
89
+ }>;
90
+ };
91
+ };
92
+ json?: any;
72
93
  };
73
94
  title?: string;
74
95
  description?: string;
@@ -78,7 +99,7 @@ interface FirecrawlDocument<T = any, ActionsSchema extends (ActionsResult | neve
78
99
  * Defines the options and configurations available for scraping web content.
79
100
  */
80
101
  interface CrawlScrapeOptions {
81
- formats?: ("markdown" | "html" | "rawHtml" | "content" | "links" | "screenshot" | "screenshot@fullPage" | "extract" | "json" | "compare")[];
102
+ formats?: ("markdown" | "html" | "rawHtml" | "content" | "links" | "screenshot" | "screenshot@fullPage" | "extract" | "json" | "changeTracking")[];
82
103
  headers?: Record<string, string>;
83
104
  includeTags?: string[];
84
105
  excludeTags?: string[];
@@ -133,6 +154,11 @@ interface ScrapeParams<LLMSchema extends zt.ZodSchema = any, ActionsSchema exten
133
154
  schema?: LLMSchema;
134
155
  systemPrompt?: string;
135
156
  };
157
+ changeTrackingOptions?: {
158
+ prompt?: string;
159
+ schema?: any;
160
+ modes?: ("json" | "git-diff")[];
161
+ };
136
162
  actions?: ActionsSchema;
137
163
  }
138
164
  interface ActionsResult {
package/dist/index.d.ts CHANGED
@@ -65,10 +65,31 @@ interface FirecrawlDocument<T = any, ActionsSchema extends (ActionsResult | neve
65
65
  screenshot?: string;
66
66
  metadata?: FirecrawlDocumentMetadata;
67
67
  actions: ActionsSchema;
68
- compare?: {
68
+ changeTracking?: {
69
69
  previousScrapeAt: string | null;
70
70
  changeStatus: "new" | "same" | "changed" | "removed";
71
71
  visibility: "visible" | "hidden";
72
+ diff?: {
73
+ text: string;
74
+ json: {
75
+ files: Array<{
76
+ from: string | null;
77
+ to: string | null;
78
+ chunks: Array<{
79
+ content: string;
80
+ changes: Array<{
81
+ type: string;
82
+ normal?: boolean;
83
+ ln?: number;
84
+ ln1?: number;
85
+ ln2?: number;
86
+ content: string;
87
+ }>;
88
+ }>;
89
+ }>;
90
+ };
91
+ };
92
+ json?: any;
72
93
  };
73
94
  title?: string;
74
95
  description?: string;
@@ -78,7 +99,7 @@ interface FirecrawlDocument<T = any, ActionsSchema extends (ActionsResult | neve
78
99
  * Defines the options and configurations available for scraping web content.
79
100
  */
80
101
  interface CrawlScrapeOptions {
81
- formats?: ("markdown" | "html" | "rawHtml" | "content" | "links" | "screenshot" | "screenshot@fullPage" | "extract" | "json" | "compare")[];
102
+ formats?: ("markdown" | "html" | "rawHtml" | "content" | "links" | "screenshot" | "screenshot@fullPage" | "extract" | "json" | "changeTracking")[];
82
103
  headers?: Record<string, string>;
83
104
  includeTags?: string[];
84
105
  excludeTags?: string[];
@@ -133,6 +154,11 @@ interface ScrapeParams<LLMSchema extends zt.ZodSchema = any, ActionsSchema exten
133
154
  schema?: LLMSchema;
134
155
  systemPrompt?: string;
135
156
  };
157
+ changeTrackingOptions?: {
158
+ prompt?: string;
159
+ schema?: any;
160
+ modes?: ("json" | "git-diff")[];
161
+ };
136
162
  actions?: ActionsSchema;
137
163
  }
138
164
  interface ActionsResult {