@keystrokehq/scrape_do 0.1.0

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.
Files changed (162) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/cancel-async-job.cjs +29 -0
  7. package/dist/actions/cancel-async-job.cjs.map +1 -0
  8. package/dist/actions/cancel-async-job.d.cts +9 -0
  9. package/dist/actions/cancel-async-job.d.cts.map +1 -0
  10. package/dist/actions/cancel-async-job.d.mts +9 -0
  11. package/dist/actions/cancel-async-job.d.mts.map +1 -0
  12. package/dist/actions/cancel-async-job.mjs +26 -0
  13. package/dist/actions/cancel-async-job.mjs.map +1 -0
  14. package/dist/actions/create-async-job.cjs +62 -0
  15. package/dist/actions/create-async-job.cjs.map +1 -0
  16. package/dist/actions/create-async-job.d.cts +9 -0
  17. package/dist/actions/create-async-job.d.cts.map +1 -0
  18. package/dist/actions/create-async-job.d.mts +9 -0
  19. package/dist/actions/create-async-job.d.mts.map +1 -0
  20. package/dist/actions/create-async-job.mjs +59 -0
  21. package/dist/actions/create-async-job.mjs.map +1 -0
  22. package/dist/actions/get-account-info.cjs +22 -0
  23. package/dist/actions/get-account-info.cjs.map +1 -0
  24. package/dist/actions/get-account-info.d.cts +9 -0
  25. package/dist/actions/get-account-info.d.cts.map +1 -0
  26. package/dist/actions/get-account-info.d.mts +9 -0
  27. package/dist/actions/get-account-info.d.mts.map +1 -0
  28. package/dist/actions/get-account-info.mjs +19 -0
  29. package/dist/actions/get-account-info.mjs.map +1 -0
  30. package/dist/actions/get-amazon-offers.cjs +55 -0
  31. package/dist/actions/get-amazon-offers.cjs.map +1 -0
  32. package/dist/actions/get-amazon-offers.d.cts +9 -0
  33. package/dist/actions/get-amazon-offers.d.cts.map +1 -0
  34. package/dist/actions/get-amazon-offers.d.mts +9 -0
  35. package/dist/actions/get-amazon-offers.d.mts.map +1 -0
  36. package/dist/actions/get-amazon-offers.mjs +54 -0
  37. package/dist/actions/get-amazon-offers.mjs.map +1 -0
  38. package/dist/actions/get-amazon-product.cjs +65 -0
  39. package/dist/actions/get-amazon-product.cjs.map +1 -0
  40. package/dist/actions/get-amazon-product.d.cts +9 -0
  41. package/dist/actions/get-amazon-product.d.cts.map +1 -0
  42. package/dist/actions/get-amazon-product.d.mts +9 -0
  43. package/dist/actions/get-amazon-product.d.mts.map +1 -0
  44. package/dist/actions/get-amazon-product.mjs +64 -0
  45. package/dist/actions/get-amazon-product.mjs.map +1 -0
  46. package/dist/actions/get-amazon-raw-html.cjs +24 -0
  47. package/dist/actions/get-amazon-raw-html.cjs.map +1 -0
  48. package/dist/actions/get-amazon-raw-html.d.cts +9 -0
  49. package/dist/actions/get-amazon-raw-html.d.cts.map +1 -0
  50. package/dist/actions/get-amazon-raw-html.d.mts +9 -0
  51. package/dist/actions/get-amazon-raw-html.d.mts.map +1 -0
  52. package/dist/actions/get-amazon-raw-html.mjs +21 -0
  53. package/dist/actions/get-amazon-raw-html.mjs.map +1 -0
  54. package/dist/actions/get-async-account-info.cjs +21 -0
  55. package/dist/actions/get-async-account-info.cjs.map +1 -0
  56. package/dist/actions/get-async-account-info.d.cts +9 -0
  57. package/dist/actions/get-async-account-info.d.cts.map +1 -0
  58. package/dist/actions/get-async-account-info.d.mts +9 -0
  59. package/dist/actions/get-async-account-info.d.mts.map +1 -0
  60. package/dist/actions/get-async-account-info.mjs +18 -0
  61. package/dist/actions/get-async-account-info.mjs.map +1 -0
  62. package/dist/actions/get-async-job.cjs +30 -0
  63. package/dist/actions/get-async-job.cjs.map +1 -0
  64. package/dist/actions/get-async-job.d.cts +9 -0
  65. package/dist/actions/get-async-job.d.cts.map +1 -0
  66. package/dist/actions/get-async-job.d.mts +9 -0
  67. package/dist/actions/get-async-job.d.mts.map +1 -0
  68. package/dist/actions/get-async-job.mjs +29 -0
  69. package/dist/actions/get-async-job.mjs.map +1 -0
  70. package/dist/actions/get-async-task.cjs +34 -0
  71. package/dist/actions/get-async-task.cjs.map +1 -0
  72. package/dist/actions/get-async-task.d.cts +9 -0
  73. package/dist/actions/get-async-task.d.cts.map +1 -0
  74. package/dist/actions/get-async-task.d.mts +9 -0
  75. package/dist/actions/get-async-task.d.mts.map +1 -0
  76. package/dist/actions/get-async-task.mjs +33 -0
  77. package/dist/actions/get-async-task.mjs.map +1 -0
  78. package/dist/actions/get-page.cjs +41 -0
  79. package/dist/actions/get-page.cjs.map +1 -0
  80. package/dist/actions/get-page.d.cts +9 -0
  81. package/dist/actions/get-page.d.cts.map +1 -0
  82. package/dist/actions/get-page.d.mts +9 -0
  83. package/dist/actions/get-page.d.mts.map +1 -0
  84. package/dist/actions/get-page.mjs +38 -0
  85. package/dist/actions/get-page.mjs.map +1 -0
  86. package/dist/actions/index.cjs +33 -0
  87. package/dist/actions/index.d.cts +17 -0
  88. package/dist/actions/index.d.mts +17 -0
  89. package/dist/actions/index.mjs +17 -0
  90. package/dist/actions/list-async-jobs.cjs +32 -0
  91. package/dist/actions/list-async-jobs.cjs.map +1 -0
  92. package/dist/actions/list-async-jobs.d.cts +9 -0
  93. package/dist/actions/list-async-jobs.d.cts.map +1 -0
  94. package/dist/actions/list-async-jobs.d.mts +9 -0
  95. package/dist/actions/list-async-jobs.d.mts.map +1 -0
  96. package/dist/actions/list-async-jobs.mjs +31 -0
  97. package/dist/actions/list-async-jobs.mjs.map +1 -0
  98. package/dist/actions/proxy-mode.cjs +26 -0
  99. package/dist/actions/proxy-mode.cjs.map +1 -0
  100. package/dist/actions/proxy-mode.d.cts +9 -0
  101. package/dist/actions/proxy-mode.d.cts.map +1 -0
  102. package/dist/actions/proxy-mode.d.mts +9 -0
  103. package/dist/actions/proxy-mode.d.mts.map +1 -0
  104. package/dist/actions/proxy-mode.mjs +23 -0
  105. package/dist/actions/proxy-mode.mjs.map +1 -0
  106. package/dist/actions/scrape-url-post.cjs +35 -0
  107. package/dist/actions/scrape-url-post.cjs.map +1 -0
  108. package/dist/actions/scrape-url-post.d.cts +9 -0
  109. package/dist/actions/scrape-url-post.d.cts.map +1 -0
  110. package/dist/actions/scrape-url-post.d.mts +9 -0
  111. package/dist/actions/scrape-url-post.d.mts.map +1 -0
  112. package/dist/actions/scrape-url-post.mjs +32 -0
  113. package/dist/actions/scrape-url-post.mjs.map +1 -0
  114. package/dist/actions/search-amazon.cjs +54 -0
  115. package/dist/actions/search-amazon.cjs.map +1 -0
  116. package/dist/actions/search-amazon.d.cts +9 -0
  117. package/dist/actions/search-amazon.d.cts.map +1 -0
  118. package/dist/actions/search-amazon.d.mts +9 -0
  119. package/dist/actions/search-amazon.d.mts.map +1 -0
  120. package/dist/actions/search-amazon.mjs +53 -0
  121. package/dist/actions/search-amazon.mjs.map +1 -0
  122. package/dist/actions/set-block-urls.cjs +19 -0
  123. package/dist/actions/set-block-urls.cjs.map +1 -0
  124. package/dist/actions/set-block-urls.d.cts +9 -0
  125. package/dist/actions/set-block-urls.d.cts.map +1 -0
  126. package/dist/actions/set-block-urls.d.mts +9 -0
  127. package/dist/actions/set-block-urls.d.mts.map +1 -0
  128. package/dist/actions/set-block-urls.mjs +16 -0
  129. package/dist/actions/set-block-urls.mjs.map +1 -0
  130. package/dist/actions/set-regional-geo-code.cjs +29 -0
  131. package/dist/actions/set-regional-geo-code.cjs.map +1 -0
  132. package/dist/actions/set-regional-geo-code.d.cts +9 -0
  133. package/dist/actions/set-regional-geo-code.d.cts.map +1 -0
  134. package/dist/actions/set-regional-geo-code.d.mts +9 -0
  135. package/dist/actions/set-regional-geo-code.d.mts.map +1 -0
  136. package/dist/actions/set-regional-geo-code.mjs +26 -0
  137. package/dist/actions/set-regional-geo-code.mjs.map +1 -0
  138. package/dist/app.cjs +9 -0
  139. package/dist/app.cjs.map +1 -0
  140. package/dist/app.d.cts +5 -0
  141. package/dist/app.d.cts.map +1 -0
  142. package/dist/app.d.mts +5 -0
  143. package/dist/app.d.mts.map +1 -0
  144. package/dist/app.mjs +10 -0
  145. package/dist/app.mjs.map +1 -0
  146. package/dist/catalog.cjs +15 -0
  147. package/dist/catalog.cjs.map +1 -0
  148. package/dist/catalog.d.cts +14 -0
  149. package/dist/catalog.d.cts.map +1 -0
  150. package/dist/catalog.d.mts +14 -0
  151. package/dist/catalog.d.mts.map +1 -0
  152. package/dist/catalog.mjs +15 -0
  153. package/dist/catalog.mjs.map +1 -0
  154. package/dist/execute.cjs +18 -0
  155. package/dist/execute.cjs.map +1 -0
  156. package/dist/execute.mjs +18 -0
  157. package/dist/execute.mjs.map +1 -0
  158. package/dist/index.cjs +38 -0
  159. package/dist/index.d.cts +19 -0
  160. package/dist/index.d.mts +19 -0
  161. package/dist/index.mjs +20 -0
  162. package/package.json +49 -0
