@keystrokehq/moosend 0.1.0 → 0.1.3

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 (257) 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 +2 -2
  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 +2 -2
  10. package/dist/actions/add-segment-criteria.mjs.map +1 -1
  11. package/dist/actions/add-subscriber.cjs +2 -2
  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 +2 -2
  18. package/dist/actions/add-subscriber.mjs.map +1 -1
  19. package/dist/actions/clone-campaign.cjs +2 -2
  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 +2 -2
  26. package/dist/actions/clone-campaign.mjs.map +1 -1
  27. package/dist/actions/create-custom-field.cjs +2 -2
  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 +2 -2
  34. package/dist/actions/create-custom-field.mjs.map +1 -1
  35. package/dist/actions/create-mailing-list.cjs +2 -2
  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 +2 -2
  42. package/dist/actions/create-mailing-list.mjs.map +1 -1
  43. package/dist/actions/create-segment.cjs +3 -3
  44. package/dist/actions/create-segment.cjs.map +1 -1
  45. package/dist/actions/create-segment.d.cts +42 -3
  46. package/dist/actions/create-segment.d.cts.map +1 -1
  47. package/dist/actions/create-segment.d.mts +42 -3
  48. package/dist/actions/create-segment.d.mts.map +1 -1
  49. package/dist/actions/create-segment.mjs +3 -3
  50. package/dist/actions/create-segment.mjs.map +1 -1
  51. package/dist/actions/delete-campaign.cjs +1 -1
  52. package/dist/actions/delete-campaign.cjs.map +1 -1
  53. package/dist/actions/delete-campaign.d.cts +16 -3
  54. package/dist/actions/delete-campaign.d.cts.map +1 -1
  55. package/dist/actions/delete-campaign.d.mts +16 -3
  56. package/dist/actions/delete-campaign.d.mts.map +1 -1
  57. package/dist/actions/delete-campaign.mjs +1 -1
  58. package/dist/actions/delete-campaign.mjs.map +1 -1
  59. package/dist/actions/delete-custom-field.cjs +1 -1
  60. package/dist/actions/delete-custom-field.cjs.map +1 -1
  61. package/dist/actions/delete-custom-field.d.cts +18 -3
  62. package/dist/actions/delete-custom-field.d.cts.map +1 -1
  63. package/dist/actions/delete-custom-field.d.mts +18 -3
  64. package/dist/actions/delete-custom-field.d.mts.map +1 -1
  65. package/dist/actions/delete-custom-field.mjs +1 -1
  66. package/dist/actions/delete-custom-field.mjs.map +1 -1
  67. package/dist/actions/delete-mailing-list.cjs +1 -1
  68. package/dist/actions/delete-mailing-list.cjs.map +1 -1
  69. package/dist/actions/delete-mailing-list.d.cts +13 -3
  70. package/dist/actions/delete-mailing-list.d.cts.map +1 -1
  71. package/dist/actions/delete-mailing-list.d.mts +13 -3
  72. package/dist/actions/delete-mailing-list.d.mts.map +1 -1
  73. package/dist/actions/delete-mailing-list.mjs +1 -1
  74. package/dist/actions/delete-mailing-list.mjs.map +1 -1
  75. package/dist/actions/get-all-campaigns.cjs +3 -3
  76. package/dist/actions/get-all-campaigns.cjs.map +1 -1
  77. package/dist/actions/get-all-campaigns.d.cts +13 -3
  78. package/dist/actions/get-all-campaigns.d.cts.map +1 -1
  79. package/dist/actions/get-all-campaigns.d.mts +13 -3
  80. package/dist/actions/get-all-campaigns.d.mts.map +1 -1
  81. package/dist/actions/get-all-campaigns.mjs +3 -3
  82. package/dist/actions/get-all-campaigns.mjs.map +1 -1
  83. package/dist/actions/get-all-subscribers.cjs +18 -18
  84. package/dist/actions/get-all-subscribers.cjs.map +1 -1
  85. package/dist/actions/get-all-subscribers.d.cts +53 -3
  86. package/dist/actions/get-all-subscribers.d.cts.map +1 -1
  87. package/dist/actions/get-all-subscribers.d.mts +53 -3
  88. package/dist/actions/get-all-subscribers.d.mts.map +1 -1
  89. package/dist/actions/get-all-subscribers.mjs +18 -18
  90. package/dist/actions/get-all-subscribers.mjs.map +1 -1
  91. package/dist/actions/get-campaign-details.cjs +2 -2
  92. package/dist/actions/get-campaign-details.cjs.map +1 -1
  93. package/dist/actions/get-campaign-details.d.cts +11 -3
  94. package/dist/actions/get-campaign-details.d.cts.map +1 -1
  95. package/dist/actions/get-campaign-details.d.mts +11 -3
  96. package/dist/actions/get-campaign-details.d.mts.map +1 -1
  97. package/dist/actions/get-campaign-details.mjs +2 -2
  98. package/dist/actions/get-campaign-details.mjs.map +1 -1
  99. package/dist/actions/get-campaign-stats-by-location.cjs +2 -2
  100. package/dist/actions/get-campaign-stats-by-location.cjs.map +1 -1
  101. package/dist/actions/get-campaign-stats-by-location.d.cts +11 -3
  102. package/dist/actions/get-campaign-stats-by-location.d.cts.map +1 -1
  103. package/dist/actions/get-campaign-stats-by-location.d.mts +11 -3
  104. package/dist/actions/get-campaign-stats-by-location.d.mts.map +1 -1
  105. package/dist/actions/get-campaign-stats-by-location.mjs +2 -2
  106. package/dist/actions/get-campaign-stats-by-location.mjs.map +1 -1
  107. package/dist/actions/get-mailing-list-details.cjs +16 -16
  108. package/dist/actions/get-mailing-list-details.cjs.map +1 -1
  109. package/dist/actions/get-mailing-list-details.d.cts +41 -3
  110. package/dist/actions/get-mailing-list-details.d.cts.map +1 -1
  111. package/dist/actions/get-mailing-list-details.d.mts +41 -3
  112. package/dist/actions/get-mailing-list-details.d.mts.map +1 -1
  113. package/dist/actions/get-mailing-list-details.mjs +16 -16
  114. package/dist/actions/get-mailing-list-details.mjs.map +1 -1
  115. package/dist/actions/get-subscriber-by-email.cjs +11 -11
  116. package/dist/actions/get-subscriber-by-email.cjs.map +1 -1
  117. package/dist/actions/get-subscriber-by-email.d.cts +33 -3
  118. package/dist/actions/get-subscriber-by-email.d.cts.map +1 -1
  119. package/dist/actions/get-subscriber-by-email.d.mts +33 -3
  120. package/dist/actions/get-subscriber-by-email.d.mts.map +1 -1
  121. package/dist/actions/get-subscriber-by-email.mjs +11 -11
  122. package/dist/actions/get-subscriber-by-email.mjs.map +1 -1
  123. package/dist/actions/list-all-mailing-lists.cjs +23 -23
  124. package/dist/actions/list-all-mailing-lists.cjs.map +1 -1
  125. package/dist/actions/list-all-mailing-lists.d.cts +61 -3
  126. package/dist/actions/list-all-mailing-lists.d.cts.map +1 -1
  127. package/dist/actions/list-all-mailing-lists.d.mts +61 -3
  128. package/dist/actions/list-all-mailing-lists.d.mts.map +1 -1
  129. package/dist/actions/list-all-mailing-lists.mjs +23 -23
  130. package/dist/actions/list-all-mailing-lists.mjs.map +1 -1
  131. package/dist/actions/list-all-senders.cjs +3 -3
  132. package/dist/actions/list-all-senders.cjs.map +1 -1
  133. package/dist/actions/list-all-senders.d.cts +21 -3
  134. package/dist/actions/list-all-senders.d.cts.map +1 -1
  135. package/dist/actions/list-all-senders.d.mts +21 -3
  136. package/dist/actions/list-all-senders.d.mts.map +1 -1
  137. package/dist/actions/list-all-senders.mjs +3 -3
  138. package/dist/actions/list-all-senders.mjs.map +1 -1
  139. package/dist/actions/list-campaigns-with-paging.cjs +12 -12
  140. package/dist/actions/list-campaigns-with-paging.cjs.map +1 -1
  141. package/dist/actions/list-campaigns-with-paging.d.cts +49 -3
  142. package/dist/actions/list-campaigns-with-paging.d.cts.map +1 -1
  143. package/dist/actions/list-campaigns-with-paging.d.mts +49 -3
  144. package/dist/actions/list-campaigns-with-paging.d.mts.map +1 -1
  145. package/dist/actions/list-campaigns-with-paging.mjs +12 -12
  146. package/dist/actions/list-campaigns-with-paging.mjs.map +1 -1
  147. package/dist/actions/list-segments.cjs +6 -6
  148. package/dist/actions/list-segments.cjs.map +1 -1
  149. package/dist/actions/list-segments.d.cts +46 -3
  150. package/dist/actions/list-segments.d.cts.map +1 -1
  151. package/dist/actions/list-segments.d.mts +46 -3
  152. package/dist/actions/list-segments.d.mts.map +1 -1
  153. package/dist/actions/list-segments.mjs +6 -6
  154. package/dist/actions/list-segments.mjs.map +1 -1
  155. package/dist/actions/remove-multiple-subscribers.cjs +2 -2
  156. package/dist/actions/remove-multiple-subscribers.cjs.map +1 -1
  157. package/dist/actions/remove-multiple-subscribers.d.cts +15 -3
  158. package/dist/actions/remove-multiple-subscribers.d.cts.map +1 -1
  159. package/dist/actions/remove-multiple-subscribers.d.mts +15 -3
  160. package/dist/actions/remove-multiple-subscribers.d.mts.map +1 -1
  161. package/dist/actions/remove-multiple-subscribers.mjs +2 -2
  162. package/dist/actions/remove-multiple-subscribers.mjs.map +1 -1
  163. package/dist/actions/schedule-campaign.cjs +1 -1
  164. package/dist/actions/schedule-campaign.cjs.map +1 -1
  165. package/dist/actions/schedule-campaign.d.cts +17 -3
  166. package/dist/actions/schedule-campaign.d.cts.map +1 -1
  167. package/dist/actions/schedule-campaign.d.mts +17 -3
  168. package/dist/actions/schedule-campaign.d.mts.map +1 -1
  169. package/dist/actions/schedule-campaign.mjs +1 -1
  170. package/dist/actions/schedule-campaign.mjs.map +1 -1
  171. package/dist/actions/send-campaign.cjs +2 -2
  172. package/dist/actions/send-campaign.cjs.map +1 -1
  173. package/dist/actions/send-campaign.d.cts +13 -3
  174. package/dist/actions/send-campaign.d.cts.map +1 -1
  175. package/dist/actions/send-campaign.d.mts +13 -3
  176. package/dist/actions/send-campaign.d.mts.map +1 -1
  177. package/dist/actions/send-campaign.mjs +2 -2
  178. package/dist/actions/send-campaign.mjs.map +1 -1
  179. package/dist/actions/unschedule-campaign.cjs +1 -1
  180. package/dist/actions/unschedule-campaign.cjs.map +1 -1
  181. package/dist/actions/unschedule-campaign.d.cts +16 -3
  182. package/dist/actions/unschedule-campaign.d.cts.map +1 -1
  183. package/dist/actions/unschedule-campaign.d.mts +16 -3
  184. package/dist/actions/unschedule-campaign.d.mts.map +1 -1
  185. package/dist/actions/unschedule-campaign.mjs +1 -1
  186. package/dist/actions/unschedule-campaign.mjs.map +1 -1
  187. package/dist/actions/unsubscribe-from-account.cjs +2 -2
  188. package/dist/actions/unsubscribe-from-account.cjs.map +1 -1
  189. package/dist/actions/unsubscribe-from-account.d.cts +16 -3
  190. package/dist/actions/unsubscribe-from-account.d.cts.map +1 -1
  191. package/dist/actions/unsubscribe-from-account.d.mts +16 -3
  192. package/dist/actions/unsubscribe-from-account.d.mts.map +1 -1
  193. package/dist/actions/unsubscribe-from-account.mjs +2 -2
  194. package/dist/actions/unsubscribe-from-account.mjs.map +1 -1
  195. package/dist/actions/unsubscribe-from-mailing-list.cjs +2 -2
  196. package/dist/actions/unsubscribe-from-mailing-list.cjs.map +1 -1
  197. package/dist/actions/unsubscribe-from-mailing-list.d.cts +15 -3
  198. package/dist/actions/unsubscribe-from-mailing-list.d.cts.map +1 -1
  199. package/dist/actions/unsubscribe-from-mailing-list.d.mts +15 -3
  200. package/dist/actions/unsubscribe-from-mailing-list.d.mts.map +1 -1
  201. package/dist/actions/unsubscribe-from-mailing-list.mjs +2 -2
  202. package/dist/actions/unsubscribe-from-mailing-list.mjs.map +1 -1
  203. package/dist/actions/update-campaign.cjs +3 -3
  204. package/dist/actions/update-campaign.cjs.map +1 -1
  205. package/dist/actions/update-campaign.d.cts +64 -3
  206. package/dist/actions/update-campaign.d.cts.map +1 -1
  207. package/dist/actions/update-campaign.d.mts +64 -3
  208. package/dist/actions/update-campaign.d.mts.map +1 -1
  209. package/dist/actions/update-campaign.mjs +3 -3
  210. package/dist/actions/update-campaign.mjs.map +1 -1
  211. package/dist/actions/update-custom-field.cjs +2 -2
  212. package/dist/actions/update-custom-field.cjs.map +1 -1
  213. package/dist/actions/update-custom-field.d.cts +34 -3
  214. package/dist/actions/update-custom-field.d.cts.map +1 -1
  215. package/dist/actions/update-custom-field.d.mts +34 -3
  216. package/dist/actions/update-custom-field.d.mts.map +1 -1
  217. package/dist/actions/update-custom-field.mjs +2 -2
  218. package/dist/actions/update-custom-field.mjs.map +1 -1
  219. package/dist/actions/update-mailing-list.cjs +10 -10
  220. package/dist/actions/update-mailing-list.cjs.map +1 -1
  221. package/dist/actions/update-mailing-list.d.cts +32 -3
  222. package/dist/actions/update-mailing-list.d.cts.map +1 -1
  223. package/dist/actions/update-mailing-list.d.mts +32 -3
  224. package/dist/actions/update-mailing-list.d.mts.map +1 -1
  225. package/dist/actions/update-mailing-list.mjs +10 -10
  226. package/dist/actions/update-mailing-list.mjs.map +1 -1
  227. package/dist/actions/update-segment-criteria.cjs +2 -2
  228. package/dist/actions/update-segment-criteria.cjs.map +1 -1
  229. package/dist/actions/update-segment-criteria.d.cts +30 -3
  230. package/dist/actions/update-segment-criteria.d.cts.map +1 -1
  231. package/dist/actions/update-segment-criteria.d.mts +30 -3
  232. package/dist/actions/update-segment-criteria.d.mts.map +1 -1
  233. package/dist/actions/update-segment-criteria.mjs +2 -2
  234. package/dist/actions/update-segment-criteria.mjs.map +1 -1
  235. package/dist/actions/update-segment.cjs +4 -4
  236. package/dist/actions/update-segment.cjs.map +1 -1
  237. package/dist/actions/update-segment.d.cts +53 -3
  238. package/dist/actions/update-segment.d.cts.map +1 -1
  239. package/dist/actions/update-segment.d.mts +53 -3
  240. package/dist/actions/update-segment.d.mts.map +1 -1
  241. package/dist/actions/update-segment.mjs +4 -4
  242. package/dist/actions/update-segment.mjs.map +1 -1
  243. package/dist/actions/update-subscriber.cjs +2 -2
  244. package/dist/actions/update-subscriber.cjs.map +1 -1
  245. package/dist/actions/update-subscriber.d.cts +26 -3
  246. package/dist/actions/update-subscriber.d.cts.map +1 -1
  247. package/dist/actions/update-subscriber.d.mts +26 -3
  248. package/dist/actions/update-subscriber.d.mts.map +1 -1
  249. package/dist/actions/update-subscriber.mjs +2 -2
  250. package/dist/actions/update-subscriber.mjs.map +1 -1
  251. package/dist/catalog.cjs +7 -1
  252. package/dist/catalog.cjs.map +1 -1
  253. package/dist/catalog.d.cts +8 -0
  254. package/dist/catalog.d.mts +8 -0
  255. package/dist/catalog.mjs +7 -1
  256. package/dist/catalog.mjs.map +1 -1
  257. package/package.json +2 -2
