@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":"get-amazon-product.cjs","names":["z","action"],"sources":["../../src/actions/get-amazon-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoGetAmazonProductInput = z.object({\n asin: z.string().describe(\"Amazon Standard Identification Number (10-character product ID)\"),\n geocode: z.string().describe(\"Country code (e.g., us, gb, de, jp, fr, ca)\"),\n zipcode: z.string().describe(\"Postal code formatted according to country requirements\"),\n language: z.string().describe(\"Language code in ISO 639-1 format (e.g., EN, DE, FR)\").optional(),\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 SCRAPE_DO_GET_AMAZON_PRODUCT action.\");\nconst ScrapeDoGetAmazonProduct_ProductImageSchema = z.object({\n url: z.string().describe(\"Image URL\").nullable().optional(),\n width: z.number().int().describe(\"Image width in pixels\").nullable().optional(),\n height: z.number().int().describe(\"Image height in pixels\").nullable().optional(),\n}).passthrough().describe(\"Product image information.\");\nconst ScrapeDoGetAmazonProduct_ShippingInfoSchema = z.object({\n message: z.string().describe(\"Shipping message\").nullable().optional(),\n delivery_date: z.string().describe(\"Expected delivery date\").nullable().optional(),\n}).passthrough().describe(\"Shipping information.\");\nconst ScrapeDoGetAmazonProduct_BuyingChoiceSchema = z.object({\n price: z.number().describe(\"Price for this buying choice\").nullable().optional(),\n seller: z.string().describe(\"Seller name\").nullable().optional(),\n condition: z.string().describe(\"Product condition (new, used, refurbished)\").nullable().optional(),\n}).passthrough().describe(\"Alternative buying choice information.\");\nconst ScrapeDoGetAmazonProduct_MoreBuyingChoicesSchema = z.object({\n choices: z.array(ScrapeDoGetAmazonProduct_BuyingChoiceSchema).describe(\"List of alternative buying options\").nullable().optional(),\n}).passthrough().describe(\"More buying choices structure.\");\nconst ScrapeDoGetAmazonProduct_BestSellerRankingSchema = z.object({\n url: z.string().describe(\"Category URL\").nullable().optional(),\n rank: z.number().int().describe(\"Rank in the category\").nullable().optional(),\n category: z.string().describe(\"Product category name\").nullable().optional(),\n}).passthrough().describe(\"Best seller ranking information.\");\nexport const ScrapeDoGetAmazonProductOutput = z.object({\n url: z.string().describe(\"Canonical product URL\").nullable().optional(),\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 name: z.string().describe(\"Full product title\").nullable().optional(),\n brand: z.string().describe(\"Brand name\").nullable().optional(),\n price: z.number().describe(\"Current selling price\").nullable().optional(),\n images: z.array(ScrapeDoGetAmazonProduct_ProductImageSchema).describe(\"All product images with URLs and dimensions\").nullable().optional(),\n rating: z.number().describe(\"Average star rating (0-5)\").nullable().optional(),\n status: z.string().describe(\"Request status (success or error)\").nullable().optional(),\n currency: z.string().describe(\"Currency code (USD, EUR, GBP)\").nullable().optional(),\n is_prime: z.boolean().describe(\"Whether Prime shipping is available\").nullable().optional(),\n thumbnail: z.string().describe(\"Primary product image URL\").nullable().optional(),\n list_price: z.number().describe(\"Original list price if discounted\").nullable().optional(),\n errorMessage: z.string().describe(\"Error message if request failed\").nullable().optional(),\n is_sponsored: z.boolean().describe(\"Whether the product is a sponsored listing\").nullable().optional(),\n shipping_info: z.union([z.array(ScrapeDoGetAmazonProduct_ShippingInfoSchema), z.array(z.string())]).nullable().optional(),\n total_ratings: z.number().int().describe(\"Total number of customer ratings\").nullable().optional(),\n currency_symbol: z.string().describe(\"Currency symbol ($, EUR, GBP)\").nullable().optional(),\n technical_details: z.record(z.string(), z.unknown()).describe(\"Key-value pairs of product specifications\").nullable().optional(),\n more_buying_choices: ScrapeDoGetAmazonProduct_MoreBuyingChoicesSchema.nullable().optional(),\n best_seller_rankings: z.array(ScrapeDoGetAmazonProduct_BestSellerRankingSchema).describe(\"Category rankings\").nullable().optional(),\n}).passthrough().describe(\"Response model for SCRAPE_DO_GET_AMAZON_PRODUCT action.\");\n\nexport const scrapeDoGetAmazonProduct = action(\"SCRAPE_DO_GET_AMAZON_PRODUCT\", {\n slug: \"scrape_do-get-amazon-product\",\n name: \"Get Amazon product details\",\n description: \"Extract structured product data from Amazon product detail pages (PDP). Returns comprehensive product information including title, pricing, ratings, images, best seller rankings, and technical specifications in JSON format.\",\n input: ScrapeDoGetAmazonProductInput,\n output: ScrapeDoGetAmazonProductOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-amazon-product.cjs","names":["z","action"],"sources":["../../src/actions/get-amazon-product.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 ScrapeDoGetAmazonProductInput = z.object({\n asin: z.string().describe(\"Amazon Standard Identification Number (10-character product ID)\"),\n geocode: z.string().describe(\"Country code (e.g., us, gb, de, jp, fr, ca)\"),\n zipcode: z.string().describe(\"Postal code formatted according to country requirements\"),\n language: z.string().describe(\"Language code in ISO 639-1 format (e.g., EN, DE, FR)\").optional(),\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 SCRAPE_DO_GET_AMAZON_PRODUCT action.\");\nconst ScrapeDoGetAmazonProduct_ProductImageSchema = z.object({\n url: z.string().describe(\"Image URL\").nullable().optional(),\n width: z.number().int().describe(\"Image width in pixels\").nullable().optional(),\n height: z.number().int().describe(\"Image height in pixels\").nullable().optional(),\n}).passthrough().describe(\"Product image information.\");\nconst ScrapeDoGetAmazonProduct_ShippingInfoSchema = z.object({\n message: z.string().describe(\"Shipping message\").nullable().optional(),\n delivery_date: z.string().describe(\"Expected delivery date\").nullable().optional(),\n}).passthrough().describe(\"Shipping information.\");\nconst ScrapeDoGetAmazonProduct_BuyingChoiceSchema = z.object({\n price: z.number().describe(\"Price for this buying choice\").nullable().optional(),\n seller: z.string().describe(\"Seller name\").nullable().optional(),\n condition: z.string().describe(\"Product condition (new, used, refurbished)\").nullable().optional(),\n}).passthrough().describe(\"Alternative buying choice information.\");\nconst ScrapeDoGetAmazonProduct_MoreBuyingChoicesSchema = z.object({\n choices: z.array(ScrapeDoGetAmazonProduct_BuyingChoiceSchema).describe(\"List of alternative buying options\").nullable().optional(),\n}).passthrough().describe(\"More buying choices structure.\");\nconst ScrapeDoGetAmazonProduct_BestSellerRankingSchema = z.object({\n url: z.string().describe(\"Category URL\").nullable().optional(),\n rank: z.number().int().describe(\"Rank in the category\").nullable().optional(),\n category: z.string().describe(\"Product category name\").nullable().optional(),\n}).passthrough().describe(\"Best seller ranking information.\");\nexport const ScrapeDoGetAmazonProductOutput = z.object({\n url: z.string().describe(\"Canonical product URL\").nullable().optional(),\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 name: z.string().describe(\"Full product title\").nullable().optional(),\n brand: z.string().describe(\"Brand name\").nullable().optional(),\n price: z.number().describe(\"Current selling price\").nullable().optional(),\n images: z.array(ScrapeDoGetAmazonProduct_ProductImageSchema).describe(\"All product images with URLs and dimensions\").nullable().optional(),\n rating: z.number().describe(\"Average star rating (0-5)\").nullable().optional(),\n status: z.string().describe(\"Request status (success or error)\").nullable().optional(),\n currency: z.string().describe(\"Currency code (USD, EUR, GBP)\").nullable().optional(),\n is_prime: z.boolean().describe(\"Whether Prime shipping is available\").nullable().optional(),\n thumbnail: z.string().describe(\"Primary product image URL\").nullable().optional(),\n list_price: z.number().describe(\"Original list price if discounted\").nullable().optional(),\n errorMessage: z.string().describe(\"Error message if request failed\").nullable().optional(),\n is_sponsored: z.boolean().describe(\"Whether the product is a sponsored listing\").nullable().optional(),\n shipping_info: z.union([z.array(ScrapeDoGetAmazonProduct_ShippingInfoSchema), z.array(z.string())]).nullable().optional(),\n total_ratings: z.number().int().describe(\"Total number of customer ratings\").nullable().optional(),\n currency_symbol: z.string().describe(\"Currency symbol ($, EUR, GBP)\").nullable().optional(),\n technical_details: z.record(z.string(), z.unknown()).describe(\"Key-value pairs of product specifications\").nullable().optional(),\n more_buying_choices: ScrapeDoGetAmazonProduct_MoreBuyingChoicesSchema.nullable().optional(),\n best_seller_rankings: z.array(ScrapeDoGetAmazonProduct_BestSellerRankingSchema).describe(\"Category rankings\").nullable().optional(),\n}).passthrough().describe(\"Response model for SCRAPE_DO_GET_AMAZON_PRODUCT action.\");\n\nexport const scrapeDoGetAmazonProduct: AppAction<\n typeof ScrapeDoGetAmazonProductInput,\n typeof ScrapeDoGetAmazonProductOutput,\n typeof scrapeDo.credential\n> = action(\"SCRAPE_DO_GET_AMAZON_PRODUCT\", {\n slug: \"scrape_do-get-amazon-product\",\n name: \"Get Amazon product details\",\n description: \"Extract structured product data from Amazon product detail pages (PDP). Returns comprehensive product information including title, pricing, ratings, images, best seller rankings, and technical specifications in JSON format.\",\n input: ScrapeDoGetAmazonProductInput,\n output: ScrapeDoGetAmazonProductOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC3F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC1E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC/F,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,wDAAwD;AACpE,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;AACtD,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;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
|
2
4
|
|
|
3
5
|
//#region src/actions/get-amazon-product.d.ts
|
|
@@ -49,14 +51,7 @@ declare const ScrapeDoGetAmazonProductOutput: z.ZodObject<{
|
|
|
49
51
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
52
|
}, z.core.$loose>>>>;
|
|
51
53
|
}, z.core.$loose>;
|
|
52
|
-
declare const scrapeDoGetAmazonProduct:
|
|
53
|
-
asin: string;
|
|
54
|
-
geocode: string;
|
|
55
|
-
zipcode: string;
|
|
56
|
-
language?: string | undefined;
|
|
57
|
-
super_mode?: boolean | undefined;
|
|
58
|
-
include_html?: boolean | undefined;
|
|
59
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
54
|
+
declare const scrapeDoGetAmazonProduct: AppAction<typeof ScrapeDoGetAmazonProductInput, typeof ScrapeDoGetAmazonProductOutput, typeof scrapeDo.credential>;
|
|
60
55
|
//#endregion
|
|
61
56
|
export { scrapeDoGetAmazonProduct };
|
|
62
57
|
//# sourceMappingURL=get-amazon-product.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-amazon-product.d.cts","names":[],"sources":["../../src/actions/get-amazon-product.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-amazon-product.d.cts","names":[],"sources":["../../src/actions/get-amazon-product.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;cA8B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwB9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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/get-amazon-product.d.ts
|
|
@@ -49,14 +51,7 @@ declare const ScrapeDoGetAmazonProductOutput: z.ZodObject<{
|
|
|
49
51
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
52
|
}, z.core.$loose>>>>;
|
|
51
53
|
}, z.core.$loose>;
|
|
52
|
-
declare const scrapeDoGetAmazonProduct:
|
|
53
|
-
asin: string;
|
|
54
|
-
geocode: string;
|
|
55
|
-
zipcode: string;
|
|
56
|
-
language?: string | undefined;
|
|
57
|
-
super_mode?: boolean | undefined;
|
|
58
|
-
include_html?: boolean | undefined;
|
|
59
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
54
|
+
declare const scrapeDoGetAmazonProduct: AppAction<typeof ScrapeDoGetAmazonProductInput, typeof ScrapeDoGetAmazonProductOutput, typeof scrapeDo.credential>;
|
|
60
55
|
//#endregion
|
|
61
56
|
export { scrapeDoGetAmazonProduct };
|
|
62
57
|
//# sourceMappingURL=get-amazon-product.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-amazon-product.d.mts","names":[],"sources":["../../src/actions/get-amazon-product.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-amazon-product.d.mts","names":[],"sources":["../../src/actions/get-amazon-product.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;cA8B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwB9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-amazon-product.mjs","names":[],"sources":["../../src/actions/get-amazon-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoGetAmazonProductInput = z.object({\n asin: z.string().describe(\"Amazon Standard Identification Number (10-character product ID)\"),\n geocode: z.string().describe(\"Country code (e.g., us, gb, de, jp, fr, ca)\"),\n zipcode: z.string().describe(\"Postal code formatted according to country requirements\"),\n language: z.string().describe(\"Language code in ISO 639-1 format (e.g., EN, DE, FR)\").optional(),\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 SCRAPE_DO_GET_AMAZON_PRODUCT action.\");\nconst ScrapeDoGetAmazonProduct_ProductImageSchema = z.object({\n url: z.string().describe(\"Image URL\").nullable().optional(),\n width: z.number().int().describe(\"Image width in pixels\").nullable().optional(),\n height: z.number().int().describe(\"Image height in pixels\").nullable().optional(),\n}).passthrough().describe(\"Product image information.\");\nconst ScrapeDoGetAmazonProduct_ShippingInfoSchema = z.object({\n message: z.string().describe(\"Shipping message\").nullable().optional(),\n delivery_date: z.string().describe(\"Expected delivery date\").nullable().optional(),\n}).passthrough().describe(\"Shipping information.\");\nconst ScrapeDoGetAmazonProduct_BuyingChoiceSchema = z.object({\n price: z.number().describe(\"Price for this buying choice\").nullable().optional(),\n seller: z.string().describe(\"Seller name\").nullable().optional(),\n condition: z.string().describe(\"Product condition (new, used, refurbished)\").nullable().optional(),\n}).passthrough().describe(\"Alternative buying choice information.\");\nconst ScrapeDoGetAmazonProduct_MoreBuyingChoicesSchema = z.object({\n choices: z.array(ScrapeDoGetAmazonProduct_BuyingChoiceSchema).describe(\"List of alternative buying options\").nullable().optional(),\n}).passthrough().describe(\"More buying choices structure.\");\nconst ScrapeDoGetAmazonProduct_BestSellerRankingSchema = z.object({\n url: z.string().describe(\"Category URL\").nullable().optional(),\n rank: z.number().int().describe(\"Rank in the category\").nullable().optional(),\n category: z.string().describe(\"Product category name\").nullable().optional(),\n}).passthrough().describe(\"Best seller ranking information.\");\nexport const ScrapeDoGetAmazonProductOutput = z.object({\n url: z.string().describe(\"Canonical product URL\").nullable().optional(),\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 name: z.string().describe(\"Full product title\").nullable().optional(),\n brand: z.string().describe(\"Brand name\").nullable().optional(),\n price: z.number().describe(\"Current selling price\").nullable().optional(),\n images: z.array(ScrapeDoGetAmazonProduct_ProductImageSchema).describe(\"All product images with URLs and dimensions\").nullable().optional(),\n rating: z.number().describe(\"Average star rating (0-5)\").nullable().optional(),\n status: z.string().describe(\"Request status (success or error)\").nullable().optional(),\n currency: z.string().describe(\"Currency code (USD, EUR, GBP)\").nullable().optional(),\n is_prime: z.boolean().describe(\"Whether Prime shipping is available\").nullable().optional(),\n thumbnail: z.string().describe(\"Primary product image URL\").nullable().optional(),\n list_price: z.number().describe(\"Original list price if discounted\").nullable().optional(),\n errorMessage: z.string().describe(\"Error message if request failed\").nullable().optional(),\n is_sponsored: z.boolean().describe(\"Whether the product is a sponsored listing\").nullable().optional(),\n shipping_info: z.union([z.array(ScrapeDoGetAmazonProduct_ShippingInfoSchema), z.array(z.string())]).nullable().optional(),\n total_ratings: z.number().int().describe(\"Total number of customer ratings\").nullable().optional(),\n currency_symbol: z.string().describe(\"Currency symbol ($, EUR, GBP)\").nullable().optional(),\n technical_details: z.record(z.string(), z.unknown()).describe(\"Key-value pairs of product specifications\").nullable().optional(),\n more_buying_choices: ScrapeDoGetAmazonProduct_MoreBuyingChoicesSchema.nullable().optional(),\n best_seller_rankings: z.array(ScrapeDoGetAmazonProduct_BestSellerRankingSchema).describe(\"Category rankings\").nullable().optional(),\n}).passthrough().describe(\"Response model for SCRAPE_DO_GET_AMAZON_PRODUCT action.\");\n\nexport const scrapeDoGetAmazonProduct = action(\"SCRAPE_DO_GET_AMAZON_PRODUCT\", {\n slug: \"scrape_do-get-amazon-product\",\n name: \"Get Amazon product details\",\n description: \"Extract structured product data from Amazon product detail pages (PDP). Returns comprehensive product information including title, pricing, ratings, images, best seller rankings, and technical specifications in JSON format.\",\n input: ScrapeDoGetAmazonProductInput,\n output: ScrapeDoGetAmazonProductOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-amazon-product.mjs","names":[],"sources":["../../src/actions/get-amazon-product.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 ScrapeDoGetAmazonProductInput = z.object({\n asin: z.string().describe(\"Amazon Standard Identification Number (10-character product ID)\"),\n geocode: z.string().describe(\"Country code (e.g., us, gb, de, jp, fr, ca)\"),\n zipcode: z.string().describe(\"Postal code formatted according to country requirements\"),\n language: z.string().describe(\"Language code in ISO 639-1 format (e.g., EN, DE, FR)\").optional(),\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 SCRAPE_DO_GET_AMAZON_PRODUCT action.\");\nconst ScrapeDoGetAmazonProduct_ProductImageSchema = z.object({\n url: z.string().describe(\"Image URL\").nullable().optional(),\n width: z.number().int().describe(\"Image width in pixels\").nullable().optional(),\n height: z.number().int().describe(\"Image height in pixels\").nullable().optional(),\n}).passthrough().describe(\"Product image information.\");\nconst ScrapeDoGetAmazonProduct_ShippingInfoSchema = z.object({\n message: z.string().describe(\"Shipping message\").nullable().optional(),\n delivery_date: z.string().describe(\"Expected delivery date\").nullable().optional(),\n}).passthrough().describe(\"Shipping information.\");\nconst ScrapeDoGetAmazonProduct_BuyingChoiceSchema = z.object({\n price: z.number().describe(\"Price for this buying choice\").nullable().optional(),\n seller: z.string().describe(\"Seller name\").nullable().optional(),\n condition: z.string().describe(\"Product condition (new, used, refurbished)\").nullable().optional(),\n}).passthrough().describe(\"Alternative buying choice information.\");\nconst ScrapeDoGetAmazonProduct_MoreBuyingChoicesSchema = z.object({\n choices: z.array(ScrapeDoGetAmazonProduct_BuyingChoiceSchema).describe(\"List of alternative buying options\").nullable().optional(),\n}).passthrough().describe(\"More buying choices structure.\");\nconst ScrapeDoGetAmazonProduct_BestSellerRankingSchema = z.object({\n url: z.string().describe(\"Category URL\").nullable().optional(),\n rank: z.number().int().describe(\"Rank in the category\").nullable().optional(),\n category: z.string().describe(\"Product category name\").nullable().optional(),\n}).passthrough().describe(\"Best seller ranking information.\");\nexport const ScrapeDoGetAmazonProductOutput = z.object({\n url: z.string().describe(\"Canonical product URL\").nullable().optional(),\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 name: z.string().describe(\"Full product title\").nullable().optional(),\n brand: z.string().describe(\"Brand name\").nullable().optional(),\n price: z.number().describe(\"Current selling price\").nullable().optional(),\n images: z.array(ScrapeDoGetAmazonProduct_ProductImageSchema).describe(\"All product images with URLs and dimensions\").nullable().optional(),\n rating: z.number().describe(\"Average star rating (0-5)\").nullable().optional(),\n status: z.string().describe(\"Request status (success or error)\").nullable().optional(),\n currency: z.string().describe(\"Currency code (USD, EUR, GBP)\").nullable().optional(),\n is_prime: z.boolean().describe(\"Whether Prime shipping is available\").nullable().optional(),\n thumbnail: z.string().describe(\"Primary product image URL\").nullable().optional(),\n list_price: z.number().describe(\"Original list price if discounted\").nullable().optional(),\n errorMessage: z.string().describe(\"Error message if request failed\").nullable().optional(),\n is_sponsored: z.boolean().describe(\"Whether the product is a sponsored listing\").nullable().optional(),\n shipping_info: z.union([z.array(ScrapeDoGetAmazonProduct_ShippingInfoSchema), z.array(z.string())]).nullable().optional(),\n total_ratings: z.number().int().describe(\"Total number of customer ratings\").nullable().optional(),\n currency_symbol: z.string().describe(\"Currency symbol ($, EUR, GBP)\").nullable().optional(),\n technical_details: z.record(z.string(), z.unknown()).describe(\"Key-value pairs of product specifications\").nullable().optional(),\n more_buying_choices: ScrapeDoGetAmazonProduct_MoreBuyingChoicesSchema.nullable().optional(),\n best_seller_rankings: z.array(ScrapeDoGetAmazonProduct_BestSellerRankingSchema).describe(\"Category rankings\").nullable().optional(),\n}).passthrough().describe(\"Response model for SCRAPE_DO_GET_AMAZON_PRODUCT action.\");\n\nexport const scrapeDoGetAmazonProduct: AppAction<\n typeof ScrapeDoGetAmazonProductInput,\n typeof ScrapeDoGetAmazonProductOutput,\n typeof scrapeDo.credential\n> = action(\"SCRAPE_DO_GET_AMAZON_PRODUCT\", {\n slug: \"scrape_do-get-amazon-product\",\n name: \"Get Amazon product details\",\n description: \"Extract structured product data from Amazon product detail pages (PDP). Returns comprehensive product information including title, pricing, ratings, images, best seller rankings, and technical specifications in JSON format.\",\n input: ScrapeDoGetAmazonProductInput,\n output: ScrapeDoGetAmazonProductOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC3F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC1E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACtF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC/F,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC3H,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,8CAA8C,EAAE,OAAO;CAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,QAAQ,EA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AAC,SAAS;EAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,eAAe,EAAE,MAAM,CAAC,EAAE,MAAM,2CAA2C,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,qBAAqB,iDAAiD,SAAS,CAAC,CAAC,SAAS;EAC1F,sBAAsB,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-amazon-raw-html.cjs","names":["z","action"],"sources":["../../src/actions/get-amazon-raw-html.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoGetAmazonRawHtmlInput = z.object({\n url: z.string().describe(\"Full Amazon URL to scrape (e.g., https://www.amazon.com/dp/B08N5WRWNW)\"),\n \"super\": z.boolean().describe(\"Enable residential/mobile proxies for higher success rates. Costs 10x credits. Default is false.\").optional(),\n output: z.string().default(\"html\").describe(\"Output format - must be 'html' for raw HTML content\").optional(),\n geocode: z.string().describe(\"Country code for geo-targeting (e.g., us, gb, de, jp)\"),\n timeout: z.number().int().describe(\"Request timeout in milliseconds\").optional(),\n zipcode: z.string().describe(\"Postal code formatted according to country requirements (e.g., 10001 for US, SW1A 1AA for UK)\"),\n language: z.string().describe(\"Language code in ISO 639-1 format (e.g., EN, DE, FR, ES)\").optional(),\n}).describe(\"Request model for SCRAPE_DO_GET_AMAZON_RAW_HTML action.\");\nexport const ScrapeDoGetAmazonRawHtmlOutput = z.object({\n html: z.string().describe(\"Raw HTML content of the Amazon page\").nullable(),\n}).passthrough().describe(\"Response model for SCRAPE_DO_GET_AMAZON_RAW_HTML action.\");\n\nexport const scrapeDoGetAmazonRawHtml = action(\"SCRAPE_DO_GET_AMAZON_RAW_HTML\", {\n slug: \"scrape_do-get-amazon-raw-html\",\n name: \"Get Amazon raw HTML\",\n description: \"Tool to get raw HTML from any Amazon page with ZIP code geo-targeting. Use when you need complete unprocessed HTML source from Amazon URLs with location-based targeting. Ideal for scraping pages not covered by other structured endpoints.\",\n input: ScrapeDoGetAmazonRawHtmlInput,\n output: ScrapeDoGetAmazonRawHtmlOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-amazon-raw-html.cjs","names":["z","action"],"sources":["../../src/actions/get-amazon-raw-html.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 ScrapeDoGetAmazonRawHtmlInput = z.object({\n url: z.string().describe(\"Full Amazon URL to scrape (e.g., https://www.amazon.com/dp/B08N5WRWNW)\"),\n \"super\": z.boolean().describe(\"Enable residential/mobile proxies for higher success rates. Costs 10x credits. Default is false.\").optional(),\n output: z.string().default(\"html\").describe(\"Output format - must be 'html' for raw HTML content\").optional(),\n geocode: z.string().describe(\"Country code for geo-targeting (e.g., us, gb, de, jp)\"),\n timeout: z.number().int().describe(\"Request timeout in milliseconds\").optional(),\n zipcode: z.string().describe(\"Postal code formatted according to country requirements (e.g., 10001 for US, SW1A 1AA for UK)\"),\n language: z.string().describe(\"Language code in ISO 639-1 format (e.g., EN, DE, FR, ES)\").optional(),\n}).describe(\"Request model for SCRAPE_DO_GET_AMAZON_RAW_HTML action.\");\nexport const ScrapeDoGetAmazonRawHtmlOutput = z.object({\n html: z.string().describe(\"Raw HTML content of the Amazon page\").nullable(),\n}).passthrough().describe(\"Response model for SCRAPE_DO_GET_AMAZON_RAW_HTML action.\");\n\nexport const scrapeDoGetAmazonRawHtml: AppAction<\n typeof ScrapeDoGetAmazonRawHtmlInput,\n typeof ScrapeDoGetAmazonRawHtmlOutput,\n typeof scrapeDo.credential\n> = action(\"SCRAPE_DO_GET_AMAZON_RAW_HTML\", {\n slug: \"scrape_do-get-amazon-raw-html\",\n name: \"Get Amazon raw HTML\",\n description: \"Tool to get raw HTML from any Amazon page with ZIP code geo-targeting. Use when you need complete unprocessed HTML source from Amazon URLs with location-based targeting. Ideal for scraping pages not covered by other structured endpoints.\",\n input: ScrapeDoGetAmazonRawHtmlInput,\n output: ScrapeDoGetAmazonRawHtmlOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CACjG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC3I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC5G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACpF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;CAC5H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,2BAITC,eAAAA,OAAO,iCAAiC;CAC1C,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/get-amazon-raw-html.d.ts
|
|
@@ -13,15 +15,7 @@ declare const ScrapeDoGetAmazonRawHtmlInput: z.ZodObject<{
|
|
|
13
15
|
declare const ScrapeDoGetAmazonRawHtmlOutput: z.ZodObject<{
|
|
14
16
|
html: z.ZodNullable<z.ZodString>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const scrapeDoGetAmazonRawHtml:
|
|
17
|
-
url: string;
|
|
18
|
-
geocode: string;
|
|
19
|
-
zipcode: string;
|
|
20
|
-
super?: boolean | undefined;
|
|
21
|
-
output?: string | undefined;
|
|
22
|
-
timeout?: number | undefined;
|
|
23
|
-
language?: string | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
declare const scrapeDoGetAmazonRawHtml: AppAction<typeof ScrapeDoGetAmazonRawHtmlInput, typeof ScrapeDoGetAmazonRawHtmlOutput, typeof scrapeDo.credential>;
|
|
25
19
|
//#endregion
|
|
26
20
|
export { scrapeDoGetAmazonRawHtml };
|
|
27
21
|
//# sourceMappingURL=get-amazon-raw-html.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-amazon-raw-html.d.cts","names":[],"sources":["../../src/actions/get-amazon-raw-html.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-amazon-raw-html.d.cts","names":[],"sources":["../../src/actions/get-amazon-raw-html.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;cAS7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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/get-amazon-raw-html.d.ts
|
|
@@ -13,15 +15,7 @@ declare const ScrapeDoGetAmazonRawHtmlInput: z.ZodObject<{
|
|
|
13
15
|
declare const ScrapeDoGetAmazonRawHtmlOutput: z.ZodObject<{
|
|
14
16
|
html: z.ZodNullable<z.ZodString>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const scrapeDoGetAmazonRawHtml:
|
|
17
|
-
url: string;
|
|
18
|
-
geocode: string;
|
|
19
|
-
zipcode: string;
|
|
20
|
-
super?: boolean | undefined;
|
|
21
|
-
output?: string | undefined;
|
|
22
|
-
timeout?: number | undefined;
|
|
23
|
-
language?: string | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
declare const scrapeDoGetAmazonRawHtml: AppAction<typeof ScrapeDoGetAmazonRawHtmlInput, typeof ScrapeDoGetAmazonRawHtmlOutput, typeof scrapeDo.credential>;
|
|
25
19
|
//#endregion
|
|
26
20
|
export { scrapeDoGetAmazonRawHtml };
|
|
27
21
|
//# sourceMappingURL=get-amazon-raw-html.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-amazon-raw-html.d.mts","names":[],"sources":["../../src/actions/get-amazon-raw-html.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-amazon-raw-html.d.mts","names":[],"sources":["../../src/actions/get-amazon-raw-html.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;cAS7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-amazon-raw-html.mjs","names":[],"sources":["../../src/actions/get-amazon-raw-html.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoGetAmazonRawHtmlInput = z.object({\n url: z.string().describe(\"Full Amazon URL to scrape (e.g., https://www.amazon.com/dp/B08N5WRWNW)\"),\n \"super\": z.boolean().describe(\"Enable residential/mobile proxies for higher success rates. Costs 10x credits. Default is false.\").optional(),\n output: z.string().default(\"html\").describe(\"Output format - must be 'html' for raw HTML content\").optional(),\n geocode: z.string().describe(\"Country code for geo-targeting (e.g., us, gb, de, jp)\"),\n timeout: z.number().int().describe(\"Request timeout in milliseconds\").optional(),\n zipcode: z.string().describe(\"Postal code formatted according to country requirements (e.g., 10001 for US, SW1A 1AA for UK)\"),\n language: z.string().describe(\"Language code in ISO 639-1 format (e.g., EN, DE, FR, ES)\").optional(),\n}).describe(\"Request model for SCRAPE_DO_GET_AMAZON_RAW_HTML action.\");\nexport const ScrapeDoGetAmazonRawHtmlOutput = z.object({\n html: z.string().describe(\"Raw HTML content of the Amazon page\").nullable(),\n}).passthrough().describe(\"Response model for SCRAPE_DO_GET_AMAZON_RAW_HTML action.\");\n\nexport const scrapeDoGetAmazonRawHtml = action(\"SCRAPE_DO_GET_AMAZON_RAW_HTML\", {\n slug: \"scrape_do-get-amazon-raw-html\",\n name: \"Get Amazon raw HTML\",\n description: \"Tool to get raw HTML from any Amazon page with ZIP code geo-targeting. Use when you need complete unprocessed HTML source from Amazon URLs with location-based targeting. Ideal for scraping pages not covered by other structured endpoints.\",\n input: ScrapeDoGetAmazonRawHtmlInput,\n output: ScrapeDoGetAmazonRawHtmlOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-amazon-raw-html.mjs","names":[],"sources":["../../src/actions/get-amazon-raw-html.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 ScrapeDoGetAmazonRawHtmlInput = z.object({\n url: z.string().describe(\"Full Amazon URL to scrape (e.g., https://www.amazon.com/dp/B08N5WRWNW)\"),\n \"super\": z.boolean().describe(\"Enable residential/mobile proxies for higher success rates. Costs 10x credits. Default is false.\").optional(),\n output: z.string().default(\"html\").describe(\"Output format - must be 'html' for raw HTML content\").optional(),\n geocode: z.string().describe(\"Country code for geo-targeting (e.g., us, gb, de, jp)\"),\n timeout: z.number().int().describe(\"Request timeout in milliseconds\").optional(),\n zipcode: z.string().describe(\"Postal code formatted according to country requirements (e.g., 10001 for US, SW1A 1AA for UK)\"),\n language: z.string().describe(\"Language code in ISO 639-1 format (e.g., EN, DE, FR, ES)\").optional(),\n}).describe(\"Request model for SCRAPE_DO_GET_AMAZON_RAW_HTML action.\");\nexport const ScrapeDoGetAmazonRawHtmlOutput = z.object({\n html: z.string().describe(\"Raw HTML content of the Amazon page\").nullable(),\n}).passthrough().describe(\"Response model for SCRAPE_DO_GET_AMAZON_RAW_HTML action.\");\n\nexport const scrapeDoGetAmazonRawHtml: AppAction<\n typeof ScrapeDoGetAmazonRawHtmlInput,\n typeof ScrapeDoGetAmazonRawHtmlOutput,\n typeof scrapeDo.credential\n> = action(\"SCRAPE_DO_GET_AMAZON_RAW_HTML\", {\n slug: \"scrape_do-get-amazon-raw-html\",\n name: \"Get Amazon raw HTML\",\n description: \"Tool to get raw HTML from any Amazon page with ZIP code geo-targeting. Use when you need complete unprocessed HTML source from Amazon URLs with location-based targeting. Ideal for scraping pages not covered by other structured endpoints.\",\n input: ScrapeDoGetAmazonRawHtmlInput,\n output: ScrapeDoGetAmazonRawHtmlOutput,\n});\n"],"mappings":";;;AAmBA,MAAa,2BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB2C,EAAE,OAAO;EACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;EACjG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC3I,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC5G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACpF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;EAC5H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,SAAS,yDAaH;CACP,QAb4C,EAAE,OAAO,EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-account-info.cjs","names":["z","action"],"sources":["../../src/actions/get-async-account-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoGetAsyncAccountInfoInput = z.object({}).describe(\"Request model for getting Async API account information.\");\nexport const ScrapeDoGetAsyncAccountInfoOutput = z.object({\n ActiveJobs: z.number().int().describe(\"Number of currently active jobs\").nullable(),\n FreeConcurrency: z.number().int().describe(\"Available free concurrency slots\").nullable(),\n AvaliableCredits: z.number().int().describe(\"Number of available credits\").nullable(),\n TotalConcurrency: z.number().int().describe(\"Total concurrency limit for the account\").nullable(),\n}).passthrough().describe(\"Response model for Async API account information.\");\n\nexport const scrapeDoGetAsyncAccountInfo = action(\"SCRAPE_DO_GET_ASYNC_ACCOUNT_INFO\", {\n slug: \"scrape_do-get-async-account-info\",\n name: \"Get Async API Account Information\",\n description: \"Tool to get account information for the Async API including concurrency limits and usage statistics. Use when you need to check available concurrency slots, active jobs, or remaining credits for Async API operations.\",\n input: ScrapeDoGetAsyncAccountInfoInput,\n output: ScrapeDoGetAsyncAccountInfoOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-account-info.cjs","names":["z","action"],"sources":["../../src/actions/get-async-account-info.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 ScrapeDoGetAsyncAccountInfoInput = z.object({}).describe(\"Request model for getting Async API account information.\");\nexport const ScrapeDoGetAsyncAccountInfoOutput = z.object({\n ActiveJobs: z.number().int().describe(\"Number of currently active jobs\").nullable(),\n FreeConcurrency: z.number().int().describe(\"Available free concurrency slots\").nullable(),\n AvaliableCredits: z.number().int().describe(\"Number of available credits\").nullable(),\n TotalConcurrency: z.number().int().describe(\"Total concurrency limit for the account\").nullable(),\n}).passthrough().describe(\"Response model for Async API account information.\");\n\nexport const scrapeDoGetAsyncAccountInfo: AppAction<\n typeof ScrapeDoGetAsyncAccountInfoInput,\n typeof ScrapeDoGetAsyncAccountInfoOutput,\n typeof scrapeDo.credential\n> = action(\"SCRAPE_DO_GET_ASYNC_ACCOUNT_INFO\", {\n slug: \"scrape_do-get-async-account-info\",\n name: \"Get Async API Account Information\",\n description: \"Tool to get account information for the Async API including concurrency limits and usage statistics. Use when you need to check available concurrency slots, active jobs, or remaining credits for Async API operations.\",\n input: ScrapeDoGetAsyncAccountInfoInput,\n output: ScrapeDoGetAsyncAccountInfoOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAChI,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAClF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACxF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACpF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,8BAITC,eAAAA,OAAO,oCAAoC;CAC7C,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/get-async-account-info.d.ts
|
|
@@ -8,7 +10,7 @@ declare const ScrapeDoGetAsyncAccountInfoOutput: z.ZodObject<{
|
|
|
8
10
|
AvaliableCredits: z.ZodNullable<z.ZodNumber>;
|
|
9
11
|
TotalConcurrency: z.ZodNullable<z.ZodNumber>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const scrapeDoGetAsyncAccountInfo:
|
|
13
|
+
declare const scrapeDoGetAsyncAccountInfo: AppAction<typeof ScrapeDoGetAsyncAccountInfoInput, typeof ScrapeDoGetAsyncAccountInfoOutput, typeof scrapeDo.credential>;
|
|
12
14
|
//#endregion
|
|
13
15
|
export { scrapeDoGetAsyncAccountInfo };
|
|
14
16
|
//# sourceMappingURL=get-async-account-info.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-account-info.d.cts","names":[],"sources":["../../src/actions/get-async-account-info.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-account-info.d.cts","names":[],"sources":["../../src/actions/get-async-account-info.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;cAOjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,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/get-async-account-info.d.ts
|
|
@@ -8,7 +10,7 @@ declare const ScrapeDoGetAsyncAccountInfoOutput: z.ZodObject<{
|
|
|
8
10
|
AvaliableCredits: z.ZodNullable<z.ZodNumber>;
|
|
9
11
|
TotalConcurrency: z.ZodNullable<z.ZodNumber>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const scrapeDoGetAsyncAccountInfo:
|
|
13
|
+
declare const scrapeDoGetAsyncAccountInfo: AppAction<typeof ScrapeDoGetAsyncAccountInfoInput, typeof ScrapeDoGetAsyncAccountInfoOutput, typeof scrapeDo.credential>;
|
|
12
14
|
//#endregion
|
|
13
15
|
export { scrapeDoGetAsyncAccountInfo };
|
|
14
16
|
//# sourceMappingURL=get-async-account-info.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-account-info.d.mts","names":[],"sources":["../../src/actions/get-async-account-info.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-account-info.d.mts","names":[],"sources":["../../src/actions/get-async-account-info.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;cAOjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-account-info.mjs","names":[],"sources":["../../src/actions/get-async-account-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoGetAsyncAccountInfoInput = z.object({}).describe(\"Request model for getting Async API account information.\");\nexport const ScrapeDoGetAsyncAccountInfoOutput = z.object({\n ActiveJobs: z.number().int().describe(\"Number of currently active jobs\").nullable(),\n FreeConcurrency: z.number().int().describe(\"Available free concurrency slots\").nullable(),\n AvaliableCredits: z.number().int().describe(\"Number of available credits\").nullable(),\n TotalConcurrency: z.number().int().describe(\"Total concurrency limit for the account\").nullable(),\n}).passthrough().describe(\"Response model for Async API account information.\");\n\nexport const scrapeDoGetAsyncAccountInfo = action(\"SCRAPE_DO_GET_ASYNC_ACCOUNT_INFO\", {\n slug: \"scrape_do-get-async-account-info\",\n name: \"Get Async API Account Information\",\n description: \"Tool to get account information for the Async API including concurrency limits and usage statistics. Use when you need to check available concurrency slots, active jobs, or remaining credits for Async API operations.\",\n input: ScrapeDoGetAsyncAccountInfoInput,\n output: ScrapeDoGetAsyncAccountInfoOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-account-info.mjs","names":[],"sources":["../../src/actions/get-async-account-info.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 ScrapeDoGetAsyncAccountInfoInput = z.object({}).describe(\"Request model for getting Async API account information.\");\nexport const ScrapeDoGetAsyncAccountInfoOutput = z.object({\n ActiveJobs: z.number().int().describe(\"Number of currently active jobs\").nullable(),\n FreeConcurrency: z.number().int().describe(\"Available free concurrency slots\").nullable(),\n AvaliableCredits: z.number().int().describe(\"Number of available credits\").nullable(),\n TotalConcurrency: z.number().int().describe(\"Total concurrency limit for the account\").nullable(),\n}).passthrough().describe(\"Response model for Async API account information.\");\n\nexport const scrapeDoGetAsyncAccountInfo: AppAction<\n typeof ScrapeDoGetAsyncAccountInfoInput,\n typeof ScrapeDoGetAsyncAccountInfoOutput,\n typeof scrapeDo.credential\n> = action(\"SCRAPE_DO_GET_ASYNC_ACCOUNT_INFO\", {\n slug: \"scrape_do-get-async-account-info\",\n name: \"Get Async API Account Information\",\n description: \"Tool to get account information for the Async API including concurrency limits and usage statistics. Use when you need to check available concurrency slots, active jobs, or remaining credits for Async API operations.\",\n input: ScrapeDoGetAsyncAccountInfoInput,\n output: ScrapeDoGetAsyncAccountInfoOutput,\n});\n"],"mappings":";;;AAcA,MAAa,8BAIT,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB8C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAgB7D;CACP,QAhB+C,EAAE,OAAO;EACxD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAClF,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACxF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACpF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-job.cjs","names":["z","action"],"sources":["../../src/actions/get-async-job.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoGetAsyncJobInput = z.object({\n jobID: z.string().describe(\"Unique identifier of the job to retrieve\"),\n}).describe(\"Request model for getting async job details.\");\nconst ScrapeDoGetAsyncJob_TaskInfoSchema = z.object({\n url: z.string().describe(\"URL being scraped by this task\").nullable().optional(),\n status: z.string().describe(\"Current status of the task\").nullable().optional(),\n taskID: z.string().describe(\"Unique identifier of the task\").nullable().optional(),\n}).passthrough().describe(\"Information about a task within a job.\");\nexport const ScrapeDoGetAsyncJobOutput = z.object({\n jobID: z.string().describe(\"Unique job identifier\").nullable().optional(),\n tasks: z.array(ScrapeDoGetAsyncJob_TaskInfoSchema).describe(\"List of tasks with their details and status\").nullable().optional(),\n status: z.string().describe(\"Job status: pending, processing, completed, or failed\").nullable().optional(),\n createdAt: z.string().describe(\"ISO timestamp when job was created\").nullable().optional(),\n totalTasks: z.number().int().describe(\"Total number of tasks in job\").nullable().optional(),\n completedAt: z.string().describe(\"ISO timestamp when job completed\").nullable().optional(),\n failedTasks: z.number().int().describe(\"Number of failed tasks\").nullable().optional(),\n completedTasks: z.number().int().describe(\"Number of completed tasks\").nullable().optional(),\n}).passthrough().describe(\"Response model for async job details.\");\n\nexport const scrapeDoGetAsyncJob = action(\"SCRAPE_DO_GET_ASYNC_JOB\", {\n slug: \"scrape_do-get-async-job\",\n name: \"Get Async Job Details\",\n description: \"Tool to retrieve details and status of a specific asynchronous scraping job. Use when you need to check the progress, status, or results of a previously created async job. Returns job metadata including creation time, completion time, task counts, and detailed task list.\",\n input: ScrapeDoGetAsyncJobInput,\n output: ScrapeDoGetAsyncJobOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-job.cjs","names":["z","action"],"sources":["../../src/actions/get-async-job.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 ScrapeDoGetAsyncJobInput = z.object({\n jobID: z.string().describe(\"Unique identifier of the job to retrieve\"),\n}).describe(\"Request model for getting async job details.\");\nconst ScrapeDoGetAsyncJob_TaskInfoSchema = z.object({\n url: z.string().describe(\"URL being scraped by this task\").nullable().optional(),\n status: z.string().describe(\"Current status of the task\").nullable().optional(),\n taskID: z.string().describe(\"Unique identifier of the task\").nullable().optional(),\n}).passthrough().describe(\"Information about a task within a job.\");\nexport const ScrapeDoGetAsyncJobOutput = z.object({\n jobID: z.string().describe(\"Unique job identifier\").nullable().optional(),\n tasks: z.array(ScrapeDoGetAsyncJob_TaskInfoSchema).describe(\"List of tasks with their details and status\").nullable().optional(),\n status: z.string().describe(\"Job status: pending, processing, completed, or failed\").nullable().optional(),\n createdAt: z.string().describe(\"ISO timestamp when job was created\").nullable().optional(),\n totalTasks: z.number().int().describe(\"Total number of tasks in job\").nullable().optional(),\n completedAt: z.string().describe(\"ISO timestamp when job completed\").nullable().optional(),\n failedTasks: z.number().int().describe(\"Number of failed tasks\").nullable().optional(),\n completedTasks: z.number().int().describe(\"Number of completed tasks\").nullable().optional(),\n}).passthrough().describe(\"Response model for async job details.\");\n\nexport const scrapeDoGetAsyncJob: AppAction<\n typeof ScrapeDoGetAsyncJobInput,\n typeof ScrapeDoGetAsyncJobOutput,\n typeof scrapeDo.credential\n> = action(\"SCRAPE_DO_GET_ASYNC_JOB\", {\n slug: \"scrape_do-get-async-job\",\n name: \"Get Async Job Details\",\n description: \"Tool to retrieve details and status of a specific asynchronous scraping job. Use when you need to check the progress, status, or results of a previously created async job. Returns job metadata including creation time, completion time, task counts, and detailed task list.\",\n input: ScrapeDoGetAsyncJobInput,\n output: ScrapeDoGetAsyncJobOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACvE,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,sBAITC,eAAAA,OAAO,2BAA2B;CACpC,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/get-async-job.d.ts
|
|
@@ -18,9 +20,7 @@ declare const ScrapeDoGetAsyncJobOutput: z.ZodObject<{
|
|
|
18
20
|
failedTasks: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
21
|
completedTasks: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
22
|
}, z.core.$loose>;
|
|
21
|
-
declare const scrapeDoGetAsyncJob:
|
|
22
|
-
jobID: string;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
23
|
+
declare const scrapeDoGetAsyncJob: AppAction<typeof ScrapeDoGetAsyncJobInput, typeof ScrapeDoGetAsyncJobOutput, typeof scrapeDo.credential>;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { scrapeDoGetAsyncJob };
|
|
26
26
|
//# sourceMappingURL=get-async-job.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-job.d.cts","names":[],"sources":["../../src/actions/get-async-job.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-job.d.cts","names":[],"sources":["../../src/actions/get-async-job.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAQxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAWzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,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/get-async-job.d.ts
|
|
@@ -18,9 +20,7 @@ declare const ScrapeDoGetAsyncJobOutput: z.ZodObject<{
|
|
|
18
20
|
failedTasks: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
21
|
completedTasks: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
22
|
}, z.core.$loose>;
|
|
21
|
-
declare const scrapeDoGetAsyncJob:
|
|
22
|
-
jobID: string;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
23
|
+
declare const scrapeDoGetAsyncJob: AppAction<typeof ScrapeDoGetAsyncJobInput, typeof ScrapeDoGetAsyncJobOutput, typeof scrapeDo.credential>;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { scrapeDoGetAsyncJob };
|
|
26
26
|
//# sourceMappingURL=get-async-job.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-job.d.mts","names":[],"sources":["../../src/actions/get-async-job.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-job.d.mts","names":[],"sources":["../../src/actions/get-async-job.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAQxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAWzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-job.mjs","names":[],"sources":["../../src/actions/get-async-job.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoGetAsyncJobInput = z.object({\n jobID: z.string().describe(\"Unique identifier of the job to retrieve\"),\n}).describe(\"Request model for getting async job details.\");\nconst ScrapeDoGetAsyncJob_TaskInfoSchema = z.object({\n url: z.string().describe(\"URL being scraped by this task\").nullable().optional(),\n status: z.string().describe(\"Current status of the task\").nullable().optional(),\n taskID: z.string().describe(\"Unique identifier of the task\").nullable().optional(),\n}).passthrough().describe(\"Information about a task within a job.\");\nexport const ScrapeDoGetAsyncJobOutput = z.object({\n jobID: z.string().describe(\"Unique job identifier\").nullable().optional(),\n tasks: z.array(ScrapeDoGetAsyncJob_TaskInfoSchema).describe(\"List of tasks with their details and status\").nullable().optional(),\n status: z.string().describe(\"Job status: pending, processing, completed, or failed\").nullable().optional(),\n createdAt: z.string().describe(\"ISO timestamp when job was created\").nullable().optional(),\n totalTasks: z.number().int().describe(\"Total number of tasks in job\").nullable().optional(),\n completedAt: z.string().describe(\"ISO timestamp when job completed\").nullable().optional(),\n failedTasks: z.number().int().describe(\"Number of failed tasks\").nullable().optional(),\n completedTasks: z.number().int().describe(\"Number of completed tasks\").nullable().optional(),\n}).passthrough().describe(\"Response model for async job details.\");\n\nexport const scrapeDoGetAsyncJob = action(\"SCRAPE_DO_GET_ASYNC_JOB\", {\n slug: \"scrape_do-get-async-job\",\n name: \"Get Async Job Details\",\n description: \"Tool to retrieve details and status of a specific asynchronous scraping job. Use when you need to check the progress, status, or results of a previously created async job. Returns job metadata including creation time, completion time, task counts, and detailed task list.\",\n input: ScrapeDoGetAsyncJobInput,\n output: ScrapeDoGetAsyncJobOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-job.mjs","names":[],"sources":["../../src/actions/get-async-job.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 ScrapeDoGetAsyncJobInput = z.object({\n jobID: z.string().describe(\"Unique identifier of the job to retrieve\"),\n}).describe(\"Request model for getting async job details.\");\nconst ScrapeDoGetAsyncJob_TaskInfoSchema = z.object({\n url: z.string().describe(\"URL being scraped by this task\").nullable().optional(),\n status: z.string().describe(\"Current status of the task\").nullable().optional(),\n taskID: z.string().describe(\"Unique identifier of the task\").nullable().optional(),\n}).passthrough().describe(\"Information about a task within a job.\");\nexport const ScrapeDoGetAsyncJobOutput = z.object({\n jobID: z.string().describe(\"Unique job identifier\").nullable().optional(),\n tasks: z.array(ScrapeDoGetAsyncJob_TaskInfoSchema).describe(\"List of tasks with their details and status\").nullable().optional(),\n status: z.string().describe(\"Job status: pending, processing, completed, or failed\").nullable().optional(),\n createdAt: z.string().describe(\"ISO timestamp when job was created\").nullable().optional(),\n totalTasks: z.number().int().describe(\"Total number of tasks in job\").nullable().optional(),\n completedAt: z.string().describe(\"ISO timestamp when job completed\").nullable().optional(),\n failedTasks: z.number().int().describe(\"Number of failed tasks\").nullable().optional(),\n completedTasks: z.number().int().describe(\"Number of completed tasks\").nullable().optional(),\n}).passthrough().describe(\"Response model for async job details.\");\n\nexport const scrapeDoGetAsyncJob: AppAction<\n typeof ScrapeDoGetAsyncJobInput,\n typeof ScrapeDoGetAsyncJobOutput,\n typeof scrapeDo.credential\n> = action(\"SCRAPE_DO_GET_ASYNC_JOB\", {\n slug: \"scrape_do-get-async-job\",\n name: \"Get Async Job Details\",\n description: \"Tool to retrieve details and status of a specific asynchronous scraping job. Use when you need to check the progress, status, or results of a previously created async job. Returns job metadata including creation time, completion time, task counts, and detailed task list.\",\n input: ScrapeDoGetAsyncJobInput,\n output: ScrapeDoGetAsyncJobOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACvE,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,qCAAqC,EAAE,OAAO;CAClD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAYlE,MAAa,sBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QApBuC,EAAE,OAAO;EAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,OAAO,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-task.cjs","names":["z","action"],"sources":["../../src/actions/get-async-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoGetAsyncTaskInput = z.object({\n token: z.string().describe(\"Authentication token for Scrape.do API\"),\n job_id: z.string().describe(\"Unique identifier of the job\"),\n task_id: z.string().describe(\"Unique identifier of the task within the job\"),\n}).describe(\"Request model for getting async task result.\");\nconst ScrapeDoGetAsyncTask_TaskStatusSchema = z.enum([\"pending\", \"completed\", \"failed\"]).describe(\"Status values for async tasks.\");\nexport const ScrapeDoGetAsyncTaskOutput = z.object({\n url: z.string().describe(\"Target URL that was scraped\").nullable().optional(),\n body: z.string().describe(\"Scraped content from the target URL\").nullable().optional(),\n error: z.string().describe(\"Error message if task failed\").nullable().optional(),\n job_id: z.string().describe(\"Parent job identifier\").nullable().optional(),\n status: ScrapeDoGetAsyncTask_TaskStatusSchema.nullable().optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Response headers from target website\").nullable().optional(),\n task_id: z.string().describe(\"Unique task identifier\").nullable().optional(),\n status_code: z.number().int().describe(\"HTTP status code from target website\").nullable().optional(),\n}).passthrough().describe(\"Response model for async task result.\");\n\nexport const scrapeDoGetAsyncTask = action(\"SCRAPE_DO_GET_ASYNC_TASK\", {\n slug: \"scrape_do-get-async-task\",\n name: \"Get Async Task Result\",\n description: \"Tool to retrieve the result of a specific task within an asynchronous job. Returns the scraped content for that particular URL. Use when you need to check the status and result of a previously submitted async scraping task.\",\n input: ScrapeDoGetAsyncTaskInput,\n output: ScrapeDoGetAsyncTaskOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-task.cjs","names":["z","action"],"sources":["../../src/actions/get-async-task.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 ScrapeDoGetAsyncTaskInput = z.object({\n token: z.string().describe(\"Authentication token for Scrape.do API\"),\n job_id: z.string().describe(\"Unique identifier of the job\"),\n task_id: z.string().describe(\"Unique identifier of the task within the job\"),\n}).describe(\"Request model for getting async task result.\");\nconst ScrapeDoGetAsyncTask_TaskStatusSchema = z.enum([\"pending\", \"completed\", \"failed\"]).describe(\"Status values for async tasks.\");\nexport const ScrapeDoGetAsyncTaskOutput = z.object({\n url: z.string().describe(\"Target URL that was scraped\").nullable().optional(),\n body: z.string().describe(\"Scraped content from the target URL\").nullable().optional(),\n error: z.string().describe(\"Error message if task failed\").nullable().optional(),\n job_id: z.string().describe(\"Parent job identifier\").nullable().optional(),\n status: ScrapeDoGetAsyncTask_TaskStatusSchema.nullable().optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Response headers from target website\").nullable().optional(),\n task_id: z.string().describe(\"Unique task identifier\").nullable().optional(),\n status_code: z.number().int().describe(\"HTTP status code from target website\").nullable().optional(),\n}).passthrough().describe(\"Response model for async task result.\");\n\nexport const scrapeDoGetAsyncTask: AppAction<\n typeof ScrapeDoGetAsyncTaskInput,\n typeof ScrapeDoGetAsyncTaskOutput,\n typeof scrapeDo.credential\n> = action(\"SCRAPE_DO_GET_ASYNC_TASK\", {\n slug: \"scrape_do-get-async-task\",\n name: \"Get Async Task Result\",\n description: \"Tool to retrieve the result of a specific task within an asynchronous job. Returns the scraped content for that particular URL. Use when you need to check the status and result of a previously submitted async scraping task.\",\n input: ScrapeDoGetAsyncTaskInput,\n output: ScrapeDoGetAsyncTaskOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AAC7E,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,wCAAwCA,IAAAA,EAAE,KAAK;CAAC;CAAW;CAAa;AAAQ,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAClI,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQ,sCAAsC,SAAS,CAAC,CAAC,SAAS;CAClE,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,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/get-async-task.d.ts
|
|
@@ -20,11 +22,7 @@ declare const ScrapeDoGetAsyncTaskOutput: z.ZodObject<{
|
|
|
20
22
|
task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
status_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
24
|
}, z.core.$loose>;
|
|
23
|
-
declare const scrapeDoGetAsyncTask:
|
|
24
|
-
token: string;
|
|
25
|
-
job_id: string;
|
|
26
|
-
task_id: string;
|
|
27
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
|
+
declare const scrapeDoGetAsyncTask: AppAction<typeof ScrapeDoGetAsyncTaskInput, typeof ScrapeDoGetAsyncTaskOutput, typeof scrapeDo.credential>;
|
|
28
26
|
//#endregion
|
|
29
27
|
export { scrapeDoGetAsyncTask };
|
|
30
28
|
//# sourceMappingURL=get-async-task.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-task.d.cts","names":[],"sources":["../../src/actions/get-async-task.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-task.d.cts","names":[],"sources":["../../src/actions/get-async-task.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAMzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAW1B,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/get-async-task.d.ts
|
|
@@ -20,11 +22,7 @@ declare const ScrapeDoGetAsyncTaskOutput: z.ZodObject<{
|
|
|
20
22
|
task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
status_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
24
|
}, z.core.$loose>;
|
|
23
|
-
declare const scrapeDoGetAsyncTask:
|
|
24
|
-
token: string;
|
|
25
|
-
job_id: string;
|
|
26
|
-
task_id: string;
|
|
27
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
|
+
declare const scrapeDoGetAsyncTask: AppAction<typeof ScrapeDoGetAsyncTaskInput, typeof ScrapeDoGetAsyncTaskOutput, typeof scrapeDo.credential>;
|
|
28
26
|
//#endregion
|
|
29
27
|
export { scrapeDoGetAsyncTask };
|
|
30
28
|
//# sourceMappingURL=get-async-task.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-task.d.mts","names":[],"sources":["../../src/actions/get-async-task.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-task.d.mts","names":[],"sources":["../../src/actions/get-async-task.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAMzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAW1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-task.mjs","names":[],"sources":["../../src/actions/get-async-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoGetAsyncTaskInput = z.object({\n token: z.string().describe(\"Authentication token for Scrape.do API\"),\n job_id: z.string().describe(\"Unique identifier of the job\"),\n task_id: z.string().describe(\"Unique identifier of the task within the job\"),\n}).describe(\"Request model for getting async task result.\");\nconst ScrapeDoGetAsyncTask_TaskStatusSchema = z.enum([\"pending\", \"completed\", \"failed\"]).describe(\"Status values for async tasks.\");\nexport const ScrapeDoGetAsyncTaskOutput = z.object({\n url: z.string().describe(\"Target URL that was scraped\").nullable().optional(),\n body: z.string().describe(\"Scraped content from the target URL\").nullable().optional(),\n error: z.string().describe(\"Error message if task failed\").nullable().optional(),\n job_id: z.string().describe(\"Parent job identifier\").nullable().optional(),\n status: ScrapeDoGetAsyncTask_TaskStatusSchema.nullable().optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Response headers from target website\").nullable().optional(),\n task_id: z.string().describe(\"Unique task identifier\").nullable().optional(),\n status_code: z.number().int().describe(\"HTTP status code from target website\").nullable().optional(),\n}).passthrough().describe(\"Response model for async task result.\");\n\nexport const scrapeDoGetAsyncTask = action(\"SCRAPE_DO_GET_ASYNC_TASK\", {\n slug: \"scrape_do-get-async-task\",\n name: \"Get Async Task Result\",\n description: \"Tool to retrieve the result of a specific task within an asynchronous job. Returns the scraped content for that particular URL. Use when you need to check the status and result of a previously submitted async scraping task.\",\n input: ScrapeDoGetAsyncTaskInput,\n output: ScrapeDoGetAsyncTaskOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-task.mjs","names":[],"sources":["../../src/actions/get-async-task.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 ScrapeDoGetAsyncTaskInput = z.object({\n token: z.string().describe(\"Authentication token for Scrape.do API\"),\n job_id: z.string().describe(\"Unique identifier of the job\"),\n task_id: z.string().describe(\"Unique identifier of the task within the job\"),\n}).describe(\"Request model for getting async task result.\");\nconst ScrapeDoGetAsyncTask_TaskStatusSchema = z.enum([\"pending\", \"completed\", \"failed\"]).describe(\"Status values for async tasks.\");\nexport const ScrapeDoGetAsyncTaskOutput = z.object({\n url: z.string().describe(\"Target URL that was scraped\").nullable().optional(),\n body: z.string().describe(\"Scraped content from the target URL\").nullable().optional(),\n error: z.string().describe(\"Error message if task failed\").nullable().optional(),\n job_id: z.string().describe(\"Parent job identifier\").nullable().optional(),\n status: ScrapeDoGetAsyncTask_TaskStatusSchema.nullable().optional(),\n headers: z.record(z.string(), z.unknown()).describe(\"Response headers from target website\").nullable().optional(),\n task_id: z.string().describe(\"Unique task identifier\").nullable().optional(),\n status_code: z.number().int().describe(\"HTTP status code from target website\").nullable().optional(),\n}).passthrough().describe(\"Response model for async task result.\");\n\nexport const scrapeDoGetAsyncTask: AppAction<\n typeof ScrapeDoGetAsyncTaskInput,\n typeof ScrapeDoGetAsyncTaskOutput,\n typeof scrapeDo.credential\n> = action(\"SCRAPE_DO_GET_ASYNC_TASK\", {\n slug: \"scrape_do-get-async-task\",\n name: \"Get Async Task Result\",\n description: \"Tool to retrieve the result of a specific task within an asynchronous job. Returns the scraped content for that particular URL. Use when you need to check the status and result of a previously submitted async scraping task.\",\n input: ScrapeDoGetAsyncTaskInput,\n output: ScrapeDoGetAsyncTaskOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AAC7E,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,wCAAwC,EAAE,KAAK;CAAC;CAAW;CAAa;AAAQ,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAYlI,MAAa,uBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QApBwC,EAAE,OAAO;EACjD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,QAAQ,sCAAsC,SAAS,CAAC,CAAC,SAAS;EAClE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-page.cjs","names":["z","action"],"sources":["../../src/actions/get-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoGetPageInput = z.object({\n url: z.string().describe(\"Target web page URL to scrape\"),\n \"super\": z.boolean().default(false).describe(\"Use residential & mobile proxy networks\").optional(),\n width: z.number().int().default(1920).describe(\"Browser viewport width (requires render=true)\").optional(),\n device: z.enum([\"desktop\", \"mobile\", \"tablet\"]).default(\"desktop\").describe(\"Specify device type (desktop, mobile, tablet)\").optional(),\n height: z.number().int().default(1080).describe(\"Browser viewport height (requires render=true)\").optional(),\n output: z.enum([\"raw\", \"markdown\"]).default(\"raw\").describe(\"Output format (raw or markdown)\").optional(),\n render: z.boolean().default(false).describe(\"Enable headless browser rendering Use for JS-heavy pages, SPAs, or sites with anti-bot JS challenges. Increase `timeout` when enabling to ensure full page load before cutoff.\").optional(),\n timeout: z.number().int().describe(\"Maximum request timeout in ms (5000-120000)\").optional(),\n geo_code: z.string().describe(\"Choose country for target web page (e.g. 'us', 'gb')\").optional(),\n return_json: z.boolean().default(false).describe(\"Return network requests in JSON format\").optional(),\n set_cookies: z.string().describe(\"Set cookies for target web page\").optional(),\n extra_headers: z.boolean().default(false).describe(\"Add/modify headers\").optional(),\n retry_timeout: z.number().int().describe(\"Maximum retry timeout in ms (5000-55000)\").optional(),\n custom_headers: z.boolean().default(false).describe(\"Handle all request headers\").optional(),\n block_resources: z.boolean().default(true).describe(\"Block CSS and image sources\").optional(),\n disable_redirection: z.boolean().default(false).describe(\"Disable request redirection\").optional(),\n}).describe(\"Request model for SCRAPE_DO_GET_PAGE action.\");\nexport const ScrapeDoGetPageOutput = z.object({\n content: z.string().describe(\"The scraped content from the target webpage\").nullable(),\n headers: z.record(z.string(), z.unknown()).describe(\"Response headers including Scrape.do specific headers\"),\n status_code: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n}).passthrough().describe(\"Response model for SCRAPE_DO_GET_PAGE action.\");\n\nexport const scrapeDoGetPage = action(\"SCRAPE_DO_GET_PAGE\", {\n slug: \"scrape_do-get-page\",\n name: \"Scrape webpage using scrape.do\",\n description: \"A tool to scrape web pages using scrape.do's API service. Makes a basic GET request to fetch webpage content while handling anti-bot protections and proxy rotation automatically. Does not execute JavaScript by default — pages requiring client-side rendering (SPAs, dynamically loaded content) will return incomplete HTML; use SCRAPE_DO_GET_RENDER_PAGE or set render=true for those cases.\",\n input: ScrapeDoGetPageInput,\n output: ScrapeDoGetPageOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-page.cjs","names":["z","action"],"sources":["../../src/actions/get-page.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 ScrapeDoGetPageInput = z.object({\n url: z.string().describe(\"Target web page URL to scrape\"),\n \"super\": z.boolean().default(false).describe(\"Use residential & mobile proxy networks\").optional(),\n width: z.number().int().default(1920).describe(\"Browser viewport width (requires render=true)\").optional(),\n device: z.enum([\"desktop\", \"mobile\", \"tablet\"]).default(\"desktop\").describe(\"Specify device type (desktop, mobile, tablet)\").optional(),\n height: z.number().int().default(1080).describe(\"Browser viewport height (requires render=true)\").optional(),\n output: z.enum([\"raw\", \"markdown\"]).default(\"raw\").describe(\"Output format (raw or markdown)\").optional(),\n render: z.boolean().default(false).describe(\"Enable headless browser rendering Use for JS-heavy pages, SPAs, or sites with anti-bot JS challenges. Increase `timeout` when enabling to ensure full page load before cutoff.\").optional(),\n timeout: z.number().int().describe(\"Maximum request timeout in ms (5000-120000)\").optional(),\n geo_code: z.string().describe(\"Choose country for target web page (e.g. 'us', 'gb')\").optional(),\n return_json: z.boolean().default(false).describe(\"Return network requests in JSON format\").optional(),\n set_cookies: z.string().describe(\"Set cookies for target web page\").optional(),\n extra_headers: z.boolean().default(false).describe(\"Add/modify headers\").optional(),\n retry_timeout: z.number().int().describe(\"Maximum retry timeout in ms (5000-55000)\").optional(),\n custom_headers: z.boolean().default(false).describe(\"Handle all request headers\").optional(),\n block_resources: z.boolean().default(true).describe(\"Block CSS and image sources\").optional(),\n disable_redirection: z.boolean().default(false).describe(\"Disable request redirection\").optional(),\n}).describe(\"Request model for SCRAPE_DO_GET_PAGE action.\");\nexport const ScrapeDoGetPageOutput = z.object({\n content: z.string().describe(\"The scraped content from the target webpage\").nullable(),\n headers: z.record(z.string(), z.unknown()).describe(\"Response headers including Scrape.do specific headers\"),\n status_code: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n}).passthrough().describe(\"Response model for SCRAPE_DO_GET_PAGE action.\");\n\nexport const scrapeDoGetPage: AppAction<\n typeof ScrapeDoGetPageInput,\n typeof ScrapeDoGetPageOutput,\n typeof scrapeDo.credential\n> = action(\"SCRAPE_DO_GET_PAGE\", {\n slug: \"scrape_do-get-page\",\n name: \"Scrape webpage using scrape.do\",\n description: \"A tool to scrape web pages using scrape.do's API service. Makes a basic GET request to fetch webpage content while handling anti-bot protections and proxy rotation automatically. Does not execute JavaScript by default — pages requiring client-side rendering (SPAs, dynamically loaded content) will return incomplete HTML; use SCRAPE_DO_GET_RENDER_PAGE or set render=true for those cases.\",\n input: ScrapeDoGetPageInput,\n output: ScrapeDoGetPageOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACxD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACjG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzG,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAU;CAAQ,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACtI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC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