@mendable/firecrawl 1.23.8 → 1.24.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.cjs +51 -13810
- package/dist/index.d.cts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +26 -13816
- package/package.json +3 -3
- package/src/index.ts +17 -0
- package/tsup.config.ts +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -160,6 +160,7 @@ interface ScrapeParams<LLMSchema extends zt.ZodSchema = any, ActionsSchema exten
|
|
|
160
160
|
modes?: ("json" | "git-diff")[];
|
|
161
161
|
};
|
|
162
162
|
actions?: ActionsSchema;
|
|
163
|
+
agent?: AgentOptions;
|
|
163
164
|
}
|
|
164
165
|
interface ActionsResult {
|
|
165
166
|
screenshots: string[];
|
|
@@ -279,6 +280,19 @@ interface MapResponse {
|
|
|
279
280
|
* Parameters for extracting information from URLs.
|
|
280
281
|
* Defines options for extracting information from URLs.
|
|
281
282
|
*/
|
|
283
|
+
interface AgentOptions {
|
|
284
|
+
model?: string;
|
|
285
|
+
prompt?: string;
|
|
286
|
+
sessionId?: string;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Parameters for extracting information from URLs.
|
|
290
|
+
* Defines options for extracting information from URLs.
|
|
291
|
+
*/
|
|
292
|
+
interface AgentOptionsExtract {
|
|
293
|
+
model?: string;
|
|
294
|
+
sessionId?: string;
|
|
295
|
+
}
|
|
282
296
|
interface ExtractParams<LLMSchema extends zt.ZodSchema = any> {
|
|
283
297
|
prompt?: string;
|
|
284
298
|
schema?: LLMSchema | object;
|
|
@@ -289,6 +303,7 @@ interface ExtractParams<LLMSchema extends zt.ZodSchema = any> {
|
|
|
289
303
|
origin?: string;
|
|
290
304
|
showSources?: boolean;
|
|
291
305
|
scrapeOptions?: CrawlScrapeOptions;
|
|
306
|
+
agent?: AgentOptionsExtract;
|
|
292
307
|
}
|
|
293
308
|
/**
|
|
294
309
|
* Response interface for extracting information from URLs.
|
|
@@ -765,4 +780,4 @@ declare class CrawlWatcher extends TypedEventTarget<CrawlWatcherEvents> {
|
|
|
765
780
|
close(): void;
|
|
766
781
|
}
|
|
767
782
|
|
|
768
|
-
export { type Action, type ActionsResult, type BatchScrapeResponse, type BatchScrapeStatusResponse, type CrawlErrorsResponse, type CrawlParams, type CrawlResponse, type CrawlScrapeOptions, type CrawlStatusResponse, CrawlWatcher, type DeepResearchParams, type DeepResearchResponse, type DeepResearchStatusResponse, type ErrorResponse, type ExtractParams, type ExtractResponse, type FirecrawlAppConfig, type FirecrawlDocument, type FirecrawlDocumentMetadata, FirecrawlError, type GenerateLLMsTextParams, type GenerateLLMsTextResponse, type GenerateLLMsTextStatusResponse, type MapParams, type MapResponse, type ScrapeParams, type ScrapeResponse, type SearchParams, type SearchResponse, FirecrawlApp as default };
|
|
783
|
+
export { type Action, type ActionsResult, type AgentOptions, type AgentOptionsExtract, type BatchScrapeResponse, type BatchScrapeStatusResponse, type CrawlErrorsResponse, type CrawlParams, type CrawlResponse, type CrawlScrapeOptions, type CrawlStatusResponse, CrawlWatcher, type DeepResearchParams, type DeepResearchResponse, type DeepResearchStatusResponse, type ErrorResponse, type ExtractParams, type ExtractResponse, type FirecrawlAppConfig, type FirecrawlDocument, type FirecrawlDocumentMetadata, FirecrawlError, type GenerateLLMsTextParams, type GenerateLLMsTextResponse, type GenerateLLMsTextStatusResponse, type MapParams, type MapResponse, type ScrapeParams, type ScrapeResponse, type SearchParams, type SearchResponse, FirecrawlApp as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -160,6 +160,7 @@ interface ScrapeParams<LLMSchema extends zt.ZodSchema = any, ActionsSchema exten
|
|
|
160
160
|
modes?: ("json" | "git-diff")[];
|
|
161
161
|
};
|
|
162
162
|
actions?: ActionsSchema;
|
|
163
|
+
agent?: AgentOptions;
|
|
163
164
|
}
|
|
164
165
|
interface ActionsResult {
|
|
165
166
|
screenshots: string[];
|
|
@@ -279,6 +280,19 @@ interface MapResponse {
|
|
|
279
280
|
* Parameters for extracting information from URLs.
|
|
280
281
|
* Defines options for extracting information from URLs.
|
|
281
282
|
*/
|
|
283
|
+
interface AgentOptions {
|
|
284
|
+
model?: string;
|
|
285
|
+
prompt?: string;
|
|
286
|
+
sessionId?: string;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Parameters for extracting information from URLs.
|
|
290
|
+
* Defines options for extracting information from URLs.
|
|
291
|
+
*/
|
|
292
|
+
interface AgentOptionsExtract {
|
|
293
|
+
model?: string;
|
|
294
|
+
sessionId?: string;
|
|
295
|
+
}
|
|
282
296
|
interface ExtractParams<LLMSchema extends zt.ZodSchema = any> {
|
|
283
297
|
prompt?: string;
|
|
284
298
|
schema?: LLMSchema | object;
|
|
@@ -289,6 +303,7 @@ interface ExtractParams<LLMSchema extends zt.ZodSchema = any> {
|
|
|
289
303
|
origin?: string;
|
|
290
304
|
showSources?: boolean;
|
|
291
305
|
scrapeOptions?: CrawlScrapeOptions;
|
|
306
|
+
agent?: AgentOptionsExtract;
|
|
292
307
|
}
|
|
293
308
|
/**
|
|
294
309
|
* Response interface for extracting information from URLs.
|
|
@@ -765,4 +780,4 @@ declare class CrawlWatcher extends TypedEventTarget<CrawlWatcherEvents> {
|
|
|
765
780
|
close(): void;
|
|
766
781
|
}
|
|
767
782
|
|
|
768
|
-
export { type Action, type ActionsResult, type BatchScrapeResponse, type BatchScrapeStatusResponse, type CrawlErrorsResponse, type CrawlParams, type CrawlResponse, type CrawlScrapeOptions, type CrawlStatusResponse, CrawlWatcher, type DeepResearchParams, type DeepResearchResponse, type DeepResearchStatusResponse, type ErrorResponse, type ExtractParams, type ExtractResponse, type FirecrawlAppConfig, type FirecrawlDocument, type FirecrawlDocumentMetadata, FirecrawlError, type GenerateLLMsTextParams, type GenerateLLMsTextResponse, type GenerateLLMsTextStatusResponse, type MapParams, type MapResponse, type ScrapeParams, type ScrapeResponse, type SearchParams, type SearchResponse, FirecrawlApp as default };
|
|
783
|
+
export { type Action, type ActionsResult, type AgentOptions, type AgentOptionsExtract, type BatchScrapeResponse, type BatchScrapeStatusResponse, type CrawlErrorsResponse, type CrawlParams, type CrawlResponse, type CrawlScrapeOptions, type CrawlStatusResponse, CrawlWatcher, type DeepResearchParams, type DeepResearchResponse, type DeepResearchStatusResponse, type ErrorResponse, type ExtractParams, type ExtractResponse, type FirecrawlAppConfig, type FirecrawlDocument, type FirecrawlDocumentMetadata, FirecrawlError, type GenerateLLMsTextParams, type GenerateLLMsTextResponse, type GenerateLLMsTextStatusResponse, type MapParams, type MapResponse, type ScrapeParams, type ScrapeResponse, type SearchParams, type SearchResponse, FirecrawlApp as default };
|