@keystrokehq/mailtrap 0.1.2 → 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 (299) hide show
  1. package/dist/actions/clean-inbox.cjs +2 -2
  2. package/dist/actions/clean-inbox.cjs.map +1 -1
  3. package/dist/actions/clean-inbox.d.cts +2 -2
  4. package/dist/actions/clean-inbox.d.mts +2 -2
  5. package/dist/actions/clean-inbox.mjs +2 -2
  6. package/dist/actions/clean-inbox.mjs.map +1 -1
  7. package/dist/actions/create-contact-event.cjs +3 -3
  8. package/dist/actions/create-contact-event.cjs.map +1 -1
  9. package/dist/actions/create-contact-event.d.cts +4 -4
  10. package/dist/actions/create-contact-event.d.mts +4 -4
  11. package/dist/actions/create-contact-event.mjs +3 -3
  12. package/dist/actions/create-contact-event.mjs.map +1 -1
  13. package/dist/actions/create-contact-export.cjs +2 -2
  14. package/dist/actions/create-contact-export.cjs.map +1 -1
  15. package/dist/actions/create-contact-export.d.cts +3 -2
  16. package/dist/actions/create-contact-export.d.mts +3 -2
  17. package/dist/actions/create-contact-export.mjs +2 -2
  18. package/dist/actions/create-contact-export.mjs.map +1 -1
  19. package/dist/actions/create-contact-field.cjs +1 -1
  20. package/dist/actions/create-contact-field.cjs.map +1 -1
  21. package/dist/actions/create-contact-field.d.cts +1 -1
  22. package/dist/actions/create-contact-field.d.mts +1 -1
  23. package/dist/actions/create-contact-field.mjs +1 -1
  24. package/dist/actions/create-contact-field.mjs.map +1 -1
  25. package/dist/actions/create-contact-list.cjs +1 -1
  26. package/dist/actions/create-contact-list.cjs.map +1 -1
  27. package/dist/actions/create-contact-list.d.cts +1 -1
  28. package/dist/actions/create-contact-list.d.mts +1 -1
  29. package/dist/actions/create-contact-list.mjs +1 -1
  30. package/dist/actions/create-contact-list.mjs.map +1 -1
  31. package/dist/actions/create-contact.cjs +2 -2
  32. package/dist/actions/create-contact.cjs.map +1 -1
  33. package/dist/actions/create-contact.d.cts +2 -2
  34. package/dist/actions/create-contact.d.mts +2 -2
  35. package/dist/actions/create-contact.mjs +2 -2
  36. package/dist/actions/create-contact.mjs.map +1 -1
  37. package/dist/actions/create-email-template.cjs +1 -1
  38. package/dist/actions/create-email-template.cjs.map +1 -1
  39. package/dist/actions/create-email-template.d.cts +1 -1
  40. package/dist/actions/create-email-template.d.mts +1 -1
  41. package/dist/actions/create-email-template.mjs +1 -1
  42. package/dist/actions/create-email-template.mjs.map +1 -1
  43. package/dist/actions/create-sending-domain.cjs +3 -3
  44. package/dist/actions/create-sending-domain.cjs.map +1 -1
  45. package/dist/actions/create-sending-domain.d.cts +3 -3
  46. package/dist/actions/create-sending-domain.d.mts +3 -3
  47. package/dist/actions/create-sending-domain.mjs +3 -3
  48. package/dist/actions/create-sending-domain.mjs.map +1 -1
  49. package/dist/actions/delete-contact-field.cjs +1 -1
  50. package/dist/actions/delete-contact-field.cjs.map +1 -1
  51. package/dist/actions/delete-contact-field.d.cts +1 -1
  52. package/dist/actions/delete-contact-field.d.mts +1 -1
  53. package/dist/actions/delete-contact-field.mjs +1 -1
  54. package/dist/actions/delete-contact-field.mjs.map +1 -1
  55. package/dist/actions/delete-contact-list.cjs +1 -1
  56. package/dist/actions/delete-contact-list.cjs.map +1 -1
  57. package/dist/actions/delete-contact-list.d.cts +1 -1
  58. package/dist/actions/delete-contact-list.d.mts +1 -1
  59. package/dist/actions/delete-contact-list.mjs +1 -1
  60. package/dist/actions/delete-contact-list.mjs.map +1 -1
  61. package/dist/actions/delete-contact.cjs +1 -1
  62. package/dist/actions/delete-contact.cjs.map +1 -1
  63. package/dist/actions/delete-contact.d.cts +1 -1
  64. package/dist/actions/delete-contact.d.mts +1 -1
  65. package/dist/actions/delete-contact.mjs +1 -1
  66. package/dist/actions/delete-contact.mjs.map +1 -1
  67. package/dist/actions/delete-email-template.cjs +1 -1
  68. package/dist/actions/delete-email-template.cjs.map +1 -1
  69. package/dist/actions/delete-email-template.d.cts +1 -1
  70. package/dist/actions/delete-email-template.d.mts +1 -1
  71. package/dist/actions/delete-email-template.mjs +1 -1
  72. package/dist/actions/delete-email-template.mjs.map +1 -1
  73. package/dist/actions/delete-project.cjs +1 -1
  74. package/dist/actions/delete-project.cjs.map +1 -1
  75. package/dist/actions/delete-project.d.cts +1 -1
  76. package/dist/actions/delete-project.d.mts +1 -1
  77. package/dist/actions/delete-project.mjs +1 -1
  78. package/dist/actions/delete-project.mjs.map +1 -1
  79. package/dist/actions/delete-sending-domain.cjs +1 -1
  80. package/dist/actions/delete-sending-domain.cjs.map +1 -1
  81. package/dist/actions/delete-sending-domain.d.cts +1 -1
  82. package/dist/actions/delete-sending-domain.d.cts.map +1 -1
  83. package/dist/actions/delete-sending-domain.d.mts +1 -1
  84. package/dist/actions/delete-sending-domain.d.mts.map +1 -1
  85. package/dist/actions/delete-sending-domain.mjs +1 -1
  86. package/dist/actions/delete-sending-domain.mjs.map +1 -1
  87. package/dist/actions/get-billing-usage.cjs +6 -6
  88. package/dist/actions/get-billing-usage.cjs.map +1 -1
  89. package/dist/actions/get-billing-usage.d.cts +12 -12
  90. package/dist/actions/get-billing-usage.d.mts +12 -12
  91. package/dist/actions/get-billing-usage.mjs +6 -6
  92. package/dist/actions/get-billing-usage.mjs.map +1 -1
  93. package/dist/actions/get-contact-export.cjs +1 -1
  94. package/dist/actions/get-contact-export.cjs.map +1 -1
  95. package/dist/actions/get-contact-export.d.cts +1 -1
  96. package/dist/actions/get-contact-export.d.mts +1 -1
  97. package/dist/actions/get-contact-export.mjs +1 -1
  98. package/dist/actions/get-contact-export.mjs.map +1 -1
  99. package/dist/actions/get-contact-field.cjs +1 -1
  100. package/dist/actions/get-contact-field.cjs.map +1 -1
  101. package/dist/actions/get-contact-field.d.cts +1 -1
  102. package/dist/actions/get-contact-field.d.mts +1 -1
  103. package/dist/actions/get-contact-field.mjs +1 -1
  104. package/dist/actions/get-contact-field.mjs.map +1 -1
  105. package/dist/actions/get-contact-import.cjs +1 -1
  106. package/dist/actions/get-contact-import.cjs.map +1 -1
  107. package/dist/actions/get-contact-import.d.cts +1 -1
  108. package/dist/actions/get-contact-import.d.mts +1 -1
  109. package/dist/actions/get-contact-import.mjs +1 -1
  110. package/dist/actions/get-contact-import.mjs.map +1 -1
  111. package/dist/actions/get-contact-list.cjs +1 -1
  112. package/dist/actions/get-contact-list.cjs.map +1 -1
  113. package/dist/actions/get-contact-list.d.cts +1 -1
  114. package/dist/actions/get-contact-list.d.mts +1 -1
  115. package/dist/actions/get-contact-list.mjs +1 -1
  116. package/dist/actions/get-contact-list.mjs.map +1 -1
  117. package/dist/actions/get-contact.cjs +3 -3
  118. package/dist/actions/get-contact.cjs.map +1 -1
  119. package/dist/actions/get-contact.d.cts +3 -3
  120. package/dist/actions/get-contact.d.mts +3 -3
  121. package/dist/actions/get-contact.mjs +3 -3
  122. package/dist/actions/get-contact.mjs.map +1 -1
  123. package/dist/actions/get-email-template.cjs +1 -1
  124. package/dist/actions/get-email-template.cjs.map +1 -1
  125. package/dist/actions/get-email-template.d.cts +1 -1
  126. package/dist/actions/get-email-template.d.mts +1 -1
  127. package/dist/actions/get-email-template.mjs +1 -1
  128. package/dist/actions/get-email-template.mjs.map +1 -1
  129. package/dist/actions/get-inbox.cjs +2 -2
  130. package/dist/actions/get-inbox.cjs.map +1 -1
  131. package/dist/actions/get-inbox.d.cts +2 -2
  132. package/dist/actions/get-inbox.d.mts +2 -2
  133. package/dist/actions/get-inbox.mjs +2 -2
  134. package/dist/actions/get-inbox.mjs.map +1 -1
  135. package/dist/actions/get-message-html.cjs +1 -1
  136. package/dist/actions/get-message-html.cjs.map +1 -1
  137. package/dist/actions/get-message-html.d.cts +1 -1
  138. package/dist/actions/get-message-html.d.mts +1 -1
  139. package/dist/actions/get-message-html.mjs +1 -1
  140. package/dist/actions/get-message-html.mjs.map +1 -1
  141. package/dist/actions/get-permission-resources.cjs +4 -4
  142. package/dist/actions/get-permission-resources.cjs.map +1 -1
  143. package/dist/actions/get-permission-resources.d.cts +4 -4
  144. package/dist/actions/get-permission-resources.d.mts +4 -4
  145. package/dist/actions/get-permission-resources.mjs +4 -4
  146. package/dist/actions/get-permission-resources.mjs.map +1 -1
  147. package/dist/actions/get-project.cjs +5 -5
  148. package/dist/actions/get-project.cjs.map +1 -1
  149. package/dist/actions/get-project.d.cts +5 -5
  150. package/dist/actions/get-project.d.mts +5 -5
  151. package/dist/actions/get-project.mjs +5 -5
  152. package/dist/actions/get-project.mjs.map +1 -1
  153. package/dist/actions/get-sending-domain.cjs +3 -3
  154. package/dist/actions/get-sending-domain.cjs.map +1 -1
  155. package/dist/actions/get-sending-domain.d.cts +3 -3
  156. package/dist/actions/get-sending-domain.d.mts +3 -3
  157. package/dist/actions/get-sending-domain.mjs +3 -3
  158. package/dist/actions/get-sending-domain.mjs.map +1 -1
  159. package/dist/actions/get-sending-stats-by-categories.cjs +3 -3
  160. package/dist/actions/get-sending-stats-by-categories.cjs.map +1 -1
  161. package/dist/actions/get-sending-stats-by-categories.d.cts +3 -3
  162. package/dist/actions/get-sending-stats-by-categories.d.mts +3 -3
  163. package/dist/actions/get-sending-stats-by-categories.mjs +3 -3
  164. package/dist/actions/get-sending-stats-by-categories.mjs.map +1 -1
  165. package/dist/actions/get-sending-stats-by-date.cjs +3 -3
  166. package/dist/actions/get-sending-stats-by-date.cjs.map +1 -1
  167. package/dist/actions/get-sending-stats-by-date.d.cts +3 -3
  168. package/dist/actions/get-sending-stats-by-date.d.mts +3 -3
  169. package/dist/actions/get-sending-stats-by-date.mjs +3 -3
  170. package/dist/actions/get-sending-stats-by-date.mjs.map +1 -1
  171. package/dist/actions/get-sending-stats-by-domains.cjs +3 -3
  172. package/dist/actions/get-sending-stats-by-domains.cjs.map +1 -1
  173. package/dist/actions/get-sending-stats-by-domains.d.cts +3 -3
  174. package/dist/actions/get-sending-stats-by-domains.d.mts +3 -3
  175. package/dist/actions/get-sending-stats-by-domains.mjs +3 -3
  176. package/dist/actions/get-sending-stats-by-domains.mjs.map +1 -1
  177. package/dist/actions/get-sending-stats-by-esp.cjs +3 -3
  178. package/dist/actions/get-sending-stats-by-esp.cjs.map +1 -1
  179. package/dist/actions/get-sending-stats-by-esp.d.cts +3 -3
  180. package/dist/actions/get-sending-stats-by-esp.d.mts +3 -3
  181. package/dist/actions/get-sending-stats-by-esp.mjs +3 -3
  182. package/dist/actions/get-sending-stats-by-esp.mjs.map +1 -1
  183. package/dist/actions/get-sending-stats.cjs +1 -1
  184. package/dist/actions/get-sending-stats.cjs.map +1 -1
  185. package/dist/actions/get-sending-stats.d.cts +1 -1
  186. package/dist/actions/get-sending-stats.d.mts +1 -1
  187. package/dist/actions/get-sending-stats.mjs +1 -1
  188. package/dist/actions/get-sending-stats.mjs.map +1 -1
  189. package/dist/actions/import-contacts.cjs +2 -2
  190. package/dist/actions/import-contacts.cjs.map +1 -1
  191. package/dist/actions/import-contacts.d.cts +3 -2
  192. package/dist/actions/import-contacts.d.cts.map +1 -1
  193. package/dist/actions/import-contacts.d.mts +3 -2
  194. package/dist/actions/import-contacts.d.mts.map +1 -1
  195. package/dist/actions/import-contacts.mjs +2 -2
  196. package/dist/actions/import-contacts.mjs.map +1 -1
  197. package/dist/actions/list-accounts.cjs +2 -2
  198. package/dist/actions/list-accounts.cjs.map +1 -1
  199. package/dist/actions/list-accounts.d.cts +2 -2
  200. package/dist/actions/list-accounts.d.mts +2 -2
  201. package/dist/actions/list-accounts.mjs +2 -2
  202. package/dist/actions/list-accounts.mjs.map +1 -1
  203. package/dist/actions/list-contact-fields.cjs +2 -2
  204. package/dist/actions/list-contact-fields.cjs.map +1 -1
  205. package/dist/actions/list-contact-fields.d.cts +2 -2
  206. package/dist/actions/list-contact-fields.d.mts +2 -2
  207. package/dist/actions/list-contact-fields.mjs +2 -2
  208. package/dist/actions/list-contact-fields.mjs.map +1 -1
  209. package/dist/actions/list-contact-lists.cjs +2 -2
  210. package/dist/actions/list-contact-lists.cjs.map +1 -1
  211. package/dist/actions/list-contact-lists.d.cts +2 -2
  212. package/dist/actions/list-contact-lists.d.mts +2 -2
  213. package/dist/actions/list-contact-lists.mjs +2 -2
  214. package/dist/actions/list-contact-lists.mjs.map +1 -1
  215. package/dist/actions/list-email-templates.cjs +2 -2
  216. package/dist/actions/list-email-templates.cjs.map +1 -1
  217. package/dist/actions/list-email-templates.d.cts +2 -2
  218. package/dist/actions/list-email-templates.d.mts +2 -2
  219. package/dist/actions/list-email-templates.mjs +2 -2
  220. package/dist/actions/list-email-templates.mjs.map +1 -1
  221. package/dist/actions/list-inboxes.cjs +3 -3
  222. package/dist/actions/list-inboxes.cjs.map +1 -1
  223. package/dist/actions/list-inboxes.d.cts +3 -3
  224. package/dist/actions/list-inboxes.d.mts +3 -3
  225. package/dist/actions/list-inboxes.mjs +3 -3
  226. package/dist/actions/list-inboxes.mjs.map +1 -1
  227. package/dist/actions/list-messages.cjs +6 -6
  228. package/dist/actions/list-messages.cjs.map +1 -1
  229. package/dist/actions/list-messages.d.cts +6 -6
  230. package/dist/actions/list-messages.d.mts +6 -6
  231. package/dist/actions/list-messages.mjs +6 -6
  232. package/dist/actions/list-messages.mjs.map +1 -1
  233. package/dist/actions/list-projects.cjs +5 -5
  234. package/dist/actions/list-projects.cjs.map +1 -1
  235. package/dist/actions/list-projects.d.cts +5 -5
  236. package/dist/actions/list-projects.d.mts +5 -5
  237. package/dist/actions/list-projects.mjs +5 -5
  238. package/dist/actions/list-projects.mjs.map +1 -1
  239. package/dist/actions/list-sending-domains.cjs +4 -4
  240. package/dist/actions/list-sending-domains.cjs.map +1 -1
  241. package/dist/actions/list-sending-domains.d.cts +4 -4
  242. package/dist/actions/list-sending-domains.d.mts +4 -4
  243. package/dist/actions/list-sending-domains.mjs +4 -4
  244. package/dist/actions/list-sending-domains.mjs.map +1 -1
  245. package/dist/actions/list-suppressions.cjs +2 -2
  246. package/dist/actions/list-suppressions.cjs.map +1 -1
  247. package/dist/actions/list-suppressions.d.cts +2 -2
  248. package/dist/actions/list-suppressions.d.mts +2 -2
  249. package/dist/actions/list-suppressions.mjs +2 -2
  250. package/dist/actions/list-suppressions.mjs.map +1 -1
  251. package/dist/actions/mark-inbox-as-read.cjs +2 -2
  252. package/dist/actions/mark-inbox-as-read.cjs.map +1 -1
  253. package/dist/actions/mark-inbox-as-read.d.cts +2 -2
  254. package/dist/actions/mark-inbox-as-read.d.mts +2 -2
  255. package/dist/actions/mark-inbox-as-read.mjs +2 -2
  256. package/dist/actions/mark-inbox-as-read.mjs.map +1 -1
  257. package/dist/actions/reset-inbox-credentials.cjs +2 -2
  258. package/dist/actions/reset-inbox-credentials.cjs.map +1 -1
  259. package/dist/actions/reset-inbox-credentials.d.cts +2 -2
  260. package/dist/actions/reset-inbox-credentials.d.mts +2 -2
  261. package/dist/actions/reset-inbox-credentials.mjs +2 -2
  262. package/dist/actions/reset-inbox-credentials.mjs.map +1 -1
  263. package/dist/actions/update-contact-field.cjs +1 -1
  264. package/dist/actions/update-contact-field.cjs.map +1 -1
  265. package/dist/actions/update-contact-field.d.cts +1 -1
  266. package/dist/actions/update-contact-field.d.mts +1 -1
  267. package/dist/actions/update-contact-field.mjs +1 -1
  268. package/dist/actions/update-contact-field.mjs.map +1 -1
  269. package/dist/actions/update-contact-list.cjs +1 -1
  270. package/dist/actions/update-contact-list.cjs.map +1 -1
  271. package/dist/actions/update-contact-list.d.cts +1 -1
  272. package/dist/actions/update-contact-list.d.mts +1 -1
  273. package/dist/actions/update-contact-list.mjs +1 -1
  274. package/dist/actions/update-contact-list.mjs.map +1 -1
  275. package/dist/actions/update-contact.cjs +4 -4
  276. package/dist/actions/update-contact.cjs.map +1 -1
  277. package/dist/actions/update-contact.d.cts +5 -5
  278. package/dist/actions/update-contact.d.mts +5 -5
  279. package/dist/actions/update-contact.mjs +4 -4
  280. package/dist/actions/update-contact.mjs.map +1 -1
  281. package/dist/actions/update-email-template.cjs +1 -1
  282. package/dist/actions/update-email-template.cjs.map +1 -1
  283. package/dist/actions/update-email-template.d.cts +1 -1
  284. package/dist/actions/update-email-template.d.mts +1 -1
  285. package/dist/actions/update-email-template.mjs +1 -1
  286. package/dist/actions/update-email-template.mjs.map +1 -1
  287. package/dist/actions/update-inbox.cjs +2 -2
  288. package/dist/actions/update-inbox.cjs.map +1 -1
  289. package/dist/actions/update-inbox.d.cts +2 -2
  290. package/dist/actions/update-inbox.d.mts +2 -2
  291. package/dist/actions/update-inbox.mjs +2 -2
  292. package/dist/actions/update-inbox.mjs.map +1 -1
  293. package/dist/actions/update-project.cjs +5 -5
  294. package/dist/actions/update-project.cjs.map +1 -1
  295. package/dist/actions/update-project.d.cts +5 -5
  296. package/dist/actions/update-project.d.mts +5 -5
  297. package/dist/actions/update-project.mjs +5 -5
  298. package/dist/actions/update-project.mjs.map +1 -1
  299. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"get-sending-stats-by-categories.mjs","names":[],"sources":["../../src/actions/get-sending-stats-by-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsByCategoriesInput = z.object({\n end_date: z.string().describe(\"End date for the statistics period in YYYY-MM-DD format\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve statistics\"),\n categories: z.array(z.string()).describe(\"Email categories to filter results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for the statistics period in YYYY-MM-DD format\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams to filter results (e.g., transactional, bulk). If not provided, results for all sending streams will be included.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains to filter results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers to filter results (e.g., Google, Yahoo). If not provided, results for all ESPs will be included.\").optional(),\n}).describe(\"Request model for retrieving email sending statistics by categories.\");\nconst MailtrapGetSendingStatsByCategories_SendingStatsSchema = z.object({\n open_rate: z.number().describe(\"Rate of opened emails (0.0 to 1.0)\").nullable().optional(),\n spam_rate: z.number().describe(\"Rate of emails marked as spam (0.0 to 1.0)\").nullable().optional(),\n click_rate: z.number().describe(\"Rate of clicked emails (0.0 to 1.0)\").nullable().optional(),\n open_count: z.number().int().describe(\"Number of opened emails\").nullable().optional(),\n spam_count: z.number().int().describe(\"Number of emails marked as spam\").nullable().optional(),\n bounce_rate: z.number().describe(\"Rate of bounced emails (0.0 to 1.0)\").nullable().optional(),\n click_count: z.number().int().describe(\"Number of clicked emails\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Number of bounced emails\").nullable().optional(),\n delivery_rate: z.number().describe(\"Rate of successfully delivered emails (0.0 to 1.0)\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Number of successfully delivered emails\").nullable().optional(),\n}).describe(\"Statistics for email sending metrics.\");\nconst MailtrapGetSendingStatsByCategories_CategoryStatsSchema = z.object({\n stats: z.array(MailtrapGetSendingStatsByCategories_SendingStatsSchema).describe(\"Array of sending statistics for this category\"),\n category: z.string().describe(\"Email category name\").nullable(),\n}).describe(\"Statistics grouped by category.\");\nexport const MailtrapGetSendingStatsByCategoriesOutput = z.object({\n categories: z.array(MailtrapGetSendingStatsByCategories_CategoryStatsSchema).describe(\"List of statistics grouped by email categories\"),\n}).describe(\"Response model containing email sending statistics grouped by categories.\");\n\nexport const mailtrapGetSendingStatsByCategories = action(\"MAILTRAP_GET_SENDING_STATS_BY_CATEGORIES\", {\n slug: \"mailtrap-get-sending-stats-by-categories\",\n name: \"Get Sending Stats by Categories\",\n description: \"Tool to retrieve email sending statistics grouped by categories. Use when you need to analyze email performance metrics (delivery, bounce, open, click, spam rates) segmented by email categories within a date range.\",\n input: MailtrapGetSendingStatsByCategoriesInput,\n output: MailtrapGetSendingStatsByCategoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2C,EAAE,OAAO;CAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACvF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CACnF,YAAY,EAAE,MAAM,EA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C,SAAS;CACxF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,0DAA0D,EAAE,OAAO;CACvE,OAAO,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,+CAA+C;CAC/H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AAChE,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAK7C,MAAa,sCAAsC,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuD,EAAE,OAAO,EAChE,YAAY,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,gDAAgD,EACxI,CAAC,CAAC,CAAC,SAAS,2EAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-sending-stats-by-categories.mjs","names":[],"sources":["../../src/actions/get-sending-stats-by-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsByCategoriesInput = z.object({\n end_date: z.string().describe(\"End date for the statistics period in YYYY-MM-DD format\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve statistics\"),\n categories: z.array(z.string()).describe(\"Email categories to filter results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for the statistics period in YYYY-MM-DD format\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams to filter results (e.g., transactional, bulk). If not provided, results for all sending streams will be included.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains to filter results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers to filter results (e.g., Google, Yahoo). If not provided, results for all ESPs will be included.\").optional(),\n}).describe(\"Request model for retrieving email sending statistics by categories.\");\nconst MailtrapGetSendingStatsByCategories_SendingStatsSchema = z.object({\n open_rate: z.number().describe(\"Rate of opened emails (0.0 to 1.0)\").nullable().optional(),\n spam_rate: z.number().describe(\"Rate of emails marked as spam (0.0 to 1.0)\").nullable().optional(),\n click_rate: z.number().describe(\"Rate of clicked emails (0.0 to 1.0)\").nullable().optional(),\n open_count: z.number().int().describe(\"Number of opened emails\").nullable().optional(),\n spam_count: z.number().int().describe(\"Number of emails marked as spam\").nullable().optional(),\n bounce_rate: z.number().describe(\"Rate of bounced emails (0.0 to 1.0)\").nullable().optional(),\n click_count: z.number().int().describe(\"Number of clicked emails\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Number of bounced emails\").nullable().optional(),\n delivery_rate: z.number().describe(\"Rate of successfully delivered emails (0.0 to 1.0)\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Number of successfully delivered emails\").nullable().optional(),\n}).passthrough().describe(\"Statistics for email sending metrics.\");\nconst MailtrapGetSendingStatsByCategories_CategoryStatsSchema = z.object({\n stats: z.array(MailtrapGetSendingStatsByCategories_SendingStatsSchema).describe(\"Array of sending statistics for this category\"),\n category: z.string().describe(\"Email category name\").nullable(),\n}).passthrough().describe(\"Statistics grouped by category.\");\nexport const MailtrapGetSendingStatsByCategoriesOutput = z.object({\n categories: z.array(MailtrapGetSendingStatsByCategories_CategoryStatsSchema).describe(\"List of statistics grouped by email categories\"),\n}).passthrough().describe(\"Response model containing email sending statistics grouped by categories.\");\n\nexport const mailtrapGetSendingStatsByCategories = action(\"MAILTRAP_GET_SENDING_STATS_BY_CATEGORIES\", {\n slug: \"mailtrap-get-sending-stats-by-categories\",\n name: \"Get Sending Stats by Categories\",\n description: \"Tool to retrieve email sending statistics grouped by categories. Use when you need to analyze email performance metrics (delivery, bounce, open, click, spam rates) segmented by email categories within a date range.\",\n input: MailtrapGetSendingStatsByCategoriesInput,\n output: MailtrapGetSendingStatsByCategori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;CAC5F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,0DAA0D,EAAE,OAAO;CACvE,OAAO,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,+CAA+C;CAC/H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAK3D,MAAa,sCAAsC,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuD,EAAE,OAAO,EAChE,YAAY,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,gDAAgD,EACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAOhB;AACV,CAAC"}
@@ -21,12 +21,12 @@ const MailtrapGetSendingStatsByDate_SendingStatsSchema = zod.z.object({
21
21
  bounce_count: zod.z.number().int().describe("Number of bounced emails").nullable().optional(),
22
22
  delivery_rate: zod.z.number().describe("Rate of successful deliveries as a decimal (e.g., 0.95 = 95%)").nullable().optional(),
23
23
  delivery_count: zod.z.number().int().describe("Number of successfully delivered emails").nullable().optional()
24
- }).describe("Statistics for email sending metrics.");
24
+ }).passthrough().describe("Statistics for email sending metrics.");
25
25
  const MailtrapGetSendingStatsByDate_DateStatsSchema = zod.z.object({
26
26
  date: zod.z.string().describe("Date for which the statistics apply in YYYY-MM-DD format").nullable(),
27
27
  stats: zod.z.array(MailtrapGetSendingStatsByDate_SendingStatsSchema).describe("List of sending statistics for this date")
28
- }).describe("Statistics for a specific date.");
29
- const MailtrapGetSendingStatsByDateOutput = zod.z.object({ stats_by_date: zod.z.array(MailtrapGetSendingStatsByDate_DateStatsSchema).describe("List of statistics grouped by date within the specified date range") }).describe("Response model containing sending statistics grouped by date.");
28
+ }).passthrough().describe("Statistics for a specific date.");
29
+ const MailtrapGetSendingStatsByDateOutput = zod.z.object({ stats_by_date: zod.z.array(MailtrapGetSendingStatsByDate_DateStatsSchema).describe("List of statistics grouped by date within the specified date range") }).passthrough().describe("Response model containing sending statistics grouped by date.");
30
30
  const mailtrapGetSendingStatsByDate = require_action.action("MAILTRAP_GET_SENDING_STATS_BY_DATE", {
31
31
  slug: "mailtrap-get-sending-stats-by-date",
32
32
  name: "Get Sending Stats by Date",
@@ -1 +1 @@
1
- {"version":3,"file":"get-sending-stats-by-date.cjs","names":["z","action"],"sources":["../../src/actions/get-sending-stats-by-date.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsByDateInput = z.object({\n end_date: z.string().describe(\"End date for which to include the results in YYYY-MM-DD format\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve sending statistics\"),\n categories: z.array(z.string()).describe(\"Categories for which to include the results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for which to include the results in YYYY-MM-DD format\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams for which to include the results. If not provided, results for all sending streams will be included.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains for which to include the results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers for which to include the results. If not provided, results for all ESPs will be included.\").optional(),\n}).describe(\"Request model for getting sending statistics by date range.\");\nconst MailtrapGetSendingStatsByDate_SendingStatsSchema = z.object({\n open_rate: z.number().describe(\"Rate of emails opened as a decimal (e.g., 0.9 = 90%)\").nullable().optional(),\n spam_rate: z.number().describe(\"Rate of emails marked as spam as a decimal (e.g., 0.02 = 2%)\").nullable().optional(),\n click_rate: z.number().describe(\"Rate of emails with clicks as a decimal (e.g., 0.7 = 70%)\").nullable().optional(),\n open_count: z.number().int().describe(\"Number of emails opened\").nullable().optional(),\n spam_count: z.number().int().describe(\"Number of emails marked as spam\").nullable().optional(),\n bounce_rate: z.number().describe(\"Rate of bounces as a decimal (e.g., 0.05 = 5%)\").nullable().optional(),\n click_count: z.number().int().describe(\"Number of emails with clicks\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Number of bounced emails\").nullable().optional(),\n delivery_rate: z.number().describe(\"Rate of successful deliveries as a decimal (e.g., 0.95 = 95%)\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Number of successfully delivered emails\").nullable().optional(),\n}).describe(\"Statistics for email sending metrics.\");\nconst MailtrapGetSendingStatsByDate_DateStatsSchema = z.object({\n date: z.string().describe(\"Date for which the statistics apply in YYYY-MM-DD format\").nullable(),\n stats: z.array(MailtrapGetSendingStatsByDate_SendingStatsSchema).describe(\"List of sending statistics for this date\"),\n}).describe(\"Statistics for a specific date.\");\nexport const MailtrapGetSendingStatsByDateOutput = z.object({\n stats_by_date: z.array(MailtrapGetSendingStatsByDate_DateStatsSchema).describe(\"List of statistics grouped by date within the specified date range\"),\n}).describe(\"Response model containing sending statistics grouped by date.\");\n\nexport const mailtrapGetSendingStatsByDate = action(\"MAILTRAP_GET_SENDING_STATS_BY_DATE\", {\n slug: \"mailtrap-get-sending-stats-by-date\",\n name: \"Get Sending Stats by Date\",\n description: \"Tool to retrieve email sending statistics aggregated by date. Use when you need to analyze email delivery performance, bounce rates, open rates, click rates, and spam rates for a specific date range.\",\n input: MailtrapGetSendingStatsByDateInput,\n output: MailtrapGetSendingStatsByDateOutput,\n});\n"],"m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,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/F,OAAOA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,0CAA0C;AACtH,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,eAAeA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,oEAAoE,EACrJ,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,gCAAgCC,eAAAA,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-sending-stats-by-date.cjs","names":["z","action"],"sources":["../../src/actions/get-sending-stats-by-date.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsByDateInput = z.object({\n end_date: z.string().describe(\"End date for which to include the results in YYYY-MM-DD format\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve sending statistics\"),\n categories: z.array(z.string()).describe(\"Categories for which to include the results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for which to include the results in YYYY-MM-DD format\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams for which to include the results. If not provided, results for all sending streams will be included.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains for which to include the results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers for which to include the results. If not provided, results for all ESPs will be included.\").optional(),\n}).describe(\"Request model for getting sending statistics by date range.\");\nconst MailtrapGetSendingStatsByDate_SendingStatsSchema = z.object({\n open_rate: z.number().describe(\"Rate of emails opened as a decimal (e.g., 0.9 = 90%)\").nullable().optional(),\n spam_rate: z.number().describe(\"Rate of emails marked as spam as a decimal (e.g., 0.02 = 2%)\").nullable().optional(),\n click_rate: z.number().describe(\"Rate of emails with clicks as a decimal (e.g., 0.7 = 70%)\").nullable().optional(),\n open_count: z.number().int().describe(\"Number of emails opened\").nullable().optional(),\n spam_count: z.number().int().describe(\"Number of emails marked as spam\").nullable().optional(),\n bounce_rate: z.number().describe(\"Rate of bounces as a decimal (e.g., 0.05 = 5%)\").nullable().optional(),\n click_count: z.number().int().describe(\"Number of emails with clicks\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Number of bounced emails\").nullable().optional(),\n delivery_rate: z.number().describe(\"Rate of successful deliveries as a decimal (e.g., 0.95 = 95%)\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Number of successfully delivered emails\").nullable().optional(),\n}).passthrough().describe(\"Statistics for email sending metrics.\");\nconst MailtrapGetSendingStatsByDate_DateStatsSchema = z.object({\n date: z.string().describe(\"Date for which the statistics apply in YYYY-MM-DD format\").nullable(),\n stats: z.array(MailtrapGetSendingStatsByDate_SendingStatsSchema).describe(\"List of sending statistics for this date\"),\n}).passthrough().describe(\"Statistics for a specific date.\");\nexport const MailtrapGetSendingStatsByDateOutput = z.object({\n stats_by_date: z.array(MailtrapGetSendingStatsByDate_DateStatsSchema).describe(\"List of statistics grouped by date within the specified date range\"),\n}).passthrough().describe(\"Response model containing sending statistics grouped by date.\");\n\nexport const mailtrapGetSendingStatsByDate = action(\"MAILTRAP_GET_SENDING_STATS_BY_DATE\", {\n slug: \"mailtrap-get-sending-stats-by-date\",\n name: \"Get Sending Stats by Date\",\n description: \"Tool to retrieve email sending statistics aggregated by date. Use when you need to analyze email delivery performance, bounce rates, open rates, click rates, and spam rates for a specific date range.\",\n input: MailtrapGetSendingStatsByDateInput,\n output: MailtrapGetSendingStatsByDateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD;CAC3F,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAChK,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAClG,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC/K,oBAAoBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACnM,yBAAyBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;AACtL,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,m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,CAAC,CAAC,SAAS;CAC/F,OAAOA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,0CAA0C;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAC3D,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,eAAeA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,oEAAoE,EACrJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,gCAAgCC,eAAAA,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -24,9 +24,9 @@ declare const MailtrapGetSendingStatsByDateOutput: z.ZodObject<{
24
24
  bounce_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
25
  delivery_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
26
  delivery_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
- }, z.core.$strip>>;
28
- }, z.core.$strip>>;
29
- }, z.core.$strip>;
27
+ }, z.core.$loose>>;
28
+ }, z.core.$loose>>;
29
+ }, z.core.$loose>;
30
30
  declare const mailtrapGetSendingStatsByDate: import("@keystrokehq/action").WorkflowActionDefinition<{
31
31
  end_date: string;
32
32
  account_id: number;
@@ -24,9 +24,9 @@ declare const MailtrapGetSendingStatsByDateOutput: z.ZodObject<{
24
24
  bounce_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
25
  delivery_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
26
  delivery_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
- }, z.core.$strip>>;
28
- }, z.core.$strip>>;
29
- }, z.core.$strip>;
27
+ }, z.core.$loose>>;
28
+ }, z.core.$loose>>;
29
+ }, z.core.$loose>;
30
30
  declare const mailtrapGetSendingStatsByDate: import("@keystrokehq/action").WorkflowActionDefinition<{
31
31
  end_date: string;
32
32
  account_id: number;
@@ -21,17 +21,17 @@ const MailtrapGetSendingStatsByDate_SendingStatsSchema = z.object({
21
21
  bounce_count: z.number().int().describe("Number of bounced emails").nullable().optional(),
22
22
  delivery_rate: z.number().describe("Rate of successful deliveries as a decimal (e.g., 0.95 = 95%)").nullable().optional(),
23
23
  delivery_count: z.number().int().describe("Number of successfully delivered emails").nullable().optional()
24
- }).describe("Statistics for email sending metrics.");
24
+ }).passthrough().describe("Statistics for email sending metrics.");
25
25
  const MailtrapGetSendingStatsByDate_DateStatsSchema = z.object({
26
26
  date: z.string().describe("Date for which the statistics apply in YYYY-MM-DD format").nullable(),
27
27
  stats: z.array(MailtrapGetSendingStatsByDate_SendingStatsSchema).describe("List of sending statistics for this date")
28
- }).describe("Statistics for a specific date.");
28
+ }).passthrough().describe("Statistics for a specific date.");
29
29
  const mailtrapGetSendingStatsByDate = action("MAILTRAP_GET_SENDING_STATS_BY_DATE", {
30
30
  slug: "mailtrap-get-sending-stats-by-date",
31
31
  name: "Get Sending Stats by Date",
32
32
  description: "Tool to retrieve email sending statistics aggregated by date. Use when you need to analyze email delivery performance, bounce rates, open rates, click rates, and spam rates for a specific date range.",
33
33
  input: MailtrapGetSendingStatsByDateInput,
34
- output: z.object({ stats_by_date: z.array(MailtrapGetSendingStatsByDate_DateStatsSchema).describe("List of statistics grouped by date within the specified date range") }).describe("Response model containing sending statistics grouped by date.")
34
+ output: z.object({ stats_by_date: z.array(MailtrapGetSendingStatsByDate_DateStatsSchema).describe("List of statistics grouped by date within the specified date range") }).passthrough().describe("Response model containing sending statistics grouped by date.")
35
35
  });