@@ -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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,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.$loose>;
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.$loose>;
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"}
@@ -12,7 +12,7 @@ const moosendDeleteMailingList = action("MOOSEND_DELETE_MAILING_LIST", {
12
12
  Code: z.number().int().describe("Response code. 0 indicates success.").nullable().optional(),
13
13
  Error: z.string().describe("Error message if deletion failed; null when successful.").nullable().optional(),
14
14
  Context: z.string().describe("Always null if deletion was successful.").nullable().optional()
15
- }).describe("Response schema for `DeleteMailingList`")
15
+ }).passthrough().describe("Response schema for `DeleteMailingList`")
16
16
  });
17
17
  //#endregion
18
18
  export { moosendDeleteMailingList };
@@ -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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
@@ -6,10 +6,10 @@ 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
- Context: zod.z.object({}).describe("Context object containing paging info and list of campaigns.")
12
- });
11
+ Context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Context object containing paging info and list of campaigns.")
12
+ }).passthrough();
13
13
  const moosendGetAllCampaigns = require_action.action("MOOSEND_GET_ALL_CAMPAIGNS", {
14
14
  slug: "moosend-get-all-campaigns",
15
15
  name: "Get all campaigns",
@@ -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.record(z.string(), z.unknown()).describe(\"Context object containing paging info and list of campaigns.\"),\n}).passthrough();\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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8DAA8D;AACpH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,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/get-all-campaigns.d.ts
4
- declare const MoosendGetAllCampaignsInput: z.ZodTypeAny;
5
- declare const MoosendGetAllCampaignsOutput: z.ZodTypeAny;
6
- declare const moosendGetAllCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendGetAllCampaignsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
7
+ }, z.core.$strip>;
8
+ declare const MoosendGetAllCampaignsOutput: z.ZodObject<{
9
+ Code: z.ZodNullable<z.ZodNumber>;
10
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ Context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
12
+ }, z.core.$loose>;
13
+ declare const moosendGetAllCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ page?: number | undefined;
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 { moosendGetAllCampaigns };
9
19
  //# sourceMappingURL=get-all-campaigns.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-campaigns.d.cts","names":[],"sources":["../../src/actions/get-all-campaigns.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAG1C;AAAA,cACW,4BAAA,EAA8B,CAAA,CAAE,UAI3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-all-campaigns.d.cts","names":[],"sources":["../../src/actions/get-all-campaigns.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,gCAAsB,wBAAA"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-all-campaigns.d.ts
4
- declare const MoosendGetAllCampaignsInput: z.ZodTypeAny;
5
- declare const MoosendGetAllCampaignsOutput: z.ZodTypeAny;
6
- declare const moosendGetAllCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendGetAllCampaignsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
7
+ }, z.core.$strip>;
8
+ declare const MoosendGetAllCampaignsOutput: z.ZodObject<{
9
+ Code: z.ZodNullable<z.ZodNumber>;
10
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ Context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
12
+ }, z.core.$loose>;
13
+ declare const moosendGetAllCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ page?: number | undefined;
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 { moosendGetAllCampaigns };
9
19
  //# sourceMappingURL=get-all-campaigns.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-campaigns.d.mts","names":[],"sources":["../../src/actions/get-all-campaigns.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAG1C;AAAA,cACW,4BAAA,EAA8B,CAAA,CAAE,UAI3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-all-campaigns.d.mts","names":[],"sources":["../../src/actions/get-all-campaigns.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,gCAAsB,wBAAA"}
@@ -9,10 +9,10 @@ const moosendGetAllCampaigns = action("MOOSEND_GET_ALL_CAMPAIGNS", {
9
9
  format: z.string().default("json").describe("Response format. Only 'json' is supported.").optional()
10
10
  }),
11
11
  output: z.object({
12
- Code: z.number().int().describe("Response code; 0 indicates success."),
12
+ Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
13
13
  Error: z.string().describe("Error message, if any; null on success.").nullable().optional(),
14
- Context: z.object({}).describe("Context object containing paging info and list of campaigns.")
15
- })
14
+ Context: z.record(z.string(), z.unknown()).describe("Context object containing paging info and list of campaigns.")
15
+ }).passthrough()
16
16
  });
