@keystrokehq/scrapfly 0.1.0 → 0.1.2
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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/capture-screenshot-head.cjs +2 -2
- package/dist/actions/capture-screenshot-head.cjs.map +1 -1
- package/dist/actions/capture-screenshot-head.d.cts +50 -3
- package/dist/actions/capture-screenshot-head.d.cts.map +1 -1
- package/dist/actions/capture-screenshot-head.d.mts +50 -3
- package/dist/actions/capture-screenshot-head.d.mts.map +1 -1
- package/dist/actions/capture-screenshot-head.mjs +2 -2
- package/dist/actions/capture-screenshot-head.mjs.map +1 -1
- package/dist/actions/capture-screenshot.cjs +3 -3
- package/dist/actions/capture-screenshot.cjs.map +1 -1
- package/dist/actions/capture-screenshot.d.cts +44 -3
- package/dist/actions/capture-screenshot.d.cts.map +1 -1
- package/dist/actions/capture-screenshot.d.mts +44 -3
- package/dist/actions/capture-screenshot.d.mts.map +1 -1
- package/dist/actions/capture-screenshot.mjs +3 -3
- package/dist/actions/capture-screenshot.mjs.map +1 -1
- package/dist/actions/create-crawler.cjs +1 -1
- package/dist/actions/create-crawler.cjs.map +1 -1
- package/dist/actions/create-crawler.d.cts +31 -3
- package/dist/actions/create-crawler.d.cts.map +1 -1
- package/dist/actions/create-crawler.d.mts +31 -3
- package/dist/actions/create-crawler.d.mts.map +1 -1
- package/dist/actions/create-crawler.mjs +1 -1
- package/dist/actions/create-crawler.mjs.map +1 -1
- package/dist/actions/extract-data.cjs.map +1 -1
- package/dist/actions/extract-data.d.cts +53 -3
- package/dist/actions/extract-data.d.cts.map +1 -1
- package/dist/actions/extract-data.d.mts +53 -3
- package/dist/actions/extract-data.d.mts.map +1 -1
- package/dist/actions/extract-data.mjs.map +1 -1
- package/dist/actions/get-account-info.cjs +26 -26
- package/dist/actions/get-account-info.cjs.map +1 -1
- package/dist/actions/get-account-info.d.cts +73 -3
- package/dist/actions/get-account-info.d.cts.map +1 -1
- package/dist/actions/get-account-info.d.mts +73 -3
- package/dist/actions/get-account-info.d.mts.map +1 -1
- package/dist/actions/get-account-info.mjs +26 -26
- package/dist/actions/get-account-info.mjs.map +1 -1
- package/dist/actions/get-crawler-artifact.cjs +3 -3
- package/dist/actions/get-crawler-artifact.cjs.map +1 -1
- package/dist/actions/get-crawler-artifact.d.cts +18 -3
- package/dist/actions/get-crawler-artifact.d.cts.map +1 -1
- package/dist/actions/get-crawler-artifact.d.mts +18 -3
- package/dist/actions/get-crawler-artifact.d.mts.map +1 -1
- package/dist/actions/get-crawler-artifact.mjs +3 -3
- package/dist/actions/get-crawler-artifact.mjs.map +1 -1
- package/dist/actions/get-crawler-contents.cjs.map +1 -1
- package/dist/actions/get-crawler-contents.d.cts +24 -3
- package/dist/actions/get-crawler-contents.d.cts.map +1 -1
- package/dist/actions/get-crawler-contents.d.mts +24 -3
- package/dist/actions/get-crawler-contents.d.mts.map +1 -1
- package/dist/actions/get-crawler-contents.mjs.map +1 -1
- package/dist/actions/get-crawler-status.cjs +10 -10
- package/dist/actions/get-crawler-status.cjs.map +1 -1
- package/dist/actions/get-crawler-status.d.cts +22 -3
- package/dist/actions/get-crawler-status.d.cts.map +1 -1
- package/dist/actions/get-crawler-status.d.mts +22 -3
- package/dist/actions/get-crawler-status.d.mts.map +1 -1
- package/dist/actions/get-crawler-status.mjs +10 -10
- package/dist/actions/get-crawler-status.mjs.map +1 -1
- package/dist/actions/get-crawler-urls.cjs +3 -3
- package/dist/actions/get-crawler-urls.cjs.map +1 -1
- package/dist/actions/get-crawler-urls.d.cts +18 -3
- package/dist/actions/get-crawler-urls.d.cts.map +1 -1
- package/dist/actions/get-crawler-urls.d.mts +18 -3
- package/dist/actions/get-crawler-urls.d.mts.map +1 -1
- package/dist/actions/get-crawler-urls.mjs +3 -3
- package/dist/actions/get-crawler-urls.mjs.map +1 -1
- package/dist/actions/scrape-post.cjs +3 -3
- package/dist/actions/scrape-post.cjs.map +1 -1
- package/dist/actions/scrape-post.d.cts +38 -3
- package/dist/actions/scrape-post.d.cts.map +1 -1
- package/dist/actions/scrape-post.d.mts +38 -3
- package/dist/actions/scrape-post.d.mts.map +1 -1
- package/dist/actions/scrape-post.mjs +3 -3
- package/dist/actions/scrape-post.mjs.map +1 -1
- package/dist/actions/scrape-with-put.cjs +3 -3
- package/dist/actions/scrape-with-put.cjs.map +1 -1
- package/dist/actions/scrape-with-put.d.cts +38 -3
- package/dist/actions/scrape-with-put.d.cts.map +1 -1
- package/dist/actions/scrape-with-put.d.mts +38 -3
- package/dist/actions/scrape-with-put.d.mts.map +1 -1
- package/dist/actions/scrape-with-put.mjs +3 -3
- package/dist/actions/scrape-with-put.mjs.map +1 -1
- package/dist/actions/scrape.cjs +3 -3
- package/dist/actions/scrape.cjs.map +1 -1
- package/dist/actions/scrape.d.cts +48 -3
- package/dist/actions/scrape.d.cts.map +1 -1
- package/dist/actions/scrape.d.mts +48 -3
- package/dist/actions/scrape.d.mts.map +1 -1
- package/dist/actions/scrape.mjs +3 -3
- package/dist/actions/scrape.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["scrapfly","executeScrapflyTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { scrapfly } from \"./app\";\nimport { executeScrapflyTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["scrapfly","executeScrapflyTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { scrapfly } from \"./app\";\nimport { executeScrapflyTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return scrapfly.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeScrapflyTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { scrapfly } from \"./app\";\nimport { executeScrapflyTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { scrapfly } from \"./app\";\nimport { executeScrapflyTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return scrapfly.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeScrapflyTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
|
@@ -31,8 +31,8 @@ const ScrapflyCaptureScreenshotHeadInput = zod.z.object({
|
|
|
31
31
|
wait_for_selector: zod.z.string().describe("CSS selector or XPath to wait for before capturing screenshot.").optional()
|
|
32
32
|
}).describe("Request model for capturing screenshot metadata without returning the image body.");
|
|
33
33
|
const ScrapflyCaptureScreenshotHeadOutput = zod.z.object({
|
|
34
|
-
success: zod.z.boolean().describe("Whether the screenshot was captured successfully."),
|
|
35
|
-
screenshot_url: zod.z.string().describe("URL to download the captured screenshot image.")
|
|
34
|
+
success: zod.z.boolean().describe("Whether the screenshot was captured successfully.").nullable(),
|
|
35
|
+
screenshot_url: zod.z.string().describe("URL to download the captured screenshot image.").nullable()
|
|
36
36
|
}).describe("Response model for screenshot HEAD request containing metadata.");
|
|
37
37
|
const scrapflyCaptureScreenshotHead = require_action.action("SCRAPFLY_CAPTURE_SCREENSHOT_HEAD", {
|
|
38
38
|
slug: "scrapfly-capture-screenshot-head",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture-screenshot-head.cjs","names":["z","action"],"sources":["../../src/actions/capture-screenshot-head.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyCaptureScreenshotHeadInput
|
|
1
|
+
{"version":3,"file":"capture-screenshot-head.cjs","names":["z","action"],"sources":["../../src/actions/capture-screenshot-head.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyCaptureScreenshotHeadInput = z.object({\n js: z.string().describe(\"Base64-encoded JavaScript to execute on the page before screenshot (max 16KB).\").optional(),\n url: z.string().describe(\"Target URL to capture screenshot of.\"),\n cache: z.boolean().describe(\"Enable caching for repeated requests. Default is false.\").optional(),\n format: z.enum([\"jpg\", \"png\", \"webp\", \"gif\"]).describe(\"Image format options for screenshot.\").optional(),\n capture: z.string().describe(\"Capture area: 'viewport' for visible area, 'fullpage' for entire page, or a CSS selector/XPath for specific element.\").optional(),\n country: z.string().describe(\"Proxy location using ISO 3166 alpha-2 country code (e.g., 'US', 'FR', 'DE'). Default is 'us'.\").optional(),\n options: z.string().describe(\"Comma-separated flags: 'dark_mode' for dark theme, 'block_banners' to hide ads/popups, 'print_media_format' for print styles.\").optional(),\n timeout: z.number().int().describe(\"Maximum request time in milliseconds (range: 60000-120000). Default is 60000.\").optional(),\n cache_ttl: z.number().int().describe(\"Cache duration in seconds. Default is 86400 (24 hours).\").optional(),\n resolution: z.string().describe(\"Screen dimensions as widthxheight (e.g., '1920x1080'). Default is 1920x1080.\").optional(),\n auto_scroll: z.boolean().describe(\"Auto-scroll to bottom of page to trigger lazy-loaded content. Default is false.\").optional(),\n cache_clear: z.boolean().describe(\"Force cache refresh by clearing existing cached result. Default is false.\").optional(),\n rendering_wait: z.number().int().describe(\"Delay after page load before capturing screenshot, in milliseconds. Default is 1000.\").optional(),\n vision_deficiency: z.enum([\"none\", \"deuteranopia\", \"protanopia\", \"tritanopia\", \"achromatopsia\", \"blurredVision\"]).describe(\"Accessibility simulation options for vision deficiency.\").optional(),\n wait_for_selector: z.string().describe(\"CSS selector or XPath to wait for before capturing screenshot.\").optional(),\n}).describe(\"Request model for capturing screenshot metadata without returning the image body.\");\nexport const ScrapflyCaptureScreenshotHeadOutput = z.object({\n success: z.boolean().describe(\"Whether the screenshot was captured successfully.\").nullable(),\n screenshot_url: z.string().describe(\"URL to download the captured screenshot image.\").nullable(),\n}).describe(\"Response model for screenshot HEAD request containing metadata.\");\n\nexport const scrapflyCaptureScreenshotHead = action(\"SCRAPFLY_CAPTURE_SCREENSHOT_HEAD\", {\n slug: \"scrapfly-capture-screenshot-head\",\n name: \"Capture Screenshot Metadata (HEAD)\",\n description: \"Tool to capture screenshot metadata without downloading the image body. Use this for async screenshot workflows where you need the URL to retrieve the image later. Returns the screenshot URL in response, saving bandwidth compared to full screenshot retrieval.\",\n input: ScrapflyCaptureScreenshotHeadInput,\n output: ScrapflyCaptureScreenshotHeadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CACnH,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC/D,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAChG,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAO;EAAQ;CAAK,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC9J,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACvI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CACvK,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC7H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACzG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACzH,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC9H,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACxH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC3I,mBAAmBA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAgB;EAAc;EAAc;EAAiB;CAAe,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC/L,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAC/F,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC5F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAE7E,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,56 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/capture-screenshot-head.d.ts
|
|
4
|
-
declare const ScrapflyCaptureScreenshotHeadInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapflyCaptureScreenshotHeadInput: z.ZodObject<{
|
|
5
|
+
js: z.ZodOptional<z.ZodString>;
|
|
6
|
+
url: z.ZodString;
|
|
7
|
+
cache: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
jpg: "jpg";
|
|
10
|
+
png: "png";
|
|
11
|
+
webp: "webp";
|
|
12
|
+
gif: "gif";
|
|
13
|
+
}>>;
|
|
14
|
+
capture: z.ZodOptional<z.ZodString>;
|
|
15
|
+
country: z.ZodOptional<z.ZodString>;
|
|
16
|
+
options: z.ZodOptional<z.ZodString>;
|
|
17
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
cache_ttl: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
20
|
+
auto_scroll: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
cache_clear: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
rendering_wait: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
vision_deficiency: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
none: "none";
|
|
25
|
+
deuteranopia: "deuteranopia";
|
|
26
|
+
protanopia: "protanopia";
|
|
27
|
+
tritanopia: "tritanopia";
|
|
28
|
+
achromatopsia: "achromatopsia";
|
|
29
|
+
blurredVision: "blurredVision";
|
|
30
|
+
}>>;
|
|
31
|
+
wait_for_selector: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
declare const ScrapflyCaptureScreenshotHeadOutput: z.ZodObject<{
|
|
34
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
35
|
+
screenshot_url: z.ZodNullable<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
declare const scrapflyCaptureScreenshotHead: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
38
|
+
url: string;
|
|
39
|
+
js?: string | undefined;
|
|
40
|
+
cache?: boolean | undefined;
|
|
41
|
+
format?: "jpg" | "png" | "webp" | "gif" | undefined;
|
|
42
|
+
capture?: string | undefined;
|
|
43
|
+
country?: string | undefined;
|
|
44
|
+
options?: string | undefined;
|
|
45
|
+
timeout?: number | undefined;
|
|
46
|
+
cache_ttl?: number | undefined;
|
|
47
|
+
resolution?: string | undefined;
|
|
48
|
+
auto_scroll?: boolean | undefined;
|
|
49
|
+
cache_clear?: boolean | undefined;
|
|
50
|
+
rendering_wait?: number | undefined;
|
|
51
|
+
vision_deficiency?: "none" | "deuteranopia" | "protanopia" | "tritanopia" | "achromatopsia" | "blurredVision" | undefined;
|
|
52
|
+
wait_for_selector?: string | undefined;
|
|
53
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
54
|
//#endregion
|
|
8
55
|
export { scrapflyCaptureScreenshotHead };
|
|
9
56
|
//# sourceMappingURL=capture-screenshot-head.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture-screenshot-head.d.cts","names":[],"sources":["../../src/actions/capture-screenshot-head.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"capture-screenshot-head.d.cts","names":[],"sources":["../../src/actions/capture-screenshot-head.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;cAKnC,6BAAA,gCAA6B,wBAAA"}
|
|
@@ -1,9 +1,56 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/capture-screenshot-head.d.ts
|
|
4
|
-
declare const ScrapflyCaptureScreenshotHeadInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapflyCaptureScreenshotHeadInput: z.ZodObject<{
|
|
5
|
+
js: z.ZodOptional<z.ZodString>;
|
|
6
|
+
url: z.ZodString;
|
|
7
|
+
cache: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
jpg: "jpg";
|
|
10
|
+
png: "png";
|
|
11
|
+
webp: "webp";
|
|
12
|
+
gif: "gif";
|
|
13
|
+
}>>;
|
|
14
|
+
capture: z.ZodOptional<z.ZodString>;
|
|
15
|
+
country: z.ZodOptional<z.ZodString>;
|
|
16
|
+
options: z.ZodOptional<z.ZodString>;
|
|
17
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
cache_ttl: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
20
|
+
auto_scroll: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
cache_clear: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
rendering_wait: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
vision_deficiency: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
none: "none";
|
|
25
|
+
deuteranopia: "deuteranopia";
|
|
26
|
+
protanopia: "protanopia";
|
|
27
|
+
tritanopia: "tritanopia";
|
|
28
|
+
achromatopsia: "achromatopsia";
|
|
29
|
+
blurredVision: "blurredVision";
|
|
30
|
+
}>>;
|
|
31
|
+
wait_for_selector: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
declare const ScrapflyCaptureScreenshotHeadOutput: z.ZodObject<{
|
|
34
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
35
|
+
screenshot_url: z.ZodNullable<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
declare const scrapflyCaptureScreenshotHead: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
38
|
+
url: string;
|
|
39
|
+
js?: string | undefined;
|
|
40
|
+
cache?: boolean | undefined;
|
|
41
|
+
format?: "jpg" | "png" | "webp" | "gif" | undefined;
|
|
42
|
+
capture?: string | undefined;
|
|
43
|
+
country?: string | undefined;
|
|
44
|
+
options?: string | undefined;
|
|
45
|
+
timeout?: number | undefined;
|
|
46
|
+
cache_ttl?: number | undefined;
|
|
47
|
+
resolution?: string | undefined;
|
|
48
|
+
auto_scroll?: boolean | undefined;
|
|
49
|
+
cache_clear?: boolean | undefined;
|
|
50
|
+
rendering_wait?: number | undefined;
|
|
51
|
+
vision_deficiency?: "none" | "deuteranopia" | "protanopia" | "tritanopia" | "achromatopsia" | "blurredVision" | undefined;
|
|
52
|
+
wait_for_selector?: string | undefined;
|
|
53
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
54
|
//#endregion
|
|
8
55
|
export { scrapflyCaptureScreenshotHead };
|
|
9
56
|
//# sourceMappingURL=capture-screenshot-head.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture-screenshot-head.d.mts","names":[],"sources":["../../src/actions/capture-screenshot-head.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"capture-screenshot-head.d.mts","names":[],"sources":["../../src/actions/capture-screenshot-head.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;cAKnC,6BAAA,gCAA6B,wBAAA"}
|
|
@@ -34,8 +34,8 @@ const scrapflyCaptureScreenshotHead = action("SCRAPFLY_CAPTURE_SCREENSHOT_HEAD",
|
|
|
34
34
|
wait_for_selector: z.string().describe("CSS selector or XPath to wait for before capturing screenshot.").optional()
|
|
35
35
|
}).describe("Request model for capturing screenshot metadata without returning the image body."),
|
|
36
36
|
output: z.object({
|
|
37
|
-
success: z.boolean().describe("Whether the screenshot was captured successfully."),
|
|
38
|
-
screenshot_url: z.string().describe("URL to download the captured screenshot image.")
|
|
37
|
+
success: z.boolean().describe("Whether the screenshot was captured successfully.").nullable(),
|
|
38
|
+
screenshot_url: z.string().describe("URL to download the captured screenshot image.").nullable()
|
|
39
39
|
}).describe("Response model for screenshot HEAD request containing metadata.")
|
|
40
40
|
});
|
|
41
41
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture-screenshot-head.mjs","names":[],"sources":["../../src/actions/capture-screenshot-head.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyCaptureScreenshotHeadInput
|
|
1
|
+
{"version":3,"file":"capture-screenshot-head.mjs","names":[],"sources":["../../src/actions/capture-screenshot-head.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyCaptureScreenshotHeadInput = z.object({\n js: z.string().describe(\"Base64-encoded JavaScript to execute on the page before screenshot (max 16KB).\").optional(),\n url: z.string().describe(\"Target URL to capture screenshot of.\"),\n cache: z.boolean().describe(\"Enable caching for repeated requests. Default is false.\").optional(),\n format: z.enum([\"jpg\", \"png\", \"webp\", \"gif\"]).describe(\"Image format options for screenshot.\").optional(),\n capture: z.string().describe(\"Capture area: 'viewport' for visible area, 'fullpage' for entire page, or a CSS selector/XPath for specific element.\").optional(),\n country: z.string().describe(\"Proxy location using ISO 3166 alpha-2 country code (e.g., 'US', 'FR', 'DE'). Default is 'us'.\").optional(),\n options: z.string().describe(\"Comma-separated flags: 'dark_mode' for dark theme, 'block_banners' to hide ads/popups, 'print_media_format' for print styles.\").optional(),\n timeout: z.number().int().describe(\"Maximum request time in milliseconds (range: 60000-120000). Default is 60000.\").optional(),\n cache_ttl: z.number().int().describe(\"Cache duration in seconds. Default is 86400 (24 hours).\").optional(),\n resolution: z.string().describe(\"Screen dimensions as widthxheight (e.g., '1920x1080'). Default is 1920x1080.\").optional(),\n auto_scroll: z.boolean().describe(\"Auto-scroll to bottom of page to trigger lazy-loaded content. Default is false.\").optional(),\n cache_clear: z.boolean().describe(\"Force cache refresh by clearing existing cached result. Default is false.\").optional(),\n rendering_wait: z.number().int().describe(\"Delay after page load before capturing screenshot, in milliseconds. Default is 1000.\").optional(),\n vision_deficiency: z.enum([\"none\", \"deuteranopia\", \"protanopia\", \"tritanopia\", \"achromatopsia\", \"blurredVision\"]).describe(\"Accessibility simulation options for vision deficiency.\").optional(),\n wait_for_selector: z.string().describe(\"CSS selector or XPath to wait for before capturing screenshot.\").optional(),\n}).describe(\"Request model for capturing screenshot metadata without returning the image body.\");\nexport const ScrapflyCaptureScreenshotHeadOutput = z.object({\n success: z.boolean().describe(\"Whether the screenshot was captured successfully.\").nullable(),\n screenshot_url: z.string().describe(\"URL to download the captured screenshot image.\").nullable(),\n}).describe(\"Response model for screenshot HEAD request containing metadata.\");\n\nexport const scrapflyCaptureScreenshotHead = action(\"SCRAPFLY_CAPTURE_SCREENSHOT_HEAD\", {\n slug: \"scrapfly-capture-screenshot-head\",\n name: \"Capture Screenshot Metadata (HEAD)\",\n description: \"Tool to capture screenshot metadata without downloading the image body. Use this for async screenshot workflows where you need the URL to retrieve the image later. Returns the screenshot URL in response, saving bandwidth compared to full screenshot retrieval.\",\n input: ScrapflyCaptureScreenshotHeadInput,\n output: ScrapflyCaptureScreenshotHeadOutput,\n});\n"],"mappings":";;AA0BA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1BgD,EAAE,OAAO;EACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EACnH,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EAC/D,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAChG,QAAQ,EAAE,KAAK;GAAC;GAAO;GAAO;GAAQ;EAAK,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;EAC9J,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EACvI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;EACvK,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EAC7H,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACzG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACzH,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC9H,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EACxH,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAC3I,mBAAmB,EAAE,KAAK;GAAC;GAAQ;GAAgB;GAAc;GAAc;GAAiB;EAAe,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC/L,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,SAAS,mFAUH;CACP,QAViD,EAAE,OAAO;EAC1D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC5F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,SAAS,iEAOF;AACV,CAAC"}
|
|
@@ -23,9 +23,9 @@ const ScrapflyCaptureScreenshotInput = zod.z.object({
|
|
|
23
23
|
wait_for_selector: zod.z.string().describe("CSS selector or XPath to wait for before capturing. Screenshot is taken after this element appears.").optional()
|
|
24
24
|
}).describe("Request model for capturing a screenshot of a web page.");
|
|
25
25
|
const ScrapflyCaptureScreenshot_FileDownloadableSchema = zod.z.object({
|
|
26
|
-
name: zod.z.string().describe("Name of the file"),
|
|
27
|
-
s3url: zod.z.string().describe("S3 URL of the downloaded file."),
|
|
28
|
-
mimetype: zod.z.string().describe("Mime type of the file.")
|
|
26
|
+
name: zod.z.string().describe("Name of the file").nullable(),
|
|
27
|
+
s3url: zod.z.string().describe("S3 URL of the downloaded file.").nullable(),
|
|
28
|
+
mimetype: zod.z.string().describe("Mime type of the file.").nullable()
|
|
29
29
|
});
|
|
30
30
|
const ScrapflyCaptureScreenshotOutput = zod.z.object({ screenshot: ScrapflyCaptureScreenshot_FileDownloadableSchema.nullable() }).describe("Response model for screenshot capture containing the image file.");
|
|
31
31
|
const scrapflyCaptureScreenshot = require_action.action("SCRAPFLY_CAPTURE_SCREENSHOT", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture-screenshot.cjs","names":["z","action"],"sources":["../../src/actions/capture-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyCaptureScreenshotInput
|
|
1
|
+
{"version":3,"file":"capture-screenshot.cjs","names":["z","action"],"sources":["../../src/actions/capture-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyCaptureScreenshotInput = z.object({\n js: z.string().describe(\"JavaScript code to execute on the page before capturing screenshot.\").optional(),\n url: z.string().describe(\"Target URL to capture a screenshot of.\"),\n cache: z.boolean().describe(\"Enable caching of the screenshot result.\").optional(),\n format: z.enum([\"jpg\", \"png\", \"webp\", \"gif\"]).default(\"jpg\").describe(\"Screenshot image format (jpg, png, webp, or gif). Default is jpg.\").optional(),\n capture: z.string().describe(\"Area to capture: 'viewport' for visible area, 'fullpage' for entire page, or a CSS/XPath selector for a specific element. Default is viewport.\").optional(),\n country: z.string().describe(\"Proxy geolocation country code (e.g., 'US', 'FR', 'DE') to capture screenshot from that region.\").optional(),\n options: z.string().describe(\"Comma-separated screenshot options: 'dark_mode' for dark theme, 'block_banners' to hide cookie/privacy banners, 'print_media_format' for print styles.\").optional(),\n timeout: z.number().int().describe(\"Request timeout in milliseconds. Default is 30000 (30 seconds).\").optional(),\n cache_ttl: z.number().int().describe(\"Cache time-to-live in seconds. Only applies when cache is enabled.\").optional(),\n resolution: z.string().describe(\"Screen resolution in WIDTHxHEIGHT format (e.g., '1920x1080'). Default is 1920x1080.\").optional(),\n auto_scroll: z.boolean().describe(\"Automatically scroll down the page before capturing. Useful for lazy-loaded content.\").optional(),\n cache_clear: z.boolean().describe(\"Clear and refresh cache for this request.\").optional(),\n rendering_wait: z.number().int().describe(\"Time to wait after page load before capturing screenshot, in milliseconds. Useful for waiting for dynamic content.\").optional(),\n wait_for_selector: z.string().describe(\"CSS selector or XPath to wait for before capturing. Screenshot is taken after this element appears.\").optional(),\n}).describe(\"Request model for capturing a screenshot of a web page.\");\nconst ScrapflyCaptureScreenshot_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nexport const ScrapflyCaptureScreenshotOutput = z.object({\n screenshot: ScrapflyCaptureScreenshot_FileDownloadableSchema.nullable(),\n}).describe(\"Response model for screenshot capture containing the image file.\");\n\nexport const scrapflyCaptureScreenshot = action(\"SCRAPFLY_CAPTURE_SCREENSHOT\", {\n slug: \"scrapfly-capture-screenshot\",\n name: \"Capture Website Screenshot\",\n description: \"Tool to capture a full-page or viewport screenshot of a website. Use when you need to take a screenshot with options like JS rendering, custom resolution, or accessibility testing. Returns the screenshot image directly. Supports vision deficiency simulations and dark mode.\",\n input: ScrapflyCaptureScreenshotInput,\n output: ScrapflyCaptureScreenshotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACxG,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACjE,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAO;EAAQ;CAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACpJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;CACxL,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CACzI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CAChM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC/G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACpH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAChI,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CACnI,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACzK,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;AACzJ,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC;AACD,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,YAAY,iDAAiD,SAAS,EACxE,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAE9E,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,50 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/capture-screenshot.d.ts
|
|
4
|
-
declare const ScrapflyCaptureScreenshotInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapflyCaptureScreenshotInput: z.ZodObject<{
|
|
5
|
+
js: z.ZodOptional<z.ZodString>;
|
|
6
|
+
url: z.ZodString;
|
|
7
|
+
cache: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
9
|
+
jpg: "jpg";
|
|
10
|
+
png: "png";
|
|
11
|
+
webp: "webp";
|
|
12
|
+
gif: "gif";
|
|
13
|
+
}>>>;
|
|
14
|
+
capture: z.ZodOptional<z.ZodString>;
|
|
15
|
+
country: z.ZodOptional<z.ZodString>;
|
|
16
|
+
options: z.ZodOptional<z.ZodString>;
|
|
17
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
cache_ttl: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
20
|
+
auto_scroll: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
cache_clear: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
rendering_wait: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
wait_for_selector: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const ScrapflyCaptureScreenshotOutput: z.ZodObject<{
|
|
26
|
+
screenshot: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
name: z.ZodNullable<z.ZodString>;
|
|
28
|
+
s3url: z.ZodNullable<z.ZodString>;
|
|
29
|
+
mimetype: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
declare const scrapflyCaptureScreenshot: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
|
+
url: string;
|
|
34
|
+
js?: string | undefined;
|
|
35
|
+
cache?: boolean | undefined;
|
|
36
|
+
format?: "jpg" | "png" | "webp" | "gif" | undefined;
|
|
37
|
+
capture?: string | undefined;
|
|
38
|
+
country?: string | undefined;
|
|
39
|
+
options?: string | undefined;
|
|
40
|
+
timeout?: number | undefined;
|
|
41
|
+
cache_ttl?: number | undefined;
|
|
42
|
+
resolution?: string | undefined;
|
|
43
|
+
auto_scroll?: boolean | undefined;
|
|
44
|
+
cache_clear?: boolean | undefined;
|
|
45
|
+
rendering_wait?: number | undefined;
|
|
46
|
+
wait_for_selector?: string | undefined;
|
|
47
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
48
|
//#endregion
|
|
8
49
|
export { scrapflyCaptureScreenshot };
|
|
9
50
|
//# sourceMappingURL=capture-screenshot.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture-screenshot.d.cts","names":[],"sources":["../../src/actions/capture-screenshot.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"capture-screenshot.d.cts","names":[],"sources":["../../src/actions/capture-screenshot.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAqB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,50 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/capture-screenshot.d.ts
|
|
4
|
-
declare const ScrapflyCaptureScreenshotInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapflyCaptureScreenshotInput: z.ZodObject<{
|
|
5
|
+
js: z.ZodOptional<z.ZodString>;
|
|
6
|
+
url: z.ZodString;
|
|
7
|
+
cache: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
9
|
+
jpg: "jpg";
|
|
10
|
+
png: "png";
|
|
11
|
+
webp: "webp";
|
|
12
|
+
gif: "gif";
|
|
13
|
+
}>>>;
|
|
14
|
+
capture: z.ZodOptional<z.ZodString>;
|
|
15
|
+
country: z.ZodOptional<z.ZodString>;
|
|
16
|
+
options: z.ZodOptional<z.ZodString>;
|
|
17
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
cache_ttl: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
20
|
+
auto_scroll: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
cache_clear: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
rendering_wait: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
wait_for_selector: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const ScrapflyCaptureScreenshotOutput: z.ZodObject<{
|
|
26
|
+
screenshot: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
name: z.ZodNullable<z.ZodString>;
|
|
28
|
+
s3url: z.ZodNullable<z.ZodString>;
|
|
29
|
+
mimetype: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
declare const scrapflyCaptureScreenshot: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
|
+
url: string;
|
|
34
|
+
js?: string | undefined;
|
|
35
|
+
cache?: boolean | undefined;
|
|
36
|
+
format?: "jpg" | "png" | "webp" | "gif" | undefined;
|
|
37
|
+
capture?: string | undefined;
|
|
38
|
+
country?: string | undefined;
|
|
39
|
+
options?: string | undefined;
|
|
40
|
+
timeout?: number | undefined;
|
|
41
|
+
cache_ttl?: number | undefined;
|
|
42
|
+
resolution?: string | undefined;
|
|
43
|
+
auto_scroll?: boolean | undefined;
|
|
44
|
+
cache_clear?: boolean | undefined;
|
|
45
|
+
rendering_wait?: number | undefined;
|
|
46
|
+
wait_for_selector?: string | undefined;
|
|
47
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
48
|
//#endregion
|
|
8
49
|
export { scrapflyCaptureScreenshot };
|
|
9
50
|
//# sourceMappingURL=capture-screenshot.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture-screenshot.d.mts","names":[],"sources":["../../src/actions/capture-screenshot.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"capture-screenshot.d.mts","names":[],"sources":["../../src/actions/capture-screenshot.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAqB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -23,9 +23,9 @@ const ScrapflyCaptureScreenshotInput = z.object({
|
|
|
23
23
|
wait_for_selector: z.string().describe("CSS selector or XPath to wait for before capturing. Screenshot is taken after this element appears.").optional()
|
|
24
24
|
}).describe("Request model for capturing a screenshot of a web page.");
|
|
25
25
|
const ScrapflyCaptureScreenshot_FileDownloadableSchema = z.object({
|
|
26
|
-
name: z.string().describe("Name of the file"),
|
|
27
|
-
s3url: z.string().describe("S3 URL of the downloaded file."),
|
|
28
|
-
mimetype: z.string().describe("Mime type of the file.")
|
|
26
|
+
name: z.string().describe("Name of the file").nullable(),
|
|
27
|
+
s3url: z.string().describe("S3 URL of the downloaded file.").nullable(),
|
|
28
|
+
mimetype: z.string().describe("Mime type of the file.").nullable()
|
|
29
29
|
});
|
|
30
30
|
const scrapflyCaptureScreenshot = action("SCRAPFLY_CAPTURE_SCREENSHOT", {
|
|
31
31
|
slug: "scrapfly-capture-screenshot",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture-screenshot.mjs","names":[],"sources":["../../src/actions/capture-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyCaptureScreenshotInput
|
|
1
|
+
{"version":3,"file":"capture-screenshot.mjs","names":[],"sources":["../../src/actions/capture-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyCaptureScreenshotInput = z.object({\n js: z.string().describe(\"JavaScript code to execute on the page before capturing screenshot.\").optional(),\n url: z.string().describe(\"Target URL to capture a screenshot of.\"),\n cache: z.boolean().describe(\"Enable caching of the screenshot result.\").optional(),\n format: z.enum([\"jpg\", \"png\", \"webp\", \"gif\"]).default(\"jpg\").describe(\"Screenshot image format (jpg, png, webp, or gif). Default is jpg.\").optional(),\n capture: z.string().describe(\"Area to capture: 'viewport' for visible area, 'fullpage' for entire page, or a CSS/XPath selector for a specific element. Default is viewport.\").optional(),\n country: z.string().describe(\"Proxy geolocation country code (e.g., 'US', 'FR', 'DE') to capture screenshot from that region.\").optional(),\n options: z.string().describe(\"Comma-separated screenshot options: 'dark_mode' for dark theme, 'block_banners' to hide cookie/privacy banners, 'print_media_format' for print styles.\").optional(),\n timeout: z.number().int().describe(\"Request timeout in milliseconds. Default is 30000 (30 seconds).\").optional(),\n cache_ttl: z.number().int().describe(\"Cache time-to-live in seconds. Only applies when cache is enabled.\").optional(),\n resolution: z.string().describe(\"Screen resolution in WIDTHxHEIGHT format (e.g., '1920x1080'). Default is 1920x1080.\").optional(),\n auto_scroll: z.boolean().describe(\"Automatically scroll down the page before capturing. Useful for lazy-loaded content.\").optional(),\n cache_clear: z.boolean().describe(\"Clear and refresh cache for this request.\").optional(),\n rendering_wait: z.number().int().describe(\"Time to wait after page load before capturing screenshot, in milliseconds. Useful for waiting for dynamic content.\").optional(),\n wait_for_selector: z.string().describe(\"CSS selector or XPath to wait for before capturing. Screenshot is taken after this element appears.\").optional(),\n}).describe(\"Request model for capturing a screenshot of a web page.\");\nconst ScrapflyCaptureScreenshot_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nexport const ScrapflyCaptureScreenshotOutput = z.object({\n screenshot: ScrapflyCaptureScreenshot_FileDownloadableSchema.nullable(),\n}).describe(\"Response model for screenshot capture containing the image file.\");\n\nexport const scrapflyCaptureScreenshot = action(\"SCRAPFLY_CAPTURE_SCREENSHOT\", {\n slug: \"scrapfly-capture-screenshot\",\n name: \"Capture Website Screenshot\",\n description: \"Tool to capture a full-page or viewport screenshot of a website. Use when you need to take a screenshot with options like JS rendering, custom resolution, or accessibility testing. Returns the screenshot image directly. Supports vision deficiency simulations and dark mode.\",\n input: ScrapflyCaptureScreenshotInput,\n output: ScrapflyCaptureScreenshotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACxG,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACjE,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACjF,QAAQ,EAAE,KAAK;EAAC;EAAO;EAAO;EAAQ;CAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACpJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;CACxL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CACzI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CAChM,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC/G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACpH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAChI,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CACnI,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxF,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACzK,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;AACzJ,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,mDAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC;AAKD,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6C,EAAE,OAAO,EACtD,YAAY,iDAAiD,SAAS,EACxE,CAAC,CAAC,CAAC,SAAS,kEAOF;AACV,CAAC"}
|
|
@@ -15,7 +15,7 @@ const ScrapflyCreateCrawlerInput = zod.z.object({
|
|
|
15
15
|
include_only_paths: zod.z.array(zod.z.string()).describe("Only crawl URLs matching these patterns. Supports wildcards (*). Max 100 paths").optional(),
|
|
16
16
|
follow_external_links: zod.z.boolean().describe("Allow crawler to follow links to external domains").optional()
|
|
17
17
|
}).describe("Request model for creating a new web crawler.");
|
|
18
|
-
const ScrapflyCreateCrawlerOutput = zod.z.object({ crawler_uuid: zod.z.string().describe("UUID of the created crawler") }).describe("Response model for creating a crawler.");
|
|
18
|
+
const ScrapflyCreateCrawlerOutput = zod.z.object({ crawler_uuid: zod.z.string().describe("UUID of the created crawler").nullable() }).describe("Response model for creating a crawler.");
|
|
19
19
|
const scrapflyCreateCrawler = require_action.action("SCRAPFLY_CREATE_CRAWLER", {
|
|
20
20
|
slug: "scrapfly-create-crawler",
|
|
21
21
|
name: "Create Scrapfly Crawler",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-crawler.cjs","names":["z","action"],"sources":["../../src/actions/create-crawler.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyCreateCrawlerInput
|
|
1
|
+
{"version":3,"file":"create-crawler.cjs","names":["z","action"],"sources":["../../src/actions/create-crawler.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyCreateCrawlerInput = z.object({\n asp: z.boolean().describe(\"Enable Anti Scraping Protection bypass\").optional(),\n url: z.string().describe(\"Starting URL for the crawl. Must be a valid HTTP/HTTPS URL\"),\n delay: z.number().int().describe(\"Delay between requests in milliseconds. Range: 0-15000ms\").optional(),\n max_depth: z.number().int().describe(\"Maximum crawl depth - controls how many levels deep the crawler will follow links\").optional(),\n render_js: z.boolean().describe(\"Enable JavaScript rendering\").optional(),\n page_limit: z.number().int().describe(\"Maximum number of pages to crawl. Set to 0 for unlimited (subject to subscription limits)\").optional(),\n concurrency: z.number().int().describe(\"Maximum concurrent scrape requests. Set 0 for account default\").optional(),\n cost_budget: z.number().describe(\"Automatically stop the crawl when reaching a credit limit\").optional(),\n exclude_paths: z.array(z.string()).describe(\"Exclude URLs matching these patterns. Mutually exclusive with include_only_paths\").optional(),\n content_formats: z.array(z.string()).describe(\"Array of desired output formats (markdown, extracted_data, page_metadata, etc.)\").optional(),\n include_only_paths: z.array(z.string()).describe(\"Only crawl URLs matching these patterns. Supports wildcards (*). Max 100 paths\").optional(),\n follow_external_links: z.boolean().describe(\"Allow crawler to follow links to external domains\").optional(),\n}).describe(\"Request model for creating a new web crawler.\");\nexport const ScrapflyCreateCrawlerOutput = z.object({\n crawler_uuid: z.string().describe(\"UUID of the created crawler\").nullable(),\n}).describe(\"Response model for creating a crawler.\");\n\nexport const scrapflyCreateCrawler = action(\"SCRAPFLY_CREATE_CRAWLER\", {\n slug: \"scrapfly-create-crawler\",\n name: \"Create Scrapfly Crawler\",\n description: \"Tool to create a new web crawler to recursively crawl an entire website. Returns a crawler UUID for tracking progress. Use when you need to crawl multiple pages from a website with configurable limits and extraction rules.\",\n input: ScrapflyCreateCrawlerInput,\n output: ScrapflyCreateCrawlerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,KAAKA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACnI,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC5I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACjH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACvG,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACzI,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC1I,oBAAoBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC5I,uBAAuBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-crawler.d.ts
|
|
4
|
-
declare const ScrapflyCreateCrawlerInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapflyCreateCrawlerInput: z.ZodObject<{
|
|
5
|
+
asp: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
url: z.ZodString;
|
|
7
|
+
delay: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
max_depth: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
render_js: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
page_limit: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
cost_budget: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
exclude_paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
content_formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
|
+
include_only_paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
|
+
follow_external_links: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const ScrapflyCreateCrawlerOutput: z.ZodObject<{
|
|
19
|
+
crawler_uuid: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const scrapflyCreateCrawler: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
|
+
url: string;
|
|
23
|
+
asp?: boolean | undefined;
|
|
24
|
+
delay?: number | undefined;
|
|
25
|
+
max_depth?: number | undefined;
|
|
26
|
+
render_js?: boolean | undefined;
|
|
27
|
+
page_limit?: number | undefined;
|
|
28
|
+
concurrency?: number | undefined;
|
|
29
|
+
cost_budget?: number | undefined;
|
|
30
|
+
exclude_paths?: string[] | undefined;
|
|
31
|
+
content_formats?: string[] | undefined;
|
|
32
|
+
include_only_paths?: string[] | undefined;
|
|
33
|
+
follow_external_links?: boolean | undefined;
|
|
34
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
35
|
//#endregion
|
|
8
36
|
export { scrapflyCreateCrawler };
|
|
9
37
|
//# sourceMappingURL=create-crawler.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-crawler.d.cts","names":[],"sources":["../../src/actions/create-crawler.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"create-crawler.d.cts","names":[],"sources":["../../src/actions/create-crawler.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAc1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-crawler.d.ts
|
|
4
|
-
declare const ScrapflyCreateCrawlerInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScrapflyCreateCrawlerInput: z.ZodObject<{
|
|
5
|
+
asp: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
url: z.ZodString;
|
|
7
|
+
delay: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
max_depth: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
render_js: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
page_limit: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
cost_budget: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
exclude_paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
content_formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
|
+
include_only_paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
|
+
follow_external_links: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const ScrapflyCreateCrawlerOutput: z.ZodObject<{
|
|
19
|
+
crawler_uuid: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const scrapflyCreateCrawler: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
|
+
url: string;
|
|
23
|
+
asp?: boolean | undefined;
|
|
24
|
+
delay?: number | undefined;
|
|
25
|
+
max_depth?: number | undefined;
|
|
26
|
+
render_js?: boolean | undefined;
|
|
27
|
+
page_limit?: number | undefined;
|
|
28
|
+
concurrency?: number | undefined;
|
|
29
|
+
cost_budget?: number | undefined;
|
|
30
|
+
exclude_paths?: string[] | undefined;
|
|
31
|
+
content_formats?: string[] | undefined;
|
|
32
|
+
include_only_paths?: string[] | undefined;
|
|
33
|
+
follow_external_links?: boolean | undefined;
|
|
34
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
35
|
//#endregion
|
|
8
36
|
export { scrapflyCreateCrawler };
|
|
9
37
|
//# sourceMappingURL=create-crawler.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-crawler.d.mts","names":[],"sources":["../../src/actions/create-crawler.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"create-crawler.d.mts","names":[],"sources":["../../src/actions/create-crawler.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAc1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -18,7 +18,7 @@ const scrapflyCreateCrawler = action("SCRAPFLY_CREATE_CRAWLER", {
|
|
|
18
18
|
include_only_paths: z.array(z.string()).describe("Only crawl URLs matching these patterns. Supports wildcards (*). Max 100 paths").optional(),
|
|
19
19
|
follow_external_links: z.boolean().describe("Allow crawler to follow links to external domains").optional()
|
|
20
20
|
}).describe("Request model for creating a new web crawler."),
|
|
21
|
-
output: z.object({ crawler_uuid: z.string().describe("UUID of the created crawler") }).describe("Response model for creating a crawler.")
|
|
21
|
+
output: z.object({ crawler_uuid: z.string().describe("UUID of the created crawler").nullable() }).describe("Response model for creating a crawler.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
24
24
|
export { scrapflyCreateCrawler };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-crawler.mjs","names":[],"sources":["../../src/actions/create-crawler.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyCreateCrawlerInput
|
|
1
|
+
{"version":3,"file":"create-crawler.mjs","names":[],"sources":["../../src/actions/create-crawler.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyCreateCrawlerInput = z.object({\n asp: z.boolean().describe(\"Enable Anti Scraping Protection bypass\").optional(),\n url: z.string().describe(\"Starting URL for the crawl. Must be a valid HTTP/HTTPS URL\"),\n delay: z.number().int().describe(\"Delay between requests in milliseconds. Range: 0-15000ms\").optional(),\n max_depth: z.number().int().describe(\"Maximum crawl depth - controls how many levels deep the crawler will follow links\").optional(),\n render_js: z.boolean().describe(\"Enable JavaScript rendering\").optional(),\n page_limit: z.number().int().describe(\"Maximum number of pages to crawl. Set to 0 for unlimited (subject to subscription limits)\").optional(),\n concurrency: z.number().int().describe(\"Maximum concurrent scrape requests. Set 0 for account default\").optional(),\n cost_budget: z.number().describe(\"Automatically stop the crawl when reaching a credit limit\").optional(),\n exclude_paths: z.array(z.string()).describe(\"Exclude URLs matching these patterns. Mutually exclusive with include_only_paths\").optional(),\n content_formats: z.array(z.string()).describe(\"Array of desired output formats (markdown, extracted_data, page_metadata, etc.)\").optional(),\n include_only_paths: z.array(z.string()).describe(\"Only crawl URLs matching these patterns. Supports wildcards (*). Max 100 paths\").optional(),\n follow_external_links: z.boolean().describe(\"Allow crawler to follow links to external domains\").optional(),\n}).describe(\"Request model for creating a new web crawler.\");\nexport const ScrapflyCreateCrawlerOutput = z.object({\n crawler_uuid: z.string().describe(\"UUID of the created crawler\").nullable(),\n}).describe(\"Response model for creating a crawler.\");\n\nexport const scrapflyCreateCrawler = action(\"SCRAPFLY_CREATE_CRAWLER\", {\n slug: \"scrapfly-create-crawler\",\n name: \"Create Scrapfly Crawler\",\n description: \"Tool to create a new web crawler to recursively crawl an entire website. Returns a crawler UUID for tracking progress. Use when you need to crawl multiple pages from a website with configurable limits and extraction rules.\",\n input: ScrapflyCreateCrawlerInput,\n output: ScrapflyCreateCrawlerOutput,\n});\n"],"mappings":";;AAsBA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtBwC,EAAE,OAAO;EACjD,KAAK,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC7E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EACtG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EACnI,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACxE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;EAC5I,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EACjH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACvG,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EACzI,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC1I,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EAC5I,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,SAAS,+CASH;CACP,QATyC,EAAE,OAAO,EAClD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
|