36
36
  //#endregion
37
37
  export { mailtrapGetSendingStatsByDate };
@@ -1 +1 @@
1
- {"version":3,"file":"get-sending-stats-by-date.mjs","names":[],"sources":["../../src/actions/get-sending-stats-by-date.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsByDateInput = z.object({\n end_date: z.string().describe(\"End date for which to include the results in YYYY-MM-DD format\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve sending statistics\"),\n categories: z.array(z.string()).describe(\"Categories for which to include the results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for which to include the results in YYYY-MM-DD format\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams for which to include the results. If not provided, results for all sending streams will be included.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains for which to include the results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers for which to include the results. If not provided, results for all ESPs will be included.\").optional(),\n}).describe(\"Request model for getting sending statistics by date range.\");\nconst MailtrapGetSendingStatsByDate_SendingStatsSchema = z.object({\n open_rate: z.number().describe(\"Rate of emails opened as a decimal (e.g., 0.9 = 90%)\").nullable().optional(),\n spam_rate: z.number().describe(\"Rate of emails marked as spam as a decimal (e.g., 0.02 = 2%)\").nullable().optional(),\n click_rate: z.number().describe(\"Rate of emails with clicks as a decimal (e.g., 0.7 = 70%)\").nullable().optional(),\n open_count: z.number().int().describe(\"Number of emails opened\").nullable().optional(),\n spam_count: z.number().int().describe(\"Number of emails marked as spam\").nullable().optional(),\n bounce_rate: z.number().describe(\"Rate of bounces as a decimal (e.g., 0.05 = 5%)\").nullable().optional(),\n click_count: z.number().int().describe(\"Number of emails with clicks\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Number of bounced emails\").nullable().optional(),\n delivery_rate: z.number().describe(\"Rate of successful deliveries as a decimal (e.g., 0.95 = 95%)\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Number of successfully delivered emails\").nullable().optional(),\n}).describe(\"Statistics for email sending metrics.\");\nconst MailtrapGetSendingStatsByDate_DateStatsSchema = z.object({\n date: z.string().describe(\"Date for which the statistics apply in YYYY-MM-DD format\").nullable(),\n stats: z.array(MailtrapGetSendingStatsByDate_SendingStatsSchema).describe(\"List of sending statistics for this date\"),\n}).describe(\"Statistics for a specific date.\");\nexport const MailtrapGetSendingStatsByDateOutput = z.object({\n stats_by_date: z.array(MailtrapGetSendingStatsByDate_DateStatsSchema).describe(\"List of statistics grouped by date within the specified date range\"),\n}).describe(\"Response model containing sending statistics grouped by date.\");\n\nexport const mailtrapGetSendingStatsByDate = action(\"MAILTRAP_GET_SENDING_STATS_BY_DATE\", {\n slug: \"mailtrap-get-sending-stats-by-date\",\n name: \"Get Sending Stats by Date\",\n description: \"Tool to retrieve email sending statistics aggregated by date. Use when you need to analyze email delivery performance, bounce rates, open rates, click rates, and spam rates for a specific date range.\",\n input: MailtrapGetSendingStatsByDateInput,\n output: MailtrapGetSendingStatsByDateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD;CAC3F,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAChK,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAClG,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC/K,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACnM,yBAAyB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;AACtL,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,mDAAmD,EAAE,OAAO;CAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,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AC,SAAS,+DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-sending-stats-by-date.mjs","names":[],"sources":["../../src/actions/get-sending-stats-by-date.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsByDateInput = z.object({\n end_date: z.string().describe(\"End date for which to include the results in YYYY-MM-DD format\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve sending statistics\"),\n categories: z.array(z.string()).describe(\"Categories for which to include the results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for which to include the results in YYYY-MM-DD format\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams for which to include the results. If not provided, results for all sending streams will be included.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains for which to include the results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers for which to include the results. If not provided, results for all ESPs will be included.\").optional(),\n}).describe(\"Request model for getting sending statistics by date range.\");\nconst MailtrapGetSendingStatsByDate_SendingStatsSchema = z.object({\n open_rate: z.number().describe(\"Rate of emails opened as a decimal (e.g., 0.9 = 90%)\").nullable().optional(),\n spam_rate: z.number().describe(\"Rate of emails marked as spam as a decimal (e.g., 0.02 = 2%)\").nullable().optional(),\n click_rate: z.number().describe(\"Rate of emails with clicks as a decimal (e.g., 0.7 = 70%)\").nullable().optional(),\n open_count: z.number().int().describe(\"Number of emails opened\").nullable().optional(),\n spam_count: z.number().int().describe(\"Number of emails marked as spam\").nullable().optional(),\n bounce_rate: z.number().describe(\"Rate of bounces as a decimal (e.g., 0.05 = 5%)\").nullable().optional(),\n click_count: z.number().int().describe(\"Number of emails with clicks\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Number of bounced emails\").nullable().optional(),\n delivery_rate: z.number().describe(\"Rate of successful deliveries as a decimal (e.g., 0.95 = 95%)\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Number of successfully delivered emails\").nullable().optional(),\n}).passthrough().describe(\"Statistics for email sending metrics.\");\nconst MailtrapGetSendingStatsByDate_DateStatsSchema = z.object({\n date: z.string().describe(\"Date for which the statistics apply in YYYY-MM-DD format\").nullable(),\n stats: z.array(MailtrapGetSendingStatsByDate_SendingStatsSchema).describe(\"List of sending statistics for this date\"),\n}).passthrough().describe(\"Statistics for a specific date.\");\nexport const MailtrapGetSendingStatsByDateOutput = z.object({\n stats_by_date: z.array(MailtrapGetSendingStatsByDate_DateStatsSchema).describe(\"List of statistics grouped by date within the specified date range\"),\n}).passthrough().describe(\"Response model containing sending statistics grouped by date.\");\n\nexport const mailtrapGetSendingStatsByDate = action(\"MAILTRAP_GET_SENDING_STATS_BY_DATE\", {\n slug: \"mailtrap-get-sending-stats-by-date\",\n name: \"Get Sending Stats by Date\",\n description: \"Tool to retrieve email sending statistics aggregated by date. Use when you need to analyze email delivery performance, bounce rates, open rates, click rates, and spam rates for a specific date range.\",\n input: MailtrapGetSendingStatsByDateInput,\n output: MailtrapGetSendingStatsByDateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD;CAC3F,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAChK,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAClG,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC/K,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACnM,yBAAyB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;AACtL,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,SAAS,0CAA0C;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAK3D,MAAa,gCAAgC,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiD,EAAE,OAAO,EAC1D,eAAe,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,oEAAoE,EACrJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAOhB;AACV,CAAC"}
@@ -21,12 +21,12 @@ const MailtrapGetSendingStatsByDomains_SendingStatsSchema = zod.z.object({
21
21
  bounce_count: zod.z.number().int().describe("Count of bounced emails.").nullable().optional(),
22
22
  delivery_rate: zod.z.number().describe("Proportion of delivered messages (0.0 to 1.0).").nullable().optional(),
23
23
  delivery_count: zod.z.number().int().describe("Number of successfully delivered emails.").nullable().optional()
24
- }).describe("Statistics for a sending domain.");
24
+ }).passthrough().describe("Statistics for a sending domain.");
25
25
  const MailtrapGetSendingStatsByDomains_DomainStatsSchema = zod.z.object({
26
26
  stats: zod.z.array(MailtrapGetSendingStatsByDomains_SendingStatsSchema).describe("Collection of sending statistics for this domain."),
27
27
  sending_domain_id: zod.z.number().int().describe("The unique identifier for the sending domain.").nullable()
28
- }).describe("Statistics for a specific sending domain.");
29
- const MailtrapGetSendingStatsByDomainsOutput = zod.z.object({ domains: zod.z.array(MailtrapGetSendingStatsByDomains_DomainStatsSchema).describe("List of domain statistics.") }).describe("Response model containing sending stats grouped by domain.");
28
+ }).passthrough().describe("Statistics for a specific sending domain.");
29
+ const MailtrapGetSendingStatsByDomainsOutput = zod.z.object({ domains: zod.z.array(MailtrapGetSendingStatsByDomains_DomainStatsSchema).describe("List of domain statistics.") }).passthrough().describe("Response model containing sending stats grouped by domain.");
30
30
  const mailtrapGetSendingStatsByDomains = require_action.action("MAILTRAP_GET_SENDING_STATS_BY_DOMAINS", {
31
31
  slug: "mailtrap-get-sending-stats-by-domains",
32
32
  name: "Get Sending Stats by Domains",
@@ -1 +1 @@
1
- {"version":3,"file":"get-sending-stats-by-domains.cjs","names":["z","action"],"sources":["../../src/actions/get-sending-stats-by-domains.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsByDomainsInput = z.object({\n end_date: z.string().describe(\"End date for which to include the results in YYYY-MM-DD format.\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve sending stats.\"),\n categories: z.array(z.string()).describe(\"Categories for which to include the results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for which to include the results in YYYY-MM-DD format.\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams for which to include the results. If not provided, results for all sending streams will be included. Common values: transactional, bulk.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains for which to include the results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers for which to include the results. If not provided, results for all ESPs will be included. Common values: Google, Yahoo, Microsoft, etc.\").optional(),\n}).describe(\"Request model for getting sending stats by domains from Mailtrap.\");\nconst MailtrapGetSendingStatsByDomains_SendingStatsSchema = z.object({\n open_rate: z.number().describe(\"Proportion of opened messages (0.0 to 1.0).\").nullable().optional(),\n spam_rate: z.number().describe(\"Proportion of spam-marked messages (0.0 to 1.0).\").nullable().optional(),\n click_rate: z.number().describe(\"Proportion of clicked messages (0.0 to 1.0).\").nullable().optional(),\n open_count: z.number().int().describe(\"Number of opened emails.\").nullable().optional(),\n spam_count: z.number().int().describe(\"Count of spam complaints.\").nullable().optional(),\n bounce_rate: z.number().describe(\"Proportion of bounced messages (0.0 to 1.0).\").nullable().optional(),\n click_count: z.number().int().describe(\"Count of clicked links in emails.\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Count of bounced emails.\").nullable().optional(),\n delivery_rate: z.number().describe(\"Proportion of delivered messages (0.0 to 1.0).\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Number of successfully delivered emails.\").nullable().optional(),\n}).describe(\"Statistics for a sending domain.\");\nconst MailtrapGetSendingStatsByDomains_DomainStatsSchema = z.object({\n stats: z.array(MailtrapGetSendingStatsByDomains_SendingStatsSchema).describe(\"Collection of sending statistics for this domain.\"),\n sending_domain_id: z.number().int().describe(\"The unique identifier for the sending domain.\").nullable(),\n}).describe(\"Statistics for a specific sending domain.\");\nexport const MailtrapGetSendingStatsByDomainsOutput = z.object({\n domains: z.array(MailtrapGetSendingStatsByDomains_DomainStatsSchema).describe(\"List of domain statistics.\"),\n}).describe(\"Response model containing sending stats grouped by domain.\");\n\nexport const mailtrapGetSendingStatsByDomains = action(\"MAILTRAP_GET_SENDING_STATS_BY_DOMAINS\", {\n slug: \"mailtrap-get-sending-stats-by-domains\",\n name: \"Get Sending Stats by Domains\",\n description: \"Tool to retrieve sending statistics grouped by domains for a Mailtrap account. Use when you need email delivery, bounce, open, click, and spam metrics broken down by sending domain for a specific date range. Supports filtering by domain IDs, sending streams, categories, and email service providers.\",\n input: MailtrapGetSendingStatsByDomainsInput,\n output: MailtrapGetSendingStatsByDomainsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;CACvF,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAChK,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CACnG,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CACnN,oBAAoBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,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SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,OAAOA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,mDAAmD;CAChI,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,SAASA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,4BAA4B,EAC5G,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAExE,MAAa,mCAAmCC,eAAAA,OAAO,yCAAyC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-sending-stats-by-domains.cjs","names":["z","action"],"sources":["../../src/actions/get-sending-stats-by-domains.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsByDomainsInput = z.object({\n end_date: z.string().describe(\"End date for which to include the results in YYYY-MM-DD format.\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve sending stats.\"),\n categories: z.array(z.string()).describe(\"Categories for which to include the results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for which to include the results in YYYY-MM-DD format.\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams for which to include the results. If not provided, results for all sending streams will be included. Common values: transactional, bulk.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains for which to include the results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers for which to include the results. If not provided, results for all ESPs will be included. Common values: Google, Yahoo, Microsoft, etc.\").optional(),\n}).describe(\"Request model for getting sending stats by domains from Mailtrap.\");\nconst MailtrapGetSendingStatsByDomains_SendingStatsSchema = z.object({\n open_rate: z.number().describe(\"Proportion of opened messages (0.0 to 1.0).\").nullable().optional(),\n spam_rate: z.number().describe(\"Proportion of spam-marked messages (0.0 to 1.0).\").nullable().optional(),\n click_rate: z.number().describe(\"Proportion of clicked messages (0.0 to 1.0).\").nullable().optional(),\n open_count: z.number().int().describe(\"Number of opened emails.\").nullable().optional(),\n spam_count: z.number().int().describe(\"Count of spam complaints.\").nullable().optional(),\n bounce_rate: z.number().describe(\"Proportion of bounced messages (0.0 to 1.0).\").nullable().optional(),\n click_count: z.number().int().describe(\"Count of clicked links in emails.\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Count of bounced emails.\").nullable().optional(),\n delivery_rate: z.number().describe(\"Proportion of delivered messages (0.0 to 1.0).\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Number of successfully delivered emails.\").nullable().optional(),\n}).passthrough().describe(\"Statistics for a sending domain.\");\nconst MailtrapGetSendingStatsByDomains_DomainStatsSchema = z.object({\n stats: z.array(MailtrapGetSendingStatsByDomains_SendingStatsSchema).describe(\"Collection of sending statistics for this domain.\"),\n sending_domain_id: z.number().int().describe(\"The unique identifier for the sending domain.\").nullable(),\n}).passthrough().describe(\"Statistics for a specific sending domain.\");\nexport const MailtrapGetSendingStatsByDomainsOutput = z.object({\n domains: z.array(MailtrapGetSendingStatsByDomains_DomainStatsSchema).describe(\"List of domain statistics.\"),\n}).passthrough().describe(\"Response model containing sending stats grouped by domain.\");\n\nexport const mailtrapGetSendingStatsByDomains = action(\"MAILTRAP_GET_SENDING_STATS_BY_DOMAINS\", {\n slug: \"mailtrap-get-sending-stats-by-domains\",\n name: \"Get Sending Stats by Domains\",\n description: \"Tool to retrieve sending statistics grouped by domains for a Mailtrap account. Use when you need email delivery, bounce, open, click, and spam metrics broken down by sending domain for a specific date range. Supports filtering by domain IDs, sending streams, categories, and email service providers.\",\n input: MailtrapGetSendingStatsByDomainsInput,\n output: MailtrapGetSendingStatsByD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ingStatsByDomainsOutput: z.ZodObject<{
23
23
  bounce_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
24
  delivery_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
25
  delivery_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
- }, z.core.$strip>>;
26
+ }, z.core.$loose>>;
27
27
  sending_domain_id: z.ZodNullable<z.ZodNumber>;
28
- }, z.core.$strip>>;
29
- }, z.core.$strip>;
28
+ }, z.core.$loose>>;
29
+ }, z.core.$loose>;
30
30
  declare const mailtrapGetSendingStatsByDomains: import("@keystrokehq/action").WorkflowActionDefinition<{
31
31
  end_date: string;
32
32
  account_id: number;
@@ -23,10 +23,10 @@ declare const MailtrapGetSendingStatsByDomainsOutput: z.ZodObject<{
23
23
  bounce_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
24
  delivery_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
25
  delivery_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
- }, z.core.$strip>>;
26
+ }, z.core.$loose>>;
27
27
  sending_domain_id: z.ZodNullable<z.ZodNumber>;
