@keystrokehq/retailed 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 (82) 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/get-goat-prices.cjs +30 -0
  7. package/dist/actions/get-goat-prices.cjs.map +1 -0
  8. package/dist/actions/get-goat-prices.d.cts +9 -0
  9. package/dist/actions/get-goat-prices.d.cts.map +1 -0
  10. package/dist/actions/get-goat-prices.d.mts +9 -0
  11. package/dist/actions/get-goat-prices.d.mts.map +1 -0
  12. package/dist/actions/get-goat-prices.mjs +29 -0
  13. package/dist/actions/get-goat-prices.mjs.map +1 -0
  14. package/dist/actions/get-stock-x-product.cjs +33 -0
  15. package/dist/actions/get-stock-x-product.cjs.map +1 -0
  16. package/dist/actions/get-stock-x-product.d.cts +9 -0
  17. package/dist/actions/get-stock-x-product.d.cts.map +1 -0
  18. package/dist/actions/get-stock-x-product.d.mts +9 -0
  19. package/dist/actions/get-stock-x-product.d.mts.map +1 -0
  20. package/dist/actions/get-stock-x-product.mjs +32 -0
  21. package/dist/actions/get-stock-x-product.mjs.map +1 -0
  22. package/dist/actions/get-stockx-search.cjs +35 -0
  23. package/dist/actions/get-stockx-search.cjs.map +1 -0
  24. package/dist/actions/get-stockx-search.d.cts +9 -0
  25. package/dist/actions/get-stockx-search.d.cts.map +1 -0
  26. package/dist/actions/get-stockx-search.d.mts +9 -0
  27. package/dist/actions/get-stockx-search.d.mts.map +1 -0
  28. package/dist/actions/get-stockx-search.mjs +34 -0
  29. package/dist/actions/get-stockx-search.mjs.map +1 -0
  30. package/dist/actions/get-stockx-trends.cjs +32 -0
  31. package/dist/actions/get-stockx-trends.cjs.map +1 -0
  32. package/dist/actions/get-stockx-trends.d.cts +9 -0
  33. package/dist/actions/get-stockx-trends.d.cts.map +1 -0
  34. package/dist/actions/get-stockx-trends.d.mts +9 -0
  35. package/dist/actions/get-stockx-trends.d.mts.map +1 -0
  36. package/dist/actions/get-stockx-trends.mjs +31 -0
  37. package/dist/actions/get-stockx-trends.mjs.map +1 -0
  38. package/dist/actions/get-usage.cjs +19 -0
  39. package/dist/actions/get-usage.cjs.map +1 -0
  40. package/dist/actions/get-usage.d.cts +9 -0
  41. package/dist/actions/get-usage.d.cts.map +1 -0
  42. package/dist/actions/get-usage.d.mts +9 -0
  43. package/dist/actions/get-usage.d.mts.map +1 -0
  44. package/dist/actions/get-usage.mjs +16 -0
  45. package/dist/actions/get-usage.mjs.map +1 -0
  46. package/dist/actions/index.cjs +13 -0
  47. package/dist/actions/index.d.cts +7 -0
  48. package/dist/actions/index.d.mts +7 -0
  49. package/dist/actions/index.mjs +7 -0
  50. package/dist/actions/search-products.cjs +57 -0
  51. package/dist/actions/search-products.cjs.map +1 -0
  52. package/dist/actions/search-products.d.cts +9 -0
  53. package/dist/actions/search-products.d.cts.map +1 -0
  54. package/dist/actions/search-products.d.mts +9 -0
  55. package/dist/actions/search-products.d.mts.map +1 -0
  56. package/dist/actions/search-products.mjs +56 -0
  57. package/dist/actions/search-products.mjs.map +1 -0
  58. package/dist/app.cjs +9 -0
  59. package/dist/app.cjs.map +1 -0
  60. package/dist/app.d.cts +5 -0
  61. package/dist/app.d.cts.map +1 -0
  62. package/dist/app.d.mts +5 -0
  63. package/dist/app.d.mts.map +1 -0
  64. package/dist/app.mjs +10 -0
  65. package/dist/app.mjs.map +1 -0
  66. package/dist/catalog.cjs +15 -0
  67. package/dist/catalog.cjs.map +1 -0
  68. package/dist/catalog.d.cts +14 -0
  69. package/dist/catalog.d.cts.map +1 -0
  70. package/dist/catalog.d.mts +14 -0
  71. package/dist/catalog.d.mts.map +1 -0
  72. package/dist/catalog.mjs +15 -0
  73. package/dist/catalog.mjs.map +1 -0
  74. package/dist/execute.cjs +18 -0
  75. package/dist/execute.cjs.map +1 -0
  76. package/dist/execute.mjs +18 -0
  77. package/dist/execute.mjs.map +1 -0
  78. package/dist/index.cjs +18 -0
  79. package/dist/index.d.cts +9 -0
  80. package/dist/index.d.mts +9 -0
  81. package/dist/index.mjs +10 -0
  82. package/package.json +49 -0
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @keystrokehq/retailed
2
+
3
+ Keystroke-managed integration.
4
+
5
+ **App:** `retailed`
6
+ **Version:** `20260615_00`
7
+ **Actions:** 6
8
+
9
+ ```ts
10
+ import { defineAgent } from "@keystrokehq/keystroke/agent";
11
+ import { retailedGetGoatPrices } from "@keystrokehq/retailed/actions";
12
+
13
+ export default defineAgent({
14
+ key: "retailed-agent",
15
+ tools: [retailedGetGoatPrices],
16
+ });
17
+ ```
@@ -0,0 +1,21 @@
1
+ const require_app = require("./app.cjs");
2
+ const require_execute = require("./execute.cjs");
3
+ require("zod");
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return require_app.retailed.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await require_execute.executeRetailedTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ exports.action = action;
20
+
21
+ //# sourceMappingURL=action.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.cjs","names":["retailed","executeRetailedTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { retailed } from \"./app\";\nimport { executeRetailedTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return retailed.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRetailedTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -0,0 +1,21 @@
1
+ import { retailed } from "./app.mjs";
2
+ import { executeRetailedTool } from "./execute.mjs";
3
+ import "zod";
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return retailed.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await executeRetailedTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ export { action };
20
+
21
+ //# sourceMappingURL=action.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { retailed } from \"./app\";\nimport { executeRetailedTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return retailed.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRetailedTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -0,0 +1,30 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-goat-prices.ts
4
+ const RetailedGetGoatPricesInput = zod.z.object({
5
+ size: zod.z.string().describe("Specific product size (if applicable).").optional(),
6
+ country: zod.z.string().describe("Country/market code for pricing (e.g., 'US', 'UK', 'EU').").optional(),
7
+ product_id: zod.z.string().describe("GOAT product ID to fetch prices for. Use numeric ID like '719082' or product slug.")
8
+ });
9
+ const RetailedGetGoatPrices_PriceInfoSchema = zod.z.object({
10
+ size: zod.z.string().describe("Product size."),
11
+ price: zod.z.number().describe("Price for the specified size."),
12
+ currency: zod.z.string().describe("Currency code."),
13
+ last_updated: zod.z.string().describe("Timestamp of the last price update (ISO8601).")
14
+ });
15
+ const RetailedGetGoatPricesOutput = zod.z.object({
16
+ prices: zod.z.array(RetailedGetGoatPrices_PriceInfoSchema).describe("List of prices for the product."),
17
+ status: zod.z.string().describe("Status of the request (e.g., success, error)."),
18
+ product_id: zod.z.string().describe("The unique identifier for the product.")
19
+ });
20
+ const retailedGetGoatPrices = require_action.action("RETAILED_GET_GOAT_PRICES", {
21
+ slug: "retailed-get-goat-prices",
22
+ name: "Get GOAT Product Prices",
23
+ description: "Tool to retrieve pricing information for a specific product on GOAT. Use when you need up-to-date size-based pricing. Call after confirming product_id.",
24
+ input: RetailedGetGoatPricesInput,
25
+ output: RetailedGetGoatPricesOutput
26
+ });
27
+ //#endregion
28
+ exports.retailedGetGoatPrices = retailedGetGoatPrices;
29
+
30
+ //# sourceMappingURL=get-goat-prices.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-goat-prices.cjs","names":["z","action"],"sources":["../../src/actions/get-goat-prices.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetailedGetGoatPricesInput: z.ZodTypeAny = z.object({\n size: z.string().describe(\"Specific product size (if applicable).\").optional(),\n country: z.string().describe(\"Country/market code for pricing (e.g., 'US', 'UK', 'EU').\").optional(),\n product_id: z.string().describe(\"GOAT product ID to fetch prices for. Use numeric ID like '719082' or product slug.\"),\n});\nconst RetailedGetGoatPrices_PriceInfoSchema: z.ZodTypeAny = z.object({\n size: z.string().describe(\"Product size.\"),\n price: z.number().describe(\"Price for the specified size.\"),\n currency: z.string().describe(\"Currency code.\"),\n last_updated: z.string().describe(\"Timestamp of the last price update (ISO8601).\"),\n});\nexport const RetailedGetGoatPricesOutput: z.ZodTypeAny = z.object({\n prices: z.array(RetailedGetGoatPrices_PriceInfoSchema).describe(\"List of prices for the product.\"),\n status: z.string().describe(\"Status of the request (e.g., success, error).\"),\n product_id: z.string().describe(\"The unique identifier for the product.\"),\n});\n\nexport const retailedGetGoatPrices = action(\"RETAILED_GET_GOAT_PRICES\", {\n slug: \"retailed-get-goat-prices\",\n name: \"Get GOAT Product Prices\",\n description: \"Tool to retrieve pricing information for a specific product on GOAT. Use when you need up-to-date size-based pricing. Call after confirming product_id.\",\n input: RetailedGetGoatPricesInput,\n output: RetailedGetGoatPricesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;AACtH,CAAC;AACD,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CACzC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC9C,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AACnF,CAAC;AACD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,QAAQA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,iCAAiC;CACjG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AAC1E,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,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-goat-prices.d.ts
4
+ declare const RetailedGetGoatPricesInput: z.ZodTypeAny;
5
+ declare const RetailedGetGoatPricesOutput: z.ZodTypeAny;
6
+ declare const retailedGetGoatPrices: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { retailedGetGoatPrices };
9
+ //# sourceMappingURL=get-goat-prices.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-goat-prices.d.cts","names":[],"sources":["../../src/actions/get-goat-prices.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAIzC;AAAA,cAOW,2BAAA,EAA6B,CAAA,CAAE,UAI1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-goat-prices.d.ts
4
+ declare const RetailedGetGoatPricesInput: z.ZodTypeAny;
5
+ declare const RetailedGetGoatPricesOutput: z.ZodTypeAny;
6
+ declare const retailedGetGoatPrices: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { retailedGetGoatPrices };
9
+ //# sourceMappingURL=get-goat-prices.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-goat-prices.d.mts","names":[],"sources":["../../src/actions/get-goat-prices.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAIzC;AAAA,cAOW,2BAAA,EAA6B,CAAA,CAAE,UAI1C;AAAA,cAEW,qBAAA,gCAAqB,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-goat-prices.ts
4
+ const RetailedGetGoatPricesInput = z.object({
5
+ size: z.string().describe("Specific product size (if applicable).").optional(),
6
+ country: z.string().describe("Country/market code for pricing (e.g., 'US', 'UK', 'EU').").optional(),
7
+ product_id: z.string().describe("GOAT product ID to fetch prices for. Use numeric ID like '719082' or product slug.")
8
+ });
9
+ const RetailedGetGoatPrices_PriceInfoSchema = z.object({
10
+ size: z.string().describe("Product size."),
11
+ price: z.number().describe("Price for the specified size."),
12
+ currency: z.string().describe("Currency code."),
13
+ last_updated: z.string().describe("Timestamp of the last price update (ISO8601).")
14
+ });
15
+ const retailedGetGoatPrices = action("RETAILED_GET_GOAT_PRICES", {
16
+ slug: "retailed-get-goat-prices",
17
+ name: "Get GOAT Product Prices",
18
+ description: "Tool to retrieve pricing information for a specific product on GOAT. Use when you need up-to-date size-based pricing. Call after confirming product_id.",
19
+ input: RetailedGetGoatPricesInput,
20
+ output: z.object({
21
+ prices: z.array(RetailedGetGoatPrices_PriceInfoSchema).describe("List of prices for the product."),
22
+ status: z.string().describe("Status of the request (e.g., success, error)."),
23
+ product_id: z.string().describe("The unique identifier for the product.")
24
+ })
25
+ });
26
+ //#endregion
27
+ export { retailedGetGoatPrices };
28
+
29
+ //# sourceMappingURL=get-goat-prices.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-goat-prices.mjs","names":[],"sources":["../../src/actions/get-goat-prices.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetailedGetGoatPricesInput: z.ZodTypeAny = z.object({\n size: z.string().describe(\"Specific product size (if applicable).\").optional(),\n country: z.string().describe(\"Country/market code for pricing (e.g., 'US', 'UK', 'EU').\").optional(),\n product_id: z.string().describe(\"GOAT product ID to fetch prices for. Use numeric ID like '719082' or product slug.\"),\n});\nconst RetailedGetGoatPrices_PriceInfoSchema: z.ZodTypeAny = z.object({\n size: z.string().describe(\"Product size.\"),\n price: z.number().describe(\"Price for the specified size.\"),\n currency: z.string().describe(\"Currency code.\"),\n last_updated: z.string().describe(\"Timestamp of the last price update (ISO8601).\"),\n});\nexport const RetailedGetGoatPricesOutput: z.ZodTypeAny = z.object({\n prices: z.array(RetailedGetGoatPrices_PriceInfoSchema).describe(\"List of prices for the product.\"),\n status: z.string().describe(\"Status of the request (e.g., success, error).\"),\n product_id: z.string().describe(\"The unique identifier for the product.\"),\n});\n\nexport const retailedGetGoatPrices = action(\"RETAILED_GET_GOAT_PRICES\", {\n slug: \"retailed-get-goat-prices\",\n name: \"Get GOAT Product Prices\",\n description: \"Tool to retrieve pricing information for a specific product on GOAT. Use when you need up-to-date size-based pricing. Call after confirming product_id.\",\n input: RetailedGetGoatPricesInput,\n output: RetailedGetGoatPricesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;AACtH,CAAC;AACD,MAAM,wCAAsD,EAAE,OAAO;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CACzC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC9C,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AACnF,CAAC;AAOD,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXuD,EAAE,OAAO;EAChE,QAAQ,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,iCAAiC;EACjG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAC1E,CAOU;AACV,CAAC"}
@@ -0,0 +1,33 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-stock-x-product.ts
4
+ const RetailedGetStockXProductInput = zod.z.object({
5
+ sku: zod.z.string().describe("StockX product SKU identifier StockX-specific; may not match SKUs from other marketplaces (e.g., GOAT). Normalize identifiers before cross-platform comparisons.").optional(),
6
+ url: zod.z.string().describe("Direct StockX product URL").optional(),
7
+ include_market: zod.z.boolean().default(false).describe("Whether to include detailed market data").optional()
8
+ }).describe("Request model for retrieving StockX product details by SKU or direct URL.");
9
+ const RetailedGetStockXProduct_StockXMarketDataSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Market-related data for a StockX product. Fields may vary depending on include_market flag.");
10
+ const RetailedGetStockXProductOutput = zod.z.object({
11
+ id: zod.z.string().describe("Internal product ID"),
12
+ sku: zod.z.string().describe("StockX product SKU"),
13
+ url: zod.z.string().describe("StockX product URL"),
14
+ name: zod.z.string().describe("Product name"),
15
+ brand: zod.z.string().describe("Product brand"),
16
+ image: zod.z.string().describe("URL of the main product image"),
17
+ colorway: zod.z.string().describe("Product colorway or color description"),
18
+ description: zod.z.string().describe("Detailed product description"),
19
+ market_data: RetailedGetStockXProduct_StockXMarketDataSchema.nullable().optional(),
20
+ release_date: zod.z.string().describe("Release date of the product"),
21
+ retail_price: zod.z.number().describe("Retail price in USD")
22
+ }).describe("Response model for StockX product retrieval.");
23
+ const retailedGetStockXProduct = require_action.action("RETAILED_GET_STOCK_X_PRODUCT", {
24
+ slug: "retailed-get-stock-x-product",
25
+ name: "Get StockX Product",
26
+ description: "Tool to retrieve detailed StockX product information, including variant-level data. Use when you need comprehensive metadata from StockX by SKU or URL. Response is structured per variant; aggregate price or inventory metrics across variants only after grouping by variant to avoid distortion.",
27
+ input: RetailedGetStockXProductInput,
28
+ output: RetailedGetStockXProductOutput
29
+ });
30
+ //#endregion
31
+ exports.retailedGetStockXProduct = retailedGetStockXProduct;
32
+
33
+ //# sourceMappingURL=get-stock-x-product.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-stock-x-product.cjs","names":["z","action"],"sources":["../../src/actions/get-stock-x-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetailedGetStockXProductInput: z.ZodTypeAny = z.object({\n sku: z.string().describe(\"StockX product SKU identifier StockX-specific; may not match SKUs from other marketplaces (e.g., GOAT). Normalize identifiers before cross-platform comparisons.\").optional(),\n url: z.string().describe(\"Direct StockX product URL\").optional(),\n include_market: z.boolean().default(false).describe(\"Whether to include detailed market data\").optional(),\n}).describe(\"Request model for retrieving StockX product details by SKU or direct URL.\");\nconst RetailedGetStockXProduct_StockXMarketDataSchema: z.ZodTypeAny = z.record(z.string(), z.unknown()).describe(\"Market-related data for a StockX product. Fields may vary depending on include_market flag.\");\nexport const RetailedGetStockXProductOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Internal product ID\"),\n sku: z.string().describe(\"StockX product SKU\"),\n url: z.string().describe(\"StockX product URL\"),\n name: z.string().describe(\"Product name\"),\n brand: z.string().describe(\"Product brand\"),\n image: z.string().describe(\"URL of the main product image\"),\n colorway: z.string().describe(\"Product colorway or color description\"),\n description: z.string().describe(\"Detailed product description\"),\n market_data: RetailedGetStockXProduct_StockXMarketDataSchema.nullable().optional(),\n release_date: z.string().describe(\"Release date of the product\"),\n retail_price: z.number().describe(\"Retail price in USD\"),\n}).describe(\"Response model for StockX product retrieval.\");\n\nexport const retailedGetStockXProduct = action(\"RETAILED_GET_STOCK_X_PRODUCT\", {\n slug: \"retailed-get-stock-x-product\",\n name: \"Get StockX Product\",\n description: \"Tool to retrieve detailed StockX product information, including variant-level data. Use when you need comprehensive metadata from StockX by SKU or URL. Response is structured per variant; aggregate price or inventory metrics across variants only after grouping by variant to avoid distortion.\",\n input: RetailedGetStockXProductInput,\n output: RetailedGetStockXProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACtM,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC/D,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,kDAAgEA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6FAA6F;AAC9M,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC7C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC7C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACxC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CAC1C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACrE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC/D,aAAa,gDAAgD,SAAS,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC/D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;AACzD,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,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-stock-x-product.d.ts
4
+ declare const RetailedGetStockXProductInput: z.ZodTypeAny;
5
+ declare const RetailedGetStockXProductOutput: z.ZodTypeAny;
6
+ declare const retailedGetStockXProduct: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { retailedGetStockXProduct };
9
+ //# sourceMappingURL=get-stock-x-product.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-stock-x-product.d.cts","names":[],"sources":["../../src/actions/get-stock-x-product.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAI0C;AAAA,cAE3E,8BAAA,EAAgC,CAAA,CAAE,UAYY;AAAA,cAE9C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-stock-x-product.d.ts
4
+ declare const RetailedGetStockXProductInput: z.ZodTypeAny;
5
+ declare const RetailedGetStockXProductOutput: z.ZodTypeAny;
6
+ declare const retailedGetStockXProduct: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { retailedGetStockXProduct };
9
+ //# sourceMappingURL=get-stock-x-product.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-stock-x-product.d.mts","names":[],"sources":["../../src/actions/get-stock-x-product.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAI0C;AAAA,cAE3E,8BAAA,EAAgC,CAAA,CAAE,UAYY;AAAA,cAE9C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,32 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-stock-x-product.ts
4
+ const RetailedGetStockXProductInput = z.object({
5
+ sku: z.string().describe("StockX product SKU identifier StockX-specific; may not match SKUs from other marketplaces (e.g., GOAT). Normalize identifiers before cross-platform comparisons.").optional(),
6
+ url: z.string().describe("Direct StockX product URL").optional(),
7
+ include_market: z.boolean().default(false).describe("Whether to include detailed market data").optional()
8
+ }).describe("Request model for retrieving StockX product details by SKU or direct URL.");
9
+ const RetailedGetStockXProduct_StockXMarketDataSchema = z.record(z.string(), z.unknown()).describe("Market-related data for a StockX product. Fields may vary depending on include_market flag.");
10
+ const retailedGetStockXProduct = action("RETAILED_GET_STOCK_X_PRODUCT", {
11
+ slug: "retailed-get-stock-x-product",
12
+ name: "Get StockX Product",
13
+ description: "Tool to retrieve detailed StockX product information, including variant-level data. Use when you need comprehensive metadata from StockX by SKU or URL. Response is structured per variant; aggregate price or inventory metrics across variants only after grouping by variant to avoid distortion.",
14
+ input: RetailedGetStockXProductInput,
15
+ output: z.object({
16
+ id: z.string().describe("Internal product ID"),
17
+ sku: z.string().describe("StockX product SKU"),
18
+ url: z.string().describe("StockX product URL"),
19
+ name: z.string().describe("Product name"),
20
+ brand: z.string().describe("Product brand"),
21
+ image: z.string().describe("URL of the main product image"),
22
+ colorway: z.string().describe("Product colorway or color description"),
23
+ description: z.string().describe("Detailed product description"),
24
+ market_data: RetailedGetStockXProduct_StockXMarketDataSchema.nullable().optional(),
25
+ release_date: z.string().describe("Release date of the product"),
26
+ retail_price: z.number().describe("Retail price in USD")
27
+ }).describe("Response model for StockX product retrieval.")
28
+ });
29
+ //#endregion
30
+ export { retailedGetStockXProduct };
31
+
32
+ //# sourceMappingURL=get-stock-x-product.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-stock-x-product.mjs","names":[],"sources":["../../src/actions/get-stock-x-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetailedGetStockXProductInput: z.ZodTypeAny = z.object({\n sku: z.string().describe(\"StockX product SKU identifier StockX-specific; may not match SKUs from other marketplaces (e.g., GOAT). Normalize identifiers before cross-platform comparisons.\").optional(),\n url: z.string().describe(\"Direct StockX product URL\").optional(),\n include_market: z.boolean().default(false).describe(\"Whether to include detailed market data\").optional(),\n}).describe(\"Request model for retrieving StockX product details by SKU or direct URL.\");\nconst RetailedGetStockXProduct_StockXMarketDataSchema: z.ZodTypeAny = z.record(z.string(), z.unknown()).describe(\"Market-related data for a StockX product. Fields may vary depending on include_market flag.\");\nexport const RetailedGetStockXProductOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Internal product ID\"),\n sku: z.string().describe(\"StockX product SKU\"),\n url: z.string().describe(\"StockX product URL\"),\n name: z.string().describe(\"Product name\"),\n brand: z.string().describe(\"Product brand\"),\n image: z.string().describe(\"URL of the main product image\"),\n colorway: z.string().describe(\"Product colorway or color description\"),\n description: z.string().describe(\"Detailed product description\"),\n market_data: RetailedGetStockXProduct_StockXMarketDataSchema.nullable().optional(),\n release_date: z.string().describe(\"Release date of the product\"),\n retail_price: z.number().describe(\"Retail price in USD\"),\n}).describe(\"Response model for StockX product retrieval.\");\n\nexport const retailedGetStockXProduct = action(\"RETAILED_GET_STOCK_X_PRODUCT\", {\n slug: \"retailed-get-stock-x-product\",\n name: \"Get StockX Product\",\n description: \"Tool to retrieve detailed StockX product information, including variant-level data. Use when you need comprehensive metadata from StockX by SKU or URL. Response is structured per variant; aggregate price or inventory metrics across variants only after grouping by variant to avoid distortion.\",\n input: RetailedGetStockXProductInput,\n output: RetailedGetStockXProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO;CAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACtM,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC/D,gBAAgB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,kDAAgE,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6FAA6F;AAe9M,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAnB0D,EAAE,OAAO;EACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAC7C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;EAC7C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;EAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;EACxC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;EAC1C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EACrE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EAC/D,aAAa,gDAAgD,SAAS,CAAC,CAAC,SAAS;EACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EAC/D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CACzD,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
@@ -0,0 +1,35 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-stockx-search.ts
4
+ const RetailedGetStockxSearchInput = zod.z.object({
5
+ page: zod.z.number().int().default(1).describe("Page number for pagination (default: 1)").optional(),
6
+ limit: zod.z.number().int().default(10).describe("Number of results per page (default: 10)").optional(),
7
+ query: zod.z.string().describe("Search term for StockX products")
8
+ }).describe("Request parameters for searching StockX products.");
9
+ const RetailedGetStockxSearch_StockxProductSchema = zod.z.object({
10
+ id: zod.z.string().describe("StockX product ID"),
11
+ sku: zod.z.string().describe("Product SKU/style code"),
12
+ name: zod.z.string().describe("Product name"),
13
+ slug: zod.z.string().describe("Product URL slug"),
14
+ brand: zod.z.string().describe("Product brand"),
15
+ image: zod.z.string().describe("URL of the product image"),
16
+ category: zod.z.string().describe("Product category"),
17
+ colorway: zod.z.string().describe("Product colorway description")
18
+ }).describe("Details of a StockX product from search results.");
19
+ const RetailedGetStockxSearch_StockxSearchDataSchema = zod.z.object({ details: zod.z.array(RetailedGetStockxSearch_StockxProductSchema).describe("List of matched StockX products") }).describe("Data container for StockX search results.");
20
+ const RetailedGetStockxSearchOutput = zod.z.object({
21
+ data: RetailedGetStockxSearch_StockxSearchDataSchema.nullable(),
22
+ error: zod.z.string().describe("Error message if any").nullable().optional(),
23
+ successfull: zod.z.boolean().describe("Whether the search was successful")
24
+ }).describe("Response model for StockX product search.");
25
+ const retailedGetStockxSearch = require_action.action("RETAILED_GET_STOCKX_SEARCH", {
26
+ slug: "retailed-get-stockx-search",
27
+ name: "StockX Search",
28
+ description: "Tool to search StockX marketplace for products and pricing information. Use when you have a search term and need up-to-date listings on StockX. Note: SKU identifiers and size labels in results may differ from other marketplaces (e.g., GOAT); normalize these fields before cross-platform price comparisons.",
29
+ input: RetailedGetStockxSearchInput,
30
+ output: RetailedGetStockxSearchOutput
31
+ });
32
+ //#endregion
33
+ exports.retailedGetStockxSearch = retailedGetStockxSearch;
34
+
35
+ //# sourceMappingURL=get-stockx-search.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-stockx-search.cjs","names":["z","action"],"sources":["../../src/actions/get-stockx-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetailedGetStockxSearchInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (default: 1)\").optional(),\n limit: z.number().int().default(10).describe(\"Number of results per page (default: 10)\").optional(),\n query: z.string().describe(\"Search term for StockX products\"),\n}).describe(\"Request parameters for searching StockX products.\");\nconst RetailedGetStockxSearch_StockxProductSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"StockX product ID\"),\n sku: z.string().describe(\"Product SKU/style code\"),\n name: z.string().describe(\"Product name\"),\n slug: z.string().describe(\"Product URL slug\"),\n brand: z.string().describe(\"Product brand\"),\n image: z.string().describe(\"URL of the product image\"),\n category: z.string().describe(\"Product category\"),\n colorway: z.string().describe(\"Product colorway description\"),\n}).describe(\"Details of a StockX product from search results.\");\nconst RetailedGetStockxSearch_StockxSearchDataSchema: z.ZodTypeAny = z.object({\n details: z.array(RetailedGetStockxSearch_StockxProductSchema).describe(\"List of matched StockX products\"),\n}).describe(\"Data container for StockX search results.\");\nexport const RetailedGetStockxSearchOutput: z.ZodTypeAny = z.object({\n data: RetailedGetStockxSearch_StockxSearchDataSchema.nullable(),\n error: z.string().describe(\"Error message if any\").nullable().optional(),\n successfull: z.boolean().describe(\"Whether the search was successful\"),\n}).describe(\"Response model for StockX product search.\");\n\nexport const retailedGetStockxSearch = action(\"RETAILED_GET_STOCKX_SEARCH\", {\n slug: \"retailed-get-stockx-search\",\n name: \"StockX Search\",\n description: \"Tool to search StockX marketplace for products and pricing information. Use when you have a search term and need up-to-date listings on StockX. Note: SKU identifiers and size labels in results may differ from other marketplaces (e.g., GOAT); normalize these fields before cross-platform price comparisons.\",\n input: RetailedGetStockxSearchInput,\n output: RetailedGetStockxSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAClG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AAC9D,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC3C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACxC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CAC1C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAChD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AAC9D,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,iDAA+DA,IAAAA,EAAE,OAAO,EAC5E,SAASA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,iCAAiC,EAC1G,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAM,+CAA+C,SAAS;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;AACvE,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,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-stockx-search.d.ts
4
+ declare const RetailedGetStockxSearchInput: z.ZodTypeAny;
5
+ declare const RetailedGetStockxSearchOutput: z.ZodTypeAny;
6
+ declare const retailedGetStockxSearch: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { retailedGetStockxSearch };
9
+ //# sourceMappingURL=get-stockx-search.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-stockx-search.d.cts","names":[],"sources":["../../src/actions/get-stockx-search.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAImB;AAAA,cAcnD,6BAAA,EAA+B,CAAA,CAAE,UAIU;AAAA,cAE3C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-stockx-search.d.ts
4
+ declare const RetailedGetStockxSearchInput: z.ZodTypeAny;
5
+ declare const RetailedGetStockxSearchOutput: z.ZodTypeAny;
6
+ declare const retailedGetStockxSearch: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { retailedGetStockxSearch };
9
+ //# sourceMappingURL=get-stockx-search.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-stockx-search.d.mts","names":[],"sources":["../../src/actions/get-stockx-search.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAImB;AAAA,cAcnD,6BAAA,EAA+B,CAAA,CAAE,UAIU;AAAA,cAE3C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,34 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-stockx-search.ts
4
+ const RetailedGetStockxSearchInput = z.object({
5
+ page: z.number().int().default(1).describe("Page number for pagination (default: 1)").optional(),
6
+ limit: z.number().int().default(10).describe("Number of results per page (default: 10)").optional(),
7
+ query: z.string().describe("Search term for StockX products")
8
+ }).describe("Request parameters for searching StockX products.");
9
+ const RetailedGetStockxSearch_StockxProductSchema = z.object({
10
+ id: z.string().describe("StockX product ID"),
11
+ sku: z.string().describe("Product SKU/style code"),
12
+ name: z.string().describe("Product name"),
13
+ slug: z.string().describe("Product URL slug"),
14
+ brand: z.string().describe("Product brand"),
15
+ image: z.string().describe("URL of the product image"),
16
+ category: z.string().describe("Product category"),
17
+ colorway: z.string().describe("Product colorway description")
18
+ }).describe("Details of a StockX product from search results.");
19
+ const RetailedGetStockxSearch_StockxSearchDataSchema = z.object({ details: z.array(RetailedGetStockxSearch_StockxProductSchema).describe("List of matched StockX products") }).describe("Data container for StockX search results.");
20
+ const retailedGetStockxSearch = action("RETAILED_GET_STOCKX_SEARCH", {
21
+ slug: "retailed-get-stockx-search",
22
+ name: "StockX Search",
23
+ description: "Tool to search StockX marketplace for products and pricing information. Use when you have a search term and need up-to-date listings on StockX. Note: SKU identifiers and size labels in results may differ from other marketplaces (e.g., GOAT); normalize these fields before cross-platform price comparisons.",
24
+ input: RetailedGetStockxSearchInput,
25
+ output: z.object({
26
+ data: RetailedGetStockxSearch_StockxSearchDataSchema.nullable(),
27
+ error: z.string().describe("Error message if any").nullable().optional(),
28
+ successfull: z.boolean().describe("Whether the search was successful")
29
+ }).describe("Response model for StockX product search.")
30
+ });
31
+ //#endregion
32
+ export { retailedGetStockxSearch };
33
+
34
+ //# sourceMappingURL=get-stockx-search.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-stockx-search.mjs","names":[],"sources":["../../src/actions/get-stockx-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetailedGetStockxSearchInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (default: 1)\").optional(),\n limit: z.number().int().default(10).describe(\"Number of results per page (default: 10)\").optional(),\n query: z.string().describe(\"Search term for StockX products\"),\n}).describe(\"Request parameters for searching StockX products.\");\nconst RetailedGetStockxSearch_StockxProductSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"StockX product ID\"),\n sku: z.string().describe(\"Product SKU/style code\"),\n name: z.string().describe(\"Product name\"),\n slug: z.string().describe(\"Product URL slug\"),\n brand: z.string().describe(\"Product brand\"),\n image: z.string().describe(\"URL of the product image\"),\n category: z.string().describe(\"Product category\"),\n colorway: z.string().describe(\"Product colorway description\"),\n}).describe(\"Details of a StockX product from search results.\");\nconst RetailedGetStockxSearch_StockxSearchDataSchema: z.ZodTypeAny = z.object({\n details: z.array(RetailedGetStockxSearch_StockxProductSchema).describe(\"List of matched StockX products\"),\n}).describe(\"Data container for StockX search results.\");\nexport const RetailedGetStockxSearchOutput: z.ZodTypeAny = z.object({\n data: RetailedGetStockxSearch_StockxSearchDataSchema.nullable(),\n error: z.string().describe(\"Error message if any\").nullable().optional(),\n successfull: z.boolean().describe(\"Whether the search was successful\"),\n}).describe(\"Response model for StockX product search.\");\n\nexport const retailedGetStockxSearch = action(\"RETAILED_GET_STOCKX_SEARCH\", {\n slug: \"retailed-get-stockx-search\",\n name: \"StockX Search\",\n description: \"Tool to search StockX marketplace for products and pricing information. Use when you have a search term and need up-to-date listings on StockX. Note: SKU identifiers and size labels in results may differ from other marketplaces (e.g., GOAT); normalize these fields before cross-platform price comparisons.\",\n input: RetailedGetStockxSearchInput,\n output: RetailedGetStockxSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AAC9D,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,8CAA4D,EAAE,OAAO;CACzE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC3C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACxC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CAC1C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAChD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AAC9D,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,iDAA+D,EAAE,OAAO,EAC5E,SAAS,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,iCAAiC,EAC1G,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAOvD,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXyD,EAAE,OAAO;EAClE,MAAM,+CAA+C,SAAS;EAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;CACvE,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
@@ -0,0 +1,32 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-stockx-trends.ts
4
+ const RetailedGetStockxTrendsInput = zod.z.object({
5
+ page: zod.z.number().int().default(1).describe("Page number for pagination (default: 1)").optional(),
6
+ order: zod.z.enum(["asc", "desc"]).default("desc").describe("Sort order (ascending or descending)").optional(),
7
+ sort_by: zod.z.string().describe("Sort field (e.g., popularity, price)").optional(),
8
+ per_page: zod.z.number().int().default(20).describe("Number of results per page (default: 20)").optional(),
9
+ product_type: zod.z.string().describe("Filter by product type (e.g., sneakers, streetwear)").optional()
10
+ }).describe("Request parameters for retrieving trending product data from StockX.");
11
+ const RetailedGetStockxTrends_TrendProductSchema = zod.z.object({
12
+ id: zod.z.string().describe("Unique StockX product ID"),
13
+ sku: zod.z.string().describe("Product SKU"),
14
+ name: zod.z.string().describe("Product name"),
15
+ slug: zod.z.string().describe("Product slug for URL"),
16
+ brand: zod.z.string().describe("Product brand"),
17
+ image: zod.z.string().describe("Product image URL (may be null)").nullable().optional(),
18
+ category: zod.z.string().describe("Product category"),
19
+ release_date: zod.z.string().describe("Date of product release (YYYY-MM-DD)")
20
+ }).describe("Details of a trending StockX product.");
21
+ const RetailedGetStockxTrendsOutput = zod.z.object({ products: zod.z.array(RetailedGetStockxTrends_TrendProductSchema).describe("List of trending StockX product details") }).describe("Response schema for trending products from StockX.\nThis is a list of trending products returned directly from the API.");
22
+ const retailedGetStockxTrends = require_action.action("RETAILED_GET_STOCKX_TRENDS", {
23
+ slug: "retailed-get-stockx-trends",
24
+ name: "StockX Trends",
25
+ description: "Tool to get the latest trending products from StockX. Use when you want to discover current trending items.",
26
+ input: RetailedGetStockxTrendsInput,
27
+ output: RetailedGetStockxTrendsOutput
28
+ });
29
+ //#endregion
30
+ exports.retailedGetStockxTrends = retailedGetStockxTrends;
31
+
32
+ //# sourceMappingURL=get-stockx-trends.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-stockx-trends.cjs","names":["z","action"],"sources":["../../src/actions/get-stockx-trends.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetailedGetStockxTrendsInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (default: 1)\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Sort order (ascending or descending)\").optional(),\n sort_by: z.string().describe(\"Sort field (e.g., popularity, price)\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of results per page (default: 20)\").optional(),\n product_type: z.string().describe(\"Filter by product type (e.g., sneakers, streetwear)\").optional(),\n}).describe(\"Request parameters for retrieving trending product data from StockX.\");\nconst RetailedGetStockxTrends_TrendProductSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique StockX product ID\"),\n sku: z.string().describe(\"Product SKU\"),\n name: z.string().describe(\"Product name\"),\n slug: z.string().describe(\"Product slug for URL\"),\n brand: z.string().describe(\"Product brand\"),\n image: z.string().describe(\"Product image URL (may be null)\").nullable().optional(),\n category: z.string().describe(\"Product category\"),\n release_date: z.string().describe(\"Date of product release (YYYY-MM-DD)\"),\n}).describe(\"Details of a trending StockX product.\");\nexport const RetailedGetStockxTrendsOutput: z.ZodTypeAny = z.object({\n products: z.array(RetailedGetStockxTrends_TrendProductSchema).describe(\"List of trending StockX product details\"),\n}).describe(\"Response schema for trending products from StockX.\\nThis is a list of trending products returned directly from the API.\");\n\nexport const retailedGetStockxTrends = action(\"RETAILED_GET_STOCKX_TRENDS\", {\n slug: \"retailed-get-stockx-trends\",\n name: \"StockX Trends\",\n description: \"Tool to get the latest trending products from StockX. Use when you want to discover current trending items.\",\n input: RetailedGetStockxTrendsInput,\n output: RetailedGetStockxTrendsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,OAAOA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACzG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC9E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAClD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACtC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACxC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CAC1C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAChD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AAC1E,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,UAAUA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,yCAAyC,EAClH,CAAC,CAAC,CAAC,SAAS,yHAAyH;AAErI,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,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-stockx-trends.d.ts
4
+ declare const RetailedGetStockxTrendsInput: z.ZodTypeAny;
5
+ declare const RetailedGetStockxTrendsOutput: z.ZodTypeAny;
6
+ declare const retailedGetStockxTrends: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { retailedGetStockxTrends };
9
+ //# sourceMappingURL=get-stockx-trends.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-stockx-trends.d.cts","names":[],"sources":["../../src/actions/get-stockx-trends.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAMsC;AAAA,cAWtE,6BAAA,EAA+B,CAAA,CAAE,UAEwF;AAAA,cAEzH,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-stockx-trends.d.ts
4
+ declare const RetailedGetStockxTrendsInput: z.ZodTypeAny;
5
+ declare const RetailedGetStockxTrendsOutput: z.ZodTypeAny;
6
+ declare const retailedGetStockxTrends: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { retailedGetStockxTrends };
9
+ //# sourceMappingURL=get-stockx-trends.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-stockx-trends.d.mts","names":[],"sources":["../../src/actions/get-stockx-trends.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAMsC;AAAA,cAWtE,6BAAA,EAA+B,CAAA,CAAE,UAEwF;AAAA,cAEzH,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,31 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-stockx-trends.ts
4
+ const RetailedGetStockxTrendsInput = z.object({
5
+ page: z.number().int().default(1).describe("Page number for pagination (default: 1)").optional(),
6
+ order: z.enum(["asc", "desc"]).default("desc").describe("Sort order (ascending or descending)").optional(),
7
+ sort_by: z.string().describe("Sort field (e.g., popularity, price)").optional(),
8
+ per_page: z.number().int().default(20).describe("Number of results per page (default: 20)").optional(),
9
+ product_type: z.string().describe("Filter by product type (e.g., sneakers, streetwear)").optional()
10
+ }).describe("Request parameters for retrieving trending product data from StockX.");
11
+ const RetailedGetStockxTrends_TrendProductSchema = z.object({
12
+ id: z.string().describe("Unique StockX product ID"),
13
+ sku: z.string().describe("Product SKU"),
14
+ name: z.string().describe("Product name"),
15
+ slug: z.string().describe("Product slug for URL"),
16
+ brand: z.string().describe("Product brand"),
17
+ image: z.string().describe("Product image URL (may be null)").nullable().optional(),
18
+ category: z.string().describe("Product category"),
19
+ release_date: z.string().describe("Date of product release (YYYY-MM-DD)")
20
+ }).describe("Details of a trending StockX product.");
21
+ const retailedGetStockxTrends = action("RETAILED_GET_STOCKX_TRENDS", {
22
+ slug: "retailed-get-stockx-trends",
23
+ name: "StockX Trends",
24
+ description: "Tool to get the latest trending products from StockX. Use when you want to discover current trending items.",
25
+ input: RetailedGetStockxTrendsInput,
26
+ output: z.object({ products: z.array(RetailedGetStockxTrends_TrendProductSchema).describe("List of trending StockX product details") }).describe("Response schema for trending products from StockX.\nThis is a list of trending products returned directly from the API.")
27
+ });
28
+ //#endregion
29
+ export { retailedGetStockxTrends };
30
+
31
+ //# sourceMappingURL=get-stockx-trends.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-stockx-trends.mjs","names":[],"sources":["../../src/actions/get-stockx-trends.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetailedGetStockxTrendsInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (default: 1)\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Sort order (ascending or descending)\").optional(),\n sort_by: z.string().describe(\"Sort field (e.g., popularity, price)\").optional(),\n per_page: z.number().int().default(20).describe(\"Number of results per page (default: 20)\").optional(),\n product_type: z.string().describe(\"Filter by product type (e.g., sneakers, streetwear)\").optional(),\n}).describe(\"Request parameters for retrieving trending product data from StockX.\");\nconst RetailedGetStockxTrends_TrendProductSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique StockX product ID\"),\n sku: z.string().describe(\"Product SKU\"),\n name: z.string().describe(\"Product name\"),\n slug: z.string().describe(\"Product slug for URL\"),\n brand: z.string().describe(\"Product brand\"),\n image: z.string().describe(\"Product image URL (may be null)\").nullable().optional(),\n category: z.string().describe(\"Product category\"),\n release_date: z.string().describe(\"Date of product release (YYYY-MM-DD)\"),\n}).describe(\"Details of a trending StockX product.\");\nexport const RetailedGetStockxTrendsOutput: z.ZodTypeAny = z.object({\n products: z.array(RetailedGetStockxTrends_TrendProductSchema).describe(\"List of trending StockX product details\"),\n}).describe(\"Response schema for trending products from StockX.\\nThis is a list of trending products returned directly from the API.\");\n\nexport const retailedGetStockxTrends = action(\"RETAILED_GET_STOCKX_TRENDS\", {\n slug: \"retailed-get-stockx-trends\",\n name: \"StockX Trends\",\n description: \"Tool to get the latest trending products from StockX. Use when you want to discover current trending items.\",\n input: RetailedGetStockxTrendsInput,\n output: RetailedGetStockxTrendsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,OAAO,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACzG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,6CAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAClD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACtC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACxC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CAC1C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAChD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AAC1E,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAKnD,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyD,EAAE,OAAO,EAClE,UAAU,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,yCAAyC,EAClH,CAAC,CAAC,CAAC,SAAS,yHAOF;AACV,CAAC"}
@@ -0,0 +1,19 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-usage.ts
4
+ const RetailedGetUsageInput = zod.z.object({}).describe("Request parameters for retrieving API usage statistics.");
5
+ const RetailedGetUsageOutput = zod.z.object({
6
+ plan: zod.z.string().describe("Plan name"),
7
+ remaining: zod.z.union([zod.z.number().int(), zod.z.string()])
8
+ }).describe("Response model for API usage statistics.");
9
+ const retailedGetUsage = require_action.action("RETAILED_GET_USAGE", {
10
+ slug: "retailed-get-usage",
11
+ name: "Get API Usage",
12
+ description: "Tool to retrieve current API usage statistics. The only mechanism to check remaining API credits; call proactively before long-running analyses to prevent mid-run quota exhaustion.",
13
+ input: RetailedGetUsageInput,
14
+ output: RetailedGetUsageOutput
15
+ });
16
+ //#endregion
17
+ exports.retailedGetUsage = retailedGetUsage;
18
+
19
+ //# sourceMappingURL=get-usage.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-usage.cjs","names":["z","action"],"sources":["../../src/actions/get-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetailedGetUsageInput: z.ZodTypeAny = z.object({}).describe(\"Request parameters for retrieving API usage statistics.\");\nexport const RetailedGetUsageOutput: z.ZodTypeAny = z.object({\n plan: z.string().describe(\"Plan name\"),\n remaining: z.union([z.number().int(), z.string()]),\n}).describe(\"Response model for API usage statistics.\");\n\nexport const retailedGetUsage = action(\"RETAILED_GET_USAGE\", {\n slug: \"retailed-get-usage\",\n name: \"Get API Usage\",\n description: \"Tool to retrieve current API usage statistics. The only mechanism to check remaining API credits; call proactively before long-running analyses to prevent mid-run quota exhaustion.\",\n input: RetailedGetUsageInput,\n output: RetailedGetUsageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAClI,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;CACrC,WAAWA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC;AACnD,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,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-usage.d.ts
4
+ declare const RetailedGetUsageInput: z.ZodTypeAny;
5
+ declare const RetailedGetUsageOutput: z.ZodTypeAny;
6
+ declare const retailedGetUsage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { retailedGetUsage };
9
+ //# sourceMappingURL=get-usage.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-usage.d.cts","names":[],"sources":["../../src/actions/get-usage.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAA6F;AAAA,cACtH,sBAAA,EAAwB,CAAA,CAAE,UAGgB;AAAA,cAE1C,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-usage.d.ts
4
+ declare const RetailedGetUsageInput: z.ZodTypeAny;
5
+ declare const RetailedGetUsageOutput: z.ZodTypeAny;
6
+ declare const retailedGetUsage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { retailedGetUsage };
9
+ //# sourceMappingURL=get-usage.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-usage.d.mts","names":[],"sources":["../../src/actions/get-usage.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAA6F;AAAA,cACtH,sBAAA,EAAwB,CAAA,CAAE,UAGgB;AAAA,cAE1C,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}