@keystrokehq/omnisend 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/dist/actions/add-cart-product.cjs +1 -1
  2. package/dist/actions/add-cart-product.cjs.map +1 -1
  3. package/dist/actions/add-cart-product.d.cts +14 -2
  4. package/dist/actions/add-cart-product.d.mts +14 -2
  5. package/dist/actions/add-cart-product.mjs +1 -1
  6. package/dist/actions/add-cart-product.mjs.map +1 -1
  7. package/dist/actions/create-batch.cjs +3 -3
  8. package/dist/actions/create-batch.cjs.map +1 -1
  9. package/dist/actions/create-batch.d.cts +18 -6
  10. package/dist/actions/create-batch.d.cts.map +1 -1
  11. package/dist/actions/create-batch.d.mts +18 -6
  12. package/dist/actions/create-batch.d.mts.map +1 -1
  13. package/dist/actions/create-batch.mjs +3 -3
  14. package/dist/actions/create-batch.mjs.map +1 -1
  15. package/dist/actions/create-cart.cjs +2 -2
  16. package/dist/actions/create-cart.cjs.map +1 -1
  17. package/dist/actions/create-cart.d.cts +16 -3
  18. package/dist/actions/create-cart.d.mts +16 -3
  19. package/dist/actions/create-cart.mjs +2 -2
  20. package/dist/actions/create-cart.mjs.map +1 -1
  21. package/dist/actions/create-category.cjs +1 -1
  22. package/dist/actions/create-category.cjs.map +1 -1
  23. package/dist/actions/create-category.d.cts +14 -2
  24. package/dist/actions/create-category.d.mts +14 -2
  25. package/dist/actions/create-category.mjs +1 -1
  26. package/dist/actions/create-category.mjs.map +1 -1
  27. package/dist/actions/create-or-update-contact.cjs +2 -2
  28. package/dist/actions/create-or-update-contact.cjs.map +1 -1
  29. package/dist/actions/create-or-update-contact.d.cts +16 -3
  30. package/dist/actions/create-or-update-contact.d.mts +16 -3
  31. package/dist/actions/create-or-update-contact.mjs +2 -2
  32. package/dist/actions/create-or-update-contact.mjs.map +1 -1
  33. package/dist/actions/create-order.cjs +3 -3
  34. package/dist/actions/create-order.cjs.map +1 -1
  35. package/dist/actions/create-order.d.cts +18 -5
  36. package/dist/actions/create-order.d.cts.map +1 -1
  37. package/dist/actions/create-order.d.mts +18 -5
  38. package/dist/actions/create-order.d.mts.map +1 -1
  39. package/dist/actions/create-order.mjs +3 -3
  40. package/dist/actions/create-order.mjs.map +1 -1
  41. package/dist/actions/create-product-category.cjs +1 -1
  42. package/dist/actions/create-product-category.cjs.map +1 -1
  43. package/dist/actions/create-product-category.d.cts +14 -2
  44. package/dist/actions/create-product-category.d.mts +14 -2
  45. package/dist/actions/create-product-category.mjs +1 -1
  46. package/dist/actions/create-product-category.mjs.map +1 -1
  47. package/dist/actions/create-product.cjs +2 -2
  48. package/dist/actions/create-product.cjs.map +1 -1
  49. package/dist/actions/create-product.d.cts +16 -3
  50. package/dist/actions/create-product.d.mts +16 -3
  51. package/dist/actions/create-product.mjs +2 -2
  52. package/dist/actions/create-product.mjs.map +1 -1
  53. package/dist/actions/delete-cart.cjs +1 -1
  54. package/dist/actions/delete-cart.cjs.map +1 -1
  55. package/dist/actions/delete-cart.d.cts +14 -2
  56. package/dist/actions/delete-cart.d.cts.map +1 -1
  57. package/dist/actions/delete-cart.d.mts +14 -2
  58. package/dist/actions/delete-cart.d.mts.map +1 -1
  59. package/dist/actions/delete-cart.mjs +1 -1
  60. package/dist/actions/delete-cart.mjs.map +1 -1
  61. package/dist/actions/delete-category.cjs +1 -1
  62. package/dist/actions/delete-category.cjs.map +1 -1
  63. package/dist/actions/delete-category.d.cts +14 -2
  64. package/dist/actions/delete-category.d.cts.map +1 -1
  65. package/dist/actions/delete-category.d.mts +14 -2
  66. package/dist/actions/delete-category.d.mts.map +1 -1
  67. package/dist/actions/delete-category.mjs +1 -1
  68. package/dist/actions/delete-category.mjs.map +1 -1
  69. package/dist/actions/delete-order.cjs +1 -1
  70. package/dist/actions/delete-order.cjs.map +1 -1
  71. package/dist/actions/delete-order.d.cts +14 -2
  72. package/dist/actions/delete-order.d.cts.map +1 -1
  73. package/dist/actions/delete-order.d.mts +14 -2
  74. package/dist/actions/delete-order.d.mts.map +1 -1
  75. package/dist/actions/delete-order.mjs +1 -1
  76. package/dist/actions/delete-order.mjs.map +1 -1
  77. package/dist/actions/delete-product-category.cjs +1 -1
  78. package/dist/actions/delete-product-category.cjs.map +1 -1
  79. package/dist/actions/delete-product-category.d.cts +14 -2
  80. package/dist/actions/delete-product-category.d.cts.map +1 -1
  81. package/dist/actions/delete-product-category.d.mts +14 -2
  82. package/dist/actions/delete-product-category.d.mts.map +1 -1
  83. package/dist/actions/delete-product-category.mjs +1 -1
  84. package/dist/actions/delete-product-category.mjs.map +1 -1
  85. package/dist/actions/delete-product.cjs +1 -1
  86. package/dist/actions/delete-product.cjs.map +1 -1
  87. package/dist/actions/delete-product.d.cts +14 -2
  88. package/dist/actions/delete-product.d.cts.map +1 -1
  89. package/dist/actions/delete-product.d.mts +14 -2
  90. package/dist/actions/delete-product.d.mts.map +1 -1
  91. package/dist/actions/delete-product.mjs +1 -1
  92. package/dist/actions/delete-product.mjs.map +1 -1
  93. package/dist/actions/get-batch-information.cjs +1 -1
  94. package/dist/actions/get-batch-information.cjs.map +1 -1
  95. package/dist/actions/get-batch-information.d.cts +14 -2
  96. package/dist/actions/get-batch-information.d.mts +14 -2
  97. package/dist/actions/get-batch-information.mjs +1 -1
  98. package/dist/actions/get-batch-information.mjs.map +1 -1
  99. package/dist/actions/get-batch-item.cjs +1 -1
  100. package/dist/actions/get-batch-item.cjs.map +1 -1
  101. package/dist/actions/get-batch-item.d.cts +14 -2
  102. package/dist/actions/get-batch-item.d.mts +14 -2
  103. package/dist/actions/get-batch-item.mjs +1 -1
  104. package/dist/actions/get-batch-item.mjs.map +1 -1
  105. package/dist/actions/get-batch-items.cjs +2 -2
  106. package/dist/actions/get-batch-items.cjs.map +1 -1
  107. package/dist/actions/get-batch-items.d.cts +15 -3
  108. package/dist/actions/get-batch-items.d.mts +15 -3
  109. package/dist/actions/get-batch-items.mjs +2 -2
  110. package/dist/actions/get-batch-items.mjs.map +1 -1
  111. package/dist/actions/get-batches.cjs +3 -3
  112. package/dist/actions/get-batches.cjs.map +1 -1
  113. package/dist/actions/get-batches.d.cts +18 -6
  114. package/dist/actions/get-batches.d.mts +18 -6
  115. package/dist/actions/get-batches.mjs +3 -3
  116. package/dist/actions/get-batches.mjs.map +1 -1
  117. package/dist/actions/get-brand.cjs +1 -1
  118. package/dist/actions/get-brand.cjs.map +1 -1
  119. package/dist/actions/get-brand.d.cts +14 -2
  120. package/dist/actions/get-brand.d.cts.map +1 -1
  121. package/dist/actions/get-brand.d.mts +14 -2
  122. package/dist/actions/get-brand.d.mts.map +1 -1
  123. package/dist/actions/get-brand.mjs +1 -1
  124. package/dist/actions/get-brand.mjs.map +1 -1
  125. package/dist/actions/get-cart.cjs +2 -2
  126. package/dist/actions/get-cart.cjs.map +1 -1
  127. package/dist/actions/get-cart.d.cts +15 -3
  128. package/dist/actions/get-cart.d.mts +15 -3
  129. package/dist/actions/get-cart.mjs +2 -2
  130. package/dist/actions/get-cart.mjs.map +1 -1
  131. package/dist/actions/get-category.cjs +1 -1
  132. package/dist/actions/get-category.cjs.map +1 -1
  133. package/dist/actions/get-category.d.cts +14 -2
  134. package/dist/actions/get-category.d.mts +14 -2
  135. package/dist/actions/get-category.mjs +1 -1
  136. package/dist/actions/get-category.mjs.map +1 -1
  137. package/dist/actions/get-contact.cjs +6 -6
  138. package/dist/actions/get-contact.cjs.map +1 -1
  139. package/dist/actions/get-contact.d.cts +19 -7
  140. package/dist/actions/get-contact.d.mts +19 -7
  141. package/dist/actions/get-contact.mjs +6 -6
  142. package/dist/actions/get-contact.mjs.map +1 -1
  143. package/dist/actions/get-order.cjs +3 -3
  144. package/dist/actions/get-order.cjs.map +1 -1
  145. package/dist/actions/get-order.d.cts +17 -5
  146. package/dist/actions/get-order.d.mts +17 -5
  147. package/dist/actions/get-order.mjs +3 -3
  148. package/dist/actions/get-order.mjs.map +1 -1
  149. package/dist/actions/get-product-category.cjs +1 -1
  150. package/dist/actions/get-product-category.cjs.map +1 -1
  151. package/dist/actions/get-product-category.d.cts +14 -2
  152. package/dist/actions/get-product-category.d.mts +14 -2
  153. package/dist/actions/get-product-category.mjs +1 -1
  154. package/dist/actions/get-product-category.mjs.map +1 -1
  155. package/dist/actions/get-product.cjs +2 -2
  156. package/dist/actions/get-product.cjs.map +1 -1
  157. package/dist/actions/get-product.d.cts +15 -3
  158. package/dist/actions/get-product.d.mts +15 -3
  159. package/dist/actions/get-product.mjs +2 -2
  160. package/dist/actions/get-product.mjs.map +1 -1
  161. package/dist/actions/list-campaigns.cjs +5 -5
  162. package/dist/actions/list-campaigns.cjs.map +1 -1
  163. package/dist/actions/list-campaigns.d.cts +18 -6
  164. package/dist/actions/list-campaigns.d.mts +18 -6
  165. package/dist/actions/list-campaigns.mjs +5 -5
  166. package/dist/actions/list-campaigns.mjs.map +1 -1
  167. package/dist/actions/list-carts.cjs +3 -3
  168. package/dist/actions/list-carts.cjs.map +1 -1
  169. package/dist/actions/list-carts.d.cts +16 -4
  170. package/dist/actions/list-carts.d.mts +16 -4
  171. package/dist/actions/list-carts.mjs +3 -3
  172. package/dist/actions/list-carts.mjs.map +1 -1
  173. package/dist/actions/list-categories.cjs +3 -3
  174. package/dist/actions/list-categories.cjs.map +1 -1
  175. package/dist/actions/list-categories.d.cts +16 -4
  176. package/dist/actions/list-categories.d.mts +16 -4
  177. package/dist/actions/list-categories.mjs +3 -3
  178. package/dist/actions/list-categories.mjs.map +1 -1
  179. package/dist/actions/list-contacts.cjs +7 -7
  180. package/dist/actions/list-contacts.cjs.map +1 -1
  181. package/dist/actions/list-contacts.d.cts +20 -8
  182. package/dist/actions/list-contacts.d.mts +20 -8
  183. package/dist/actions/list-contacts.mjs +7 -7
  184. package/dist/actions/list-contacts.mjs.map +1 -1
  185. package/dist/actions/list-events.cjs +3 -3
  186. package/dist/actions/list-events.cjs.map +1 -1
  187. package/dist/actions/list-events.d.cts +16 -4
  188. package/dist/actions/list-events.d.cts.map +1 -1
  189. package/dist/actions/list-events.d.mts +16 -4
  190. package/dist/actions/list-events.d.mts.map +1 -1
  191. package/dist/actions/list-events.mjs +3 -3
  192. package/dist/actions/list-events.mjs.map +1 -1
  193. package/dist/actions/list-product-categories.cjs +3 -3
  194. package/dist/actions/list-product-categories.cjs.map +1 -1
  195. package/dist/actions/list-product-categories.d.cts +16 -4
  196. package/dist/actions/list-product-categories.d.mts +16 -4
  197. package/dist/actions/list-product-categories.mjs +3 -3
  198. package/dist/actions/list-product-categories.mjs.map +1 -1
  199. package/dist/actions/list-products.cjs +4 -4
  200. package/dist/actions/list-products.cjs.map +1 -1
  201. package/dist/actions/list-products.d.cts +17 -5
  202. package/dist/actions/list-products.d.mts +17 -5
  203. package/dist/actions/list-products.mjs +4 -4
  204. package/dist/actions/list-products.mjs.map +1 -1
  205. package/dist/actions/remove-cart-product.cjs +1 -1
  206. package/dist/actions/remove-cart-product.cjs.map +1 -1
  207. package/dist/actions/remove-cart-product.d.cts +14 -2
  208. package/dist/actions/remove-cart-product.d.cts.map +1 -1
  209. package/dist/actions/remove-cart-product.d.mts +14 -2
  210. package/dist/actions/remove-cart-product.d.mts.map +1 -1
  211. package/dist/actions/remove-cart-product.mjs +1 -1
  212. package/dist/actions/remove-cart-product.mjs.map +1 -1
  213. package/dist/actions/replace-cart-product.cjs +1 -1
  214. package/dist/actions/replace-cart-product.cjs.map +1 -1
  215. package/dist/actions/replace-cart-product.d.cts +14 -2
  216. package/dist/actions/replace-cart-product.d.mts +14 -2
  217. package/dist/actions/replace-cart-product.mjs +1 -1
  218. package/dist/actions/replace-cart-product.mjs.map +1 -1
  219. package/dist/actions/replace-cart.cjs +2 -2
  220. package/dist/actions/replace-cart.cjs.map +1 -1
  221. package/dist/actions/replace-cart.d.cts +16 -3
  222. package/dist/actions/replace-cart.d.mts +16 -3
  223. package/dist/actions/replace-cart.mjs +2 -2
  224. package/dist/actions/replace-cart.mjs.map +1 -1
  225. package/dist/actions/replace-category.cjs +1 -1
  226. package/dist/actions/replace-category.cjs.map +1 -1
  227. package/dist/actions/replace-category.d.cts +14 -2
  228. package/dist/actions/replace-category.d.mts +14 -2
  229. package/dist/actions/replace-category.mjs +1 -1
  230. package/dist/actions/replace-category.mjs.map +1 -1
  231. package/dist/actions/replace-order.cjs +2 -2
  232. package/dist/actions/replace-order.cjs.map +1 -1
  233. package/dist/actions/replace-order.d.cts +16 -3
  234. package/dist/actions/replace-order.d.mts +16 -3
  235. package/dist/actions/replace-order.mjs +2 -2
  236. package/dist/actions/replace-order.mjs.map +1 -1
  237. package/dist/actions/replace-product.cjs +2 -2
  238. package/dist/actions/replace-product.cjs.map +1 -1
  239. package/dist/actions/replace-product.d.cts +16 -3
  240. package/dist/actions/replace-product.d.mts +16 -3
  241. package/dist/actions/replace-product.mjs +2 -2
  242. package/dist/actions/replace-product.mjs.map +1 -1
  243. package/dist/actions/send-event.cjs +3 -3
  244. package/dist/actions/send-event.cjs.map +1 -1
  245. package/dist/actions/send-event.d.cts +18 -6
  246. package/dist/actions/send-event.d.cts.map +1 -1
  247. package/dist/actions/send-event.d.mts +18 -6
  248. package/dist/actions/send-event.d.mts.map +1 -1
  249. package/dist/actions/send-event.mjs +3 -3
  250. package/dist/actions/send-event.mjs.map +1 -1
  251. package/dist/actions/update-cart-product.cjs +1 -1
  252. package/dist/actions/update-cart-product.cjs.map +1 -1
  253. package/dist/actions/update-cart-product.d.cts +14 -2
  254. package/dist/actions/update-cart-product.d.mts +14 -2
  255. package/dist/actions/update-cart-product.mjs +1 -1
  256. package/dist/actions/update-cart-product.mjs.map +1 -1
  257. package/dist/actions/update-cart.cjs +2 -2
  258. package/dist/actions/update-cart.cjs.map +1 -1
  259. package/dist/actions/update-cart.d.cts +16 -3
  260. package/dist/actions/update-cart.d.mts +16 -3
  261. package/dist/actions/update-cart.mjs +2 -2
  262. package/dist/actions/update-cart.mjs.map +1 -1
  263. package/dist/actions/update-contact.cjs +3 -3
  264. package/dist/actions/update-contact.cjs.map +1 -1
  265. package/dist/actions/update-contact.d.cts +18 -5
  266. package/dist/actions/update-contact.d.cts.map +1 -1
  267. package/dist/actions/update-contact.d.mts +18 -5
  268. package/dist/actions/update-contact.d.mts.map +1 -1
  269. package/dist/actions/update-contact.mjs +3 -3
  270. package/dist/actions/update-contact.mjs.map +1 -1
  271. package/dist/actions/update-order-status.cjs +1 -1
  272. package/dist/actions/update-order-status.cjs.map +1 -1
  273. package/dist/actions/update-order-status.d.cts +14 -2
  274. package/dist/actions/update-order-status.d.mts +14 -2
  275. package/dist/actions/update-order-status.mjs +1 -1
  276. package/dist/actions/update-order-status.mjs.map +1 -1
  277. package/dist/actions/update-product-category.cjs +1 -1
  278. package/dist/actions/update-product-category.cjs.map +1 -1
  279. package/dist/actions/update-product-category.d.cts +14 -2
  280. package/dist/actions/update-product-category.d.mts +14 -2
  281. package/dist/actions/update-product-category.mjs +1 -1
  282. package/dist/actions/update-product-category.mjs.map +1 -1
  283. package/dist/app.cjs +5 -2
  284. package/dist/app.cjs.map +1 -1
  285. package/dist/app.d.cts +9 -1
  286. package/dist/app.d.cts.map +1 -1
  287. package/dist/app.d.mts +9 -1
  288. package/dist/app.d.mts.map +1 -1
  289. package/dist/app.mjs +3 -1
  290. package/dist/app.mjs.map +1 -1
  291. package/package.json +1 -1
