@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":"action.cjs","names":["moosend","executeMoosendTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { moosend } from \"./app\";\nimport { executeMoosendTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return moosend.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeMoosendTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["moosend","executeMoosendTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { moosend } from \"./app\";\nimport { executeMoosendTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return moosend.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeMoosendTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { moosend } from \"./app\";\nimport { executeMoosendTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return moosend.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeMoosendTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { moosend } from \"./app\";\nimport { executeMoosendTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return moosend.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeMoosendTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
@@ -12,10 +12,10 @@ const MoosendAddSegmentCriteriaInput = zod.z.object({
12
12
  mailing_list_id: zod.z.string().describe("The ID of the mailing list the specified segment belongs to.")
13
13
  }).describe("Request schema for adding a criterion to a segment.");
14
14
  const MoosendAddSegmentCriteriaOutput = zod.z.object({
15
- Code: zod.z.number().int().describe("Response code; 0 indicates success."),
15
+ Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
16
16
  Error: zod.z.string().describe("Error message; null if successful.").nullable().optional(),
17
17
  Context: zod.z.string().describe("Contains the new criteria ID upon successful creation.").nullable().optional()
18
- }).describe("Response schema for AddSegmentCriteria action.");
18
+ }).passthrough().describe("Response schema for AddSegmentCriteria action.");
19
19
  const moosendAddSegmentCriteria = require_action.action("MOOSEND_ADD_SEGMENT_CRITERIA", {
20
20
  slug: "moosend-add-segment-criteria",
21
21
  name: "Add Segment Criteria",
@@ -1 +1 @@
1
- {"version":3,"file":"add-segment-criteria.cjs","names":["z","action"],"sources":["../../src/actions/add-segment-criteria.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendAddSegmentCriteriaInput: z.ZodTypeAny = z.object({\n field: z.string().describe(\"The field of the criterion to filter the mailing list by (e.g., 'Email', 'Name', custom field name).\"),\n value: z.string().describe(\"A search term to filter the specified field by.\"),\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n date_to: z.string().describe(\"Provides an additional filter option to be combined with date-related fields.\").optional(),\n comparer: z.string().default(\"Is\").describe(\"An operator that defines the way to compare a criterion field with its value (e.g., 'Is', 'IsNot', 'Contains').\").optional(),\n date_from: z.string().describe(\"Provides an additional filter option to be combined with date-related fields.\").optional(),\n segment_id: z.string().describe(\"The ID of the segment to add the criterion to.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list the specified segment belongs to.\"),\n}).describe(\"Request schema for adding a criterion to a segment.\");\nexport const MoosendAddSegmentCriteriaOutput: 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(\"Contains the new criteria ID upon successful creation.\").nullable().optional(),\n}).describe(\"Response schema for AddSegmentCriteria action.\");\n\nexport const moosendAddSegmentCriteria = action(\"MOOSEND_ADD_SEGMENT_CRITERIA\", {\n slug: \"moosend-add-segment-criteria\",\n name: \"Add Segment Criteria\",\n description: \"Tool to add a new criterion (rule) to a segment. Use after obtaining the mailing list ID and segment ID to define filtering criteria.\",\n input: MoosendAddSegmentCriteriaInput,\n output: MoosendAddSegmentCriteriaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;CACjI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACvH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACxK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACzH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAChF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AACrG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,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,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-segment-criteria.cjs","names":["z","action"],"sources":["../../src/actions/add-segment-criteria.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendAddSegmentCriteriaInput = z.object({\n field: z.string().describe(\"The field of the criterion to filter the mailing list by (e.g., 'Email', 'Name', custom field name).\"),\n value: z.string().describe(\"A search term to filter the specified field by.\"),\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n date_to: z.string().describe(\"Provides an additional filter option to be combined with date-related fields.\").optional(),\n comparer: z.string().default(\"Is\").describe(\"An operator that defines the way to compare a criterion field with its value (e.g., 'Is', 'IsNot', 'Contains').\").optional(),\n date_from: z.string().describe(\"Provides an additional filter option to be combined with date-related fields.\").optional(),\n segment_id: z.string().describe(\"The ID of the segment to add the criterion to.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list the specified segment belongs to.\"),\n}).describe(\"Request schema for adding a criterion to a segment.\");\nexport const MoosendAddSegmentCriteriaOutput = 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(\"Contains the new criteria ID upon successful creation.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for AddSegmentCriteria action.\");\n\nexport const moosendAddSegmentCriteria = action(\"MOOSEND_ADD_SEGMENT_CRITERIA\", {\n slug: \"moosend-add-segment-criteria\",\n name: \"Add Segment Criteria\",\n description: \"Tool to add a new criterion (rule) to a segment. Use after obtaining the mailing list ID and segment ID to define filtering criteria.\",\n input: MoosendAddSegmentCriteriaInput,\n output: MoosendAddSegmentCriteriaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;CACjI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACvH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACxK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACzH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAChF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AACrG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,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,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/add-segment-criteria.d.ts
4
- declare const MoosendAddSegmentCriteriaInput: z.ZodTypeAny;
5
- declare const MoosendAddSegmentCriteriaOutput: z.ZodTypeAny;
6
- declare const moosendAddSegmentCriteria: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendAddSegmentCriteriaInput: z.ZodObject<{
5
+ field: z.ZodString;
6
+ value: z.ZodString;
7
+ format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
8
+ date_to: z.ZodOptional<z.ZodString>;
9
+ comparer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
10
+ date_from: z.ZodOptional<z.ZodString>;
11
+ segment_id: z.ZodString;
12
+ mailing_list_id: z.ZodString;
13
+ }, z.core.$strip>;
14
+ declare const MoosendAddSegmentCriteriaOutput: z.ZodObject<{
15
+ Code: z.ZodNullable<z.ZodNumber>;
16
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$loose>;
19
+ declare const moosendAddSegmentCriteria: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ field: string;
21
+ value: string;
22
+ segment_id: string;
23
+ mailing_list_id: string;
24
+ format?: string | undefined;
25
+ date_to?: string | undefined;
26
+ comparer?: string | undefined;
27
+ date_from?: string | undefined;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { moosendAddSegmentCriteria };
9
31
  //# sourceMappingURL=add-segment-criteria.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-segment-criteria.d.cts","names":[],"sources":["../../src/actions/add-segment-criteria.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UASmB;AAAA,cACrD,+BAAA,EAAiC,CAAA,CAAE,UAIa;AAAA,cAEhD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"add-segment-criteria.d.cts","names":[],"sources":["../../src/actions/add-segment-criteria.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAU9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/add-segment-criteria.d.ts
4
- declare const MoosendAddSegmentCriteriaInput: z.ZodTypeAny;
5
- declare const MoosendAddSegmentCriteriaOutput: z.ZodTypeAny;
6
- declare const moosendAddSegmentCriteria: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendAddSegmentCriteriaInput: z.ZodObject<{
5
+ field: z.ZodString;
6
+ value: z.ZodString;
7
+ format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
8
+ date_to: z.ZodOptional<z.ZodString>;
9
+ comparer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
10
+ date_from: z.ZodOptional<z.ZodString>;
11
+ segment_id: z.ZodString;
12
+ mailing_list_id: z.ZodString;
13
+ }, z.core.$strip>;
14
+ declare const MoosendAddSegmentCriteriaOutput: z.ZodObject<{
15
+ Code: z.ZodNullable<z.ZodNumber>;
16
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$loose>;
19
+ declare const moosendAddSegmentCriteria: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ field: string;
21
+ value: string;
22
+ segment_id: string;
23
+ mailing_list_id: string;
24
+ format?: string | undefined;
25
+ date_to?: string | undefined;
26
+ comparer?: string | undefined;
27
+ date_from?: string | undefined;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { moosendAddSegmentCriteria };
9
31
  //# sourceMappingURL=add-segment-criteria.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-segment-criteria.d.mts","names":[],"sources":["../../src/actions/add-segment-criteria.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UASmB;AAAA,cACrD,+BAAA,EAAiC,CAAA,CAAE,UAIa;AAAA,cAEhD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"add-segment-criteria.d.mts","names":[],"sources":["../../src/actions/add-segment-criteria.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAU9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
@@ -15,10 +15,10 @@ const moosendAddSegmentCriteria = action("MOOSEND_ADD_SEGMENT_CRITERIA", {
15
15
  mailing_list_id: z.string().describe("The ID of the mailing list the specified segment belongs to.")
16
16
  }).describe("Request schema for adding a criterion to a segment."),
17
17
  output: z.object({
18
- Code: z.number().int().describe("Response code; 0 indicates success."),
18
+ Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
19
19
  Error: z.string().describe("Error message; null if successful.").nullable().optional(),
20
20
  Context: z.string().describe("Contains the new criteria ID upon successful creation.").nullable().optional()
21
- }).describe("Response schema for AddSegmentCriteria action.")
21
+ }).passthrough().describe("Response schema for AddSegmentCriteria action.")
22
22
  });
23
23
  //#endregion
24
24
  export { moosendAddSegmentCriteria };
@@ -1 +1 @@
1
- {"version":3,"file":"add-segment-criteria.mjs","names":[],"sources":["../../src/actions/add-segment-criteria.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendAddSegmentCriteriaInput: z.ZodTypeAny = z.object({\n field: z.string().describe(\"The field of the criterion to filter the mailing list by (e.g., 'Email', 'Name', custom field name).\"),\n value: z.string().describe(\"A search term to filter the specified field by.\"),\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n date_to: z.string().describe(\"Provides an additional filter option to be combined with date-related fields.\").optional(),\n comparer: z.string().default(\"Is\").describe(\"An operator that defines the way to compare a criterion field with its value (e.g., 'Is', 'IsNot', 'Contains').\").optional(),\n date_from: z.string().describe(\"Provides an additional filter option to be combined with date-related fields.\").optional(),\n segment_id: z.string().describe(\"The ID of the segment to add the criterion to.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list the specified segment belongs to.\"),\n}).describe(\"Request schema for adding a criterion to a segment.\");\nexport const MoosendAddSegmentCriteriaOutput: 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(\"Contains the new criteria ID upon successful creation.\").nullable().optional(),\n}).describe(\"Response schema for AddSegmentCriteria action.\");\n\nexport const moosendAddSegmentCriteria = action(\"MOOSEND_ADD_SEGMENT_CRITERIA\", {\n slug: \"moosend-add-segment-criteria\",\n name: \"Add Segment Criteria\",\n description: \"Tool to add a new criterion (rule) to a segment. Use after obtaining the mailing list ID and segment ID to define filtering criteria.\",\n input: MoosendAddSegmentCriteriaInput,\n output: MoosendAddSegmentCriteriaOutput,\n});\n"],"mappings":";;AAoBA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB0D,EAAE,OAAO;EACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;EACjI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACvH,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;EACxK,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACzH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EAChF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACrG,CAAC,CAAC,CAAC,SAAS,qDAWH;CACP,QAX2D,EAAE,OAAO;EACpE,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,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"add-segment-criteria.mjs","names":[],"sources":["../../src/actions/add-segment-criteria.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendAddSegmentCriteriaInput = z.object({\n field: z.string().describe(\"The field of the criterion to filter the mailing list by (e.g., 'Email', 'Name', custom field name).\"),\n value: z.string().describe(\"A search term to filter the specified field by.\"),\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n date_to: z.string().describe(\"Provides an additional filter option to be combined with date-related fields.\").optional(),\n comparer: z.string().default(\"Is\").describe(\"An operator that defines the way to compare a criterion field with its value (e.g., 'Is', 'IsNot', 'Contains').\").optional(),\n date_from: z.string().describe(\"Provides an additional filter option to be combined with date-related fields.\").optional(),\n segment_id: z.string().describe(\"The ID of the segment to add the criterion to.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list the specified segment belongs to.\"),\n}).describe(\"Request schema for adding a criterion to a segment.\");\nexport const MoosendAddSegmentCriteriaOutput = 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(\"Contains the new criteria ID upon successful creation.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for AddSegmentCriteria action.\");\n\nexport const moosendAddSegmentCriteria = action(\"MOOSEND_ADD_SEGMENT_CRITERIA\", {\n slug: \"moosend-add-segment-criteria\",\n name: \"Add Segment Criteria\",\n description: \"Tool to add a new criterion (rule) to a segment. Use after obtaining the mailing list ID and segment ID to define filtering criteria.\",\n input: MoosendAddSegmentCriteriaInput,\n output: MoosendAddSegmentCriteriaOutput,\n});\n"],"mappings":";;AAoBA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB4C,EAAE,OAAO;EACrD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;EACjI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACvH,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;EACxK,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACzH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EAChF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACrG,CAAC,CAAC,CAAC,SAAS,qDAWH;CACP,QAX6C,EAAE,OAAO;EACtD,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,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
@@ -12,10 +12,10 @@ const MoosendAddSubscriberInput = zod.z.object({
12
12
  HasExternalDoubleOptIn: zod.z.boolean().describe("Flag indicating external double opt-in consent.").optional()
13
13
  }).describe("Request schema for adding or updating a subscriber in a mailing list.");
14
14
  const MoosendAddSubscriberOutput = zod.z.object({
15
- Code: zod.z.number().int().describe("Response code; 0 indicates success."),
15
+ Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
16
16
  Error: zod.z.string().describe("Error message; null if successful.").nullable().optional(),
17
17
  Context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Full subscriber context including ID, status, custom fields, and timestamps.").nullable().optional()
18
- }).describe("Response schema for AddSubscriber action.");
18
+ }).passthrough().describe("Response schema for AddSubscriber action.");
19
19
  const moosendAddSubscriber = require_action.action("MOOSEND_ADD_SUBSCRIBER", {
20
20
  slug: "moosend-add-subscriber",
21
21
  name: "Add or Update Subscriber",
@@ -1 +1 @@
1
- {"version":3,"file":"add-subscriber.cjs","names":["z","action"],"sources":["../../src/actions/add-subscriber.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendAddSubscriberInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"Display name of the subscriber.\").optional(),\n Tags: z.array(z.string()).describe(\"Tags to apply to the subscriber.\").optional(),\n Email: z.string().describe(\"Email address of the subscriber.\"),\n format: z.string().default(\"json\").describe(\"Response format.\").optional(),\n Preferences: z.array(z.string()).describe(\"Preference values for the subscriber.\").optional(),\n CustomFields: z.array(z.string()).describe(\"List of custom field values in 'FieldName=Value' format.\").optional(),\n mailingListID: z.string().describe(\"The unique identifier of the mailing list to add the subscriber to.\"),\n HasExternalDoubleOptIn: z.boolean().describe(\"Flag indicating external double opt-in consent.\").optional(),\n}).describe(\"Request schema for adding or updating a subscriber in a mailing list.\");\nexport const MoosendAddSubscriberOutput: 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.record(z.string(), z.unknown()).describe(\"Full subscriber context including ID, status, custom fields, and timestamps.\").nullable().optional(),\n}).describe(\"Response schema for AddSubscriber action.\");\n\nexport const moosendAddSubscriber = action(\"MOOSEND_ADD_SUBSCRIBER\", {\n slug: \"moosend-add-subscriber\",\n name: \"Add or Update Subscriber\",\n description: \"Tool to add or update a subscriber in a mailing list. Use after obtaining the mailing list ID to manage subscribers.\",\n input: MoosendAddSubscriberInput,\n output: MoosendAddSubscriberOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAChH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACxG,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1J,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":"add-subscriber.cjs","names":["z","action"],"sources":["../../src/actions/add-subscriber.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendAddSubscriberInput = z.object({\n Name: z.string().describe(\"Display name of the subscriber.\").optional(),\n Tags: z.array(z.string()).describe(\"Tags to apply to the subscriber.\").optional(),\n Email: z.string().describe(\"Email address of the subscriber.\"),\n format: z.string().default(\"json\").describe(\"Response format.\").optional(),\n Preferences: z.array(z.string()).describe(\"Preference values for the subscriber.\").optional(),\n CustomFields: z.array(z.string()).describe(\"List of custom field values in 'FieldName=Value' format.\").optional(),\n mailingListID: z.string().describe(\"The unique identifier of the mailing list to add the subscriber to.\"),\n HasExternalDoubleOptIn: z.boolean().describe(\"Flag indicating external double opt-in consent.\").optional(),\n}).describe(\"Request schema for adding or updating a subscriber in a mailing list.\");\nexport const MoosendAddSubscriberOutput = 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.record(z.string(), z.unknown()).describe(\"Full subscriber context including ID, status, custom fields, and timestamps.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for AddSubscriber action.\");\n\nexport const moosendAddSubscriber = action(\"MOOSEND_ADD_SUBSCRIBER\", {\n slug: \"moosend-add-subscriber\",\n name: \"Add or Update Subscriber\",\n description: \"Tool to add or update a subscriber in a mailing list. Use after obtaining the mailing list ID to manage subscribers.\",\n input: MoosendAddSubscriberInput,\n output: MoosendAddSubscriberOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAChH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACxG,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/add-subscriber.d.ts
4
- declare const MoosendAddSubscriberInput: z.ZodTypeAny;
5
- declare const MoosendAddSubscriberOutput: z.ZodTypeAny;
6
- declare const moosendAddSubscriber: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendAddSubscriberInput: z.ZodObject<{
5
+ Name: z.ZodOptional<z.ZodString>;
6
+ Tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
7
+ Email: z.ZodString;
8
+ format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
9
+ Preferences: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
+ CustomFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
+ mailingListID: z.ZodString;
12
+ HasExternalDoubleOptIn: z.ZodOptional<z.ZodBoolean>;
13
+ }, z.core.$strip>;
14
+ declare const MoosendAddSubscriberOutput: z.ZodObject<{
15
+ Code: z.ZodNullable<z.ZodNumber>;
16
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
18
+ }, z.core.$loose>;
19
+ declare const moosendAddSubscriber: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ Email: string;
21
+ mailingListID: string;
22
+ Name?: string | undefined;
23
+ Tags?: string[] | undefined;
24
+ format?: string | undefined;
25
+ Preferences?: string[] | undefined;
26
+ CustomFields?: string[] | undefined;
27
+ HasExternalDoubleOptIn?: boolean | undefined;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { moosendAddSubscriber };
9
31
  //# sourceMappingURL=add-subscriber.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-subscriber.d.cts","names":[],"sources":["../../src/actions/add-subscriber.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAS0C;AAAA,cACvE,0BAAA,EAA4B,CAAA,CAAE,UAIa;AAAA,cAE3C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"add-subscriber.d.cts","names":[],"sources":["../../src/actions/add-subscriber.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAUzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/add-subscriber.d.ts
4
- declare const MoosendAddSubscriberInput: z.ZodTypeAny;
5
- declare const MoosendAddSubscriberOutput: z.ZodTypeAny;
6
- declare const moosendAddSubscriber: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendAddSubscriberInput: z.ZodObject<{
5
+ Name: z.ZodOptional<z.ZodString>;
6
+ Tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
7
+ Email: z.ZodString;
8
+ format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
9
+ Preferences: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
+ CustomFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
+ mailingListID: z.ZodString;
12
+ HasExternalDoubleOptIn: z.ZodOptional<z.ZodBoolean>;
13
+ }, z.core.$strip>;
14
+ declare const MoosendAddSubscriberOutput: z.ZodObject<{
15
+ Code: z.ZodNullable<z.ZodNumber>;
16
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
18
+ }, z.core.$loose>;
19
+ declare const moosendAddSubscriber: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ Email: string;
21
+ mailingListID: string;
22
+ Name?: string | undefined;
23
+ Tags?: string[] | undefined;
24
+ format?: string | undefined;
25
+ Preferences?: string[] | undefined;
26
+ CustomFields?: string[] | undefined;
27
+ HasExternalDoubleOptIn?: boolean | undefined;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { moosendAddSubscriber };
9
31
  //# sourceMappingURL=add-subscriber.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-subscriber.d.mts","names":[],"sources":["../../src/actions/add-subscriber.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAS0C;AAAA,cACvE,0BAAA,EAA4B,CAAA,CAAE,UAIa;AAAA,cAE3C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"add-subscriber.d.mts","names":[],"sources":["../../src/actions/add-subscriber.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAUzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
@@ -15,10 +15,10 @@ const moosendAddSubscriber = action("MOOSEND_ADD_SUBSCRIBER", {
15
15
  HasExternalDoubleOptIn: z.boolean().describe("Flag indicating external double opt-in consent.").optional()
16
16
  }).describe("Request schema for adding or updating a subscriber in a mailing list."),
17
17
  output: z.object({
18
- Code: z.number().int().describe("Response code; 0 indicates success."),
18
+ Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
19
19
  Error: z.string().describe("Error message; null if successful.").nullable().optional(),
20
20
  Context: z.record(z.string(), z.unknown()).describe("Full subscriber context including ID, status, custom fields, and timestamps.").nullable().optional()
21
- }).describe("Response schema for AddSubscriber action.")
21
+ }).passthrough().describe("Response schema for AddSubscriber action.")
22
22
  });
23
23
  //#endregion
24
24
  export { moosendAddSubscriber };
@@ -1 +1 @@
1
- {"version":3,"file":"add-subscriber.mjs","names":[],"sources":["../../src/actions/add-subscriber.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendAddSubscriberInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"Display name of the subscriber.\").optional(),\n Tags: z.array(z.string()).describe(\"Tags to apply to the subscriber.\").optional(),\n Email: z.string().describe(\"Email address of the subscriber.\"),\n format: z.string().default(\"json\").describe(\"Response format.\").optional(),\n Preferences: z.array(z.string()).describe(\"Preference values for the subscriber.\").optional(),\n CustomFields: z.array(z.string()).describe(\"List of custom field values in 'FieldName=Value' format.\").optional(),\n mailingListID: z.string().describe(\"The unique identifier of the mailing list to add the subscriber to.\"),\n HasExternalDoubleOptIn: z.boolean().describe(\"Flag indicating external double opt-in consent.\").optional(),\n}).describe(\"Request schema for adding or updating a subscriber in a mailing list.\");\nexport const MoosendAddSubscriberOutput: 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.record(z.string(), z.unknown()).describe(\"Full subscriber context including ID, status, custom fields, and timestamps.\").nullable().optional(),\n}).describe(\"Response schema for AddSubscriber action.\");\n\nexport const moosendAddSubscriber = action(\"MOOSEND_ADD_SUBSCRIBER\", {\n slug: \"moosend-add-subscriber\",\n name: \"Add or Update Subscriber\",\n description: \"Tool to add or update a subscriber in a mailing list. Use after obtaining the mailing list ID to manage subscribers.\",\n input: MoosendAddSubscriberInput,\n output: MoosendAddSubscriberOutput,\n});\n"],"mappings":";;AAoBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACtE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACzE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC5F,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAChH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;EACxG,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,SAAS,uEAWH;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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"add-subscriber.mjs","names":[],"sources":["../../src/actions/add-subscriber.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendAddSubscriberInput = z.object({\n Name: z.string().describe(\"Display name of the subscriber.\").optional(),\n Tags: z.array(z.string()).describe(\"Tags to apply to the subscriber.\").optional(),\n Email: z.string().describe(\"Email address of the subscriber.\"),\n format: z.string().default(\"json\").describe(\"Response format.\").optional(),\n Preferences: z.array(z.string()).describe(\"Preference values for the subscriber.\").optional(),\n CustomFields: z.array(z.string()).describe(\"List of custom field values in 'FieldName=Value' format.\").optional(),\n mailingListID: z.string().describe(\"The unique identifier of the mailing list to add the subscriber to.\"),\n HasExternalDoubleOptIn: z.boolean().describe(\"Flag indicating external double opt-in consent.\").optional(),\n}).describe(\"Request schema for adding or updating a subscriber in a mailing list.\");\nexport const MoosendAddSubscriberOutput = 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.record(z.string(), z.unknown()).describe(\"Full subscriber context including ID, status, custom fields, and timestamps.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for AddSubscriber action.\");\n\nexport const moosendAddSubscriber = action(\"MOOSEND_ADD_SUBSCRIBER\", {\n slug: \"moosend-add-subscriber\",\n name: \"Add or Update Subscriber\",\n description: \"Tool to add or update a subscriber in a mailing list. Use after obtaining the mailing list ID to manage subscribers.\",\n input: MoosendAddSubscriberInput,\n output: MoosendAddSubscriberOutput,\n});\n"],"mappings":";;AAoBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACtE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACzE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC5F,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAChH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;EACxG,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,SAAS,uEAWH;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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
@@ -6,10 +6,10 @@ const MoosendCloneCampaignInput = zod.z.object({
6
6
  campaign_id: zod.z.string().describe("The unique identifier (UUID format) of the campaign to clone. The cloned campaign will be created as a new draft with the same content and settings as the original.")
7
7
  }).describe("Request schema for cloning an existing campaign.");
8
8
  const MoosendCloneCampaignOutput = zod.z.object({
9
- Code: zod.z.number().int().describe("API response code. 0 indicates successful cloning, any non-zero value indicates an error occurred."),
9
+ Code: zod.z.number().int().describe("API response code. 0 indicates successful cloning, any non-zero value indicates an error occurred.").nullable(),
10
10
  Error: zod.z.string().describe("Error message if the operation failed. Will be null when Code is 0 (success).").nullable().optional(),
11
11
  Context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional context data containing details about the newly cloned campaign, including its new campaign ID and configuration. Null when an error occurs.").nullable().optional()
12
- }).describe("Response schema for cloning an existing campaign.");
12
+ }).passthrough().describe("Response schema for cloning an existing campaign.");
13
13
  const moosendCloneCampaign = require_action.action("MOOSEND_CLONE_CAMPAIGN", {
14
14
  slug: "moosend-clone-campaign",
15
15
  name: "Clone Campaign",
@@ -1 +1 @@
1
- {"version":3,"file":"clone-campaign.cjs","names":["z","action"],"sources":["../../src/actions/clone-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCloneCampaignInput: 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 clone. The cloned campaign will be created as a new draft with the same content and settings as the original.\"),\n}).describe(\"Request schema for cloning an existing campaign.\");\nexport const MoosendCloneCampaignOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"API response code. 0 indicates successful cloning, any non-zero value indicates an error occurred.\"),\n Error: z.string().describe(\"Error message if the operation failed. Will be null when Code is 0 (success).\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Additional context data containing details about the newly cloned campaign, including its new campaign ID and configuration. Null when an error occurs.\").nullable().optional(),\n}).describe(\"Response schema for cloning an existing campaign.\");\n\nexport const moosendCloneCampaign = action(\"MOOSEND_CLONE_CAMPAIGN\", {\n slug: \"moosend-clone-campaign\",\n name: \"Clone Campaign\",\n description: \"Tool to clone an existing campaign, creating an exact copy with the same content and settings. Use when you want to reuse a campaign template or create variations of an existing campaign. The cloned campaign is created as a new draft that can be modified independently.\",\n input: MoosendCloneCampaignInput,\n output: MoosendCloneCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,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,sKAAsK;AACzM,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG;CACpI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrO,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"clone-campaign.cjs","names":["z","action"],"sources":["../../src/actions/clone-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCloneCampaignInput = 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 clone. The cloned campaign will be created as a new draft with the same content and settings as the original.\"),\n}).describe(\"Request schema for cloning an existing campaign.\");\nexport const MoosendCloneCampaignOutput = z.object({\n Code: z.number().int().describe(\"API response code. 0 indicates successful cloning, any non-zero value indicates an error occurred.\").nullable(),\n Error: z.string().describe(\"Error message if the operation failed. Will be null when Code is 0 (success).\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Additional context data containing details about the newly cloned campaign, including its new campaign ID and configuration. Null when an error occurs.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for cloning an existing campaign.\");\n\nexport const moosendCloneCampaign = action(\"MOOSEND_CLONE_CAMPAIGN\", {\n slug: \"moosend-clone-campaign\",\n name: \"Clone Campaign\",\n description: \"Tool to clone an existing campaign, creating an exact copy with the same content and settings. Use when you want to reuse a campaign template or create variations of an existing campaign. The cloned campaign is created as a new draft that can be modified independently.\",\n input: MoosendCloneCampaignInput,\n output: MoosendCloneCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,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,sKAAsK;AACzM,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC/I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,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/clone-campaign.d.ts
4
- declare const MoosendCloneCampaignInput: z.ZodTypeAny;
5
- declare const MoosendCloneCampaignOutput: z.ZodTypeAny;
6
- declare const moosendCloneCampaign: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendCloneCampaignInput: 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 MoosendCloneCampaignOutput: z.ZodObject<{
12
+ Code: z.ZodNullable<z.ZodNumber>;
13
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
+ }, z.core.$loose>;
16
+ declare const moosendCloneCampaign: 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 { moosendCloneCampaign };
9
22
  //# sourceMappingURL=clone-campaign.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"clone-campaign.d.cts","names":[],"sources":["../../src/actions/clone-campaign.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGqB;AAAA,cAClD,0BAAA,EAA4B,CAAA,CAAE,UAIqB;AAAA,cAEnD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"clone-campaign.d.cts","names":[],"sources":["../../src/actions/clone-campaign.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,22 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/clone-campaign.d.ts
4
- declare const MoosendCloneCampaignInput: z.ZodTypeAny;
5
- declare const MoosendCloneCampaignOutput: z.ZodTypeAny;
6
- declare const moosendCloneCampaign: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendCloneCampaignInput: 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 MoosendCloneCampaignOutput: z.ZodObject<{
12
+ Code: z.ZodNullable<z.ZodNumber>;
13
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
+ }, z.core.$loose>;
16
+ declare const moosendCloneCampaign: 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 { moosendCloneCampaign };
9
22
  //# sourceMappingURL=clone-campaign.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"clone-campaign.d.mts","names":[],"sources":["../../src/actions/clone-campaign.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGqB;AAAA,cAClD,0BAAA,EAA4B,CAAA,CAAE,UAIqB;AAAA,cAEnD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"clone-campaign.d.mts","names":[],"sources":["../../src/actions/clone-campaign.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
@@ -9,10 +9,10 @@ const moosendCloneCampaign = action("MOOSEND_CLONE_CAMPAIGN", {
9
9
  campaign_id: z.string().describe("The unique identifier (UUID format) of the campaign to clone. The cloned campaign will be created as a new draft with the same content and settings as the original.")
10
10
  }).describe("Request schema for cloning an existing campaign."),
11
11
  output: z.object({
12
- Code: z.number().int().describe("API response code. 0 indicates successful cloning, any non-zero value indicates an error occurred."),
12
+ Code: z.number().int().describe("API response code. 0 indicates successful cloning, any non-zero value indicates an error occurred.").nullable(),
13
13
  Error: z.string().describe("Error message if the operation failed. Will be null when Code is 0 (success).").nullable().optional(),
14
14
  Context: z.record(z.string(), z.unknown()).describe("Additional context data containing details about the newly cloned campaign, including its new campaign ID and configuration. Null when an error occurs.").nullable().optional()
15
- }).describe("Response schema for cloning an existing campaign.")
15
+ }).passthrough().describe("Response schema for cloning an existing campaign.")
16
16
  });
17
17
  //#endregion
18
18
  export { moosendCloneCampaign };
@@ -1 +1 @@
1
- {"version":3,"file":"clone-campaign.mjs","names":[],"sources":["../../src/actions/clone-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCloneCampaignInput: 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 clone. The cloned campaign will be created as a new draft with the same content and settings as the original.\"),\n}).describe(\"Request schema for cloning an existing campaign.\");\nexport const MoosendCloneCampaignOutput: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"API response code. 0 indicates successful cloning, any non-zero value indicates an error occurred.\"),\n Error: z.string().describe(\"Error message if the operation failed. Will be null when Code is 0 (success).\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Additional context data containing details about the newly cloned campaign, including its new campaign ID and configuration. Null when an error occurs.\").nullable().optional(),\n}).describe(\"Response schema for cloning an existing campaign.\");\n\nexport const moosendCloneCampaign = action(\"MOOSEND_CLONE_CAMPAIGN\", {\n slug: \"moosend-clone-campaign\",\n name: \"Clone Campaign\",\n description: \"Tool to clone an existing campaign, creating an exact copy with the same content and settings. Use when you want to reuse a campaign template or create variations of an existing campaign. The cloned campaign is created as a new draft that can be modified independently.\",\n input: MoosendCloneCampaignInput,\n output: MoosendCloneCampaignOutput,\n});\n"],"mappings":";;AAcA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdqD,EAAE,OAAO;EAC9D,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,sKAAsK;CACzM,CAAC,CAAC,CAAC,SAAS,kDAWH;CACP,QAXsD,EAAE,OAAO;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG;EACpI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrO,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"clone-campaign.mjs","names":[],"sources":["../../src/actions/clone-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCloneCampaignInput = 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 clone. The cloned campaign will be created as a new draft with the same content and settings as the original.\"),\n}).describe(\"Request schema for cloning an existing campaign.\");\nexport const MoosendCloneCampaignOutput = z.object({\n Code: z.number().int().describe(\"API response code. 0 indicates successful cloning, any non-zero value indicates an error occurred.\").nullable(),\n Error: z.string().describe(\"Error message if the operation failed. Will be null when Code is 0 (success).\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Additional context data containing details about the newly cloned campaign, including its new campaign ID and configuration. Null when an error occurs.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for cloning an existing campaign.\");\n\nexport const moosendCloneCampaign = action(\"MOOSEND_CLONE_CAMPAIGN\", {\n slug: \"moosend-clone-campaign\",\n name: \"Clone Campaign\",\n description: \"Tool to clone an existing campaign, creating an exact copy with the same content and settings. Use when you want to reuse a campaign template or create variations of an existing campaign. The cloned campaign is created as a new draft that can be modified independently.\",\n input: MoosendCloneCampaignInput,\n output: MoosendCloneCampaignOutput,\n});\n"],"mappings":";;AAcA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAduC,EAAE,OAAO;EAChD,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,sKAAsK;CACzM,CAAC,CAAC,CAAC,SAAS,kDAWH;CACP,QAXwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAC/I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
@@ -17,10 +17,10 @@ const MoosendCreateCustomFieldInput = zod.z.object({
17
17
  ]).default("Text").describe("The data type of the custom field.").optional()
18
18
  });
19
19
  const MoosendCreateCustomFieldOutput = zod.z.object({
20
- Code: zod.z.number().int().describe("Response code. 0 indicates success."),
20
+ Code: zod.z.number().int().describe("Response code. 0 indicates success.").nullable(),
21
21
  Error: zod.z.string().describe("Error message if the request fails. Null when successful.").nullable().optional(),
22
22
  Context: zod.z.string().describe("The ID of the custom field created.").nullable().optional()
23
- });
23
+ }).passthrough();
24
24
  const moosendCreateCustomField = require_action.action("MOOSEND_CREATE_CUSTOM_FIELD", {
25
25
  slug: "moosend-create-custom-field",
26
26
  name: "Create custom field",
@@ -1 +1 @@
1
- {"version":3,"file":"create-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateCustomFieldInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the custom field.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"The response format. Use 'json' for JSON responses and 'xml' for XML responses.\").optional(),\n options: z.string().describe(\"Comma-separated options for a SingleSelectDropdown field.\").optional(),\n is_hidden: z.boolean().default(false).describe(\"Whether the custom field is hidden from subscribers on the update profile page.\").optional(),\n is_required: z.boolean().default(false).describe(\"Whether the custom field is mandatory when adding a subscriber.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list where the custom field will be created.\"),\n custom_field_type: z.enum([\"Text\", \"Number\", \"DateTime\", \"SingleSelectDropdown\", \"CheckBox\"]).default(\"Text\").describe(\"The data type of the custom field.\").optional(),\n});\nexport const MoosendCreateCustomFieldOutput: 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 fails. Null when successful.\").nullable().optional(),\n Context: z.string().describe(\"The ID of the custom field created.\").nullable().optional(),\n});\n\nexport const moosendCreateCustomField = action(\"MOOSEND_CREATE_CUSTOM_FIELD\", {\n slug: \"moosend-create-custom-field\",\n name: \"Create custom field\",\n description: \"Tool to create a custom field in a mailing list. Use when you need to define a new custom field for subscriber data.\",\n input: MoosendCreateCustomFieldInput,\n output: MoosendCreateCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACrJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC3I,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC7H,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACzG,mBAAmBA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAU;EAAY;EAAwB;CAAU,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACxK,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,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC;AAED,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateCustomFieldInput = z.object({\n name: z.string().describe(\"The name of the custom field.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"The response format. Use 'json' for JSON responses and 'xml' for XML responses.\").optional(),\n options: z.string().describe(\"Comma-separated options for a SingleSelectDropdown field.\").optional(),\n is_hidden: z.boolean().default(false).describe(\"Whether the custom field is hidden from subscribers on the update profile page.\").optional(),\n is_required: z.boolean().default(false).describe(\"Whether the custom field is mandatory when adding a subscriber.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list where the custom field will be created.\"),\n custom_field_type: z.enum([\"Text\", \"Number\", \"DateTime\", \"SingleSelectDropdown\", \"CheckBox\"]).default(\"Text\").describe(\"The data type of the custom field.\").optional(),\n});\nexport const MoosendCreateCustomFieldOutput = z.object({\n Code: z.number().int().describe(\"Response code. 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if the request fails. Null when successful.\").nullable().optional(),\n Context: z.string().describe(\"The ID of the custom field created.\").nullable().optional(),\n}).passthrough();\n\nexport const moosendCreateCustomField = action(\"MOOSEND_CREATE_CUSTOM_FIELD\", {\n slug: \"moosend-create-custom-field\",\n name: \"Create custom field\",\n description: \"Tool to create a custom field in a mailing list. Use when you need to define a new custom field for subscriber data.\",\n input: MoosendCreateCustomFieldInput,\n output: MoosendCreateCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACrJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC3I,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC7H,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACzG,mBAAmBA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAU;EAAY;EAAwB;CAAU,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACxK,CAAC;AACD,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,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,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,38 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-custom-field.d.ts
4
- declare const MoosendCreateCustomFieldInput: z.ZodTypeAny;
5
- declare const MoosendCreateCustomFieldOutput: z.ZodTypeAny;
6
- declare const moosendCreateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendCreateCustomFieldInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
7
+ json: "json";
8
+ xml: "xml";
9
+ }>>>;
10
+ options: z.ZodOptional<z.ZodString>;
11
+ is_hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
12
+ is_required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
13
+ mailing_list_id: z.ZodString;
14
+ custom_field_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
15
+ Text: "Text";
16
+ Number: "Number";
17
+ DateTime: "DateTime";
18
+ SingleSelectDropdown: "SingleSelectDropdown";
19
+ CheckBox: "CheckBox";
20
+ }>>>;
21
+ }, z.core.$strip>;
22
+ declare const MoosendCreateCustomFieldOutput: z.ZodObject<{
23
+ Code: z.ZodNullable<z.ZodNumber>;
24
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$loose>;
27
+ declare const moosendCreateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ name: string;
29
+ mailing_list_id: string;
30
+ format?: "json" | "xml" | undefined;
31
+ options?: string | undefined;
32
+ is_hidden?: boolean | undefined;
33
+ is_required?: boolean | undefined;
34
+ custom_field_type?: "Text" | "Number" | "DateTime" | "SingleSelectDropdown" | "CheckBox" | undefined;
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { moosendCreateCustomField };
9
38
  //# sourceMappingURL=create-custom-field.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-custom-field.d.cts","names":[],"sources":["../../src/actions/create-custom-field.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAQ5C;AAAA,cACW,8BAAA,EAAgC,CAAA,CAAE,UAI7C;AAAA,cAEW,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-custom-field.d.cts","names":[],"sources":["../../src/actions/create-custom-field.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAS7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-custom-field.d.ts
4
- declare const MoosendCreateCustomFieldInput: z.ZodTypeAny;
5
- declare const MoosendCreateCustomFieldOutput: z.ZodTypeAny;
6
- declare const moosendCreateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendCreateCustomFieldInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
7
+ json: "json";
8
+ xml: "xml";
9
+ }>>>;
10
+ options: z.ZodOptional<z.ZodString>;
11
+ is_hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
12
+ is_required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
13
+ mailing_list_id: z.ZodString;
14
+ custom_field_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
15
+ Text: "Text";
16
+ Number: "Number";
17
+ DateTime: "DateTime";
18
+ SingleSelectDropdown: "SingleSelectDropdown";
19
+ CheckBox: "CheckBox";
20
+ }>>>;
21
+ }, z.core.$strip>;
22
+ declare const MoosendCreateCustomFieldOutput: z.ZodObject<{
23
+ Code: z.ZodNullable<z.ZodNumber>;
24
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$loose>;
27
+ declare const moosendCreateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ name: string;
29
+ mailing_list_id: string;
30
+ format?: "json" | "xml" | undefined;
31
+ options?: string | undefined;
32
+ is_hidden?: boolean | undefined;
33
+ is_required?: boolean | undefined;
34
+ custom_field_type?: "Text" | "Number" | "DateTime" | "SingleSelectDropdown" | "CheckBox" | undefined;
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { moosendCreateCustomField };
9
38
  //# sourceMappingURL=create-custom-field.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-custom-field.d.mts","names":[],"sources":["../../src/actions/create-custom-field.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAQ5C;AAAA,cACW,8BAAA,EAAgC,CAAA,CAAE,UAI7C;AAAA,cAEW,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-custom-field.d.mts","names":[],"sources":["../../src/actions/create-custom-field.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAS7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -20,10 +20,10 @@ const moosendCreateCustomField = action("MOOSEND_CREATE_CUSTOM_FIELD", {
20
20
  ]).default("Text").describe("The data type of the custom field.").optional()
21
21
  }),
22
22
  output: z.object({
23
- Code: z.number().int().describe("Response code. 0 indicates success."),
23
+ Code: z.number().int().describe("Response code. 0 indicates success.").nullable(),
24
24
  Error: z.string().describe("Error message if the request fails. Null when successful.").nullable().optional(),
25
25
  Context: z.string().describe("The ID of the custom field created.").nullable().optional()
26
- })
26
+ }).passthrough()
27
27
  });
28
28
  //#endregion
29
29
  export { moosendCreateCustomField };