@mendable/firecrawl 4.15.3 → 4.16.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.
|
@@ -8,7 +8,7 @@ var require_package = __commonJS({
|
|
|
8
8
|
"package.json"(exports, module) {
|
|
9
9
|
module.exports = {
|
|
10
10
|
name: "@mendable/firecrawl-js",
|
|
11
|
-
version: "4.
|
|
11
|
+
version: "4.16.0",
|
|
12
12
|
description: "JavaScript SDK for Firecrawl API",
|
|
13
13
|
main: "dist/index.js",
|
|
14
14
|
types: "dist/index.d.ts",
|
package/dist/index.cjs
CHANGED
|
@@ -35,7 +35,7 @@ var require_package = __commonJS({
|
|
|
35
35
|
"package.json"(exports2, module2) {
|
|
36
36
|
module2.exports = {
|
|
37
37
|
name: "@mendable/firecrawl-js",
|
|
38
|
-
version: "4.
|
|
38
|
+
version: "4.16.0",
|
|
39
39
|
description: "JavaScript SDK for Firecrawl API",
|
|
40
40
|
main: "dist/index.js",
|
|
41
41
|
types: "dist/index.d.ts",
|
package/dist/index.d.cts
CHANGED
|
@@ -40,7 +40,11 @@ interface AttributesFormat extends Format {
|
|
|
40
40
|
attribute: string;
|
|
41
41
|
}>;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
interface QueryFormat {
|
|
44
|
+
type: 'query';
|
|
45
|
+
prompt: string;
|
|
46
|
+
}
|
|
47
|
+
type FormatOption = FormatString | Format | JsonFormat | ChangeTrackingFormat | ScreenshotFormat | AttributesFormat | QueryFormat;
|
|
44
48
|
interface LocationConfig$1 {
|
|
45
49
|
country?: string;
|
|
46
50
|
languages?: string[];
|
|
@@ -318,6 +322,7 @@ interface Document {
|
|
|
318
322
|
values: string[];
|
|
319
323
|
}>;
|
|
320
324
|
actions?: Record<string, unknown>;
|
|
325
|
+
answer?: string;
|
|
321
326
|
warning?: string;
|
|
322
327
|
changeTracking?: Record<string, unknown>;
|
|
323
328
|
branding?: BrandingProfile;
|
|
@@ -567,6 +572,7 @@ interface BrowserCreateResponse {
|
|
|
567
572
|
id?: string;
|
|
568
573
|
cdpUrl?: string;
|
|
569
574
|
liveViewUrl?: string;
|
|
575
|
+
interactiveLiveViewUrl?: string;
|
|
570
576
|
expiresAt?: string;
|
|
571
577
|
error?: string;
|
|
572
578
|
}
|
|
@@ -590,6 +596,7 @@ interface BrowserSession {
|
|
|
590
596
|
status: string;
|
|
591
597
|
cdpUrl: string;
|
|
592
598
|
liveViewUrl: string;
|
|
599
|
+
interactiveLiveViewUrl?: string;
|
|
593
600
|
streamWebView: boolean;
|
|
594
601
|
createdAt: string;
|
|
595
602
|
lastActivity: string;
|
|
@@ -1842,4 +1849,4 @@ declare class Firecrawl extends FirecrawlClient {
|
|
|
1842
1849
|
get v1(): FirecrawlApp;
|
|
1843
1850
|
}
|
|
1844
1851
|
|
|
1845
|
-
export { type ActionOption, type ActiveCrawl, type ActiveCrawlsResponse, type AgentOptions$1 as AgentOptions, type AgentResponse, type AgentStatusResponse, type AgentWebhookConfig, type AgentWebhookEvent, type AttributesFormat, type BatchScrapeJob, type BatchScrapeOptions, type BatchScrapeResponse$1 as BatchScrapeResponse, type BrandingProfile, type BrowserCreateResponse, type BrowserDeleteResponse, type BrowserExecuteResponse, type BrowserListResponse, type BrowserSession, type CategoryOption, type ChangeTrackingFormat, type ClickAction, type ConcurrencyCheck, type CrawlErrorsResponse$1 as CrawlErrorsResponse, type CrawlJob, type CrawlOptions, type CrawlResponse$1 as CrawlResponse, type CreditUsage, type CreditUsageHistoricalPeriod, type CreditUsageHistoricalResponse, type Document, type DocumentMetadata, type ErrorDetails, type ExecuteJavascriptAction, type ExtractResponse$1 as ExtractResponse, Firecrawl, FirecrawlApp as FirecrawlAppV1, FirecrawlClient, type FirecrawlClientOptions, type Format, type FormatOption, type FormatString, JobTimeoutError, type JsonFormat, type LocationConfig$1 as LocationConfig, type MapData, type MapOptions, type PDFAction, type PaginationConfig, type PressAction, type QueueStatusResponse$1 as QueueStatusResponse, type ScrapeAction, type ScrapeOptions, type ScreenshotAction, type ScreenshotFormat, type ScrollAction, SdkError, type SearchData, type SearchRequest, type SearchResultImages, type SearchResultNews, type SearchResultWeb, type TokenUsage, type TokenUsageHistoricalPeriod, type TokenUsageHistoricalResponse, type Viewport, type WaitAction, Watcher, type WatcherOptions, type WebhookConfig, type WriteAction, Firecrawl as default };
|
|
1852
|
+
export { type ActionOption, type ActiveCrawl, type ActiveCrawlsResponse, type AgentOptions$1 as AgentOptions, type AgentResponse, type AgentStatusResponse, type AgentWebhookConfig, type AgentWebhookEvent, type AttributesFormat, type BatchScrapeJob, type BatchScrapeOptions, type BatchScrapeResponse$1 as BatchScrapeResponse, type BrandingProfile, type BrowserCreateResponse, type BrowserDeleteResponse, type BrowserExecuteResponse, type BrowserListResponse, type BrowserSession, type CategoryOption, type ChangeTrackingFormat, type ClickAction, type ConcurrencyCheck, type CrawlErrorsResponse$1 as CrawlErrorsResponse, type CrawlJob, type CrawlOptions, type CrawlResponse$1 as CrawlResponse, type CreditUsage, type CreditUsageHistoricalPeriod, type CreditUsageHistoricalResponse, type Document, type DocumentMetadata, type ErrorDetails, type ExecuteJavascriptAction, type ExtractResponse$1 as ExtractResponse, Firecrawl, FirecrawlApp as FirecrawlAppV1, FirecrawlClient, type FirecrawlClientOptions, type Format, type FormatOption, type FormatString, JobTimeoutError, type JsonFormat, type LocationConfig$1 as LocationConfig, type MapData, type MapOptions, type PDFAction, type PaginationConfig, type PressAction, type QueryFormat, type QueueStatusResponse$1 as QueueStatusResponse, type ScrapeAction, type ScrapeOptions, type ScreenshotAction, type ScreenshotFormat, type ScrollAction, SdkError, type SearchData, type SearchRequest, type SearchResultImages, type SearchResultNews, type SearchResultWeb, type TokenUsage, type TokenUsageHistoricalPeriod, type TokenUsageHistoricalResponse, type Viewport, type WaitAction, Watcher, type WatcherOptions, type WebhookConfig, type WriteAction, Firecrawl as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -40,7 +40,11 @@ interface AttributesFormat extends Format {
|
|
|
40
40
|
attribute: string;
|
|
41
41
|
}>;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
interface QueryFormat {
|
|
44
|
+
type: 'query';
|
|
45
|
+
prompt: string;
|
|
46
|
+
}
|
|
47
|
+
type FormatOption = FormatString | Format | JsonFormat | ChangeTrackingFormat | ScreenshotFormat | AttributesFormat | QueryFormat;
|
|
44
48
|
interface LocationConfig$1 {
|
|
45
49
|
country?: string;
|
|
46
50
|
languages?: string[];
|
|
@@ -318,6 +322,7 @@ interface Document {
|
|
|
318
322
|
values: string[];
|
|
319
323
|
}>;
|
|
320
324
|
actions?: Record<string, unknown>;
|
|
325
|
+
answer?: string;
|
|
321
326
|
warning?: string;
|
|
322
327
|
changeTracking?: Record<string, unknown>;
|
|
323
328
|
branding?: BrandingProfile;
|
|
@@ -567,6 +572,7 @@ interface BrowserCreateResponse {
|
|
|
567
572
|
id?: string;
|
|
568
573
|
cdpUrl?: string;
|
|
569
574
|
liveViewUrl?: string;
|
|
575
|
+
interactiveLiveViewUrl?: string;
|
|
570
576
|
expiresAt?: string;
|
|
571
577
|
error?: string;
|
|
572
578
|
}
|
|
@@ -590,6 +596,7 @@ interface BrowserSession {
|
|
|
590
596
|
status: string;
|
|
591
597
|
cdpUrl: string;
|
|
592
598
|
liveViewUrl: string;
|
|
599
|
+
interactiveLiveViewUrl?: string;
|
|
593
600
|
streamWebView: boolean;
|
|
594
601
|
createdAt: string;
|
|
595
602
|
lastActivity: string;
|
|
@@ -1842,4 +1849,4 @@ declare class Firecrawl extends FirecrawlClient {
|
|
|
1842
1849
|
get v1(): FirecrawlApp;
|
|
1843
1850
|
}
|
|
1844
1851
|
|
|
1845
|
-
export { type ActionOption, type ActiveCrawl, type ActiveCrawlsResponse, type AgentOptions$1 as AgentOptions, type AgentResponse, type AgentStatusResponse, type AgentWebhookConfig, type AgentWebhookEvent, type AttributesFormat, type BatchScrapeJob, type BatchScrapeOptions, type BatchScrapeResponse$1 as BatchScrapeResponse, type BrandingProfile, type BrowserCreateResponse, type BrowserDeleteResponse, type BrowserExecuteResponse, type BrowserListResponse, type BrowserSession, type CategoryOption, type ChangeTrackingFormat, type ClickAction, type ConcurrencyCheck, type CrawlErrorsResponse$1 as CrawlErrorsResponse, type CrawlJob, type CrawlOptions, type CrawlResponse$1 as CrawlResponse, type CreditUsage, type CreditUsageHistoricalPeriod, type CreditUsageHistoricalResponse, type Document, type DocumentMetadata, type ErrorDetails, type ExecuteJavascriptAction, type ExtractResponse$1 as ExtractResponse, Firecrawl, FirecrawlApp as FirecrawlAppV1, FirecrawlClient, type FirecrawlClientOptions, type Format, type FormatOption, type FormatString, JobTimeoutError, type JsonFormat, type LocationConfig$1 as LocationConfig, type MapData, type MapOptions, type PDFAction, type PaginationConfig, type PressAction, type QueueStatusResponse$1 as QueueStatusResponse, type ScrapeAction, type ScrapeOptions, type ScreenshotAction, type ScreenshotFormat, type ScrollAction, SdkError, type SearchData, type SearchRequest, type SearchResultImages, type SearchResultNews, type SearchResultWeb, type TokenUsage, type TokenUsageHistoricalPeriod, type TokenUsageHistoricalResponse, type Viewport, type WaitAction, Watcher, type WatcherOptions, type WebhookConfig, type WriteAction, Firecrawl as default };
|
|
1852
|
+
export { type ActionOption, type ActiveCrawl, type ActiveCrawlsResponse, type AgentOptions$1 as AgentOptions, type AgentResponse, type AgentStatusResponse, type AgentWebhookConfig, type AgentWebhookEvent, type AttributesFormat, type BatchScrapeJob, type BatchScrapeOptions, type BatchScrapeResponse$1 as BatchScrapeResponse, type BrandingProfile, type BrowserCreateResponse, type BrowserDeleteResponse, type BrowserExecuteResponse, type BrowserListResponse, type BrowserSession, type CategoryOption, type ChangeTrackingFormat, type ClickAction, type ConcurrencyCheck, type CrawlErrorsResponse$1 as CrawlErrorsResponse, type CrawlJob, type CrawlOptions, type CrawlResponse$1 as CrawlResponse, type CreditUsage, type CreditUsageHistoricalPeriod, type CreditUsageHistoricalResponse, type Document, type DocumentMetadata, type ErrorDetails, type ExecuteJavascriptAction, type ExtractResponse$1 as ExtractResponse, Firecrawl, FirecrawlApp as FirecrawlAppV1, FirecrawlClient, type FirecrawlClientOptions, type Format, type FormatOption, type FormatString, JobTimeoutError, type JsonFormat, type LocationConfig$1 as LocationConfig, type MapData, type MapOptions, type PDFAction, type PaginationConfig, type PressAction, type QueryFormat, type QueueStatusResponse$1 as QueueStatusResponse, type ScrapeAction, type ScrapeOptions, type ScreenshotAction, type ScreenshotFormat, type ScrollAction, SdkError, type SearchData, type SearchRequest, type SearchResultImages, type SearchResultNews, type SearchResultWeb, type TokenUsage, type TokenUsageHistoricalPeriod, type TokenUsageHistoricalResponse, type Viewport, type WaitAction, Watcher, type WatcherOptions, type WebhookConfig, type WriteAction, Firecrawl as default };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_package
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OM7BT4QE.js";
|
|
4
4
|
|
|
5
5
|
// src/v2/utils/httpClient.ts
|
|
6
6
|
import axios from "axios";
|
|
@@ -1483,7 +1483,7 @@ var FirecrawlApp = class {
|
|
|
1483
1483
|
if (typeof process !== "undefined" && process.env && process.env.npm_package_version) {
|
|
1484
1484
|
return process.env.npm_package_version;
|
|
1485
1485
|
}
|
|
1486
|
-
const packageJson = await import("./package-
|
|
1486
|
+
const packageJson = await import("./package-KOMYCNXX.js");
|
|
1487
1487
|
return packageJson.default.version;
|
|
1488
1488
|
} catch (error) {
|
|
1489
1489
|
const isTest = typeof process !== "undefined" && (process.env.JEST_WORKER_ID != null || false);
|
package/package.json
CHANGED
package/src/v2/types.ts
CHANGED
|
@@ -51,13 +51,19 @@ export interface AttributesFormat extends Format {
|
|
|
51
51
|
}>;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
export interface QueryFormat {
|
|
55
|
+
type: 'query';
|
|
56
|
+
prompt: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
54
59
|
export type FormatOption =
|
|
55
60
|
| FormatString
|
|
56
61
|
| Format
|
|
57
62
|
| JsonFormat
|
|
58
63
|
| ChangeTrackingFormat
|
|
59
64
|
| ScreenshotFormat
|
|
60
|
-
| AttributesFormat
|
|
65
|
+
| AttributesFormat
|
|
66
|
+
| QueryFormat;
|
|
61
67
|
|
|
62
68
|
export interface LocationConfig {
|
|
63
69
|
country?: string;
|
|
@@ -388,6 +394,7 @@ export interface Document {
|
|
|
388
394
|
values: string[];
|
|
389
395
|
}>;
|
|
390
396
|
actions?: Record<string, unknown>;
|
|
397
|
+
answer?: string;
|
|
391
398
|
warning?: string;
|
|
392
399
|
changeTracking?: Record<string, unknown>;
|
|
393
400
|
branding?: BrandingProfile;
|
|
@@ -697,6 +704,7 @@ export interface BrowserCreateResponse {
|
|
|
697
704
|
id?: string;
|
|
698
705
|
cdpUrl?: string;
|
|
699
706
|
liveViewUrl?: string;
|
|
707
|
+
interactiveLiveViewUrl?: string;
|
|
700
708
|
expiresAt?: string;
|
|
701
709
|
error?: string;
|
|
702
710
|
}
|
|
@@ -723,6 +731,7 @@ export interface BrowserSession {
|
|
|
723
731
|
status: string;
|
|
724
732
|
cdpUrl: string;
|
|
725
733
|
liveViewUrl: string;
|
|
734
|
+
interactiveLiveViewUrl?: string;
|
|
726
735
|
streamWebView: boolean;
|
|
727
736
|
createdAt: string;
|
|
728
737
|
lastActivity: string;
|