@@ -33,7 +33,7 @@ const omnisendReplaceProduct = action("OMNISEND_REPLACE_PRODUCT", {
33
33
  description: z.string().describe("Description of the variant").optional(),
34
34
  defaultImageUrl: z.string().describe("Primary image URL for this variant").optional(),
35
35
  strikeThroughPrice: z.number().describe("Original price before discount").optional()
36
- })).describe("Product variants (different versions like sizes/colors). At least one variant required"),
36
+ }).passthrough()).describe("Product variants (different versions like sizes/colors). At least one variant required"),
37
37
  createdAt: z.string().describe("Creation timestamp in ISO 8601 format").optional(),
38
38
  updatedAt: z.string().describe("Last update timestamp in ISO 8601 format").optional(),
39
39
  product_id: z.string().describe("Unique identifier of the product to replace. Must match the product ID in the request body"),
@@ -41,7 +41,7 @@ const omnisendReplaceProduct = action("OMNISEND_REPLACE_PRODUCT", {
41
41
  description: z.string().describe("Short description of the product for email body usage").optional(),
42
42
  defaultImageUrl: z.string().describe("Primary image URL. Recommended if you need more than one image - additional images go in the images array").optional()
43
43
  }),
44
- output: z.object({ id: z.string().describe("Product identifier that was replaced").nullable() })
44
+ output: z.object({ id: z.string().describe("Product identifier that was replaced").nullable() }).passthrough()
45
45
  });
