diff --git a/apps/api/src/controllers/v1/types.ts b/apps/api/src/controllers/v1/types.ts index b7ca551b..b3e8df77 100644 --- a/apps/api/src/controllers/v1/types.ts +++ b/apps/api/src/controllers/v1/types.ts @@ -71,11 +71,11 @@ export const actionsSchema = z.array(z.union([ fullPage: z.boolean().default(false), }), z.object({ - type: z.literal("typeText"), + type: z.literal("write"), text: z.string(), }), z.object({ - type: z.literal("pressKey"), + type: z.literal("press"), key: z.string(), }), z.object({ diff --git a/apps/api/src/lib/entities.ts b/apps/api/src/lib/entities.ts index 7723f0f2..05ded7ef 100644 --- a/apps/api/src/lib/entities.ts +++ b/apps/api/src/lib/entities.ts @@ -20,10 +20,10 @@ export type Action = { type: "screenshot", fullPage?: boolean, } | { - type: "typeText", + type: "write", text: string, } | { - type: "pressKey", + type: "press", key: string, } | { type: "scroll", diff --git a/apps/js-sdk/firecrawl/package.json b/apps/js-sdk/firecrawl/package.json index 4b93536f..50657439 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.4.5", + "name": "firecrawl", + "version": "1.5.0", "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 7004d86f..53acd467 100644 --- a/apps/js-sdk/firecrawl/src/index.ts +++ b/apps/js-sdk/firecrawl/src/index.ts @@ -94,10 +94,10 @@ export type Action = { type: "screenshot", fullPage?: boolean, } | { - type: "typeText", + type: "write", text: string, } | { - type: "pressKey", + type: "press", key: string, } | { type: "scroll",