@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,9 +1,17 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-campaign-details.d.ts
4
- declare const MoosendGetCampaignDetailsInput: z.ZodTypeAny;
5
- declare const MoosendGetCampaignDetailsOutput: z.ZodTypeAny;
6
- declare const moosendGetCampaignDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendGetCampaignDetailsInput: z.ZodObject<{
5
+ campaign_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const MoosendGetCampaignDetailsOutput: z.ZodObject<{
8
+ Code: z.ZodNullable<z.ZodNumber>;
9
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
11
+ }, z.core.$loose>;
12
+ declare const moosendGetCampaignDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ campaign_id: string;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
15
  //#endregion
8
16
  export { moosendGetCampaignDetails };
9
17
  //# sourceMappingURL=get-campaign-details.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-campaign-details.d.cts","names":[],"sources":["../../src/actions/get-campaign-details.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEe;AAAA,cACjD,+BAAA,EAAiC,CAAA,CAAE,UAIe;AAAA,cAElD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-campaign-details.d.cts","names":[],"sources":["../../src/actions/get-campaign-details.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
@@ -1,9 +1,17 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-campaign-details.d.ts
4
- declare const MoosendGetCampaignDetailsInput: z.ZodTypeAny;
5
- declare const MoosendGetCampaignDetailsOutput: z.ZodTypeAny;
6
- declare const moosendGetCampaignDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendGetCampaignDetailsInput: z.ZodObject<{
5
+ campaign_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const MoosendGetCampaignDetailsOutput: z.ZodObject<{
8
+ Code: z.ZodNullable<z.ZodNumber>;
9
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
11
+ }, z.core.$loose>;
12
+ declare const moosendGetCampaignDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ campaign_id: string;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
15
  //#endregion
8
16
  export { moosendGetCampaignDetails };
9
17
  //# sourceMappingURL=get-campaign-details.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-campaign-details.d.mts","names":[],"sources":["../../src/actions/get-campaign-details.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEe;AAAA,cACjD,+BAAA,EAAiC,CAAA,CAAE,UAIe;AAAA,cAElD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-campaign-details.d.mts","names":[],"sources":["../../src/actions/get-campaign-details.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
@@ -6,10 +6,10 @@ const moosendGetCampaignDetails = action("MOOSEND_GET_CAMPAIGN_DETAILS", {
6
6
  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.",
7
7
  input: z.object({ campaign_id: z.string().describe("The unique identifier of the campaign whose details are to be retrieved.") }).describe("Request schema for retrieving campaign details."),
8
8
  output: z.object({
9
- Code: z.number().int().describe("Response code from Moosend API. 0 indicates success, other values indicate errors."),
9
+ Code: z.number().int().describe("Response code from Moosend API. 0 indicates success, other values indicate errors.").nullable(),
10
10
  Error: z.string().describe("Error message if the request failed; null when successful.").nullable().optional(),
11
11
  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()
12
- }).describe("Response schema for retrieving campaign details.")
12
+ }).passthrough().describe("Response schema for retrieving campaign details.")
13
13
  });
14
14
  //#endregion
15
15
  export { moosendGetCampaignDetails };