46
46
  //#endregion
47
47
  export { omnisendReplaceProduct };
@@ -1 +1 @@
1
- {"version":3,"file":"replace-product.mjs","names":[],"sources":["../../src/actions/replace-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceProductInput = z.object({\n id: z.string().describe(\"Product ID - must match the product_id path parameter\"),\n url: z.string().describe(\"URL pointing to the product page on your website\"),\n tags: z.array(z.string()).describe(\"Tags for product categorization (max 100 items)\").optional(),\n type: z.string().describe(\"Product type for categorization purposes\").optional(),\n title: z.string().describe(\"Product title\"),\n images: z.array(z.string()).describe(\"Additional product image URLs (max 300 items)\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).describe(\"Product stock status. Keep in sync with your shop to avoid sending out-of-stock products\"),\n vendor: z.string().describe(\"Manufacturer or brand of the product\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR, GBP)\"),\n variants: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the variant\"),\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n url: z.string().describe(\"URL pointing to the variant's product page\"),\n price: z.number().describe(\"Price of the variant\"),\n title: z.string().describe(\"Title of the variant\"),\n images: z.array(z.string()).describe(\"Additional image URLs for the variant (max 300 items)\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).default(\"inStock\").describe(\"Stock status of the variant. Options: inStock, outOfStock, notAvailable\").optional(),\n description: z.string().describe(\"Description of the variant\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL for this variant\").optional(),\n strikeThroughPrice: z.number().describe(\"Original price before discount\").optional(),\n})).describe(\"Product variants (different versions like sizes/colors). At least one variant required\"),\n createdAt: z.string().describe(\"Creation timestamp in ISO 8601 format\").optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO 8601 format\").optional(),\n product_id: z.string().describe(\"Unique identifier of the product to replace. Must match the product ID in the request body\"),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs the product belongs to (max 100 items)\").optional(),\n description: z.string().describe(\"Short description of the product for email body usage\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL. Recommended if you need more than one image - additional images go in the images array\").optional(),\n});\nexport const OmnisendReplaceProductOutput = z.object({\n id: z.string().describe(\"Product identifier that was replaced\").nullable(),\n});\n\nexport const omnisendReplaceProduct = action(\"OMNISEND_REPLACE_PRODUCT\", {\n slug: \"omnisend-replace-product\",\n name: \"Replace Product\",\n description: \"Tool to replace an existing product in the Omnisend catalog. Use when you need to completely replace all product data with new information.\",\n input: OmnisendReplaceProductInput,\n output: OmnisendReplaceProductOutput,\n});\n"],"mappings":";;AAqCA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArCyC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EAC/E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EAC3E,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC/F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;EAC1C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC/F,QAAQ,EAAE,KAAK;GAAC;GAAW;GAAc;EAAc,CAAC,CAAC,CAAC,SAAS,0FAA0F;EAC7J,QA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AAS;EACnG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAC7J,CASS;CACP,QAT0C,EAAE,OAAO,EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EAC3E,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"replace-product.mjs","names":[],"sources":["../../src/actions/replace-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendReplaceProductInput = z.object({\n id: z.string().describe(\"Product ID - must match the product_id path parameter\"),\n url: z.string().describe(\"URL pointing to the product page on your website\"),\n tags: z.array(z.string()).describe(\"Tags for product categorization (max 100 items)\").optional(),\n type: z.string().describe(\"Product type for categorization purposes\").optional(),\n title: z.string().describe(\"Product title\"),\n images: z.array(z.string()).describe(\"Additional product image URLs (max 300 items)\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).describe(\"Product stock status. Keep in sync with your shop to avoid sending out-of-stock products\"),\n vendor: z.string().describe(\"Manufacturer or brand of the product\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR, GBP)\"),\n variants: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the variant\"),\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n url: z.string().describe(\"URL pointing to the variant's product page\"),\n price: z.number().describe(\"Price of the variant\"),\n title: z.string().describe(\"Title of the variant\"),\n images: z.array(z.string()).describe(\"Additional image URLs for the variant (max 300 items)\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).default(\"inStock\").describe(\"Stock status of the variant. Options: inStock, outOfStock, notAvailable\").optional(),\n description: z.string().describe(\"Description of the variant\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL for this variant\").optional(),\n strikeThroughPrice: z.number().describe(\"Original price before discount\").optional(),\n}).passthrough()).describe(\"Product variants (different versions like sizes/colors). At least one variant required\"),\n createdAt: z.string().describe(\"Creation timestamp in ISO 8601 format\").optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO 8601 format\").optional(),\n product_id: z.string().describe(\"Unique identifier of the product to replace. Must match the product ID in the request body\"),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs the product belongs to (max 100 items)\").optional(),\n description: z.string().describe(\"Short description of the product for email body usage\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL. Recommended if you need more than one image - additional images go in the images array\").optional(),\n});\nexport const OmnisendReplaceProductOutput = z.object({\n id: z.string().describe(\"Product identifier that was replaced\").nullable(),\n}).passthrough();\n\nexport const omnisendReplaceProduct = action(\"OMNISEND_REPLACE_PRODUCT\", {\n slug: \"omnisend-replace-product\",\n name: \"Replace Product\",\n description: \"Tool to replace an existing product in the Omnisend catalog. Use when you need to completely replace all product data with new information.\",\n input: OmnisendReplaceProductInput,\n output: OmnisendReplaceProductOutput,\n});\n"],"mappings":";;AAqCA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArCyC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EAC/E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EAC3E,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC/F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;EAC1C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC/F,QAAQ,EAAE,KAAK;GAAC;GAAW;GAAc;EAAc,CAAC,CAAC,CAAC,SAAS,0FAA0F;EAC7J,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC7E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2GAA2G,CAAC,CAAC,SAAS;CAC7J,CASS;CACP,QAT0C,EAAE,OAAO,EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EAC3E,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -18,18 +18,18 @@ const OmnisendSendEventInput = zod.z.object({
18
18
  firstName: zod.z.string().describe("Contact's first name").optional(),
19
19
  postalCode: zod.z.string().describe("Postal or ZIP code").optional(),
20
20
  countryCode: zod.z.string().describe("ISO 3166-1 alpha-2 country code").optional(),
21
- customProperties: zod.z.object({}).describe("Custom properties for the contact").optional()
21
+ customProperties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom properties for the contact").optional()
22
22
  }).describe("Contact information. Contact will be created or updated based on the data provided. At least one identifier (email, phone, or id) is required."),
23
23
  eventID: zod.z.string().describe("UUID of the event (v4, v5, v6, v7). Used for event deduplication along with eventTime. If not provided, it will be generated automatically.").optional(),
24
24
  eventName: zod.z.string().describe("Name of the event (e.g., 'order placed', 'product viewed', 'test_event'). Check event documentation for standard event names."),
25
25
  eventTime: zod.z.string().describe("Event timestamp in RFC3339 format (e.g., '2021-07-01T00:00:00Z'). If not provided, current time will be used.").optional(),
26
- properties: zod.z.object({}).describe("Event-specific properties such as order details, product info, etc. Check events guide for recommended properties for each event type.").optional(),
26
+ properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Event-specific properties such as order details, product info, etc. Check events guide for recommended properties for each event type.").optional(),
27
27
  eventVersion: zod.z.string().describe("Event version string. Check event documentation for required version for each event. Leave empty for custom events.").optional()
28
28
  }).describe("Request schema for sending a customer event to Omnisend.");
