@keystrokehq/scrape_do 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/cancel-async-job.cjs +1 -1
- package/dist/actions/cancel-async-job.cjs.map +1 -1
- package/dist/actions/cancel-async-job.d.cts +14 -2
- package/dist/actions/cancel-async-job.d.mts +14 -2
- package/dist/actions/cancel-async-job.mjs +1 -1
- package/dist/actions/cancel-async-job.mjs.map +1 -1
- package/dist/actions/create-async-job.cjs +3 -3
- package/dist/actions/create-async-job.cjs.map +1 -1
- package/dist/actions/create-async-job.d.cts +18 -6
- package/dist/actions/create-async-job.d.cts.map +1 -1
- package/dist/actions/create-async-job.d.mts +18 -6
- package/dist/actions/create-async-job.d.mts.map +1 -1
- package/dist/actions/create-async-job.mjs +3 -3
- package/dist/actions/create-async-job.mjs.map +1 -1
- package/dist/actions/get-account-info.cjs +1 -1
- package/dist/actions/get-account-info.cjs.map +1 -1
- package/dist/actions/get-account-info.d.cts +14 -2
- package/dist/actions/get-account-info.d.mts +14 -2
- package/dist/actions/get-account-info.mjs +1 -1
- package/dist/actions/get-account-info.mjs.map +1 -1
- package/dist/actions/get-amazon-offers.cjs +7 -7
- package/dist/actions/get-amazon-offers.cjs.map +1 -1
- package/dist/actions/get-amazon-offers.d.cts +21 -9
- package/dist/actions/get-amazon-offers.d.mts +21 -9
- package/dist/actions/get-amazon-offers.mjs +7 -7
- package/dist/actions/get-amazon-offers.mjs.map +1 -1
- package/dist/actions/get-amazon-product.cjs +7 -7
- package/dist/actions/get-amazon-product.cjs.map +1 -1
- package/dist/actions/get-amazon-product.d.cts +20 -8
- package/dist/actions/get-amazon-product.d.mts +20 -8
- package/dist/actions/get-amazon-product.mjs +7 -7
- package/dist/actions/get-amazon-product.mjs.map +1 -1
- package/dist/actions/get-amazon-raw-html.cjs +1 -1
- package/dist/actions/get-amazon-raw-html.cjs.map +1 -1
- package/dist/actions/get-amazon-raw-html.d.cts +14 -2
- package/dist/actions/get-amazon-raw-html.d.mts +14 -2
- package/dist/actions/get-amazon-raw-html.mjs +1 -1
- package/dist/actions/get-amazon-raw-html.mjs.map +1 -1
- package/dist/actions/get-async-account-info.cjs +1 -1
- package/dist/actions/get-async-account-info.cjs.map +1 -1
- package/dist/actions/get-async-account-info.d.cts +14 -2
- package/dist/actions/get-async-account-info.d.cts.map +1 -1
- package/dist/actions/get-async-account-info.d.mts +14 -2
- package/dist/actions/get-async-account-info.d.mts.map +1 -1
- package/dist/actions/get-async-account-info.mjs +1 -1
- package/dist/actions/get-async-account-info.mjs.map +1 -1
- package/dist/actions/get-async-job.cjs +2 -2
- package/dist/actions/get-async-job.cjs.map +1 -1
- package/dist/actions/get-async-job.d.cts +15 -3
- package/dist/actions/get-async-job.d.mts +15 -3
- package/dist/actions/get-async-job.mjs +2 -2
- package/dist/actions/get-async-job.mjs.map +1 -1
- package/dist/actions/get-async-task.cjs +2 -2
- package/dist/actions/get-async-task.cjs.map +1 -1
- package/dist/actions/get-async-task.d.cts +15 -3
- package/dist/actions/get-async-task.d.mts +15 -3
- package/dist/actions/get-async-task.mjs +2 -2
- package/dist/actions/get-async-task.mjs.map +1 -1
- package/dist/actions/get-page.cjs +1 -1
- package/dist/actions/get-page.cjs.map +1 -1
- package/dist/actions/get-page.d.cts +14 -2
- package/dist/actions/get-page.d.mts +14 -2
- package/dist/actions/get-page.mjs +1 -1
- package/dist/actions/get-page.mjs.map +1 -1
- package/dist/actions/list-async-jobs.cjs +2 -2
- package/dist/actions/list-async-jobs.cjs.map +1 -1
- package/dist/actions/list-async-jobs.d.cts +15 -3
- package/dist/actions/list-async-jobs.d.mts +15 -3
- package/dist/actions/list-async-jobs.mjs +2 -2
- package/dist/actions/list-async-jobs.mjs.map +1 -1
- package/dist/actions/proxy-mode.cjs +1 -1
- package/dist/actions/proxy-mode.cjs.map +1 -1
- package/dist/actions/proxy-mode.d.cts +14 -2
- package/dist/actions/proxy-mode.d.mts +14 -2
- package/dist/actions/proxy-mode.mjs +1 -1
- package/dist/actions/proxy-mode.mjs.map +1 -1
- package/dist/actions/scrape-url-post.cjs +2 -2
- package/dist/actions/scrape-url-post.cjs.map +1 -1
- package/dist/actions/scrape-url-post.d.cts +15 -3
- package/dist/actions/scrape-url-post.d.mts +15 -3
- package/dist/actions/scrape-url-post.mjs +2 -2
- package/dist/actions/scrape-url-post.mjs.map +1 -1
- package/dist/actions/search-amazon.cjs +4 -4
- package/dist/actions/search-amazon.cjs.map +1 -1
- package/dist/actions/search-amazon.d.cts +17 -5
- package/dist/actions/search-amazon.d.mts +17 -5
- package/dist/actions/search-amazon.mjs +4 -4
- package/dist/actions/search-amazon.mjs.map +1 -1
- package/dist/actions/set-block-urls.cjs +1 -1
- package/dist/actions/set-block-urls.cjs.map +1 -1
- package/dist/actions/set-block-urls.d.cts +14 -2
- package/dist/actions/set-block-urls.d.mts +14 -2
- package/dist/actions/set-block-urls.mjs +1 -1
- package/dist/actions/set-block-urls.mjs.map +1 -1
- package/dist/actions/set-regional-geo-code.cjs +1 -1
- package/dist/actions/set-regional-geo-code.cjs.map +1 -1
- package/dist/actions/set-regional-geo-code.d.cts +14 -2
- package/dist/actions/set-regional-geo-code.d.mts +14 -2
- package/dist/actions/set-regional-geo-code.mjs +1 -1
- package/dist/actions/set-regional-geo-code.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +9 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +9 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -1
- package/dist/app.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ const ScrapeDoCancelAsyncJobOutput = zod.z.object({
|
|
|
15
15
|
ErrorMessage: zod.z.string().describe("Error or cancellation message").nullable().optional(),
|
|
16
16
|
LimitConcurrency: zod.z.number().int().describe("Limit concurrency at time of cancellation").nullable().optional(),
|
|
17
17
|
AcquiredConcurrency: zod.z.number().int().describe("Acquired concurrency at time of cancellation").nullable().optional()
|
|
18
|
-
}).describe("Response model for job cancellation.");
|
|
18
|
+
}).passthrough().describe("Response model for job cancellation.");
|
|
19
19
|
const scrapeDoCancelAsyncJob = require_action.action("SCRAPE_DO_CANCEL_ASYNC_JOB", {
|
|
20
20
|
slug: "scrape_do-cancel-async-job",
|
|
21
21
|
name: "Cancel Async Job",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-async-job.cjs","names":["z","action"],"sources":["../../src/actions/cancel-async-job.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoCancelAsyncJobInput = z.object({\n token: z.string().describe(\"Authentication token for Scrape.do API\"),\n job_id: z.string().describe(\"Unique identifier of the job to cancel\"),\n}).describe(\"Request model for canceling an async job.\");\nexport const ScrapeDoCancelAsyncJobOutput = z.object({\n JobID: z.string().describe(\"ID of the canceled job\").nullable().optional(),\n Status: z.string().describe(\"Job status after cancellation (e.g., 'canceled')\").nullable().optional(),\n EndTime: z.string().describe(\"Job end timestamp\").nullable().optional(),\n TaskIDs: z.array(z.string()).describe(\"List of task IDs associated with the job\").nullable().optional(),\n Canceled: z.boolean().describe(\"Whether the job was successfully canceled\").nullable().optional(),\n StartTime: z.string().describe(\"Job start timestamp\").nullable().optional(),\n ErrorMessage: z.string().describe(\"Error or cancellation message\").nullable().optional(),\n LimitConcurrency: z.number().int().describe(\"Limit concurrency at time of cancellation\").nullable().optional(),\n AcquiredConcurrency: z.number().int().describe(\"Acquired concurrency at time of cancellation\").nullable().optional(),\n}).describe(\"Response model for job cancellation.\");\n\nexport const scrapeDoCancelAsyncJob = action(\"SCRAPE_DO_CANCEL_ASYNC_JOB\", {\n slug: \"scrape_do-cancel-async-job\",\n name: \"Cancel Async Job\",\n description: \"Tool to cancel an asynchronous scraping job. Use when you need to stop processing of pending tasks in a job. Completed tasks remain available.\",\n input: ScrapeDoCancelAsyncJobInput,\n output: Sc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sCAAsC;
|
|
1
|
+
{"version":3,"file":"cancel-async-job.cjs","names":["z","action"],"sources":["../../src/actions/cancel-async-job.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoCancelAsyncJobInput = z.object({\n token: z.string().describe(\"Authentication token for Scrape.do API\"),\n job_id: z.string().describe(\"Unique identifier of the job to cancel\"),\n}).describe(\"Request model for canceling an async job.\");\nexport const ScrapeDoCancelAsyncJobOutput = z.object({\n JobID: z.string().describe(\"ID of the canceled job\").nullable().optional(),\n Status: z.string().describe(\"Job status after cancellation (e.g., 'canceled')\").nullable().optional(),\n EndTime: z.string().describe(\"Job end timestamp\").nullable().optional(),\n TaskIDs: z.array(z.string()).describe(\"List of task IDs associated with the job\").nullable().optional(),\n Canceled: z.boolean().describe(\"Whether the job was successfully canceled\").nullable().optional(),\n StartTime: z.string().describe(\"Job start timestamp\").nullable().optional(),\n ErrorMessage: z.string().describe(\"Error or cancellation message\").nullable().optional(),\n LimitConcurrency: z.number().int().describe(\"Limit concurrency at time of cancellation\").nullable().optional(),\n AcquiredConcurrency: z.number().int().describe(\"Acquired concurrency at time of cancellation\").nullable().optional(),\n}).passthrough().describe(\"Response model for job cancellation.\");\n\nexport const scrapeDoCancelAsyncJob = action(\"SCRAPE_DO_CANCEL_ASYNC_JOB\", {\n slug: \"scrape_do-cancel-async-job\",\n name: \"Cancel Async Job\",\n description: \"Tool to cancel an asynchronous scraping job. Use when you need to stop processing of pending tasks in a job. Completed tasks remain available.\",\n input: ScrapeDoCancelAsyncJobInput,\n output: ScrapeDoCancelAsyncJobOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AACtE,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,+BAA+B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String>>;
|
|
16
16
|
LimitConcurrency: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
17
|
AcquiredConcurrency: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const scrapeDoCancelAsyncJob: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
token: string;
|
|
21
21
|
job_id: string;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"scrape_do", z.ZodObject<{
|
|
23
|
+
connectionId: z.ZodString;
|
|
24
|
+
entityId: z.ZodString;
|
|
25
|
+
instanceId: z.ZodString;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
generic_token: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"scrape_do", z.ZodObject<{
|
|
29
|
+
connectionId: z.ZodString;
|
|
30
|
+
entityId: z.ZodString;
|
|
31
|
+
instanceId: z.ZodString;
|
|
32
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
+
generic_token: z.ZodString;
|
|
34
|
+
}, z.core.$strip>>]>;
|
|
23
35
|
//#endregion
|
|
24
36
|
export { scrapeDoCancelAsyncJob };
|
|
25
37
|
//# sourceMappingURL=cancel-async-job.d.cts.map
|
|
@@ -15,11 +15,23 @@ declare const ScrapeDoCancelAsyncJobOutput: z.ZodObject<{
|
|
|
15
15
|
ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
LimitConcurrency: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
17
|
AcquiredConcurrency: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const scrapeDoCancelAsyncJob: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
token: string;
|
|
21
21
|
job_id: string;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"scrape_do", z.ZodObject<{
|
|
23
|
+
connectionId: z.ZodString;
|
|
24
|
+
entityId: z.ZodString;
|
|
25
|
+
instanceId: z.ZodString;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
generic_token: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"scrape_do", z.ZodObject<{
|
|
29
|
+
connectionId: z.ZodString;
|
|
30
|
+
entityId: z.ZodString;
|
|
31
|
+
instanceId: z.ZodString;
|
|
32
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
+
generic_token: z.ZodString;
|
|
34
|
+
}, z.core.$strip>>]>;
|
|
23
35
|
//#endregion
|
|
24
36
|
export { scrapeDoCancelAsyncJob };
|
|
25
37
|
//# sourceMappingURL=cancel-async-job.d.mts.map
|
|
@@ -18,7 +18,7 @@ const scrapeDoCancelAsyncJob = action("SCRAPE_DO_CANCEL_ASYNC_JOB", {
|
|
|
18
18
|
ErrorMessage: z.string().describe("Error or cancellation message").nullable().optional(),
|
|
19
19
|
LimitConcurrency: z.number().int().describe("Limit concurrency at time of cancellation").nullable().optional(),
|
|
20
20
|
AcquiredConcurrency: z.number().int().describe("Acquired concurrency at time of cancellation").nullable().optional()
|
|
21
|
-
}).describe("Response model for job cancellation.")
|
|
21
|
+
}).passthrough().describe("Response model for job cancellation.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
24
24
|
export { scrapeDoCancelAsyncJob };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-async-job.mjs","names":[],"sources":["../../src/actions/cancel-async-job.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoCancelAsyncJobInput = z.object({\n token: z.string().describe(\"Authentication token for Scrape.do API\"),\n job_id: z.string().describe(\"Unique identifier of the job to cancel\"),\n}).describe(\"Request model for canceling an async job.\");\nexport const ScrapeDoCancelAsyncJobOutput = z.object({\n JobID: z.string().describe(\"ID of the canceled job\").nullable().optional(),\n Status: z.string().describe(\"Job status after cancellation (e.g., 'canceled')\").nullable().optional(),\n EndTime: z.string().describe(\"Job end timestamp\").nullable().optional(),\n TaskIDs: z.array(z.string()).describe(\"List of task IDs associated with the job\").nullable().optional(),\n Canceled: z.boolean().describe(\"Whether the job was successfully canceled\").nullable().optional(),\n StartTime: z.string().describe(\"Job start timestamp\").nullable().optional(),\n ErrorMessage: z.string().describe(\"Error or cancellation message\").nullable().optional(),\n LimitConcurrency: z.number().int().describe(\"Limit concurrency at time of cancellation\").nullable().optional(),\n AcquiredConcurrency: z.number().int().describe(\"Acquired concurrency at time of cancellation\").nullable().optional(),\n}).describe(\"Response model for job cancellation.\");\n\nexport const scrapeDoCancelAsyncJob = action(\"SCRAPE_DO_CANCEL_ASYNC_JOB\", {\n slug: \"scrape_do-cancel-async-job\",\n name: \"Cancel Async Job\",\n description: \"Tool to cancel an asynchronous scraping job. Use when you need to stop processing of pending tasks in a job. Completed tasks remain available.\",\n input: ScrapeDoCancelAsyncJobInput,\n output: ScrapeDoCancelAsyncJobOutput,\n});\n"],"mappings":";;AAoBA,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApByC,EAAE,OAAO;EAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;EACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACtE,CAAC,CAAC,CAAC,SAAS,2CAiBH;CACP,QAjB0C,EAAE,OAAO;EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"cancel-async-job.mjs","names":[],"sources":["../../src/actions/cancel-async-job.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoCancelAsyncJobInput = z.object({\n token: z.string().describe(\"Authentication token for Scrape.do API\"),\n job_id: z.string().describe(\"Unique identifier of the job to cancel\"),\n}).describe(\"Request model for canceling an async job.\");\nexport const ScrapeDoCancelAsyncJobOutput = z.object({\n JobID: z.string().describe(\"ID of the canceled job\").nullable().optional(),\n Status: z.string().describe(\"Job status after cancellation (e.g., 'canceled')\").nullable().optional(),\n EndTime: z.string().describe(\"Job end timestamp\").nullable().optional(),\n TaskIDs: z.array(z.string()).describe(\"List of task IDs associated with the job\").nullable().optional(),\n Canceled: z.boolean().describe(\"Whether the job was successfully canceled\").nullable().optional(),\n StartTime: z.string().describe(\"Job start timestamp\").nullable().optional(),\n ErrorMessage: z.string().describe(\"Error or cancellation message\").nullable().optional(),\n LimitConcurrency: z.number().int().describe(\"Limit concurrency at time of cancellation\").nullable().optional(),\n AcquiredConcurrency: z.number().int().describe(\"Acquired concurrency at time of cancellation\").nullable().optional(),\n}).passthrough().describe(\"Response model for job cancellation.\");\n\nexport const scrapeDoCancelAsyncJob = action(\"SCRAPE_DO_CANCEL_ASYNC_JOB\", {\n slug: \"scrape_do-cancel-async-job\",\n name: \"Cancel Async Job\",\n description: \"Tool to cancel an asynchronous scraping job. Use when you need to stop processing of pending tasks in a job. Completed tasks remain available.\",\n input: ScrapeDoCancelAsyncJobInput,\n output: ScrapeDoCancelAsyncJobOutput,\n});\n"],"mappings":";;AAoBA,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApByC,EAAE,OAAO;EAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;EACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACtE,CAAC,CAAC,CAAC,SAAS,2CAiBH;CACP,QAjB0C,EAAE,OAAO;EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
|
|
@@ -30,7 +30,7 @@ const ScrapeDoCreateAsyncJobInput = zod.z.object({
|
|
|
30
30
|
ParticularScreenshot: zod.z.string().describe("CSS selector for specific element screenshot").optional()
|
|
31
31
|
}).describe("Options for headless browser rendering.").optional(),
|
|
32
32
|
GeoCode: zod.z.string().describe("Country code for geo-targeting (e.g., 'us', 'gb', 'de')").optional(),
|
|
33
|
-
Headers: zod.z.
|
|
33
|
+
Headers: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom HTTP headers to send with requests").optional(),
|
|
34
34
|
Targets: zod.z.array(zod.z.string()).describe("Array of target URLs to scrape. Each URL will be processed asynchronously."),
|
|
35
35
|
Timeout: zod.z.number().int().describe("Total request timeout in milliseconds (default: 60000)").optional(),
|
|
36
36
|
SessionID: zod.z.string().describe("Sticky session ID to reuse same IP address across requests").optional(),
|
|
@@ -39,7 +39,7 @@ const ScrapeDoCreateAsyncJobInput = zod.z.object({
|
|
|
39
39
|
DisableRetry: zod.z.boolean().describe("Disable automatic retry mechanism (default: false)").optional(),
|
|
40
40
|
RetryTimeout: zod.z.number().int().describe("Retry timeout per request in milliseconds (default: 15000)").optional(),
|
|
41
41
|
ForwardHeaders: zod.z.boolean().describe("Use only provided headers, discard default headers (default: false)").optional(),
|
|
42
|
-
WebhookHeaders: zod.z.
|
|
42
|
+
WebhookHeaders: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional headers to send with webhook notification").optional(),
|
|
43
43
|
RegionalGeoCode: zod.z.string().describe("Regional code for more specific geo-targeting").optional(),
|
|
44
44
|
DisableRedirection: zod.z.boolean().describe("Disable following HTTP redirects (default: false)").optional(),
|
|
45
45
|
TransparentResponse: zod.z.boolean().describe("Return raw target website response without processing (default: false)").optional()
|
|
@@ -48,7 +48,7 @@ const ScrapeDoCreateAsyncJobOutput = zod.z.object({
|
|
|
48
48
|
JobID: zod.z.string().describe("Unique identifier for the created job, use this to poll for results").nullable(),
|
|
49
49
|
Message: zod.z.string().describe("Success message from the API").nullable(),
|
|
50
50
|
TaskIDs: zod.z.array(zod.z.string()).describe("Array of task IDs for each target URL")
|
|
51
|
-
}).describe("Response model for async job creation.");
|
|
51
|
+
}).passthrough().describe("Response model for async job creation.");
|
|
52
52
|
const scrapeDoCreateAsyncJob = require_action.action("SCRAPE_DO_CREATE_ASYNC_JOB", {
|
|
53
53
|
slug: "scrape_do-create-async-job",
|
|
54
54
|
name: "Create Async Scraping Job",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-async-job.cjs","names":["z","action"],"sources":["../../src/actions/create-async-job.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoCreateAsyncJobInput = z.object({\n Body: z.string().describe(\"HTTP request body for POST/PUT/PATCH requests\").optional(),\n Super: z.boolean().describe(\"Use residential/mobile proxy networks (default: false)\").optional(),\n Device: z.enum([\"desktop\", \"mobile\", \"tablet\"]).describe(\"Device types for scraping emulation.\").optional(),\n Method: z.enum([\"GET\", \"POST\", \"PUT\", \"PATCH\", \"HEAD\", \"DELETE\"]).describe(\"HTTP methods for async scraping requests.\").optional(),\n Output: z.enum([\"raw\", \"markdown\"]).describe(\"Output format for scraped content.\").optional(),\n Render: z.object({\n WaitUntil: z.string().describe(\"Wait condition: load, domcontentloaded, networkidle0, networkidle2\").optional(),\n CustomWait: z.number().int().describe(\"Custom wait time in milliseconds\").optional(),\n ReturnJSON: z.boolean().describe(\"Return network requests in JSON format\").optional(),\n Screenshot: z.boolean().describe(\"Capture screenshot of visible viewport\").optional(),\n WaitSelector: z.string().describe(\"CSS selector to wait for before considering page loaded\").optional(),\n BlockResources: z.boolean().describe(\"Block CSS and image resources for faster rendering\").optional(),\n FullScreenshot: z.boolean().describe(\"Capture full-page screenshot\").optional(),\n PlayWithBrowser: z.string().describe(\"JavaScript code to execute in browser context\").optional(),\n ParticularScreenshot: z.string().describe(\"CSS selector for specific element screenshot\").optional(),\n}).describe(\"Options for headless browser rendering.\").optional(),\n GeoCode: z.string().describe(\"Country code for geo-targeting (e.g., 'us', 'gb', 'de')\").optional(),\n Headers: z.
|
|
1
|
+
{"version":3,"file":"create-async-job.cjs","names":["z","action"],"sources":["../../src/actions/create-async-job.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoCreateAsyncJobInput = z.object({\n Body: z.string().describe(\"HTTP request body for POST/PUT/PATCH requests\").optional(),\n Super: z.boolean().describe(\"Use residential/mobile proxy networks (default: false)\").optional(),\n Device: z.enum([\"desktop\", \"mobile\", \"tablet\"]).describe(\"Device types for scraping emulation.\").optional(),\n Method: z.enum([\"GET\", \"POST\", \"PUT\", \"PATCH\", \"HEAD\", \"DELETE\"]).describe(\"HTTP methods for async scraping requests.\").optional(),\n Output: z.enum([\"raw\", \"markdown\"]).describe(\"Output format for scraped content.\").optional(),\n Render: z.object({\n WaitUntil: z.string().describe(\"Wait condition: load, domcontentloaded, networkidle0, networkidle2\").optional(),\n CustomWait: z.number().int().describe(\"Custom wait time in milliseconds\").optional(),\n ReturnJSON: z.boolean().describe(\"Return network requests in JSON format\").optional(),\n Screenshot: z.boolean().describe(\"Capture screenshot of visible viewport\").optional(),\n WaitSelector: z.string().describe(\"CSS selector to wait for before considering page loaded\").optional(),\n BlockResources: z.boolean().describe(\"Block CSS and image resources for faster rendering\").optional(),\n FullScreenshot: z.boolean().describe(\"Capture full-page screenshot\").optional(),\n PlayWithBrowser: z.string().describe(\"JavaScript code to execute in browser context\").optional(),\n ParticularScreenshot: z.string().describe(\"CSS selector for specific element screenshot\").optional(),\n}).describe(\"Options for headless browser rendering.\").optional(),\n GeoCode: z.string().describe(\"Country code for geo-targeting (e.g., 'us', 'gb', 'de')\").optional(),\n Headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers to send with requests\").optional(),\n Targets: z.array(z.string()).describe(\"Array of target URLs to scrape. Each URL will be processed asynchronously.\"),\n Timeout: z.number().int().describe(\"Total request timeout in milliseconds (default: 60000)\").optional(),\n SessionID: z.string().describe(\"Sticky session ID to reuse same IP address across requests\").optional(),\n SetCookies: z.string().describe(\"Cookies to include with the request\").optional(),\n WebhookURL: z.string().describe(\"Webhook URL to send results to when job completes\").optional(),\n DisableRetry: z.boolean().describe(\"Disable automatic retry mechanism (default: false)\").optional(),\n RetryTimeout: z.number().int().describe(\"Retry timeout per request in milliseconds (default: 15000)\").optional(),\n ForwardHeaders: z.boolean().describe(\"Use only provided headers, discard default headers (default: false)\").optional(),\n WebhookHeaders: z.record(z.string(), z.unknown()).describe(\"Additional headers to send with webhook notification\").optional(),\n RegionalGeoCode: z.string().describe(\"Regional code for more specific geo-targeting\").optional(),\n DisableRedirection: z.boolean().describe(\"Disable following HTTP redirects (default: false)\").optional(),\n TransparentResponse: z.boolean().describe(\"Return raw target website response without processing (default: false)\").optional(),\n}).describe(\"Request model for creating an asynchronous scraping job.\");\nexport const ScrapeDoCreateAsyncJobOutput = z.object({\n JobID: z.string().describe(\"Unique identifier for the created job, use this to poll for results\").nullable(),\n Message: z.string().describe(\"Success message from the API\").nullable(),\n TaskIDs: z.array(z.string()).describe(\"Array of task IDs for each target URL\"),\n}).passthrough().describe(\"Response model for async job creation.\");\n\nexport const scrapeDoCreateAsyncJob = action(\"SCRAPE_DO_CREATE_ASYNC_JOB\", {\n slug: \"scrape_do-create-async-job\",\n name: \"Create Async Scraping Job\",\n description: \"Tool to create an asynchronous scraping job with specified targets and options. Use when you need to scrape multiple URLs in parallel without waiting for results. Returns a job ID immediately for polling results later via the get job status action.\",\n input: ScrapeDoCreateAsyncJobInput,\n output: ScrapeDoCreateAsyncJobOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAU;CAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC1G,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;EAAO;EAAS;EAAQ;CAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjI,QAAQA,IAAAA,EAAE,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC5F,QAAQA,IAAAA,EAAE,OAAO;EACjB,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC9G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACnF,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACpF,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,C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4DAA4D,CAAC,CAAC,SAAS;CAC/G,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACrH,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5H,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC/F,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACvG,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC3G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACtE,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,yBAAyBC,eAAAA,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -33,7 +33,7 @@ declare const ScrapeDoCreateAsyncJobInput: z.ZodObject<{
|
|
|
33
33
|
ParticularScreenshot: z.ZodOptional<z.ZodString>;
|
|
34
34
|
}, z.core.$strip>>;
|
|
35
35
|
GeoCode: z.ZodOptional<z.ZodString>;
|
|
36
|
-
Headers: z.ZodOptional<z.
|
|
36
|
+
Headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
37
37
|
Targets: z.ZodArray<z.ZodString>;
|
|
38
38
|
Timeout: z.ZodOptional<z.ZodNumber>;
|
|
39
39
|
SessionID: z.ZodOptional<z.ZodString>;
|
|
@@ -42,7 +42,7 @@ declare const ScrapeDoCreateAsyncJobInput: z.ZodObject<{
|
|
|
42
42
|
DisableRetry: z.ZodOptional<z.ZodBoolean>;
|
|
43
43
|
RetryTimeout: z.ZodOptional<z.ZodNumber>;
|
|
44
44
|
ForwardHeaders: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
-
WebhookHeaders: z.ZodOptional<z.
|
|
45
|
+
WebhookHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
46
46
|
RegionalGeoCode: z.ZodOptional<z.ZodString>;
|
|
47
47
|
DisableRedirection: z.ZodOptional<z.ZodBoolean>;
|
|
48
48
|
TransparentResponse: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -51,7 +51,7 @@ declare const ScrapeDoCreateAsyncJobOutput: z.ZodObject<{
|
|
|
51
51
|
JobID: z.ZodNullable<z.ZodString>;
|
|
52
52
|
Message: z.ZodNullable<z.ZodString>;
|
|
53
53
|
TaskIDs: z.ZodArray<z.ZodString>;
|
|
54
|
-
}, z.core.$
|
|
54
|
+
}, z.core.$loose>;
|
|
55
55
|
declare const scrapeDoCreateAsyncJob: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
56
56
|
Targets: string[];
|
|
57
57
|
Body?: string | undefined;
|
|
@@ -71,7 +71,7 @@ declare const scrapeDoCreateAsyncJob: import("@keystrokehq/action").WorkflowActi
|
|
|
71
71
|
ParticularScreenshot?: string | undefined;
|
|
72
72
|
} | undefined;
|
|
73
73
|
GeoCode?: string | undefined;
|
|
74
|
-
Headers?: Record<string,
|
|
74
|
+
Headers?: Record<string, unknown> | undefined;
|
|
75
75
|
Timeout?: number | undefined;
|
|
76
76
|
SessionID?: string | undefined;
|
|
77
77
|
SetCookies?: string | undefined;
|
|
@@ -79,11 +79,23 @@ declare const scrapeDoCreateAsyncJob: import("@keystrokehq/action").WorkflowActi
|
|
|
79
79
|
DisableRetry?: boolean | undefined;
|
|
80
80
|
RetryTimeout?: number | undefined;
|
|
81
81
|
ForwardHeaders?: boolean | undefined;
|
|
82
|
-
WebhookHeaders?: Record<string,
|
|
82
|
+
WebhookHeaders?: Record<string, unknown> | undefined;
|
|
83
83
|
RegionalGeoCode?: string | undefined;
|
|
84
84
|
DisableRedirection?: boolean | undefined;
|
|
85
85
|
TransparentResponse?: boolean | undefined;
|
|
86
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
86
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"scrape_do", z.ZodObject<{
|
|
87
|
+
connectionId: z.ZodString;
|
|
88
|
+
entityId: z.ZodString;
|
|
89
|
+
instanceId: z.ZodString;
|
|
90
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
91
|
+
generic_token: z.ZodString;
|
|
92
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"scrape_do", z.ZodObject<{
|
|
93
|
+
connectionId: z.ZodString;
|
|
94
|
+
entityId: z.ZodString;
|
|
95
|
+
instanceId: z.ZodString;
|
|
96
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
97
|
+
generic_token: z.ZodString;
|
|
98
|
+
}, z.core.$strip>>]>;
|
|
87
99
|
//#endregion
|
|
88
100
|
export { scrapeDoCreateAsyncJob };
|
|
89
101
|
//# sourceMappingURL=create-async-job.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-async-job.d.cts","names":[],"sources":["../../src/actions/create-async-job.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,gCAAsB,wBAAA
|
|
1
|
+
{"version":3,"file":"create-async-job.d.cts","names":[],"sources":["../../src/actions/create-async-job.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -33,7 +33,7 @@ declare const ScrapeDoCreateAsyncJobInput: z.ZodObject<{
|
|
|
33
33
|
ParticularScreenshot: z.ZodOptional<z.ZodString>;
|
|
34
34
|
}, z.core.$strip>>;
|
|
35
35
|
GeoCode: z.ZodOptional<z.ZodString>;
|
|
36
|
-
Headers: z.ZodOptional<z.
|
|
36
|
+
Headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
37
37
|
Targets: z.ZodArray<z.ZodString>;
|
|
38
38
|
Timeout: z.ZodOptional<z.ZodNumber>;
|
|
39
39
|
SessionID: z.ZodOptional<z.ZodString>;
|
|
@@ -42,7 +42,7 @@ declare const ScrapeDoCreateAsyncJobInput: z.ZodObject<{
|
|
|
42
42
|
DisableRetry: z.ZodOptional<z.ZodBoolean>;
|
|
43
43
|
RetryTimeout: z.ZodOptional<z.ZodNumber>;
|
|
44
44
|
ForwardHeaders: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
-
WebhookHeaders: z.ZodOptional<z.
|
|
45
|
+
WebhookHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
46
46
|
RegionalGeoCode: z.ZodOptional<z.ZodString>;
|
|
47
47
|
DisableRedirection: z.ZodOptional<z.ZodBoolean>;
|
|
48
48
|
TransparentResponse: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -51,7 +51,7 @@ declare const ScrapeDoCreateAsyncJobOutput: z.ZodObject<{
|
|
|
51
51
|
JobID: z.ZodNullable<z.ZodString>;
|
|
52
52
|
Message: z.ZodNullable<z.ZodString>;
|
|
53
53
|
TaskIDs: z.ZodArray<z.ZodString>;
|
|
54
|
-
}, z.core.$
|
|
54
|
+
}, z.core.$loose>;
|
|
55
55
|
declare const scrapeDoCreateAsyncJob: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
56
56
|
Targets: string[];
|
|
57
57
|
Body?: string | undefined;
|
|
@@ -71,7 +71,7 @@ declare const scrapeDoCreateAsyncJob: import("@keystrokehq/action").WorkflowActi
|
|
|
71
71
|
ParticularScreenshot?: string | undefined;
|
|
72
72
|
} | undefined;
|
|
73
73
|
GeoCode?: string | undefined;
|
|
74
|
-
Headers?: Record<string,
|
|
74
|
+
Headers?: Record<string, unknown> | undefined;
|
|
75
75
|
Timeout?: number | undefined;
|
|
76
76
|
SessionID?: string | undefined;
|
|
77
77
|
SetCookies?: string | undefined;
|
|
@@ -79,11 +79,23 @@ declare const scrapeDoCreateAsyncJob: import("@keystrokehq/action").WorkflowActi
|
|
|
79
79
|
DisableRetry?: boolean | undefined;
|
|
80
80
|
RetryTimeout?: number | undefined;
|
|
81
81
|
ForwardHeaders?: boolean | undefined;
|
|
82
|
-
WebhookHeaders?: Record<string,
|
|
82
|
+
WebhookHeaders?: Record<string, unknown> | undefined;
|
|
83
83
|
RegionalGeoCode?: string | undefined;
|
|
84
84
|
DisableRedirection?: boolean | undefined;
|
|
85
85
|
TransparentResponse?: boolean | undefined;
|
|
86
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
86
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"scrape_do", z.ZodObject<{
|
|
87
|
+
connectionId: z.ZodString;
|
|
88
|
+
entityId: z.ZodString;
|
|
89
|
+
instanceId: z.ZodString;
|
|
90
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
91
|
+
generic_token: z.ZodString;
|
|
92
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"scrape_do", z.ZodObject<{
|
|
93
|
+
connectionId: z.ZodString;
|
|
94
|
+
entityId: z.ZodString;
|
|
95
|
+
instanceId: z.ZodString;
|
|
96
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
97
|
+
generic_token: z.ZodString;
|
|
98
|
+
}, z.core.$strip>>]>;
|
|
87
99
|
//#endregion
|
|
88
100
|
export { scrapeDoCreateAsyncJob };
|
|
89
101
|
//# sourceMappingURL=create-async-job.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-async-job.d.mts","names":[],"sources":["../../src/actions/create-async-job.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,gCAAsB,wBAAA
|
|
1
|
+
{"version":3,"file":"create-async-job.d.mts","names":[],"sources":["../../src/actions/create-async-job.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -33,7 +33,7 @@ const scrapeDoCreateAsyncJob = action("SCRAPE_DO_CREATE_ASYNC_JOB", {
|
|
|
33
33
|
ParticularScreenshot: z.string().describe("CSS selector for specific element screenshot").optional()
|
|
34
34
|
}).describe("Options for headless browser rendering.").optional(),
|
|
35
35
|
GeoCode: z.string().describe("Country code for geo-targeting (e.g., 'us', 'gb', 'de')").optional(),
|
|
36
|
-
Headers: z.
|
|
36
|
+
Headers: z.record(z.string(), z.unknown()).describe("Custom HTTP headers to send with requests").optional(),
|
|
37
37
|
Targets: z.array(z.string()).describe("Array of target URLs to scrape. Each URL will be processed asynchronously."),
|
|
38
38
|
Timeout: z.number().int().describe("Total request timeout in milliseconds (default: 60000)").optional(),
|
|
39
39
|
SessionID: z.string().describe("Sticky session ID to reuse same IP address across requests").optional(),
|
|
@@ -42,7 +42,7 @@ const scrapeDoCreateAsyncJob = action("SCRAPE_DO_CREATE_ASYNC_JOB", {
|
|
|
42
42
|
DisableRetry: z.boolean().describe("Disable automatic retry mechanism (default: false)").optional(),
|
|
43
43
|
RetryTimeout: z.number().int().describe("Retry timeout per request in milliseconds (default: 15000)").optional(),
|
|
44
44
|
ForwardHeaders: z.boolean().describe("Use only provided headers, discard default headers (default: false)").optional(),
|
|
45
|
-
WebhookHeaders: z.
|
|
45
|
+
WebhookHeaders: z.record(z.string(), z.unknown()).describe("Additional headers to send with webhook notification").optional(),
|
|
46
46
|
RegionalGeoCode: z.string().describe("Regional code for more specific geo-targeting").optional(),
|
|
47
47
|
DisableRedirection: z.boolean().describe("Disable following HTTP redirects (default: false)").optional(),
|
|
48
48
|
TransparentResponse: z.boolean().describe("Return raw target website response without processing (default: false)").optional()
|
|
@@ -51,7 +51,7 @@ const scrapeDoCreateAsyncJob = action("SCRAPE_DO_CREATE_ASYNC_JOB", {
|
|
|
51
51
|
JobID: z.string().describe("Unique identifier for the created job, use this to poll for results").nullable(),
|
|
52
52
|
Message: z.string().describe("Success message from the API").nullable(),
|
|
53
53
|
TaskIDs: z.array(z.string()).describe("Array of task IDs for each target URL")
|
|
54
|
-
}).describe("Response model for async job creation.")
|
|
54
|
+
}).passthrough().describe("Response model for async job creation.")
|
|
55
55
|
});
|
|
56
56
|
//#endregion
|
|
57
57
|
export { scrapeDoCreateAsyncJob };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-async-job.mjs","names":[],"sources":["../../src/actions/create-async-job.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoCreateAsyncJobInput = z.object({\n Body: z.string().describe(\"HTTP request body for POST/PUT/PATCH requests\").optional(),\n Super: z.boolean().describe(\"Use residential/mobile proxy networks (default: false)\").optional(),\n Device: z.enum([\"desktop\", \"mobile\", \"tablet\"]).describe(\"Device types for scraping emulation.\").optional(),\n Method: z.enum([\"GET\", \"POST\", \"PUT\", \"PATCH\", \"HEAD\", \"DELETE\"]).describe(\"HTTP methods for async scraping requests.\").optional(),\n Output: z.enum([\"raw\", \"markdown\"]).describe(\"Output format for scraped content.\").optional(),\n Render: z.object({\n WaitUntil: z.string().describe(\"Wait condition: load, domcontentloaded, networkidle0, networkidle2\").optional(),\n CustomWait: z.number().int().describe(\"Custom wait time in milliseconds\").optional(),\n ReturnJSON: z.boolean().describe(\"Return network requests in JSON format\").optional(),\n Screenshot: z.boolean().describe(\"Capture screenshot of visible viewport\").optional(),\n WaitSelector: z.string().describe(\"CSS selector to wait for before considering page loaded\").optional(),\n BlockResources: z.boolean().describe(\"Block CSS and image resources for faster rendering\").optional(),\n FullScreenshot: z.boolean().describe(\"Capture full-page screenshot\").optional(),\n PlayWithBrowser: z.string().describe(\"JavaScript code to execute in browser context\").optional(),\n ParticularScreenshot: z.string().describe(\"CSS selector for specific element screenshot\").optional(),\n}).describe(\"Options for headless browser rendering.\").optional(),\n GeoCode: z.string().describe(\"Country code for geo-targeting (e.g., 'us', 'gb', 'de')\").optional(),\n Headers: z.
|
|
1
|
+
{"version":3,"file":"create-async-job.mjs","names":[],"sources":["../../src/actions/create-async-job.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoCreateAsyncJobInput = z.object({\n Body: z.string().describe(\"HTTP request body for POST/PUT/PATCH requests\").optional(),\n Super: z.boolean().describe(\"Use residential/mobile proxy networks (default: false)\").optional(),\n Device: z.enum([\"desktop\", \"mobile\", \"tablet\"]).describe(\"Device types for scraping emulation.\").optional(),\n Method: z.enum([\"GET\", \"POST\", \"PUT\", \"PATCH\", \"HEAD\", \"DELETE\"]).describe(\"HTTP methods for async scraping requests.\").optional(),\n Output: z.enum([\"raw\", \"markdown\"]).describe(\"Output format for scraped content.\").optional(),\n Render: z.object({\n WaitUntil: z.string().describe(\"Wait condition: load, domcontentloaded, networkidle0, networkidle2\").optional(),\n CustomWait: z.number().int().describe(\"Custom wait time in milliseconds\").optional(),\n ReturnJSON: z.boolean().describe(\"Return network requests in JSON format\").optional(),\n Screenshot: z.boolean().describe(\"Capture screenshot of visible viewport\").optional(),\n WaitSelector: z.string().describe(\"CSS selector to wait for before considering page loaded\").optional(),\n BlockResources: z.boolean().describe(\"Block CSS and image resources for faster rendering\").optional(),\n FullScreenshot: z.boolean().describe(\"Capture full-page screenshot\").optional(),\n PlayWithBrowser: z.string().describe(\"JavaScript code to execute in browser context\").optional(),\n ParticularScreenshot: z.string().describe(\"CSS selector for specific element screenshot\").optional(),\n}).describe(\"Options for headless browser rendering.\").optional(),\n GeoCode: z.string().describe(\"Country code for geo-targeting (e.g., 'us', 'gb', 'de')\").optional(),\n Headers: z.record(z.string(), z.unknown()).describe(\"Custom HTTP headers to send with requests\").optional(),\n Targets: z.array(z.string()).describe(\"Array of target URLs to scrape. Each URL will be processed asynchronously.\"),\n Timeout: z.number().int().describe(\"Total request timeout in milliseconds (default: 60000)\").optional(),\n SessionID: z.string().describe(\"Sticky session ID to reuse same IP address across requests\").optional(),\n SetCookies: z.string().describe(\"Cookies to include with the request\").optional(),\n WebhookURL: z.string().describe(\"Webhook URL to send results to when job completes\").optional(),\n DisableRetry: z.boolean().describe(\"Disable automatic retry mechanism (default: false)\").optional(),\n RetryTimeout: z.number().int().describe(\"Retry timeout per request in milliseconds (default: 15000)\").optional(),\n ForwardHeaders: z.boolean().describe(\"Use only provided headers, discard default headers (default: false)\").optional(),\n WebhookHeaders: z.record(z.string(), z.unknown()).describe(\"Additional headers to send with webhook notification\").optional(),\n RegionalGeoCode: z.string().describe(\"Regional code for more specific geo-targeting\").optional(),\n DisableRedirection: z.boolean().describe(\"Disable following HTTP redirects (default: false)\").optional(),\n TransparentResponse: z.boolean().describe(\"Return raw target website response without processing (default: false)\").optional(),\n}).describe(\"Request model for creating an asynchronous scraping job.\");\nexport const ScrapeDoCreateAsyncJobOutput = z.object({\n JobID: z.string().describe(\"Unique identifier for the created job, use this to poll for results\").nullable(),\n Message: z.string().describe(\"Success message from the API\").nullable(),\n TaskIDs: z.array(z.string()).describe(\"Array of task IDs for each target URL\"),\n}).passthrough().describe(\"Response model for async job creation.\");\n\nexport const scrapeDoCreateAsyncJob = action(\"SCRAPE_DO_CREATE_ASYNC_JOB\", {\n slug: \"scrape_do-create-async-job\",\n name: \"Create Async Scraping Job\",\n description: \"Tool to create an asynchronous scraping job with specified targets and options. Use when you need to scrape multiple URLs in parallel without waiting for results. Returns a job ID immediately for polling results later via the get job status action.\",\n input: ScrapeDoCreateAsyncJobInput,\n output: ScrapeDoCreateAsyncJobOutput,\n});\n"],"mappings":";;AA0CA,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1CyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACpF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EAC/F,QAAQ,EAAE,KAAK;GAAC;GAAW;GAAU;EAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC1G,QAAQ,EAAE,KAAK;GAAC;GAAO;GAAQ;GAAO;GAAS;GAAQ;EAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACjI,QAAQ,EAAE,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC5F,QAAQ,EAAE,OAAO;GACjB,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;GAC9G,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kC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C,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAC/G,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EACrH,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC5H,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC/F,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACvG,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC/H,CAAC,CAAC,CAAC,SAAS,0DAWH;CACP,QAX0C,EAAE,OAAO;EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC3G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACtE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC;CAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ const ScrapeDoGetAccountInfoOutput = zod.z.object({
|
|
|
8
8
|
max_monthly_request: zod.z.number().int().describe("Maximum number of requests allowed per month").nullable(),
|
|
9
9
|
remaining_monthly_request: zod.z.number().int().describe("Number of monthly requests remaining").nullable(),
|
|
10
10
|
remaining_concurrent_request: zod.z.number().int().describe("Number of concurrent requests remaining").nullable()
|
|
11
|
-
}).describe("Response model for account information.");
|
|
11
|
+
}).passthrough().describe("Response model for account information.");
|
|
12
12
|
const scrapeDoGetAccountInfo = require_action.action("SCRAPE_DO_GET_ACCOUNT_INFO", {
|
|
13
13
|
slug: "scrape_do-get-account-info",
|
|
14
14
|
name: "Get 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 ScrapeDoGetAccountInfoInput = z.object({\n token: z.string().describe(\"Authentication token for Scrape.do API\"),\n}).describe(\"Request model for getting account information.\");\nexport const ScrapeDoGetAccountInfoOutput = z.object({\n is_active: z.boolean().describe(\"Subscription status indicating if the account is active\").nullable(),\n concurrent_request: z.number().int().describe(\"Maximum number of concurrent requests allowed\").nullable(),\n max_monthly_request: z.number().int().describe(\"Maximum number of requests allowed per month\").nullable(),\n remaining_monthly_request: z.number().int().describe(\"Number of monthly requests remaining\").nullable(),\n remaining_concurrent_request: z.number().int().describe(\"Number of concurrent requests remaining\").nullable(),\n}).describe(\"Response model for account information.\");\n\nexport const scrapeDoGetAccountInfo = action(\"SCRAPE_DO_GET_ACCOUNT_INFO\", {\n slug: \"scrape_do-get-account-info\",\n name: \"Get Account Information\",\n description: \"Retrieves account information and usage statistics from Scrape.do. This action makes a GET request to the Scrape.do info endpoint to fetch: - Subscription status - Concurrent request limits and usage - Monthly request limits and remaining requests - Real-time usage statistics Rate limit: Maximum 10 requests per minute. Use remaining request counts to monitor credits proactively, as different scraping operations (e.g., rendered-page requests) consume varying credit amounts and exhaustion mid-run causes failures.\",\n input: ScrapeDoGetAccountInfoInput,\n output: ScrapeDoGetAccountInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EACrE,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACpG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACxG,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACtG,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,yCAAyC;
|
|
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 ScrapeDoGetAccountInfoInput = z.object({\n token: z.string().describe(\"Authentication token for Scrape.do API\"),\n}).describe(\"Request model for getting account information.\");\nexport const ScrapeDoGetAccountInfoOutput = z.object({\n is_active: z.boolean().describe(\"Subscription status indicating if the account is active\").nullable(),\n concurrent_request: z.number().int().describe(\"Maximum number of concurrent requests allowed\").nullable(),\n max_monthly_request: z.number().int().describe(\"Maximum number of requests allowed per month\").nullable(),\n remaining_monthly_request: z.number().int().describe(\"Number of monthly requests remaining\").nullable(),\n remaining_concurrent_request: z.number().int().describe(\"Number of concurrent requests remaining\").nullable(),\n}).passthrough().describe(\"Response model for account information.\");\n\nexport const scrapeDoGetAccountInfo = action(\"SCRAPE_DO_GET_ACCOUNT_INFO\", {\n slug: \"scrape_do-get-account-info\",\n name: \"Get Account Information\",\n description: \"Retrieves account information and usage statistics from Scrape.do. This action makes a GET request to the Scrape.do info endpoint to fetch: - Subscription status - Concurrent request limits and usage - Monthly request limits and remaining requests - Real-time usage statistics Rate limit: Maximum 10 requests per minute. Use remaining request counts to monitor credits proactively, as different scraping operations (e.g., rendered-page requests) consume varying credit amounts and exhaustion mid-run causes failures.\",\n input: ScrapeDoGetAccountInfoInput,\n output: ScrapeDoGetAccountInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EACrE,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACpG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACxG,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACtG,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,yBAAyBC,eAAAA,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,10 +10,22 @@ declare const ScrapeDoGetAccountInfoOutput: z.ZodObject<{
|
|
|
10
10
|
max_monthly_request: z.ZodNullable<z.ZodNumber>;
|
|
11
11
|
remaining_monthly_request: z.ZodNullable<z.ZodNumber>;
|
|
12
12
|
remaining_concurrent_request: z.ZodNullable<z.ZodNumber>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const scrapeDoGetAccountInfo: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
15
|
token: string;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
16
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"scrape_do", z.ZodObject<{
|
|
17
|
+
connectionId: z.ZodString;
|
|
18
|
+
entityId: z.ZodString;
|
|
19
|
+
instanceId: z.ZodString;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
generic_token: z.ZodString;
|
|
22
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"scrape_do", z.ZodObject<{
|
|
23
|
+
connectionId: z.ZodString;
|
|
24
|
+
entityId: z.ZodString;
|
|
25
|
+
instanceId: z.ZodString;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
generic_token: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>]>;
|
|
17
29
|
//#endregion
|
|
18
30
|
export { scrapeDoGetAccountInfo };
|
|
19
31
|
//# sourceMappingURL=get-account-info.d.cts.map
|
|
@@ -10,10 +10,22 @@ declare const ScrapeDoGetAccountInfoOutput: z.ZodObject<{
|
|
|
10
10
|
max_monthly_request: z.ZodNullable<z.ZodNumber>;
|
|
11
11
|
remaining_monthly_request: z.ZodNullable<z.ZodNumber>;
|
|
12
12
|
remaining_concurrent_request: z.ZodNullable<z.ZodNumber>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const scrapeDoGetAccountInfo: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
15
|
token: string;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
16
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"scrape_do", z.ZodObject<{
|
|
17
|
+
connectionId: z.ZodString;
|
|
18
|
+
entityId: z.ZodString;
|
|
19
|
+
instanceId: z.ZodString;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
generic_token: z.ZodString;
|
|
22
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"scrape_do", z.ZodObject<{
|
|
23
|
+
connectionId: z.ZodString;
|
|
24
|
+
entityId: z.ZodString;
|
|
25
|
+
instanceId: z.ZodString;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
generic_token: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>]>;
|
|
17
29
|
//#endregion
|
|
18
30
|
export { scrapeDoGetAccountInfo };
|
|
19
31
|
//# sourceMappingURL=get-account-info.d.mts.map
|
|
@@ -11,7 +11,7 @@ const scrapeDoGetAccountInfo = action("SCRAPE_DO_GET_ACCOUNT_INFO", {
|
|
|
11
11
|
max_monthly_request: z.number().int().describe("Maximum number of requests allowed per month").nullable(),
|
|
12
12
|
remaining_monthly_request: z.number().int().describe("Number of monthly requests remaining").nullable(),
|
|
13
13
|
remaining_concurrent_request: z.number().int().describe("Number of concurrent requests remaining").nullable()
|
|
14
|
-
}).describe("Response model for account information.")
|
|
14
|
+
}).passthrough().describe("Response model for account information.")
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { scrapeDoGetAccountInfo };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-account-info.mjs","names":[],"sources":["../../src/actions/get-account-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoGetAccountInfoInput = z.object({\n token: z.string().describe(\"Authentication token for Scrape.do API\"),\n}).describe(\"Request model for getting account information.\");\nexport const ScrapeDoGetAccountInfoOutput = z.object({\n is_active: z.boolean().describe(\"Subscription status indicating if the account is active\").nullable(),\n concurrent_request: z.number().int().describe(\"Maximum number of concurrent requests allowed\").nullable(),\n max_monthly_request: z.number().int().describe(\"Maximum number of requests allowed per month\").nullable(),\n remaining_monthly_request: z.number().int().describe(\"Number of monthly requests remaining\").nullable(),\n remaining_concurrent_request: z.number().int().describe(\"Number of concurrent requests remaining\").nullable(),\n}).describe(\"Response model for account information.\");\n\nexport const scrapeDoGetAccountInfo = action(\"SCRAPE_DO_GET_ACCOUNT_INFO\", {\n slug: \"scrape_do-get-account-info\",\n name: \"Get Account Information\",\n description: \"Retrieves account information and usage statistics from Scrape.do. This action makes a GET request to the Scrape.do info endpoint to fetch: - Subscription status - Concurrent request limits and usage - Monthly request limits and remaining requests - Real-time usage statistics Rate limit: Maximum 10 requests per minute. Use remaining request counts to monitor credits proactively, as different scraping operations (e.g., rendered-page requests) consume varying credit amounts and exhaustion mid-run causes failures.\",\n input: ScrapeDoGetAccountInfoInput,\n output: ScrapeDoGetAccountInfoOutput,\n});\n"],"mappings":";;AAeA,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfyC,EAAE,OAAO,EAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EACrE,CAAC,CAAC,CAAC,SAAS,gDAaH;CACP,QAb0C,EAAE,OAAO;EACnD,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACpG,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACxG,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACxG,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACtG,8BAA8B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"get-account-info.mjs","names":[],"sources":["../../src/actions/get-account-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoGetAccountInfoInput = z.object({\n token: z.string().describe(\"Authentication token for Scrape.do API\"),\n}).describe(\"Request model for getting account information.\");\nexport const ScrapeDoGetAccountInfoOutput = z.object({\n is_active: z.boolean().describe(\"Subscription status indicating if the account is active\").nullable(),\n concurrent_request: z.number().int().describe(\"Maximum number of concurrent requests allowed\").nullable(),\n max_monthly_request: z.number().int().describe(\"Maximum number of requests allowed per month\").nullable(),\n remaining_monthly_request: z.number().int().describe(\"Number of monthly requests remaining\").nullable(),\n remaining_concurrent_request: z.number().int().describe(\"Number of concurrent requests remaining\").nullable(),\n}).passthrough().describe(\"Response model for account information.\");\n\nexport const scrapeDoGetAccountInfo = action(\"SCRAPE_DO_GET_ACCOUNT_INFO\", {\n slug: \"scrape_do-get-account-info\",\n name: \"Get Account Information\",\n description: \"Retrieves account information and usage statistics from Scrape.do. This action makes a GET request to the Scrape.do info endpoint to fetch: - Subscription status - Concurrent request limits and usage - Monthly request limits and remaining requests - Real-time usage statistics Rate limit: Maximum 10 requests per minute. Use remaining request counts to monitor credits proactively, as different scraping operations (e.g., rendered-page requests) consume varying credit amounts and exhaustion mid-run causes failures.\",\n input: ScrapeDoGetAccountInfoInput,\n output: ScrapeDoGetAccountInfoOutput,\n});\n"],"mappings":";;AAeA,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfyC,EAAE,OAAO,EAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EACrE,CAAC,CAAC,CAAC,SAAS,gDAaH;CACP,QAb0C,EAAE,OAAO;EACnD,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACpG,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACxG,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACxG,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACtG,8BAA8B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
|
|
@@ -8,17 +8,17 @@ const ScrapeDoGetAmazonOffersInput = zod.z.object({
|
|
|
8
8
|
super_mode: zod.z.boolean().describe("Enable residential/mobile proxies for higher success rates. Costs 10x credits").optional(),
|
|
9
9
|
include_html: zod.z.boolean().describe("When true, includes the full raw HTML alongside structured JSON").optional()
|
|
10
10
|
}).describe("Request model for retrieving Amazon product offers.");
|
|
11
|
-
const ScrapeDoGetAmazonOffers_DiscountInfoSchema = zod.z.object({ percentage: zod.z.number().describe("Discount percentage").nullable().optional() }).describe("Discount details.");
|
|
11
|
+
const ScrapeDoGetAmazonOffers_DiscountInfoSchema = zod.z.object({ percentage: zod.z.number().describe("Discount percentage").nullable().optional() }).passthrough().describe("Discount details.");
|
|
12
12
|
const ScrapeDoGetAmazonOffers_ShippingInfoSchema = zod.z.object({
|
|
13
13
|
amount: zod.z.number().describe("Shipping cost amount").nullable().optional(),
|
|
14
14
|
currencyCode: zod.z.string().describe("Currency code (e.g., USD)").nullable().optional()
|
|
15
|
-
}).describe("Shipping cost information.");
|
|
15
|
+
}).passthrough().describe("Shipping cost information.");
|
|
16
16
|
const ScrapeDoGetAmazonOffers_PriceInfoSchema = zod.z.object({
|
|
17
17
|
amount: zod.z.number().describe("Price amount in the currency").nullable().optional(),
|
|
18
18
|
currencyCode: zod.z.string().describe("Currency code (e.g., USD)").nullable().optional()
|
|
19
|
-
}).describe("Price information structure.");
|
|
20
|
-
const ScrapeDoGetAmazonOffers_ShippingTimeSchema = zod.z.object({ displayString: zod.z.string().describe("Human-readable shipping time (e.g., 'Ships in 2-3 business days')").nullable().optional() }).describe("Shipping time details.");
|
|
21
|
-
const ScrapeDoGetAmazonOffers_PrimeInformationSchema = zod.z.object({ isPrime: zod.z.boolean().describe("Whether Prime shipping available").nullable().optional() }).describe("Prime eligibility details.");
|
|
19
|
+
}).passthrough().describe("Price information structure.");
|
|
20
|
+
const ScrapeDoGetAmazonOffers_ShippingTimeSchema = zod.z.object({ displayString: zod.z.string().describe("Human-readable shipping time (e.g., 'Ships in 2-3 business days')").nullable().optional() }).passthrough().describe("Shipping time details.");
|
|
21
|
+
const ScrapeDoGetAmazonOffers_PrimeInformationSchema = zod.z.object({ isPrime: zod.z.boolean().describe("Whether Prime shipping available").nullable().optional() }).passthrough().describe("Prime eligibility details.");
|
|
22
22
|
const ScrapeDoGetAmazonOffers_OfferItemSchema = zod.z.object({
|
|
23
23
|
discount: ScrapeDoGetAmazonOffers_DiscountInfoSchema.nullable().optional(),
|
|
24
24
|
quantity: zod.z.number().int().describe("Available stock quantity").nullable().optional(),
|
|
@@ -34,14 +34,14 @@ const ScrapeDoGetAmazonOffers_OfferItemSchema = zod.z.object({
|
|
|
34
34
|
isBuyBoxWinner: zod.z.boolean().describe("Whether this offer holds the Buy Box").nullable().optional(),
|
|
35
35
|
primeInformation: ScrapeDoGetAmazonOffers_PrimeInformationSchema.nullable().optional(),
|
|
36
36
|
isFulfilledByAmazon: zod.z.boolean().describe("Whether fulfilled by Amazon (FBA)").nullable().optional()
|
|
37
|
-
}).describe("Individual seller offer details.");
|
|
37
|
+
}).passthrough().describe("Individual seller offer details.");
|
|
38
38
|
const ScrapeDoGetAmazonOffersOutput = zod.z.object({
|
|
39
39
|
asin: zod.z.string().describe("Product ASIN number").nullable().optional(),
|
|
40
40
|
html: zod.z.string().describe("Full raw HTML when include_html=true").nullable().optional(),
|
|
41
41
|
offers: zod.z.array(ScrapeDoGetAmazonOffers_OfferItemSchema).describe("List of all seller offers for the product").nullable().optional(),
|
|
42
42
|
status: zod.z.string().describe("Request status (success or error)").nullable().optional(),
|
|
43
43
|
errorMessage: zod.z.string().describe("Error message if request failed").nullable().optional()
|
|
44
|
-
}).describe("Response model for Amazon product offers.");
|
|
44
|
+
}).passthrough().describe("Response model for Amazon product offers.");
|
|
45
45
|
const scrapeDoGetAmazonOffers = require_action.action("SCRAPE_DO_GET_AMAZON_OFFERS", {
|
|
46
46
|
slug: "scrape_do-get-amazon-offers",
|
|
47
47
|
name: "Get Amazon Product Offers",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-amazon-offers.cjs","names":["z","action"],"sources":["../../src/actions/get-amazon-offers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoGetAmazonOffersInput = z.object({\n asin: z.string().describe(\"Amazon Standard Identification Number (10-character product ID)\"),\n geocode: z.string().describe(\"Country code for Amazon marketplace (e.g., us, gb, de, jp, fr, es, it, ca)\"),\n zipcode: z.string().describe(\"Postal/ZIP code formatted according to country requirements\"),\n super_mode: z.boolean().describe(\"Enable residential/mobile proxies for higher success rates. Costs 10x credits\").optional(),\n include_html: z.boolean().describe(\"When true, includes the full raw HTML alongside structured JSON\").optional(),\n}).describe(\"Request model for retrieving Amazon product offers.\");\nconst ScrapeDoGetAmazonOffers_DiscountInfoSchema = z.object({\n percentage: z.number().describe(\"Discount percentage\").nullable().optional(),\n}).describe(\"Discount details.\");\nconst ScrapeDoGetAmazonOffers_ShippingInfoSchema = z.object({\n amount: z.number().describe(\"Shipping cost amount\").nullable().optional(),\n currencyCode: z.string().describe(\"Currency code (e.g., USD)\").nullable().optional(),\n}).describe(\"Shipping cost information.\");\nconst ScrapeDoGetAmazonOffers_PriceInfoSchema = z.object({\n amount: z.number().describe(\"Price amount in the currency\").nullable().optional(),\n currencyCode: z.string().describe(\"Currency code (e.g., USD)\").nullable().optional(),\n}).describe(\"Price information structure.\");\nconst ScrapeDoGetAmazonOffers_ShippingTimeSchema = z.object({\n displayString: z.string().describe(\"Human-readable shipping time (e.g., 'Ships in 2-3 business days')\").nullable().optional(),\n}).describe(\"Shipping time details.\");\nconst ScrapeDoGetAmazonOffers_PrimeInformationSchema = z.object({\n isPrime: z.boolean().describe(\"Whether Prime shipping available\").nullable().optional(),\n}).describe(\"Prime eligibility details.\");\nconst ScrapeDoGetAmazonOffers_OfferItemSchema = z.object({\n discount: ScrapeDoGetAmazonOffers_DiscountInfoSchema.nullable().optional(),\n quantity: z.number().int().describe(\"Available stock quantity\").nullable().optional(),\n sellerId: z.string().describe(\"Unique seller identifier\").nullable().optional(),\n shipping: ScrapeDoGetAmazonOffers_ShippingInfoSchema.nullable().optional(),\n condition: z.string().describe(\"Product condition (New, Used, Refurbished)\").nullable().optional(),\n listPrice: ScrapeDoGetAmazonOffers_PriceInfoSchema.nullable().optional(),\n shipsFrom: z.string().describe(\"Shipping origin location\").nullable().optional(),\n offerHeader: z.string().describe(\"Offer header text\").nullable().optional(),\n listingPrice: ScrapeDoGetAmazonOffers_PriceInfoSchema.nullable().optional(),\n merchantName: z.string().describe(\"Seller display name\").nullable().optional(),\n shippingTime: ScrapeDoGetAmazonOffers_ShippingTimeSchema.nullable().optional(),\n isBuyBoxWinner: z.boolean().describe(\"Whether this offer holds the Buy Box\").nullable().optional(),\n primeInformation: ScrapeDoGetAmazonOffers_PrimeInformationSchema.nullable().optional(),\n isFulfilledByAmazon: z.boolean().describe(\"Whether fulfilled by Amazon (FBA)\").nullable().optional(),\n}).describe(\"Individual seller offer details.\");\nexport const ScrapeDoGetAmazonOffersOutput = z.object({\n asin: z.string().describe(\"Product ASIN number\").nullable().optional(),\n html: z.string().describe(\"Full raw HTML when include_html=true\").nullable().optional(),\n offers: z.array(ScrapeDoGetAmazonOffers_OfferItemSchema).describe(\"List of all seller offers for the product\").nullable().optional(),\n status: z.string().describe(\"Request status (success or error)\").nullable().optional(),\n errorMessage: z.string().describe(\"Error message if request failed\").nullable().optional(),\n}).describe(\"Response model for Amazon product offers.\");\n\nexport const scrapeDoGetAmazonOffers = action(\"SCRAPE_DO_GET_AMAZON_OFFERS\", {\n slug: \"scrape_do-get-amazon-offers\",\n name: \"Get Amazon Product Offers\",\n description: \"Get all seller offers for any Amazon product. Retrieves every seller listing including pricing, shipping costs, seller information, and Buy Box status in structured JSON format. Use when you need to compare prices across multiple sellers or find the best deal for a specific product.\",\n input: ScrapeDoGetAmazonOffersInput,\n output: ScrapeDoGetAmazonOffersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC3F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACzG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC1F,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC3H,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,6CAA6CA,IAAAA,EAAE,OAAO,EAC1D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7E,CAAC,CAAC,CAAC,SAAS,mBAAmB;
|
|
1
|
+
{"version":3,"file":"get-amazon-offers.cjs","names":["z","action"],"sources":["../../src/actions/get-amazon-offers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoGetAmazonOffersInput = z.object({\n asin: z.string().describe(\"Amazon Standard Identification Number (10-character product ID)\"),\n geocode: z.string().describe(\"Country code for Amazon marketplace (e.g., us, gb, de, jp, fr, es, it, ca)\"),\n zipcode: z.string().describe(\"Postal/ZIP code formatted according to country requirements\"),\n super_mode: z.boolean().describe(\"Enable residential/mobile proxies for higher success rates. Costs 10x credits\").optional(),\n include_html: z.boolean().describe(\"When true, includes the full raw HTML alongside structured JSON\").optional(),\n}).describe(\"Request model for retrieving Amazon product offers.\");\nconst ScrapeDoGetAmazonOffers_DiscountInfoSchema = z.object({\n percentage: z.number().describe(\"Discount percentage\").nullable().optional(),\n}).passthrough().describe(\"Discount details.\");\nconst ScrapeDoGetAmazonOffers_ShippingInfoSchema = z.object({\n amount: z.number().describe(\"Shipping cost amount\").nullable().optional(),\n currencyCode: z.string().describe(\"Currency code (e.g., USD)\").nullable().optional(),\n}).passthrough().describe(\"Shipping cost information.\");\nconst ScrapeDoGetAmazonOffers_PriceInfoSchema = z.object({\n amount: z.number().describe(\"Price amount in the currency\").nullable().optional(),\n currencyCode: z.string().describe(\"Currency code (e.g., USD)\").nullable().optional(),\n}).passthrough().describe(\"Price information structure.\");\nconst ScrapeDoGetAmazonOffers_ShippingTimeSchema = z.object({\n displayString: z.string().describe(\"Human-readable shipping time (e.g., 'Ships in 2-3 business days')\").nullable().optional(),\n}).passthrough().describe(\"Shipping time details.\");\nconst ScrapeDoGetAmazonOffers_PrimeInformationSchema = z.object({\n isPrime: z.boolean().describe(\"Whether Prime shipping available\").nullable().optional(),\n}).passthrough().describe(\"Prime eligibility details.\");\nconst ScrapeDoGetAmazonOffers_OfferItemSchema = z.object({\n discount: ScrapeDoGetAmazonOffers_DiscountInfoSchema.nullable().optional(),\n quantity: z.number().int().describe(\"Available stock quantity\").nullable().optional(),\n sellerId: z.string().describe(\"Unique seller identifier\").nullable().optional(),\n shipping: ScrapeDoGetAmazonOffers_ShippingInfoSchema.nullable().optional(),\n condition: z.string().describe(\"Product condition (New, Used, Refurbished)\").nullable().optional(),\n listPrice: ScrapeDoGetAmazonOffers_PriceInfoSchema.nullable().optional(),\n shipsFrom: z.string().describe(\"Shipping origin location\").nullable().optional(),\n offerHeader: z.string().describe(\"Offer header text\").nullable().optional(),\n listingPrice: ScrapeDoGetAmazonOffers_PriceInfoSchema.nullable().optional(),\n merchantName: z.string().describe(\"Seller display name\").nullable().optional(),\n shippingTime: ScrapeDoGetAmazonOffers_ShippingTimeSchema.nullable().optional(),\n isBuyBoxWinner: z.boolean().describe(\"Whether this offer holds the Buy Box\").nullable().optional(),\n primeInformation: ScrapeDoGetAmazonOffers_PrimeInformationSchema.nullable().optional(),\n isFulfilledByAmazon: z.boolean().describe(\"Whether fulfilled by Amazon (FBA)\").nullable().optional(),\n}).passthrough().describe(\"Individual seller offer details.\");\nexport const ScrapeDoGetAmazonOffersOutput = z.object({\n asin: z.string().describe(\"Product ASIN number\").nullable().optional(),\n html: z.string().describe(\"Full raw HTML when include_html=true\").nullable().optional(),\n offers: z.array(ScrapeDoGetAmazonOffers_OfferItemSchema).describe(\"List of all seller offers for the product\").nullable().optional(),\n status: z.string().describe(\"Request status (success or error)\").nullable().optional(),\n errorMessage: z.string().describe(\"Error message if request failed\").nullable().optional(),\n}).passthrough().describe(\"Response model for Amazon product offers.\");\n\nexport const scrapeDoGetAmazonOffers = action(\"SCRAPE_DO_GET_AMAZON_OFFERS\", {\n slug: \"scrape_do-get-amazon-offers\",\n name: \"Get Amazon Product Offers\",\n description: \"Get all seller offers for any Amazon product. Retrieves every seller listing including pricing, shipping costs, seller information, and Buy Box status in structured JSON format. Use when you need to compare prices across multiple sellers or find the best deal for a specific product.\",\n input: ScrapeDoGetAmazonOffersInput,\n output: ScrapeDoGetAmazonOffersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC3F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACzG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC1F,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC3H,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAA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