@@ -1 +1 @@
1
- {"version":3,"file":"get-campaign-details.mjs","names":[],"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":";;AAaA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb0D,EAAE,OAAO,EACnE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,EAC7G,CAAC,CAAC,CAAC,SAAS,iDAWH;CACP,QAX2D,EAAE,OAAO;EACpE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF;EACpH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sMAAsM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClR,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-campaign-details.mjs","names":[],"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":";;AAaA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb4C,EAAE,OAAO,EACrD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,EAC7G,CAAC,CAAC,CAAC,SAAS,iDAWH;CACP,QAX6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC/H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sMAAsM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClR,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
@@ -3,10 +3,10 @@ let zod = require("zod");
3
3
  //#region src/actions/get-campaign-stats-by-location.ts
4
4
  const MoosendGetCampaignStatsByLocationInput = zod.z.object({ campaign_id: zod.z.string().describe("The unique identifier of the campaign to retrieve location statistics for.") }).describe("Request schema for retrieving campaign statistics by country.");
5
5
  const MoosendGetCampaignStatsByLocationOutput = 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 location statistics data containing detailed report of campaign opens (unique and total) by country. Null when an error occurs.").nullable().optional()
9
- }).describe("Response schema for retrieving campaign statistics by country.");
9
+ }).passthrough().describe("Response schema for retrieving campaign statistics by country.");
10
10
  const moosendGetCampaignStatsByLocation = require_action.action("MOOSEND_GET_CAMPAIGN_STATS_BY_LOCATION", {
11
11
  slug: "moosend-get-campaign-stats-by-location",
12
12
  name: "Get Campaign Stats by Location",
@@ -1 +1 @@
1
- {"version":3,"file":"get-campaign-stats-by-location.cjs","names":["z","action"],"sources":["../../src/actions/get-campaign-stats-by-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetCampaignStatsByLocationInput: z.ZodTypeAny = z.object({\n campaign_id: z.string().describe(\"The unique identifier of the campaign to retrieve location statistics for.\"),\n}).describe(\"Request schema for retrieving campaign statistics by country.\");\nexport const MoosendGetCampaignStatsByLocationOutput: 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 location statistics data containing detailed report of campaign opens (unique and total) by country. Null when an error occurs.\").nullable().optional(),\n}).describe(\"Response schema for retrieving campaign statistics by country.\");\n\nexport const moosendGetCampaignStatsByLocation = action(\"MOOSEND_GET_CAMPAIGN_STATS_BY_LOCATION\", {\n slug: \"moosend-get-campaign-stats-by-location\",\n name: \"Get Campaign Stats by Location\",\n description: \"Retrieves a detailed report of campaign opens (unique and total) by country. Use this when you need to analyze the geographic distribution of email campaign engagement.\",\n input: MoosendGetCampaignStatsByLocationInput,\n output: MoosendGetCampaignStatsByLocationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuDA,IAAAA,EAAE,OAAO,EAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,EAC/G,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,0CAAwDA,IAAAA,EAAE,OAAO;CAC5E,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,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtN,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAE5E,MAAa,oCAAoCC,eAAAA,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-campaign-stats-by-location.cjs","names":["z","action"],"sources":["../../src/actions/get-campaign-stats-by-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetCampaignStatsByLocationInput = z.object({\n campaign_id: z.string().describe(\"The unique identifier of the campaign to retrieve location statistics for.\"),\n}).describe(\"Request schema for retrieving campaign statistics by country.\");\nexport const MoosendGetCampaignStatsByLocationOutput = 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 location statistics data containing detailed report of campaign opens (unique and total) by country. Null when an error occurs.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving campaign statistics by country.\");\n\nexport const moosendGetCampaignStatsByLocation = action(\"MOOSEND_GET_CAMPAIGN_STATS_BY_LOCATION\", {\n slug: \"moosend-get-campaign-stats-by-location\",\n name: \"Get Campaign Stats by Location\",\n description: \"Retrieves a detailed report of campaign opens (unique and total) by country. Use this when you need to analyze the geographic distribution of email campaign engagement.\",\n input: MoosendGetCampaignStatsByLocationInput,\n output: MoosendGetCampaignStatsByLocationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,EAC/G,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,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,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAAgE;AAE1F,MAAa,oCAAoCC,eAAAA,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,17 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-campaign-stats-by-location.d.ts
4
- declare const MoosendGetCampaignStatsByLocationInput: z.ZodTypeAny;
5
- declare const MoosendGetCampaignStatsByLocationOutput: z.ZodTypeAny;
6
- declare const moosendGetCampaignStatsByLocation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendGetCampaignStatsByLocationInput: z.ZodObject<{
5
+ campaign_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const MoosendGetCampaignStatsByLocationOutput: z.ZodObject<{
8
+ Code: z.ZodNullable<z.ZodNumber>;
9
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
11
+ }, z.core.$loose>;
12
+ declare const moosendGetCampaignStatsByLocation: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ campaign_id: string;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
15
  //#endregion
8
16
  export { moosendGetCampaignStatsByLocation };
9
17
  //# sourceMappingURL=get-campaign-stats-by-location.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-campaign-stats-by-location.d.cts","names":[],"sources":["../../src/actions/get-campaign-stats-by-location.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAEqB;AAAA,cAC/D,uCAAA,EAAyC,CAAA,CAAE,UAIqB;AAAA,cAEhE,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-campaign-stats-by-location.d.cts","names":[],"sources":["../../src/actions/get-campaign-stats-by-location.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cAGtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;cAMvC,iCAAA,gCAAiC,wBAAA"}
@@ -1,9 +1,17 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-campaign-stats-by-location.d.ts
4
- declare const MoosendGetCampaignStatsByLocationInput: z.ZodTypeAny;
5
- declare const MoosendGetCampaignStatsByLocationOutput: z.ZodTypeAny;
6
- declare const moosendGetCampaignStatsByLocation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendGetCampaignStatsByLocationInput: z.ZodObject<{
5
+ campaign_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const MoosendGetCampaignStatsByLocationOutput: z.ZodObject<{
8
+ Code: z.ZodNullable<z.ZodNumber>;
9
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
11
+ }, z.core.$loose>;
12
+ declare const moosendGetCampaignStatsByLocation: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ campaign_id: string;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
15
  //#endregion
8
16
  export { moosendGetCampaignStatsByLocation };
9
17
  //# sourceMappingURL=get-campaign-stats-by-location.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-campaign-stats-by-location.d.mts","names":[],"sources":["../../src/actions/get-campaign-stats-by-location.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAEqB;AAAA,cAC/D,uCAAA,EAAyC,CAAA,CAAE,UAIqB;AAAA,cAEhE,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-campaign-stats-by-location.d.mts","names":[],"sources":["../../src/actions/get-campaign-stats-by-location.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cAGtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;cAMvC,iCAAA,gCAAiC,wBAAA"}
@@ -6,10 +6,10 @@ const moosendGetCampaignStatsByLocation = action("MOOSEND_GET_CAMPAIGN_STATS_BY_
6
6
  description: "Retrieves a detailed report of campaign opens (unique and total) by country. Use this when you need to analyze the geographic distribution of email campaign engagement.",
7
7
  input: z.object({ campaign_id: z.string().describe("The unique identifier of the campaign to retrieve location statistics for.") }).describe("Request schema for retrieving campaign statistics by country."),
8
8
  output: z.object({
9
- Code: z.number().int().describe("Response code from Moosend API. 0 indicates success, other values indicate errors."),
9
+ Code: z.number().int().describe("Response code from Moosend API. 0 indicates success, other values indicate errors.").nullable(),
10
10
  Error: z.string().describe("Error message if the request failed; null when successful.").nullable().optional(),
11
11
  Context: z.record(z.string(), z.unknown()).describe("Complete location statistics data containing detailed report of campaign opens (unique and total) by country. Null when an error occurs.").nullable().optional()
12
- }).describe("Response schema for retrieving campaign statistics by country.")
12
+ }).passthrough().describe("Response schema for retrieving campaign statistics by country.")
13
13
  });
14
14
  //#endregion
15
15
  export { moosendGetCampaignStatsByLocation };
@@ -1 +1 @@
1
- {"version":3,"file":"get-campaign-stats-by-location.mjs","names":[],"sources":["../../src/actions/get-campaign-stats-by-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetCampaignStatsByLocationInput: z.ZodTypeAny = z.object({\n campaign_id: z.string().describe(\"The unique identifier of the campaign to retrieve location statistics for.\"),\n}).describe(\"Request schema for retrieving campaign statistics by country.\");\nexport const MoosendGetCampaignStatsByLocationOutput: 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 location statistics data containing detailed report of campaign opens (unique and total) by country. Null when an error occurs.\").nullable().optional(),\n}).describe(\"Response schema for retrieving campaign statistics by country.\");\n\nexport const moosendGetCampaignStatsByLocation = action(\"MOOSEND_GET_CAMPAIGN_STATS_BY_LOCATION\", {\n slug: \"moosend-get-campaign-stats-by-location\",\n name: \"Get Campaign Stats by Location\",\n description: \"Retrieves a detailed report of campaign opens (unique and total) by country. Use this when you need to analyze the geographic distribution of email campaign engagement.\",\n input: MoosendGetCampaignStatsByLocationInput,\n output: MoosendGetCampaignStatsByLocationOutput,\n});\n"],"mappings":";;AAaA,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbkE,EAAE,OAAO,EAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,EAC/G,CAAC,CAAC,CAAC,SAAS,+DAWH;CACP,QAXmE,EAAE,OAAO;EAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF;EACpH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtN,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-campaign-stats-by-location.mjs","names":[],"sources":["../../src/actions/get-campaign-stats-by-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetCampaignStatsByLocationInput = z.object({\n campaign_id: z.string().describe(\"The unique identifier of the campaign to retrieve location statistics for.\"),\n}).describe(\"Request schema for retrieving campaign statistics by country.\");\nexport const MoosendGetCampaignStatsByLocationOutput = 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 location statistics data containing detailed report of campaign opens (unique and total) by country. Null when an error occurs.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving campaign statistics by country.\");\n\nexport const moosendGetCampaignStatsByLocation = action(\"MOOSEND_GET_CAMPAIGN_STATS_BY_LOCATION\", {\n slug: \"moosend-get-campaign-stats-by-location\",\n name: \"Get Campaign Stats by Location\",\n description: \"Retrieves a detailed report of campaign opens (unique and total) by country. Use this when you need to analyze the geographic distribution of email campaign engagement.\",\n input: MoosendGetCampaignStatsByLocationInput,\n output: MoosendGetCampaignStatsByLocationOutput,\n});\n"],"mappings":";;AAaA,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAboD,EAAE,OAAO,EAC7D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,EAC/G,CAAC,CAAC,CAAC,SAAS,+DAWH;CACP,QAXqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC/H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAOhB;AACV,CAAC"}
@@ -7,32 +7,32 @@ const MoosendGetMailingListDetailsInput = zod.z.object({
7
7
  with_statistics: zod.z.enum(["true", "false"]).describe("Whether to include statistics in the response.").optional()
8
8
  }).describe("Request schema for retrieving mailing list details.");
9
9
  const MoosendGetMailingListDetails_CustomFieldDefinitionSchema = zod.z.object({
10
- ID: zod.z.string().describe("Custom field identifier."),
11
- Name: zod.z.string().describe("Field name."),
12
- Type: zod.z.number().int().describe("Field type: 0=text, 1=number, 2=dateTime, 3=singleSelectDropdown, 5=checkbox."),
10
+ ID: zod.z.string().describe("Custom field identifier.").nullable(),
11
+ Name: zod.z.string().describe("Field name.").nullable(),
12
+ Type: zod.z.number().int().describe("Field type: 0=text, 1=number, 2=dateTime, 3=singleSelectDropdown, 5=checkbox.").nullable(),
13
13
  Context: zod.z.string().describe("Options for dropdown types; null otherwise.").nullable().optional(),
14
- IsRequired: zod.z.boolean().describe("Whether field is mandatory.")
15
- }).describe("Custom field definition model.");
14
+ IsRequired: zod.z.boolean().describe("Whether field is mandatory.").nullable()
15
+ }).passthrough().describe("Custom field definition model.");
16
16
  const MoosendGetMailingListDetails_MailingListContextSchema = zod.z.object({
17
- ID: zod.z.string().describe("The unique identifier for the mailing list."),
18
- Name: zod.z.string().describe("The mailing list name."),
19
- Status: zod.z.number().int().describe("List status: 0=created, 1=imported, 2=importing, 3=deleted."),
17
+ ID: zod.z.string().describe("The unique identifier for the mailing list.").nullable(),
18
+ Name: zod.z.string().describe("The mailing list name.").nullable(),
19
+ Status: zod.z.number().int().describe("List status: 0=created, 1=imported, 2=importing, 3=deleted.").nullable(),
20
20
  CreatedBy: zod.z.string().describe("IP address where list was created.").nullable().optional(),
21
- CreatedOn: zod.z.string().describe("Timestamp of creation."),
21
+ CreatedOn: zod.z.string().describe("Timestamp of creation.").nullable(),
22
22
  UpdatedBy: zod.z.string().describe("IP address of last update.").nullable().optional(),
23
23
  UpdatedOn: zod.z.string().describe("Timestamp of last update.").nullable().optional(),
24
24
  ImportOperation: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Latest import operation details.").nullable().optional(),
25
- ActiveMemberCount: zod.z.number().int().describe("Number of active members."),
26
- BouncedMemberCount: zod.z.number().int().describe("Count of bounced email addresses."),
27
- RemovedMemberCount: zod.z.number().int().describe("Count of removed addresses."),
25
+ ActiveMemberCount: zod.z.number().int().describe("Number of active members.").nullable(),
26
+ BouncedMemberCount: zod.z.number().int().describe("Count of bounced email addresses.").nullable(),
27
+ RemovedMemberCount: zod.z.number().int().describe("Count of removed addresses.").nullable(),
28
28
  CustomFieldsDefinition: zod.z.array(MoosendGetMailingListDetails_CustomFieldDefinitionSchema).describe("Custom field definitions for the list."),
29
- UnsubscribedMemberCount: zod.z.number().int().describe("Number of unsubscribed emails.")
30
- }).describe("Mailing list context containing all details.");
29
+ UnsubscribedMemberCount: zod.z.number().int().describe("Number of unsubscribed emails.").nullable()
30
+ }).passthrough().describe("Mailing list context containing all details.");
31
31
  const MoosendGetMailingListDetailsOutput = zod.z.object({
32
- Code: zod.z.number().int().describe("Response code from Moosend API. 0 indicates success, other values indicate errors."),
32
+ Code: zod.z.number().int().describe("Response code from Moosend API. 0 indicates success, other values indicate errors.").nullable(),
33
33
  Error: zod.z.string().describe("Error message if the request failed; null when successful.").nullable().optional(),
34
34
  Context: MoosendGetMailingListDetails_MailingListContextSchema.nullable().optional()
35
- }).describe("Response schema for retrieving mailing list details.");
35
+ }).passthrough().describe("Response schema for retrieving mailing list details.");
36
36
  const moosendGetMailingListDetails = require_action.action("MOOSEND_GET_MAILING_LIST_DETAILS", {
37
37
  slug: "moosend-get-mailing-list-details",
38
38
  name: "Get Mailing List Details",
@@ -1 +1 @@
1
- {"version":3,"file":"get-mailing-list-details.cjs","names":["z","action"],"sources":["../../src/actions/get-mailing-list-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetMailingListDetailsInput: z.ZodTypeAny = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format: 'json' or 'xml'.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list to be returned.\"),\n with_statistics: z.enum([\"true\", \"false\"]).describe(\"Whether to include statistics in the response.\").optional(),\n}).describe(\"Request schema for retrieving mailing list details.\");\nconst MoosendGetMailingListDetails_CustomFieldDefinitionSchema: z.ZodTypeAny = z.object({\n ID: z.string().describe(\"Custom field identifier.\"),\n Name: z.string().describe(\"Field name.\"),\n Type: z.number().int().describe(\"Field type: 0=text, 1=number, 2=dateTime, 3=singleSelectDropdown, 5=checkbox.\"),\n Context: z.string().describe(\"Options for dropdown types; null otherwise.\").nullable().optional(),\n IsRequired: z.boolean().describe(\"Whether field is mandatory.\"),\n}).describe(\"Custom field definition model.\");\nconst MoosendGetMailingListDetails_MailingListContextSchema: z.ZodTypeAny = z.object({\n ID: z.string().describe(\"The unique identifier for the mailing list.\"),\n Name: z.string().describe(\"The mailing list name.\"),\n Status: z.number().int().describe(\"List status: 0=created, 1=imported, 2=importing, 3=deleted.\"),\n CreatedBy: z.string().describe(\"IP address where list was created.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Timestamp of creation.\"),\n UpdatedBy: z.string().describe(\"IP address of last update.\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Timestamp of last update.\").nullable().optional(),\n ImportOperation: z.record(z.string(), z.unknown()).describe(\"Latest import operation details.\").nullable().optional(),\n ActiveMemberCount: z.number().int().describe(\"Number of active members.\"),\n BouncedMemberCount: z.number().int().describe(\"Count of bounced email addresses.\"),\n RemovedMemberCount: z.number().int().describe(\"Count of removed addresses.\"),\n CustomFieldsDefinition: z.array(MoosendGetMailingListDetails_CustomFieldDefinitionSchema).describe(\"Custom field definitions for the list.\"),\n UnsubscribedMemberCount: z.number().int().describe(\"Number of unsubscribed emails.\"),\n}).describe(\"Mailing list context containing all details.\");\nexport const MoosendGetMailingListDetailsOutput: 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: MoosendGetMailingListDetails_MailingListContextSchema.nullable().optional(),\n}).describe(\"Response schema for retrieving mailing list details.\");\n\nexport const moosendGetMailingListDetails = action(\"MOOSEND_GET_MAILING_LIST_DETAILS\", {\n slug: \"moosend-get-mailing-list-details\",\n name: \"Get Mailing List Details\",\n description: \"Gets details for a given mailing list including name, member counts, status, and custom field definitions. Optionally include subscriber statistics. Use this when you need to inspect mailing list properties or verify list configuration.\",\n input: MoosendGetMailingListDetailsInput,\n output: MoosendGetMailingListDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACjF,iBAAiBA,IAAAA,EAAE,KAAK,CAAC,QAAQ,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,2DAAyEA,IAAAA,EAAE,OAAO;CACtF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACvC,MAAMA,IAAAA,EA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wBA,IAAAA,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,wCAAwC;CAC3I,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;AACrF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,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,SAAS,sDAAsD,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-mailing-list-details.cjs","names":["z","action"],"sources":["../../src/actions/get-mailing-list-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetMailingListDetailsInput = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format: 'json' or 'xml'.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list to be returned.\"),\n with_statistics: z.enum([\"true\", \"false\"]).describe(\"Whether to include statistics in the response.\").optional(),\n}).describe(\"Request schema for retrieving mailing list details.\");\nconst MoosendGetMailingListDetails_CustomFieldDefinitionSchema = z.object({\n ID: z.string().describe(\"Custom field identifier.\").nullable(),\n Name: z.string().describe(\"Field name.\").nullable(),\n Type: z.number().int().describe(\"Field type: 0=text, 1=number, 2=dateTime, 3=singleSelectDropdown, 5=checkbox.\").nullable(),\n Context: z.string().describe(\"Options for dropdown types; null otherwise.\").nullable().optional(),\n IsRequired: z.boolean().describe(\"Whether field is mandatory.\").nullable(),\n}).passthrough().describe(\"Custom field definition model.\");\nconst MoosendGetMailingListDetails_MailingListContextSchema = z.object({\n ID: z.string().describe(\"The unique identifier for the mailing list.\").nullable(),\n Name: z.string().describe(\"The mailing list name.\").nullable(),\n Status: z.number().int().describe(\"List status: 0=created, 1=imported, 2=importing, 3=deleted.\").nullable(),\n CreatedBy: z.string().describe(\"IP address where list was created.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Timestamp of creation.\").nullable(),\n UpdatedBy: z.string().describe(\"IP address of last update.\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Timestamp of last update.\").nullable().optional(),\n ImportOperation: z.record(z.string(), z.unknown()).describe(\"Latest import operation details.\").nullable().optional(),\n ActiveMemberCount: z.number().int().describe(\"Number of active members.\").nullable(),\n BouncedMemberCount: z.number().int().describe(\"Count of bounced email addresses.\").nullable(),\n RemovedMemberCount: z.number().int().describe(\"Count of removed addresses.\").nullable(),\n CustomFieldsDefinition: z.array(MoosendGetMailingListDetails_CustomFieldDefinitionSchema).describe(\"Custom field definitions for the list.\"),\n UnsubscribedMemberCount: z.number().int().describe(\"Number of unsubscribed emails.\").nullable(),\n}).passthrough().describe(\"Mailing list context containing all details.\");\nexport const MoosendGetMailingListDetailsOutput = 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: MoosendGetMailingListDetails_MailingListContextSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving mailing list details.\");\n\nexport const moosendGetMailingListDetails = action(\"MOOSEND_GET_MAILING_LIST_DETAILS\", {\n slug: \"moosend-get-mailing-list-details\",\n name: \"Get Mailing List Details\",\n description: \"Gets details for a given mailing list including name, member counts, status, and custom field definitions. Optionally include subscriber statistics. Use this when you need to inspect mailing list properties or verify list configuration.\",\n input: MoosendGetMailingListDetailsInput,\n output: MoosendGetMailingListDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,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AAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,47 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-mailing-list-details.d.ts
4
- declare const MoosendGetMailingListDetailsInput: z.ZodTypeAny;
5
- declare const MoosendGetMailingListDetailsOutput: z.ZodTypeAny;
6
- declare const moosendGetMailingListDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendGetMailingListDetailsInput: z.ZodObject<{
5
+ format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
6
+ json: "json";
7
+ xml: "xml";
8
+ }>>>;
9
+ mailing_list_id: z.ZodString;
10
+ with_statistics: z.ZodOptional<z.ZodEnum<{
11
+ true: "true";
12
+ false: "false";
13
+ }>>;
14
+ }, z.core.$strip>;
15
+ declare const MoosendGetMailingListDetailsOutput: z.ZodObject<{
16
+ Code: z.ZodNullable<z.ZodNumber>;
17
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ Context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
19
+ ID: z.ZodNullable<z.ZodString>;
20
+ Name: z.ZodNullable<z.ZodString>;
21
+ Status: z.ZodNullable<z.ZodNumber>;
22
+ CreatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ CreatedOn: z.ZodNullable<z.ZodString>;
24
+ UpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ UpdatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ ImportOperation: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
27
+ ActiveMemberCount: z.ZodNullable<z.ZodNumber>;
28
+ BouncedMemberCount: z.ZodNullable<z.ZodNumber>;
29
+ RemovedMemberCount: z.ZodNullable<z.ZodNumber>;
30
+ CustomFieldsDefinition: z.ZodArray<z.ZodObject<{
31
+ ID: z.ZodNullable<z.ZodString>;
32
+ Name: z.ZodNullable<z.ZodString>;
33
+ Type: z.ZodNullable<z.ZodNumber>;
34
+ Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ IsRequired: z.ZodNullable<z.ZodBoolean>;
36
+ }, z.core.$loose>>;
37
+ UnsubscribedMemberCount: z.ZodNullable<z.ZodNumber>;
38
+ }, z.core.$loose>>>;
39
+ }, z.core.$loose>;
40
+ declare const moosendGetMailingListDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
41
+ mailing_list_id: string;
42
+ format?: "json" | "xml" | undefined;
43
+ with_statistics?: "true" | "false" | undefined;
44
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
45
  //#endregion
8
46
  export { moosendGetMailingListDetails };
9
47
  //# sourceMappingURL=get-mailing-list-details.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-mailing-list-details.d.cts","names":[],"sources":["../../src/actions/get-mailing-list-details.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAIgB;AAAA,cAuBrD,kCAAA,EAAoC,CAAA,CAAE,UAIgB;AAAA,cAEtD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-mailing-list-details.d.cts","names":[],"sources":["../../src/actions/get-mailing-list-details.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;cA2BjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
@@ -1,9 +1,47 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-mailing-list-details.d.ts
4
- declare const MoosendGetMailingListDetailsInput: z.ZodTypeAny;
5
- declare const MoosendGetMailingListDetailsOutput: z.ZodTypeAny;
6
- declare const moosendGetMailingListDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MoosendGetMailingListDetailsInput: z.ZodObject<{
5
+ format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
6
+ json: "json";
7
+ xml: "xml";
8
+ }>>>;
9
+ mailing_list_id: z.ZodString;
10
+ with_statistics: z.ZodOptional<z.ZodEnum<{
11
+ true: "true";
12
+ false: "false";
13
+ }>>;
14
+ }, z.core.$strip>;
15
+ declare const MoosendGetMailingListDetailsOutput: z.ZodObject<{
16
+ Code: z.ZodNullable<z.ZodNumber>;
17
+ Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ Context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
19
+ ID: z.ZodNullable<z.ZodString>;
20
+ Name: z.ZodNullable<z.ZodString>;
21
+ Status: z.ZodNullable<z.ZodNumber>;
22
+ CreatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ CreatedOn: z.ZodNullable<z.ZodString>;
24
+ UpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ UpdatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ ImportOperation: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
27
+ ActiveMemberCount: z.ZodNullable<z.ZodNumber>;
28
+ BouncedMemberCount: z.ZodNullable<z.ZodNumber>;
29
+ RemovedMemberCount: z.ZodNullable<z.ZodNumber>;
30
+ CustomFieldsDefinition: z.ZodArray<z.ZodObject<{
31
+ ID: z.ZodNullable<z.ZodString>;
32
+ Name: z.ZodNullable<z.ZodString>;
33
+ Type: z.ZodNullable<z.ZodNumber>;
34
+ Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ IsRequired: z.ZodNullable<z.ZodBoolean>;
36
+ }, z.core.$loose>>;
37
+ UnsubscribedMemberCount: z.ZodNullable<z.ZodNumber>;
38
+ }, z.core.$loose>>>;
39
+ }, z.core.$loose>;
40
+ declare const moosendGetMailingListDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
41
+ mailing_list_id: string;
42
+ format?: "json" | "xml" | undefined;
43
+ with_statistics?: "true" | "false" | undefined;
44
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
45
  //#endregion
8
46
  export { moosendGetMailingListDetails };
9
47
  //# sourceMappingURL=get-mailing-list-details.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-mailing-list-details.d.mts","names":[],"sources":["../../src/actions/get-mailing-list-details.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAIgB;AAAA,cAuBrD,kCAAA,EAAoC,CAAA,CAAE,UAIgB;AAAA,cAEtD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-mailing-list-details.d.mts","names":[],"sources":["../../src/actions/get-mailing-list-details.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;cA2BjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
@@ -7,37 +7,37 @@ const MoosendGetMailingListDetailsInput = z.object({
7
7
  with_statistics: z.enum(["true", "false"]).describe("Whether to include statistics in the response.").optional()
8
8
  }).describe("Request schema for retrieving mailing list details.");
9
9
  const MoosendGetMailingListDetails_CustomFieldDefinitionSchema = z.object({
10
- ID: z.string().describe("Custom field identifier."),
11
- Name: z.string().describe("Field name."),
12
- Type: z.number().int().describe("Field type: 0=text, 1=number, 2=dateTime, 3=singleSelectDropdown, 5=checkbox."),
10
+ ID: z.string().describe("Custom field identifier.").nullable(),
11
+ Name: z.string().describe("Field name.").nullable(),
12
+ Type: z.number().int().describe("Field type: 0=text, 1=number, 2=dateTime, 3=singleSelectDropdown, 5=checkbox.").nullable(),
13
13
  Context: z.string().describe("Options for dropdown types; null otherwise.").nullable().optional(),
14
- IsRequired: z.boolean().describe("Whether field is mandatory.")
15
- }).describe("Custom field definition model.");
14
+ IsRequired: z.boolean().describe("Whether field is mandatory.").nullable()
15
+ }).passthrough().describe("Custom field definition model.");
16
16
  const MoosendGetMailingListDetails_MailingListContextSchema = z.object({
17
- ID: z.string().describe("The unique identifier for the mailing list."),
18
- Name: z.string().describe("The mailing list name."),
19
- Status: z.number().int().describe("List status: 0=created, 1=imported, 2=importing, 3=deleted."),
17
+ ID: z.string().describe("The unique identifier for the mailing list.").nullable(),
18
+ Name: z.string().describe("The mailing list name.").nullable(),
19
+ Status: z.number().int().describe("List status: 0=created, 1=imported, 2=importing, 3=deleted.").nullable(),
20
20
  CreatedBy: z.string().describe("IP address where list was created.").nullable().optional(),
21
- CreatedOn: z.string().describe("Timestamp of creation."),
21
+ CreatedOn: z.string().describe("Timestamp of creation.").nullable(),
22
22
  UpdatedBy: z.string().describe("IP address of last update.").nullable().optional(),
23
23
  UpdatedOn: z.string().describe("Timestamp of last update.").nullable().optional(),
24
24
  ImportOperation: z.record(z.string(), z.unknown()).describe("Latest import operation details.").nullable().optional(),
25
- ActiveMemberCount: z.number().int().describe("Number of active members."),
26
- BouncedMemberCount: z.number().int().describe("Count of bounced email addresses."),
27
- RemovedMemberCount: z.number().int().describe("Count of removed addresses."),
25
+ ActiveMemberCount: z.number().int().describe("Number of active members.").nullable(),
26
+ BouncedMemberCount: z.number().int().describe("Count of bounced email addresses.").nullable(),
27
+ RemovedMemberCount: z.number().int().describe("Count of removed addresses.").nullable(),
28
28
  CustomFieldsDefinition: z.array(MoosendGetMailingListDetails_CustomFieldDefinitionSchema).describe("Custom field definitions for the list."),
29
- UnsubscribedMemberCount: z.number().int().describe("Number of unsubscribed emails.")
30
- }).describe("Mailing list context containing all details.");
29
+ UnsubscribedMemberCount: z.number().int().describe("Number of unsubscribed emails.").nullable()
30
+ }).passthrough().describe("Mailing list context containing all details.");
31
31
  const moosendGetMailingListDetails = action("MOOSEND_GET_MAILING_LIST_DETAILS", {
32
32
  slug: "moosend-get-mailing-list-details",
33
33
  name: "Get Mailing List Details",
34
34
  description: "Gets details for a given mailing list including name, member counts, status, and custom field definitions. Optionally include subscriber statistics. Use this when you need to inspect mailing list properties or verify list configuration.",
35
35
  input: MoosendGetMailingListDetailsInput,
36
36
  output: z.object({
37
- Code: z.number().int().describe("Response code from Moosend API. 0 indicates success, other values indicate errors."),
37
+ Code: z.number().int().describe("Response code from Moosend API. 0 indicates success, other values indicate errors.").nullable(),
38
38
  Error: z.string().describe("Error message if the request failed; null when successful.").nullable().optional(),
39
39
  Context: MoosendGetMailingListDetails_MailingListContextSchema.nullable().optional()
40
- }).describe("Response schema for retrieving mailing list details.")
40
+ }).passthrough().describe("Response schema for retrieving mailing list details.")
41
41
  });