29
29
  const OmnisendSendEventOutput = zod.z.object({
30
30
  status: zod.z.string().describe("Status of the event submission").nullable().optional(),
31
31
  eventID: zod.z.string().describe("UUID of the event that was created or processed").nullable().optional()
32
- }).describe("Response schema for send event action.");
32
+ }).passthrough().describe("Response schema for send event action.");
33
33
  const omnisendSendEvent = require_action.action("OMNISEND_SEND_EVENT", {
34
34
  slug: "omnisend-send-event",
35
35
  name: "Send Event",
@@ -1 +1 @@
1
- {"version":3,"file":"send-event.cjs","names":["z","action"],"sources":["../../src/actions/send-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendSendEventInput = z.object({\n origin: z.string().describe(\"Source of the event. Use 'api' for general API integrations. Platform or app integrations should have dedicated origin values.\"),\n contact: z.object({\n id: z.string().describe(\"Contact ID from Omnisend\").optional(),\n city: z.string().describe(\"City name\").optional(),\n tags: z.array(z.string()).describe(\"Tags associated with the contact\").optional(),\n email: z.string().describe(\"Contact email address\").optional(),\n phone: z.string().describe(\"Contact phone number in E.164 format\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n gender: z.string().describe(\"Contact's gender\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Full country name\").optional(),\n lastName: z.string().describe(\"Contact's last name\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format\").optional(),\n firstName: z.string().describe(\"Contact's first name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n customProperties: z.object({}).describe(\"Custom properties for the contact\").optional(),\n}).describe(\"Contact information. Contact will be created or updated based on the data provided. At least one identifier (email, phone, or id) is required.\"),\n eventID: z.string().describe(\"UUID of the event (v4, v5, v6, v7). Used for event deduplication along with eventTime. If not provided, it will be generated automatically.\").optional(),\n eventName: z.string().describe(\"Name of the event (e.g., 'order placed', 'product viewed', 'test_event'). Check event documentation for standard event names.\"),\n eventTime: z.string().describe(\"Event timestamp in RFC3339 format (e.g., '2021-07-01T00:00:00Z'). If not provided, current time will be used.\").optional(),\n properties: z.object({}).describe(\"Event-specific properties such as order details, product info, etc. Check events guide for recommended properties for each event type.\").optional(),\n eventVersion: z.string().describe(\"Event version string. Check event documentation for required version for each event. Leave empty for custom events.\").optional(),\n}).describe(\"Request schema for sending a customer event to Omnisend.\");\nexport const OmnisendSendEventOutput = z.object({\n status: z.string().describe(\"Status of the event submission\").nullable().optional(),\n eventID: z.string().describe(\"UUID of the event that was created or processed\").nullable().optional(),\n}).describe(\"Response schema for send event action.\");\n\nexport const omnisendSendEvent = action(\"OMNISEND_SEND_EVENT\", {\n slug: \"omnisend-send-event\",\n name: \"Send Event\",\n description: \"Tool to send a customer event to Omnisend. Events can trigger automations and track customer behavior. Use when you need to record customer interactions such as product views, cart actions, or custom events.\",\n input: OmnisendSendEventInput,\n output: OmnisendSendEventOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI;CAC5J,SAASA,IAAAA,EAAE,OAAO;EAClB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;EAChD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EACzD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACzD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EA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eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"send-event.cjs","names":["z","action"],"sources":["../../src/actions/send-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendSendEventInput = z.object({\n origin: z.string().describe(\"Source of the event. Use 'api' for general API integrations. Platform or app integrations should have dedicated origin values.\"),\n contact: z.object({\n id: z.string().describe(\"Contact ID from Omnisend\").optional(),\n city: z.string().describe(\"City name\").optional(),\n tags: z.array(z.string()).describe(\"Tags associated with the contact\").optional(),\n email: z.string().describe(\"Contact email address\").optional(),\n phone: z.string().describe(\"Contact phone number in E.164 format\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n gender: z.string().describe(\"Contact's gender\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Full country name\").optional(),\n lastName: z.string().describe(\"Contact's last name\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format\").optional(),\n firstName: z.string().describe(\"Contact's first name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n customProperties: z.record(z.string(), z.unknown()).describe(\"Custom properties for the contact\").optional(),\n}).describe(\"Contact information. Contact will be created or updated based on the data provided. At least one identifier (email, phone, or id) is required.\"),\n eventID: z.string().describe(\"UUID of the event (v4, v5, v6, v7). Used for event deduplication along with eventTime. If not provided, it will be generated automatically.\").optional(),\n eventName: z.string().describe(\"Name of the event (e.g., 'order placed', 'product viewed', 'test_event'). Check event documentation for standard event names.\"),\n eventTime: z.string().describe(\"Event timestamp in RFC3339 format (e.g., '2021-07-01T00:00:00Z'). If not provided, current time will be used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Event-specific properties such as order details, product info, etc. Check events guide for recommended properties for each event type.\").optional(),\n eventVersion: z.string().describe(\"Event version string. Check event documentation for required version for each event. Leave empty for custom events.\").optional(),\n}).describe(\"Request schema for sending a customer event to Omnisend.\");\nexport const OmnisendSendEventOutput = z.object({\n status: z.string().describe(\"Status of the event submission\").nullable().optional(),\n eventID: z.string().describe(\"UUID of the event that was created or processed\").nullable().optional(),\n}).passthrough().describe(\"Response schema for send event action.\");\n\nexport const omnisendSendEvent = action(\"OMNISEND_SEND_EVENT\", {\n slug: \"omnisend-send-event\",\n name: \"Send Event\",\n description: \"Tool to send a customer event to Omnisend. Events can trigger automations and track customer behavior. Use when you need to record customer interactions such as product views, cart actions, or custom events.\",\n input: OmnisendSendEventInput,\n output: OmnisendSendEventOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI;CAC5J,SAASA,IAAAA,EAAE,OAAO;EAClB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;EAChD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EACzD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACzD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACxD,SAASA,IAAAA,EAAE,O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A,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -18,18 +18,18 @@ declare const OmnisendSendEventInput: z.ZodObject<{
18
18
  firstName: z.ZodOptional<z.ZodString>;
19
19
  postalCode: z.ZodOptional<z.ZodString>;
20
20
  countryCode: z.ZodOptional<z.ZodString>;
21
- customProperties: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
21
+ customProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
22
22
  }, z.core.$strip>;
23
23
  eventID: z.ZodOptional<z.ZodString>;
24
24
  eventName: z.ZodString;
25
25
  eventTime: z.ZodOptional<z.ZodString>;
26
- properties: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
26
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
27
27
  eventVersion: z.ZodOptional<z.ZodString>;
28
28
  }, z.core.$strip>;
29
29
  declare const OmnisendSendEventOutput: z.ZodObject<{
30
30
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
31
  eventID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
- }, z.core.$strip>;
32
+ }, z.core.$loose>;
33
33
  declare const omnisendSendEvent: import("@keystrokehq/action").WorkflowActionDefinition<{
34
34
  origin: string;
35
35
  contact: {
@@ -47,14 +47,26 @@ declare const omnisendSendEvent: import("@keystrokehq/action").WorkflowActionDef
47
47
  firstName?: string | undefined;
48
48
  postalCode?: string | undefined;
49
49
  countryCode?: string | undefined;
50
- customProperties?: Record<string, never> | undefined;
50
+ customProperties?: Record<string, unknown> | undefined;
51
51
  };
52
52
  eventName: string;
53
53
  eventID?: string | undefined;
54
54
  eventTime?: string | undefined;
55
- properties?: Record<string, never> | undefined;
55
+ properties?: Record<string, unknown> | undefined;
56
56
  eventVersion?: string | undefined;
57
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
57
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
58
+ connectionId: z.ZodString;
59
+ entityId: z.ZodString;
60
+ instanceId: z.ZodString;
61
+ }, z.core.$strip>, z.ZodObject<{
62
+ accessToken: z.ZodString;
63
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
64
+ connectionId: z.ZodString;
65
+ entityId: z.ZodString;
66
+ instanceId: z.ZodString;
67
+ }, z.core.$strip>, z.ZodObject<{
68
+ accessToken: z.ZodString;
69
+ }, z.core.$strip>>]>;
58
70
  //#endregion
59
71
  export { omnisendSendEvent };
60
72
  //# sourceMappingURL=send-event.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send-event.d.cts","names":[],"sources":["../../src/actions/send-event.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAyBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;;;;;;;;;;;;;;;uBAM5B,MAAA;EAAA;;;;eAAA,MAAA"}
1
+ {"version":3,"file":"send-event.d.cts","names":[],"sources":["../../src/actions/send-event.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAyBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAKvB,iBAAA,gCAAiB,wBAAA"}
@@ -18,18 +18,18 @@ declare const OmnisendSendEventInput: z.ZodObject<{
18
18
  firstName: z.ZodOptional<z.ZodString>;
19
19
  postalCode: z.ZodOptional<z.ZodString>;
20
20
  countryCode: z.ZodOptional<z.ZodString>;
21
- customProperties: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
21
+ customProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
22
22
  }, z.core.$strip>;
23
23
  eventID: z.ZodOptional<z.ZodString>;
24
24
  eventName: z.ZodString;
25
25
  eventTime: z.ZodOptional<z.ZodString>;
26
- properties: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
26
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
27
27
  eventVersion: z.ZodOptional<z.ZodString>;
28
28
  }, z.core.$strip>;
29
29
  declare const OmnisendSendEventOutput: z.ZodObject<{
30
30
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
31
  eventID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
- }, z.core.$strip>;
32
+ }, z.core.$loose>;
33
33
  declare const omnisendSendEvent: import("@keystrokehq/action").WorkflowActionDefinition<{
34
34
  origin: string;
35
35
  contact: {
@@ -47,14 +47,26 @@ declare const omnisendSendEvent: import("@keystrokehq/action").WorkflowActionDef
47
47
  firstName?: string | undefined;
48
48
  postalCode?: string | undefined;
49
49
  countryCode?: string | undefined;
50
- customProperties?: Record<string, never> | undefined;
50
+ customProperties?: Record<string, unknown> | undefined;
51
51
  };
52
52
  eventName: string;
53
53
  eventID?: string | undefined;
54
54
  eventTime?: string | undefined;
55
- properties?: Record<string, never> | undefined;
55
+ properties?: Record<string, unknown> | undefined;
56
56
  eventVersion?: string | undefined;
57
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
57
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
58
+ connectionId: z.ZodString;
59
+ entityId: z.ZodString;
60
+ instanceId: z.ZodString;
61
+ }, z.core.$strip>, z.ZodObject<{
62
+ accessToken: z.ZodString;
63
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
64
+ connectionId: z.ZodString;
65
+ entityId: z.ZodString;
66
+ instanceId: z.ZodString;
67
+ }, z.core.$strip>, z.ZodObject<{
68
+ accessToken: z.ZodString;
69
+ }, z.core.$strip>>]>;
58
70
  //#endregion
59
71
  export { omnisendSendEvent };
60
72
  //# sourceMappingURL=send-event.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send-event.d.mts","names":[],"sources":["../../src/actions/send-event.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAyBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;;;;;;;;;;;;;;;uBAM5B,MAAA;EAAA;;;;eAAA,MAAA"}
1
+ {"version":3,"file":"send-event.d.mts","names":[],"sources":["../../src/actions/send-event.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAyBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAKvB,iBAAA,gCAAiB,wBAAA"}
@@ -21,18 +21,18 @@ const omnisendSendEvent = action("OMNISEND_SEND_EVENT", {
21
21
  firstName: z.string().describe("Contact's first name").optional(),
22
22
  postalCode: z.string().describe("Postal or ZIP code").optional(),
23
23
  countryCode: z.string().describe("ISO 3166-1 alpha-2 country code").optional(),
24
- customProperties: z.object({}).describe("Custom properties for the contact").optional()
24
+ customProperties: z.record(z.string(), z.unknown()).describe("Custom properties for the contact").optional()
25
25
  }).describe("Contact information. Contact will be created or updated based on the data provided. At least one identifier (email, phone, or id) is required."),
26
26
  eventID: z.string().describe("UUID of the event (v4, v5, v6, v7). Used for event deduplication along with eventTime. If not provided, it will be generated automatically.").optional(),
27
27
  eventName: z.string().describe("Name of the event (e.g., 'order placed', 'product viewed', 'test_event'). Check event documentation for standard event names."),
28
28
  eventTime: z.string().describe("Event timestamp in RFC3339 format (e.g., '2021-07-01T00:00:00Z'). If not provided, current time will be used.").optional(),
29
- properties: z.object({}).describe("Event-specific properties such as order details, product info, etc. Check events guide for recommended properties for each event type.").optional(),
29
+ properties: z.record(z.string(), z.unknown()).describe("Event-specific properties such as order details, product info, etc. Check events guide for recommended properties for each event type.").optional(),
30
30
  eventVersion: z.string().describe("Event version string. Check event documentation for required version for each event. Leave empty for custom events.").optional()
31
31
  }).describe("Request schema for sending a customer event to Omnisend."),