28
- }, z.core.$strip>>;
29
- }, z.core.$strip>;
28
+ }, z.core.$loose>>;
29
+ }, z.core.$loose>;
30
30
  declare const mailtrapGetSendingStatsByDomains: import("@keystrokehq/action").WorkflowActionDefinition<{
31
31
  end_date: string;
32
32
  account_id: number;
@@ -21,17 +21,17 @@ const MailtrapGetSendingStatsByDomains_SendingStatsSchema = z.object({
21
21
  bounce_count: z.number().int().describe("Count of bounced emails.").nullable().optional(),
22
22
  delivery_rate: z.number().describe("Proportion of delivered messages (0.0 to 1.0).").nullable().optional(),
23
23
  delivery_count: z.number().int().describe("Number of successfully delivered emails.").nullable().optional()
24
- }).describe("Statistics for a sending domain.");
24
+ }).passthrough().describe("Statistics for a sending domain.");
25
25
  const MailtrapGetSendingStatsByDomains_DomainStatsSchema = z.object({
26
26
  stats: z.array(MailtrapGetSendingStatsByDomains_SendingStatsSchema).describe("Collection of sending statistics for this domain."),
27
27
  sending_domain_id: z.number().int().describe("The unique identifier for the sending domain.").nullable()
28
- }).describe("Statistics for a specific sending domain.");
28
+ }).passthrough().describe("Statistics for a specific sending domain.");
29
29
  const mailtrapGetSendingStatsByDomains = action("MAILTRAP_GET_SENDING_STATS_BY_DOMAINS", {
30
30
  slug: "mailtrap-get-sending-stats-by-domains",
31
31
  name: "Get Sending Stats by Domains",
32
32
  description: "Tool to retrieve sending statistics grouped by domains for a Mailtrap account. Use when you need email delivery, bounce, open, click, and spam metrics broken down by sending domain for a specific date range. Supports filtering by domain IDs, sending streams, categories, and email service providers.",
33
33
  input: MailtrapGetSendingStatsByDomainsInput,
34
- output: z.object({ domains: z.array(MailtrapGetSendingStatsByDomains_DomainStatsSchema).describe("List of domain statistics.") }).describe("Response model containing sending stats grouped by domain.")
34
+ output: z.object({ domains: z.array(MailtrapGetSendingStatsByDomains_DomainStatsSchema).describe("List of domain statistics.") }).passthrough().describe("Response model containing sending stats grouped by domain.")
35
35
  });
