@keystrokehq/scrape_do 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/cancel-async-job.cjs +1 -0
- package/dist/actions/cancel-async-job.cjs.map +1 -1
- package/dist/actions/cancel-async-job.d.cts +3 -4
- package/dist/actions/cancel-async-job.d.cts.map +1 -1
- package/dist/actions/cancel-async-job.d.mts +3 -4
- package/dist/actions/cancel-async-job.d.mts.map +1 -1
- package/dist/actions/cancel-async-job.mjs +1 -0
- package/dist/actions/cancel-async-job.mjs.map +1 -1
- package/dist/actions/create-async-job.cjs +1 -0
- package/dist/actions/create-async-job.cjs.map +1 -1
- package/dist/actions/create-async-job.d.cts +3 -32
- package/dist/actions/create-async-job.d.cts.map +1 -1
- package/dist/actions/create-async-job.d.mts +3 -32
- package/dist/actions/create-async-job.d.mts.map +1 -1
- package/dist/actions/create-async-job.mjs +1 -0
- package/dist/actions/create-async-job.mjs.map +1 -1
- package/dist/actions/get-account-info.cjs +1 -0
- package/dist/actions/get-account-info.cjs.map +1 -1
- package/dist/actions/get-account-info.d.cts +3 -3
- package/dist/actions/get-account-info.d.cts.map +1 -1
- package/dist/actions/get-account-info.d.mts +3 -3
- package/dist/actions/get-account-info.d.mts.map +1 -1
- package/dist/actions/get-account-info.mjs +1 -0
- package/dist/actions/get-account-info.mjs.map +1 -1
- package/dist/actions/get-amazon-offers.cjs +1 -0
- package/dist/actions/get-amazon-offers.cjs.map +1 -1
- package/dist/actions/get-amazon-offers.d.cts +3 -7
- package/dist/actions/get-amazon-offers.d.cts.map +1 -1
- package/dist/actions/get-amazon-offers.d.mts +3 -7
- package/dist/actions/get-amazon-offers.d.mts.map +1 -1
- package/dist/actions/get-amazon-offers.mjs +1 -0
- package/dist/actions/get-amazon-offers.mjs.map +1 -1
- package/dist/actions/get-amazon-product.cjs +1 -0
- package/dist/actions/get-amazon-product.cjs.map +1 -1
- package/dist/actions/get-amazon-product.d.cts +3 -8
- package/dist/actions/get-amazon-product.d.cts.map +1 -1
- package/dist/actions/get-amazon-product.d.mts +3 -8
- package/dist/actions/get-amazon-product.d.mts.map +1 -1
- package/dist/actions/get-amazon-product.mjs +1 -0
- package/dist/actions/get-amazon-product.mjs.map +1 -1
- package/dist/actions/get-amazon-raw-html.cjs +1 -0
- package/dist/actions/get-amazon-raw-html.cjs.map +1 -1
- package/dist/actions/get-amazon-raw-html.d.cts +3 -9
- package/dist/actions/get-amazon-raw-html.d.cts.map +1 -1
- package/dist/actions/get-amazon-raw-html.d.mts +3 -9
- package/dist/actions/get-amazon-raw-html.d.mts.map +1 -1
- package/dist/actions/get-amazon-raw-html.mjs +1 -0
- package/dist/actions/get-amazon-raw-html.mjs.map +1 -1
- package/dist/actions/get-async-account-info.cjs +1 -0
- package/dist/actions/get-async-account-info.cjs.map +1 -1
- package/dist/actions/get-async-account-info.d.cts +3 -1
- package/dist/actions/get-async-account-info.d.cts.map +1 -1
- package/dist/actions/get-async-account-info.d.mts +3 -1
- package/dist/actions/get-async-account-info.d.mts.map +1 -1
- package/dist/actions/get-async-account-info.mjs +1 -0
- package/dist/actions/get-async-account-info.mjs.map +1 -1
- package/dist/actions/get-async-job.cjs +1 -0
- package/dist/actions/get-async-job.cjs.map +1 -1
- package/dist/actions/get-async-job.d.cts +3 -3
- package/dist/actions/get-async-job.d.cts.map +1 -1
- package/dist/actions/get-async-job.d.mts +3 -3
- package/dist/actions/get-async-job.d.mts.map +1 -1
- package/dist/actions/get-async-job.mjs +1 -0
- package/dist/actions/get-async-job.mjs.map +1 -1
- package/dist/actions/get-async-task.cjs +1 -0
- package/dist/actions/get-async-task.cjs.map +1 -1
- package/dist/actions/get-async-task.d.cts +3 -5
- package/dist/actions/get-async-task.d.cts.map +1 -1
- package/dist/actions/get-async-task.d.mts +3 -5
- package/dist/actions/get-async-task.d.mts.map +1 -1
- package/dist/actions/get-async-task.mjs +1 -0
- package/dist/actions/get-async-task.mjs.map +1 -1
- package/dist/actions/get-page.cjs +1 -0
- package/dist/actions/get-page.cjs.map +1 -1
- package/dist/actions/get-page.d.cts +3 -18
- package/dist/actions/get-page.d.cts.map +1 -1
- package/dist/actions/get-page.d.mts +3 -18
- package/dist/actions/get-page.d.mts.map +1 -1
- package/dist/actions/get-page.mjs +1 -0
- package/dist/actions/get-page.mjs.map +1 -1
- package/dist/actions/list-async-jobs.cjs +1 -0
- package/dist/actions/list-async-jobs.cjs.map +1 -1
- package/dist/actions/list-async-jobs.d.cts +3 -4
- package/dist/actions/list-async-jobs.d.cts.map +1 -1
- package/dist/actions/list-async-jobs.d.mts +3 -4
- package/dist/actions/list-async-jobs.d.mts.map +1 -1
- package/dist/actions/list-async-jobs.mjs +1 -0
- package/dist/actions/list-async-jobs.mjs.map +1 -1
- package/dist/actions/proxy-mode.cjs +1 -0
- package/dist/actions/proxy-mode.cjs.map +1 -1
- package/dist/actions/proxy-mode.d.cts +3 -7
- package/dist/actions/proxy-mode.d.cts.map +1 -1
- package/dist/actions/proxy-mode.d.mts +3 -7
- package/dist/actions/proxy-mode.d.mts.map +1 -1
- package/dist/actions/proxy-mode.mjs +1 -0
- package/dist/actions/proxy-mode.mjs.map +1 -1
- package/dist/actions/scrape-url-post.cjs +1 -0
- package/dist/actions/scrape-url-post.cjs.map +1 -1
- package/dist/actions/scrape-url-post.d.cts +3 -12
- package/dist/actions/scrape-url-post.d.cts.map +1 -1
- package/dist/actions/scrape-url-post.d.mts +3 -12
- package/dist/actions/scrape-url-post.d.mts.map +1 -1
- package/dist/actions/scrape-url-post.mjs +1 -0
- package/dist/actions/scrape-url-post.mjs.map +1 -1
- package/dist/actions/search-amazon.cjs +1 -0
- package/dist/actions/search-amazon.cjs.map +1 -1
- package/dist/actions/search-amazon.d.cts +3 -9
- package/dist/actions/search-amazon.d.cts.map +1 -1
- package/dist/actions/search-amazon.d.mts +3 -9
- package/dist/actions/search-amazon.d.mts.map +1 -1
- package/dist/actions/search-amazon.mjs +1 -0
- package/dist/actions/search-amazon.mjs.map +1 -1
- package/dist/actions/set-block-urls.cjs +1 -0
- package/dist/actions/set-block-urls.cjs.map +1 -1
- package/dist/actions/set-block-urls.d.cts +3 -3
- package/dist/actions/set-block-urls.d.cts.map +1 -1
- package/dist/actions/set-block-urls.d.mts +3 -3
- package/dist/actions/set-block-urls.d.mts.map +1 -1
- package/dist/actions/set-block-urls.mjs +1 -0
- package/dist/actions/set-block-urls.mjs.map +1 -1
- package/dist/actions/set-regional-geo-code.cjs +1 -0
- package/dist/actions/set-regional-geo-code.cjs.map +1 -1
- package/dist/actions/set-regional-geo-code.d.cts +3 -4
- package/dist/actions/set-regional-geo-code.d.cts.map +1 -1
- package/dist/actions/set-regional-geo-code.d.mts +3 -4
- package/dist/actions/set-regional-geo-code.d.mts.map +1 -1
- package/dist/actions/set-regional-geo-code.mjs +1 -0
- 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 +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-block-urls.cjs","names":["z","action"],"sources":["../../src/actions/set-block-urls.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoSetBlockUrlsInput = z.object({\n urls: z.array(z.string()).describe(\"List of URL patterns to block during scraping. Can be full URLs or patterns.\"),\n}).describe(\"Request model for SetBlockUrls action.\");\nexport const ScrapeDoSetBlockUrlsOutput = z.object({\n message: z.string().default(\"\").describe(\"Success message confirming URLs have been blocked.\").nullable().optional(),\n blocked_urls: z.array(z.string()).default([]).describe(\"List of URLs that were successfully blocked.\").nullable().optional(),\n}).passthrough().describe(\"Response model for SetBlockUrls action.\");\n\nexport const scrapeDoSetBlockUrls = action(\"SCRAPE_DO_SET_BLOCK_URLS\", {\n slug: \"scrape_do-set-block-urls\",\n name: \"Block specific URLs during scraping\",\n description: \"This tool allows users to block specific URLs during the scraping process. It's particularly useful for blocking unwanted resources like analytics scripts, advertisements, or any other URLs that might interfere with the scraping process or slow it down. It provides granular control by allowing users to specify URL patterns to block, thereby improving scraping performance and maintaining privacy.\",\n input: ScrapeDoSetBlockUrlsInput,\n output: ScrapeDoSetBlockUrlsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-block-urls.cjs","names":["z","action"],"sources":["../../src/actions/set-block-urls.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { scrapeDo } from \"../app\";\n\nexport const ScrapeDoSetBlockUrlsInput = z.object({\n urls: z.array(z.string()).describe(\"List of URL patterns to block during scraping. Can be full URLs or patterns.\"),\n}).describe(\"Request model for SetBlockUrls action.\");\nexport const ScrapeDoSetBlockUrlsOutput = z.object({\n message: z.string().default(\"\").describe(\"Success message confirming URLs have been blocked.\").nullable().optional(),\n blocked_urls: z.array(z.string()).default([]).describe(\"List of URLs that were successfully blocked.\").nullable().optional(),\n}).passthrough().describe(\"Response model for SetBlockUrls action.\");\n\nexport const scrapeDoSetBlockUrls: AppAction<\n typeof ScrapeDoSetBlockUrlsInput,\n typeof ScrapeDoSetBlockUrlsOutput,\n typeof scrapeDo.credential\n> = action(\"SCRAPE_DO_SET_BLOCK_URLS\", {\n slug: \"scrape_do-set-block-urls\",\n name: \"Block specific URLs during scraping\",\n description: \"This tool allows users to block specific URLs during the scraping process. It's particularly useful for blocking unwanted resources like analytics scripts, advertisements, or any other URLs that might interfere with the scraping process or slow it down. It provides granular control by allowing users to specify URL patterns to block, thereby improving scraping performance and maintaining privacy.\",\n input: ScrapeDoSetBlockUrlsInput,\n output: ScrapeDoSetBlockUrlsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8EAA8E,EACnH,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,uBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { scrapeDo } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/set-block-urls.d.ts
|
|
@@ -8,9 +10,7 @@ declare const ScrapeDoSetBlockUrlsOutput: z.ZodObject<{
|
|
|
8
10
|
message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
9
11
|
blocked_urls: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodArray<z.ZodString>>>>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const scrapeDoSetBlockUrls:
|
|
12
|
-
urls: string[];
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
13
|
+
declare const scrapeDoSetBlockUrls: AppAction<typeof ScrapeDoSetBlockUrlsInput, typeof ScrapeDoSetBlockUrlsOutput, typeof scrapeDo.credential>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { scrapeDoSetBlockUrls };
|
|
16
16
|
//# sourceMappingURL=set-block-urls.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-block-urls.d.cts","names":[],"sources":["../../src/actions/set-block-urls.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-block-urls.d.cts","names":[],"sources":["../../src/actions/set-block-urls.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAK1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { scrapeDo } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/set-block-urls.d.ts
|
|
@@ -8,9 +10,7 @@ declare const ScrapeDoSetBlockUrlsOutput: z.ZodObject<{
|
|
|
8
10
|
message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
9
11
|
blocked_urls: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodArray<z.ZodString>>>>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const scrapeDoSetBlockUrls:
|
|
12
|
-
urls: string[];
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
13
|
+
declare const scrapeDoSetBlockUrls: AppAction<typeof ScrapeDoSetBlockUrlsInput, typeof ScrapeDoSetBlockUrlsOutput, typeof scrapeDo.credential>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { scrapeDoSetBlockUrls };
|
|
16
16
|
//# sourceMappingURL=set-block-urls.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-block-urls.d.mts","names":[],"sources":["../../src/actions/set-block-urls.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-block-urls.d.mts","names":[],"sources":["../../src/actions/set-block-urls.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAK1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-block-urls.mjs","names":[],"sources":["../../src/actions/set-block-urls.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoSetBlockUrlsInput = z.object({\n urls: z.array(z.string()).describe(\"List of URL patterns to block during scraping. Can be full URLs or patterns.\"),\n}).describe(\"Request model for SetBlockUrls action.\");\nexport const ScrapeDoSetBlockUrlsOutput = z.object({\n message: z.string().default(\"\").describe(\"Success message confirming URLs have been blocked.\").nullable().optional(),\n blocked_urls: z.array(z.string()).default([]).describe(\"List of URLs that were successfully blocked.\").nullable().optional(),\n}).passthrough().describe(\"Response model for SetBlockUrls action.\");\n\nexport const scrapeDoSetBlockUrls = action(\"SCRAPE_DO_SET_BLOCK_URLS\", {\n slug: \"scrape_do-set-block-urls\",\n name: \"Block specific URLs during scraping\",\n description: \"This tool allows users to block specific URLs during the scraping process. It's particularly useful for blocking unwanted resources like analytics scripts, advertisements, or any other URLs that might interfere with the scraping process or slow it down. It provides granular control by allowing users to specify URL patterns to block, thereby improving scraping performance and maintaining privacy.\",\n input: ScrapeDoSetBlockUrlsInput,\n output: ScrapeDoSetBlockUrlsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-block-urls.mjs","names":[],"sources":["../../src/actions/set-block-urls.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { scrapeDo } from \"../app\";\n\nexport const ScrapeDoSetBlockUrlsInput = z.object({\n urls: z.array(z.string()).describe(\"List of URL patterns to block during scraping. Can be full URLs or patterns.\"),\n}).describe(\"Request model for SetBlockUrls action.\");\nexport const ScrapeDoSetBlockUrlsOutput = z.object({\n message: z.string().default(\"\").describe(\"Success message confirming URLs have been blocked.\").nullable().optional(),\n blocked_urls: z.array(z.string()).default([]).describe(\"List of URLs that were successfully blocked.\").nullable().optional(),\n}).passthrough().describe(\"Response model for SetBlockUrls action.\");\n\nexport const scrapeDoSetBlockUrls: AppAction<\n typeof ScrapeDoSetBlockUrlsInput,\n typeof ScrapeDoSetBlockUrlsOutput,\n typeof scrapeDo.credential\n> = action(\"SCRAPE_DO_SET_BLOCK_URLS\", {\n slug: \"scrape_do-set-block-urls\",\n name: \"Block specific URLs during scraping\",\n description: \"This tool allows users to block specific URLs during the scraping process. It's particularly useful for blocking unwanted resources like analytics scripts, advertisements, or any other URLs that might interfere with the scraping process or slow it down. It provides granular control by allowing users to specify URL patterns to block, thereby improving scraping performance and maintaining privacy.\",\n input: ScrapeDoSetBlockUrlsInput,\n output: ScrapeDoSetBlockUrlsOutput,\n});\n"],"mappings":";;;AAcA,MAAa,uBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBuC,EAAE,OAAO,EAChD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8EAA8E,EACnH,CAAC,CAAC,CAAC,SAAS,wCAcH;CACP,QAdwC,EAAE,OAAO;EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-regional-geo-code.cjs","names":["z","action"],"sources":["../../src/actions/set-regional-geo-code.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoSetRegionalGeoCodeInput = z.object({\n url: z.string().describe(\"The target URL to scrape with the specified regional geo code\"),\n regional_geo_code: z.enum([\"europe\", \"asia\", \"africa\", \"oceania\", \"northamerica\", \"southamerica\"]).describe(\"The region code to target for scraping requests\"),\n});\nexport const ScrapeDoSetRegionalGeoCodeOutput = z.object({\n status: z.string().describe(\"Status of the regional geolocation setting request\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).passthrough();\n\nexport const scrapeDoSetRegionalGeoCode = action(\"SCRAPE_DO_SET_REGIONAL_GEO_CODE\", {\n slug: \"scrape_do-set-regional-geo-code\",\n name: \"Set Regional Geolocation for Scraping\",\n description: \"This tool allows users to set a broader geographical targeting by specifying a region code instead of a specific country code. This is useful when you want to scrape content from an entire region rather than a specific country. Note that this feature requires super mode to be enabled and is only available for Business Plan or higher subscriptions.\",\n input: ScrapeDoSetRegionalGeoCodeInput,\n output: ScrapeDoSetRegionalGeoCodeOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-regional-geo-code.cjs","names":["z","action"],"sources":["../../src/actions/set-regional-geo-code.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { scrapeDo } from \"../app\";\n\nexport const ScrapeDoSetRegionalGeoCodeInput = z.object({\n url: z.string().describe(\"The target URL to scrape with the specified regional geo code\"),\n regional_geo_code: z.enum([\"europe\", \"asia\", \"africa\", \"oceania\", \"northamerica\", \"southamerica\"]).describe(\"The region code to target for scraping requests\"),\n});\nexport const ScrapeDoSetRegionalGeoCodeOutput = z.object({\n status: z.string().describe(\"Status of the regional geolocation setting request\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).passthrough();\n\nexport const scrapeDoSetRegionalGeoCode: AppAction<\n typeof ScrapeDoSetRegionalGeoCodeInput,\n typeof ScrapeDoSetRegionalGeoCodeOutput,\n typeof scrapeDo.credential\n> = action(\"SCRAPE_DO_SET_REGIONAL_GEO_CODE\", {\n slug: \"scrape_do-set-regional-geo-code\",\n name: \"Set Regional Geolocation for Scraping\",\n description: \"This tool allows users to set a broader geographical targeting by specifying a region code instead of a specific country code. This is useful when you want to scrape content from an entire region rather than a specific country. Note that this feature requires super mode to be enabled and is only available for Business Plan or higher subscriptions.\",\n input: ScrapeDoSetRegionalGeoCodeInput,\n output: ScrapeDoSetRegionalGeoCodeOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CACxF,mBAAmBA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAU;EAAW;EAAgB;CAAc,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC/J,CAAC;AACD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,6BAITC,eAAAA,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { scrapeDo } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/set-regional-geo-code.d.ts
|
|
@@ -16,10 +18,7 @@ declare const ScrapeDoSetRegionalGeoCodeOutput: z.ZodObject<{
|
|
|
16
18
|
status: z.ZodNullable<z.ZodString>;
|
|
17
19
|
message: z.ZodNullable<z.ZodString>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const scrapeDoSetRegionalGeoCode:
|
|
20
|
-
url: string;
|
|
21
|
-
regional_geo_code: "europe" | "asia" | "africa" | "oceania" | "northamerica" | "southamerica";
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
declare const scrapeDoSetRegionalGeoCode: AppAction<typeof ScrapeDoSetRegionalGeoCodeInput, typeof ScrapeDoSetRegionalGeoCodeOutput, typeof scrapeDo.credential>;
|
|
23
22
|
//#endregion
|
|
24
23
|
export { scrapeDoSetRegionalGeoCode };
|
|
25
24
|
//# sourceMappingURL=set-regional-geo-code.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-regional-geo-code.d.cts","names":[],"sources":["../../src/actions/set-regional-geo-code.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-regional-geo-code.d.cts","names":[],"sources":["../../src/actions/set-regional-geo-code.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;cAI/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { scrapeDo } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/set-regional-geo-code.d.ts
|
|
@@ -16,10 +18,7 @@ declare const ScrapeDoSetRegionalGeoCodeOutput: z.ZodObject<{
|
|
|
16
18
|
status: z.ZodNullable<z.ZodString>;
|
|
17
19
|
message: z.ZodNullable<z.ZodString>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const scrapeDoSetRegionalGeoCode:
|
|
20
|
-
url: string;
|
|
21
|
-
regional_geo_code: "europe" | "asia" | "africa" | "oceania" | "northamerica" | "southamerica";
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
declare const scrapeDoSetRegionalGeoCode: AppAction<typeof ScrapeDoSetRegionalGeoCodeInput, typeof ScrapeDoSetRegionalGeoCodeOutput, typeof scrapeDo.credential>;
|
|
23
22
|
//#endregion
|
|
24
23
|
export { scrapeDoSetRegionalGeoCode };
|
|
25
24
|
//# sourceMappingURL=set-regional-geo-code.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-regional-geo-code.d.mts","names":[],"sources":["../../src/actions/set-regional-geo-code.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-regional-geo-code.d.mts","names":[],"sources":["../../src/actions/set-regional-geo-code.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;cAI/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-regional-geo-code.mjs","names":[],"sources":["../../src/actions/set-regional-geo-code.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoSetRegionalGeoCodeInput = z.object({\n url: z.string().describe(\"The target URL to scrape with the specified regional geo code\"),\n regional_geo_code: z.enum([\"europe\", \"asia\", \"africa\", \"oceania\", \"northamerica\", \"southamerica\"]).describe(\"The region code to target for scraping requests\"),\n});\nexport const ScrapeDoSetRegionalGeoCodeOutput = z.object({\n status: z.string().describe(\"Status of the regional geolocation setting request\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).passthrough();\n\nexport const scrapeDoSetRegionalGeoCode = action(\"SCRAPE_DO_SET_REGIONAL_GEO_CODE\", {\n slug: \"scrape_do-set-regional-geo-code\",\n name: \"Set Regional Geolocation for Scraping\",\n description: \"This tool allows users to set a broader geographical targeting by specifying a region code instead of a specific country code. This is useful when you want to scrape content from an entire region rather than a specific country. Note that this feature requires super mode to be enabled and is only available for Business Plan or higher subscriptions.\",\n input: ScrapeDoSetRegionalGeoCodeInput,\n output: ScrapeDoSetRegionalGeoCodeOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-regional-geo-code.mjs","names":[],"sources":["../../src/actions/set-regional-geo-code.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { scrapeDo } from \"../app\";\n\nexport const ScrapeDoSetRegionalGeoCodeInput = z.object({\n url: z.string().describe(\"The target URL to scrape with the specified regional geo code\"),\n regional_geo_code: z.enum([\"europe\", \"asia\", \"africa\", \"oceania\", \"northamerica\", \"southamerica\"]).describe(\"The region code to target for scraping requests\"),\n});\nexport const ScrapeDoSetRegionalGeoCodeOutput = z.object({\n status: z.string().describe(\"Status of the regional geolocation setting request\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).passthrough();\n\nexport const scrapeDoSetRegionalGeoCode: AppAction<\n typeof ScrapeDoSetRegionalGeoCodeInput,\n typeof ScrapeDoSetRegionalGeoCodeOutput,\n typeof scrapeDo.credential\n> = action(\"SCRAPE_DO_SET_REGIONAL_GEO_CODE\", {\n slug: \"scrape_do-set-regional-geo-code\",\n name: \"Set Regional Geolocation for Scraping\",\n description: \"This tool allows users to set a broader geographical targeting by specifying a region code instead of a specific country code. This is useful when you want to scrape content from an entire region rather than a specific country. Note that this feature requires super mode to be enabled and is only available for Business Plan or higher subscriptions.\",\n input: ScrapeDoSetRegionalGeoCodeInput,\n output: ScrapeDoSetRegionalGeoCodeOutput,\n});\n"],"mappings":";;;AAeA,MAAa,6BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB6C,EAAE,OAAO;EACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;EACxF,mBAAmB,EAAE,KAAK;GAAC;GAAU;GAAQ;GAAU;GAAW;GAAgB;EAAc,CAAC,CAAC,CAAC,SAAS,iDAAiD;CAC/J,CAcS;CACP,QAd8C,EAAE,OAAO;EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
1
2
|
//#region src/app.ts
|
|
2
|
-
const
|
|
3
|
+
const credential = { generic_token: require("zod").z.string() };
|
|
4
|
+
const scrapeDo = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
3
5
|
slug: "scrape_do",
|
|
4
|
-
auth: "keystroke"
|
|
6
|
+
auth: "keystroke",
|
|
7
|
+
credential
|
|
5
8
|
});
|
|
6
9
|
//#endregion
|
|
7
10
|
exports.scrapeDo = scrapeDo;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const scrapeDo = defineApp({\n slug: \"scrape_do\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,YAAA,
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_token: z.string(),\n};\n\nexport const scrapeDo: KeystrokeApp<\"scrape_do\", typeof credential> = defineApp({\n slug: \"scrape_do\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,4BAAeA,CAAAA,CAAAA,EAAE,OAAO,EAC1B;AAEA,MAAa,YAAA,GAAA,2BAAA,UAAA,CAAmE;CAC9E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
generic_token: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
declare const scrapeDo: KeystrokeApp<"scrape_do", typeof credential>;
|
|
3
9
|
//#endregion
|
|
4
10
|
export { scrapeDo };
|
|
5
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;iBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,QAAA,EAAU,YAAY,qBAAqB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
generic_token: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
declare const scrapeDo: KeystrokeApp<"scrape_do", typeof credential>;
|
|
3
9
|
//#endregion
|
|
4
10
|
export { scrapeDo };
|
|
5
11
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;iBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,QAAA,EAAU,YAAY,qBAAqB,UAAA"}
|
package/dist/app.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineApp } from "@keystrokehq/keystroke/app";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
const scrapeDo = defineApp({
|
|
4
4
|
slug: "scrape_do",
|
|
5
|
-
auth: "keystroke"
|
|
5
|
+
auth: "keystroke",
|
|
6
|
+
credential: { generic_token: z.string() }
|
|
6
7
|
});
|
|
7
8
|
//#endregion
|
|
8
9
|
export { scrapeDo };
|
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const scrapeDo = defineApp({\n slug: \"scrape_do\",\n auth: \"keystroke\",\n});\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_token: z.string(),\n};\n\nexport const scrapeDo: KeystrokeApp<\"scrape_do\", typeof credential> = defineApp({\n slug: \"scrape_do\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,WAAyD,UAAU;CAC9E,MAAM;CACN,MAAM;CACN,cANA,eAAe,EAAE,OAAO,EAMxB;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { scrapeDo } from "./app.cjs";
|
|
1
2
|
import { scrapeDoCancelAsyncJob } from "./actions/cancel-async-job.cjs";
|
|
2
3
|
import { scrapeDoCreateAsyncJob } from "./actions/create-async-job.cjs";
|
|
3
4
|
import { scrapeDoGetAccountInfo } from "./actions/get-account-info.cjs";
|
|
@@ -14,6 +15,5 @@ import { scrapeDoScrapeUrlPost } from "./actions/scrape-url-post.cjs";
|
|
|
14
15
|
import { scrapeDoSearchAmazon } from "./actions/search-amazon.cjs";
|
|
15
16
|
import { scrapeDoSetBlockUrls } from "./actions/set-block-urls.cjs";
|
|
16
17
|
import { scrapeDoSetRegionalGeoCode } from "./actions/set-regional-geo-code.cjs";
|
|
17
|
-
import { scrapeDo } from "./app.cjs";
|
|
18
18
|
import { scrapeDoCatalog } from "./catalog.cjs";
|
|
19
19
|
export { scrapeDo, scrapeDoCancelAsyncJob, scrapeDoCatalog, scrapeDoCreateAsyncJob, scrapeDoGetAccountInfo, scrapeDoGetAmazonOffers, scrapeDoGetAmazonProduct, scrapeDoGetAmazonRawHtml, scrapeDoGetAsyncAccountInfo, scrapeDoGetAsyncJob, scrapeDoGetAsyncTask, scrapeDoGetPage, scrapeDoListAsyncJobs, scrapeDoProxyMode, scrapeDoScrapeUrlPost, scrapeDoSearchAmazon, scrapeDoSetBlockUrls, scrapeDoSetRegionalGeoCode };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { scrapeDo } from "./app.mjs";
|
|
1
2
|
import { scrapeDoCancelAsyncJob } from "./actions/cancel-async-job.mjs";
|
|
2
3
|
import { scrapeDoCreateAsyncJob } from "./actions/create-async-job.mjs";
|
|
3
4
|
import { scrapeDoGetAccountInfo } from "./actions/get-account-info.mjs";
|
|
@@ -14,6 +15,5 @@ import { scrapeDoScrapeUrlPost } from "./actions/scrape-url-post.mjs";
|
|
|
14
15
|
import { scrapeDoSearchAmazon } from "./actions/search-amazon.mjs";
|
|
15
16
|
import { scrapeDoSetBlockUrls } from "./actions/set-block-urls.mjs";
|
|
16
17
|
import { scrapeDoSetRegionalGeoCode } from "./actions/set-regional-geo-code.mjs";
|
|
17
|
-
import { scrapeDo } from "./app.mjs";
|
|
18
18
|
import { scrapeDoCatalog } from "./catalog.mjs";
|
|
19
19
|
export { scrapeDo, scrapeDoCancelAsyncJob, scrapeDoCatalog, scrapeDoCreateAsyncJob, scrapeDoGetAccountInfo, scrapeDoGetAmazonOffers, scrapeDoGetAmazonProduct, scrapeDoGetAmazonRawHtml, scrapeDoGetAsyncAccountInfo, scrapeDoGetAsyncJob, scrapeDoGetAsyncTask, scrapeDoGetPage, scrapeDoListAsyncJobs, scrapeDoProxyMode, scrapeDoScrapeUrlPost, scrapeDoSearchAmazon, scrapeDoSetBlockUrls, scrapeDoSetRegionalGeoCode };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/scrape_do",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|