32
32
  output: z.object({
33
33
  status: z.string().describe("Status of the event submission").nullable().optional(),
34
34
  eventID: z.string().describe("UUID of the event that was created or processed").nullable().optional()
35
- }).describe("Response schema for send event action.")
35
+ }).passthrough().describe("Response schema for send event action.")
36
36
  });
37
37
  //#endregion
38
38
  export { omnisendSendEvent };
@@ -1 +1 @@
1
- {"version":3,"file":"send-event.mjs","names":[],"sources":["../../src/actions/send-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendSendEventInput = z.object({\n origin: z.string().describe(\"Source of the event. Use 'api' for general API integrations. Platform or app integrations should have dedicated origin values.\"),\n contact: z.object({\n id: z.string().describe(\"Contact ID from Omnisend\").optional(),\n city: z.string().describe(\"City name\").optional(),\n tags: z.array(z.string()).describe(\"Tags associated with the contact\").optional(),\n email: z.string().describe(\"Contact email address\").optional(),\n phone: z.string().describe(\"Contact phone number in E.164 format\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n gender: z.string().describe(\"Contact's gender\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Full country name\").optional(),\n lastName: z.string().describe(\"Contact's last name\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format\").optional(),\n firstName: z.string().describe(\"Contact's first name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n customProperties: z.object({}).describe(\"Custom properties for the contact\").optional(),\n}).describe(\"Contact information. Contact will be created or updated based on the data provided. At least one identifier (email, phone, or id) is required.\"),\n eventID: z.string().describe(\"UUID of the event (v4, v5, v6, v7). Used for event deduplication along with eventTime. If not provided, it will be generated automatically.\").optional(),\n eventName: z.string().describe(\"Name of the event (e.g., 'order placed', 'product viewed', 'test_event'). Check event documentation for standard event names.\"),\n eventTime: z.string().describe(\"Event timestamp in RFC3339 format (e.g., '2021-07-01T00:00:00Z'). If not provided, current time will be used.\").optional(),\n properties: z.object({}).describe(\"Event-specific properties such as order details, product info, etc. Check events guide for recommended properties for each event type.\").optional(),\n eventVersion: z.string().describe(\"Event version string. Check event documentation for required version for each event. Leave empty for custom events.\").optional(),\n}).describe(\"Request schema for sending a customer event to Omnisend.\");\nexport const OmnisendSendEventOutput = z.object({\n status: z.string().describe(\"Status of the event submission\").nullable().optional(),\n eventID: z.string().describe(\"UUID of the event that was created or processed\").nullable().optional(),\n}).describe(\"Response schema for send event action.\");\n\nexport const omnisendSendEvent = action(\"OMNISEND_SEND_EVENT\", {\n slug: \"omnisend-send-event\",\n name: \"Send Event\",\n description: \"Tool to send a customer event to Omnisend. Events can trigger automations and track customer behavior. Use when you need to record customer interactions such as product views, cart actions, or custom events.\",\n input: OmnisendSendEventInput,\n output: OmnisendSendEventOutput,\n});\n"],"mappings":";;AAkCA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlCoC,EAAE,OAAO;EAC7C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI;EAC5J,SAAS,EAAE,OAAO;GAClB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;GAChD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,C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CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CACpK,CAAC,CAAC,CAAC,SAAS,0DAUH;CACP,QAVqC,EAAE,OAAO;EAC9C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"send-event.mjs","names":[],"sources":["../../src/actions/send-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendSendEventInput = z.object({\n origin: z.string().describe(\"Source of the event. Use 'api' for general API integrations. Platform or app integrations should have dedicated origin values.\"),\n contact: z.object({\n id: z.string().describe(\"Contact ID from Omnisend\").optional(),\n city: z.string().describe(\"City name\").optional(),\n tags: z.array(z.string()).describe(\"Tags associated with the contact\").optional(),\n email: z.string().describe(\"Contact email address\").optional(),\n phone: z.string().describe(\"Contact phone number in E.164 format\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n gender: z.string().describe(\"Contact's gender\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Full country name\").optional(),\n lastName: z.string().describe(\"Contact's last name\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format\").optional(),\n firstName: z.string().describe(\"Contact's first name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n customProperties: z.record(z.string(), z.unknown()).describe(\"Custom properties for the contact\").optional(),\n}).describe(\"Contact information. Contact will be created or updated based on the data provided. At least one identifier (email, phone, or id) is required.\"),\n eventID: z.string().describe(\"UUID of the event (v4, v5, v6, v7). Used for event deduplication along with eventTime. If not provided, it will be generated automatically.\").optional(),\n eventName: z.string().describe(\"Name of the event (e.g., 'order placed', 'product viewed', 'test_event'). Check event documentation for standard event names.\"),\n eventTime: z.string().describe(\"Event timestamp in RFC3339 format (e.g., '2021-07-01T00:00:00Z'). If not provided, current time will be used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Event-specific properties such as order details, product info, etc. Check events guide for recommended properties for each event type.\").optional(),\n eventVersion: z.string().describe(\"Event version string. Check event documentation for required version for each event. Leave empty for custom events.\").optional(),\n}).describe(\"Request schema for sending a customer event to Omnisend.\");\nexport const OmnisendSendEventOutput = z.object({\n status: z.string().describe(\"Status of the event submission\").nullable().optional(),\n eventID: z.string().describe(\"UUID of the event that was created or processed\").nullable().optional(),\n}).passthrough().describe(\"Response schema for send event action.\");\n\nexport const omnisendSendEvent = action(\"OMNISEND_SEND_EVENT\", {\n slug: \"omnisend-send-event\",\n name: \"Send Event\",\n description: \"Tool to send a customer event to Omnisend. Events can trigger automations and track customer behavior. Use when you need to record customer interactions such as product views, cart actions, or custom events.\",\n input: OmnisendSendEventInput,\n output: OmnisendSendEventOutput,\n});\n"],"mappings":";;AAkCA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlCoC,EAAE,OAAO;EAC7C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI;EAC5J,SAAS,EAAE,OAAO;GAClB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;GAChD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;GAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;GAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SA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S,CAAC,CAAC,SAAS;EAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
@@ -22,7 +22,7 @@ const OmnisendUpdateCartProductOutput = zod.z.object({
22
22
  productID: zod.z.string().describe("Product identifier.").nullable(),
23
23
  variantID: zod.z.string().describe("Product variant identifier.").nullable(),
24
24
  cartProductID: zod.z.string().describe("Unique identifier of the product in the cart.").nullable()
25
- });
25
+ }).passthrough();
26
26
  const omnisendUpdateCartProduct = require_action.action("OMNISEND_UPDATE_CART_PRODUCT", {
27
27
  slug: "omnisend-update-cart-product",
28
28
  name: "Update Cart Product",
@@ -1 +1 @@
1
- {"version":3,"file":"update-cart-product.cjs","names":["z","action"],"sources":["../../src/actions/update-cart-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateCartProductInput = z.object({\n sku: z.string().describe(\"Stock keeping unit (SKU).\").optional(),\n price: z.number().int().describe(\"Current price in cents (e.g., 125 for $1.25).\").optional(),\n title: z.string().describe(\"Product title.\").optional(),\n cart_id: z.string().describe(\"Unique identifier of the cart.\"),\n currency: z.string().describe(\"ISO currency code (3 characters). Must match the cart's currency.\"),\n discount: z.number().int().describe(\"Discount sum in cents.\").optional(),\n quantity: z.number().int().describe(\"Product quantity (must be a whole number, minimum 1).\").optional(),\n image_url: z.string().describe(\"Link to product image.\").optional(),\n old_price: z.number().int().describe(\"Original price in cents (e.g., 125 for $1.25).\").optional(),\n product_id: z.string().describe(\"Product identifier.\").optional(),\n variant_id: z.string().describe(\"Product variant identifier.\").optional(),\n description: z.string().describe(\"Product description.\").optional(),\n product_url: z.string().describe(\"Link to product page.\").optional(),\n cart_product_id: z.string().describe(\"Unique identifier of the product in the cart to update.\"),\n});\nexport const OmnisendUpdateCartProductOutput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart.\").nullable(),\n productID: z.string().describe(\"Product identifier.\").nullable(),\n variantID: z.string().describe(\"Product variant identifier.\").nullable(),\n cartProductID: z.string().describe(\"Unique identifier of the product in the cart.\").nullable(),\n});\n\nexport const omnisendUpdateCartProduct = action(\"OMNISEND_UPDATE_CART_PRODUCT\", {\n slug: \"omnisend-update-cart-product\",\n name: \"Update Cart Product\",\n description: \"Tool to update a product in a cart (v3 API). Use when you need to modify product details such as quantity, price, or other attributes for an existing cart item.\",\n input: OmnisendUpdateCartProductInput,\n output: OmnisendUpdateCartProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAChG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAClE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACnE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAChG,CAAC;AACD,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC/F,CAAC;AAED,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-cart-product.cjs","names":["z","action"],"sources":["../../src/actions/update-cart-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateCartProductInput = z.object({\n sku: z.string().describe(\"Stock keeping unit (SKU).\").optional(),\n price: z.number().int().describe(\"Current price in cents (e.g., 125 for $1.25).\").optional(),\n title: z.string().describe(\"Product title.\").optional(),\n cart_id: z.string().describe(\"Unique identifier of the cart.\"),\n currency: z.string().describe(\"ISO currency code (3 characters). Must match the cart's currency.\"),\n discount: z.number().int().describe(\"Discount sum in cents.\").optional(),\n quantity: z.number().int().describe(\"Product quantity (must be a whole number, minimum 1).\").optional(),\n image_url: z.string().describe(\"Link to product image.\").optional(),\n old_price: z.number().int().describe(\"Original price in cents (e.g., 125 for $1.25).\").optional(),\n product_id: z.string().describe(\"Product identifier.\").optional(),\n variant_id: z.string().describe(\"Product variant identifier.\").optional(),\n description: z.string().describe(\"Product description.\").optional(),\n product_url: z.string().describe(\"Link to product page.\").optional(),\n cart_product_id: z.string().describe(\"Unique identifier of the product in the cart to update.\"),\n});\nexport const OmnisendUpdateCartProductOutput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart.\").nullable(),\n productID: z.string().describe(\"Product identifier.\").nullable(),\n variantID: z.string().describe(\"Product variant identifier.\").nullable(),\n cartProductID: z.string().describe(\"Unique identifier of the product in the cart.\").nullable(),\n}).passthrough();\n\nexport const omnisendUpdateCartProduct = action(\"OMNISEND_UPDATE_CART_PRODUCT\", {\n slug: \"omnisend-update-cart-product\",\n name: \"Update Cart Product\",\n description: \"Tool to update a product in a cart (v3 API). Use when you need to modify product details such as quantity, price, or other attributes for an existing cart item.\",\n input: OmnisendUpdateCartProductInput,\n output: OmnisendUpdateCartProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAChG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAClE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACnE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAChG,CAAC;AACD,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -22,7 +22,7 @@ declare const OmnisendUpdateCartProductOutput: z.ZodObject<{
22
22
  productID: z.ZodNullable<z.ZodString>;
23
23
  variantID: z.ZodNullable<z.ZodString>;
24
24
  cartProductID: z.ZodNullable<z.ZodString>;
25
- }, z.core.$strip>;
25
+ }, z.core.$loose>;
26
26
  declare const omnisendUpdateCartProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  cart_id: string;
28
28
  currency: string;
@@ -38,7 +38,19 @@ declare const omnisendUpdateCartProduct: import("@keystrokehq/action").WorkflowA
38
38
  variant_id?: string | undefined;
39
39
  description?: string | undefined;
40
40
  product_url?: string | undefined;
41
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
41
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
42
+ connectionId: z.ZodString;
43
+ entityId: z.ZodString;
44
+ instanceId: z.ZodString;
45
+ }, z.core.$strip>, z.ZodObject<{
46
+ accessToken: z.ZodString;
47
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
48
+ connectionId: z.ZodString;
49
+ entityId: z.ZodString;
50
+ instanceId: z.ZodString;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ accessToken: z.ZodString;
53
+ }, z.core.$strip>>]>;
42
54
  //#endregion
43
55
  export { omnisendUpdateCartProduct };
44
56
  //# sourceMappingURL=update-cart-product.d.cts.map
@@ -22,7 +22,7 @@ declare const OmnisendUpdateCartProductOutput: z.ZodObject<{
22
22
  productID: z.ZodNullable<z.ZodString>;
23
23
  variantID: z.ZodNullable<z.ZodString>;
24
24
  cartProductID: z.ZodNullable<z.ZodString>;
25
- }, z.core.$strip>;
25
+ }, z.core.$loose>;
26
26
  declare const omnisendUpdateCartProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  cart_id: string;
28
28
  currency: string;
@@ -38,7 +38,19 @@ declare const omnisendUpdateCartProduct: import("@keystrokehq/action").WorkflowA
38
38
  variant_id?: string | undefined;
39
39
  description?: string | undefined;
40
40
  product_url?: string | undefined;
41
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
41
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
42
+ connectionId: z.ZodString;
43
+ entityId: z.ZodString;
44
+ instanceId: z.ZodString;
45
+ }, z.core.$strip>, z.ZodObject<{
46
+ accessToken: z.ZodString;
47
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
48
+ connectionId: z.ZodString;
49
+ entityId: z.ZodString;
50
+ instanceId: z.ZodString;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ accessToken: z.ZodString;
53
+ }, z.core.$strip>>]>;
42
54
  //#endregion