36
36
  //#endregion
37
37
  export { mailtrapGetSendingStatsByDomains };
@@ -1 +1 @@
1
- {"version":3,"file":"get-sending-stats-by-domains.mjs","names":[],"sources":["../../src/actions/get-sending-stats-by-domains.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsByDomainsInput = z.object({\n end_date: z.string().describe(\"End date for which to include the results in YYYY-MM-DD format.\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve sending stats.\"),\n categories: z.array(z.string()).describe(\"Categories for which to include the results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for which to include the results in YYYY-MM-DD format.\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams for which to include the results. If not provided, results for all sending streams will be included. Common values: transactional, bulk.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains for which to include the results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers for which to include the results. If not provided, results for all ESPs will be included. Common values: Google, Yahoo, Microsoft, etc.\").optional(),\n}).describe(\"Request model for getting sending stats by domains from Mailtrap.\");\nconst MailtrapGetSendingStatsByDomains_SendingStatsSchema = z.object({\n open_rate: z.number().describe(\"Proportion of opened messages (0.0 to 1.0).\").nullable().optional(),\n spam_rate: z.number().describe(\"Proportion of spam-marked messages (0.0 to 1.0).\").nullable().optional(),\n click_rate: z.number().describe(\"Proportion of clicked messages (0.0 to 1.0).\").nullable().optional(),\n open_count: z.number().int().describe(\"Number of opened emails.\").nullable().optional(),\n spam_count: z.number().int().describe(\"Count of spam complaints.\").nullable().optional(),\n bounce_rate: z.number().describe(\"Proportion of bounced messages (0.0 to 1.0).\").nullable().optional(),\n click_count: z.number().int().describe(\"Count of clicked links in emails.\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Count of bounced emails.\").nullable().optional(),\n delivery_rate: z.number().describe(\"Proportion of delivered messages (0.0 to 1.0).\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Number of successfully delivered emails.\").nullable().optional(),\n}).describe(\"Statistics for a sending domain.\");\nconst MailtrapGetSendingStatsByDomains_DomainStatsSchema = z.object({\n stats: z.array(MailtrapGetSendingStatsByDomains_SendingStatsSchema).describe(\"Collection of sending statistics for this domain.\"),\n sending_domain_id: z.number().int().describe(\"The unique identifier for the sending domain.\").nullable(),\n}).describe(\"Statistics for a specific sending domain.\");\nexport const MailtrapGetSendingStatsByDomainsOutput = z.object({\n domains: z.array(MailtrapGetSendingStatsByDomains_DomainStatsSchema).describe(\"List of domain statistics.\"),\n}).describe(\"Response model containing sending stats grouped by domain.\");\n\nexport const mailtrapGetSendingStatsByDomains = action(\"MAILTRAP_GET_SENDING_STATS_BY_DOMAINS\", {\n slug: \"mailtrap-get-sending-stats-by-domains\",\n name: \"Get Sending Stats by Domains\",\n description: \"Tool to retrieve sending statistics grouped by domains for a Mailtrap account. Use when you need email delivery, bounce, open, click, and spam metrics broken down by sending domain for a specific date range. Supports filtering by domain IDs, sending streams, categories, and email service providers.\",\n input: MailtrapGetSendingStatsByDomainsInput,\n output: MailtrapGetSendingStatsByDomainsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;CACvF,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAChK,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CACnG,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CACnN,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACnM,yBAAyB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;AACpO,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,sDAAsD,EAAE,OAAO;CACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAM,qDAAqD,EAAE,OAAO;CAClE,OAAO,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,mDAAmD;CAChI,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAKvD,MAAa,mCAAmC,OAAO,yCAAyC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,SAAS,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,4BAA4B,EAC5G,CAAC,CAAC,CAAC,SAAS,4DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-sending-stats-by-domains.mjs","names":[],"sources":["../../src/actions/get-sending-stats-by-domains.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsByDomainsInput = z.object({\n end_date: z.string().describe(\"End date for which to include the results in YYYY-MM-DD format.\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve sending stats.\"),\n categories: z.array(z.string()).describe(\"Categories for which to include the results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for which to include the results in YYYY-MM-DD format.\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams for which to include the results. If not provided, results for all sending streams will be included. Common values: transactional, bulk.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains for which to include the results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers for which to include the results. If not provided, results for all ESPs will be included. Common values: Google, Yahoo, Microsoft, etc.\").optional(),\n}).describe(\"Request model for getting sending stats by domains from Mailtrap.\");\nconst MailtrapGetSendingStatsByDomains_SendingStatsSchema = z.object({\n open_rate: z.number().describe(\"Proportion of opened messages (0.0 to 1.0).\").nullable().optional(),\n spam_rate: z.number().describe(\"Proportion of spam-marked messages (0.0 to 1.0).\").nullable().optional(),\n click_rate: z.number().describe(\"Proportion of clicked messages (0.0 to 1.0).\").nullable().optional(),\n open_count: z.number().int().describe(\"Number of opened emails.\").nullable().optional(),\n spam_count: z.number().int().describe(\"Count of spam complaints.\").nullable().optional(),\n bounce_rate: z.number().describe(\"Proportion of bounced messages (0.0 to 1.0).\").nullable().optional(),\n click_count: z.number().int().describe(\"Count of clicked links in emails.\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Count of bounced emails.\").nullable().optional(),\n delivery_rate: z.number().describe(\"Proportion of delivered messages (0.0 to 1.0).\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Number of successfully delivered emails.\").nullable().optional(),\n}).passthrough().describe(\"Statistics for a sending domain.\");\nconst MailtrapGetSendingStatsByDomains_DomainStatsSchema = z.object({\n stats: z.array(MailtrapGetSendingStatsByDomains_SendingStatsSchema).describe(\"Collection of sending statistics for this domain.\"),\n sending_domain_id: z.number().int().describe(\"The unique identifier for the sending domain.\").nullable(),\n}).passthrough().describe(\"Statistics for a specific sending domain.\");\nexport const MailtrapGetSendingStatsByDomainsOutput = z.object({\n domains: z.array(MailtrapGetSendingStatsByDomains_DomainStatsSchema).describe(\"List of domain statistics.\"),\n}).passthrough().describe(\"Response model containing sending stats grouped by domain.\");\n\nexport const mailtrapGetSendingStatsByDomains = action(\"MAILTRAP_GET_SENDING_STATS_BY_DOMAINS\", {\n slug: \"mailtrap-get-sending-stats-by-domains\",\n name: \"Get Sending Stats by Domains\",\n description: \"Tool to retrieve sending statistics grouped by domains for a Mailtrap account. Use when you need email delivery, bounce, open, click, and spam metrics broken down by sending domain for a specific date range. Supports filtering by domain IDs, sending streams, categories, and email service providers.\",\n input: MailtrapGetSendingStatsByDomainsInput,\n output: MailtrapGetSendingStatsByDomainsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;CACvF,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAChK,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CACnG,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CACnN,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACnM,yBAAyB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;AACpO,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,sDAAsD,EAAE,OAAO;CACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD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AAS,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,4BAA4B,EAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAOhB;AACV,CAAC"}
@@ -21,12 +21,12 @@ const MailtrapGetSendingStatsByEsp_SendingStatsSchema = zod.z.object({
21
21
  bounce_count: zod.z.number().int().describe("Count of bounced messages").nullable().optional(),
22
22
  delivery_rate: zod.z.number().describe("Proportion of messages delivered successfully (0.0-1.0)").nullable().optional(),
23
23
  delivery_count: zod.z.number().int().describe("Number of successfully delivered emails").nullable().optional()
24
- }).describe("Statistics for email sending performance.");
24
+ }).passthrough().describe("Statistics for email sending performance.");
25
25
  const MailtrapGetSendingStatsByEsp_EmailServiceProviderStatsSchema = zod.z.object({
26
26
  stats: zod.z.array(MailtrapGetSendingStatsByEsp_SendingStatsSchema).describe("List of sending statistics for this email service provider").nullable().optional(),
27
27
  email_service_provider: zod.z.string().describe("Name of the email service provider (e.g., 'Google', 'Yahoo', 'Microsoft')").nullable().optional()
28
- }).describe("Statistics grouped by email service provider.");
29
- const MailtrapGetSendingStatsByEspOutput = zod.z.object({ stats: zod.z.array(MailtrapGetSendingStatsByEsp_EmailServiceProviderStatsSchema).describe("List of statistics grouped by email service provider").nullable().optional() }).describe("Response containing sending statistics grouped by email service providers.");
28
+ }).passthrough().describe("Statistics grouped by email service provider.");
29
+ const MailtrapGetSendingStatsByEspOutput = zod.z.object({ stats: zod.z.array(MailtrapGetSendingStatsByEsp_EmailServiceProviderStatsSchema).describe("List of statistics grouped by email service provider").nullable().optional() }).passthrough().describe("Response containing sending statistics grouped by email service providers.");
30
30
  const mailtrapGetSendingStatsByEsp = require_action.action("MAILTRAP_GET_SENDING_STATS_BY_ESP", {
31
31
  slug: "mailtrap-get-sending-stats-by-esp",
32
32
  name: "Get Sending Stats by ESP",
@@ -1 +1 @@
1
- {"version":3,"file":"get-sending-stats-by-esp.cjs","names":["z","action"],"sources":["../../src/actions/get-sending-stats-by-esp.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsByEspInput = z.object({\n end_date: z.string().describe(\"End date for which to include the results in YYYY-MM-DD format\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve statistics\"),\n categories: z.array(z.string()).describe(\"Categories for which to include the results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for which to include the results in YYYY-MM-DD format\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams for which to include the results. If not provided, results for all sending streams will be included.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains for which to include the results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers for which to include the results. If not provided, results for all ESPs will be included.\").optional(),\n}).describe(\"Request parameters for retrieving sending statistics grouped by email service providers.\");\nconst MailtrapGetSendingStatsByEsp_SendingStatsSchema = z.object({\n open_rate: z.number().describe(\"Proportion of opened messages (0.0-1.0)\").nullable().optional(),\n spam_rate: z.number().describe(\"Proportion flagged as spam (0.0-1.0)\").nullable().optional(),\n click_rate: z.number().describe(\"Proportion of clicked messages (0.0-1.0)\").nullable().optional(),\n open_count: z.number().int().describe(\"Number of opened emails\").nullable().optional(),\n spam_count: z.number().int().describe(\"Messages marked as spam\").nullable().optional(),\n bounce_rate: z.number().describe(\"Proportion of bounced messages (0.0-1.0)\").nullable().optional(),\n click_count: z.number().int().describe(\"Number of clicked links\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Count of bounced messages\").nullable().optional(),\n delivery_rate: z.number().describe(\"Proportion of messages delivered successfully (0.0-1.0)\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Number of successfully delivered emails\").nullable().optional(),\n}).describe(\"Statistics for email sending performance.\");\nconst MailtrapGetSendingStatsByEsp_EmailServiceProviderStatsSchema = z.object({\n stats: z.array(MailtrapGetSendingStatsByEsp_SendingStatsSchema).describe(\"List of sending statistics for this email service provider\").nullable().optional(),\n email_service_provider: z.string().describe(\"Name of the email service provider (e.g., 'Google', 'Yahoo', 'Microsoft')\").nullable().optional(),\n}).describe(\"Statistics grouped by email service provider.\");\nexport const MailtrapGetSendingStatsByEspOutput = z.object({\n stats: z.array(MailtrapGetSendingStatsByEsp_EmailServiceProviderStatsSchema).describe(\"List of statistics grouped by email service provider\").nullable().optional(),\n}).describe(\"Response containing sending statistics grouped by email service providers.\");\n\nexport const mailtrapGetSendingStatsByEsp = action(\"MAILTRAP_GET_SENDING_STATS_BY_ESP\", {\n slug: \"mailtrap-get-sending-stats-by-esp\",\n name: \"Get Sending Stats by ESP\",\n description: \"Tool to retrieve email sending statistics grouped by email service providers (ESPs) for a specified date range. Returns delivery, bounce, open, click, and spam metrics for each ESP. Use when you need to analyze email performance across different email providers like Google, Yahoo, Microsoft, etc.\",\n input: MailtrapGetSendingStatsByEspInput,\n output: MailtrapGetSendingStatsByEspOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CACnF,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAChK,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAClG,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC/K,oBAAoBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACnM,yBAAyBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mHAAmH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,OAAOA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,OAAOA,IAAAA,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpK,CAAC,CAAC,CAAC,SAAS,4EAA4E;AAExF,MAAa,+BAA+BC,eAAAA,OAAO,qCAAqC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-sending-stats-by-esp.cjs","names":["z","action"],"sources":["../../src/actions/get-sending-stats-by-esp.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsByEspInput = z.object({\n end_date: z.string().describe(\"End date for which to include the results in YYYY-MM-DD format\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve statistics\"),\n categories: z.array(z.string()).describe(\"Categories for which to include the results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for which to include the results in YYYY-MM-DD format\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams for which to include the results. If not provided, results for all sending streams will be included.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains for which to include the results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers for which to include the results. If not provided, results for all ESPs will be included.\").optional(),\n}).describe(\"Request parameters for retrieving sending statistics grouped by email service providers.\");\nconst MailtrapGetSendingStatsByEsp_SendingStatsSchema = z.object({\n open_rate: z.number().describe(\"Proportion of opened messages (0.0-1.0)\").nullable().optional(),\n spam_rate: z.number().describe(\"Proportion flagged as spam (0.0-1.0)\").nullable().optional(),\n click_rate: z.number().describe(\"Proportion of clicked messages (0.0-1.0)\").nullable().optional(),\n open_count: z.number().int().describe(\"Number of opened emails\").nullable().optional(),\n spam_count: z.number().int().describe(\"Messages marked as spam\").nullable().optional(),\n bounce_rate: z.number().describe(\"Proportion of bounced messages (0.0-1.0)\").nullable().optional(),\n click_count: z.number().int().describe(\"Number of clicked links\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Count of bounced messages\").nullable().optional(),\n delivery_rate: z.number().describe(\"Proportion of messages delivered successfully (0.0-1.0)\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Number of successfully delivered emails\").nullable().optional(),\n}).passthrough().describe(\"Statistics for email sending performance.\");\nconst MailtrapGetSendingStatsByEsp_EmailServiceProviderStatsSchema = z.object({\n stats: z.array(MailtrapGetSendingStatsByEsp_SendingStatsSchema).describe(\"List of sending statistics for this email service provider\").nullable().optional(),\n email_service_provider: z.string().describe(\"Name of the email service provider (e.g., 'Google', 'Yahoo', 'Microsoft')\").nullable().optional(),\n}).passthrough().describe(\"Statistics grouped by email service provider.\");\nexport const MailtrapGetSendingStatsByEspOutput = z.object({\n stats: z.array(MailtrapGetSendingStatsByEsp_EmailServiceProviderStatsSchema).describe(\"List of statistics grouped by email service provider\").nullable().optional(),\n}).passthrough().describe(\"Response containing sending statistics grouped by email service providers.\");\n\nexport const mailtrapGetSendingStatsByEsp = action(\"MAILTRAP_GET_SENDING_STATS_BY_ESP\", {\n slug: \"mailtrap-get-sending-stats-by-esp\",\n name: \"Get Sending Stats by ESP\",\n description: \"Tool to retrieve email sending statistics grouped by email service providers (ESPs) for a specified date range. Returns delivery, bounce, open, click, and spam metrics for each ESP. Use when you need to analyze email performance across different email providers like Google, Yahoo, Microsoft, etc.\",\n input: MailtrapGetSendingStatsByEspInput,\n output: MailtrapGetSendingStatsByEspOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC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23,10 +23,10 @@ declare const MailtrapGetSendingStatsByEspOutput: z.ZodObject<{
23
23
  bounce_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
24
  delivery_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
25
  delivery_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
- }, z.core.$strip>>>>;
26
+ }, z.core.$loose>>>>;
27
27
  email_service_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
- }, z.core.$strip>>>>;
29
- }, z.core.$strip>;
28
+ }, z.core.$loose>>>>;
29
+ }, z.core.$loose>;
30
30
  declare const mailtrapGetSendingStatsByEsp: import("@keystrokehq/action").WorkflowActionDefinition<{
31
31
  end_date: string;
32
32
  account_id: number;
@@ -23,10 +23,10 @@ declare const MailtrapGetSendingStatsByEspOutput: z.ZodObject<{
23
23
  bounce_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
24
  delivery_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
25
  delivery_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
- }, z.core.$strip>>>>;
26
+ }, z.core.$loose>>>>;
27
27
  email_service_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