@@ -0,0 +1,54 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-amazon-offers.ts
4
+ const ScrapeDoGetAmazonOffersInput = z.object({
5
+ asin: z.string().describe("Amazon Standard Identification Number (10-character product ID)"),
6
+ geocode: z.string().describe("Country code for Amazon marketplace (e.g., us, gb, de, jp, fr, es, it, ca)"),
7
+ zipcode: z.string().describe("Postal/ZIP code formatted according to country requirements"),
8
+ super_mode: z.boolean().describe("Enable residential/mobile proxies for higher success rates. Costs 10x credits").optional(),
9
+ include_html: z.boolean().describe("When true, includes the full raw HTML alongside structured JSON").optional()
10
+ }).describe("Request model for retrieving Amazon product offers.");
11
+ const ScrapeDoGetAmazonOffers_DiscountInfoSchema = z.object({ percentage: z.number().describe("Discount percentage").nullable().optional() }).describe("Discount details.");
12
+ const ScrapeDoGetAmazonOffers_ShippingInfoSchema = z.object({
13
+ amount: z.number().describe("Shipping cost amount").nullable().optional(),
14
+ currencyCode: z.string().describe("Currency code (e.g., USD)").nullable().optional()
15
+ }).describe("Shipping cost information.");
16
+ const ScrapeDoGetAmazonOffers_PriceInfoSchema = z.object({
17
+ amount: z.number().describe("Price amount in the currency").nullable().optional(),
18
+ currencyCode: z.string().describe("Currency code (e.g., USD)").nullable().optional()
19
+ }).describe("Price information structure.");
20
+ const ScrapeDoGetAmazonOffers_ShippingTimeSchema = z.object({ displayString: z.string().describe("Human-readable shipping time (e.g., 'Ships in 2-3 business days')").nullable().optional() }).describe("Shipping time details.");
21
+ const ScrapeDoGetAmazonOffers_PrimeInformationSchema = z.object({ isPrime: z.boolean().describe("Whether Prime shipping available").nullable().optional() }).describe("Prime eligibility details.");
22
+ const ScrapeDoGetAmazonOffers_OfferItemSchema = z.object({
23
+ discount: ScrapeDoGetAmazonOffers_DiscountInfoSchema.nullable().optional(),
24
+ quantity: z.number().int().describe("Available stock quantity").nullable().optional(),
25
+ sellerId: z.string().describe("Unique seller identifier").nullable().optional(),
26
+ shipping: ScrapeDoGetAmazonOffers_ShippingInfoSchema.nullable().optional(),
27
+ condition: z.string().describe("Product condition (New, Used, Refurbished)").nullable().optional(),
28
+ listPrice: ScrapeDoGetAmazonOffers_PriceInfoSchema.nullable().optional(),
29
+ shipsFrom: z.string().describe("Shipping origin location").nullable().optional(),
30
+ offerHeader: z.string().describe("Offer header text").nullable().optional(),
31
+ listingPrice: ScrapeDoGetAmazonOffers_PriceInfoSchema.nullable().optional(),
32
+ merchantName: z.string().describe("Seller display name").nullable().optional(),
33
+ shippingTime: ScrapeDoGetAmazonOffers_ShippingTimeSchema.nullable().optional(),
34
+ isBuyBoxWinner: z.boolean().describe("Whether this offer holds the Buy Box").nullable().optional(),
35
+ primeInformation: ScrapeDoGetAmazonOffers_PrimeInformationSchema.nullable().optional(),
36
+ isFulfilledByAmazon: z.boolean().describe("Whether fulfilled by Amazon (FBA)").nullable().optional()
37
+ }).describe("Individual seller offer details.");
38
+ const scrapeDoGetAmazonOffers = action("SCRAPE_DO_GET_AMAZON_OFFERS", {
39
+ slug: "scrape_do-get-amazon-offers",
40
+ name: "Get Amazon Product Offers",
41
+ description: "Get all seller offers for any Amazon product. Retrieves every seller listing including pricing, shipping costs, seller information, and Buy Box status in structured JSON format. Use when you need to compare prices across multiple sellers or find the best deal for a specific product.",
42
+ input: ScrapeDoGetAmazonOffersInput,
43
+ output: z.object({
44
+ asin: z.string().describe("Product ASIN number").nullable().optional(),
45
+ html: z.string().describe("Full raw HTML when include_html=true").nullable().optional(),
46
+ offers: z.array(ScrapeDoGetAmazonOffers_OfferItemSchema).describe("List of all seller offers for the product").nullable().optional(),
47
+ status: z.string().describe("Request status (success or error)").nullable().optional(),
48
+ errorMessage: z.string().describe("Error message if request failed").nullable().optional()
49
+ }).describe("Response model for Amazon product offers.")
50
+ });
51
+ //#endregion
52
+ export { scrapeDoGetAmazonOffers };
53
+
54
+ //# sourceMappingURL=get-amazon-offers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-amazon-offers.mjs","names":[],"sources":["../../src/actions/get-amazon-offers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScrapeDoGetAmazonOffersInput: z.ZodTypeAny = z.object({\n asin: z.string().describe(\"Amazon Standard Identification Number (10-character product ID)\"),\n geocode: z.string().describe(\"Country code for Amazon marketplace (e.g., us, gb, de, jp, fr, es, it, ca)\"),\n zipcode: z.string().describe(\"Postal/ZIP code formatted according to country requirements\"),\n super_mode: z.boolean().describe(\"Enable residential/mobile proxies for higher success rates. Costs 10x credits\").optional(),\n include_html: z.boolean().describe(\"When true, includes the full raw HTML alongside structured JSON\").optional(),\n}).describe(\"Request model for retrieving Amazon product offers.\");\nconst ScrapeDoGetAmazonOffers_DiscountInfoSchema: z.ZodTypeAny = z.object({\n percentage: z.number().describe(\"Discount percentage\").nullable().optional(),\n}).describe(\"Discount details.\");\nconst ScrapeDoGetAmazonOffers_ShippingInfoSchema: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Shipping cost amount\").nullable().optional(),\n currencyCode: z.string().describe(\"Currency code (e.g., USD)\").nullable().optional(),\n}).describe(\"Shipping cost information.\");\nconst ScrapeDoGetAmazonOffers_PriceInfoSchema: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Price amount in the currency\").nullable().optional(),\n currencyCode: z.string().describe(\"Currency code (e.g., USD)\").nullable().optional(),\n}).describe(\"Price information structure.\");\nconst ScrapeDoGetAmazonOffers_ShippingTimeSchema: z.ZodTypeAny = z.object({\n displayString: z.string().describe(\"Human-readable shipping time (e.g., 'Ships in 2-3 business days')\").nullable().optional(),\n}).describe(\"Shipping time details.\");\nconst ScrapeDoGetAmazonOffers_PrimeInformationSchema: z.ZodTypeAny = z.object({\n isPrime: z.boolean().describe(\"Whether Prime shipping available\").nullable().optional(),\n}).describe(\"Prime eligibility details.\");\nconst ScrapeDoGetAmazonOffers_OfferItemSchema: z.ZodTypeAny = z.object({\n discount: ScrapeDoGetAmazonOffers_DiscountInfoSchema.nullable().optional(),\n quantity: z.number().int().describe(\"Available stock quantity\").nullable().optional(),\n sellerId: z.string().describe(\"Unique seller identifier\").nullable().optional(),\n shipping: ScrapeDoGetAmazonOffers_ShippingInfoSchema.nullable().optional(),\n condition: z.string().describe(\"Product condition (New, Used, Refurbished)\").nullable().optional(),\n listPrice: ScrapeDoGetAmazonOffers_PriceInfoSchema.nullable().optional(),\n shipsFrom: z.string().describe(\"Shipping origin location\").nullable().optional(),\n offerHeader: z.string().describe(\"Offer header text\").nullable().optional(),\n listingPrice: ScrapeDoGetAmazonOffers_PriceInfoSchema.nullable().optional(),\n merchantName: z.string().describe(\"Seller display name\").nullable().optional(),\n shippingTime: ScrapeDoGetAmazonOffers_ShippingTimeSchema.nullable().optional(),\n isBuyBoxWinner: z.boolean().describe(\"Whether this offer holds the Buy Box\").nullable().optional(),\n primeInformation: ScrapeDoGetAmazonOffers_PrimeInformationSchema.nullable().optional(),\n isFulfilledByAmazon: z.boolean().describe(\"Whether fulfilled by Amazon (FBA)\").nullable().optional(),\n}).describe(\"Individual seller offer details.\");\nexport const ScrapeDoGetAmazonOffersOutput: z.ZodTypeAny = z.object({\n asin: z.string().describe(\"Product ASIN number\").nullable().optional(),\n html: z.string().describe(\"Full raw HTML when include_html=true\").nullable().optional(),\n offers: z.array(ScrapeDoGetAmazonOffers_OfferItemSchema).describe(\"List of all seller offers for the product\").nullable().optional(),\n status: z.string().describe(\"Request status (success or error)\").nullable().optional(),\n errorMessage: z.string().describe(\"Error message if request failed\").nullable().optional(),\n}).describe(\"Response model for Amazon product offers.\");\n\nexport const scrapeDoGetAmazonOffers = action(\"SCRAPE_DO_GET_AMAZON_OFFERS\", {\n slug: \"scrape_do-get-amazon-offers\",\n name: \"Get Amazon Product Offers\",\n description: \"Get all seller offers for any Amazon product. Retrieves every seller listing including pricing, shipping costs, seller information, and Buy Box status in structured JSON format. Use when you need to compare prices across multiple sellers or find the best deal for a specific product.\",\n input: ScrapeDoGetAmazonOffersInput,\n output: ScrapeDoGetAmazonOffersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC3F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACzG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC1F,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,qDAAqD;AACjE,MAAM,6CAA2D,EAAE,OAAO,EACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7E,CAAC,CAAC,CAAC,SAAS,mBAAmB;AAC/B,MAAM,6CAA2D,EAAE,OAAO;CACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,S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C,CAAC,SAAS;CAC1E,cAAc,wCAAwC,SAAS,CAAC,CAAC,SAAS;CAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,cAAc,2CAA2C,SAAS,CAAC,CAAC,SAAS;CAC7E,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,kBAAkB,+CAA+C,SAAS,CAAC,CAAC,SAAS;CACrF,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAS9C,MAAa,0BAA0B,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbyD,EAAE,OAAO;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,QAAQ,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
@@ -0,0 +1,65 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-amazon-product.ts
4
+ const ScrapeDoGetAmazonProductInput = zod.z.object({
5
+ asin: zod.z.string().describe("Amazon Standard Identification Number (10-character product ID)"),
6
+ geocode: zod.z.string().describe("Country code (e.g., us, gb, de, jp, fr, ca)"),
7
+ zipcode: zod.z.string().describe("Postal code formatted according to country requirements"),
8
+ language: zod.z.string().describe("Language code in ISO 639-1 format (e.g., EN, DE, FR)").optional(),
9
+ super_mode: zod.z.boolean().describe("Enable residential/mobile proxies for higher success rates. Costs 10x credits").optional(),
10
+ include_html: zod.z.boolean().describe("When true, includes the full raw HTML alongside structured JSON").optional()
11
+ }).describe("Request model for SCRAPE_DO_GET_AMAZON_PRODUCT action.");
12
+ const ScrapeDoGetAmazonProduct_ProductImageSchema = zod.z.object({
13
+ url: zod.z.string().describe("Image URL").nullable().optional(),
14
+ width: zod.z.number().int().describe("Image width in pixels").nullable().optional(),
15
+ height: zod.z.number().int().describe("Image height in pixels").nullable().optional()
16
+ }).describe("Product image information.");
17
+ const ScrapeDoGetAmazonProduct_ShippingInfoSchema = zod.z.object({
18
+ message: zod.z.string().describe("Shipping message").nullable().optional(),
19
+ delivery_date: zod.z.string().describe("Expected delivery date").nullable().optional()
20
+ }).describe("Shipping information.");
21
+ const ScrapeDoGetAmazonProduct_BuyingChoiceSchema = zod.z.object({
22
+ price: zod.z.number().describe("Price for this buying choice").nullable().optional(),
23
+ seller: zod.z.string().describe("Seller name").nullable().optional(),
24
+ condition: zod.z.string().describe("Product condition (new, used, refurbished)").nullable().optional()
25
+ }).describe("Alternative buying choice information.");
26
+ const ScrapeDoGetAmazonProduct_MoreBuyingChoicesSchema = zod.z.object({ choices: zod.z.array(ScrapeDoGetAmazonProduct_BuyingChoiceSchema).describe("List of alternative buying options").nullable().optional() }).describe("More buying choices structure.");
27
+ const ScrapeDoGetAmazonProduct_BestSellerRankingSchema = zod.z.object({
28
+ url: zod.z.string().describe("Category URL").nullable().optional(),
29
+ rank: zod.z.number().int().describe("Rank in the category").nullable().optional(),
30
+ category: zod.z.string().describe("Product category name").nullable().optional()
31
+ }).describe("Best seller ranking information.");
32
+ const ScrapeDoGetAmazonProductOutput = zod.z.object({
33
+ url: zod.z.string().describe("Canonical product URL").nullable().optional(),
34
+ asin: zod.z.string().describe("Product ASIN number").nullable().optional(),
35
+ html: zod.z.string().describe("Full raw HTML when include_html=true").nullable().optional(),
36
+ name: zod.z.string().describe("Full product title").nullable().optional(),
37
+ brand: zod.z.string().describe("Brand name").nullable().optional(),
38
+ price: zod.z.number().describe("Current selling price").nullable().optional(),
39
+ images: zod.z.array(ScrapeDoGetAmazonProduct_ProductImageSchema).describe("All product images with URLs and dimensions").nullable().optional(),
40
+ rating: zod.z.number().describe("Average star rating (0-5)").nullable().optional(),
41
+ status: zod.z.string().describe("Request status (success or error)").nullable().optional(),
42
+ currency: zod.z.string().describe("Currency code (USD, EUR, GBP)").nullable().optional(),
43
+ is_prime: zod.z.boolean().describe("Whether Prime shipping is available").nullable().optional(),
44
+ thumbnail: zod.z.string().describe("Primary product image URL").nullable().optional(),
45
+ list_price: zod.z.number().describe("Original list price if discounted").nullable().optional(),
46
+ errorMessage: zod.z.string().describe("Error message if request failed").nullable().optional(),
47
+ is_sponsored: zod.z.boolean().describe("Whether the product is a sponsored listing").nullable().optional(),
48
+ shipping_info: zod.z.union([zod.z.array(ScrapeDoGetAmazonProduct_ShippingInfoSchema), zod.z.array(zod.z.string())]).nullable().optional(),
49
+ total_ratings: zod.z.number().int().describe("Total number of customer ratings").nullable().optional(),
50
+ currency_symbol: zod.z.string().describe("Currency symbol ($, EUR, GBP)").nullable().optional(),
51
+ technical_details: zod.z.object({}).describe("Key-value pairs of product specifications").nullable().optional(),
52
+ more_buying_choices: ScrapeDoGetAmazonProduct_MoreBuyingChoicesSchema.nullable().optional(),
53
+ best_seller_rankings: zod.z.array(ScrapeDoGetAmazonProduct_BestSellerRankingSchema).describe("Category rankings").nullable().optional()
54
+ }).describe("Response model for SCRAPE_DO_GET_AMAZON_PRODUCT action.");
55
+ const scrapeDoGetAmazonProduct = require_action.action("SCRAPE_DO_GET_AMAZON_PRODUCT", {
56
+ slug: "scrape_do-get-amazon-product",
57
+ name: "Get Amazon product details",
58
+ 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.",
59
+ input: ScrapeDoGetAmazonProductInput,
60
+ output: ScrapeDoGetAmazonProductOutput
61
+ });
62
+ //#endregion
63
+ exports.scrapeDoGetAmazonProduct = scrapeDoGetAmazonProduct;
64
+
65
+ //# sourceMappingURL=get-amazon-product.cjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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}).describe(\"Product image information.\");\nconst ScrapeDoGetAmazonProduct_ShippingInfoSchema: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Shipping message\").nullable().optional(),\n delivery_date: z.string().describe(\"Expected delivery date\").nullable().optional(),\n}).describe(\"Shipping information.\");\nconst ScrapeDoGetAmazonProduct_BuyingChoiceSchema: z.ZodTypeAny = 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}).describe(\"Alternative buying choice information.\");\nconst ScrapeDoGetAmazonProduct_MoreBuyingChoicesSchema: z.ZodTypeAny = z.object({\n choices: z.array(ScrapeDoGetAmazonProduct_BuyingChoiceSchema).describe(\"List of alternative buying options\").nullable().optional(),\n}).describe(\"More buying choices structure.\");\nconst ScrapeDoGetAmazonProduct_BestSellerRankingSchema: z.ZodTypeAny = 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}).describe(\"Best seller ranking information.\");\nexport const ScrapeDoGetAmazonProductOutput: z.ZodTypeAny = 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.object({}).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}).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":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,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,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EA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CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-amazon-product.d.ts
4
+ declare const ScrapeDoGetAmazonProductInput: z.ZodTypeAny;
5
+ declare const ScrapeDoGetAmazonProductOutput: z.ZodTypeAny;
6
+ declare const scrapeDoGetAmazonProduct: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { scrapeDoGetAmazonProduct };
9
+ //# sourceMappingURL=get-amazon-product.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-amazon-product.d.cts","names":[],"sources":["../../src/actions/get-amazon-product.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAOuB;AAAA,cAuBxD,8BAAA,EAAgC,CAAA,CAAE,UAsBuB;AAAA,cAEzD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-amazon-product.d.ts
4
+ declare const ScrapeDoGetAmazonProductInput: z.ZodTypeAny;
5
+ declare const ScrapeDoGetAmazonProductOutput: z.ZodTypeAny;
6
+ declare const scrapeDoGetAmazonProduct: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { scrapeDoGetAmazonProduct };
9
+ //# sourceMappingURL=get-amazon-product.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-amazon-product.d.mts","names":[],"sources":["../../src/actions/get-amazon-product.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAOuB;AAAA,cAuBxD,8BAAA,EAAgC,CAAA,CAAE,UAsBuB;AAAA,cAEzD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,64 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-amazon-product.ts
4
+ const ScrapeDoGetAmazonProductInput = z.object({
5
+ asin: z.string().describe("Amazon Standard Identification Number (10-character product ID)"),
6
+ geocode: z.string().describe("Country code (e.g., us, gb, de, jp, fr, ca)"),
7
+ zipcode: z.string().describe("Postal code formatted according to country requirements"),
8
+ language: z.string().describe("Language code in ISO 639-1 format (e.g., EN, DE, FR)").optional(),
9
+ super_mode: z.boolean().describe("Enable residential/mobile proxies for higher success rates. Costs 10x credits").optional(),
10
+ include_html: z.boolean().describe("When true, includes the full raw HTML alongside structured JSON").optional()
11
+ }).describe("Request model for SCRAPE_DO_GET_AMAZON_PRODUCT action.");
12
+ const ScrapeDoGetAmazonProduct_ProductImageSchema = z.object({
13
+ url: z.string().describe("Image URL").nullable().optional(),
14
+ width: z.number().int().describe("Image width in pixels").nullable().optional(),
15
+ height: z.number().int().describe("Image height in pixels").nullable().optional()
16
+ }).describe("Product image information.");
17
+ const ScrapeDoGetAmazonProduct_ShippingInfoSchema = z.object({
18
+ message: z.string().describe("Shipping message").nullable().optional(),
19
+ delivery_date: z.string().describe("Expected delivery date").nullable().optional()
20
+ }).describe("Shipping information.");
21
+ const ScrapeDoGetAmazonProduct_BuyingChoiceSchema = z.object({
22
+ price: z.number().describe("Price for this buying choice").nullable().optional(),
23
+ seller: z.string().describe("Seller name").nullable().optional(),
24
+ condition: z.string().describe("Product condition (new, used, refurbished)").nullable().optional()
25
+ }).describe("Alternative buying choice information.");
26
+ const ScrapeDoGetAmazonProduct_MoreBuyingChoicesSchema = z.object({ choices: z.array(ScrapeDoGetAmazonProduct_BuyingChoiceSchema).describe("List of alternative buying options").nullable().optional() }).describe("More buying choices structure.");
27
+ const ScrapeDoGetAmazonProduct_BestSellerRankingSchema = z.object({
28
+ url: z.string().describe("Category URL").nullable().optional(),
29
+ rank: z.number().int().describe("Rank in the category").nullable().optional(),
30
+ category: z.string().describe("Product category name").nullable().optional()
31
+ }).describe("Best seller ranking information.");
32
+ const scrapeDoGetAmazonProduct = action("SCRAPE_DO_GET_AMAZON_PRODUCT", {
33
+ slug: "scrape_do-get-amazon-product",
34
+ name: "Get Amazon product details",
35
+ 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.",
36
+ input: ScrapeDoGetAmazonProductInput,
37
+ output: z.object({
38
+ url: z.string().describe("Canonical product URL").nullable().optional(),
39
+ asin: z.string().describe("Product ASIN number").nullable().optional(),
40
+ html: z.string().describe("Full raw HTML when include_html=true").nullable().optional(),
41
+ name: z.string().describe("Full product title").nullable().optional(),
42
+ brand: z.string().describe("Brand name").nullable().optional(),
43
+ price: z.number().describe("Current selling price").nullable().optional(),
44
+ images: z.array(ScrapeDoGetAmazonProduct_ProductImageSchema).describe("All product images with URLs and dimensions").nullable().optional(),
45
+ rating: z.number().describe("Average star rating (0-5)").nullable().optional(),
46
+ status: z.string().describe("Request status (success or error)").nullable().optional(),
47
+ currency: z.string().describe("Currency code (USD, EUR, GBP)").nullable().optional(),
48
+ is_prime: z.boolean().describe("Whether Prime shipping is available").nullable().optional(),
49
+ thumbnail: z.string().describe("Primary product image URL").nullable().optional(),
50
+ list_price: z.number().describe("Original list price if discounted").nullable().optional(),
51
+ errorMessage: z.string().describe("Error message if request failed").nullable().optional(),
52
+ is_sponsored: z.boolean().describe("Whether the product is a sponsored listing").nullable().optional(),
53
+ shipping_info: z.union([z.array(ScrapeDoGetAmazonProduct_ShippingInfoSchema), z.array(z.string())]).nullable().optional(),
54
+ total_ratings: z.number().int().describe("Total number of customer ratings").nullable().optional(),
55
+ currency_symbol: z.string().describe("Currency symbol ($, EUR, GBP)").nullable().optional(),
56
+ technical_details: z.object({}).describe("Key-value pairs of product specifications").nullable().optional(),
57
+ more_buying_choices: ScrapeDoGetAmazonProduct_MoreBuyingChoicesSchema.nullable().optional(),
58
+ best_seller_rankings: z.array(ScrapeDoGetAmazonProduct_BestSellerRankingSchema).describe("Category rankings").nullable().optional()
59
+ }).describe("Response model for SCRAPE_DO_GET_AMAZON_PRODUCT action.")
60
+ });
61
+ //#endregion
62
+ export { scrapeDoGetAmazonProduct };
63
+
64
+ //# sourceMappingURL=get-amazon-product.mjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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}).describe(\"Product image information.\");\nconst ScrapeDoGetAmazonProduct_ShippingInfoSchema: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Shipping message\").nullable().optional(),\n delivery_date: z.string().describe(\"Expected delivery date\").nullable().optional(),\n}).describe(\"Shipping information.\");\nconst ScrapeDoGetAmazonProduct_BuyingChoiceSchema: z.ZodTypeAny = 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}).describe(\"Alternative buying choice information.\");\nconst ScrapeDoGetAmazonProduct_MoreBuyingChoicesSchema: z.ZodTypeAny = z.object({\n choices: z.array(ScrapeDoGetAmazonProduct_BuyingChoiceSchema).describe(\"List of alternative buying options\").nullable().optional(),\n}).describe(\"More buying choices structure.\");\nconst ScrapeDoGetAmazonProduct_BestSellerRankingSchema: z.ZodTypeAny = 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}).describe(\"Best seller ranking information.\");\nexport const ScrapeDoGetAmazonProductOutput: z.ZodTypeAny = 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.object({}).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}).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":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO;CAClE,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,8CAA4D,EAAE,OAAO;CACzE,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,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C,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,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,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,SAAS,yDAOF;AACV,CAAC"}
@@ -0,0 +1,24 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-amazon-raw-html.ts
4
+ const ScrapeDoGetAmazonRawHtmlInput = zod.z.object({
5
+ url: zod.z.string().describe("Full Amazon URL to scrape (e.g., https://www.amazon.com/dp/B08N5WRWNW)"),
6
+ "super": zod.z.boolean().describe("Enable residential/mobile proxies for higher success rates. Costs 10x credits. Default is false.").optional(),
7
+ output: zod.z.string().default("html").describe("Output format - must be 'html' for raw HTML content").optional(),
8
+ geocode: zod.z.string().describe("Country code for geo-targeting (e.g., us, gb, de, jp)"),
9
+ timeout: zod.z.number().int().describe("Request timeout in milliseconds").optional(),
10
+ zipcode: zod.z.string().describe("Postal code formatted according to country requirements (e.g., 10001 for US, SW1A 1AA for UK)"),
11
+ language: zod.z.string().describe("Language code in ISO 639-1 format (e.g., EN, DE, FR, ES)").optional()
12
+ }).describe("Request model for SCRAPE_DO_GET_AMAZON_RAW_HTML action.");
13
+ const ScrapeDoGetAmazonRawHtmlOutput = zod.z.object({ html: zod.z.string().describe("Raw HTML content of the Amazon page") }).describe("Response model for SCRAPE_DO_GET_AMAZON_RAW_HTML action.");
14
+ const scrapeDoGetAmazonRawHtml = require_action.action("SCRAPE_DO_GET_AMAZON_RAW_HTML", {
15
+ slug: "scrape_do-get-amazon-raw-html",
16
+ name: "Get Amazon raw HTML",
17
+ 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.",
18
+ input: ScrapeDoGetAmazonRawHtmlInput,
19
+ output: ScrapeDoGetAmazonRawHtmlOutput
20
+ });
21
+ //#endregion
22
+ exports.scrapeDoGetAmazonRawHtml = scrapeDoGetAmazonRawHtml;
23
+
24
+ //# sourceMappingURL=get-amazon-raw-html.cjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n html: z.string().describe(\"Raw HTML content of the Amazon page\"),\n}).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":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,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,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,EACjE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,2BAA2BC,eAAAA,OAAO,iCAAiC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-amazon-raw-html.d.ts
4
+ declare const ScrapeDoGetAmazonRawHtmlInput: z.ZodTypeAny;
5
+ declare const ScrapeDoGetAmazonRawHtmlOutput: z.ZodTypeAny;
6
+ declare const scrapeDoGetAmazonRawHtml: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { scrapeDoGetAmazonRawHtml };
9
+ //# sourceMappingURL=get-amazon-raw-html.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-amazon-raw-html.d.cts","names":[],"sources":["../../src/actions/get-amazon-raw-html.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAQwB;AAAA,cACzD,8BAAA,EAAgC,CAAA,CAAE,UAEwB;AAAA,cAE1D,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-amazon-raw-html.d.ts
4
+ declare const ScrapeDoGetAmazonRawHtmlInput: z.ZodTypeAny;
5
+ declare const ScrapeDoGetAmazonRawHtmlOutput: z.ZodTypeAny;
6
+ declare const scrapeDoGetAmazonRawHtml: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { scrapeDoGetAmazonRawHtml };
9
+ //# sourceMappingURL=get-amazon-raw-html.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-amazon-raw-html.d.mts","names":[],"sources":["../../src/actions/get-amazon-raw-html.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAQwB;AAAA,cACzD,8BAAA,EAAgC,CAAA,CAAE,UAEwB;AAAA,cAE1D,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,21 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const scrapeDoGetAmazonRawHtml = action("SCRAPE_DO_GET_AMAZON_RAW_HTML", {
4
+ slug: "scrape_do-get-amazon-raw-html",
5
+ name: "Get Amazon raw HTML",
6
+ 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.",
7
+ input: z.object({
8
+ url: z.string().describe("Full Amazon URL to scrape (e.g., https://www.amazon.com/dp/B08N5WRWNW)"),
9
+ "super": z.boolean().describe("Enable residential/mobile proxies for higher success rates. Costs 10x credits. Default is false.").optional(),
10
+ output: z.string().default("html").describe("Output format - must be 'html' for raw HTML content").optional(),
11
+ geocode: z.string().describe("Country code for geo-targeting (e.g., us, gb, de, jp)"),
12
+ timeout: z.number().int().describe("Request timeout in milliseconds").optional(),
13
+ zipcode: z.string().describe("Postal code formatted according to country requirements (e.g., 10001 for US, SW1A 1AA for UK)"),
14
+ language: z.string().describe("Language code in ISO 639-1 format (e.g., EN, DE, FR, ES)").optional()
15
+ }).describe("Request model for SCRAPE_DO_GET_AMAZON_RAW_HTML action."),
16
+ output: z.object({ html: z.string().describe("Raw HTML content of the Amazon page") }).describe("Response model for SCRAPE_DO_GET_AMAZON_RAW_HTML action.")
17
+ });
18
+ //#endregion
19
+ export { scrapeDoGetAmazonRawHtml };
20
+
21
+ //# sourceMappingURL=get-amazon-raw-html.mjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n html: z.string().describe(\"Raw HTML content of the Amazon page\"),\n}).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":";;AAiBA,MAAa,2BAA2B,OAAO,iCAAiC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjByD,EAAE,OAAO;EAClE,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,yDASH;CACP,QAT0D,EAAE,OAAO,EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,EACjE,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
@@ -0,0 +1,21 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-async-account-info.ts
4
+ const ScrapeDoGetAsyncAccountInfoInput = zod.z.object({}).describe("Request model for getting Async API account information.");
5
+ const ScrapeDoGetAsyncAccountInfoOutput = zod.z.object({
6
+ ActiveJobs: zod.z.number().int().describe("Number of currently active jobs"),
7
+ FreeConcurrency: zod.z.number().int().describe("Available free concurrency slots"),
8
+ AvaliableCredits: zod.z.number().int().describe("Number of available credits"),
9
+ TotalConcurrency: zod.z.number().int().describe("Total concurrency limit for the account")
10
+ }).describe("Response model for Async API account information.");
11
+ const scrapeDoGetAsyncAccountInfo = require_action.action("SCRAPE_DO_GET_ASYNC_ACCOUNT_INFO", {
12
+ slug: "scrape_do-get-async-account-info",
13
+ name: "Get Async API Account Information",
14
+ 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.",
15
+ input: ScrapeDoGetAsyncAccountInfoInput,
16
+ output: ScrapeDoGetAsyncAccountInfoOutput
17
+ });
18
+ //#endregion
19
+ exports.scrapeDoGetAsyncAccountInfo = scrapeDoGetAsyncAccountInfo;
20
+
21
+ //# sourceMappingURL=get-async-account-info.cjs.map
@@ -0,0 +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.ZodTypeAny = z.object({}).describe(\"Request model for getting Async API account information.\");\nexport const ScrapeDoGetAsyncAccountInfoOutput: z.ZodTypeAny = z.object({\n ActiveJobs: z.number().int().describe(\"Number of currently active jobs\"),\n FreeConcurrency: z.number().int().describe(\"Available free concurrency slots\"),\n AvaliableCredits: z.number().int().describe(\"Number of available credits\"),\n TotalConcurrency: z.number().int().describe(\"Total concurrency limit for the account\"),\n}).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":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAC9I,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CACvE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CAC7E,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CACzE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;AACvF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,8BAA8BC,eAAAA,OAAO,oCAAoC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-async-account-info.d.ts
4
+ declare const ScrapeDoGetAsyncAccountInfoInput: z.ZodTypeAny;
5
+ declare const ScrapeDoGetAsyncAccountInfoOutput: z.ZodTypeAny;
6
+ declare const scrapeDoGetAsyncAccountInfo: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { scrapeDoGetAsyncAccountInfo };
9
+ //# sourceMappingURL=get-async-account-info.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-async-account-info.d.cts","names":[],"sources":["../../src/actions/get-async-account-info.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAA8F;AAAA,cAClI,iCAAA,EAAmC,CAAA,CAAE,UAKc;AAAA,cAEnD,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-async-account-info.d.ts
4
+ declare const ScrapeDoGetAsyncAccountInfoInput: z.ZodTypeAny;
5
+ declare const ScrapeDoGetAsyncAccountInfoOutput: z.ZodTypeAny;
6
+ declare const scrapeDoGetAsyncAccountInfo: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { scrapeDoGetAsyncAccountInfo };
9
+ //# sourceMappingURL=get-async-account-info.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-async-account-info.d.mts","names":[],"sources":["../../src/actions/get-async-account-info.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAA8F;AAAA,cAClI,iCAAA,EAAmC,CAAA,CAAE,UAKc;AAAA,cAEnD,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,18 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const scrapeDoGetAsyncAccountInfo = action("SCRAPE_DO_GET_ASYNC_ACCOUNT_INFO", {
4
+ slug: "scrape_do-get-async-account-info",
5
+ name: "Get Async API Account Information",
6
+ 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.",
7
+ input: z.object({}).describe("Request model for getting Async API account information."),
8
+ output: z.object({
9
+ ActiveJobs: z.number().int().describe("Number of currently active jobs"),
10
+ FreeConcurrency: z.number().int().describe("Available free concurrency slots"),
11
+ AvaliableCredits: z.number().int().describe("Number of available credits"),
12
+ TotalConcurrency: z.number().int().describe("Total concurrency limit for the account")
13
+ }).describe("Response model for Async API account information.")
14
+ });
15
+ //#endregion
16
+ export { scrapeDoGetAsyncAccountInfo };
17
+
18
+ //# sourceMappingURL=get-async-account-info.mjs.map
@@ -0,0 +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.ZodTypeAny = z.object({}).describe(\"Request model for getting Async API account information.\");\nexport const ScrapeDoGetAsyncAccountInfoOutput: z.ZodTypeAny = z.object({\n ActiveJobs: z.number().int().describe(\"Number of currently active jobs\"),\n FreeConcurrency: z.number().int().describe(\"Available free concurrency slots\"),\n AvaliableCredits: z.number().int().describe(\"Number of available credits\"),\n TotalConcurrency: z.number().int().describe(\"Total concurrency limit for the account\"),\n}).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":";;AAYA,MAAa,8BAA8B,OAAO,oCAAoC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ4D,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAY3E;CACP,QAZ6D,EAAE,OAAO;EACtE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;EACvE,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;EAC7E,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;EACzE,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACvF,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
@@ -0,0 +1,30 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-async-job.ts
4
+ const ScrapeDoGetAsyncJobInput = zod.z.object({ jobID: zod.z.string().describe("Unique identifier of the job to retrieve") }).describe("Request model for getting async job details.");
5
+ const ScrapeDoGetAsyncJob_TaskInfoSchema = zod.z.object({
6
+ url: zod.z.string().describe("URL being scraped by this task").nullable().optional(),
7
+ status: zod.z.string().describe("Current status of the task").nullable().optional(),
8
+ taskID: zod.z.string().describe("Unique identifier of the task").nullable().optional()
9
+ }).describe("Information about a task within a job.");
10
+ const ScrapeDoGetAsyncJobOutput = zod.z.object({
11
+ jobID: zod.z.string().describe("Unique job identifier").nullable().optional(),
12
+ tasks: zod.z.array(ScrapeDoGetAsyncJob_TaskInfoSchema).describe("List of tasks with their details and status").nullable().optional(),
13
+ status: zod.z.string().describe("Job status: pending, processing, completed, or failed").nullable().optional(),
14
+ createdAt: zod.z.string().describe("ISO timestamp when job was created").nullable().optional(),
15
+ totalTasks: zod.z.number().int().describe("Total number of tasks in job").nullable().optional(),
16
+ completedAt: zod.z.string().describe("ISO timestamp when job completed").nullable().optional(),
17
+ failedTasks: zod.z.number().int().describe("Number of failed tasks").nullable().optional(),
18
+ completedTasks: zod.z.number().int().describe("Number of completed tasks").nullable().optional()
19
+ }).describe("Response model for async job details.");
20
+ const scrapeDoGetAsyncJob = require_action.action("SCRAPE_DO_GET_ASYNC_JOB", {
21
+ slug: "scrape_do-get-async-job",
22
+ name: "Get Async Job Details",
23
+ 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.",
24
+ input: ScrapeDoGetAsyncJobInput,
25
+ output: ScrapeDoGetAsyncJobOutput
26
+ });
27
+ //#endregion
28
+ exports.scrapeDoGetAsyncJob = scrapeDoGetAsyncJob;
29
+
30
+ //# sourceMappingURL=get-async-job.cjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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}).describe(\"Information about a task within a job.\");\nexport const ScrapeDoGetAsyncJobOutput: z.ZodTypeAny = 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}).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":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACvE,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,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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
+ //#region src/actions/get-async-job.d.ts
4
+ declare const ScrapeDoGetAsyncJobInput: z.ZodTypeAny;
5
+ declare const ScrapeDoGetAsyncJobOutput: z.ZodTypeAny;
6
+ declare const scrapeDoGetAsyncJob: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { scrapeDoGetAsyncJob };
9
+ //# sourceMappingURL=get-async-job.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-async-job.d.cts","names":[],"sources":["../../src/actions/get-async-job.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEkB;AAAA,cAM9C,yBAAA,EAA2B,CAAA,CAAE,UASU;AAAA,cAEvC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-async-job.d.ts
4
+ declare const ScrapeDoGetAsyncJobInput: z.ZodTypeAny;
5
+ declare const ScrapeDoGetAsyncJobOutput: z.ZodTypeAny;
6
+ declare const scrapeDoGetAsyncJob: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { scrapeDoGetAsyncJob };
9
+ //# sourceMappingURL=get-async-job.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-async-job.d.mts","names":[],"sources":["../../src/actions/get-async-job.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEkB;AAAA,cAM9C,yBAAA,EAA2B,CAAA,CAAE,UASU;AAAA,cAEvC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,29 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-async-job.ts
4
+ const ScrapeDoGetAsyncJobInput = z.object({ jobID: z.string().describe("Unique identifier of the job to retrieve") }).describe("Request model for getting async job details.");
5
+ const ScrapeDoGetAsyncJob_TaskInfoSchema = z.object({
6
+ url: z.string().describe("URL being scraped by this task").nullable().optional(),
7
+ status: z.string().describe("Current status of the task").nullable().optional(),
8
+ taskID: z.string().describe("Unique identifier of the task").nullable().optional()
9
+ }).describe("Information about a task within a job.");
10
+ const scrapeDoGetAsyncJob = action("SCRAPE_DO_GET_ASYNC_JOB", {
11
+ slug: "scrape_do-get-async-job",
12
+ name: "Get Async Job Details",
13
+ 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.",
14
+ input: ScrapeDoGetAsyncJobInput,
15
+ output: z.object({
16
+ jobID: z.string().describe("Unique job identifier").nullable().optional(),
17
+ tasks: z.array(ScrapeDoGetAsyncJob_TaskInfoSchema).describe("List of tasks with their details and status").nullable().optional(),
18
+ status: z.string().describe("Job status: pending, processing, completed, or failed").nullable().optional(),
19
+ createdAt: z.string().describe("ISO timestamp when job was created").nullable().optional(),
20
+ totalTasks: z.number().int().describe("Total number of tasks in job").nullable().optional(),
21
+ completedAt: z.string().describe("ISO timestamp when job completed").nullable().optional(),
22
+ failedTasks: z.number().int().describe("Number of failed tasks").nullable().optional(),
23
+ completedTasks: z.number().int().describe("Number of completed tasks").nullable().optional()
24
+ }).describe("Response model for async job details.")
25
+ });
26
+ //#endregion
27
+ export { scrapeDoGetAsyncJob };
28
+
29
+ //# sourceMappingURL=get-async-job.mjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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}).describe(\"Information about a task within a job.\");\nexport const ScrapeDoGetAsyncJobOutput: z.ZodTypeAny = 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}).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":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO,EAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACvE,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,qCAAmD,EAAE,OAAO;CAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,S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