43
55
  export { omnisendUpdateCartProduct };
44
56
  //# sourceMappingURL=update-cart-product.d.mts.map
@@ -25,7 +25,7 @@ const omnisendUpdateCartProduct = action("OMNISEND_UPDATE_CART_PRODUCT", {
25
25
  productID: z.string().describe("Product identifier.").nullable(),
26
26
  variantID: z.string().describe("Product variant identifier.").nullable(),
27
27
  cartProductID: z.string().describe("Unique identifier of the product in the cart.").nullable()
28
- })
28
+ }).passthrough()
29
29
  });
30
30
  //#endregion
31
31
  export { omnisendUpdateCartProduct };
@@ -1 +1 @@
1
- {"version":3,"file":"update-cart-product.mjs","names":[],"sources":["../../src/actions/update-cart-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateCartProductInput = z.object({\n sku: z.string().describe(\"Stock keeping unit (SKU).\").optional(),\n price: z.number().int().describe(\"Current price in cents (e.g., 125 for $1.25).\").optional(),\n title: z.string().describe(\"Product title.\").optional(),\n cart_id: z.string().describe(\"Unique identifier of the cart.\"),\n currency: z.string().describe(\"ISO currency code (3 characters). Must match the cart's currency.\"),\n discount: z.number().int().describe(\"Discount sum in cents.\").optional(),\n quantity: z.number().int().describe(\"Product quantity (must be a whole number, minimum 1).\").optional(),\n image_url: z.string().describe(\"Link to product image.\").optional(),\n old_price: z.number().int().describe(\"Original price in cents (e.g., 125 for $1.25).\").optional(),\n product_id: z.string().describe(\"Product identifier.\").optional(),\n variant_id: z.string().describe(\"Product variant identifier.\").optional(),\n description: z.string().describe(\"Product description.\").optional(),\n product_url: z.string().describe(\"Link to product page.\").optional(),\n cart_product_id: z.string().describe(\"Unique identifier of the product in the cart to update.\"),\n});\nexport const OmnisendUpdateCartProductOutput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart.\").nullable(),\n productID: z.string().describe(\"Product identifier.\").nullable(),\n variantID: z.string().describe(\"Product variant identifier.\").nullable(),\n cartProductID: z.string().describe(\"Unique identifier of the product in the cart.\").nullable(),\n});\n\nexport const omnisendUpdateCartProduct = action(\"OMNISEND_UPDATE_CART_PRODUCT\", {\n slug: \"omnisend-update-cart-product\",\n name: \"Update Cart Product\",\n description: \"Tool to update a product in a cart (v3 API). Use when you need to modify product details such as quantity, price, or other attributes for an existing cart item.\",\n input: OmnisendUpdateCartProductInput,\n output: OmnisendUpdateCartProductOutput,\n});\n"],"mappings":";;AA2BA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3B4C,EAAE,OAAO;EACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EACjG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EACvE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACtG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAClE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAChG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACxE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAClE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACnE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAChG,CAYS;CACP,QAZ6C,EAAE,OAAO;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACvE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC/F,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"update-cart-product.mjs","names":[],"sources":["../../src/actions/update-cart-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateCartProductInput = z.object({\n sku: z.string().describe(\"Stock keeping unit (SKU).\").optional(),\n price: z.number().int().describe(\"Current price in cents (e.g., 125 for $1.25).\").optional(),\n title: z.string().describe(\"Product title.\").optional(),\n cart_id: z.string().describe(\"Unique identifier of the cart.\"),\n currency: z.string().describe(\"ISO currency code (3 characters). Must match the cart's currency.\"),\n discount: z.number().int().describe(\"Discount sum in cents.\").optional(),\n quantity: z.number().int().describe(\"Product quantity (must be a whole number, minimum 1).\").optional(),\n image_url: z.string().describe(\"Link to product image.\").optional(),\n old_price: z.number().int().describe(\"Original price in cents (e.g., 125 for $1.25).\").optional(),\n product_id: z.string().describe(\"Product identifier.\").optional(),\n variant_id: z.string().describe(\"Product variant identifier.\").optional(),\n description: z.string().describe(\"Product description.\").optional(),\n product_url: z.string().describe(\"Link to product page.\").optional(),\n cart_product_id: z.string().describe(\"Unique identifier of the product in the cart to update.\"),\n});\nexport const OmnisendUpdateCartProductOutput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart.\").nullable(),\n productID: z.string().describe(\"Product identifier.\").nullable(),\n variantID: z.string().describe(\"Product variant identifier.\").nullable(),\n cartProductID: z.string().describe(\"Unique identifier of the product in the cart.\").nullable(),\n}).passthrough();\n\nexport const omnisendUpdateCartProduct = action(\"OMNISEND_UPDATE_CART_PRODUCT\", {\n slug: \"omnisend-update-cart-product\",\n name: \"Update Cart Product\",\n description: \"Tool to update a product in a cart (v3 API). Use when you need to modify product details such as quantity, price, or other attributes for an existing cart item.\",\n input: OmnisendUpdateCartProductInput,\n output: OmnisendUpdateCartProductOutput,\n});\n"],"mappings":";;AA2BA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3B4C,EAAE,OAAO;EACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EACjG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EACvE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACtG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAClE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAChG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACxE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAClE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACnE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAChG,CAYS;CACP,QAZ6C,EAAE,OAAO;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACvE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -18,10 +18,10 @@ const OmnisendUpdateCartInput = zod.z.object({
18
18
  productUrl: zod.z.string().describe("URL to the product page").optional(),
19
19
  description: zod.z.string().describe("Product description").optional(),
20
20
  cartProductID: zod.z.string().describe("Unique identifier for the product in the cart")
21
- })).describe("List of products in the cart").optional(),
21
+ }).passthrough()).describe("List of products in the cart").optional(),
22
22
  cartRecoveryUrl: zod.z.string().describe("URL to recover the cart").optional()