- }, z.core.$strip>>>>;
29
- }, z.core.$strip>;
28
+ }, z.core.$loose>>>>;
29
+ }, z.core.$loose>;
30
30
  declare const mailtrapGetSendingStatsByEsp: import("@keystrokehq/action").WorkflowActionDefinition<{
31
31
  end_date: string;
32
32
  account_id: number;
@@ -21,17 +21,17 @@ const MailtrapGetSendingStatsByEsp_SendingStatsSchema = z.object({
21
21
  bounce_count: z.number().int().describe("Count of bounced messages").nullable().optional(),
22
22
  delivery_rate: z.number().describe("Proportion of messages delivered successfully (0.0-1.0)").nullable().optional(),
23
23
  delivery_count: z.number().int().describe("Number of successfully delivered emails").nullable().optional()
24
- }).describe("Statistics for email sending performance.");
24
+ }).passthrough().describe("Statistics for email sending performance.");
25
25
  const MailtrapGetSendingStatsByEsp_EmailServiceProviderStatsSchema = z.object({
26
26
  stats: z.array(MailtrapGetSendingStatsByEsp_SendingStatsSchema).describe("List of sending statistics for this email service provider").nullable().optional(),
27
27
  email_service_provider: z.string().describe("Name of the email service provider (e.g., 'Google', 'Yahoo', 'Microsoft')").nullable().optional()
28
- }).describe("Statistics grouped by email service provider.");
28
+ }).passthrough().describe("Statistics grouped by email service provider.");
29
29
  const mailtrapGetSendingStatsByEsp = action("MAILTRAP_GET_SENDING_STATS_BY_ESP", {
30
30
  slug: "mailtrap-get-sending-stats-by-esp",
31
31
  name: "Get Sending Stats by ESP",
32
32
  description: "Tool to retrieve email sending statistics grouped by email service providers (ESPs) for a specified date range. Returns delivery, bounce, open, click, and spam metrics for each ESP. Use when you need to analyze email performance across different email providers like Google, Yahoo, Microsoft, etc.",
33
33
  input: MailtrapGetSendingStatsByEspInput,
34
- output: z.object({ stats: z.array(MailtrapGetSendingStatsByEsp_EmailServiceProviderStatsSchema).describe("List of statistics grouped by email service provider").nullable().optional() }).describe("Response containing sending statistics grouped by email service providers.")
34
+ output: z.object({ stats: z.array(MailtrapGetSendingStatsByEsp_EmailServiceProviderStatsSchema).describe("List of statistics grouped by email service provider").nullable().optional() }).passthrough().describe("Response containing sending statistics grouped by email service providers.")
35
35
  });
