@keystrokehq/scrapfly 0.1.2 → 0.1.4
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/actions/capture-screenshot-head.cjs +1 -1
- package/dist/actions/capture-screenshot-head.cjs.map +1 -1
- package/dist/actions/capture-screenshot-head.d.cts +1 -1
- package/dist/actions/capture-screenshot-head.d.mts +1 -1
- package/dist/actions/capture-screenshot-head.mjs +1 -1
- package/dist/actions/capture-screenshot-head.mjs.map +1 -1
- package/dist/actions/capture-screenshot.cjs +2 -2
- package/dist/actions/capture-screenshot.cjs.map +1 -1
- package/dist/actions/capture-screenshot.d.cts +2 -2
- package/dist/actions/capture-screenshot.d.mts +2 -2
- package/dist/actions/capture-screenshot.mjs +2 -2
- 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 +1 -1
- package/dist/actions/create-crawler.d.mts +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 +1 -1
- package/dist/actions/extract-data.cjs.map +1 -1
- package/dist/actions/extract-data.d.cts +1 -1
- package/dist/actions/extract-data.d.mts +1 -1
- package/dist/actions/extract-data.mjs +1 -1
- package/dist/actions/extract-data.mjs.map +1 -1
- package/dist/actions/get-account-info.cjs +12 -12
- package/dist/actions/get-account-info.cjs.map +1 -1
- package/dist/actions/get-account-info.d.cts +15 -15
- package/dist/actions/get-account-info.d.mts +15 -15
- package/dist/actions/get-account-info.mjs +12 -12
- package/dist/actions/get-account-info.mjs.map +1 -1
- package/dist/actions/get-crawler-artifact.cjs +2 -2
- package/dist/actions/get-crawler-artifact.cjs.map +1 -1
- package/dist/actions/get-crawler-artifact.d.cts +2 -2
- package/dist/actions/get-crawler-artifact.d.mts +2 -2
- package/dist/actions/get-crawler-artifact.mjs +2 -2
- package/dist/actions/get-crawler-artifact.mjs.map +1 -1
- package/dist/actions/get-crawler-contents.cjs +3 -3
- package/dist/actions/get-crawler-contents.cjs.map +1 -1
- package/dist/actions/get-crawler-contents.d.cts +3 -3
- package/dist/actions/get-crawler-contents.d.mts +3 -3
- package/dist/actions/get-crawler-contents.mjs +3 -3
- package/dist/actions/get-crawler-contents.mjs.map +1 -1
- package/dist/actions/get-crawler-status.cjs +2 -2
- package/dist/actions/get-crawler-status.cjs.map +1 -1
- package/dist/actions/get-crawler-status.d.cts +2 -2
- package/dist/actions/get-crawler-status.d.mts +2 -2
- package/dist/actions/get-crawler-status.mjs +2 -2
- package/dist/actions/get-crawler-status.mjs.map +1 -1
- package/dist/actions/get-crawler-urls.cjs +1 -1
- package/dist/actions/get-crawler-urls.cjs.map +1 -1
- package/dist/actions/get-crawler-urls.d.cts +1 -1
- package/dist/actions/get-crawler-urls.d.mts +1 -1
- package/dist/actions/get-crawler-urls.mjs +1 -1
- package/dist/actions/get-crawler-urls.mjs.map +1 -1
- package/dist/actions/scrape-post.cjs +2 -2
- package/dist/actions/scrape-post.cjs.map +1 -1
- package/dist/actions/scrape-post.d.cts +3 -3
- package/dist/actions/scrape-post.d.mts +3 -3
- package/dist/actions/scrape-post.mjs +2 -2
- package/dist/actions/scrape-post.mjs.map +1 -1
- package/dist/actions/scrape-with-put.cjs +2 -2
- package/dist/actions/scrape-with-put.cjs.map +1 -1
- package/dist/actions/scrape-with-put.d.cts +3 -3
- package/dist/actions/scrape-with-put.d.mts +3 -3
- package/dist/actions/scrape-with-put.mjs +2 -2
- package/dist/actions/scrape-with-put.mjs.map +1 -1
- package/dist/actions/scrape.cjs +2 -2
- package/dist/actions/scrape.cjs.map +1 -1
- package/dist/actions/scrape.d.cts +3 -3
- package/dist/actions/scrape.d.mts +3 -3
- package/dist/actions/scrape.mjs +2 -2
- package/dist/actions/scrape.mjs.map +1 -1
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ const ScrapflyCaptureScreenshotHeadInput = zod.z.object({
|
|
|
33
33
|
const ScrapflyCaptureScreenshotHeadOutput = zod.z.object({
|
|
34
34
|
success: zod.z.boolean().describe("Whether the screenshot was captured successfully.").nullable(),
|
|
35
35
|
screenshot_url: zod.z.string().describe("URL to download the captured screenshot image.").nullable()
|
|
36
|
-
}).describe("Response model for screenshot HEAD request containing metadata.");
|
|
36
|
+
}).passthrough().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",
|
|
39
39
|
name: "Capture Screenshot Metadata (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 = 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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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;
|
|
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}).passthrough().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,SA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ZodObject<{
|
|
|
33
33
|
declare const ScrapflyCaptureScreenshotHeadOutput: z.ZodObject<{
|
|
34
34
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
35
35
|
screenshot_url: z.ZodNullable<z.ZodString>;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>;
|
|
37
37
|
declare const scrapflyCaptureScreenshotHead: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
38
38
|
url: string;
|
|
39
39
|
js?: string | undefined;
|
|
@@ -33,7 +33,7 @@ declare const ScrapflyCaptureScreenshotHeadInput: z.ZodObject<{
|
|
|
33
33
|
declare const ScrapflyCaptureScreenshotHeadOutput: z.ZodObject<{
|
|
34
34
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
35
35
|
screenshot_url: z.ZodNullable<z.ZodString>;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>;
|
|
37
37
|
declare const scrapflyCaptureScreenshotHead: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
38
38
|
url: string;
|
|
39
39
|
js?: string | undefined;
|
|
@@ -36,7 +36,7 @@ const scrapflyCaptureScreenshotHead = action("SCRAPFLY_CAPTURE_SCREENSHOT_HEAD",
|
|
|
36
36
|
output: z.object({
|
|
37
37
|
success: z.boolean().describe("Whether the screenshot was captured successfully.").nullable(),
|
|
38
38
|
screenshot_url: z.string().describe("URL to download the captured screenshot image.").nullable()
|
|
39
|
-
}).describe("Response model for screenshot HEAD request containing metadata.")
|
|
39
|
+
}).passthrough().describe("Response model for screenshot HEAD request containing metadata.")
|
|
40
40
|
});
|
|
41
41
|
//#endregion
|
|
42
42
|
export { scrapflyCaptureScreenshotHead };
|
|
@@ -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 = 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,
|
|
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}).passthrough().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,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CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAOhB;AACV,CAAC"}
|
|
@@ -26,8 +26,8 @@ const ScrapflyCaptureScreenshot_FileDownloadableSchema = zod.z.object({
|
|
|
26
26
|
name: zod.z.string().describe("Name of the file").nullable(),
|
|
27
27
|
s3url: zod.z.string().describe("S3 URL of the downloaded file.").nullable(),
|
|
28
28
|
mimetype: zod.z.string().describe("Mime type of the file.").nullable()
|
|
29
|
-
});
|
|
30
|
-
const ScrapflyCaptureScreenshotOutput = zod.z.object({ screenshot: ScrapflyCaptureScreenshot_FileDownloadableSchema.nullable() }).describe("Response model for screenshot capture containing the image file.");
|
|
29
|
+
}).passthrough();
|
|
30
|
+
const ScrapflyCaptureScreenshotOutput = zod.z.object({ screenshot: ScrapflyCaptureScreenshot_FileDownloadableSchema.nullable() }).passthrough().describe("Response model for screenshot capture containing the image file.");
|
|
31
31
|
const scrapflyCaptureScreenshot = require_action.action("SCRAPFLY_CAPTURE_SCREENSHOT", {
|
|
32
32
|
slug: "scrapfly-capture-screenshot",
|
|
33
33
|
name: "Capture Website 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 = 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;CACr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,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;
|
|
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}).passthrough();\nexport const ScrapflyCaptureScreenshotOutput = z.object({\n screenshot: ScrapflyCaptureScreenshot_FileDownloadableSchema.nullable(),\n}).passthrough().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,IAA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OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -27,8 +27,8 @@ declare const ScrapflyCaptureScreenshotOutput: z.ZodObject<{
|
|
|
27
27
|
name: z.ZodNullable<z.ZodString>;
|
|
28
28
|
s3url: z.ZodNullable<z.ZodString>;
|
|
29
29
|
mimetype: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
31
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
|
+
}, z.core.$loose>;
|
|
32
32
|
declare const scrapflyCaptureScreenshot: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
33
|
url: string;
|
|
34
34
|
js?: string | undefined;
|
|
@@ -27,8 +27,8 @@ declare const ScrapflyCaptureScreenshotOutput: z.ZodObject<{
|
|
|
27
27
|
name: z.ZodNullable<z.ZodString>;
|
|
28
28
|
s3url: z.ZodNullable<z.ZodString>;
|
|
29
29
|
mimetype: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
31
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
|
+
}, z.core.$loose>;
|
|
32
32
|
declare const scrapflyCaptureScreenshot: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
33
|
url: string;
|
|
34
34
|
js?: string | undefined;
|
|
@@ -26,13 +26,13 @@ const ScrapflyCaptureScreenshot_FileDownloadableSchema = z.object({
|
|
|
26
26
|
name: z.string().describe("Name of the file").nullable(),
|
|
27
27
|
s3url: z.string().describe("S3 URL of the downloaded file.").nullable(),
|
|
28
28
|
mimetype: z.string().describe("Mime type of the file.").nullable()
|
|
29
|
-
});
|
|
29
|
+
}).passthrough();
|
|
30
30
|
const scrapflyCaptureScreenshot = action("SCRAPFLY_CAPTURE_SCREENSHOT", {
|
|
31
31
|
slug: "scrapfly-capture-screenshot",
|
|
32
32
|
name: "Capture Website Screenshot",
|
|
33
33
|
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.",
|
|
34
34
|
input: ScrapflyCaptureScreenshotInput,
|
|
35
|
-
output: z.object({ screenshot: ScrapflyCaptureScreenshot_FileDownloadableSchema.nullable() }).describe("Response model for screenshot capture containing the image file.")
|
|
35
|
+
output: z.object({ screenshot: ScrapflyCaptureScreenshot_FileDownloadableSchema.nullable() }).passthrough().describe("Response model for screenshot capture containing the image file.")
|
|
36
36
|
});
|
|
37
37
|
//#endregion
|
|
38
38
|
export { scrapflyCaptureScreenshot };
|
|
@@ -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 = 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;
|
|
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}).passthrough();\nexport const ScrapflyCaptureScreenshotOutput = z.object({\n screenshot: ScrapflyCaptureScreenshot_FileDownloadableSchema.nullable(),\n}).passthrough().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,CAAC,CAAC,YAAY;AAKf,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,YAAY,CAAC,CAAC,SAAS,kEAOhB;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").nullable() }).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() }).passthrough().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 = 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: ScrapflyC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,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,SAAS,wCAAwC;
|
|
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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -17,7 +17,7 @@ declare const ScrapflyCreateCrawlerInput: z.ZodObject<{
|
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
declare const ScrapflyCreateCrawlerOutput: z.ZodObject<{
|
|
19
19
|
crawler_uuid: z.ZodNullable<z.ZodString>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const scrapflyCreateCrawler: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
url: string;
|
|
23
23
|
asp?: boolean | undefined;
|
|
@@ -17,7 +17,7 @@ declare const ScrapflyCreateCrawlerInput: z.ZodObject<{
|
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
declare const ScrapflyCreateCrawlerOutput: z.ZodObject<{
|
|
19
19
|
crawler_uuid: z.ZodNullable<z.ZodString>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const scrapflyCreateCrawler: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
url: string;
|
|
23
23
|
asp?: boolean | undefined;
|
|
@@ -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").nullable() }).describe("Response model for creating a crawler.")
|
|
21
|
+
output: z.object({ crawler_uuid: z.string().describe("UUID of the created crawler").nullable() }).passthrough().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 = 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,
|
|
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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
|
|
@@ -43,7 +43,7 @@ const ScrapflyExtractDataInput = zod.z.object({
|
|
|
43
43
|
const ScrapflyExtractDataOutput = zod.z.object({
|
|
44
44
|
data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Extracted structured data. The structure depends on the extraction method used (model, prompt, or template)."),
|
|
45
45
|
content_type: zod.z.string().describe("Content type of the input document").nullable().optional()
|
|
46
|
-
}).describe("Response model for the extraction API.");
|
|
46
|
+
}).passthrough().describe("Response model for the extraction API.");
|
|
47
47
|
const scrapflyExtractData = require_action.action("SCRAPFLY_EXTRACT_DATA", {
|
|
48
48
|
slug: "scrapfly-extract-data",
|
|
49
49
|
name: "Extract Structured Data",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-data.cjs","names":["z","action"],"sources":["../../src/actions/extract-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyExtractDataInput = z.object({\n url: z.string().describe(\"Base URL for converting relative URLs to absolute URLs in the extracted data. Useful when extracting links and images.\").optional(),\n charset: z.string().describe(\"Document charset encoding. Use 'auto' for automatic detection or specify a charset like 'utf-8', 'iso-8859-1', etc.\").optional(),\n content: z.string().describe(\"HTML, text, or structured content to extract data from. This will be sent as the request body.\"),\n content_type: z.enum([\"text/html\", \"text/plain\", \"text/markdown\", \"text/csv\", \"application/json\", \"application/ld+json\", \"application/xml\", \"application/xhtml+xml\"]).describe(\"Content type of the document body. Required to properly parse the input content.\"),\n webhook_name: z.string().describe(\"Webhook name for asynchronous processing. If provided, the extraction will be processed asynchronously and results sent to the webhook.\").optional(),\n extraction_model: z.enum([\"article\", \"event\", \"food_recipe\", \"hotel\", \"hotel_listing\", \"job_listing\", \"job_posting\", \"organization\", \"product\", \"product_listing\", \"real_estate_property\", \"real_estate_property_listing\", \"review_list\", \"search_engine_results\", \"social_media_post\", \"software\", \"stock\", \"vehicle_ad\", \"vehicle_ad_listing\"]).describe(\"AI extraction models for structured data extraction.\").optional(),\n extraction_prompt: z.string().describe(\"Custom LLM prompt for extraction. Use this when you need custom extraction logic beyond predefined models. Cannot be used together with extraction_model or extraction_template.\").optional(),\n extraction_template: z.string().describe(\"JSON extraction template defining custom extraction rules. Cannot be used together with extraction_model or extraction_prompt.\").optional(),\n}).describe(\"Request model for extracting structured data from content.\");\nexport const ScrapflyExtractDataOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Extracted structured data. The structure depends on the extraction method used (model, prompt, or template).\"),\n content_type: z.string().describe(\"Content type of the input document\").nullable().optional(),\n}).describe(\"Response model for the extraction API.\");\n\nexport const scrapflyExtractData = action(\"SCRAPFLY_EXTRACT_DATA\", {\n slug: \"scrapfly-extract-data\",\n name: \"Extract Structured Data\",\n description: \"Tool to extract structured data from HTML or other content using AI models, LLM prompts, or custom templates. Use when you need to parse web pages or documents into structured JSON data. Supports predefined extraction models for common types (articles, products, events) or custom extraction via prompts/templates.\",\n input: ScrapflyExtractDataInput,\n output: ScrapflyExtractDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC5J,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CAC7J,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;CAC7H,cAAcA,IAAAA,EAAE,KAAK;EAAC;EAAa;EAAc;EAAiB;EAAY;EAAoB;EAAuB;EAAmB;CAAuB,CAAC,CAAC,CAAC,SAAS,kFAAkF;CACjQ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CACtL,kBAAkBA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAS;EAAe;EAAS;EAAiB;EAAe;EAAe;EAAgB;EAAW;EAAmB;EAAwB;EAAgC;EAAe;EAAyB;EAAqB;EAAY;EAAS;EAAc;CAAoB,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5Z,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CACpO,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;AACtL,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8GAA8G;CAC/J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,wCAAwC;
|
|
1
|
+
{"version":3,"file":"extract-data.cjs","names":["z","action"],"sources":["../../src/actions/extract-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyExtractDataInput = z.object({\n url: z.string().describe(\"Base URL for converting relative URLs to absolute URLs in the extracted data. Useful when extracting links and images.\").optional(),\n charset: z.string().describe(\"Document charset encoding. Use 'auto' for automatic detection or specify a charset like 'utf-8', 'iso-8859-1', etc.\").optional(),\n content: z.string().describe(\"HTML, text, or structured content to extract data from. This will be sent as the request body.\"),\n content_type: z.enum([\"text/html\", \"text/plain\", \"text/markdown\", \"text/csv\", \"application/json\", \"application/ld+json\", \"application/xml\", \"application/xhtml+xml\"]).describe(\"Content type of the document body. Required to properly parse the input content.\"),\n webhook_name: z.string().describe(\"Webhook name for asynchronous processing. If provided, the extraction will be processed asynchronously and results sent to the webhook.\").optional(),\n extraction_model: z.enum([\"article\", \"event\", \"food_recipe\", \"hotel\", \"hotel_listing\", \"job_listing\", \"job_posting\", \"organization\", \"product\", \"product_listing\", \"real_estate_property\", \"real_estate_property_listing\", \"review_list\", \"search_engine_results\", \"social_media_post\", \"software\", \"stock\", \"vehicle_ad\", \"vehicle_ad_listing\"]).describe(\"AI extraction models for structured data extraction.\").optional(),\n extraction_prompt: z.string().describe(\"Custom LLM prompt for extraction. Use this when you need custom extraction logic beyond predefined models. Cannot be used together with extraction_model or extraction_template.\").optional(),\n extraction_template: z.string().describe(\"JSON extraction template defining custom extraction rules. Cannot be used together with extraction_model or extraction_prompt.\").optional(),\n}).describe(\"Request model for extracting structured data from content.\");\nexport const ScrapflyExtractDataOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Extracted structured data. The structure depends on the extraction method used (model, prompt, or template).\"),\n content_type: z.string().describe(\"Content type of the input document\").nullable().optional(),\n}).passthrough().describe(\"Response model for the extraction API.\");\n\nexport const scrapflyExtractData = action(\"SCRAPFLY_EXTRACT_DATA\", {\n slug: \"scrapfly-extract-data\",\n name: \"Extract Structured Data\",\n description: \"Tool to extract structured data from HTML or other content using AI models, LLM prompts, or custom templates. Use when you need to parse web pages or documents into structured JSON data. Supports predefined extraction models for common types (articles, products, events) or custom extraction via prompts/templates.\",\n input: ScrapflyExtractDataInput,\n output: ScrapflyExtractDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC5J,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CAC7J,SAASA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Unknown>;
|
|
45
45
|
content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$loose>;
|
|
47
47
|
declare const scrapflyExtractData: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
48
48
|
content: string;
|
|
49
49
|
content_type: "text/html" | "text/plain" | "text/markdown" | "text/csv" | "application/json" | "application/ld+json" | "application/xml" | "application/xhtml+xml";
|
|
@@ -43,7 +43,7 @@ declare const ScrapflyExtractDataInput: z.ZodObject<{
|
|
|
43
43
|
declare const ScrapflyExtractDataOutput: z.ZodObject<{
|
|
44
44
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
45
45
|
content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$loose>;
|
|
47
47
|
declare const scrapflyExtractData: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
48
48
|
content: string;
|
|
49
49
|
content_type: "text/html" | "text/plain" | "text/markdown" | "text/csv" | "application/json" | "application/ld+json" | "application/xml" | "application/xhtml+xml";
|
|
@@ -46,7 +46,7 @@ const scrapflyExtractData = action("SCRAPFLY_EXTRACT_DATA", {
|
|
|
46
46
|
output: z.object({
|
|
47
47
|
data: z.record(z.string(), z.unknown()).describe("Extracted structured data. The structure depends on the extraction method used (model, prompt, or template)."),
|
|
48
48
|
content_type: z.string().describe("Content type of the input document").nullable().optional()
|
|
49
|
-
}).describe("Response model for the extraction API.")
|
|
49
|
+
}).passthrough().describe("Response model for the extraction API.")
|
|
50
50
|
});
|
|
51
51
|
//#endregion
|
|
52
52
|
export { scrapflyExtractData };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-data.mjs","names":[],"sources":["../../src/actions/extract-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyExtractDataInput = z.object({\n url: z.string().describe(\"Base URL for converting relative URLs to absolute URLs in the extracted data. Useful when extracting links and images.\").optional(),\n charset: z.string().describe(\"Document charset encoding. Use 'auto' for automatic detection or specify a charset like 'utf-8', 'iso-8859-1', etc.\").optional(),\n content: z.string().describe(\"HTML, text, or structured content to extract data from. This will be sent as the request body.\"),\n content_type: z.enum([\"text/html\", \"text/plain\", \"text/markdown\", \"text/csv\", \"application/json\", \"application/ld+json\", \"application/xml\", \"application/xhtml+xml\"]).describe(\"Content type of the document body. Required to properly parse the input content.\"),\n webhook_name: z.string().describe(\"Webhook name for asynchronous processing. If provided, the extraction will be processed asynchronously and results sent to the webhook.\").optional(),\n extraction_model: z.enum([\"article\", \"event\", \"food_recipe\", \"hotel\", \"hotel_listing\", \"job_listing\", \"job_posting\", \"organization\", \"product\", \"product_listing\", \"real_estate_property\", \"real_estate_property_listing\", \"review_list\", \"search_engine_results\", \"social_media_post\", \"software\", \"stock\", \"vehicle_ad\", \"vehicle_ad_listing\"]).describe(\"AI extraction models for structured data extraction.\").optional(),\n extraction_prompt: z.string().describe(\"Custom LLM prompt for extraction. Use this when you need custom extraction logic beyond predefined models. Cannot be used together with extraction_model or extraction_template.\").optional(),\n extraction_template: z.string().describe(\"JSON extraction template defining custom extraction rules. Cannot be used together with extraction_model or extraction_prompt.\").optional(),\n}).describe(\"Request model for extracting structured data from content.\");\nexport const ScrapflyExtractDataOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Extracted structured data. The structure depends on the extraction method used (model, prompt, or template).\"),\n content_type: z.string().describe(\"Content type of the input document\").nullable().optional(),\n}).describe(\"Response model for the extraction API.\");\n\nexport const scrapflyExtractData = action(\"SCRAPFLY_EXTRACT_DATA\", {\n slug: \"scrapfly-extract-data\",\n name: \"Extract Structured Data\",\n description: \"Tool to extract structured data from HTML or other content using AI models, LLM prompts, or custom templates. Use when you need to parse web pages or documents into structured JSON data. Supports predefined extraction models for common types (articles, products, events) or custom extraction via prompts/templates.\",\n input: ScrapflyExtractDataInput,\n output: ScrapflyExtractDataOutput,\n});\n"],"mappings":";;AAmBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBsC,EAAE,OAAO;EAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;EAC5J,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;EAC7J,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;EAC7H,cAAc,EAAE,KAAK;GAAC;GAAa;GAAc;GAAiB;GAAY;GAAoB;GAAuB;GAAmB;EAAuB,CAAC,CAAC,CAAC,SAAS,kFAAkF;EACjQ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;EACtL,kBAAkB,EAAE,KAAK;GAAC;GAAW;GAAS;GAAe;GAAS;GAAiB;GAAe;GAAe;GAAgB;GAAW;GAAmB;GAAwB;GAAgC;GAAe;GAAyB;GAAqB;GAAY;GAAS;GAAc;EAAoB,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC5Z,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;EACpO,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACtL,CAAC,CAAC,CAAC,SAAS,4DAUH;CACP,QAVuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8GAA8G;EAC/J,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"extract-data.mjs","names":[],"sources":["../../src/actions/extract-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyExtractDataInput = z.object({\n url: z.string().describe(\"Base URL for converting relative URLs to absolute URLs in the extracted data. Useful when extracting links and images.\").optional(),\n charset: z.string().describe(\"Document charset encoding. Use 'auto' for automatic detection or specify a charset like 'utf-8', 'iso-8859-1', etc.\").optional(),\n content: z.string().describe(\"HTML, text, or structured content to extract data from. This will be sent as the request body.\"),\n content_type: z.enum([\"text/html\", \"text/plain\", \"text/markdown\", \"text/csv\", \"application/json\", \"application/ld+json\", \"application/xml\", \"application/xhtml+xml\"]).describe(\"Content type of the document body. Required to properly parse the input content.\"),\n webhook_name: z.string().describe(\"Webhook name for asynchronous processing. If provided, the extraction will be processed asynchronously and results sent to the webhook.\").optional(),\n extraction_model: z.enum([\"article\", \"event\", \"food_recipe\", \"hotel\", \"hotel_listing\", \"job_listing\", \"job_posting\", \"organization\", \"product\", \"product_listing\", \"real_estate_property\", \"real_estate_property_listing\", \"review_list\", \"search_engine_results\", \"social_media_post\", \"software\", \"stock\", \"vehicle_ad\", \"vehicle_ad_listing\"]).describe(\"AI extraction models for structured data extraction.\").optional(),\n extraction_prompt: z.string().describe(\"Custom LLM prompt for extraction. Use this when you need custom extraction logic beyond predefined models. Cannot be used together with extraction_model or extraction_template.\").optional(),\n extraction_template: z.string().describe(\"JSON extraction template defining custom extraction rules. Cannot be used together with extraction_model or extraction_prompt.\").optional(),\n}).describe(\"Request model for extracting structured data from content.\");\nexport const ScrapflyExtractDataOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Extracted structured data. The structure depends on the extraction method used (model, prompt, or template).\"),\n content_type: z.string().describe(\"Content type of the input document\").nullable().optional(),\n}).passthrough().describe(\"Response model for the extraction API.\");\n\nexport const scrapflyExtractData = action(\"SCRAPFLY_EXTRACT_DATA\", {\n slug: \"scrapfly-extract-data\",\n name: \"Extract Structured Data\",\n description: \"Tool to extract structured data from HTML or other content using AI models, LLM prompts, or custom templates. Use when you need to parse web pages or documents into structured JSON data. Supports predefined extraction models for common types (articles, products, events) or custom extraction via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ScrapflyGetAccountInfo_AccountDetailsSchema = zod.z.object({
|
|
|
8
8
|
suspended: zod.z.boolean().describe("Whether the account is suspended").nullable(),
|
|
9
9
|
account_id: zod.z.string().describe("Unique account identifier").nullable(),
|
|
10
10
|
suspension_reason: zod.z.string().default("").describe("Reason for suspension if applicable").nullable().optional()
|
|
11
|
-
}).describe("Details about the Scrapfly account.");
|
|
11
|
+
}).passthrough().describe("Details about the Scrapfly account.");
|
|
12
12
|
const ScrapflyGetAccountInfo_ProjectDetailsSchema = zod.z.object({
|
|
13
13
|
name: zod.z.string().describe("Project name").nullable(),
|
|
14
14
|
tags: zod.z.array(zod.z.string()).describe("Tags assigned to the project").nullable().optional(),
|
|
@@ -20,7 +20,7 @@ const ScrapflyGetAccountInfo_ProjectDetailsSchema = zod.z.object({
|
|
|
20
20
|
concurrency_limit: zod.z.number().int().describe("Concurrency limit if set").nullable().optional(),
|
|
21
21
|
scrape_request_count: zod.z.number().int().default(0).describe("Number of scrape requests made").nullable().optional(),
|
|
22
22
|
scrape_request_limit: zod.z.number().int().describe("Scrape request limit if set").nullable().optional()
|
|
23
|
-
}).describe("Details about the Scrapfly project.");
|
|
23
|
+
}).passthrough().describe("Details about the Scrapfly project.");
|
|
24
24
|
const ScrapflyGetAccountInfo_ScrapeUsageSchema = zod.z.object({
|
|
25
25
|
extra: zod.z.number().int().describe("Extra usage count").nullable(),
|
|
26
26
|
limit: zod.z.number().int().describe("Total limit for the period").nullable(),
|
|
@@ -29,34 +29,34 @@ const ScrapflyGetAccountInfo_ScrapeUsageSchema = zod.z.object({
|
|
|
29
29
|
concurrent_limit: zod.z.number().int().describe("Concurrent request limit").nullable(),
|
|
30
30
|
concurrent_usage: zod.z.number().int().describe("Current concurrent usage").nullable(),
|
|
31
31
|
concurrent_remaining: zod.z.number().int().describe("Remaining concurrent requests").nullable()
|
|
32
|
-
}).describe("Scrape usage information.");
|
|
32
|
+
}).passthrough().describe("Scrape usage information.");
|
|
33
33
|
const ScrapflyGetAccountInfo_SpiderUsageSchema = zod.z.object({
|
|
34
34
|
limit: zod.z.number().int().describe("Spider limit").nullable(),
|
|
35
35
|
current: zod.z.number().int().describe("Current spider usage").nullable()
|
|
36
|
-
}).describe("Spider usage information.");
|
|
36
|
+
}).passthrough().describe("Spider usage information.");
|
|
37
37
|
const ScrapflyGetAccountInfo_ScheduleUsageSchema = zod.z.object({
|
|
38
38
|
limit: zod.z.number().int().describe("Schedule limit").nullable(),
|
|
39
39
|
current: zod.z.number().int().describe("Current schedule usage").nullable()
|
|
40
|
-
}).describe("Schedule usage information.");
|
|
40
|
+
}).passthrough().describe("Schedule usage information.");
|
|
41
41
|
const ScrapflyGetAccountInfo_UsageDetailsSchema = zod.z.object({
|
|
42
42
|
scrape: ScrapflyGetAccountInfo_ScrapeUsageSchema.nullable(),
|
|
43
43
|
spider: ScrapflyGetAccountInfo_SpiderUsageSchema.nullable(),
|
|
44
44
|
schedule: ScrapflyGetAccountInfo_ScheduleUsageSchema.nullable()
|
|
45
|
-
}).describe("Usage information across different features.");
|
|
45
|
+
}).passthrough().describe("Usage information across different features.");
|
|
46
46
|
const ScrapflyGetAccountInfo_BillingPeriodSchema = zod.z.object({
|
|
47
47
|
end: zod.z.string().describe("Period end date").nullable(),
|
|
48
48
|
start: zod.z.string().describe("Period start date").nullable()
|
|
49
|
-
}).describe("Billing period information.");
|
|
49
|
+
}).passthrough().describe("Billing period information.");
|
|
50
50
|
const ScrapflyGetAccountInfo_PriceDetailsSchema = zod.z.object({
|
|
51
51
|
amount: zod.z.number().describe("Amount in currency").nullable(),
|
|
52
52
|
currency: zod.z.string().describe("Currency code").nullable()
|
|
53
|
-
}).describe("Price information.");
|
|
53
|
+
}).passthrough().describe("Price information.");
|
|
54
54
|
const ScrapflyGetAccountInfo_BillingDetailsSchema = zod.z.object({
|
|
55
55
|
plan_price: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),
|
|
56
56
|
ongoing_payment: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),
|
|
57
57
|
current_extra_scrape_request_price: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),
|
|
58
58
|
extra_scrape_request_price_per_10k: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable()
|
|
59
|
-
}).describe("Billing information for the subscription.");
|
|
59
|
+
}).passthrough().describe("Billing information for the subscription.");
|
|
60
60
|
const ScrapflyGetAccountInfo_SubscriptionDetailsSchema = zod.z.object({
|
|
61
61
|
usage: ScrapflyGetAccountInfo_UsageDetailsSchema.nullable(),
|
|
62
62
|
period: ScrapflyGetAccountInfo_BillingPeriodSchema.nullable(),
|
|
@@ -64,17 +64,17 @@ const ScrapflyGetAccountInfo_SubscriptionDetailsSchema = zod.z.object({
|
|
|
64
64
|
plan_name: zod.z.string().describe("Name of the subscription plan").nullable(),
|
|
65
65
|
max_concurrency: zod.z.number().int().describe("Maximum concurrent requests").nullable(),
|
|
66
66
|
extra_scrape_allowed: zod.z.boolean().describe("Whether extra scraping is allowed").nullable()
|
|
67
|
-
}).describe("Subscription information.");
|
|
67
|
+
}).passthrough().describe("Subscription information.");
|
|
68
68
|
const ScrapflyGetAccountInfo_AccountDataSchema = zod.z.object({
|
|
69
69
|
account: ScrapflyGetAccountInfo_AccountDetailsSchema.nullable(),
|
|
70
70
|
project: ScrapflyGetAccountInfo_ProjectDetailsSchema.nullable(),
|
|
71
71
|
subscription: ScrapflyGetAccountInfo_SubscriptionDetailsSchema.nullable()
|
|
72
|
-
}).describe("Main data container for account information.");
|
|
72
|
+
}).passthrough().describe("Main data container for account information.");
|
|
73
73
|
const ScrapflyGetAccountInfoOutput = zod.z.object({
|
|
74
74
|
data: ScrapflyGetAccountInfo_AccountDataSchema.nullable(),
|
|
75
75
|
error: zod.z.string().describe("Error message if any").nullable().optional(),
|
|
76
76
|
successfull: zod.z.boolean().describe("Whether the request was successful").nullable()
|
|
77
|
-
}).describe("Response model for Scrapfly account information.");
|
|
77
|
+
}).passthrough().describe("Response model for Scrapfly account information.");
|
|
78
78
|
const scrapflyGetAccountInfo = require_action.action("SCRAPFLY_GET_ACCOUNT_INFO", {
|
|
79
79
|
slug: "scrapfly-get-account-info",
|
|
80
80
|
name: "Get Scrapfly Account Information",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-account-info.cjs","names":["z","action"],"sources":["../../src/actions/get-account-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyGetAccountInfoInput = z.object({}).describe(\"Request model for retrieving Scrapfly account information. No parameters required.\");\nconst ScrapflyGetAccountInfo_AccountDetailsSchema = z.object({\n currency: z.string().describe(\"Currency used for billing\").nullable(),\n timezone: z.string().describe(\"Account timezone\").nullable(),\n suspended: z.boolean().describe(\"Whether the account is suspended\").nullable(),\n account_id: z.string().describe(\"Unique account identifier\").nullable(),\n suspension_reason: z.string().default(\"\").describe(\"Reason for suspension if applicable\").nullable().optional(),\n}).describe(\"Details about the Scrapfly account.\");\nconst ScrapflyGetAccountInfo_ProjectDetailsSchema = z.object({\n name: z.string().describe(\"Project name\").nullable(),\n tags: z.array(z.string()).describe(\"Tags assigned to the project\").nullable().optional(),\n budget_limit: z.number().describe(\"Budget limit if set\").nullable().optional(),\n budget_spent: z.number().describe(\"Budget spent so far\").nullable().optional(),\n quota_reached: z.boolean().describe(\"Whether quota has been reached\").nullable(),\n allowed_networks: z.array(z.string()).describe(\"Allowed networks for this project\").nullable().optional(),\n allow_extra_usage: z.boolean().describe(\"Whether extra usage is allowed\").nullable(),\n concurrency_limit: z.number().int().describe(\"Concurrency limit if set\").nullable().optional(),\n scrape_request_count: z.number().int().default(0).describe(\"Number of scrape requests made\").nullable().optional(),\n scrape_request_limit: z.number().int().describe(\"Scrape request limit if set\").nullable().optional(),\n}).describe(\"Details about the Scrapfly project.\");\nconst ScrapflyGetAccountInfo_ScrapeUsageSchema = z.object({\n extra: z.number().int().describe(\"Extra usage count\").nullable(),\n limit: z.number().int().describe(\"Total limit for the period\").nullable(),\n current: z.number().int().describe(\"Current usage count\").nullable(),\n remaining: z.number().int().describe(\"Remaining requests\").nullable(),\n concurrent_limit: z.number().int().describe(\"Concurrent request limit\").nullable(),\n concurrent_usage: z.number().int().describe(\"Current concurrent usage\").nullable(),\n concurrent_remaining: z.number().int().describe(\"Remaining concurrent requests\").nullable(),\n}).describe(\"Scrape usage information.\");\nconst ScrapflyGetAccountInfo_SpiderUsageSchema = z.object({\n limit: z.number().int().describe(\"Spider limit\").nullable(),\n current: z.number().int().describe(\"Current spider usage\").nullable(),\n}).describe(\"Spider usage information.\");\nconst ScrapflyGetAccountInfo_ScheduleUsageSchema = z.object({\n limit: z.number().int().describe(\"Schedule limit\").nullable(),\n current: z.number().int().describe(\"Current schedule usage\").nullable(),\n}).describe(\"Schedule usage information.\");\nconst ScrapflyGetAccountInfo_UsageDetailsSchema = z.object({\n scrape: ScrapflyGetAccountInfo_ScrapeUsageSchema.nullable(),\n spider: ScrapflyGetAccountInfo_SpiderUsageSchema.nullable(),\n schedule: ScrapflyGetAccountInfo_ScheduleUsageSchema.nullable(),\n}).describe(\"Usage information across different features.\");\nconst ScrapflyGetAccountInfo_BillingPeriodSchema = z.object({\n end: z.string().describe(\"Period end date\").nullable(),\n start: z.string().describe(\"Period start date\").nullable(),\n}).describe(\"Billing period information.\");\nconst ScrapflyGetAccountInfo_PriceDetailsSchema = z.object({\n amount: z.number().describe(\"Amount in currency\").nullable(),\n currency: z.string().describe(\"Currency code\").nullable(),\n}).describe(\"Price information.\");\nconst ScrapflyGetAccountInfo_BillingDetailsSchema = z.object({\n plan_price: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),\n ongoing_payment: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),\n current_extra_scrape_request_price: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),\n extra_scrape_request_price_per_10k: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),\n}).describe(\"Billing information for the subscription.\");\nconst ScrapflyGetAccountInfo_SubscriptionDetailsSchema = z.object({\n usage: ScrapflyGetAccountInfo_UsageDetailsSchema.nullable(),\n period: ScrapflyGetAccountInfo_BillingPeriodSchema.nullable(),\n billing: ScrapflyGetAccountInfo_BillingDetailsSchema.nullable(),\n plan_name: z.string().describe(\"Name of the subscription plan\").nullable(),\n max_concurrency: z.number().int().describe(\"Maximum concurrent requests\").nullable(),\n extra_scrape_allowed: z.boolean().describe(\"Whether extra scraping is allowed\").nullable(),\n}).describe(\"Subscription information.\");\nconst ScrapflyGetAccountInfo_AccountDataSchema = z.object({\n account: ScrapflyGetAccountInfo_AccountDetailsSchema.nullable(),\n project: ScrapflyGetAccountInfo_ProjectDetailsSchema.nullable(),\n subscription: ScrapflyGetAccountInfo_SubscriptionDetailsSchema.nullable(),\n}).describe(\"Main data container for account information.\");\nexport const ScrapflyGetAccountInfoOutput = z.object({\n data: ScrapflyGetAccountInfo_AccountDataSchema.nullable(),\n error: z.string().describe(\"Error message if any\").nullable().optional(),\n successfull: z.boolean().describe(\"Whether the request was successful\").nullable(),\n}).describe(\"Response model for Scrapfly account information.\");\n\nexport const scrapflyGetAccountInfo = action(\"SCRAPFLY_GET_ACCOUNT_INFO\", {\n slug: \"scrapfly-get-account-info\",\n name: \"Get Scrapfly Account Information\",\n description: \"Tool to retrieve Scrapfly account information. Use after authenticating to get API credit balance and usage stats. Returns comprehensive account data including subscription plan, usage statistics, billing info, and project settings.\",\n input: ScrapflyGetAccountInfoInput,\n output: ScrapflyGetAccountInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oFAAoF;AACrJ,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC3D,WAAWA,IAAAA,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AAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACzE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnF,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,2BAA2B;AACvC,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,SAAS,4CAA4C,SAAS;CAC9D,SAAS,4CAA4C,SAAS;CAC9D,cAAc,iDAAiD,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAM,yCAAyC,SAAS;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-account-info.cjs","names":["z","action"],"sources":["../../src/actions/get-account-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapflyGetAccountInfoInput = z.object({}).describe(\"Request model for retrieving Scrapfly account information. No parameters required.\");\nconst ScrapflyGetAccountInfo_AccountDetailsSchema = z.object({\n currency: z.string().describe(\"Currency used for billing\").nullable(),\n timezone: z.string().describe(\"Account timezone\").nullable(),\n suspended: z.boolean().describe(\"Whether the account is suspended\").nullable(),\n account_id: z.string().describe(\"Unique account identifier\").nullable(),\n suspension_reason: z.string().default(\"\").describe(\"Reason for suspension if applicable\").nullable().optional(),\n}).passthrough().describe(\"Details about the Scrapfly account.\");\nconst ScrapflyGetAccountInfo_ProjectDetailsSchema = z.object({\n name: z.string().describe(\"Project name\").nullable(),\n tags: z.array(z.string()).describe(\"Tags assigned to the project\").nullable().optional(),\n budget_limit: z.number().describe(\"Budget limit if set\").nullable().optional(),\n budget_spent: z.number().describe(\"Budget spent so far\").nullable().optional(),\n quota_reached: z.boolean().describe(\"Whether quota has been reached\").nullable(),\n allowed_networks: z.array(z.string()).describe(\"Allowed networks for this project\").nullable().optional(),\n allow_extra_usage: z.boolean().describe(\"Whether extra usage is allowed\").nullable(),\n concurrency_limit: z.number().int().describe(\"Concurrency limit if set\").nullable().optional(),\n scrape_request_count: z.number().int().default(0).describe(\"Number of scrape requests made\").nullable().optional(),\n scrape_request_limit: z.number().int().describe(\"Scrape request limit if set\").nullable().optional(),\n}).passthrough().describe(\"Details about the Scrapfly project.\");\nconst ScrapflyGetAccountInfo_ScrapeUsageSchema = z.object({\n extra: z.number().int().describe(\"Extra usage count\").nullable(),\n limit: z.number().int().describe(\"Total limit for the period\").nullable(),\n current: z.number().int().describe(\"Current usage count\").nullable(),\n remaining: z.number().int().describe(\"Remaining requests\").nullable(),\n concurrent_limit: z.number().int().describe(\"Concurrent request limit\").nullable(),\n concurrent_usage: z.number().int().describe(\"Current concurrent usage\").nullable(),\n concurrent_remaining: z.number().int().describe(\"Remaining concurrent requests\").nullable(),\n}).passthrough().describe(\"Scrape usage information.\");\nconst ScrapflyGetAccountInfo_SpiderUsageSchema = z.object({\n limit: z.number().int().describe(\"Spider limit\").nullable(),\n current: z.number().int().describe(\"Current spider usage\").nullable(),\n}).passthrough().describe(\"Spider usage information.\");\nconst ScrapflyGetAccountInfo_ScheduleUsageSchema = z.object({\n limit: z.number().int().describe(\"Schedule limit\").nullable(),\n current: z.number().int().describe(\"Current schedule usage\").nullable(),\n}).passthrough().describe(\"Schedule usage information.\");\nconst ScrapflyGetAccountInfo_UsageDetailsSchema = z.object({\n scrape: ScrapflyGetAccountInfo_ScrapeUsageSchema.nullable(),\n spider: ScrapflyGetAccountInfo_SpiderUsageSchema.nullable(),\n schedule: ScrapflyGetAccountInfo_ScheduleUsageSchema.nullable(),\n}).passthrough().describe(\"Usage information across different features.\");\nconst ScrapflyGetAccountInfo_BillingPeriodSchema = z.object({\n end: z.string().describe(\"Period end date\").nullable(),\n start: z.string().describe(\"Period start date\").nullable(),\n}).passthrough().describe(\"Billing period information.\");\nconst ScrapflyGetAccountInfo_PriceDetailsSchema = z.object({\n amount: z.number().describe(\"Amount in currency\").nullable(),\n currency: z.string().describe(\"Currency code\").nullable(),\n}).passthrough().describe(\"Price information.\");\nconst ScrapflyGetAccountInfo_BillingDetailsSchema = z.object({\n plan_price: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),\n ongoing_payment: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),\n current_extra_scrape_request_price: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),\n extra_scrape_request_price_per_10k: ScrapflyGetAccountInfo_PriceDetailsSchema.nullable(),\n}).passthrough().describe(\"Billing information for the subscription.\");\nconst ScrapflyGetAccountInfo_SubscriptionDetailsSchema = z.object({\n usage: ScrapflyGetAccountInfo_UsageDetailsSchema.nullable(),\n period: ScrapflyGetAccountInfo_BillingPeriodSchema.nullable(),\n billing: ScrapflyGetAccountInfo_BillingDetailsSchema.nullable(),\n plan_name: z.string().describe(\"Name of the subscription plan\").nullable(),\n max_concurrency: z.number().int().describe(\"Maximum concurrent requests\").nullable(),\n extra_scrape_allowed: z.boolean().describe(\"Whether extra scraping is allowed\").nullable(),\n}).passthrough().describe(\"Subscription information.\");\nconst ScrapflyGetAccountInfo_AccountDataSchema = z.object({\n account: ScrapflyGetAccountInfo_AccountDetailsSchema.nullable(),\n project: ScrapflyGetAccountInfo_ProjectDetailsSchema.nullable(),\n subscription: ScrapflyGetAccountInfo_SubscriptionDetailsSchema.nullable(),\n}).passthrough().describe(\"Main data container for account information.\");\nexport const ScrapflyGetAccountInfoOutput = z.object({\n data: ScrapflyGetAccountInfo_AccountDataSchema.nullable(),\n error: z.string().describe(\"Error message if any\").nullable().optional(),\n successfull: z.boolean().describe(\"Whether the request was successful\").nullable(),\n}).passthrough().describe(\"Response model for Scrapfly account information.\");\n\nexport const scrapflyGetAccountInfo = action(\"SCRAPFLY_GET_ACCOUNT_INFO\", {\n slug: \"scrapfly-get-account-info\",\n name: \"Get Scrapfly Account Information\",\n description: \"Tool to retrieve Scrapfly account information. Use after authenticating to get API credit balance and usage stats. Returns comprehensive account data including subscription plan, usage statistics, billing info, and project settings.\",\n input: ScrapflyGetAccountInfoInput,\n output: ScrapflyGetAccountInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oFAAoF;AACrJ,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC3D,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC7E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACtE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACnD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,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AAE,OAAO;CACxD,SAAS,4CAA4C,SAAS;CAC9D,SAAS,4CAA4C,SAAS;CAC9D,cAAc,iDAAiD,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAM,yCAAyC,SAAS;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ declare const ScrapflyGetAccountInfoOutput: z.ZodObject<{
|
|
|
10
10
|
suspended: z.ZodNullable<z.ZodBoolean>;
|
|
11
11
|
account_id: z.ZodNullable<z.ZodString>;
|
|
12
12
|
suspension_reason: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
14
|
project: z.ZodNullable<z.ZodObject<{
|
|
15
15
|
name: z.ZodNullable<z.ZodString>;
|
|
16
16
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -22,7 +22,7 @@ declare const ScrapflyGetAccountInfoOutput: z.ZodObject<{
|
|
|
22
22
|
concurrency_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
23
|
scrape_request_count: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
24
24
|
scrape_request_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
26
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
27
27
|
usage: z.ZodNullable<z.ZodObject<{
|
|
28
28
|
scrape: z.ZodNullable<z.ZodObject<{
|
|
@@ -33,46 +33,46 @@ declare const ScrapflyGetAccountInfoOutput: z.ZodObject<{
|
|
|
33
33
|
concurrent_limit: z.ZodNullable<z.ZodNumber>;
|
|
34
34
|
concurrent_usage: z.ZodNullable<z.ZodNumber>;
|
|
35
35
|
concurrent_remaining: z.ZodNullable<z.ZodNumber>;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>>;
|
|
37
37
|
spider: z.ZodNullable<z.ZodObject<{
|
|
38
38
|
limit: z.ZodNullable<z.ZodNumber>;
|
|
39
39
|
current: z.ZodNullable<z.ZodNumber>;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
41
|
schedule: z.ZodNullable<z.ZodObject<{
|
|
42
42
|
limit: z.ZodNullable<z.ZodNumber>;
|
|
43
43
|
current: z.ZodNullable<z.ZodNumber>;
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
46
|
period: z.ZodNullable<z.ZodObject<{
|
|
47
47
|
end: z.ZodNullable<z.ZodString>;
|
|
48
48
|
start: z.ZodNullable<z.ZodString>;
|
|
49
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>>;
|
|
50
50
|
billing: z.ZodNullable<z.ZodObject<{
|
|
51
51
|
plan_price: z.ZodNullable<z.ZodObject<{
|
|
52
52
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
53
53
|
currency: z.ZodNullable<z.ZodString>;
|
|
54
|
-
}, z.core.$
|
|
54
|
+
}, z.core.$loose>>;
|
|
55
55
|
ongoing_payment: z.ZodNullable<z.ZodObject<{
|
|
56
56
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
57
57
|
currency: z.ZodNullable<z.ZodString>;
|
|
58
|
-
}, z.core.$
|
|
58
|
+
}, z.core.$loose>>;
|
|
59
59
|
current_extra_scrape_request_price: z.ZodNullable<z.ZodObject<{
|
|
60
60
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
61
61
|
currency: z.ZodNullable<z.ZodString>;
|
|
62
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$loose>>;
|
|
63
63
|
extra_scrape_request_price_per_10k: z.ZodNullable<z.ZodObject<{
|
|
64
64
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
65
65
|
currency: z.ZodNullable<z.ZodString>;
|
|
66
|
-
}, z.core.$
|
|
67
|
-
}, z.core.$
|
|
66
|
+
}, z.core.$loose>>;
|
|
67
|
+
}, z.core.$loose>>;
|
|
68
68
|
plan_name: z.ZodNullable<z.ZodString>;
|
|
69
69
|
max_concurrency: z.ZodNullable<z.ZodNumber>;
|
|
70
70
|
extra_scrape_allowed: z.ZodNullable<z.ZodBoolean>;
|
|
71
|
-
}, z.core.$
|
|
72
|
-
}, z.core.$
|
|
71
|
+
}, z.core.$loose>>;
|
|
72
|
+
}, z.core.$loose>>;
|
|
73
73
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
74
|
successfull: z.ZodNullable<z.ZodBoolean>;
|
|
75
|
-
}, z.core.$
|
|
75
|
+
}, z.core.$loose>;
|
|
76
76
|
declare const scrapflyGetAccountInfo: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
77
77
|
//#endregion
|
|
78
78
|
export { scrapflyGetAccountInfo };
|