23
23
  });
24
- const OmnisendUpdateCartOutput = zod.z.object({ cartID: zod.z.string().describe("Unique identifier of the updated cart").nullable() });
24
+ const OmnisendUpdateCartOutput = zod.z.object({ cartID: zod.z.string().describe("Unique identifier of the updated cart").nullable() }).passthrough();
25
25
  const omnisendUpdateCart = require_action.action("OMNISEND_UPDATE_CART", {
26
26
  slug: "omnisend-update-cart",
27
27
  name: "Update Cart",
@@ -1 +1 @@
1
- {"version":3,"file":"update-cart.cjs","names":["z","action"],"sources":["../../src/actions/update-cart.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateCartInput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart to update\"),\n cartSum: z.number().int().describe(\"Total cart value in cents, without commas. For example, for $1.25 USD use 125\"),\n currency: z.string().describe(\"ISO currency code (3 characters)\"),\n products: z.array(z.object({\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n price: z.number().int().describe(\"Product price in cents (e.g., 100 for $1.00)\").optional(),\n title: z.string().describe(\"Product title\").optional(),\n discount: z.number().int().describe(\"Discount amount in cents\").optional(),\n imageUrl: z.string().describe(\"URL to the product image\").optional(),\n oldPrice: z.number().int().describe(\"Original price before discount in cents\").optional(),\n quantity: z.number().int().describe(\"Quantity of the product in the cart\").optional(),\n productID: z.string().describe(\"Product ID from your catalog\").optional(),\n variantID: z.string().describe(\"Product variant ID\").optional(),\n productUrl: z.string().describe(\"URL to the product page\").optional(),\n description: z.string().describe(\"Product description\").optional(),\n cartProductID: z.string().describe(\"Unique identifier for the product in the cart\"),\n})).describe(\"List of products in the cart\").optional(),\n cartRecoveryUrl: z.string().describe(\"URL to recover the cart\").optional(),\n});\nexport const OmnisendUpdateCartOutput = z.object({\n cartID: z.string().describe(\"Unique identifier of the updated cart\").nullable(),\n});\n\nexport const omnisendUpdateCart = action(\"OMNISEND_UPDATE_CART\", {\n slug: \"omnisend-update-cart\",\n name: \"Update Cart\",\n description: \"Tool to partially update a cart in Omnisend (v3 API). Use when you need to modify cart details such as currency, total amount, recovery URL, or products.\",\n input: OmnisendUpdateCartInput,\n output: OmnisendUpdateCartOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E;CAClH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAChE,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EACpE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EACjE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACpF,CAAC,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AAC3E,CAAC;AACD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,EAChF,CAAC;AAED,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-cart.cjs","names":["z","action"],"sources":["../../src/actions/update-cart.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateCartInput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart to update\"),\n cartSum: z.number().int().describe(\"Total cart value in cents, without commas. For example, for $1.25 USD use 125\"),\n currency: z.string().describe(\"ISO currency code (3 characters)\"),\n products: z.array(z.object({\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n price: z.number().int().describe(\"Product price in cents (e.g., 100 for $1.00)\").optional(),\n title: z.string().describe(\"Product title\").optional(),\n discount: z.number().int().describe(\"Discount amount in cents\").optional(),\n imageUrl: z.string().describe(\"URL to the product image\").optional(),\n oldPrice: z.number().int().describe(\"Original price before discount in cents\").optional(),\n quantity: z.number().int().describe(\"Quantity of the product in the cart\").optional(),\n productID: z.string().describe(\"Product ID from your catalog\").optional(),\n variantID: z.string().describe(\"Product variant ID\").optional(),\n productUrl: z.string().describe(\"URL to the product page\").optional(),\n description: z.string().describe(\"Product description\").optional(),\n cartProductID: z.string().describe(\"Unique identifier for the product in the cart\"),\n}).passthrough()).describe(\"List of products in the cart\").optional(),\n cartRecoveryUrl: z.string().describe(\"URL to recover the cart\").optional(),\n});\nexport const OmnisendUpdateCartOutput = z.object({\n cartID: z.string().describe(\"Unique identifier of the updated cart\").nullable(),\n}).passthrough();\n\nexport const omnisendUpdateCart = action(\"OMNISEND_UPDATE_CART\", {\n slug: \"omnisend-update-cart\",\n name: \"Update Cart\",\n description: \"Tool to partially update a cart in Omnisend (v3 API). Use when you need to modify cart details such as currency, total amount, recovery URL, or products.\",\n input: OmnisendUpdateCartInput,\n output: OmnisendUpdateCartOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E;CAClH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAChE,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EACpE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EACjE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAClE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AAC3E,CAAC;AACD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,EAChF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -18,17 +18,18 @@ declare const OmnisendUpdateCartInput: z.ZodObject<{
18
18
  productUrl: z.ZodOptional<z.ZodString>;
19
19
  description: z.ZodOptional<z.ZodString>;
20
20
  cartProductID: z.ZodString;
21
- }, z.core.$strip>>>;
21
+ }, z.core.$loose>>>;
22
22
  cartRecoveryUrl: z.ZodOptional<z.ZodString>;
23
23
  }, z.core.$strip>;
24
24
  declare const OmnisendUpdateCartOutput: z.ZodObject<{
25
25
  cartID: z.ZodNullable<z.ZodString>;
26
- }, z.core.$strip>;
26
+ }, z.core.$loose>;
27
27
  declare const omnisendUpdateCart: import("@keystrokehq/action").WorkflowActionDefinition<{
28
28
  cartID: string;
29
29
  cartSum: number;
30
30
  currency: string;
31
31
  products?: {
32
+ [x: string]: unknown;
32
33
  cartProductID: string;
33
34
  sku?: string | undefined;
34
35
  price?: number | undefined;
@@ -43,7 +44,19 @@ declare const omnisendUpdateCart: import("@keystrokehq/action").WorkflowActionDe
43
44
  description?: string | undefined;
44
45
  }[] | undefined;
45
46
  cartRecoveryUrl?: string | undefined;
46
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
47
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
48
+ connectionId: z.ZodString;
49
+ entityId: z.ZodString;
50
+ instanceId: z.ZodString;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ accessToken: z.ZodString;
53
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
54
+ connectionId: z.ZodString;
55
+ entityId: z.ZodString;
56
+ instanceId: z.ZodString;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ accessToken: z.ZodString;
59
+ }, z.core.$strip>>]>;
47
60
  //#endregion