36
36
  //#endregion
37
37
  export { mailtrapGetSendingStatsByEsp };
@@ -1 +1 @@
1
- {"version":3,"file":"get-sending-stats-by-esp.mjs","names":[],"sources":["../../src/actions/get-sending-stats-by-esp.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsByEspInput = z.object({\n end_date: z.string().describe(\"End date for which to include the results in YYYY-MM-DD format\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve statistics\"),\n categories: z.array(z.string()).describe(\"Categories for which to include the results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for which to include the results in YYYY-MM-DD format\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams for which to include the results. If not provided, results for all sending streams will be included.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains for which to include the results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers for which to include the results. If not provided, results for all ESPs will be included.\").optional(),\n}).describe(\"Request parameters for retrieving sending statistics grouped by email service providers.\");\nconst MailtrapGetSendingStatsByEsp_SendingStatsSchema = z.object({\n open_rate: z.number().describe(\"Proportion of opened messages (0.0-1.0)\").nullable().optional(),\n spam_rate: z.number().describe(\"Proportion flagged as spam (0.0-1.0)\").nullable().optional(),\n click_rate: z.number().describe(\"Proportion of clicked messages (0.0-1.0)\").nullable().optional(),\n open_count: z.number().int().describe(\"Number of opened emails\").nullable().optional(),\n spam_count: z.number().int().describe(\"Messages marked as spam\").nullable().optional(),\n bounce_rate: z.number().describe(\"Proportion of bounced messages (0.0-1.0)\").nullable().optional(),\n click_count: z.number().int().describe(\"Number of clicked links\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Count of bounced messages\").nullable().optional(),\n delivery_rate: z.number().describe(\"Proportion of messages delivered successfully (0.0-1.0)\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Number of successfully delivered emails\").nullable().optional(),\n}).describe(\"Statistics for email sending performance.\");\nconst MailtrapGetSendingStatsByEsp_EmailServiceProviderStatsSchema = z.object({\n stats: z.array(MailtrapGetSendingStatsByEsp_SendingStatsSchema).describe(\"List of sending statistics for this email service provider\").nullable().optional(),\n email_service_provider: z.string().describe(\"Name of the email service provider (e.g., 'Google', 'Yahoo', 'Microsoft')\").nullable().optional(),\n}).describe(\"Statistics grouped by email service provider.\");\nexport const MailtrapGetSendingStatsByEspOutput = z.object({\n stats: z.array(MailtrapGetSendingStatsByEsp_EmailServiceProviderStatsSchema).describe(\"List of statistics grouped by email service provider\").nullable().optional(),\n}).describe(\"Response containing sending statistics grouped by email service providers.\");\n\nexport const mailtrapGetSendingStatsByEsp = action(\"MAILTRAP_GET_SENDING_STATS_BY_ESP\", {\n slug: \"mailtrap-get-sending-stats-by-esp\",\n name: \"Get Sending Stats by ESP\",\n description: \"Tool to retrieve email sending statistics grouped by email service providers (ESPs) for a specified date range. Returns delivery, bounce, open, click, and spam metrics for each ESP. Use when you need to analyze email performance across different email providers like Google, Yahoo, Microsoft, etc.\",\n input: MailtrapGetSendingStatsByEspInput,\n output: MailtrapGetSendingStatsByEspOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CACnF,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAChK,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAClG,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC/K,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACnM,yBAAyB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;AACtL,CAAC,CAAC,CAAC,SAAS,0FAA0F;AACtG,MAAM,kDAAkD,EAAE,OAAO;CAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,YAAY,EAAE,OAAO,CAAC,CAAC,IA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ats-by-esp.mjs","names":[],"sources":["../../src/actions/get-sending-stats-by-esp.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsByEspInput = z.object({\n end_date: z.string().describe(\"End date for which to include the results in YYYY-MM-DD format\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve statistics\"),\n categories: z.array(z.string()).describe(\"Categories for which to include the results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for which to include the results in YYYY-MM-DD format\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams for which to include the results. If not provided, results for all sending streams will be included.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains for which to include the results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers for which to include the results. If not provided, results for all ESPs will be included.\").optional(),\n}).describe(\"Request parameters for retrieving sending statistics grouped by email service providers.\");\nconst MailtrapGetSendingStatsByEsp_SendingStatsSchema = z.object({\n open_rate: z.number().describe(\"Proportion of opened messages (0.0-1.0)\").nullable().optional(),\n spam_rate: z.number().describe(\"Proportion flagged as spam (0.0-1.0)\").nullable().optional(),\n click_rate: z.number().describe(\"Proportion of clicked messages (0.0-1.0)\").nullable().optional(),\n open_count: z.number().int().describe(\"Number of opened emails\").nullable().optional(),\n spam_count: z.number().int().describe(\"Messages marked as spam\").nullable().optional(),\n bounce_rate: z.number().describe(\"Proportion of bounced messages (0.0-1.0)\").nullable().optional(),\n click_count: z.number().int().describe(\"Number of clicked links\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Count of bounced messages\").nullable().optional(),\n delivery_rate: z.number().describe(\"Proportion of messages delivered successfully (0.0-1.0)\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Number of successfully delivered emails\").nullable().optional(),\n}).passthrough().describe(\"Statistics for email sending performance.\");\nconst MailtrapGetSendingStatsByEsp_EmailServiceProviderStatsSchema = z.object({\n stats: z.array(MailtrapGetSendingStatsByEsp_SendingStatsSchema).describe(\"List of sending statistics for this email service provider\").nullable().optional(),\n email_service_provider: z.string().describe(\"Name of the email service provider (e.g., 'Google', 'Yahoo', 'Microsoft')\").nullable().optional(),\n}).passthrough().describe(\"Statistics grouped by email service provider.\");\nexport const MailtrapGetSendingStatsByEspOutput = z.object({\n stats: z.array(MailtrapGetSendingStatsByEsp_EmailServiceProviderStatsSchema).describe(\"List of statistics grouped by email service provider\").nullable().optional(),\n}).passthrough().describe(\"Response containing sending statistics grouped by email service providers.\");\n\nexport const mailtrapGetSendingStatsByEsp = action(\"MAILTRAP_GET_SENDING_STATS_BY_ESP\", {\n slug: \"mailtrap-get-sending-stats-by-esp\",\n name: \"Get Sending Stats by ESP\",\n description: \"Tool to retrieve email sending statistics grouped by email service providers (ESPs) for a specified date range. Returns delivery, bounce, open, click, and spam metrics for each ESP. Use when you need to analyze email performance across different email providers like Google, Yahoo, Microsoft, etc.\",\n input: MailtrapGetSendingStatsByEspInput,\n output: MailtrapGetSendingStatsByEspOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CACnF,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAChK,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAClG,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC/K,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACnM,yBAAyB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;AACtL,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AE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAKzE,MAAa,+BAA+B,OAAO,qCAAqC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATgD,EAAE,OAAO,EACzD,OAAO,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4EAOhB;AACV,CAAC"}
@@ -21,7 +21,7 @@ const MailtrapGetSendingStatsOutput = zod.z.object({
21
21
  bounce_count: zod.z.number().int().describe("Total number of bounced emails.").nullable().optional(),
22
22
  delivery_rate: zod.z.number().describe("Delivery rate as a decimal (e.g., 0.95 means 95%).").nullable().optional(),
23
23
  delivery_count: zod.z.number().int().describe("Total number of delivered emails.").nullable().optional()
24
- }).describe("Response model for Mailtrap sending stats.");
24
+ }).passthrough().describe("Response model for Mailtrap sending stats.");
25
25
  const mailtrapGetSendingStats = require_action.action("MAILTRAP_GET_SENDING_STATS", {
26
26
  slug: "mailtrap-get-sending-stats",
27
27
  name: "Get Sending Stats",
@@ -1 +1 @@
1
- {"version":3,"file":"get-sending-stats.cjs","names":["z","action"],"sources":["../../src/actions/get-sending-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsInput = z.object({\n end_date: z.string().describe(\"End date for which to include the results, in YYYY-MM-DD format.\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve sending statistics.\"),\n categories: z.array(z.string()).describe(\"Categories for which to include the results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for which to include the results, in YYYY-MM-DD format.\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams for which to include the results. If not provided, results for all sending streams will be included.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains for which to include the results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers for which to include the results. If not provided, results for all ESPs will be included.\").optional(),\n}).describe(\"Request model for getting Mailtrap sending stats.\");\nexport const MailtrapGetSendingStatsOutput = z.object({\n open_rate: z.number().describe(\"Open rate as a decimal (e.g., 0.9 means 90%).\").nullable().optional(),\n spam_rate: z.number().describe(\"Spam rate as a decimal (e.g., 0.02 means 2%).\").nullable().optional(),\n click_rate: z.number().describe(\"Click rate as a decimal (e.g., 0.7 means 70%).\").nullable().optional(),\n open_count: z.number().int().describe(\"Total number of email opens.\").nullable().optional(),\n spam_count: z.number().int().describe(\"Total number of emails marked as spam.\").nullable().optional(),\n bounce_rate: z.number().describe(\"Bounce rate as a decimal (e.g., 0.05 means 5%).\").nullable().optional(),\n click_count: z.number().int().describe(\"Total number of email clicks.\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Total number of bounced emails.\").nullable().optional(),\n delivery_rate: z.number().describe(\"Delivery rate as a decimal (e.g., 0.95 means 95%).\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Total number of delivered emails.\").nullable().optional(),\n}).describe(\"Response model for Mailtrap sending stats.\");\n\nexport const mailtrapGetSendingStats = action(\"MAILTRAP_GET_SENDING_STATS\", {\n slug: \"mailtrap-get-sending-stats\",\n name: \"Get Sending Stats\",\n description: \"Tool to retrieve email sending statistics from Mailtrap for a specific account. Use when you need metrics like delivery rate, bounce rate, open rate, click rate, and spam rate for a date range.\",\n input: MailtrapGetSendingStatsInput,\n output: MailtrapGetSendingStatsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAChG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD;CAC5F,YAAYA,IAAAA,EA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,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-sending-stats.cjs","names":["z","action"],"sources":["../../src/actions/get-sending-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsInput = z.object({\n end_date: z.string().describe(\"End date for which to include the results, in YYYY-MM-DD format.\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve sending statistics.\"),\n categories: z.array(z.string()).describe(\"Categories for which to include the results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for which to include the results, in YYYY-MM-DD format.\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams for which to include the results. If not provided, results for all sending streams will be included.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains for which to include the results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers for which to include the results. If not provided, results for all ESPs will be included.\").optional(),\n}).describe(\"Request model for getting Mailtrap sending stats.\");\nexport const MailtrapGetSendingStatsOutput = z.object({\n open_rate: z.number().describe(\"Open rate as a decimal (e.g., 0.9 means 90%).\").nullable().optional(),\n spam_rate: z.number().describe(\"Spam rate as a decimal (e.g., 0.02 means 2%).\").nullable().optional(),\n click_rate: z.number().describe(\"Click rate as a decimal (e.g., 0.7 means 70%).\").nullable().optional(),\n open_count: z.number().int().describe(\"Total number of email opens.\").nullable().optional(),\n spam_count: z.number().int().describe(\"Total number of emails marked as spam.\").nullable().optional(),\n bounce_rate: z.number().describe(\"Bounce rate as a decimal (e.g., 0.05 means 5%).\").nullable().optional(),\n click_count: z.number().int().describe(\"Total number of email clicks.\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Total number of bounced emails.\").nullable().optional(),\n delivery_rate: z.number().describe(\"Delivery rate as a decimal (e.g., 0.95 means 95%).\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Total number of delivered emails.\").nullable().optional(),\n}).passthrough().describe(\"Response model for Mailtrap sending stats.\");\n\nexport const mailtrapGetSendingStats = action(\"MAILTRAP_GET_SENDING_STATS\", {\n slug: \"mailtrap-get-sending-stats\",\n name: \"Get Sending Stats\",\n description: \"Tool to retrieve email sending statistics from Mailtrap for a specific account. Use when you need metrics like delivery rate, bounce rate, open rate, click rate, and spam rate for a date range.\",\n input: MailtrapGetSendingStatsInput,\n output: MailtrapGetSendingStatsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAChG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD;CAC5F,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAChK,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACpG,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC/K,oBAAoBA,IAAAA,EAAE,M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AA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -21,7 +21,7 @@ declare const MailtrapGetSendingStatsOutput: z.ZodObject<{
21
21
  bounce_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
22
  delivery_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
23
  delivery_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
- }, z.core.$strip>;
24
+ }, z.core.$loose>;
25
25
  declare const mailtrapGetSendingStats: import("@keystrokehq/action").WorkflowActionDefinition<{
26
26
  end_date: string;
27
27
  account_id: number;
@@ -21,7 +21,7 @@ declare const MailtrapGetSendingStatsOutput: z.ZodObject<{
21
21
  bounce_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
22
  delivery_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
23
  delivery_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
- }, z.core.$strip>;
24
+ }, z.core.$loose>;
25
25
  declare const mailtrapGetSendingStats: import("@keystrokehq/action").WorkflowActionDefinition<{
26
26
  end_date: string;
27
27
  account_id: number;
@@ -24,7 +24,7 @@ const mailtrapGetSendingStats = action("MAILTRAP_GET_SENDING_STATS", {
24
24
  bounce_count: z.number().int().describe("Total number of bounced emails.").nullable().optional(),
25
25
  delivery_rate: z.number().describe("Delivery rate as a decimal (e.g., 0.95 means 95%).").nullable().optional(),
26
26
  delivery_count: z.number().int().describe("Total number of delivered emails.").nullable().optional()
27
- }).describe("Response model for Mailtrap sending stats.")
27
+ }).passthrough().describe("Response model for Mailtrap sending stats.")
28
28
  });