17
17
  //#endregion
18
18
  export { moosendGetAllCampaigns };
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-campaigns.mjs","names":[],"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":";;AAcA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAduD,EAAE,OAAO;EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EACnH,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrG,CAWS;CACP,QAXwD,EAAE,OAAO;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D;CAC/F,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"get-all-campaigns.mjs","names":[],"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.record(z.string(), z.unknown()).describe(\"Context object containing paging info and list of campaigns.\"),\n}).passthrough();\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":";;AAcA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EACnH,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrG,CAWS;CACP,QAX0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8DAA8D;CACpH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -14,43 +14,43 @@ const MoosendGetAllSubscribersInput = zod.z.object({
14
14
  mailingListID: zod.z.string().describe("The ID of the mailing list containing the subscribers.")
15
15
  }).describe("Request schema for GetAllSubscribers");
16
16
  const MoosendGetAllSubscribers_PagingModelSchema = zod.z.object({
17
- PageSize: zod.z.number().int().describe("Number of items per page."),
18
- CurrentPage: zod.z.number().int().describe("Current page number."),
19
- TotalResults: zod.z.number().int().describe("Total number of results."),
17
+ PageSize: zod.z.number().int().describe("Number of items per page.").nullable(),
18
+ CurrentPage: zod.z.number().int().describe("Current page number.").nullable(),
19
+ TotalResults: zod.z.number().int().describe("Total number of results.").nullable(),
20
20
  SortExpression: zod.z.string().describe("Sort expression used.").nullable().optional(),
21
- TotalPageCount: zod.z.number().int().describe("Total number of pages available."),
22
- SortIsAscending: zod.z.boolean().describe("True if sorted ascending.")
23
- });
21
+ TotalPageCount: zod.z.number().int().describe("Total number of pages available.").nullable(),
22
+ SortIsAscending: zod.z.boolean().describe("True if sorted ascending.").nullable()
23
+ }).passthrough();
24
24
  const MoosendGetAllSubscribers_CustomFieldModelSchema = zod.z.object({
25
- Name: zod.z.string().describe("The name of the custom field."),
25
+ Name: zod.z.string().describe("The name of the custom field.").nullable(),
26
26
  Value: zod.z.union([zod.z.string(), zod.z.number().int()]),
27
- CustomFieldID: zod.z.string().describe("The ID of the custom field.")
28
- });
27
+ CustomFieldID: zod.z.string().describe("The ID of the custom field.").nullable()
28
+ }).passthrough();
29
29
  const MoosendGetAllSubscribers_SubscriberModelSchema = zod.z.object({
30
- ID: zod.z.string().describe("Subscriber unique identifier."),
30
+ ID: zod.z.string().describe("Subscriber unique identifier.").nullable(),
31
31
  Name: zod.z.string().describe("Name of the subscriber.").nullable().optional(),
32
32
  Tags: zod.z.array(zod.z.string()).describe("Tags associated with the subscriber."),
33
- Email: zod.z.string().describe("Email address of the subscriber."),
33
+ Email: zod.z.string().describe("Email address of the subscriber.").nullable(),
34
34
  Mobile: zod.z.string().describe("Mobile number of the subscriber.").nullable().optional(),
35
- CreatedOn: zod.z.string().describe("Timestamp when the subscriber was created."),
35
+ CreatedOn: zod.z.string().describe("Timestamp when the subscriber was created.").nullable(),
36
36
  RemovedOn: zod.z.string().describe("Timestamp when the subscriber was removed; null if not removed.").nullable().optional(),
37
37
  UpdatedOn: zod.z.string().describe("Timestamp when the subscriber was last updated.").nullable().optional(),
38
38
  Preferences: zod.z.array(zod.z.string()).describe("Preference values for the subscriber.").nullable().optional(),
39
39
  CustomFields: zod.z.array(MoosendGetAllSubscribers_CustomFieldModelSchema).describe("List of custom fields for the subscriber."),
40
- SubscribeType: zod.z.number().int().describe("Subscription status code."),
40
+ SubscribeType: zod.z.number().int().describe("Subscription status code.").nullable(),
41
41
  UnsubscribedOn: zod.z.string().describe("Timestamp when unsubscribed; null if still subscribed.").nullable().optional(),
42
- SubscribeMethod: zod.z.number().int().describe("Method used to subscribe the member."),
42
+ SubscribeMethod: zod.z.number().int().describe("Method used to subscribe the member.").nullable(),
43
43
  UnsubscribedFromID: zod.z.string().describe("ID from which unsubscribed; null if not applicable.").nullable().optional()
44
- });
44
+ }).passthrough();
45
45
  const MoosendGetAllSubscribers_ContextModelSchema = zod.z.object({
46
46
  Paging: MoosendGetAllSubscribers_PagingModelSchema.nullable(),
47
47
  Subscribers: zod.z.array(MoosendGetAllSubscribers_SubscriberModelSchema).describe("List of subscribers on the mailing list.")
48
- });
48
+ }).passthrough();
49
49
  const MoosendGetAllSubscribersOutput = zod.z.object({
50
- Code: zod.z.number().int().describe("Response code; 0 indicates success."),
50
+ Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
51
51
  Error: zod.z.string().describe("Error message if the request failed; null on success.").nullable().optional(),
52
52
  Context: MoosendGetAllSubscribers_ContextModelSchema.nullable().optional()
53
- });
53
+ }).passthrough();
54
54
  const moosendGetAllSubscribers = require_action.action("MOOSEND_GET_ALL_SUBSCRIBERS", {
55
55
  slug: "moosend-get-all-subscribers",
56
56
  name: "Get All Subscribers",
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-subscribers.cjs","names":["z","action"],"sources":["../../src/actions/get-all-subscribers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetAllSubscribersInput: z.ZodTypeAny = z.object({\n Page: z.number().int().default(1).describe(\"Page number of subscriber results to retrieve. Use this with page_size to paginate through large lists.\").optional(),\n format: z.string().default(\"json\").describe(\"Response format.\").optional(),\n status: z.enum([\"Subscribed\", \"Unsubscribed\", \"Bounced\", \"Removed\"]).default(\"Subscribed\").describe(\"The subscription status to filter by. 'Subscribed' returns active subscribers, 'Unsubscribed' returns those who opted out, 'Bounced' returns email addresses that bounced, 'Removed' returns manually removed subscribers.\").optional(),\n PageSize: z.number().int().default(100).describe(\"Number of subscriber records to return per page. Maximum recommended is 500.\").optional(),\n mailingListID: z.string().describe(\"The ID of the mailing list containing the subscribers.\"),\n}).describe(\"Request schema for GetAllSubscribers\");\nconst MoosendGetAllSubscribers_PagingModelSchema: z.ZodTypeAny = z.object({\n PageSize: z.number().int().describe(\"Number of items per page.\"),\n CurrentPage: z.number().int().describe(\"Current page number.\"),\n TotalResults: z.number().int().describe(\"Total number of results.\"),\n SortExpression: z.string().describe(\"Sort expression used.\").nullable().optional(),\n TotalPageCount: z.number().int().describe(\"Total number of pages available.\"),\n SortIsAscending: z.boolean().describe(\"True if sorted ascending.\"),\n});\nconst MoosendGetAllSubscribers_CustomFieldModelSchema: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The name of the custom field.\"),\n Value: z.union([z.string(), z.number().int()]),\n CustomFieldID: z.string().describe(\"The ID of the custom field.\"),\n});\nconst MoosendGetAllSubscribers_SubscriberModelSchema: z.ZodTypeAny = z.object({\n ID: z.string().describe(\"Subscriber unique identifier.\"),\n Name: z.string().describe(\"Name of the subscriber.\").nullable().optional(),\n Tags: z.array(z.string()).describe(\"Tags associated with the subscriber.\"),\n Email: z.string().describe(\"Email address of the subscriber.\"),\n Mobile: z.string().describe(\"Mobile number of the subscriber.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Timestamp when the subscriber was created.\"),\n RemovedOn: z.string().describe(\"Timestamp when the subscriber was removed; null if not removed.\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Timestamp when the subscriber was last updated.\").nullable().optional(),\n Preferences: z.array(z.string()).describe(\"Preference values for the subscriber.\").nullable().optional(),\n CustomFields: z.array(MoosendGetAllSubscribers_CustomFieldModelSchema).describe(\"List of custom fields for the subscriber.\"),\n SubscribeType: z.number().int().describe(\"Subscription status code.\"),\n UnsubscribedOn: z.string().describe(\"Timestamp when unsubscribed; null if still subscribed.\").nullable().optional(),\n SubscribeMethod: z.number().int().describe(\"Method used to subscribe the member.\"),\n UnsubscribedFromID: z.string().describe(\"ID from which unsubscribed; null if not applicable.\").nullable().optional(),\n});\nconst MoosendGetAllSubscribers_ContextModelSchema: z.ZodTypeAny = z.object({\n Paging: MoosendGetAllSubscribers_PagingModelSchema.nullable(),\n Subscribers: z.array(MoosendGetAllSubscribers_SubscriberModelSchema).describe(\"List of subscribers on the mailing list.\"),\n});\nexport const MoosendGetAllSubscribersOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message if the request failed; null on success.\").nullable().optional(),\n Context: MoosendGetAllSubscribers_ContextModelSchema.nullable().optional(),\n});\n\nexport const moosendGetAllSubscribers = action(\"MOOSEND_GET_ALL_SUBSCRIBERS\", {\n slug: \"moosend-get-all-subscribers\",\n name: \"Get All Subscribers\",\n description: \"Retrieves all subscribers from a specified mailing list, filtered by their subscription status (Subscribed, Unsubscribed, Bounced, or Removed). Returns paginated results with subscriber details including email, name, custom fields, and subscription timestamps.\",\n input: MoosendGetAllSubscribersInput,\n output: MoosendGetAllSubscribersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC/J,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,kBAAkB,CAAC,C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CACzE,QAAQ,2CAA2C,SAAS;CAC5D,aAAaA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,0CAA0C;AAC1H,CAAC;AACD,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,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,SAAS,4CAA4C,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC;AAED,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-all-subscribers.cjs","names":["z","action"],"sources":["../../src/actions/get-all-subscribers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetAllSubscribersInput = z.object({\n Page: z.number().int().default(1).describe(\"Page number of subscriber results to retrieve. Use this with page_size to paginate through large lists.\").optional(),\n format: z.string().default(\"json\").describe(\"Response format.\").optional(),\n status: z.enum([\"Subscribed\", \"Unsubscribed\", \"Bounced\", \"Removed\"]).default(\"Subscribed\").describe(\"The subscription status to filter by. 'Subscribed' returns active subscribers, 'Unsubscribed' returns those who opted out, 'Bounced' returns email addresses that bounced, 'Removed' returns manually removed subscribers.\").optional(),\n PageSize: z.number().int().default(100).describe(\"Number of subscriber records to return per page. Maximum recommended is 500.\").optional(),\n mailingListID: z.string().describe(\"The ID of the mailing list containing the subscribers.\"),\n}).describe(\"Request schema for GetAllSubscribers\");\nconst MoosendGetAllSubscribers_PagingModelSchema = z.object({\n PageSize: z.number().int().describe(\"Number of items per page.\").nullable(),\n CurrentPage: z.number().int().describe(\"Current page number.\").nullable(),\n TotalResults: z.number().int().describe(\"Total number of results.\").nullable(),\n SortExpression: z.string().describe(\"Sort expression used.\").nullable().optional(),\n TotalPageCount: z.number().int().describe(\"Total number of pages available.\").nullable(),\n SortIsAscending: z.boolean().describe(\"True if sorted ascending.\").nullable(),\n}).passthrough();\nconst MoosendGetAllSubscribers_CustomFieldModelSchema = z.object({\n Name: z.string().describe(\"The name of the custom field.\").nullable(),\n Value: z.union([z.string(), z.number().int()]),\n CustomFieldID: z.string().describe(\"The ID of the custom field.\").nullable(),\n}).passthrough();\nconst MoosendGetAllSubscribers_SubscriberModelSchema = z.object({\n ID: z.string().describe(\"Subscriber unique identifier.\").nullable(),\n Name: z.string().describe(\"Name of the subscriber.\").nullable().optional(),\n Tags: z.array(z.string()).describe(\"Tags associated with the subscriber.\"),\n Email: z.string().describe(\"Email address of the subscriber.\").nullable(),\n Mobile: z.string().describe(\"Mobile number of the subscriber.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Timestamp when the subscriber was created.\").nullable(),\n RemovedOn: z.string().describe(\"Timestamp when the subscriber was removed; null if not removed.\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Timestamp when the subscriber was last updated.\").nullable().optional(),\n Preferences: z.array(z.string()).describe(\"Preference values for the subscriber.\").nullable().optional(),\n CustomFields: z.array(MoosendGetAllSubscribers_CustomFieldModelSchema).describe(\"List of custom fields for the subscriber.\"),\n SubscribeType: z.number().int().describe(\"Subscription status code.\").nullable(),\n UnsubscribedOn: z.string().describe(\"Timestamp when unsubscribed; null if still subscribed.\").nullable().optional(),\n SubscribeMethod: z.number().int().describe(\"Method used to subscribe the member.\").nullable(),\n UnsubscribedFromID: z.string().describe(\"ID from which unsubscribed; null if not applicable.\").nullable().optional(),\n}).passthrough();\nconst MoosendGetAllSubscribers_ContextModelSchema = z.object({\n Paging: MoosendGetAllSubscribers_PagingModelSchema.nullable(),\n Subscribers: z.array(MoosendGetAllSubscribers_SubscriberModelSchema).describe(\"List of subscribers on the mailing list.\"),\n}).passthrough();\nexport const MoosendGetAllSubscribersOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if the request failed; null on success.\").nullable().optional(),\n Context: MoosendGetAllSubscribers_ContextModelSchema.nullable().optional(),\n}).passthrough();\n\nexport const moosendGetAllSubscribers = action(\"MOOSEND_GET_ALL_SUBSCRIBERS\", {\n slug: \"moosend-get-all-subscribers\",\n name: \"Get All Subscribers\",\n description: \"Retrieves all subscribers from a specified mailing list, filtered by their subscription status (Subscribed, Unsubscribed, Bounced, or Removed). Returns paginated results with subscriber details including email, name, custom fields, and subscription timestamps.\",\n input: MoosendGetAllSubscribersInput,\n output: MoosendGetAllSubscribersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC/J,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAc;EAAgB;EAAW;CAAS,CAAC,CAAC,CAAC,QAAQ,YAAY,CAAC,CAAC,SAAS,4NAA4N,CAAC,CAAC,SAAS;CAC3U,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1I,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;AAC7F,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,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C,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,SAAS,4CAA4C,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,59 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-all-subscribers.d.ts
4
- declare const MoosendGetAllSubscribersInput: z.ZodTypeAny;
5
- declare const MoosendGetAllSubscribersOutput: z.ZodTypeAny;
6
- declare const moosendGetAllSubscribers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendGetAllSubscribersInput: z.ZodObject<{
5
+ Page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
7
+ status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
8
+ Subscribed: "Subscribed";
9
+ Unsubscribed: "Unsubscribed";
10
+ Bounced: "Bounced";
11
+ Removed: "Removed";
12
+ }>>>;
13
+ PageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
14
+ mailingListID: z.ZodString;
15
+ }, z.core.$strip>;
16
+ declare const MoosendGetAllSubscribersOutput: z.ZodObject<{
17
+ Code: z.ZodNullable<z.ZodNumber>;
18
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ Context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
+ Paging: z.ZodNullable<z.ZodObject<{
21
+ PageSize: z.ZodNullable<z.ZodNumber>;
22
+ CurrentPage: z.ZodNullable<z.ZodNumber>;
23
+ TotalResults: z.ZodNullable<z.ZodNumber>;
24
+ SortExpression: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ TotalPageCount: z.ZodNullable<z.ZodNumber>;
26
+ SortIsAscending: z.ZodNullable<z.ZodBoolean>;
27
+ }, z.core.$loose>>;
28
+ Subscribers: z.ZodArray<z.ZodObject<{
29
+ ID: z.ZodNullable<z.ZodString>;
30
+ Name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ Tags: z.ZodArray<z.ZodString>;
32
+ Email: z.ZodNullable<z.ZodString>;
33
+ Mobile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ CreatedOn: z.ZodNullable<z.ZodString>;
35
+ RemovedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ UpdatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ Preferences: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
38
+ CustomFields: z.ZodArray<z.ZodObject<{
39
+ Name: z.ZodNullable<z.ZodString>;
40
+ Value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
41
+ CustomFieldID: z.ZodNullable<z.ZodString>;
42
+ }, z.core.$loose>>;
43
+ SubscribeType: z.ZodNullable<z.ZodNumber>;
44
+ UnsubscribedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ SubscribeMethod: z.ZodNullable<z.ZodNumber>;
46
+ UnsubscribedFromID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ }, z.core.$loose>>;
48
+ }, z.core.$loose>>>;
49
+ }, z.core.$loose>;
50
+ declare const moosendGetAllSubscribers: import("@keystrokehq/action").WorkflowActionDefinition<{
51
+ mailingListID: string;
52
+ Page?: number | undefined;
53
+ format?: string | undefined;
54
+ status?: "Subscribed" | "Unsubscribed" | "Bounced" | "Removed" | undefined;
55
+ PageSize?: number | undefined;
56
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
57
  //#endregion
8
58
  export { moosendGetAllSubscribers };
9
59
  //# sourceMappingURL=get-all-subscribers.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-subscribers.d.cts","names":[],"sources":["../../src/actions/get-all-subscribers.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAMK;AAAA,cAkCtC,8BAAA,EAAgC,CAAA,CAAE,UAI7C;AAAA,cAEW,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-all-subscribers.d.cts","names":[],"sources":["../../src/actions/get-all-subscribers.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAwC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -1,9 +1,59 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-all-subscribers.d.ts
4
- declare const MoosendGetAllSubscribersInput: z.ZodTypeAny;
5
- declare const MoosendGetAllSubscribersOutput: z.ZodTypeAny;
6
- declare const moosendGetAllSubscribers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendGetAllSubscribersInput: z.ZodObject<{
5
+ Page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
7
+ status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
8
+ Subscribed: "Subscribed";
9
+ Unsubscribed: "Unsubscribed";
10
+ Bounced: "Bounced";
11
+ Removed: "Removed";
12
+ }>>>;
13
+ PageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
14
+ mailingListID: z.ZodString;
15
+ }, z.core.$strip>;
16
+ declare const MoosendGetAllSubscribersOutput: z.ZodObject<{
17
+ Code: z.ZodNullable<z.ZodNumber>;
18
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ Context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
+ Paging: z.ZodNullable<z.ZodObject<{
21
+ PageSize: z.ZodNullable<z.ZodNumber>;
22
+ CurrentPage: z.ZodNullable<z.ZodNumber>;
23
+ TotalResults: z.ZodNullable<z.ZodNumber>;
24
+ SortExpression: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ TotalPageCount: z.ZodNullable<z.ZodNumber>;
26
+ SortIsAscending: z.ZodNullable<z.ZodBoolean>;
27
+ }, z.core.$loose>>;
28
+ Subscribers: z.ZodArray<z.ZodObject<{
29
+ ID: z.ZodNullable<z.ZodString>;
30
+ Name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ Tags: z.ZodArray<z.ZodString>;
32
+ Email: z.ZodNullable<z.ZodString>;
33
+ Mobile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ CreatedOn: z.ZodNullable<z.ZodString>;
35
+ RemovedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ UpdatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ Preferences: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
38
+ CustomFields: z.ZodArray<z.ZodObject<{
39
+ Name: z.ZodNullable<z.ZodString>;
40
+ Value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
41
+ CustomFieldID: z.ZodNullable<z.ZodString>;
42
+ }, z.core.$loose>>;
43
+ SubscribeType: z.ZodNullable<z.ZodNumber>;
44
+ UnsubscribedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ SubscribeMethod: z.ZodNullable<z.ZodNumber>;
46
+ UnsubscribedFromID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ }, z.core.$loose>>;
48
+ }, z.core.$loose>>>;
49
+ }, z.core.$loose>;
50
+ declare const moosendGetAllSubscribers: import("@keystrokehq/action").WorkflowActionDefinition<{
51
+ mailingListID: string;
52
+ Page?: number | undefined;
53
+ format?: string | undefined;
54
+ status?: "Subscribed" | "Unsubscribed" | "Bounced" | "Removed" | undefined;
55
+ PageSize?: number | undefined;
56
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
57
  //#endregion
8
58
  export { moosendGetAllSubscribers };
9
59
  //# sourceMappingURL=get-all-subscribers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-subscribers.d.mts","names":[],"sources":["../../src/actions/get-all-subscribers.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAMK;AAAA,cAkCtC,8BAAA,EAAgC,CAAA,CAAE,UAI7C;AAAA,cAEW,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-all-subscribers.d.mts","names":[],"sources":["../../src/actions/get-all-subscribers.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAwC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -14,48 +14,48 @@ const MoosendGetAllSubscribersInput = z.object({
14
14
  mailingListID: z.string().describe("The ID of the mailing list containing the subscribers.")
15
15
  }).describe("Request schema for GetAllSubscribers");
16
16
  const MoosendGetAllSubscribers_PagingModelSchema = z.object({
17
- PageSize: z.number().int().describe("Number of items per page."),
18
- CurrentPage: z.number().int().describe("Current page number."),
19
- TotalResults: z.number().int().describe("Total number of results."),
17
+ PageSize: z.number().int().describe("Number of items per page.").nullable(),
18
+ CurrentPage: z.number().int().describe("Current page number.").nullable(),
19
+ TotalResults: z.number().int().describe("Total number of results.").nullable(),
20
20
  SortExpression: z.string().describe("Sort expression used.").nullable().optional(),
21
- TotalPageCount: z.number().int().describe("Total number of pages available."),
22
- SortIsAscending: z.boolean().describe("True if sorted ascending.")
23
- });
21
+ TotalPageCount: z.number().int().describe("Total number of pages available.").nullable(),
22
+ SortIsAscending: z.boolean().describe("True if sorted ascending.").nullable()
23
+ }).passthrough();
24
24
  const MoosendGetAllSubscribers_CustomFieldModelSchema = z.object({
25
- Name: z.string().describe("The name of the custom field."),
25
+ Name: z.string().describe("The name of the custom field.").nullable(),
26
26
  Value: z.union([z.string(), z.number().int()]),
27
- CustomFieldID: z.string().describe("The ID of the custom field.")
28
- });
27
+ CustomFieldID: z.string().describe("The ID of the custom field.").nullable()
28
+ }).passthrough();
29
29
  const MoosendGetAllSubscribers_SubscriberModelSchema = z.object({
30
- ID: z.string().describe("Subscriber unique identifier."),
30
+ ID: z.string().describe("Subscriber unique identifier.").nullable(),
31
31
  Name: z.string().describe("Name of the subscriber.").nullable().optional(),
32
32
  Tags: z.array(z.string()).describe("Tags associated with the subscriber."),
33
- Email: z.string().describe("Email address of the subscriber."),
33
+ Email: z.string().describe("Email address of the subscriber.").nullable(),
34
34
  Mobile: z.string().describe("Mobile number of the subscriber.").nullable().optional(),
35
- CreatedOn: z.string().describe("Timestamp when the subscriber was created."),
35
+ CreatedOn: z.string().describe("Timestamp when the subscriber was created.").nullable(),
36
36
  RemovedOn: z.string().describe("Timestamp when the subscriber was removed; null if not removed.").nullable().optional(),
37
37
  UpdatedOn: z.string().describe("Timestamp when the subscriber was last updated.").nullable().optional(),
38
38
  Preferences: z.array(z.string()).describe("Preference values for the subscriber.").nullable().optional(),
39
39
  CustomFields: z.array(MoosendGetAllSubscribers_CustomFieldModelSchema).describe("List of custom fields for the subscriber."),
40
- SubscribeType: z.number().int().describe("Subscription status code."),
40
+ SubscribeType: z.number().int().describe("Subscription status code.").nullable(),
41
41
  UnsubscribedOn: z.string().describe("Timestamp when unsubscribed; null if still subscribed.").nullable().optional(),
42
- SubscribeMethod: z.number().int().describe("Method used to subscribe the member."),
42
+ SubscribeMethod: z.number().int().describe("Method used to subscribe the member.").nullable(),
43
43
  UnsubscribedFromID: z.string().describe("ID from which unsubscribed; null if not applicable.").nullable().optional()
44
- });
44
+ }).passthrough();
45
45
  const MoosendGetAllSubscribers_ContextModelSchema = z.object({
46
46
  Paging: MoosendGetAllSubscribers_PagingModelSchema.nullable(),
47
47
  Subscribers: z.array(MoosendGetAllSubscribers_SubscriberModelSchema).describe("List of subscribers on the mailing list.")
48
- });
48
+ }).passthrough();
49
49
  const moosendGetAllSubscribers = action("MOOSEND_GET_ALL_SUBSCRIBERS", {
50
50
  slug: "moosend-get-all-subscribers",
51
51
  name: "Get All Subscribers",
52
52
  description: "Retrieves all subscribers from a specified mailing list, filtered by their subscription status (Subscribed, Unsubscribed, Bounced, or Removed). Returns paginated results with subscriber details including email, name, custom fields, and subscription timestamps.",
53
53
  input: MoosendGetAllSubscribersInput,
54
54
  output: z.object({
55
- Code: z.number().int().describe("Response code; 0 indicates success."),
55
+ Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
56
56
  Error: z.string().describe("Error message if the request failed; null on success.").nullable().optional(),
57
57
  Context: MoosendGetAllSubscribers_ContextModelSchema.nullable().optional()
58
- })
58
+ }).passthrough()
59
59
  });