48
61
  export { omnisendUpdateCart };
49
62
  //# sourceMappingURL=update-cart.d.cts.map
@@ -18,17 +18,18 @@ declare const OmnisendUpdateCartInput: z.ZodObject<{
18
18
  productUrl: z.ZodOptional<z.ZodString>;
19
19
  description: z.ZodOptional<z.ZodString>;
20
20
  cartProductID: z.ZodString;
21
- }, z.core.$strip>>>;
21
+ }, z.core.$loose>>>;
22
22
  cartRecoveryUrl: z.ZodOptional<z.ZodString>;
23
23
  }, z.core.$strip>;
24
24
  declare const OmnisendUpdateCartOutput: z.ZodObject<{
25
25
  cartID: z.ZodNullable<z.ZodString>;
26
- }, z.core.$strip>;
26
+ }, z.core.$loose>;
27
27
  declare const omnisendUpdateCart: import("@keystrokehq/action").WorkflowActionDefinition<{
28
28
  cartID: string;
29
29
  cartSum: number;
30
30
  currency: string;
31
31
  products?: {
32
+ [x: string]: unknown;
32
33
  cartProductID: string;
33
34
  sku?: string | undefined;
34
35
  price?: number | undefined;
@@ -43,7 +44,19 @@ declare const omnisendUpdateCart: import("@keystrokehq/action").WorkflowActionDe
43
44
  description?: string | undefined;
44
45
  }[] | undefined;
45
46
  cartRecoveryUrl?: string | undefined;
46
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
47
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
48
+ connectionId: z.ZodString;
49
+ entityId: z.ZodString;
50
+ instanceId: z.ZodString;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ accessToken: z.ZodString;
53
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
54
+ connectionId: z.ZodString;
55
+ entityId: z.ZodString;
56
+ instanceId: z.ZodString;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ accessToken: z.ZodString;
59
+ }, z.core.$strip>>]>;
47
60
  //#endregion
48
61
  export { omnisendUpdateCart };
49
62
  //# sourceMappingURL=update-cart.d.mts.map
@@ -21,10 +21,10 @@ const omnisendUpdateCart = action("OMNISEND_UPDATE_CART", {
21
21
  productUrl: z.string().describe("URL to the product page").optional(),
22
22
  description: z.string().describe("Product description").optional(),
23
23
  cartProductID: z.string().describe("Unique identifier for the product in the cart")
24
- })).describe("List of products in the cart").optional(),
24
+ }).passthrough()).describe("List of products in the cart").optional(),
25
25
  cartRecoveryUrl: z.string().describe("URL to recover the cart").optional()
26
26
  }),
27
- output: z.object({ cartID: z.string().describe("Unique identifier of the updated cart").nullable() })
27
+ output: z.object({ cartID: z.string().describe("Unique identifier of the updated cart").nullable() }).passthrough()
28
28
  });
29
29
  //#endregion
30
30
  export { omnisendUpdateCart };
@@ -1 +1 @@
1
- {"version":3,"file":"update-cart.mjs","names":[],"sources":["../../src/actions/update-cart.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateCartInput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart to update\"),\n cartSum: z.number().int().describe(\"Total cart value in cents, without commas. For example, for $1.25 USD use 125\"),\n currency: z.string().describe(\"ISO currency code (3 characters)\"),\n products: z.array(z.object({\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n price: z.number().int().describe(\"Product price in cents (e.g., 100 for $1.00)\").optional(),\n title: z.string().describe(\"Product title\").optional(),\n discount: z.number().int().describe(\"Discount amount in cents\").optional(),\n imageUrl: z.string().describe(\"URL to the product image\").optional(),\n oldPrice: z.number().int().describe(\"Original price before discount in cents\").optional(),\n quantity: z.number().int().describe(\"Quantity of the product in the cart\").optional(),\n productID: z.string().describe(\"Product ID from your catalog\").optional(),\n variantID: z.string().describe(\"Product variant ID\").optional(),\n productUrl: z.string().describe(\"URL to the product page\").optional(),\n description: z.string().describe(\"Product description\").optional(),\n cartProductID: z.string().describe(\"Unique identifier for the product in the cart\"),\n})).describe(\"List of products in the cart\").optional(),\n cartRecoveryUrl: z.string().describe(\"URL to recover the cart\").optional(),\n});\nexport const OmnisendUpdateCartOutput = z.object({\n cartID: z.string().describe(\"Unique identifier of the updated cart\").nullable(),\n});\n\nexport const omnisendUpdateCart = action(\"OMNISEND_UPDATE_CART\", {\n slug: \"omnisend-update-cart\",\n name: \"Update Cart\",\n description: \"Tool to partially update a cart in Omnisend (v3 API). Use when you need to modify cart details such as currency, total amount, recovery URL, or products.\",\n input: OmnisendUpdateCartInput,\n output: OmnisendUpdateCartOutput,\n});\n"],"mappings":";;AA4BA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5BqC,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CAC3E,CASS;CACP,QATsC,EAAE,OAAO,EAC/C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,EAChF,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"update-cart.mjs","names":[],"sources":["../../src/actions/update-cart.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateCartInput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart to update\"),\n cartSum: z.number().int().describe(\"Total cart value in cents, without commas. For example, for $1.25 USD use 125\"),\n currency: z.string().describe(\"ISO currency code (3 characters)\"),\n products: z.array(z.object({\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n price: z.number().int().describe(\"Product price in cents (e.g., 100 for $1.00)\").optional(),\n title: z.string().describe(\"Product title\").optional(),\n discount: z.number().int().describe(\"Discount amount in cents\").optional(),\n imageUrl: z.string().describe(\"URL to the product image\").optional(),\n oldPrice: z.number().int().describe(\"Original price before discount in cents\").optional(),\n quantity: z.number().int().describe(\"Quantity of the product in the cart\").optional(),\n productID: z.string().describe(\"Product ID from your catalog\").optional(),\n variantID: z.string().describe(\"Product variant ID\").optional(),\n productUrl: z.string().describe(\"URL to the product page\").optional(),\n description: z.string().describe(\"Product description\").optional(),\n cartProductID: z.string().describe(\"Unique identifier for the product in the cart\"),\n}).passthrough()).describe(\"List of products in the cart\").optional(),\n cartRecoveryUrl: z.string().describe(\"URL to recover the cart\").optional(),\n});\nexport const OmnisendUpdateCartOutput = z.object({\n cartID: z.string().describe(\"Unique identifier of the updated cart\").nullable(),\n}).passthrough();\n\nexport const omnisendUpdateCart = action(\"OMNISEND_UPDATE_CART\", {\n slug: \"omnisend-update-cart\",\n name: \"Update Cart\",\n description: \"Tool to partially update a cart in Omnisend (v3 API). Use when you need to modify cart details such as currency, total amount, recovery URL, or products.\",\n input: OmnisendUpdateCartInput,\n output: OmnisendUpdateCartOutput,\n});\n"],"mappings":";;AA4BA,MAAa,q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AAC,CAAC,SAAS;EAClE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC3E,CASS;CACP,QATsC,EAAE,OAAO,EAC/C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,EAChF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -35,8 +35,8 @@ const OmnisendUpdateContactInput = zod.z.object({
35
35
  statusDate: zod.z.string().describe("ISO 8601 date of status change").optional()
36
36
  }).describe("Email channel subscription settings").optional()
37
37
  }).describe("Channel-specific subscription settings").optional()
38
- })).describe("List of identifiers to associate with the contact").optional(),
39
- customProperties: zod.z.object({}).describe("Custom properties as key-value pairs").optional()
38
+ }).passthrough()).describe("List of identifiers to associate with the contact").optional(),
39
+ customProperties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom properties as key-value pairs").optional()
40
40
  }).describe("Fields to update on the contact"),
41
41
  contactId: zod.z.string().describe("Unique identifier of the contact to update")
42
42
  });
@@ -46,7 +46,7 @@ const OmnisendUpdateContactOutput = zod.z.object({
46
46
  lastName: zod.z.string().describe("Last name of the updated contact").nullable().optional(),
47
47
  contactID: zod.z.string().describe("Unique identifier of the updated contact").nullable(),
48
48
  firstName: zod.z.string().describe("First name of the updated contact").nullable().optional()
49
- });
49
+ }).passthrough();
50
50
  const omnisendUpdateContact = require_action.action("OMNISEND_UPDATE_CONTACT", {
51
51
  slug: "omnisend-update-contact",
52
52
  name: "Update Contact",