29
29
  //#endregion
30
30
  export { mailtrapGetSendingStats };
@@ -1 +1 @@
1
- {"version":3,"file":"get-sending-stats.mjs","names":[],"sources":["../../src/actions/get-sending-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsInput = z.object({\n end_date: z.string().describe(\"End date for which to include the results, in YYYY-MM-DD format.\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve sending statistics.\"),\n categories: z.array(z.string()).describe(\"Categories for which to include the results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for which to include the results, in YYYY-MM-DD format.\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams for which to include the results. If not provided, results for all sending streams will be included.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains for which to include the results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers for which to include the results. If not provided, results for all ESPs will be included.\").optional(),\n}).describe(\"Request model for getting Mailtrap sending stats.\");\nexport const MailtrapGetSendingStatsOutput = z.object({\n open_rate: z.number().describe(\"Open rate as a decimal (e.g., 0.9 means 90%).\").nullable().optional(),\n spam_rate: z.number().describe(\"Spam rate as a decimal (e.g., 0.02 means 2%).\").nullable().optional(),\n click_rate: z.number().describe(\"Click rate as a decimal (e.g., 0.7 means 70%).\").nullable().optional(),\n open_count: z.number().int().describe(\"Total number of email opens.\").nullable().optional(),\n spam_count: z.number().int().describe(\"Total number of emails marked as spam.\").nullable().optional(),\n bounce_rate: z.number().describe(\"Bounce rate as a decimal (e.g., 0.05 means 5%).\").nullable().optional(),\n click_count: z.number().int().describe(\"Total number of email clicks.\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Total number of bounced emails.\").nullable().optional(),\n delivery_rate: z.number().describe(\"Delivery rate as a decimal (e.g., 0.95 means 95%).\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Total number of delivered emails.\").nullable().optional(),\n}).describe(\"Response model for Mailtrap sending stats.\");\n\nexport const mailtrapGetSendingStats = action(\"MAILTRAP_GET_SENDING_STATS\", {\n slug: \"mailtrap-get-sending-stats\",\n name: \"Get Sending Stats\",\n description: \"Tool to retrieve email sending statistics from Mailtrap for a specific account. Use when you need metrics like delivery rate, bounce rate, open rate, click rate, and spam rate for a date range.\",\n input: MailtrapGetSendingStatsInput,\n output: MailtrapGetSendingStatsOutput,\n});\n"],"mappings":";;AA0BA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1B0C,EAAE,OAAO;EACnD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EAChG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD;EAC5F,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;EAChK,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EACpG,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;EAC/K,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;EACnM,yBAAyB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CACtL,CAAC,CAAC,CAAC,SAAS,mDAkBH;CACP,QAlB2C,EAAE,OAAO;EACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-sending-stats.mjs","names":[],"sources":["../../src/actions/get-sending-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsInput = z.object({\n end_date: z.string().describe(\"End date for which to include the results, in YYYY-MM-DD format.\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve sending statistics.\"),\n categories: z.array(z.string()).describe(\"Categories for which to include the results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for which to include the results, in YYYY-MM-DD format.\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams for which to include the results. If not provided, results for all sending streams will be included.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains for which to include the results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers for which to include the results. If not provided, results for all ESPs will be included.\").optional(),\n}).describe(\"Request model for getting Mailtrap sending stats.\");\nexport const MailtrapGetSendingStatsOutput = z.object({\n open_rate: z.number().describe(\"Open rate as a decimal (e.g., 0.9 means 90%).\").nullable().optional(),\n spam_rate: z.number().describe(\"Spam rate as a decimal (e.g., 0.02 means 2%).\").nullable().optional(),\n click_rate: z.number().describe(\"Click rate as a decimal (e.g., 0.7 means 70%).\").nullable().optional(),\n open_count: z.number().int().describe(\"Total number of email opens.\").nullable().optional(),\n spam_count: z.number().int().describe(\"Total number of emails marked as spam.\").nullable().optional(),\n bounce_rate: z.number().describe(\"Bounce rate as a decimal (e.g., 0.05 means 5%).\").nullable().optional(),\n click_count: z.number().int().describe(\"Total number of email clicks.\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Total number of bounced emails.\").nullable().optional(),\n delivery_rate: z.number().describe(\"Delivery rate as a decimal (e.g., 0.95 means 95%).\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Total number of delivered emails.\").nullable().optional(),\n}).passthrough().describe(\"Response model for Mailtrap sending stats.\");\n\nexport const mailtrapGetSendingStats = action(\"MAILTRAP_GET_SENDING_STATS\", {\n slug: \"mailtrap-get-sending-stats\",\n name: \"Get Sending Stats\",\n description: \"Tool to retrieve email sending statistics from Mailtrap for a specific account. Use when you need metrics like delivery rate, bounce rate, open rate, click rate, and spam rate for a date range.\",\n input: MailtrapGetSendingStatsInput,\n output: MailtrapGetSendingStatsOutput,\n});\n"],"mappings":";;AA0BA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1B0C,EAAE,OAAO;EACnD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EAChG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD;EAC5F,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAA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O,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
@@ -7,7 +7,7 @@ const MailtrapImportContactsInput = zod.z.object({
7
7
  fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom fields for a contact.").optional(),
8
8
  list_ids_excluded: zod.z.array(zod.z.number().int()).describe("List of mailing list IDs to exclude this contact from.").optional(),
9
9
  list_ids_included: zod.z.array(zod.z.number().int()).describe("List of mailing list IDs to add this contact to.").optional()
10
- }).describe("Individual contact to import.")).describe("List of contacts to import. Each contact must have an email address and can have optional custom fields and list associations."),
10
+ }).passthrough().describe("Individual contact to import.")).describe("List of contacts to import. Each contact must have an email address and can have optional custom fields and list associations."),
11
11
  account_id: zod.z.number().int().describe("Unique account ID for the Mailtrap account.")
