Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

feat(scrape/actions/click): add all parameter (FIR-1443) (#1342)

Gergő Móriczd0b468ee7b7d
diff --git a/apps/api/src/controllers/v1/types.ts b/apps/api/src/controllers/v1/types.ts
index 08988f08c..9d9109fbc 100644
--- a/apps/api/src/controllers/v1/types.ts
+++ b/apps/api/src/controllers/v1/types.ts
@@ -114,6 +114,7 @@ export const actionsSchema = z
z.object({
type: z.literal("click"),
selector: z.string(),
+ all: z.boolean().default(false),
}),
z.object({
type: z.literal("screenshot"),
diff --git a/apps/api/src/lib/entities.ts b/apps/api/src/lib/entities.ts
index 93911485c..42df545dc 100644
--- a/apps/api/src/lib/entities.ts
+++ b/apps/api/src/lib/entities.ts
@@ -21,6 +21,7 @@ export type Action =
| {
type: "click";
selector: string;
+ all?: boolean;
}
| {
type: "screenshot";
diff --git a/apps/js-sdk/firecrawl/package.json b/apps/js-sdk/firecrawl/package.json
index 3ff8c9218..0aca89078 100644
--- a/apps/js-sdk/firecrawl/package.json
+++ b/apps/js-sdk/firecrawl/package.json
@@ -1,6 +1,6 @@
{
"name": "@mendable/firecrawl-js",
- "version": "1.20.0",
+ "version": "1.20.1",
"description": "JavaScript SDK for Firecrawl API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
diff --git a/apps/js-sdk/firecrawl/src/index.ts b/apps/js-sdk/firecrawl/src/index.ts
index bd63d494a..8114e4c35 100644
--- a/apps/js-sdk/firecrawl/src/index.ts
+++ b/apps/js-sdk/firecrawl/src/index.ts
@@ -104,6 +104,7 @@ export type Action = {
} | {
type: "click",
selector: string,
+ all?: boolean,
} | {
type: "screenshot",
fullPage?: boolean,