42
42
  //#endregion
43
43
  export { moosendGetMailingListDetails };
@@ -1 +1 @@
1
- {"version":3,"file":"get-mailing-list-details.mjs","names":[],"sources":["../../src/actions/get-mailing-list-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetMailingListDetailsInput: z.ZodTypeAny = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format: 'json' or 'xml'.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list to be returned.\"),\n with_statistics: z.enum([\"true\", \"false\"]).describe(\"Whether to include statistics in the response.\").optional(),\n}).describe(\"Request schema for retrieving mailing list details.\");\nconst MoosendGetMailingListDetails_CustomFieldDefinitionSchema: z.ZodTypeAny = z.object({\n ID: z.string().describe(\"Custom field identifier.\"),\n Name: z.string().describe(\"Field name.\"),\n Type: z.number().int().describe(\"Field type: 0=text, 1=number, 2=dateTime, 3=singleSelectDropdown, 5=checkbox.\"),\n Context: z.string().describe(\"Options for dropdown types; null otherwise.\").nullable().optional(),\n IsRequired: z.boolean().describe(\"Whether field is mandatory.\"),\n}).describe(\"Custom field definition model.\");\nconst MoosendGetMailingListDetails_MailingListContextSchema: z.ZodTypeAny = z.object({\n ID: z.string().describe(\"The unique identifier for the mailing list.\"),\n Name: z.string().describe(\"The mailing list name.\"),\n Status: z.number().int().describe(\"List status: 0=created, 1=imported, 2=importing, 3=deleted.\"),\n CreatedBy: z.string().describe(\"IP address where list was created.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Timestamp of creation.\"),\n UpdatedBy: z.string().describe(\"IP address of last update.\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Timestamp of last update.\").nullable().optional(),\n ImportOperation: z.record(z.string(), z.unknown()).describe(\"Latest import operation details.\").nullable().optional(),\n ActiveMemberCount: z.number().int().describe(\"Number of active members.\"),\n BouncedMemberCount: z.number().int().describe(\"Count of bounced email addresses.\"),\n RemovedMemberCount: z.number().int().describe(\"Count of removed addresses.\"),\n CustomFieldsDefinition: z.array(MoosendGetMailingListDetails_CustomFieldDefinitionSchema).describe(\"Custom field definitions for the list.\"),\n UnsubscribedMemberCount: z.number().int().describe(\"Number of unsubscribed emails.\"),\n}).describe(\"Mailing list context containing all details.\");\nexport const MoosendGetMailingListDetailsOutput: 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: MoosendGetMailingListDetails_MailingListContextSchema.nullable().optional(),\n}).describe(\"Response schema for retrieving mailing list details.\");\n\nexport const moosendGetMailingListDetails = action(\"MOOSEND_GET_MAILING_LIST_DETAILS\", {\n slug: \"moosend-get-mailing-list-details\",\n name: \"Get Mailing List Details\",\n description: \"Gets details for a given mailing list including name, member counts, status, and custom field definitions. Optionally include subscriber statistics. Use this when you need to inspect mailing list properties or verify list configuration.\",\n input: MoosendGetMailingListDetailsInput,\n output: MoosendGetMailingListDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO;CACtE,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACjF,iBAAiB,EAAE,KAAK,CAAC,QAAQ,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,2DAAyE,EAAE,OAAO;CACtF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACvC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E;CAC/G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B;AAChE,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAC5C,MAAM,wDAAsE,EAAE,OAAO;CACnF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D;CAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACvD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CACxE,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;CACjF,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CAC3E,wBAAwB,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,wCAAwC;CAC3I,yBAAyB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;AACrF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAO1D,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX8D,EAAE,OAAO;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF;EACpH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,SAAS,sDAAsD,SAAS,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-mailing-list-details.mjs","names":[],"sources":["../../src/actions/get-mailing-list-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetMailingListDetailsInput = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format: 'json' or 'xml'.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list to be returned.\"),\n with_statistics: z.enum([\"true\", \"false\"]).describe(\"Whether to include statistics in the response.\").optional(),\n}).describe(\"Request schema for retrieving mailing list details.\");\nconst MoosendGetMailingListDetails_CustomFieldDefinitionSchema = z.object({\n ID: z.string().describe(\"Custom field identifier.\").nullable(),\n Name: z.string().describe(\"Field name.\").nullable(),\n Type: z.number().int().describe(\"Field type: 0=text, 1=number, 2=dateTime, 3=singleSelectDropdown, 5=checkbox.\").nullable(),\n Context: z.string().describe(\"Options for dropdown types; null otherwise.\").nullable().optional(),\n IsRequired: z.boolean().describe(\"Whether field is mandatory.\").nullable(),\n}).passthrough().describe(\"Custom field definition model.\");\nconst MoosendGetMailingListDetails_MailingListContextSchema = z.object({\n ID: z.string().describe(\"The unique identifier for the mailing list.\").nullable(),\n Name: z.string().describe(\"The mailing list name.\").nullable(),\n Status: z.number().int().describe(\"List status: 0=created, 1=imported, 2=importing, 3=deleted.\").nullable(),\n CreatedBy: z.string().describe(\"IP address where list was created.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Timestamp of creation.\").nullable(),\n UpdatedBy: z.string().describe(\"IP address of last update.\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Timestamp of last update.\").nullable().optional(),\n ImportOperation: z.record(z.string(), z.unknown()).describe(\"Latest import operation details.\").nullable().optional(),\n ActiveMemberCount: z.number().int().describe(\"Number of active members.\").nullable(),\n BouncedMemberCount: z.number().int().describe(\"Count of bounced email addresses.\").nullable(),\n RemovedMemberCount: z.number().int().describe(\"Count of removed addresses.\").nullable(),\n CustomFieldsDefinition: z.array(MoosendGetMailingListDetails_CustomFieldDefinitionSchema).describe(\"Custom field definitions for the list.\"),\n UnsubscribedMemberCount: z.number().int().describe(\"Number of unsubscribed emails.\").nullable(),\n}).passthrough().describe(\"Mailing list context containing all details.\");\nexport const MoosendGetMailingListDetailsOutput = 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: MoosendGetMailingListDetails_MailingListContextSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving mailing list details.\");\n\nexport const moosendGetMailingListDetails = action(\"MOOSEND_GET_MAILING_LIST_DETAILS\", {\n slug: \"moosend-get-mailing-list-details\",\n name: \"Get Mailing List Details\",\n description: \"Gets details for a given mailing list including name, member counts, status, and custom field definitions. Optionally include subscriber statistics. Use this when you need to inspect mailing list properties or verify list configuration.\",\n input: MoosendGetMailingListDetailsInput,\n output: MoosendGetMailingListDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACjF,iBAAiB,EAAE,KAAK,CAAC,QAAQ,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,2DAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC1H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAA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E,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXgD,EAAE,OAAO;EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC/H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,SAAS,sDAAsD,SAAS,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
@@ -7,35 +7,35 @@ const MoosendGetSubscriberByEmailInput = zod.z.object({
7
7
  mailingListID: zod.z.string().describe("The ID of the mailing list to search in.")
8
8
  }).describe("Request schema for `GetSubscriberByEmail`");
9
9
  const MoosendGetSubscriberByEmail_CustomFieldSchema = zod.z.object({
10
- Name: zod.z.string().describe("Custom field name"),
10
+ Name: zod.z.string().describe("Custom field name").nullable(),
11
11
  Value: zod.z.union([
12
12
  zod.z.string(),
13
13
  zod.z.number().int(),
14
14
  zod.z.number(),
15
15
  zod.z.boolean()
16
16
  ]),
17
- CustomFieldID: zod.z.string().describe("Custom field unique identifier")
18
- }).describe("Custom field value in subscriber record");
17
+ CustomFieldID: zod.z.string().describe("Custom field unique identifier").nullable()
18
+ }).passthrough().describe("Custom field value in subscriber record");
19
19
  const MoosendGetSubscriberByEmail_SubscriberContextSchema = zod.z.object({
20
- ID: zod.z.string().describe("Subscriber unique identifier"),
20
+ ID: zod.z.string().describe("Subscriber unique identifier").nullable(),
21
21
  Name: zod.z.string().describe("Subscriber name").nullable().optional(),
22
22
  Tags: zod.z.array(zod.z.string()).describe("List of tags associated with subscriber"),
23
- Email: zod.z.string().describe("Subscriber email address"),
24
- CreatedOn: zod.z.string().describe("Timestamp when subscriber was added, in /Date(...) format"),
23
+ Email: zod.z.string().describe("Subscriber email address").nullable(),
24
+ CreatedOn: zod.z.string().describe("Timestamp when subscriber was added, in /Date(...) format").nullable(),
25
25
  RemovedOn: zod.z.string().describe("Timestamp when subscriber was removed, or null if not removed").nullable().optional(),
26
26
  UpdatedOn: zod.z.string().describe("Timestamp when subscriber was last updated").nullable().optional(),
27
27
  Preferences: zod.z.array(zod.z.string()).describe("List of preference options selected by subscriber").nullable().optional(),
28
28
  CustomFields: zod.z.array(MoosendGetSubscriberByEmail_CustomFieldSchema).describe("List of custom field name/value pairs for this subscriber"),
29
- SubscribeType: zod.z.number().int().describe("Type of subscription (integer code)"),
29
+ SubscribeType: zod.z.number().int().describe("Type of subscription (integer code)").nullable(),
30
30
  UnsubscribedOn: zod.z.string().describe("Timestamp when subscriber unsubscribed, or null if still active").nullable().optional(),
31
- SubscribeMethod: zod.z.number().int().describe("Method by which subscription occurred (integer code)"),
31
+ SubscribeMethod: zod.z.number().int().describe("Method by which subscription occurred (integer code)").nullable(),
32
32
  UnsubscribedFromID: zod.z.string().describe("Mailing list ID from which unsubscribed, or null").nullable().optional()
33
- }).describe("Subscriber details returned by Moosend");
33
+ }).passthrough().describe("Subscriber details returned by Moosend");
34
34
  const MoosendGetSubscriberByEmailOutput = zod.z.object({
35
- Code: zod.z.number().int().describe("Response code; 0 indicates success"),
35
+ Code: zod.z.number().int().describe("Response code; 0 indicates success").nullable(),
36
36
  Error: zod.z.string().describe("Error message if the request failed").nullable().optional(),
37
37
  Context: MoosendGetSubscriberByEmail_SubscriberContextSchema.nullable().optional()
38
- }).describe("Response schema for `GetSubscriberByEmail`");
38
+ }).passthrough().describe("Response schema for `GetSubscriberByEmail`");
39
39
  const moosendGetSubscriberByEmail = require_action.action("MOOSEND_GET_SUBSCRIBER_BY_EMAIL", {
40
40
  slug: "moosend-get-subscriber-by-email",
41
41
  name: "Get Subscriber By Email",
@@ -1 +1 @@
1
- {"version":3,"file":"get-subscriber-by-email.cjs","names":["z","action"],"sources":["../../src/actions/get-subscriber-by-email.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetSubscriberByEmailInput: z.ZodTypeAny = z.object({\n Email: z.string().describe(\"Email address of the subscriber to retrieve.\"),\n format: z.string().default(\"json\").describe(\"Response format (must be 'json').\").optional(),\n mailingListID: z.string().describe(\"The ID of the mailing list to search in.\"),\n}).describe(\"Request schema for `GetSubscriberByEmail`\");\nconst MoosendGetSubscriberByEmail_CustomFieldSchema: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"Custom field name\"),\n Value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n CustomFieldID: z.string().describe(\"Custom field unique identifier\"),\n}).describe(\"Custom field value in subscriber record\");\nconst MoosendGetSubscriberByEmail_SubscriberContextSchema: z.ZodTypeAny = z.object({\n ID: z.string().describe(\"Subscriber unique identifier\"),\n Name: z.string().describe(\"Subscriber name\").nullable().optional(),\n Tags: z.array(z.string()).describe(\"List of tags associated with subscriber\"),\n Email: z.string().describe(\"Subscriber email address\"),\n CreatedOn: z.string().describe(\"Timestamp when subscriber was added, in /Date(...) format\"),\n RemovedOn: z.string().describe(\"Timestamp when subscriber was removed, or null if not removed\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Timestamp when subscriber was last updated\").nullable().optional(),\n Preferences: z.array(z.string()).describe(\"List of preference options selected by subscriber\").nullable().optional(),\n CustomFields: z.array(MoosendGetSubscriberByEmail_CustomFieldSchema).describe(\"List of custom field name/value pairs for this subscriber\"),\n SubscribeType: z.number().int().describe(\"Type of subscription (integer code)\"),\n UnsubscribedOn: z.string().describe(\"Timestamp when subscriber unsubscribed, or null if still active\").nullable().optional(),\n SubscribeMethod: z.number().int().describe(\"Method by which subscription occurred (integer code)\"),\n UnsubscribedFromID: z.string().describe(\"Mailing list ID from which unsubscribed, or null\").nullable().optional(),\n}).describe(\"Subscriber details returned by Moosend\");\nexport const MoosendGetSubscriberByEmailOutput: 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\").nullable().optional(),\n Context: MoosendGetSubscriberByEmail_SubscriberContextSchema.nullable().optional(),\n}).describe(\"Response schema for `GetSubscriberByEmail`\");\n\nexport const moosendGetSubscriberByEmail = action(\"MOOSEND_GET_SUBSCRIBER_BY_EMAIL\", {\n slug: \"moosend-get-subscriber-by-email\",\n name: \"Get Subscriber By Email\",\n description: \"Retrieves detailed subscriber information by email address from a specific mailing list. Returns comprehensive subscriber data including ID, name, subscription status, custom fields, tags, preferences, and timestamps for creation, updates, and unsubscribe events. Use this when you need to: - Look up a subscriber's details using their email address - Check if an email is already subscribed to a list - Retrieve custom field values for a subscriber - Check subscription status and history Example: \\\"Get subscriber details for jane.doe@example.com in list 04fad8e2-...\\\"\",\n input: MoosendGetSubscriberByEmailInput,\n output: MoosendGetSubscriberByEmailOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC1F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC/E,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC7C,OAAOA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC;CACtE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;AACrE,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,sDAAoEA,IAAAA,EAAE,OAAO;CACj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AAS,oCAAoC;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,SAAS,oDAAoD,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-subscriber-by-email.cjs","names":["z","action"],"sources":["../../src/actions/get-subscriber-by-email.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetSubscriberByEmailInput = z.object({\n Email: z.string().describe(\"Email address of the subscriber to retrieve.\"),\n format: z.string().default(\"json\").describe(\"Response format (must be 'json').\").optional(),\n mailingListID: z.string().describe(\"The ID of the mailing list to search in.\"),\n}).describe(\"Request schema for `GetSubscriberByEmail`\");\nconst MoosendGetSubscriberByEmail_CustomFieldSchema = z.object({\n Name: z.string().describe(\"Custom field name\").nullable(),\n Value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]),\n CustomFieldID: z.string().describe(\"Custom field unique identifier\").nullable(),\n}).passthrough().describe(\"Custom field value in subscriber record\");\nconst MoosendGetSubscriberByEmail_SubscriberContextSchema = z.object({\n ID: z.string().describe(\"Subscriber unique identifier\").nullable(),\n Name: z.string().describe(\"Subscriber name\").nullable().optional(),\n Tags: z.array(z.string()).describe(\"List of tags associated with subscriber\"),\n Email: z.string().describe(\"Subscriber email address\").nullable(),\n CreatedOn: z.string().describe(\"Timestamp when subscriber was added, in /Date(...) format\").nullable(),\n RemovedOn: z.string().describe(\"Timestamp when subscriber was removed, or null if not removed\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Timestamp when subscriber was last updated\").nullable().optional(),\n Preferences: z.array(z.string()).describe(\"List of preference options selected by subscriber\").nullable().optional(),\n CustomFields: z.array(MoosendGetSubscriberByEmail_CustomFieldSchema).describe(\"List of custom field name/value pairs for this subscriber\"),\n SubscribeType: z.number().int().describe(\"Type of subscription (integer code)\").nullable(),\n UnsubscribedOn: z.string().describe(\"Timestamp when subscriber unsubscribed, or null if still active\").nullable().optional(),\n SubscribeMethod: z.number().int().describe(\"Method by which subscription occurred (integer code)\").nullable(),\n UnsubscribedFromID: z.string().describe(\"Mailing list ID from which unsubscribed, or null\").nullable().optional(),\n}).passthrough().describe(\"Subscriber details returned by Moosend\");\nexport const MoosendGetSubscriberByEmailOutput = 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\").nullable().optional(),\n Context: MoosendGetSubscriberByEmail_SubscriberContextSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for `GetSubscriberByEmail`\");\n\nexport const moosendGetSubscriberByEmail = action(\"MOOSEND_GET_SUBSCRIBER_BY_EMAIL\", {\n slug: \"moosend-get-subscriber-by-email\",\n name: \"Get Subscriber By Email\",\n description: \"Retrieves detailed subscriber information by email address from a specific mailing list. Returns comprehensive subscriber data including ID, name, subscription status, custom fields, tags, preferences, and timestamps for creation, updates, and unsubscribe events. Use this when you need to: - Look up a subscriber's details using their email address - Check if an email is already subscribed to a list - Retrieve custom field values for a subscriber - Check subscription status and history Example: \\\"Get subscriber details for jane.doe@example.com in list 04fad8e2-...\\\"\",\n input: MoosendGetSubscriberByEmailInput,\n output: MoosendGetSubscriberByEmailOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC1F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC/E,CAAC,CAAC,CAAC,SAAS,2CA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