12
12
  }).describe("Request schema for ImportContacts.");
13
13
  const MailtrapImportContactsOutput = zod.z.object({
@@ -16,7 +16,7 @@ const MailtrapImportContactsOutput = zod.z.object({
16
16
  created_contacts_count: zod.z.number().int().describe("Number of new contacts created. Only provided when status is 'finished'.").nullable().optional(),
17
17
  updated_contacts_count: zod.z.number().int().describe("Number of existing contacts updated. Only provided when status is 'finished'.").nullable().optional(),
18
18
  contacts_over_limit_count: zod.z.number().int().describe("Number of contacts that exceeded account limits. Only provided when status is 'finished'.").nullable().optional()
19
- }).describe("Response schema for ImportContacts.");
19
+ }).passthrough().describe("Response schema for ImportContacts.");
20
20
  const mailtrapImportContacts = require_action.action("MAILTRAP_IMPORT_CONTACTS", {
21
21
  slug: "mailtrap-import-contacts",
22
22
  name: "Import Contacts",
@@ -1 +1 @@
1
- {"version":3,"file":"import-contacts.cjs","names":["z","action"],"sources":["../../src/actions/import-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapImportContactsInput = z.object({\n contacts: z.array(z.object({\n email: z.string().describe(\"Email address of the contact.\"),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields for a contact.\").optional(),\n list_ids_excluded: z.array(z.number().int()).describe(\"List of mailing list IDs to exclude this contact from.\").optional(),\n list_ids_included: z.array(z.number().int()).describe(\"List of mailing list IDs to add this contact to.\").optional(),\n}).describe(\"Individual contact to import.\")).describe(\"List of contacts to import. Each contact must have an email address and can have optional custom fields and list associations.\"),\n account_id: z.number().int().describe(\"Unique account ID for the Mailtrap account.\"),\n}).describe(\"Request schema for ImportContacts.\");\nexport const MailtrapImportContactsOutput = z.object({\n id: z.number().int().describe(\"Unique identifier for the import job.\").nullable().optional(),\n status: z.string().describe(\"Status of the import job. Values: 'created', 'started', 'finished', or 'failed'.\").nullable().optional(),\n created_contacts_count: z.number().int().describe(\"Number of new contacts created. Only provided when status is 'finished'.\").nullable().optional(),\n updated_contacts_count: z.number().int().describe(\"Number of existing contacts updated. Only provided when status is 'finished'.\").nullable().optional(),\n contacts_over_limit_count: z.number().int().describe(\"Number of contacts that exceeded account limits. Only provided when status is 'finished'.\").nullable().optional(),\n}).describe(\"Response schema for ImportContacts.\");\n\nexport const mailtrapImportContacts = action(\"MAILTRAP_IMPORT_CONTACTS\", {\n slug: \"mailtrap-import-contacts\",\n name: \"Import Contacts\",\n description: \"Tool to import contacts in bulk to Mailtrap. Use when you need to add or update multiple contacts at once. The import operation is asynchronous and returns a job ID that can be used to check the status later.\",\n input: MailtrapImportContactsInput,\n output: MailtrapImportContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,QAAQA,IAAAA,EAAE,OAAOA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,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"import-contacts.cjs","names":["z","action"],"sources":["../../src/actions/import-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapImportContactsInput = z.object({\n contacts: z.array(z.object({\n email: z.string().describe(\"Email address of the contact.\"),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields for a contact.\").optional(),\n list_ids_excluded: z.array(z.number().int()).describe(\"List of mailing list IDs to exclude this contact from.\").optional(),\n list_ids_included: z.array(z.number().int()).describe(\"List of mailing list IDs to add this contact to.\").optional(),\n}).passthrough().describe(\"Individual contact to import.\")).describe(\"List of contacts to import. Each contact must have an email address and can have optional custom fields and list associations.\"),\n account_id: z.number().int().describe(\"Unique account ID for the Mailtrap account.\"),\n}).describe(\"Request schema for ImportContacts.\");\nexport const MailtrapImportContactsOutput = z.object({\n id: z.number().int().describe(\"Unique identifier for the import job.\").nullable().optional(),\n status: z.string().describe(\"Status of the import job. Values: 'created', 'started', 'finished', or 'failed'.\").nullable().optional(),\n created_contacts_count: z.number().int().describe(\"Number of new contacts created. Only provided when status is 'finished'.\").nullable().optional(),\n updated_contacts_count: z.number().int().describe(\"Number of existing contacts updated. Only provided when status is 'finished'.\").nullable().optional(),\n contacts_over_limit_count: z.number().int().describe(\"Number of contacts that exceeded account limits. Only provided when status is 'finished'.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for ImportContacts.\");\n\nexport const mailtrapImportContacts = action(\"MAILTRAP_IMPORT_CONTACTS\", {\n slug: \"mailtrap-import-contacts\",\n name: \"Import Contacts\",\n description: \"Tool to import contacts in bulk to Mailtrap. Use when you need to add or update multiple contacts at once. The import operation is asynchronous and returns a job ID that can be used to check the status later.\",\n input: MailtrapImportContactsInput,\n output: MailtrapImportContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,UAAUA,IAAAA,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