@keystrokehq/moosend 0.1.0 → 0.1.2

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 (247) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-segment-criteria.cjs +1 -1
  4. package/dist/actions/add-segment-criteria.cjs.map +1 -1
  5. package/dist/actions/add-segment-criteria.d.cts +25 -3
  6. package/dist/actions/add-segment-criteria.d.cts.map +1 -1
  7. package/dist/actions/add-segment-criteria.d.mts +25 -3
  8. package/dist/actions/add-segment-criteria.d.mts.map +1 -1
  9. package/dist/actions/add-segment-criteria.mjs +1 -1
  10. package/dist/actions/add-segment-criteria.mjs.map +1 -1
  11. package/dist/actions/add-subscriber.cjs +1 -1
  12. package/dist/actions/add-subscriber.cjs.map +1 -1
  13. package/dist/actions/add-subscriber.d.cts +25 -3
  14. package/dist/actions/add-subscriber.d.cts.map +1 -1
  15. package/dist/actions/add-subscriber.d.mts +25 -3
  16. package/dist/actions/add-subscriber.d.mts.map +1 -1
  17. package/dist/actions/add-subscriber.mjs +1 -1
  18. package/dist/actions/add-subscriber.mjs.map +1 -1
  19. package/dist/actions/clone-campaign.cjs +1 -1
  20. package/dist/actions/clone-campaign.cjs.map +1 -1
  21. package/dist/actions/clone-campaign.d.cts +16 -3
  22. package/dist/actions/clone-campaign.d.cts.map +1 -1
  23. package/dist/actions/clone-campaign.d.mts +16 -3
  24. package/dist/actions/clone-campaign.d.mts.map +1 -1
  25. package/dist/actions/clone-campaign.mjs +1 -1
  26. package/dist/actions/clone-campaign.mjs.map +1 -1
  27. package/dist/actions/create-custom-field.cjs +1 -1
  28. package/dist/actions/create-custom-field.cjs.map +1 -1
  29. package/dist/actions/create-custom-field.d.cts +32 -3
  30. package/dist/actions/create-custom-field.d.cts.map +1 -1
  31. package/dist/actions/create-custom-field.d.mts +32 -3
  32. package/dist/actions/create-custom-field.d.mts.map +1 -1
  33. package/dist/actions/create-custom-field.mjs +1 -1
  34. package/dist/actions/create-custom-field.mjs.map +1 -1
  35. package/dist/actions/create-mailing-list.cjs +1 -1
  36. package/dist/actions/create-mailing-list.cjs.map +1 -1
  37. package/dist/actions/create-mailing-list.d.cts +15 -3
  38. package/dist/actions/create-mailing-list.d.cts.map +1 -1
  39. package/dist/actions/create-mailing-list.d.mts +15 -3
  40. package/dist/actions/create-mailing-list.d.mts.map +1 -1
  41. package/dist/actions/create-mailing-list.mjs +1 -1
  42. package/dist/actions/create-mailing-list.mjs.map +1 -1
  43. package/dist/actions/create-segment.cjs +1 -1
  44. package/dist/actions/create-segment.cjs.map +1 -1
  45. package/dist/actions/create-segment.d.cts +41 -3
  46. package/dist/actions/create-segment.d.cts.map +1 -1
  47. package/dist/actions/create-segment.d.mts +41 -3
  48. package/dist/actions/create-segment.d.mts.map +1 -1
  49. package/dist/actions/create-segment.mjs +1 -1
  50. package/dist/actions/create-segment.mjs.map +1 -1
  51. package/dist/actions/delete-campaign.cjs.map +1 -1
  52. package/dist/actions/delete-campaign.d.cts +16 -3
  53. package/dist/actions/delete-campaign.d.cts.map +1 -1
  54. package/dist/actions/delete-campaign.d.mts +16 -3
  55. package/dist/actions/delete-campaign.d.mts.map +1 -1
  56. package/dist/actions/delete-campaign.mjs.map +1 -1
  57. package/dist/actions/delete-custom-field.cjs.map +1 -1
  58. package/dist/actions/delete-custom-field.d.cts +18 -3
  59. package/dist/actions/delete-custom-field.d.cts.map +1 -1
  60. package/dist/actions/delete-custom-field.d.mts +18 -3
  61. package/dist/actions/delete-custom-field.d.mts.map +1 -1
  62. package/dist/actions/delete-custom-field.mjs.map +1 -1
  63. package/dist/actions/delete-mailing-list.cjs.map +1 -1
  64. package/dist/actions/delete-mailing-list.d.cts +13 -3
  65. package/dist/actions/delete-mailing-list.d.cts.map +1 -1
  66. package/dist/actions/delete-mailing-list.d.mts +13 -3
  67. package/dist/actions/delete-mailing-list.d.mts.map +1 -1
  68. package/dist/actions/delete-mailing-list.mjs.map +1 -1
  69. package/dist/actions/get-all-campaigns.cjs +1 -1
  70. package/dist/actions/get-all-campaigns.cjs.map +1 -1
  71. package/dist/actions/get-all-campaigns.d.cts +13 -3
  72. package/dist/actions/get-all-campaigns.d.cts.map +1 -1
  73. package/dist/actions/get-all-campaigns.d.mts +13 -3
  74. package/dist/actions/get-all-campaigns.d.mts.map +1 -1
  75. package/dist/actions/get-all-campaigns.mjs +1 -1
  76. package/dist/actions/get-all-campaigns.mjs.map +1 -1
  77. package/dist/actions/get-all-subscribers.cjs +13 -13
  78. package/dist/actions/get-all-subscribers.cjs.map +1 -1
  79. package/dist/actions/get-all-subscribers.d.cts +53 -3
  80. package/dist/actions/get-all-subscribers.d.cts.map +1 -1
  81. package/dist/actions/get-all-subscribers.d.mts +53 -3
  82. package/dist/actions/get-all-subscribers.d.mts.map +1 -1
  83. package/dist/actions/get-all-subscribers.mjs +13 -13
  84. package/dist/actions/get-all-subscribers.mjs.map +1 -1
  85. package/dist/actions/get-campaign-details.cjs +1 -1
  86. package/dist/actions/get-campaign-details.cjs.map +1 -1
  87. package/dist/actions/get-campaign-details.d.cts +11 -3
  88. package/dist/actions/get-campaign-details.d.cts.map +1 -1
  89. package/dist/actions/get-campaign-details.d.mts +11 -3
  90. package/dist/actions/get-campaign-details.d.mts.map +1 -1
  91. package/dist/actions/get-campaign-details.mjs +1 -1
  92. package/dist/actions/get-campaign-details.mjs.map +1 -1
  93. package/dist/actions/get-campaign-stats-by-location.cjs +1 -1
  94. package/dist/actions/get-campaign-stats-by-location.cjs.map +1 -1
  95. package/dist/actions/get-campaign-stats-by-location.d.cts +11 -3
  96. package/dist/actions/get-campaign-stats-by-location.d.cts.map +1 -1
  97. package/dist/actions/get-campaign-stats-by-location.d.mts +11 -3
  98. package/dist/actions/get-campaign-stats-by-location.d.mts.map +1 -1
  99. package/dist/actions/get-campaign-stats-by-location.mjs +1 -1
  100. package/dist/actions/get-campaign-stats-by-location.mjs.map +1 -1
  101. package/dist/actions/get-mailing-list-details.cjs +13 -13
  102. package/dist/actions/get-mailing-list-details.cjs.map +1 -1
  103. package/dist/actions/get-mailing-list-details.d.cts +41 -3
  104. package/dist/actions/get-mailing-list-details.d.cts.map +1 -1
  105. package/dist/actions/get-mailing-list-details.d.mts +41 -3
  106. package/dist/actions/get-mailing-list-details.d.mts.map +1 -1
  107. package/dist/actions/get-mailing-list-details.mjs +13 -13
  108. package/dist/actions/get-mailing-list-details.mjs.map +1 -1
  109. package/dist/actions/get-subscriber-by-email.cjs +8 -8
  110. package/dist/actions/get-subscriber-by-email.cjs.map +1 -1
  111. package/dist/actions/get-subscriber-by-email.d.cts +33 -3
  112. package/dist/actions/get-subscriber-by-email.d.cts.map +1 -1
  113. package/dist/actions/get-subscriber-by-email.d.mts +33 -3
  114. package/dist/actions/get-subscriber-by-email.d.mts.map +1 -1
  115. package/dist/actions/get-subscriber-by-email.mjs +8 -8
  116. package/dist/actions/get-subscriber-by-email.mjs.map +1 -1
  117. package/dist/actions/list-all-mailing-lists.cjs +18 -18
  118. package/dist/actions/list-all-mailing-lists.cjs.map +1 -1
  119. package/dist/actions/list-all-mailing-lists.d.cts +61 -3
  120. package/dist/actions/list-all-mailing-lists.d.cts.map +1 -1
  121. package/dist/actions/list-all-mailing-lists.d.mts +61 -3
  122. package/dist/actions/list-all-mailing-lists.d.mts.map +1 -1
  123. package/dist/actions/list-all-mailing-lists.mjs +18 -18
  124. package/dist/actions/list-all-mailing-lists.mjs.map +1 -1
  125. package/dist/actions/list-all-senders.cjs +1 -1
  126. package/dist/actions/list-all-senders.cjs.map +1 -1
  127. package/dist/actions/list-all-senders.d.cts +21 -3
  128. package/dist/actions/list-all-senders.d.cts.map +1 -1
  129. package/dist/actions/list-all-senders.d.mts +21 -3
  130. package/dist/actions/list-all-senders.d.mts.map +1 -1
  131. package/dist/actions/list-all-senders.mjs +1 -1
  132. package/dist/actions/list-all-senders.mjs.map +1 -1
  133. package/dist/actions/list-campaigns-with-paging.cjs +8 -8
  134. package/dist/actions/list-campaigns-with-paging.cjs.map +1 -1
  135. package/dist/actions/list-campaigns-with-paging.d.cts +49 -3
  136. package/dist/actions/list-campaigns-with-paging.d.cts.map +1 -1
  137. package/dist/actions/list-campaigns-with-paging.d.mts +49 -3
  138. package/dist/actions/list-campaigns-with-paging.d.mts.map +1 -1
  139. package/dist/actions/list-campaigns-with-paging.mjs +8 -8
  140. package/dist/actions/list-campaigns-with-paging.mjs.map +1 -1
  141. package/dist/actions/list-segments.cjs +1 -1
  142. package/dist/actions/list-segments.cjs.map +1 -1
  143. package/dist/actions/list-segments.d.cts +46 -3
  144. package/dist/actions/list-segments.d.cts.map +1 -1
  145. package/dist/actions/list-segments.d.mts +46 -3
  146. package/dist/actions/list-segments.d.mts.map +1 -1
  147. package/dist/actions/list-segments.mjs +1 -1
  148. package/dist/actions/list-segments.mjs.map +1 -1
  149. package/dist/actions/remove-multiple-subscribers.cjs +1 -1
  150. package/dist/actions/remove-multiple-subscribers.cjs.map +1 -1
  151. package/dist/actions/remove-multiple-subscribers.d.cts +15 -3
  152. package/dist/actions/remove-multiple-subscribers.d.cts.map +1 -1
  153. package/dist/actions/remove-multiple-subscribers.d.mts +15 -3
  154. package/dist/actions/remove-multiple-subscribers.d.mts.map +1 -1
  155. package/dist/actions/remove-multiple-subscribers.mjs +1 -1
  156. package/dist/actions/remove-multiple-subscribers.mjs.map +1 -1
  157. package/dist/actions/schedule-campaign.cjs.map +1 -1
  158. package/dist/actions/schedule-campaign.d.cts +17 -3
  159. package/dist/actions/schedule-campaign.d.cts.map +1 -1
  160. package/dist/actions/schedule-campaign.d.mts +17 -3
  161. package/dist/actions/schedule-campaign.d.mts.map +1 -1
  162. package/dist/actions/schedule-campaign.mjs.map +1 -1
  163. package/dist/actions/send-campaign.cjs +1 -1
  164. package/dist/actions/send-campaign.cjs.map +1 -1
  165. package/dist/actions/send-campaign.d.cts +13 -3
  166. package/dist/actions/send-campaign.d.cts.map +1 -1
  167. package/dist/actions/send-campaign.d.mts +13 -3
  168. package/dist/actions/send-campaign.d.mts.map +1 -1
  169. package/dist/actions/send-campaign.mjs +1 -1
  170. package/dist/actions/send-campaign.mjs.map +1 -1
  171. package/dist/actions/unschedule-campaign.cjs.map +1 -1
  172. package/dist/actions/unschedule-campaign.d.cts +16 -3
  173. package/dist/actions/unschedule-campaign.d.cts.map +1 -1
  174. package/dist/actions/unschedule-campaign.d.mts +16 -3
  175. package/dist/actions/unschedule-campaign.d.mts.map +1 -1
  176. package/dist/actions/unschedule-campaign.mjs.map +1 -1
  177. package/dist/actions/unsubscribe-from-account.cjs +1 -1
  178. package/dist/actions/unsubscribe-from-account.cjs.map +1 -1
  179. package/dist/actions/unsubscribe-from-account.d.cts +16 -3
  180. package/dist/actions/unsubscribe-from-account.d.cts.map +1 -1
  181. package/dist/actions/unsubscribe-from-account.d.mts +16 -3
  182. package/dist/actions/unsubscribe-from-account.d.mts.map +1 -1
  183. package/dist/actions/unsubscribe-from-account.mjs +1 -1
  184. package/dist/actions/unsubscribe-from-account.mjs.map +1 -1
  185. package/dist/actions/unsubscribe-from-mailing-list.cjs +1 -1
  186. package/dist/actions/unsubscribe-from-mailing-list.cjs.map +1 -1
  187. package/dist/actions/unsubscribe-from-mailing-list.d.cts +15 -3
  188. package/dist/actions/unsubscribe-from-mailing-list.d.cts.map +1 -1
  189. package/dist/actions/unsubscribe-from-mailing-list.d.mts +15 -3
  190. package/dist/actions/unsubscribe-from-mailing-list.d.mts.map +1 -1
  191. package/dist/actions/unsubscribe-from-mailing-list.mjs +1 -1
  192. package/dist/actions/unsubscribe-from-mailing-list.mjs.map +1 -1
  193. package/dist/actions/update-campaign.cjs +1 -1
  194. package/dist/actions/update-campaign.cjs.map +1 -1
  195. package/dist/actions/update-campaign.d.cts +63 -3
  196. package/dist/actions/update-campaign.d.cts.map +1 -1
  197. package/dist/actions/update-campaign.d.mts +63 -3
  198. package/dist/actions/update-campaign.d.mts.map +1 -1
  199. package/dist/actions/update-campaign.mjs +1 -1
  200. package/dist/actions/update-campaign.mjs.map +1 -1
  201. package/dist/actions/update-custom-field.cjs +1 -1
  202. package/dist/actions/update-custom-field.cjs.map +1 -1
  203. package/dist/actions/update-custom-field.d.cts +34 -3
  204. package/dist/actions/update-custom-field.d.cts.map +1 -1
  205. package/dist/actions/update-custom-field.d.mts +34 -3
  206. package/dist/actions/update-custom-field.d.mts.map +1 -1
  207. package/dist/actions/update-custom-field.mjs +1 -1
  208. package/dist/actions/update-custom-field.mjs.map +1 -1
  209. package/dist/actions/update-mailing-list.cjs +8 -8
  210. package/dist/actions/update-mailing-list.cjs.map +1 -1
  211. package/dist/actions/update-mailing-list.d.cts +32 -3
  212. package/dist/actions/update-mailing-list.d.cts.map +1 -1
  213. package/dist/actions/update-mailing-list.d.mts +32 -3
  214. package/dist/actions/update-mailing-list.d.mts.map +1 -1
  215. package/dist/actions/update-mailing-list.mjs +8 -8
  216. package/dist/actions/update-mailing-list.mjs.map +1 -1
  217. package/dist/actions/update-segment-criteria.cjs +1 -1
  218. package/dist/actions/update-segment-criteria.cjs.map +1 -1
  219. package/dist/actions/update-segment-criteria.d.cts +30 -3
  220. package/dist/actions/update-segment-criteria.d.cts.map +1 -1
  221. package/dist/actions/update-segment-criteria.d.mts +30 -3
  222. package/dist/actions/update-segment-criteria.d.mts.map +1 -1
  223. package/dist/actions/update-segment-criteria.mjs +1 -1
  224. package/dist/actions/update-segment-criteria.mjs.map +1 -1
  225. package/dist/actions/update-segment.cjs +1 -1
  226. package/dist/actions/update-segment.cjs.map +1 -1
  227. package/dist/actions/update-segment.d.cts +52 -3
  228. package/dist/actions/update-segment.d.cts.map +1 -1
  229. package/dist/actions/update-segment.d.mts +52 -3
  230. package/dist/actions/update-segment.d.mts.map +1 -1
  231. package/dist/actions/update-segment.mjs +1 -1
  232. package/dist/actions/update-segment.mjs.map +1 -1
  233. package/dist/actions/update-subscriber.cjs +1 -1
  234. package/dist/actions/update-subscriber.cjs.map +1 -1
  235. package/dist/actions/update-subscriber.d.cts +26 -3
  236. package/dist/actions/update-subscriber.d.cts.map +1 -1
  237. package/dist/actions/update-subscriber.d.mts +26 -3
  238. package/dist/actions/update-subscriber.d.mts.map +1 -1
  239. package/dist/actions/update-subscriber.mjs +1 -1
  240. package/dist/actions/update-subscriber.mjs.map +1 -1
  241. package/dist/catalog.cjs +7 -1
  242. package/dist/catalog.cjs.map +1 -1
  243. package/dist/catalog.d.cts +8 -0
  244. package/dist/catalog.d.mts +8 -0
  245. package/dist/catalog.mjs +7 -1
  246. package/dist/catalog.mjs.map +1 -1
  247. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"create-mailing-list.cjs","names":["z","action"],"sources":["../../src/actions/create-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateMailingListInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"Name of the mailing list.\"),\n ConfirmationPage: z.string().describe(\"URL displayed after subscription confirmation.\").optional(),\n RedirectAfterUnsubscribePage: z.string().describe(\"URL users are redirected to after unsubscribing.\").optional(),\n}).describe(\"Request model for creating a new mailing list in Moosend.\");\nexport const MoosendCreateMailingListOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"ID of the newly created mailing list; null on error.\").nullable().optional(),\n}).describe(\"Response model for CreateMailingList action.\");\n\nexport const moosendCreateMailingList = action(\"MOOSEND_CREATE_MAILING_LIST\", {\n slug: \"moosend-create-mailing-list\",\n name: \"Create Mailing List\",\n description: \"Tool to create a new empty mailing list in Moosend. Use after obtaining API key.\",\n input: MoosendCreateMailingListInput,\n output: MoosendCreateMailingListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACjG,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-mailing-list.cjs","names":["z","action"],"sources":["../../src/actions/create-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateMailingListInput = z.object({\n Name: z.string().describe(\"Name of the mailing list.\"),\n ConfirmationPage: z.string().describe(\"URL displayed after subscription confirmation.\").optional(),\n RedirectAfterUnsubscribePage: z.string().describe(\"URL users are redirected to after unsubscribing.\").optional(),\n}).describe(\"Request model for creating a new mailing list in Moosend.\");\nexport const MoosendCreateMailingListOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"ID of the newly created mailing list; null on error.\").nullable().optional(),\n}).describe(\"Response model for CreateMailingList action.\");\n\nexport const moosendCreateMailingList = action(\"MOOSEND_CREATE_MAILING_LIST\", {\n slug: \"moosend-create-mailing-list\",\n name: \"Create Mailing List\",\n description: \"Tool to create a new empty mailing list in Moosend. Use after obtaining API key.\",\n input: MoosendCreateMailingListInput,\n output: MoosendCreateMailingListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACjG,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-mailing-list.d.ts
4
- declare const MoosendCreateMailingListInput: z.ZodTypeAny;
5
- declare const MoosendCreateMailingListOutput: z.ZodTypeAny;
6
- declare const moosendCreateMailingList: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendCreateMailingListInput: z.ZodObject<{
5
+ Name: z.ZodString;
6
+ ConfirmationPage: z.ZodOptional<z.ZodString>;
7
+ RedirectAfterUnsubscribePage: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ declare const MoosendCreateMailingListOutput: z.ZodObject<{
10
+ Code: z.ZodNullable<z.ZodNumber>;
11
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, z.core.$strip>;
14
+ declare const moosendCreateMailingList: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ Name: string;
16
+ ConfirmationPage?: string | undefined;
17
+ RedirectAfterUnsubscribePage?: string | undefined;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { moosendCreateMailingList };
9
21
  //# sourceMappingURL=create-mailing-list.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-mailing-list.d.cts","names":[],"sources":["../../src/actions/create-mailing-list.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAI0B;AAAA,cAC3D,8BAAA,EAAgC,CAAA,CAAE,UAIY;AAAA,cAE9C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-mailing-list.d.cts","names":[],"sources":["../../src/actions/create-mailing-list.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAK7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-mailing-list.d.ts
4
- declare const MoosendCreateMailingListInput: z.ZodTypeAny;
5
- declare const MoosendCreateMailingListOutput: z.ZodTypeAny;
6
- declare const moosendCreateMailingList: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendCreateMailingListInput: z.ZodObject<{
5
+ Name: z.ZodString;
6
+ ConfirmationPage: z.ZodOptional<z.ZodString>;
7
+ RedirectAfterUnsubscribePage: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ declare const MoosendCreateMailingListOutput: z.ZodObject<{
10
+ Code: z.ZodNullable<z.ZodNumber>;
11
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, z.core.$strip>;
14
+ declare const moosendCreateMailingList: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ Name: string;
16
+ ConfirmationPage?: string | undefined;
17
+ RedirectAfterUnsubscribePage?: string | undefined;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { moosendCreateMailingList };
9
21
  //# sourceMappingURL=create-mailing-list.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-mailing-list.d.mts","names":[],"sources":["../../src/actions/create-mailing-list.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAI0B;AAAA,cAC3D,8BAAA,EAAgC,CAAA,CAAE,UAIY;AAAA,cAE9C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-mailing-list.d.mts","names":[],"sources":["../../src/actions/create-mailing-list.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAK7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -10,7 +10,7 @@ const moosendCreateMailingList = action("MOOSEND_CREATE_MAILING_LIST", {
10
10
  RedirectAfterUnsubscribePage: z.string().describe("URL users are redirected to after unsubscribing.").optional()
11
11
  }).describe("Request model for creating a new mailing list in Moosend."),
12
12
  output: z.object({
13
- Code: z.number().int().describe("Response code; 0 indicates success."),
13
+ Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
14
14
  Error: z.string().describe("Error message; null if successful.").nullable().optional(),
15
15
  Context: z.string().describe("ID of the newly created mailing list; null on error.").nullable().optional()
16
16
  }).describe("Response model for CreateMailingList action.")
@@ -1 +1 @@
1
- {"version":3,"file":"create-mailing-list.mjs","names":[],"sources":["../../src/actions/create-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateMailingListInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"Name of the mailing list.\"),\n ConfirmationPage: z.string().describe(\"URL displayed after subscription confirmation.\").optional(),\n RedirectAfterUnsubscribePage: z.string().describe(\"URL users are redirected to after unsubscribing.\").optional(),\n}).describe(\"Request model for creating a new mailing list in Moosend.\");\nexport const MoosendCreateMailingListOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"ID of the newly created mailing list; null on error.\").nullable().optional(),\n}).describe(\"Response model for CreateMailingList action.\");\n\nexport const moosendCreateMailingList = action(\"MOOSEND_CREATE_MAILING_LIST\", {\n slug: \"moosend-create-mailing-list\",\n name: \"Create Mailing List\",\n description: \"Tool to create a new empty mailing list in Moosend. Use after obtaining API key.\",\n input: MoosendCreateMailingListInput,\n output: MoosendCreateMailingListOutput,\n});\n"],"mappings":";;AAeA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfyD,EAAE,OAAO;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACrD,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACjG,8BAA8B,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,2DAWH;CACP,QAX0D,EAAE,OAAO;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-mailing-list.mjs","names":[],"sources":["../../src/actions/create-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateMailingListInput = z.object({\n Name: z.string().describe(\"Name of the mailing list.\"),\n ConfirmationPage: z.string().describe(\"URL displayed after subscription confirmation.\").optional(),\n RedirectAfterUnsubscribePage: z.string().describe(\"URL users are redirected to after unsubscribing.\").optional(),\n}).describe(\"Request model for creating a new mailing list in Moosend.\");\nexport const MoosendCreateMailingListOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"ID of the newly created mailing list; null on error.\").nullable().optional(),\n}).describe(\"Response model for CreateMailingList action.\");\n\nexport const moosendCreateMailingList = action(\"MOOSEND_CREATE_MAILING_LIST\", {\n slug: \"moosend-create-mailing-list\",\n name: \"Create Mailing List\",\n description: \"Tool to create a new empty mailing list in Moosend. Use after obtaining API key.\",\n input: MoosendCreateMailingListInput,\n output: MoosendCreateMailingListOutput,\n});\n"],"mappings":";;AAeA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACrD,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACjG,8BAA8B,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,2DAWH;CACP,QAX4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
@@ -19,7 +19,7 @@ const MoosendCreateSegmentInput = zod.z.object({
19
19
  mailingListID: zod.z.string().describe("The ID of the mailing list to create the segment in.")
20
20
  }).describe("Request schema for creating a new segment in a mailing list.");
21
21
  const MoosendCreateSegmentOutput = zod.z.object({
22
- Code: zod.z.number().int().describe("Response code; 0 indicates success."),
22
+ Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
23
23
  Error: zod.z.string().describe("Error message; null if successful.").nullable().optional(),
24
24
  Context: zod.z.string().describe("The ID of the newly created segment; null on error.").nullable().optional()
25
25
  }).describe("Response schema for CreateSegment action.");
@@ -1 +1 @@
1
- {"version":3,"file":"create-segment.cjs","names":["z","action"],"sources":["../../src/actions/create-segment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateSegmentInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The name of the segment.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'.\").optional(),\n Criteria: z.array(z.object({\n Field: z.string().describe(\"The field to filter on (e.g., 'Email', custom field name).\"),\n Value: z.string().describe(\"The value to compare against.\"),\n Comparer: z.string().describe(\"Comparison operator (e.g., 'Contains', 'Equals', 'DoesNotEqual').\"),\n}).describe(\"A single criterion for segment filtering.\")).describe(\"Array of filter criteria. Leave empty to create a segment without criteria.\").optional(),\n FetchType: z.enum([\"All\", \"Top\", \"TopPercent\"]).describe(\"How many matching subscribers to fetch.\").optional(),\n MatchType: z.enum([\"All\", \"Any\"]).describe(\"How segment criteria match together.\").optional(),\n FetchValue: z.number().int().describe(\"Value for FetchType 'Top' or 'TopPercent' (e.g., 100 for top 100 subscribers, or 10 for top 10%).\").optional(),\n mailingListID: z.string().describe(\"The ID of the mailing list to create the segment in.\"),\n}).describe(\"Request schema for creating a new segment in a mailing list.\");\nexport const MoosendCreateSegmentOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"The ID of the newly created segment; null on error.\").nullable().optional(),\n}).describe(\"Response schema for CreateSegment action.\");\n\nexport const moosendCreateSegment = action(\"MOOSEND_CREATE_SEGMENT\", {\n slug: \"moosend-create-segment\",\n name: \"Create Segment\",\n description: \"Tool to create a new segment for a mailing list. Use to organize subscribers based on criteria or create empty segments for future use.\",\n input: MoosendCreateSegmentInput,\n output: MoosendCreateSegmentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACrI,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CACnG,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACzJ,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAO;CAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC7G,WAAWA,IAAAA,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACpJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AAC3F,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-segment.cjs","names":["z","action"],"sources":["../../src/actions/create-segment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateSegmentInput = z.object({\n Name: z.string().describe(\"The name of the segment.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'.\").optional(),\n Criteria: z.array(z.object({\n Field: z.string().describe(\"The field to filter on (e.g., 'Email', custom field name).\"),\n Value: z.string().describe(\"The value to compare against.\"),\n Comparer: z.string().describe(\"Comparison operator (e.g., 'Contains', 'Equals', 'DoesNotEqual').\"),\n}).describe(\"A single criterion for segment filtering.\")).describe(\"Array of filter criteria. Leave empty to create a segment without criteria.\").optional(),\n FetchType: z.enum([\"All\", \"Top\", \"TopPercent\"]).describe(\"How many matching subscribers to fetch.\").optional(),\n MatchType: z.enum([\"All\", \"Any\"]).describe(\"How segment criteria match together.\").optional(),\n FetchValue: z.number().int().describe(\"Value for FetchType 'Top' or 'TopPercent' (e.g., 100 for top 100 subscribers, or 10 for top 10%).\").optional(),\n mailingListID: z.string().describe(\"The ID of the mailing list to create the segment in.\"),\n}).describe(\"Request schema for creating a new segment in a mailing list.\");\nexport const MoosendCreateSegmentOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"The ID of the newly created segment; null on error.\").nullable().optional(),\n}).describe(\"Response schema for CreateSegment action.\");\n\nexport const moosendCreateSegment = action(\"MOOSEND_CREATE_SEGMENT\", {\n slug: \"moosend-create-segment\",\n name: \"Create Segment\",\n description: \"Tool to create a new segment for a mailing list. Use to organize subscribers based on criteria or create empty segments for future use.\",\n input: MoosendCreateSegmentInput,\n output: MoosendCreateSegmentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACrI,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CACnG,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACzJ,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAO;CAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC7G,WAAWA,IAAAA,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACpJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AAC3F,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,47 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-segment.d.ts
4
- declare const MoosendCreateSegmentInput: z.ZodTypeAny;
5
- declare const MoosendCreateSegmentOutput: z.ZodTypeAny;
6
- declare const moosendCreateSegment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendCreateSegmentInput: z.ZodObject<{
5
+ Name: z.ZodString;
6
+ format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
7
+ json: "json";
8
+ xml: "xml";
9
+ }>>>;
10
+ Criteria: z.ZodOptional<z.ZodArray<z.ZodObject<{
11
+ Field: z.ZodString;
12
+ Value: z.ZodString;
13
+ Comparer: z.ZodString;
14
+ }, z.core.$strip>>>;
15
+ FetchType: z.ZodOptional<z.ZodEnum<{
16
+ All: "All";
17
+ Top: "Top";
18
+ TopPercent: "TopPercent";
19
+ }>>;
20
+ MatchType: z.ZodOptional<z.ZodEnum<{
21
+ All: "All";
22
+ Any: "Any";
23
+ }>>;
24
+ FetchValue: z.ZodOptional<z.ZodNumber>;
25
+ mailingListID: z.ZodString;
26
+ }, z.core.$strip>;
27
+ declare const MoosendCreateSegmentOutput: z.ZodObject<{
28
+ Code: z.ZodNullable<z.ZodNumber>;
29
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ }, z.core.$strip>;
32
+ declare const moosendCreateSegment: import("@keystrokehq/action").WorkflowActionDefinition<{
33
+ Name: string;
34
+ mailingListID: string;
35
+ format?: "json" | "xml" | undefined;
36
+ Criteria?: {
37
+ Field: string;
38
+ Value: string;
39
+ Comparer: string;
40
+ }[] | undefined;
41
+ FetchType?: "All" | "Top" | "TopPercent" | undefined;
42
+ MatchType?: "All" | "Any" | undefined;
43
+ FetchValue?: number | undefined;
44
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
45
  //#endregion
8
46
  export { moosendCreateSegment };
9
47
  //# sourceMappingURL=create-segment.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-segment.d.cts","names":[],"sources":["../../src/actions/create-segment.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAYiC;AAAA,cAC9D,0BAAA,EAA4B,CAAA,CAAE,UAIa;AAAA,cAE3C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-segment.d.cts","names":[],"sources":["../../src/actions/create-segment.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAazB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,47 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-segment.d.ts
4
- declare const MoosendCreateSegmentInput: z.ZodTypeAny;
5
- declare const MoosendCreateSegmentOutput: z.ZodTypeAny;
6
- declare const moosendCreateSegment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendCreateSegmentInput: z.ZodObject<{
5
+ Name: z.ZodString;
6
+ format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
7
+ json: "json";
8
+ xml: "xml";
9
+ }>>>;
10
+ Criteria: z.ZodOptional<z.ZodArray<z.ZodObject<{
11
+ Field: z.ZodString;
12
+ Value: z.ZodString;
13
+ Comparer: z.ZodString;
14
+ }, z.core.$strip>>>;
15
+ FetchType: z.ZodOptional<z.ZodEnum<{
16
+ All: "All";
17
+ Top: "Top";
18
+ TopPercent: "TopPercent";
19
+ }>>;
20
+ MatchType: z.ZodOptional<z.ZodEnum<{
21
+ All: "All";
22
+ Any: "Any";
23
+ }>>;
24
+ FetchValue: z.ZodOptional<z.ZodNumber>;
25
+ mailingListID: z.ZodString;
26
+ }, z.core.$strip>;
27
+ declare const MoosendCreateSegmentOutput: z.ZodObject<{
28
+ Code: z.ZodNullable<z.ZodNumber>;
29
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ }, z.core.$strip>;
32
+ declare const moosendCreateSegment: import("@keystrokehq/action").WorkflowActionDefinition<{
33
+ Name: string;
34
+ mailingListID: string;
35
+ format?: "json" | "xml" | undefined;
36
+ Criteria?: {
37
+ Field: string;
38
+ Value: string;
39
+ Comparer: string;
40
+ }[] | undefined;
41
+ FetchType?: "All" | "Top" | "TopPercent" | undefined;
42
+ MatchType?: "All" | "Any" | undefined;
43
+ FetchValue?: number | undefined;
44
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
45
  //#endregion
8
46
  export { moosendCreateSegment };
9
47
  //# sourceMappingURL=create-segment.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-segment.d.mts","names":[],"sources":["../../src/actions/create-segment.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAYiC;AAAA,cAC9D,0BAAA,EAA4B,CAAA,CAAE,UAIa;AAAA,cAE3C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-segment.d.mts","names":[],"sources":["../../src/actions/create-segment.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAazB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
@@ -22,7 +22,7 @@ const moosendCreateSegment = action("MOOSEND_CREATE_SEGMENT", {
22
22
  mailingListID: z.string().describe("The ID of the mailing list to create the segment in.")
23
23
  }).describe("Request schema for creating a new segment in a mailing list."),
24
24
  output: z.object({
25
- Code: z.number().int().describe("Response code; 0 indicates success."),
25
+ Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
26
26
  Error: z.string().describe("Error message; null if successful.").nullable().optional(),
27
27
  Context: z.string().describe("The ID of the newly created segment; null on error.").nullable().optional()
28
28
  }).describe("Response schema for CreateSegment action.")
@@ -1 +1 @@
1
- {"version":3,"file":"create-segment.mjs","names":[],"sources":["../../src/actions/create-segment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateSegmentInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The name of the segment.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'.\").optional(),\n Criteria: z.array(z.object({\n Field: z.string().describe(\"The field to filter on (e.g., 'Email', custom field name).\"),\n Value: z.string().describe(\"The value to compare against.\"),\n Comparer: z.string().describe(\"Comparison operator (e.g., 'Contains', 'Equals', 'DoesNotEqual').\"),\n}).describe(\"A single criterion for segment filtering.\")).describe(\"Array of filter criteria. Leave empty to create a segment without criteria.\").optional(),\n FetchType: z.enum([\"All\", \"Top\", \"TopPercent\"]).describe(\"How many matching subscribers to fetch.\").optional(),\n MatchType: z.enum([\"All\", \"Any\"]).describe(\"How segment criteria match together.\").optional(),\n FetchValue: z.number().int().describe(\"Value for FetchType 'Top' or 'TopPercent' (e.g., 100 for top 100 subscribers, or 10 for top 10%).\").optional(),\n mailingListID: z.string().describe(\"The ID of the mailing list to create the segment in.\"),\n}).describe(\"Request schema for creating a new segment in a mailing list.\");\nexport const MoosendCreateSegmentOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"The ID of the newly created segment; null on error.\").nullable().optional(),\n}).describe(\"Response schema for CreateSegment action.\");\n\nexport const moosendCreateSegment = action(\"MOOSEND_CREATE_SEGMENT\", {\n slug: \"moosend-create-segment\",\n name: \"Create Segment\",\n description: \"Tool to create a new segment for a mailing list. Use to organize subscribers based on criteria or create empty segments for future use.\",\n input: MoosendCreateSegmentInput,\n output: MoosendCreateSegmentOutput,\n});\n"],"mappings":";;AAuBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACpD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACrI,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;GACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;GAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EACnG,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EACzJ,WAAW,EAAE,KAAK;GAAC;GAAO;GAAO;EAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC7G,WAAW,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;EACpJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAC3F,CAAC,CAAC,CAAC,SAAS,8DAWH;CACP,QAXsD,EAAE,OAAO;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-segment.mjs","names":[],"sources":["../../src/actions/create-segment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateSegmentInput = z.object({\n Name: z.string().describe(\"The name of the segment.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'.\").optional(),\n Criteria: z.array(z.object({\n Field: z.string().describe(\"The field to filter on (e.g., 'Email', custom field name).\"),\n Value: z.string().describe(\"The value to compare against.\"),\n Comparer: z.string().describe(\"Comparison operator (e.g., 'Contains', 'Equals', 'DoesNotEqual').\"),\n}).describe(\"A single criterion for segment filtering.\")).describe(\"Array of filter criteria. Leave empty to create a segment without criteria.\").optional(),\n FetchType: z.enum([\"All\", \"Top\", \"TopPercent\"]).describe(\"How many matching subscribers to fetch.\").optional(),\n MatchType: z.enum([\"All\", \"Any\"]).describe(\"How segment criteria match together.\").optional(),\n FetchValue: z.number().int().describe(\"Value for FetchType 'Top' or 'TopPercent' (e.g., 100 for top 100 subscribers, or 10 for top 10%).\").optional(),\n mailingListID: z.string().describe(\"The ID of the mailing list to create the segment in.\"),\n}).describe(\"Request schema for creating a new segment in a mailing list.\");\nexport const MoosendCreateSegmentOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"The ID of the newly created segment; null on error.\").nullable().optional(),\n}).describe(\"Response schema for CreateSegment action.\");\n\nexport const moosendCreateSegment = action(\"MOOSEND_CREATE_SEGMENT\", {\n slug: \"moosend-create-segment\",\n name: \"Create Segment\",\n description: \"Tool to create a new segment for a mailing list. Use to organize subscribers based on criteria or create empty segments for future use.\",\n input: MoosendCreateSegmentInput,\n output: MoosendCreateSegmentOutput,\n});\n"],"mappings":";;AAuBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACpD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACrI,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;GACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;GAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EACnG,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EACzJ,WAAW,EAAE,KAAK;GAAC;GAAO;GAAO;EAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC7G,WAAW,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;EACpJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAC3F,CAAC,CAAC,CAAC,SAAS,8DAWH;CACP,QAXwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"delete-campaign.cjs","names":["z","action"],"sources":["../../src/actions/delete-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendDeleteCampaignInput: z.ZodTypeAny = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (default) for JSON responses or 'xml' for XML responses.\").optional(),\n campaign_id: z.string().describe(\"The unique identifier (UUID format) of the campaign to delete. This can be a draft or sent campaign. Deletion is permanent and irreversible.\"),\n});\nexport const MoosendDeleteCampaignOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"API response code. 0 indicates successful deletion, any non-zero value indicates an error occurred.\").nullable().optional(),\n Error: z.string().describe(\"Error message if the operation failed. Will be null when Code is 0 (success).\").nullable().optional(),\n Context: z.unknown().describe(\"Additional context data. Always null for successful campaign deletions.\").nullable().optional(),\n});\n\nexport const moosendDeleteCampaign = action(\"MOOSEND_DELETE_CAMPAIGN\", {\n slug: \"moosend-delete-campaign\",\n name: \"Delete Campaign\",\n description: \"Permanently deletes a campaign from your Moosend account by its ID. This action removes draft or sent campaigns irreversibly. Use this when you need to clean up campaigns that are no longer needed. The campaign ID can be obtained from listing campaigns or retrieved when a campaign is created. Always verify the campaign ID before deletion as this operation cannot be undone.\",\n input: MoosendDeleteCampaignInput,\n output: MoosendDeleteCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC1J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I;AACjL,CAAC;AACD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-campaign.cjs","names":["z","action"],"sources":["../../src/actions/delete-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendDeleteCampaignInput = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (default) for JSON responses or 'xml' for XML responses.\").optional(),\n campaign_id: z.string().describe(\"The unique identifier (UUID format) of the campaign to delete. This can be a draft or sent campaign. Deletion is permanent and irreversible.\"),\n});\nexport const MoosendDeleteCampaignOutput = z.object({\n Code: z.number().int().describe(\"API response code. 0 indicates successful deletion, any non-zero value indicates an error occurred.\").nullable().optional(),\n Error: z.string().describe(\"Error message if the operation failed. Will be null when Code is 0 (success).\").nullable().optional(),\n Context: z.unknown().describe(\"Additional context data. Always null for successful campaign deletions.\").nullable().optional(),\n});\n\nexport const moosendDeleteCampaign = action(\"MOOSEND_DELETE_CAMPAIGN\", {\n slug: \"moosend-delete-campaign\",\n name: \"Delete Campaign\",\n description: \"Permanently deletes a campaign from your Moosend account by its ID. This action removes draft or sent campaigns irreversibly. Use this when you need to clean up campaigns that are no longer needed. The campaign ID can be obtained from listing campaigns or retrieved when a campaign is created. Always verify the campaign ID before deletion as this operation cannot be undone.\",\n input: MoosendDeleteCampaignInput,\n output: MoosendDeleteCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC1J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I;AACjL,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,22 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-campaign.d.ts
4
- declare const MoosendDeleteCampaignInput: z.ZodTypeAny;
5
- declare const MoosendDeleteCampaignOutput: z.ZodTypeAny;
6
- declare const moosendDeleteCampaign: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendDeleteCampaignInput: z.ZodObject<{
5
+ format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
6
+ json: "json";
7
+ xml: "xml";
8
+ }>>>;
9
+ campaign_id: z.ZodString;
10
+ }, z.core.$strip>;
11
+ declare const MoosendDeleteCampaignOutput: z.ZodObject<{
12
+ Code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ Context: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
15
+ }, z.core.$strip>;
16
+ declare const moosendDeleteCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ campaign_id: string;
18
+ format?: "json" | "xml" | undefined;
19
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
20
  //#endregion
8
21
  export { moosendDeleteCampaign };
9
22
  //# sourceMappingURL=delete-campaign.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-campaign.d.cts","names":[],"sources":["../../src/actions/delete-campaign.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGzC;AAAA,cACW,2BAAA,EAA6B,CAAA,CAAE,UAI1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-campaign.d.cts","names":[],"sources":["../../src/actions/delete-campaign.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
@@ -1,9 +1,22 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-campaign.d.ts
4
- declare const MoosendDeleteCampaignInput: z.ZodTypeAny;
5
- declare const MoosendDeleteCampaignOutput: z.ZodTypeAny;
6
- declare const moosendDeleteCampaign: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendDeleteCampaignInput: z.ZodObject<{
5
+ format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
6
+ json: "json";
7
+ xml: "xml";
8
+ }>>>;
9
+ campaign_id: z.ZodString;
10
+ }, z.core.$strip>;
11
+ declare const MoosendDeleteCampaignOutput: z.ZodObject<{
12
+ Code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ Context: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
15
+ }, z.core.$strip>;
16
+ declare const moosendDeleteCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ campaign_id: string;
18
+ format?: "json" | "xml" | undefined;
19
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
20
  //#endregion
8
21
  export { moosendDeleteCampaign };
9
22
  //# sourceMappingURL=delete-campaign.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-campaign.d.mts","names":[],"sources":["../../src/actions/delete-campaign.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGzC;AAAA,cACW,2BAAA,EAA6B,CAAA,CAAE,UAI1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-campaign.d.mts","names":[],"sources":["../../src/actions/delete-campaign.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"delete-campaign.mjs","names":[],"sources":["../../src/actions/delete-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendDeleteCampaignInput: z.ZodTypeAny = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (default) for JSON responses or 'xml' for XML responses.\").optional(),\n campaign_id: z.string().describe(\"The unique identifier (UUID format) of the campaign to delete. This can be a draft or sent campaign. Deletion is permanent and irreversible.\"),\n});\nexport const MoosendDeleteCampaignOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"API response code. 0 indicates successful deletion, any non-zero value indicates an error occurred.\").nullable().optional(),\n Error: z.string().describe(\"Error message if the operation failed. Will be null when Code is 0 (success).\").nullable().optional(),\n Context: z.unknown().describe(\"Additional context data. Always null for successful campaign deletions.\").nullable().optional(),\n});\n\nexport const moosendDeleteCampaign = action(\"MOOSEND_DELETE_CAMPAIGN\", {\n slug: \"moosend-delete-campaign\",\n name: \"Delete Campaign\",\n description: \"Permanently deletes a campaign from your Moosend account by its ID. This action removes draft or sent campaigns irreversibly. Use this when you need to clean up campaigns that are no longer needed. The campaign ID can be obtained from listing campaigns or retrieved when a campaign is created. Always verify the campaign ID before deletion as this operation cannot be undone.\",\n input: MoosendDeleteCampaignInput,\n output: MoosendDeleteCampaignOutput,\n});\n"],"mappings":";;AAcA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdsD,EAAE,OAAO;EAC/D,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAC1J,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I;CACjL,CAWS;CACP,QAXuD,EAAE,OAAO;EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3J,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"delete-campaign.mjs","names":[],"sources":["../../src/actions/delete-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendDeleteCampaignInput = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (default) for JSON responses or 'xml' for XML responses.\").optional(),\n campaign_id: z.string().describe(\"The unique identifier (UUID format) of the campaign to delete. This can be a draft or sent campaign. Deletion is permanent and irreversible.\"),\n});\nexport const MoosendDeleteCampaignOutput = z.object({\n Code: z.number().int().describe(\"API response code. 0 indicates successful deletion, any non-zero value indicates an error occurred.\").nullable().optional(),\n Error: z.string().describe(\"Error message if the operation failed. Will be null when Code is 0 (success).\").nullable().optional(),\n Context: z.unknown().describe(\"Additional context data. Always null for successful campaign deletions.\").nullable().optional(),\n});\n\nexport const moosendDeleteCampaign = action(\"MOOSEND_DELETE_CAMPAIGN\", {\n slug: \"moosend-delete-campaign\",\n name: \"Delete Campaign\",\n description: \"Permanently deletes a campaign from your Moosend account by its ID. This action removes draft or sent campaigns irreversibly. Use this when you need to clean up campaigns that are no longer needed. The campaign ID can be obtained from listing campaigns or retrieved when a campaign is created. Always verify the campaign ID before deletion as this operation cannot be undone.\",\n input: MoosendDeleteCampaignInput,\n output: MoosendDeleteCampaignOutput,\n});\n"],"mappings":";;AAcA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdwC,EAAE,OAAO;EACjD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAC1J,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I;CACjL,CAWS;CACP,QAXyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3J,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,CAOU;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"delete-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/delete-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendDeleteCustomFieldInput: z.ZodTypeAny = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"The response format. Use 'json' for JSON responses and 'xml' for XML responses.\").optional(),\n custom_field_id: z.string().describe(\"The ID of the custom field to delete.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list containing the custom field to delete.\"),\n});\nexport const MoosendDeleteCustomFieldOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code. 0 indicates success.\").nullable().optional(),\n Error: z.string().describe(\"Error message, if any. Null when successful.\").nullable().optional(),\n Context: z.string().describe(\"Additional context information. Null when successful.\").nullable().optional(),\n});\n\nexport const moosendDeleteCustomField = action(\"MOOSEND_DELETE_CUSTOM_FIELD\", {\n slug: \"moosend-delete-custom-field\",\n name: \"Delete custom field\",\n description: \"Tool to remove a custom field definition from a mailing list. Use when you have confirmed the custom field ID to delete.\",\n input: MoosendDeleteCustomFieldInput,\n output: MoosendDeleteCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACrJ,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC5E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AAC1G,CAAC;AACD,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC;AAED,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/delete-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendDeleteCustomFieldInput = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"The response format. Use 'json' for JSON responses and 'xml' for XML responses.\").optional(),\n custom_field_id: z.string().describe(\"The ID of the custom field to delete.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list containing the custom field to delete.\"),\n});\nexport const MoosendDeleteCustomFieldOutput = z.object({\n Code: z.number().int().describe(\"Response code. 0 indicates success.\").nullable().optional(),\n Error: z.string().describe(\"Error message, if any. Null when successful.\").nullable().optional(),\n Context: z.string().describe(\"Additional context information. Null when successful.\").nullable().optional(),\n});\n\nexport const moosendDeleteCustomField = action(\"MOOSEND_DELETE_CUSTOM_FIELD\", {\n slug: \"moosend-delete-custom-field\",\n name: \"Delete custom field\",\n description: \"Tool to remove a custom field definition from a mailing list. Use when you have confirmed the custom field ID to delete.\",\n input: MoosendDeleteCustomFieldInput,\n output: MoosendDeleteCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACrJ,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC5E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AAC1G,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC;AAED,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-custom-field.d.ts
4
- declare const MoosendDeleteCustomFieldInput: z.ZodTypeAny;
5
- declare const MoosendDeleteCustomFieldOutput: z.ZodTypeAny;
6
- declare const moosendDeleteCustomField: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendDeleteCustomFieldInput: z.ZodObject<{
5
+ format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
6
+ json: "json";
7
+ xml: "xml";
8
+ }>>>;
9
+ custom_field_id: z.ZodString;
10
+ mailing_list_id: z.ZodString;
11
+ }, z.core.$strip>;
12
+ declare const MoosendDeleteCustomFieldOutput: z.ZodObject<{
13
+ Code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ }, z.core.$strip>;
17
+ declare const moosendDeleteCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ custom_field_id: string;
19
+ mailing_list_id: string;
20
+ format?: "json" | "xml" | undefined;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { moosendDeleteCustomField };
9
24
  //# sourceMappingURL=delete-custom-field.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-custom-field.d.cts","names":[],"sources":["../../src/actions/delete-custom-field.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAI5C;AAAA,cACW,8BAAA,EAAgC,CAAA,CAAE,UAI7C;AAAA,cAEW,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-custom-field.d.cts","names":[],"sources":["../../src/actions/delete-custom-field.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;cAK7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-custom-field.d.ts
4
- declare const MoosendDeleteCustomFieldInput: z.ZodTypeAny;
5
- declare const MoosendDeleteCustomFieldOutput: z.ZodTypeAny;
6
- declare const moosendDeleteCustomField: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendDeleteCustomFieldInput: z.ZodObject<{
5
+ format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
6
+ json: "json";
7
+ xml: "xml";
8
+ }>>>;
9
+ custom_field_id: z.ZodString;
10
+ mailing_list_id: z.ZodString;
11
+ }, z.core.$strip>;
12
+ declare const MoosendDeleteCustomFieldOutput: z.ZodObject<{
13
+ Code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ }, z.core.$strip>;
17
+ declare const moosendDeleteCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ custom_field_id: string;
19
+ mailing_list_id: string;
20
+ format?: "json" | "xml" | undefined;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { moosendDeleteCustomField };
9
24
  //# sourceMappingURL=delete-custom-field.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-custom-field.d.mts","names":[],"sources":["../../src/actions/delete-custom-field.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAI5C;AAAA,cACW,8BAAA,EAAgC,CAAA,CAAE,UAI7C;AAAA,cAEW,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-custom-field.d.mts","names":[],"sources":["../../src/actions/delete-custom-field.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;cAK7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"delete-custom-field.mjs","names":[],"sources":["../../src/actions/delete-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendDeleteCustomFieldInput: z.ZodTypeAny = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"The response format. Use 'json' for JSON responses and 'xml' for XML responses.\").optional(),\n custom_field_id: z.string().describe(\"The ID of the custom field to delete.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list containing the custom field to delete.\"),\n});\nexport const MoosendDeleteCustomFieldOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code. 0 indicates success.\").nullable().optional(),\n Error: z.string().describe(\"Error message, if any. Null when successful.\").nullable().optional(),\n Context: z.string().describe(\"Additional context information. Null when successful.\").nullable().optional(),\n});\n\nexport const moosendDeleteCustomField = action(\"MOOSEND_DELETE_CUSTOM_FIELD\", {\n slug: \"moosend-delete-custom-field\",\n name: \"Delete custom field\",\n description: \"Tool to remove a custom field definition from a mailing list. Use when you have confirmed the custom field ID to delete.\",\n input: MoosendDeleteCustomFieldInput,\n output: MoosendDeleteCustomFieldOutput,\n});\n"],"mappings":";;AAeA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfyD,EAAE,OAAO;EAClE,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EACrJ,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAC5E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC1G,CAWS;CACP,QAX0D,EAAE,OAAO;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"delete-custom-field.mjs","names":[],"sources":["../../src/actions/delete-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendDeleteCustomFieldInput = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"The response format. Use 'json' for JSON responses and 'xml' for XML responses.\").optional(),\n custom_field_id: z.string().describe(\"The ID of the custom field to delete.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list containing the custom field to delete.\"),\n});\nexport const MoosendDeleteCustomFieldOutput = z.object({\n Code: z.number().int().describe(\"Response code. 0 indicates success.\").nullable().optional(),\n Error: z.string().describe(\"Error message, if any. Null when successful.\").nullable().optional(),\n Context: z.string().describe(\"Additional context information. Null when successful.\").nullable().optional(),\n});\n\nexport const moosendDeleteCustomField = action(\"MOOSEND_DELETE_CUSTOM_FIELD\", {\n slug: \"moosend-delete-custom-field\",\n name: \"Delete custom field\",\n description: \"Tool to remove a custom field definition from a mailing list. Use when you have confirmed the custom field ID to delete.\",\n input: MoosendDeleteCustomFieldInput,\n output: MoosendDeleteCustomFieldOutput,\n});\n"],"mappings":";;AAeA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf2C,EAAE,OAAO;EACpD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EACrJ,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAC5E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC1G,CAWS;CACP,QAX4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAOU;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"delete-mailing-list.cjs","names":["z","action"],"sources":["../../src/actions/delete-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendDeleteMailingListInput: z.ZodTypeAny = z.object({\n format: z.string().default(\"json\").describe(\"Response format, either 'json' or 'xml'.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list to delete.\"),\n}).describe(\"Request schema for `DeleteMailingList`\");\nexport const MoosendDeleteMailingListOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code. 0 indicates success.\").nullable().optional(),\n Error: z.string().describe(\"Error message if deletion failed; null when successful.\").nullable().optional(),\n Context: z.string().describe(\"Always null if deletion was successful.\").nullable().optional(),\n}).describe(\"Response schema for `DeleteMailingList`\");\n\nexport const moosendDeleteMailingList = action(\"MOOSEND_DELETE_MAILING_LIST\", {\n slug: \"moosend-delete-mailing-list\",\n name: \"Delete Mailing List\",\n description: \"Tool to delete a mailing list. Use when you need to permanently remove a mailing list from your Moosend account after confirming its ID. Deletion is irreversible.\",\n input: MoosendDeleteMailingListInput,\n output: MoosendDeleteMailingListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACjG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-mailing-list.cjs","names":["z","action"],"sources":["../../src/actions/delete-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendDeleteMailingListInput = z.object({\n format: z.string().default(\"json\").describe(\"Response format, either 'json' or 'xml'.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list to delete.\"),\n}).describe(\"Request schema for `DeleteMailingList`\");\nexport const MoosendDeleteMailingListOutput = z.object({\n Code: z.number().int().describe(\"Response code. 0 indicates success.\").nullable().optional(),\n Error: z.string().describe(\"Error message if deletion failed; null when successful.\").nullable().optional(),\n Context: z.string().describe(\"Always null if deletion was successful.\").nullable().optional(),\n}).describe(\"Response schema for `DeleteMailingList`\");\n\nexport const moosendDeleteMailingList = action(\"MOOSEND_DELETE_MAILING_LIST\", {\n slug: \"moosend-delete-mailing-list\",\n name: \"Delete Mailing List\",\n description: \"Tool to delete a mailing list. Use when you need to permanently remove a mailing list from your Moosend account after confirming its ID. Deletion is irreversible.\",\n input: MoosendDeleteMailingListInput,\n output: MoosendDeleteMailingListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACjG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-mailing-list.d.ts
4
- declare const MoosendDeleteMailingListInput: z.ZodTypeAny;
5
- declare const MoosendDeleteMailingListOutput: z.ZodTypeAny;
6
- declare const moosendDeleteMailingList: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendDeleteMailingListInput: z.ZodObject<{
5
+ format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
6
+ mailing_list_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const MoosendDeleteMailingListOutput: z.ZodObject<{
9
+ Code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ }, z.core.$strip>;
13
+ declare const moosendDeleteMailingList: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ mailing_list_id: string;
15
+ format?: string | undefined;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { moosendDeleteMailingList };
9
19
  //# sourceMappingURL=delete-mailing-list.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-mailing-list.d.cts","names":[],"sources":["../../src/actions/delete-mailing-list.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAGO;AAAA,cACxC,8BAAA,EAAgC,CAAA,CAAE,UAIO;AAAA,cAEzC,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-mailing-list.d.cts","names":[],"sources":["../../src/actions/delete-mailing-list.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-mailing-list.d.ts
4
- declare const MoosendDeleteMailingListInput: z.ZodTypeAny;
5
- declare const MoosendDeleteMailingListOutput: z.ZodTypeAny;
6
- declare const moosendDeleteMailingList: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendDeleteMailingListInput: z.ZodObject<{
5
+ format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
6
+ mailing_list_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const MoosendDeleteMailingListOutput: z.ZodObject<{
9
+ Code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ }, z.core.$strip>;
13
+ declare const moosendDeleteMailingList: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ mailing_list_id: string;
15
+ format?: string | undefined;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { moosendDeleteMailingList };
9
19
  //# sourceMappingURL=delete-mailing-list.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-mailing-list.d.mts","names":[],"sources":["../../src/actions/delete-mailing-list.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAGO;AAAA,cACxC,8BAAA,EAAgC,CAAA,CAAE,UAIO;AAAA,cAEzC,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-mailing-list.d.mts","names":[],"sources":["../../src/actions/delete-mailing-list.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"delete-mailing-list.mjs","names":[],"sources":["../../src/actions/delete-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendDeleteMailingListInput: z.ZodTypeAny = z.object({\n format: z.string().default(\"json\").describe(\"Response format, either 'json' or 'xml'.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list to delete.\"),\n}).describe(\"Request schema for `DeleteMailingList`\");\nexport const MoosendDeleteMailingListOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code. 0 indicates success.\").nullable().optional(),\n Error: z.string().describe(\"Error message if deletion failed; null when successful.\").nullable().optional(),\n Context: z.string().describe(\"Always null if deletion was successful.\").nullable().optional(),\n}).describe(\"Response schema for `DeleteMailingList`\");\n\nexport const moosendDeleteMailingList = action(\"MOOSEND_DELETE_MAILING_LIST\", {\n slug: \"moosend-delete-mailing-list\",\n name: \"Delete Mailing List\",\n description: \"Tool to delete a mailing list. Use when you need to permanently remove a mailing list from your Moosend account after confirming its ID. Deletion is irreversible.\",\n input: MoosendDeleteMailingListInput,\n output: MoosendDeleteMailingListOutput,\n});\n"],"mappings":";;AAcA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdyD,EAAE,OAAO;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACjG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC9E,CAAC,CAAC,CAAC,SAAS,wCAWH;CACP,QAX0D,EAAE,OAAO;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-mailing-list.mjs","names":[],"sources":["../../src/actions/delete-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendDeleteMailingListInput = z.object({\n format: z.string().default(\"json\").describe(\"Response format, either 'json' or 'xml'.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list to delete.\"),\n}).describe(\"Request schema for `DeleteMailingList`\");\nexport const MoosendDeleteMailingListOutput = z.object({\n Code: z.number().int().describe(\"Response code. 0 indicates success.\").nullable().optional(),\n Error: z.string().describe(\"Error message if deletion failed; null when successful.\").nullable().optional(),\n Context: z.string().describe(\"Always null if deletion was successful.\").nullable().optional(),\n}).describe(\"Response schema for `DeleteMailingList`\");\n\nexport const moosendDeleteMailingList = action(\"MOOSEND_DELETE_MAILING_LIST\", {\n slug: \"moosend-delete-mailing-list\",\n name: \"Delete Mailing List\",\n description: \"Tool to delete a mailing list. Use when you need to permanently remove a mailing list from your Moosend account after confirming its ID. Deletion is irreversible.\",\n input: MoosendDeleteMailingListInput,\n output: MoosendDeleteMailingListOutput,\n});\n"],"mappings":";;AAcA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd2C,EAAE,OAAO;EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACjG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC9E,CAAC,CAAC,CAAC,SAAS,wCAWH;CACP,QAX4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
@@ -6,7 +6,7 @@ const MoosendGetAllCampaignsInput = zod.z.object({
6
6
  format: zod.z.string().default("json").describe("Response format. Only 'json' is supported.").optional()
7
7
  });
8
8
  const MoosendGetAllCampaignsOutput = zod.z.object({
9
- Code: zod.z.number().int().describe("Response code; 0 indicates success."),
9
+ Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
10
10
  Error: zod.z.string().describe("Error message, if any; null on success.").nullable().optional(),
11
11
  Context: zod.z.object({}).describe("Context object containing paging info and list of campaigns.")
12
12
  });
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-campaigns.cjs","names":["z","action"],"sources":["../../src/actions/get-all-campaigns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetAllCampaignsInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number of campaign results to retrieve. Defaults to 1.\").optional(),\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n});\nexport const MoosendGetAllCampaignsOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message, if any; null on success.\").nullable().optional(),\n Context: z.object({}).describe(\"Context object containing paging info and list of campaigns.\"),\n});\n\nexport const moosendGetAllCampaigns = action(\"MOOSEND_GET_ALL_CAMPAIGNS\", {\n slug: \"moosend-get-all-campaigns\",\n name: \"Get all campaigns\",\n description: \"Tool to retrieve a list of all campaigns in your account. Use after acquiring valid API credentials to explore campaign data.\",\n input: MoosendGetAllCampaignsInput,\n output: MoosendGetAllCampaignsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACnH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACrG,CAAC;AACD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC/F,CAAC;AAED,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-all-campaigns.cjs","names":["z","action"],"sources":["../../src/actions/get-all-campaigns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetAllCampaignsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number of campaign results to retrieve. Defaults to 1.\").optional(),\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n});\nexport const MoosendGetAllCampaignsOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message, if any; null on success.\").nullable().optional(),\n Context: z.object({}).describe(\"Context object containing paging info and list of campaigns.\"),\n});\n\nexport const moosendGetAllCampaigns = action(\"MOOSEND_GET_ALL_CAMPAIGNS\", {\n slug: \"moosend-get-all-campaigns\",\n name: \"Get all campaigns\",\n description: \"Tool to retrieve a list of all campaigns in your account. Use after acquiring valid API credentials to explore campaign data.\",\n input: MoosendGetAllCampaignsInput,\n output: MoosendGetAllCampaignsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACnH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACrG,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC/F,CAAC;AAED,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}