60
60
  //#endregion
61
61
  export { moosendGetAllSubscribers };
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-subscribers.mjs","names":[],"sources":["../../src/actions/get-all-subscribers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetAllSubscribersInput: z.ZodTypeAny = z.object({\n Page: z.number().int().default(1).describe(\"Page number of subscriber results to retrieve. Use this with page_size to paginate through large lists.\").optional(),\n format: z.string().default(\"json\").describe(\"Response format.\").optional(),\n status: z.enum([\"Subscribed\", \"Unsubscribed\", \"Bounced\", \"Removed\"]).default(\"Subscribed\").describe(\"The subscription status to filter by. 'Subscribed' returns active subscribers, 'Unsubscribed' returns those who opted out, 'Bounced' returns email addresses that bounced, 'Removed' returns manually removed subscribers.\").optional(),\n PageSize: z.number().int().default(100).describe(\"Number of subscriber records to return per page. Maximum recommended is 500.\").optional(),\n mailingListID: z.string().describe(\"The ID of the mailing list containing the subscribers.\"),\n}).describe(\"Request schema for GetAllSubscribers\");\nconst MoosendGetAllSubscribers_PagingModelSchema: z.ZodTypeAny = z.object({\n PageSize: z.number().int().describe(\"Number of items per page.\"),\n CurrentPage: z.number().int().describe(\"Current page number.\"),\n TotalResults: z.number().int().describe(\"Total number of results.\"),\n SortExpression: z.string().describe(\"Sort expression used.\").nullable().optional(),\n TotalPageCount: z.number().int().describe(\"Total number of pages available.\"),\n SortIsAscending: z.boolean().describe(\"True if sorted ascending.\"),\n});\nconst MoosendGetAllSubscribers_CustomFieldModelSchema: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The name of the custom field.\"),\n Value: z.union([z.string(), z.number().int()]),\n CustomFieldID: z.string().describe(\"The ID of the custom field.\"),\n});\nconst MoosendGetAllSubscribers_SubscriberModelSchema: z.ZodTypeAny = z.object({\n ID: z.string().describe(\"Subscriber unique identifier.\"),\n Name: z.string().describe(\"Name of the subscriber.\").nullable().optional(),\n Tags: z.array(z.string()).describe(\"Tags associated with the subscriber.\"),\n Email: z.string().describe(\"Email address of the subscriber.\"),\n Mobile: z.string().describe(\"Mobile number of the subscriber.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Timestamp when the subscriber was created.\"),\n RemovedOn: z.string().describe(\"Timestamp when the subscriber was removed; null if not removed.\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Timestamp when the subscriber was last updated.\").nullable().optional(),\n Preferences: z.array(z.string()).describe(\"Preference values for the subscriber.\").nullable().optional(),\n CustomFields: z.array(MoosendGetAllSubscribers_CustomFieldModelSchema).describe(\"List of custom fields for the subscriber.\"),\n SubscribeType: z.number().int().describe(\"Subscription status code.\"),\n UnsubscribedOn: z.string().describe(\"Timestamp when unsubscribed; null if still subscribed.\").nullable().optional(),\n SubscribeMethod: z.number().int().describe(\"Method used to subscribe the member.\"),\n UnsubscribedFromID: z.string().describe(\"ID from which unsubscribed; null if not applicable.\").nullable().optional(),\n});\nconst MoosendGetAllSubscribers_ContextModelSchema: z.ZodTypeAny = z.object({\n Paging: MoosendGetAllSubscribers_PagingModelSchema.nullable(),\n Subscribers: z.array(MoosendGetAllSubscribers_SubscriberModelSchema).describe(\"List of subscribers on the mailing list.\"),\n});\nexport const MoosendGetAllSubscribersOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\"),\n Error: z.string().describe(\"Error message if the request failed; null on success.\").nullable().optional(),\n Context: MoosendGetAllSubscribers_ContextModelSchema.nullable().optional(),\n});\n\nexport const moosendGetAllSubscribers = action(\"MOOSEND_GET_ALL_SUBSCRIBERS\", {\n slug: \"moosend-get-all-subscribers\",\n name: \"Get All Subscribers\",\n description: \"Retrieves all subscribers from a specified mailing list, filtered by their subscription status (Subscribed, Unsubscribed, Bounced, or Removed). Returns paginated results with subscriber details including email, name, custom fields, and subscription timestamps.\",\n input: MoosendGetAllSubscribersInput,\n output: MoosendGetAllSubscribersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC/J,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACzE,QAAQ,EAAE,KAAK;EAAC;EAAc;EAAgB;EAAW;CAAS,CAAC,CAAC,CAAC,QAAQ,YAAY,CAAC,CAAC,SAAS,4NAA4N,CAAC,CAAC,SAAS;CAC3U,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1I,eAAe,EAAE,OAAO,CA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C,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,cAAc,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,2CAA2C;CAC3H,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CACpE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;CACjF,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC;AACD,MAAM,8CAA4D,EAAE,OAAO;CACzE,QAAQ,2CAA2C,SAAS;CAC5D,aAAa,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,0CAA0C;AAC1H,CAAC;AAOD,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX0D,EAAE,OAAO;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,SAAS,4CAA4C,SAAS,CAAC,CAAC,SAAS;CAC3E,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"get-all-subscribers.mjs","names":[],"sources":["../../src/actions/get-all-subscribers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetAllSubscribersInput = z.object({\n Page: z.number().int().default(1).describe(\"Page number of subscriber results to retrieve. Use this with page_size to paginate through large lists.\").optional(),\n format: z.string().default(\"json\").describe(\"Response format.\").optional(),\n status: z.enum([\"Subscribed\", \"Unsubscribed\", \"Bounced\", \"Removed\"]).default(\"Subscribed\").describe(\"The subscription status to filter by. 'Subscribed' returns active subscribers, 'Unsubscribed' returns those who opted out, 'Bounced' returns email addresses that bounced, 'Removed' returns manually removed subscribers.\").optional(),\n PageSize: z.number().int().default(100).describe(\"Number of subscriber records to return per page. Maximum recommended is 500.\").optional(),\n mailingListID: z.string().describe(\"The ID of the mailing list containing the subscribers.\"),\n}).describe(\"Request schema for GetAllSubscribers\");\nconst MoosendGetAllSubscribers_PagingModelSchema = z.object({\n PageSize: z.number().int().describe(\"Number of items per page.\").nullable(),\n CurrentPage: z.number().int().describe(\"Current page number.\").nullable(),\n TotalResults: z.number().int().describe(\"Total number of results.\").nullable(),\n SortExpression: z.string().describe(\"Sort expression used.\").nullable().optional(),\n TotalPageCount: z.number().int().describe(\"Total number of pages available.\").nullable(),\n SortIsAscending: z.boolean().describe(\"True if sorted ascending.\").nullable(),\n}).passthrough();\nconst MoosendGetAllSubscribers_CustomFieldModelSchema = z.object({\n Name: z.string().describe(\"The name of the custom field.\").nullable(),\n Value: z.union([z.string(), z.number().int()]),\n CustomFieldID: z.string().describe(\"The ID of the custom field.\").nullable(),\n}).passthrough();\nconst MoosendGetAllSubscribers_SubscriberModelSchema = z.object({\n ID: z.string().describe(\"Subscriber unique identifier.\").nullable(),\n Name: z.string().describe(\"Name of the subscriber.\").nullable().optional(),\n Tags: z.array(z.string()).describe(\"Tags associated with the subscriber.\"),\n Email: z.string().describe(\"Email address of the subscriber.\").nullable(),\n Mobile: z.string().describe(\"Mobile number of the subscriber.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Timestamp when the subscriber was created.\").nullable(),\n RemovedOn: z.string().describe(\"Timestamp when the subscriber was removed; null if not removed.\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Timestamp when the subscriber was last updated.\").nullable().optional(),\n Preferences: z.array(z.string()).describe(\"Preference values for the subscriber.\").nullable().optional(),\n CustomFields: z.array(MoosendGetAllSubscribers_CustomFieldModelSchema).describe(\"List of custom fields for the subscriber.\"),\n SubscribeType: z.number().int().describe(\"Subscription status code.\").nullable(),\n UnsubscribedOn: z.string().describe(\"Timestamp when unsubscribed; null if still subscribed.\").nullable().optional(),\n SubscribeMethod: z.number().int().describe(\"Method used to subscribe the member.\").nullable(),\n UnsubscribedFromID: z.string().describe(\"ID from which unsubscribed; null if not applicable.\").nullable().optional(),\n}).passthrough();\nconst MoosendGetAllSubscribers_ContextModelSchema = z.object({\n Paging: MoosendGetAllSubscribers_PagingModelSchema.nullable(),\n Subscribers: z.array(MoosendGetAllSubscribers_SubscriberModelSchema).describe(\"List of subscribers on the mailing list.\"),\n}).passthrough();\nexport const MoosendGetAllSubscribersOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if the request failed; null on success.\").nullable().optional(),\n Context: MoosendGetAllSubscribers_ContextModelSchema.nullable().optional(),\n}).passthrough();\n\nexport const moosendGetAllSubscribers = action(\"MOOSEND_GET_ALL_SUBSCRIBERS\", {\n slug: \"moosend-get-all-subscribers\",\n name: \"Get All Subscribers\",\n description: \"Retrieves all subscribers from a specified mailing list, filtered by their subscription status (Subscribed, Unsubscribed, Bounced, or Removed). Returns paginated results with subscriber details including email, name, custom fields, and subscription timestamps.\",\n input: MoosendGetAllSubscribersInput,\n output: MoosendGetAllSubscribersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC/J,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,kBAAkB,CAA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,QAAQ,2CAA2C,SAAS;CAC5D,aAAa,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,0CAA0C;AAC1H,CAAC,CAAC,CAAC,YAAY;AAOf,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;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,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,SAAS,4CAA4C,SAAS,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -3,10 +3,10 @@ let zod = require("zod");
3
3
  //#region src/actions/get-campaign-details.ts
4
4
  const MoosendGetCampaignDetailsInput = zod.z.object({ campaign_id: zod.z.string().describe("The unique identifier of the campaign whose details are to be retrieved.") }).describe("Request schema for retrieving campaign details.");
5
5
  const MoosendGetCampaignDetailsOutput = zod.z.object({
6
- Code: zod.z.number().int().describe("Response code from Moosend API. 0 indicates success, other values indicate errors."),
6
+ Code: zod.z.number().int().describe("Response code from Moosend API. 0 indicates success, other values indicate errors.").nullable(),
7
7
  Error: zod.z.string().describe("Error message if the request failed; null when successful.").nullable().optional(),
8
8
  Context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Complete campaign data including ID, name, subject, status, mailing lists, content, sender info, tracking settings, ABTesting configuration, delivery settings, and more. Null when an error occurs.").nullable().optional()
9
- }).describe("Response schema for retrieving campaign details.");
9
+ }).passthrough().describe("Response schema for retrieving campaign details.");
10
10
  const moosendGetCampaignDetails = require_action.action("MOOSEND_GET_CAMPAIGN_DETAILS", {
11
11
  slug: "moosend-get-campaign-details",
12
12
  name: "Get Campaign Details",
@@ -1 +1 @@
1
- {"version":3,"file":"get-campaign-details.cjs","names":["z","action"],"sources":["../../src/actions/get-campaign-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetCampaignDetailsInput: z.ZodTypeAny = z.object({\n campaign_id: z.string().describe(\"The unique identifier of the campaign whose details are to be retrieved.\"),\n}).describe(\"Request schema for retrieving campaign details.\");\nexport const MoosendGetCampaignDetailsOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Response code from Moosend API. 0 indicates success, other values indicate errors.\"),\n Error: z.string().describe(\"Error message if the request failed; null when successful.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Complete campaign data including ID, name, subject, status, mailing lists, content, sender info, tracking settings, ABTesting configuration, delivery settings, and more. Null when an error occurs.\").nullable().optional(),\n}).describe(\"Response schema for retrieving campaign details.\");\n\nexport const moosendGetCampaignDetails = action(\"MOOSEND_GET_CAMPAIGN_DETAILS\", {\n slug: \"moosend-get-campaign-details\",\n name: \"Get Campaign Details\",\n description: \"Retrieves comprehensive details about a specific campaign by its ID. Returns complete campaign information including configuration, status, content, and settings. Use this when you need to inspect or verify campaign properties.\",\n input: MoosendGetCampaignDetailsInput,\n output: MoosendGetCampaignDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,EAC7G,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF;CACpH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sMAAsM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClR,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-campaign-details.cjs","names":["z","action"],"sources":["../../src/actions/get-campaign-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetCampaignDetailsInput = z.object({\n campaign_id: z.string().describe(\"The unique identifier of the campaign whose details are to be retrieved.\"),\n}).describe(\"Request schema for retrieving campaign details.\");\nexport const MoosendGetCampaignDetailsOutput = z.object({\n Code: z.number().int().describe(\"Response code from Moosend API. 0 indicates success, other values indicate errors.\").nullable(),\n Error: z.string().describe(\"Error message if the request failed; null when successful.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Complete campaign data including ID, name, subject, status, mailing lists, content, sender info, tracking settings, ABTesting configuration, delivery settings, and more. Null when an error occurs.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving campaign details.\");\n\nexport const moosendGetCampaignDetails = action(\"MOOSEND_GET_CAMPAIGN_DETAILS\", {\n slug: \"moosend-get-campaign-details\",\n name: \"Get Campaign Details\",\n description: \"Retrieves comprehensive details about a specific campaign by its ID. Returns complete campaign information including configuration, status, content, and settings. Use this when you need to inspect or verify campaign properties.\",\n input: MoosendGetCampaignDetailsInput,\n output: MoosendGetCampaignDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,EAC7G,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC/H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sMAAsM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClR,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}