@keystrokehq/resend 0.0.16 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (542) hide show
  1. package/README.md +11 -74
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-contact-to-segment.cjs +19 -0
  7. package/dist/actions/add-contact-to-segment.cjs.map +1 -0
  8. package/dist/actions/add-contact-to-segment.d.cts +17 -0
  9. package/dist/actions/add-contact-to-segment.d.cts.map +1 -0
  10. package/dist/actions/add-contact-to-segment.d.mts +17 -0
  11. package/dist/actions/add-contact-to-segment.d.mts.map +1 -0
  12. package/dist/actions/add-contact-to-segment.mjs +16 -0
  13. package/dist/actions/add-contact-to-segment.mjs.map +1 -0
  14. package/dist/actions/cancel-email.cjs +19 -0
  15. package/dist/actions/cancel-email.cjs.map +1 -0
  16. package/dist/actions/cancel-email.d.cts +16 -0
  17. package/dist/actions/cancel-email.d.cts.map +1 -0
  18. package/dist/actions/cancel-email.d.mts +16 -0
  19. package/dist/actions/cancel-email.d.mts.map +1 -0
  20. package/dist/actions/cancel-email.mjs +16 -0
  21. package/dist/actions/cancel-email.mjs.map +1 -0
  22. package/dist/actions/create-api-key.cjs +23 -0
  23. package/dist/actions/create-api-key.cjs.map +1 -0
  24. package/dist/actions/create-api-key.d.cts +23 -0
  25. package/dist/actions/create-api-key.d.cts.map +1 -0
  26. package/dist/actions/create-api-key.d.mts +23 -0
  27. package/dist/actions/create-api-key.d.mts.map +1 -0
  28. package/dist/actions/create-api-key.mjs +20 -0
  29. package/dist/actions/create-api-key.mjs.map +1 -0
  30. package/dist/actions/create-audience.cjs +20 -0
  31. package/dist/actions/create-audience.cjs.map +1 -0
  32. package/dist/actions/create-audience.d.cts +17 -0
  33. package/dist/actions/create-audience.d.cts.map +1 -0
  34. package/dist/actions/create-audience.d.mts +17 -0
  35. package/dist/actions/create-audience.d.mts.map +1 -0
  36. package/dist/actions/create-audience.mjs +17 -0
  37. package/dist/actions/create-audience.mjs.map +1 -0
  38. package/dist/actions/create-contact-property.cjs +23 -0
  39. package/dist/actions/create-contact-property.cjs.map +1 -0
  40. package/dist/actions/create-contact-property.d.cts +23 -0
  41. package/dist/actions/create-contact-property.d.cts.map +1 -0
  42. package/dist/actions/create-contact-property.d.mts +23 -0
  43. package/dist/actions/create-contact-property.d.mts.map +1 -0
  44. package/dist/actions/create-contact-property.mjs +20 -0
  45. package/dist/actions/create-contact-property.mjs.map +1 -0
  46. package/dist/actions/create-contact-v2.cjs +33 -0
  47. package/dist/actions/create-contact-v2.cjs.map +1 -0
  48. package/dist/actions/create-contact-v2.d.cts +47 -0
  49. package/dist/actions/create-contact-v2.d.cts.map +1 -0
  50. package/dist/actions/create-contact-v2.d.mts +47 -0
  51. package/dist/actions/create-contact-v2.d.mts.map +1 -0
  52. package/dist/actions/create-contact-v2.mjs +30 -0
  53. package/dist/actions/create-contact-v2.mjs.map +1 -0
  54. package/dist/actions/create-contact.cjs +25 -0
  55. package/dist/actions/create-contact.cjs.map +1 -0
  56. package/dist/actions/create-contact.d.cts +24 -0
  57. package/dist/actions/create-contact.d.cts.map +1 -0
  58. package/dist/actions/create-contact.d.mts +24 -0
  59. package/dist/actions/create-contact.d.mts.map +1 -0
  60. package/dist/actions/create-contact.mjs +22 -0
  61. package/dist/actions/create-contact.mjs.map +1 -0
  62. package/dist/actions/create-domain.cjs +45 -0
  63. package/dist/actions/create-domain.cjs.map +1 -0
  64. package/dist/actions/create-domain.d.cts +39 -0
  65. package/dist/actions/create-domain.d.cts.map +1 -0
  66. package/dist/actions/create-domain.d.mts +39 -0
  67. package/dist/actions/create-domain.d.mts.map +1 -0
  68. package/dist/actions/create-domain.mjs +44 -0
  69. package/dist/actions/create-domain.mjs.map +1 -0
  70. package/dist/actions/create-template.cjs +36 -0
  71. package/dist/actions/create-template.cjs.map +1 -0
  72. package/dist/actions/create-template.d.cts +41 -0
  73. package/dist/actions/create-template.d.cts.map +1 -0
  74. package/dist/actions/create-template.d.mts +41 -0
  75. package/dist/actions/create-template.d.mts.map +1 -0
  76. package/dist/actions/create-template.mjs +33 -0
  77. package/dist/actions/create-template.mjs.map +1 -0
  78. package/dist/actions/create-topic.cjs +24 -0
  79. package/dist/actions/create-topic.cjs.map +1 -0
  80. package/dist/actions/create-topic.d.cts +28 -0
  81. package/dist/actions/create-topic.d.cts.map +1 -0
  82. package/dist/actions/create-topic.d.mts +28 -0
  83. package/dist/actions/create-topic.d.mts.map +1 -0
  84. package/dist/actions/create-topic.mjs +21 -0
  85. package/dist/actions/create-topic.mjs.map +1 -0
  86. package/dist/actions/create-webhook.cjs +23 -0
  87. package/dist/actions/create-webhook.cjs.map +1 -0
  88. package/dist/actions/create-webhook.d.cts +19 -0
  89. package/dist/actions/create-webhook.d.cts.map +1 -0
  90. package/dist/actions/create-webhook.d.mts +19 -0
  91. package/dist/actions/create-webhook.d.mts.map +1 -0
  92. package/dist/actions/create-webhook.mjs +20 -0
  93. package/dist/actions/create-webhook.mjs.map +1 -0
  94. package/dist/actions/delete-api-key.cjs +20 -0
  95. package/dist/actions/delete-api-key.cjs.map +1 -0
  96. package/dist/actions/delete-api-key.d.cts +17 -0
  97. package/dist/actions/delete-api-key.d.cts.map +1 -0
  98. package/dist/actions/delete-api-key.d.mts +17 -0
  99. package/dist/actions/delete-api-key.d.mts.map +1 -0
  100. package/dist/actions/delete-api-key.mjs +17 -0
  101. package/dist/actions/delete-api-key.mjs.map +1 -0
  102. package/dist/actions/delete-audience.cjs +19 -0
  103. package/dist/actions/delete-audience.cjs.map +1 -0
  104. package/dist/actions/delete-audience.d.cts +16 -0
  105. package/dist/actions/delete-audience.d.cts.map +1 -0
  106. package/dist/actions/delete-audience.d.mts +16 -0
  107. package/dist/actions/delete-audience.d.mts.map +1 -0
  108. package/dist/actions/delete-audience.mjs +16 -0
  109. package/dist/actions/delete-audience.mjs.map +1 -0
  110. package/dist/actions/delete-contact-by-id.cjs +20 -0
  111. package/dist/actions/delete-contact-by-id.cjs.map +1 -0
  112. package/dist/actions/delete-contact-by-id.d.cts +17 -0
  113. package/dist/actions/delete-contact-by-id.d.cts.map +1 -0
  114. package/dist/actions/delete-contact-by-id.d.mts +17 -0
  115. package/dist/actions/delete-contact-by-id.d.mts.map +1 -0
  116. package/dist/actions/delete-contact-by-id.mjs +17 -0
  117. package/dist/actions/delete-contact-by-id.mjs.map +1 -0
  118. package/dist/actions/delete-contact-property.cjs +20 -0
  119. package/dist/actions/delete-contact-property.cjs.map +1 -0
  120. package/dist/actions/delete-contact-property.d.cts +17 -0
  121. package/dist/actions/delete-contact-property.d.cts.map +1 -0
  122. package/dist/actions/delete-contact-property.d.mts +17 -0
  123. package/dist/actions/delete-contact-property.d.mts.map +1 -0
  124. package/dist/actions/delete-contact-property.mjs +17 -0
  125. package/dist/actions/delete-contact-property.mjs.map +1 -0
  126. package/dist/actions/delete-contact.cjs +24 -0
  127. package/dist/actions/delete-contact.cjs.map +1 -0
  128. package/dist/actions/delete-contact.d.cts +21 -0
  129. package/dist/actions/delete-contact.d.cts.map +1 -0
  130. package/dist/actions/delete-contact.d.mts +21 -0
  131. package/dist/actions/delete-contact.d.mts.map +1 -0
  132. package/dist/actions/delete-contact.mjs +21 -0
  133. package/dist/actions/delete-contact.mjs.map +1 -0
  134. package/dist/actions/delete-domain.cjs +20 -0
  135. package/dist/actions/delete-domain.cjs.map +1 -0
  136. package/dist/actions/delete-domain.d.cts +17 -0
  137. package/dist/actions/delete-domain.d.cts.map +1 -0
  138. package/dist/actions/delete-domain.d.mts +17 -0
  139. package/dist/actions/delete-domain.d.mts.map +1 -0
  140. package/dist/actions/delete-domain.mjs +17 -0
  141. package/dist/actions/delete-domain.mjs.map +1 -0
  142. package/dist/actions/delete-segment.cjs +20 -0
  143. package/dist/actions/delete-segment.cjs.map +1 -0
  144. package/dist/actions/delete-segment.d.cts +17 -0
  145. package/dist/actions/delete-segment.d.cts.map +1 -0
  146. package/dist/actions/delete-segment.d.mts +17 -0
  147. package/dist/actions/delete-segment.d.mts.map +1 -0
  148. package/dist/actions/delete-segment.mjs +17 -0
  149. package/dist/actions/delete-segment.mjs.map +1 -0
  150. package/dist/actions/delete-template.cjs +20 -0
  151. package/dist/actions/delete-template.cjs.map +1 -0
  152. package/dist/actions/delete-template.d.cts +17 -0
  153. package/dist/actions/delete-template.d.cts.map +1 -0
  154. package/dist/actions/delete-template.d.mts +17 -0
  155. package/dist/actions/delete-template.d.mts.map +1 -0
  156. package/dist/actions/delete-template.mjs +17 -0
  157. package/dist/actions/delete-template.mjs.map +1 -0
  158. package/dist/actions/delete-topic.cjs +20 -0
  159. package/dist/actions/delete-topic.cjs.map +1 -0
  160. package/dist/actions/delete-topic.d.cts +17 -0
  161. package/dist/actions/delete-topic.d.cts.map +1 -0
  162. package/dist/actions/delete-topic.d.mts +17 -0
  163. package/dist/actions/delete-topic.d.mts.map +1 -0
  164. package/dist/actions/delete-topic.mjs +17 -0
  165. package/dist/actions/delete-topic.mjs.map +1 -0
  166. package/dist/actions/delete-webhook.cjs +20 -0
  167. package/dist/actions/delete-webhook.cjs.map +1 -0
  168. package/dist/actions/delete-webhook.d.cts +17 -0
  169. package/dist/actions/delete-webhook.d.cts.map +1 -0
  170. package/dist/actions/delete-webhook.d.mts +17 -0
  171. package/dist/actions/delete-webhook.d.mts.map +1 -0
  172. package/dist/actions/delete-webhook.mjs +17 -0
  173. package/dist/actions/delete-webhook.mjs.map +1 -0
  174. package/dist/actions/duplicate-template.cjs +19 -0
  175. package/dist/actions/duplicate-template.cjs.map +1 -0
  176. package/dist/actions/duplicate-template.d.cts +16 -0
  177. package/dist/actions/duplicate-template.d.cts.map +1 -0
  178. package/dist/actions/duplicate-template.d.mts +16 -0
  179. package/dist/actions/duplicate-template.d.mts.map +1 -0
  180. package/dist/actions/duplicate-template.mjs +16 -0
  181. package/dist/actions/duplicate-template.mjs.map +1 -0
  182. package/dist/actions/get-contact-property.cjs +23 -0
  183. package/dist/actions/get-contact-property.cjs.map +1 -0
  184. package/dist/actions/get-contact-property.d.cts +20 -0
  185. package/dist/actions/get-contact-property.d.cts.map +1 -0
  186. package/dist/actions/get-contact-property.d.mts +20 -0
  187. package/dist/actions/get-contact-property.d.mts.map +1 -0
  188. package/dist/actions/get-contact-property.mjs +20 -0
  189. package/dist/actions/get-contact-property.mjs.map +1 -0
  190. package/dist/actions/get-contact.cjs +25 -0
  191. package/dist/actions/get-contact.cjs.map +1 -0
  192. package/dist/actions/get-contact.d.cts +22 -0
  193. package/dist/actions/get-contact.d.cts.map +1 -0
  194. package/dist/actions/get-contact.d.mts +22 -0
  195. package/dist/actions/get-contact.d.mts.map +1 -0
  196. package/dist/actions/get-contact.mjs +22 -0
  197. package/dist/actions/get-contact.mjs.map +1 -0
  198. package/dist/actions/get-email-attachment.cjs +30 -0
  199. package/dist/actions/get-email-attachment.cjs.map +1 -0
  200. package/dist/actions/get-email-attachment.d.cts +28 -0
  201. package/dist/actions/get-email-attachment.d.cts.map +1 -0
  202. package/dist/actions/get-email-attachment.d.mts +28 -0
  203. package/dist/actions/get-email-attachment.d.mts.map +1 -0
  204. package/dist/actions/get-email-attachment.mjs +29 -0
  205. package/dist/actions/get-email-attachment.mjs.map +1 -0
  206. package/dist/actions/get-segment.cjs +23 -0
  207. package/dist/actions/get-segment.cjs.map +1 -0
  208. package/dist/actions/get-segment.d.cts +20 -0
  209. package/dist/actions/get-segment.d.cts.map +1 -0
  210. package/dist/actions/get-segment.d.mts +20 -0
  211. package/dist/actions/get-segment.d.mts.map +1 -0
  212. package/dist/actions/get-segment.mjs +20 -0
  213. package/dist/actions/get-segment.mjs.map +1 -0
  214. package/dist/actions/get-template.cjs +47 -0
  215. package/dist/actions/get-template.cjs.map +1 -0
  216. package/dist/actions/get-template.d.cts +40 -0
  217. package/dist/actions/get-template.d.cts.map +1 -0
  218. package/dist/actions/get-template.d.mts +40 -0
  219. package/dist/actions/get-template.d.mts.map +1 -0
  220. package/dist/actions/get-template.mjs +46 -0
  221. package/dist/actions/get-template.mjs.map +1 -0
  222. package/dist/actions/get-topic.cjs +22 -0
  223. package/dist/actions/get-topic.cjs.map +1 -0
  224. package/dist/actions/get-topic.d.cts +19 -0
  225. package/dist/actions/get-topic.d.cts.map +1 -0
  226. package/dist/actions/get-topic.d.mts +19 -0
  227. package/dist/actions/get-topic.d.mts.map +1 -0
  228. package/dist/actions/get-topic.mjs +19 -0
  229. package/dist/actions/get-topic.mjs.map +1 -0
  230. package/dist/actions/get-webhook.cjs +24 -0
  231. package/dist/actions/get-webhook.cjs.map +1 -0
  232. package/dist/actions/get-webhook.d.cts +21 -0
  233. package/dist/actions/get-webhook.d.cts.map +1 -0
  234. package/dist/actions/get-webhook.d.mts +21 -0
  235. package/dist/actions/get-webhook.d.mts.map +1 -0
  236. package/dist/actions/get-webhook.mjs +21 -0
  237. package/dist/actions/get-webhook.mjs.map +1 -0
  238. package/dist/actions/index.cjs +125 -0
  239. package/dist/actions/index.d.cts +63 -0
  240. package/dist/actions/index.d.mts +63 -0
  241. package/dist/actions/index.mjs +63 -0
  242. package/dist/actions/list-all-contacts.cjs +32 -0
  243. package/dist/actions/list-all-contacts.cjs.map +1 -0
  244. package/dist/actions/list-all-contacts.d.cts +28 -0
  245. package/dist/actions/list-all-contacts.d.cts.map +1 -0
  246. package/dist/actions/list-all-contacts.d.mts +28 -0
  247. package/dist/actions/list-all-contacts.d.mts.map +1 -0
  248. package/dist/actions/list-all-contacts.mjs +31 -0
  249. package/dist/actions/list-all-contacts.mjs.map +1 -0
  250. package/dist/actions/list-api-keys.cjs +29 -0
  251. package/dist/actions/list-api-keys.cjs.map +1 -0
  252. package/dist/actions/list-api-keys.d.cts +25 -0
  253. package/dist/actions/list-api-keys.d.cts.map +1 -0
  254. package/dist/actions/list-api-keys.d.mts +25 -0
  255. package/dist/actions/list-api-keys.d.mts.map +1 -0
  256. package/dist/actions/list-api-keys.mjs +28 -0
  257. package/dist/actions/list-api-keys.mjs.map +1 -0
  258. package/dist/actions/list-audiences.cjs +29 -0
  259. package/dist/actions/list-audiences.cjs.map +1 -0
  260. package/dist/actions/list-audiences.d.cts +25 -0
  261. package/dist/actions/list-audiences.d.cts.map +1 -0
  262. package/dist/actions/list-audiences.d.mts +25 -0
  263. package/dist/actions/list-audiences.d.mts.map +1 -0
  264. package/dist/actions/list-audiences.mjs +28 -0
  265. package/dist/actions/list-audiences.mjs.map +1 -0
  266. package/dist/actions/list-broadcasts.cjs +32 -0
  267. package/dist/actions/list-broadcasts.cjs.map +1 -0
  268. package/dist/actions/list-broadcasts.d.cts +28 -0
  269. package/dist/actions/list-broadcasts.d.cts.map +1 -0
  270. package/dist/actions/list-broadcasts.d.mts +28 -0
  271. package/dist/actions/list-broadcasts.d.mts.map +1 -0
  272. package/dist/actions/list-broadcasts.mjs +31 -0
  273. package/dist/actions/list-broadcasts.mjs.map +1 -0
  274. package/dist/actions/list-contact-properties.cjs +31 -0
  275. package/dist/actions/list-contact-properties.cjs.map +1 -0
  276. package/dist/actions/list-contact-properties.d.cts +27 -0
  277. package/dist/actions/list-contact-properties.d.cts.map +1 -0
  278. package/dist/actions/list-contact-properties.d.mts +27 -0
  279. package/dist/actions/list-contact-properties.d.mts.map +1 -0
  280. package/dist/actions/list-contact-properties.mjs +30 -0
  281. package/dist/actions/list-contact-properties.mjs.map +1 -0
  282. package/dist/actions/list-contact-segments.cjs +30 -0
  283. package/dist/actions/list-contact-segments.cjs.map +1 -0
  284. package/dist/actions/list-contact-segments.d.cts +27 -0
  285. package/dist/actions/list-contact-segments.d.cts.map +1 -0
  286. package/dist/actions/list-contact-segments.d.mts +27 -0
  287. package/dist/actions/list-contact-segments.d.mts.map +1 -0
  288. package/dist/actions/list-contact-segments.mjs +29 -0
  289. package/dist/actions/list-contact-segments.mjs.map +1 -0
  290. package/dist/actions/list-contact-topics.cjs +31 -0
  291. package/dist/actions/list-contact-topics.cjs.map +1 -0
  292. package/dist/actions/list-contact-topics.d.cts +28 -0
  293. package/dist/actions/list-contact-topics.d.cts.map +1 -0
  294. package/dist/actions/list-contact-topics.d.mts +28 -0
  295. package/dist/actions/list-contact-topics.d.mts.map +1 -0
  296. package/dist/actions/list-contact-topics.mjs +30 -0
  297. package/dist/actions/list-contact-topics.mjs.map +1 -0
  298. package/dist/actions/list-contacts.cjs +33 -0
  299. package/dist/actions/list-contacts.cjs.map +1 -0
  300. package/dist/actions/list-contacts.d.cts +30 -0
  301. package/dist/actions/list-contacts.d.cts.map +1 -0
  302. package/dist/actions/list-contacts.d.mts +30 -0
  303. package/dist/actions/list-contacts.d.mts.map +1 -0
  304. package/dist/actions/list-contacts.mjs +32 -0
  305. package/dist/actions/list-contacts.mjs.map +1 -0
  306. package/dist/actions/list-domains.cjs +23 -0
  307. package/dist/actions/list-domains.cjs.map +1 -0
  308. package/dist/actions/list-domains.d.cts +17 -0
  309. package/dist/actions/list-domains.d.cts.map +1 -0
  310. package/dist/actions/list-domains.d.mts +17 -0
  311. package/dist/actions/list-domains.d.mts.map +1 -0
  312. package/dist/actions/list-domains.mjs +22 -0
  313. package/dist/actions/list-domains.mjs.map +1 -0
  314. package/dist/actions/list-email-attachments.cjs +35 -0
  315. package/dist/actions/list-email-attachments.cjs.map +1 -0
  316. package/dist/actions/list-email-attachments.d.cts +32 -0
  317. package/dist/actions/list-email-attachments.d.cts.map +1 -0
  318. package/dist/actions/list-email-attachments.d.mts +32 -0
  319. package/dist/actions/list-email-attachments.d.mts.map +1 -0
  320. package/dist/actions/list-email-attachments.mjs +34 -0
  321. package/dist/actions/list-email-attachments.mjs.map +1 -0
  322. package/dist/actions/list-emails.cjs +38 -0
  323. package/dist/actions/list-emails.cjs.map +1 -0
  324. package/dist/actions/list-emails.d.cts +34 -0
  325. package/dist/actions/list-emails.d.cts.map +1 -0
  326. package/dist/actions/list-emails.d.mts +34 -0
  327. package/dist/actions/list-emails.d.mts.map +1 -0
  328. package/dist/actions/list-emails.mjs +37 -0
  329. package/dist/actions/list-emails.mjs.map +1 -0
  330. package/dist/actions/list-received-emails.cjs +36 -0
  331. package/dist/actions/list-received-emails.cjs.map +1 -0
  332. package/dist/actions/list-received-emails.d.cts +32 -0
  333. package/dist/actions/list-received-emails.d.cts.map +1 -0
  334. package/dist/actions/list-received-emails.d.mts +32 -0
  335. package/dist/actions/list-received-emails.d.mts.map +1 -0
  336. package/dist/actions/list-received-emails.mjs +35 -0
  337. package/dist/actions/list-received-emails.mjs.map +1 -0
  338. package/dist/actions/list-segments.cjs +30 -0
  339. package/dist/actions/list-segments.cjs.map +1 -0
  340. package/dist/actions/list-segments.d.cts +26 -0
  341. package/dist/actions/list-segments.d.cts.map +1 -0
  342. package/dist/actions/list-segments.d.mts +26 -0
  343. package/dist/actions/list-segments.d.mts.map +1 -0
  344. package/dist/actions/list-segments.mjs +29 -0
  345. package/dist/actions/list-segments.mjs.map +1 -0
  346. package/dist/actions/list-templates.cjs +33 -0
  347. package/dist/actions/list-templates.cjs.map +1 -0
  348. package/dist/actions/list-templates.d.cts +29 -0
  349. package/dist/actions/list-templates.d.cts.map +1 -0
  350. package/dist/actions/list-templates.d.mts +29 -0
  351. package/dist/actions/list-templates.d.mts.map +1 -0
  352. package/dist/actions/list-templates.mjs +32 -0
  353. package/dist/actions/list-templates.mjs.map +1 -0
  354. package/dist/actions/list-topics.cjs +30 -0
  355. package/dist/actions/list-topics.cjs.map +1 -0
  356. package/dist/actions/list-topics.d.cts +26 -0
  357. package/dist/actions/list-topics.d.cts.map +1 -0
  358. package/dist/actions/list-topics.d.mts +26 -0
  359. package/dist/actions/list-topics.d.mts.map +1 -0
  360. package/dist/actions/list-topics.mjs +29 -0
  361. package/dist/actions/list-topics.mjs.map +1 -0
  362. package/dist/actions/list-webhooks.cjs +31 -0
  363. package/dist/actions/list-webhooks.cjs.map +1 -0
  364. package/dist/actions/list-webhooks.d.cts +27 -0
  365. package/dist/actions/list-webhooks.d.cts.map +1 -0
  366. package/dist/actions/list-webhooks.d.mts +27 -0
  367. package/dist/actions/list-webhooks.d.mts.map +1 -0
  368. package/dist/actions/list-webhooks.mjs +30 -0
  369. package/dist/actions/list-webhooks.mjs.map +1 -0
  370. package/dist/actions/publish-template.cjs +19 -0
  371. package/dist/actions/publish-template.cjs.map +1 -0
  372. package/dist/actions/publish-template.d.cts +16 -0
  373. package/dist/actions/publish-template.d.cts.map +1 -0
  374. package/dist/actions/publish-template.d.mts +16 -0
  375. package/dist/actions/publish-template.d.mts.map +1 -0
  376. package/dist/actions/publish-template.mjs +16 -0
  377. package/dist/actions/publish-template.mjs.map +1 -0
  378. package/dist/actions/remove-contact-from-segment.cjs +22 -0
  379. package/dist/actions/remove-contact-from-segment.cjs.map +1 -0
  380. package/dist/actions/remove-contact-from-segment.d.cts +18 -0
  381. package/dist/actions/remove-contact-from-segment.d.cts.map +1 -0
  382. package/dist/actions/remove-contact-from-segment.d.mts +18 -0
  383. package/dist/actions/remove-contact-from-segment.d.mts.map +1 -0
  384. package/dist/actions/remove-contact-from-segment.mjs +19 -0
  385. package/dist/actions/remove-contact-from-segment.mjs.map +1 -0
  386. package/dist/actions/retrieve-audience.cjs +21 -0
  387. package/dist/actions/retrieve-audience.cjs.map +1 -0
  388. package/dist/actions/retrieve-audience.d.cts +18 -0
  389. package/dist/actions/retrieve-audience.d.cts.map +1 -0
  390. package/dist/actions/retrieve-audience.d.mts +18 -0
  391. package/dist/actions/retrieve-audience.d.mts.map +1 -0
  392. package/dist/actions/retrieve-audience.mjs +18 -0
  393. package/dist/actions/retrieve-audience.mjs.map +1 -0
  394. package/dist/actions/retrieve-contact.cjs +27 -0
  395. package/dist/actions/retrieve-contact.cjs.map +1 -0
  396. package/dist/actions/retrieve-contact.d.cts +23 -0
  397. package/dist/actions/retrieve-contact.d.cts.map +1 -0
  398. package/dist/actions/retrieve-contact.d.mts +23 -0
  399. package/dist/actions/retrieve-contact.d.mts.map +1 -0
  400. package/dist/actions/retrieve-contact.mjs +24 -0
  401. package/dist/actions/retrieve-contact.mjs.map +1 -0
  402. package/dist/actions/retrieve-domain.cjs +23 -0
  403. package/dist/actions/retrieve-domain.cjs.map +1 -0
  404. package/dist/actions/retrieve-domain.d.cts +20 -0
  405. package/dist/actions/retrieve-domain.d.cts.map +1 -0
  406. package/dist/actions/retrieve-domain.d.mts +20 -0
  407. package/dist/actions/retrieve-domain.d.mts.map +1 -0
  408. package/dist/actions/retrieve-domain.mjs +20 -0
  409. package/dist/actions/retrieve-domain.mjs.map +1 -0
  410. package/dist/actions/retrieve-email.cjs +29 -0
  411. package/dist/actions/retrieve-email.cjs.map +1 -0
  412. package/dist/actions/retrieve-email.d.cts +26 -0
  413. package/dist/actions/retrieve-email.d.cts.map +1 -0
  414. package/dist/actions/retrieve-email.d.mts +26 -0
  415. package/dist/actions/retrieve-email.d.mts.map +1 -0
  416. package/dist/actions/retrieve-email.mjs +26 -0
  417. package/dist/actions/retrieve-email.mjs.map +1 -0
  418. package/dist/actions/send-batch-emails.cjs +31 -0
  419. package/dist/actions/send-batch-emails.cjs.map +1 -0
  420. package/dist/actions/send-batch-emails.d.cts +41 -0
  421. package/dist/actions/send-batch-emails.d.cts.map +1 -0
  422. package/dist/actions/send-batch-emails.d.mts +41 -0
  423. package/dist/actions/send-batch-emails.d.mts.map +1 -0
  424. package/dist/actions/send-batch-emails.mjs +30 -0
  425. package/dist/actions/send-batch-emails.mjs.map +1 -0
  426. package/dist/actions/send-email.cjs +31 -0
  427. package/dist/actions/send-email.cjs.map +1 -0
  428. package/dist/actions/send-email.d.cts +36 -0
  429. package/dist/actions/send-email.d.cts.map +1 -0
  430. package/dist/actions/send-email.d.mts +36 -0
  431. package/dist/actions/send-email.d.mts.map +1 -0
  432. package/dist/actions/send-email.mjs +28 -0
  433. package/dist/actions/send-email.mjs.map +1 -0
  434. package/dist/actions/update-broadcast.cjs +30 -0
  435. package/dist/actions/update-broadcast.cjs.map +1 -0
  436. package/dist/actions/update-broadcast.d.cts +34 -0
  437. package/dist/actions/update-broadcast.d.cts.map +1 -0
  438. package/dist/actions/update-broadcast.d.mts +34 -0
  439. package/dist/actions/update-broadcast.d.mts.map +1 -0
  440. package/dist/actions/update-broadcast.mjs +27 -0
  441. package/dist/actions/update-broadcast.mjs.map +1 -0
  442. package/dist/actions/update-contact-property.cjs +26 -0
  443. package/dist/actions/update-contact-property.cjs.map +1 -0
  444. package/dist/actions/update-contact-property.d.cts +18 -0
  445. package/dist/actions/update-contact-property.d.cts.map +1 -0
  446. package/dist/actions/update-contact-property.d.mts +18 -0
  447. package/dist/actions/update-contact-property.d.mts.map +1 -0
  448. package/dist/actions/update-contact-property.mjs +23 -0
  449. package/dist/actions/update-contact-property.mjs.map +1 -0
  450. package/dist/actions/update-contact.cjs +24 -0
  451. package/dist/actions/update-contact.cjs.map +1 -0
  452. package/dist/actions/update-contact.d.cts +22 -0
  453. package/dist/actions/update-contact.d.cts.map +1 -0
  454. package/dist/actions/update-contact.d.mts +22 -0
  455. package/dist/actions/update-contact.d.mts.map +1 -0
  456. package/dist/actions/update-contact.mjs +21 -0
  457. package/dist/actions/update-contact.mjs.map +1 -0
  458. package/dist/actions/update-domain.cjs +28 -0
  459. package/dist/actions/update-domain.cjs.map +1 -0
  460. package/dist/actions/update-domain.d.cts +29 -0
  461. package/dist/actions/update-domain.d.cts.map +1 -0
  462. package/dist/actions/update-domain.d.mts +29 -0
  463. package/dist/actions/update-domain.d.mts.map +1 -0
  464. package/dist/actions/update-domain.mjs +25 -0
  465. package/dist/actions/update-domain.mjs.map +1 -0
  466. package/dist/actions/update-email.cjs +22 -0
  467. package/dist/actions/update-email.cjs.map +1 -0
  468. package/dist/actions/update-email.d.cts +18 -0
  469. package/dist/actions/update-email.d.cts.map +1 -0
  470. package/dist/actions/update-email.d.mts +18 -0
  471. package/dist/actions/update-email.d.mts.map +1 -0
  472. package/dist/actions/update-email.mjs +19 -0
  473. package/dist/actions/update-email.mjs.map +1 -0
  474. package/dist/actions/update-template.cjs +38 -0
  475. package/dist/actions/update-template.cjs.map +1 -0
  476. package/dist/actions/update-template.d.cts +40 -0
  477. package/dist/actions/update-template.d.cts.map +1 -0
  478. package/dist/actions/update-template.d.mts +40 -0
  479. package/dist/actions/update-template.d.mts.map +1 -0
  480. package/dist/actions/update-template.mjs +35 -0
  481. package/dist/actions/update-template.mjs.map +1 -0
  482. package/dist/actions/update-topic.cjs +22 -0
  483. package/dist/actions/update-topic.cjs.map +1 -0
  484. package/dist/actions/update-topic.d.cts +18 -0
  485. package/dist/actions/update-topic.d.cts.map +1 -0
  486. package/dist/actions/update-topic.d.mts +18 -0
  487. package/dist/actions/update-topic.d.mts.map +1 -0
  488. package/dist/actions/update-topic.mjs +19 -0
  489. package/dist/actions/update-topic.mjs.map +1 -0
  490. package/dist/actions/update-webhook.cjs +24 -0
  491. package/dist/actions/update-webhook.cjs.map +1 -0
  492. package/dist/actions/update-webhook.d.cts +25 -0
  493. package/dist/actions/update-webhook.d.cts.map +1 -0
  494. package/dist/actions/update-webhook.d.mts +25 -0
  495. package/dist/actions/update-webhook.d.mts.map +1 -0
  496. package/dist/actions/update-webhook.mjs +21 -0
  497. package/dist/actions/update-webhook.mjs.map +1 -0
  498. package/dist/actions/verify-domain.cjs +19 -0
  499. package/dist/actions/verify-domain.cjs.map +1 -0
  500. package/dist/actions/verify-domain.d.cts +16 -0
  501. package/dist/actions/verify-domain.d.cts.map +1 -0
  502. package/dist/actions/verify-domain.d.mts +16 -0
  503. package/dist/actions/verify-domain.d.mts.map +1 -0
  504. package/dist/actions/verify-domain.mjs +16 -0
  505. package/dist/actions/verify-domain.mjs.map +1 -0
  506. package/dist/app.cjs +9 -0
  507. package/dist/app.cjs.map +1 -0
  508. package/dist/app.d.cts +5 -0
  509. package/dist/app.d.cts.map +1 -0
  510. package/dist/app.d.mts +5 -0
  511. package/dist/app.d.mts.map +1 -0
  512. package/dist/app.mjs +10 -0
  513. package/dist/app.mjs.map +1 -0
  514. package/dist/catalog.cjs +21 -0
  515. package/dist/catalog.cjs.map +1 -0
  516. package/dist/catalog.d.cts +22 -0
  517. package/dist/catalog.d.cts.map +1 -0
  518. package/dist/catalog.d.mts +22 -0
  519. package/dist/catalog.d.mts.map +1 -0
  520. package/dist/catalog.mjs +21 -0
  521. package/dist/catalog.mjs.map +1 -0
  522. package/dist/execute.cjs +18 -0
  523. package/dist/execute.cjs.map +1 -0
  524. package/dist/execute.mjs +18 -0
  525. package/dist/execute.mjs.map +1 -0
  526. package/dist/index.cjs +130 -0
  527. package/dist/index.d.cts +65 -0
  528. package/dist/index.d.mts +65 -4
  529. package/dist/index.mjs +66 -5
  530. package/package.json +31 -53
  531. package/LICENSE +0 -21
  532. package/dist/credential-sets/index.d.mts +0 -2
  533. package/dist/credential-sets/index.mjs +0 -3
  534. package/dist/emails-DNEKKuhw.mjs +0 -590
  535. package/dist/operations/index.d.mts +0 -2
  536. package/dist/operations/index.mjs +0 -3
  537. package/dist/resend.credential-set-BVQIXE4k.mjs +0 -18
  538. package/dist/resend.credential-set-CO_XYnvV.d.mts +0 -16
  539. package/dist/schemas/index.d.mts +0 -1292
  540. package/dist/schemas/index.mjs +0 -3
  541. package/dist/verify-resend-domain.operation-BusUhEql.d.mts +0 -1818
  542. package/dist/verify-resend-domain.operation-ClVQJYPC.mjs +0 -1481
@@ -0,0 +1,23 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-contact-property.d.ts
4
+ declare const ResendCreateContactPropertyInput: z.ZodObject<{
5
+ key: z.ZodString;
6
+ type: z.ZodEnum<{
7
+ string: "string";
8
+ number: "number";
9
+ }>;
10
+ fallbackValue: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ declare const ResendCreateContactPropertyOutput: z.ZodObject<{
13
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, z.core.$strip>;
16
+ declare const resendCreateContactProperty: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ key: string;
18
+ type: "string" | "number";
19
+ fallbackValue?: string | undefined;
20
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ //#endregion
22
+ export { resendCreateContactProperty };
23
+ //# sourceMappingURL=create-contact-property.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-contact-property.d.mts","names":[],"sources":["../../src/actions/create-contact-property.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;cAKhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAKjC,2BAAA,gCAA2B,wBAAA"}
@@ -0,0 +1,20 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const resendCreateContactProperty = action("RESEND_CREATE_CONTACT_PROPERTY", {
4
+ slug: "resend-create-contact-property",
5
+ name: "Create Contact Property",
6
+ description: "Tool to create a new contact property in Resend. Use when you need to define custom fields for contacts.",
7
+ input: z.object({
8
+ key: z.string().describe("The key of the contact property. Must be alphanumeric and underscore only, max 50 characters. Case sensitive."),
9
+ type: z.enum(["string", "number"]).describe("The type of the contact property."),
10
+ fallbackValue: z.string().describe("The fallback value for the property. Must match the type of the property.").optional()
11
+ }),
12
+ output: z.object({
13
+ id: z.string().describe("The ID of the contact property.").nullable().optional(),
14
+ object: z.string().describe("The object type of the response.").nullable().optional()
15
+ })
16
+ });
17
+ //#endregion
18
+ export { resendCreateContactProperty };
19
+
20
+ //# sourceMappingURL=create-contact-property.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-contact-property.mjs","names":[],"sources":["../../src/actions/create-contact-property.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ResendCreateContactPropertyInput = z.object({\n key: z.string().describe(\"The key of the contact property. Must be alphanumeric and underscore only, max 50 characters. Case sensitive.\"),\n type: z.enum([\"string\", \"number\"]).describe(\"The type of the contact property.\"),\n fallbackValue: z.string().describe(\"The fallback value for the property. Must match the type of the property.\").optional(),\n});\nexport const ResendCreateContactPropertyOutput = z.object({\n id: z.string().describe(\"The ID of the contact property.\").nullable().optional(),\n object: z.string().describe(\"The object type of the response.\").nullable().optional(),\n});\n\nexport const resendCreateContactProperty = action(\"RESEND_CREATE_CONTACT_PROPERTY\", {\n slug: \"resend-create-contact-property\",\n name: \"Create Contact Property\",\n description: \"Tool to create a new contact property in Resend. Use when you need to define custom fields for contacts.\",\n input: ResendCreateContactPropertyInput,\n output: ResendCreateContactPropertyOutput,\n});\n"],"mappings":";;AAcA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd8C,EAAE,OAAO;EACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;EACxI,MAAM,EAAE,KAAK,CAAC,UAAU,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC;EAC/E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAC3H,CAUS;CACP,QAV+C,EAAE,OAAO;EACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,CAOU;AACV,CAAC"}
@@ -0,0 +1,33 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-contact-v2.ts
4
+ const ResendCreateContactV2Input = zod.z.object({
5
+ email: zod.z.string().describe("The email address of the contact."),
6
+ topics: zod.z.array(zod.z.object({
7
+ id: zod.z.string().describe("The ID of the topic."),
8
+ subscription: zod.z.enum(["opt_in", "opt_out"]).describe("The subscription status for this topic - either 'opt_in' or 'opt_out'.")
9
+ }).describe("Topic subscription preference for the contact.")).describe("List of topic subscriptions with ID and subscription status (opt_in or opt_out).").optional(),
10
+ segments: zod.z.array(zod.z.object({ id: zod.z.string().describe("The ID of the segment to enroll the contact in.") }).describe("Segment to enroll the contact in.")).describe("List of segment IDs to enroll the contact in.").optional(),
11
+ last_name: zod.z.string().describe("The last name of the contact.").optional(),
12
+ first_name: zod.z.string().describe("The first name of the contact.").optional(),
13
+ properties: zod.z.array(zod.z.object({
14
+ key: zod.z.string().describe("The key name for the custom property."),
15
+ value: zod.z.string().describe("The value for the custom property.")
16
+ }).describe("Custom key-value pair for contact properties.")).describe("Custom key-value pairs for the contact. Each property must have a key and value.").optional(),
17
+ unsubscribed: zod.z.boolean().describe("Contact's global subscription status; when true, the contact opts out of all broadcasts.").optional()
18
+ });
19
+ const ResendCreateContactV2Output = zod.z.object({
20
+ id: zod.z.string().describe("The unique identifier of the created contact.").nullable().optional(),
21
+ object: zod.z.string().describe("The type of object, which is 'contact'.").nullable().optional()
22
+ });
23
+ const resendCreateContactV2 = require_action.action("RESEND_CREATE_CONTACT_V2", {
24
+ slug: "resend-create-contact-v2",
25
+ name: "Create Contact V2",
26
+ description: "Tool to create a new contact in Resend. Use when you need to add a contact to Resend without specifying an audience.",
27
+ input: ResendCreateContactV2Input,
28
+ output: ResendCreateContactV2Output
29
+ });
30
+ //#endregion
31
+ exports.resendCreateContactV2 = resendCreateContactV2;
32
+
33
+ //# sourceMappingURL=create-contact-v2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-contact-v2.cjs","names":["z","action"],"sources":["../../src/actions/create-contact-v2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ResendCreateContactV2Input = z.object({\n email: z.string().describe(\"The email address of the contact.\"),\n topics: z.array(z.object({\n id: z.string().describe(\"The ID of the topic.\"),\n subscription: z.enum([\"opt_in\", \"opt_out\"]).describe(\"The subscription status for this topic - either 'opt_in' or 'opt_out'.\"),\n}).describe(\"Topic subscription preference for the contact.\")).describe(\"List of topic subscriptions with ID and subscription status (opt_in or opt_out).\").optional(),\n segments: z.array(z.object({\n id: z.string().describe(\"The ID of the segment to enroll the contact in.\"),\n}).describe(\"Segment to enroll the contact in.\")).describe(\"List of segment IDs to enroll the contact in.\").optional(),\n last_name: z.string().describe(\"The last name of the contact.\").optional(),\n first_name: z.string().describe(\"The first name of the contact.\").optional(),\n properties: z.array(z.object({\n key: z.string().describe(\"The key name for the custom property.\"),\n value: z.string().describe(\"The value for the custom property.\"),\n}).describe(\"Custom key-value pair for contact properties.\")).describe(\"Custom key-value pairs for the contact. Each property must have a key and value.\").optional(),\n unsubscribed: z.boolean().describe(\"Contact's global subscription status; when true, the contact opts out of all broadcasts.\").optional(),\n});\nexport const ResendCreateContactV2Output = z.object({\n id: z.string().describe(\"The unique identifier of the created contact.\").nullable().optional(),\n object: z.string().describe(\"The type of object, which is 'contact'.\").nullable().optional(),\n});\n\nexport const resendCreateContactV2 = action(\"RESEND_CREATE_CONTACT_V2\", {\n slug: \"resend-create-contact-v2\",\n name: \"Create Contact V2\",\n description: \"Tool to create a new contact in Resend. Use when you need to add a contact to Resend without specifying an audience.\",\n input: ResendCreateContactV2Input,\n output: ResendCreateContactV2Output,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC9D,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAC9C,cAAcA,IAAAA,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,wEAAwE;CAC/H,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACnK,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EAC3B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EAC3E,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACnH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC3E,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CACjE,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAClK,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;AAC1I,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,47 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-contact-v2.d.ts
4
+ declare const ResendCreateContactV2Input: z.ZodObject<{
5
+ email: z.ZodString;
6
+ topics: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
+ id: z.ZodString;
8
+ subscription: z.ZodEnum<{
9
+ opt_in: "opt_in";
10
+ opt_out: "opt_out";
11
+ }>;
12
+ }, z.core.$strip>>>;
13
+ segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
+ id: z.ZodString;
15
+ }, z.core.$strip>>>;
16
+ last_name: z.ZodOptional<z.ZodString>;
17
+ first_name: z.ZodOptional<z.ZodString>;
18
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
19
+ key: z.ZodString;
20
+ value: z.ZodString;
21
+ }, z.core.$strip>>>;
22
+ unsubscribed: z.ZodOptional<z.ZodBoolean>;
23
+ }, z.core.$strip>;
24
+ declare const ResendCreateContactV2Output: z.ZodObject<{
25
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ }, z.core.$strip>;
28
+ declare const resendCreateContactV2: import("@keystrokehq/action").WorkflowActionDefinition<{
29
+ email: string;
30
+ topics?: {
31
+ id: string;
32
+ subscription: "opt_in" | "opt_out";
33
+ }[] | undefined;
34
+ segments?: {
35
+ id: string;
36
+ }[] | undefined;
37
+ last_name?: string | undefined;
38
+ first_name?: string | undefined;
39
+ properties?: {
40
+ key: string;
41
+ value: string;
42
+ }[] | undefined;
43
+ unsubscribed?: boolean | undefined;
44
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
45
+ //#endregion
46
+ export { resendCreateContactV2 };
47
+ //# sourceMappingURL=create-contact-v2.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-contact-v2.d.cts","names":[],"sources":["../../src/actions/create-contact-v2.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAiB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
@@ -0,0 +1,47 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-contact-v2.d.ts
4
+ declare const ResendCreateContactV2Input: z.ZodObject<{
5
+ email: z.ZodString;
6
+ topics: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
+ id: z.ZodString;
8
+ subscription: z.ZodEnum<{
9
+ opt_in: "opt_in";
10
+ opt_out: "opt_out";
11
+ }>;
12
+ }, z.core.$strip>>>;
13
+ segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
+ id: z.ZodString;
15
+ }, z.core.$strip>>>;
16
+ last_name: z.ZodOptional<z.ZodString>;
17
+ first_name: z.ZodOptional<z.ZodString>;
18
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
19
+ key: z.ZodString;
20
+ value: z.ZodString;
21
+ }, z.core.$strip>>>;
22
+ unsubscribed: z.ZodOptional<z.ZodBoolean>;
23
+ }, z.core.$strip>;
24
+ declare const ResendCreateContactV2Output: z.ZodObject<{
25
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ }, z.core.$strip>;
28
+ declare const resendCreateContactV2: import("@keystrokehq/action").WorkflowActionDefinition<{
29
+ email: string;
30
+ topics?: {
31
+ id: string;
32
+ subscription: "opt_in" | "opt_out";
33
+ }[] | undefined;
34
+ segments?: {
35
+ id: string;
36
+ }[] | undefined;
37
+ last_name?: string | undefined;
38
+ first_name?: string | undefined;
39
+ properties?: {
40
+ key: string;
41
+ value: string;
42
+ }[] | undefined;
43
+ unsubscribed?: boolean | undefined;
44
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
45
+ //#endregion
46
+ export { resendCreateContactV2 };
47
+ //# sourceMappingURL=create-contact-v2.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-contact-v2.d.mts","names":[],"sources":["../../src/actions/create-contact-v2.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAiB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
@@ -0,0 +1,30 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const resendCreateContactV2 = action("RESEND_CREATE_CONTACT_V2", {
4
+ slug: "resend-create-contact-v2",
5
+ name: "Create Contact V2",
6
+ description: "Tool to create a new contact in Resend. Use when you need to add a contact to Resend without specifying an audience.",
7
+ input: z.object({
8
+ email: z.string().describe("The email address of the contact."),
9
+ topics: z.array(z.object({
10
+ id: z.string().describe("The ID of the topic."),
11
+ subscription: z.enum(["opt_in", "opt_out"]).describe("The subscription status for this topic - either 'opt_in' or 'opt_out'.")
12
+ }).describe("Topic subscription preference for the contact.")).describe("List of topic subscriptions with ID and subscription status (opt_in or opt_out).").optional(),
13
+ segments: z.array(z.object({ id: z.string().describe("The ID of the segment to enroll the contact in.") }).describe("Segment to enroll the contact in.")).describe("List of segment IDs to enroll the contact in.").optional(),
14
+ last_name: z.string().describe("The last name of the contact.").optional(),
15
+ first_name: z.string().describe("The first name of the contact.").optional(),
16
+ properties: z.array(z.object({
17
+ key: z.string().describe("The key name for the custom property."),
18
+ value: z.string().describe("The value for the custom property.")
19
+ }).describe("Custom key-value pair for contact properties.")).describe("Custom key-value pairs for the contact. Each property must have a key and value.").optional(),
20
+ unsubscribed: z.boolean().describe("Contact's global subscription status; when true, the contact opts out of all broadcasts.").optional()
21
+ }),
22
+ output: z.object({
23
+ id: z.string().describe("The unique identifier of the created contact.").nullable().optional(),
24
+ object: z.string().describe("The type of object, which is 'contact'.").nullable().optional()
25
+ })
26
+ });
27
+ //#endregion
28
+ export { resendCreateContactV2 };
29
+
30
+ //# sourceMappingURL=create-contact-v2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-contact-v2.mjs","names":[],"sources":["../../src/actions/create-contact-v2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ResendCreateContactV2Input = z.object({\n email: z.string().describe(\"The email address of the contact.\"),\n topics: z.array(z.object({\n id: z.string().describe(\"The ID of the topic.\"),\n subscription: z.enum([\"opt_in\", \"opt_out\"]).describe(\"The subscription status for this topic - either 'opt_in' or 'opt_out'.\"),\n}).describe(\"Topic subscription preference for the contact.\")).describe(\"List of topic subscriptions with ID and subscription status (opt_in or opt_out).\").optional(),\n segments: z.array(z.object({\n id: z.string().describe(\"The ID of the segment to enroll the contact in.\"),\n}).describe(\"Segment to enroll the contact in.\")).describe(\"List of segment IDs to enroll the contact in.\").optional(),\n last_name: z.string().describe(\"The last name of the contact.\").optional(),\n first_name: z.string().describe(\"The first name of the contact.\").optional(),\n properties: z.array(z.object({\n key: z.string().describe(\"The key name for the custom property.\"),\n value: z.string().describe(\"The value for the custom property.\"),\n}).describe(\"Custom key-value pair for contact properties.\")).describe(\"Custom key-value pairs for the contact. Each property must have a key and value.\").optional(),\n unsubscribed: z.boolean().describe(\"Contact's global subscription status; when true, the contact opts out of all broadcasts.\").optional(),\n});\nexport const ResendCreateContactV2Output = z.object({\n id: z.string().describe(\"The unique identifier of the created contact.\").nullable().optional(),\n object: z.string().describe(\"The type of object, which is 'contact'.\").nullable().optional(),\n});\n\nexport const resendCreateContactV2 = action(\"RESEND_CREATE_CONTACT_V2\", {\n slug: \"resend-create-contact-v2\",\n name: \"Create Contact V2\",\n description: \"Tool to create a new contact in Resend. Use when you need to add a contact to Resend without specifying an audience.\",\n input: ResendCreateContactV2Input,\n output: ResendCreateContactV2Output,\n});\n"],"mappings":";;AA0BA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1BwC,EAAE,OAAO;EACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAC9D,QAAQ,EAAE,MAAM,EAAE,OAAO;GACzB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;GAC9C,cAAc,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,wEAAwE;EAC/H,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EACnK,UAAU,EAAE,MAAM,EAAE,OAAO,EAC3B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EAC3E,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACnH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC3E,YAAY,EAAE,MAAM,EAAE,OAAO;GAC7B,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;GAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EACjE,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EAClK,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC1I,CAUS;CACP,QAVyC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,CAOU;AACV,CAAC"}
@@ -0,0 +1,25 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-contact.ts
4
+ const ResendCreateContactInput = zod.z.object({
5
+ email: zod.z.string().describe("The email address of the contact. Must be a valid RFC-compliant email address."),
6
+ lastName: zod.z.string().describe("The last name of the contact.").optional(),
7
+ firstName: zod.z.string().describe("The first name of the contact.").optional(),
8
+ audienceId: zod.z.string().describe("The Audience ID."),
9
+ unsubscribed: zod.z.boolean().describe("The subscription status.").optional()
10
+ });
11
+ const ResendCreateContactOutput = zod.z.object({
12
+ id: zod.z.string().describe("The id of the created contact.").nullable().optional(),
13
+ object: zod.z.string().describe("The type of object, which is 'contact'.").nullable().optional()
14
+ });
15
+ const resendCreateContact = require_action.action("RESEND_CREATE_CONTACT", {
16
+ slug: "resend-create-contact",
17
+ name: "Create Contact",
18
+ description: "Create a contact in Resend.",
19
+ input: ResendCreateContactInput,
20
+ output: ResendCreateContactOutput
21
+ });
22
+ //#endregion
23
+ exports.resendCreateContact = resendCreateContact;
24
+
25
+ //# sourceMappingURL=create-contact.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-contact.cjs","names":["z","action"],"sources":["../../src/actions/create-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ResendCreateContactInput = z.object({\n email: z.string().describe(\"The email address of the contact. Must be a valid RFC-compliant email address.\"),\n lastName: z.string().describe(\"The last name of the contact.\").optional(),\n firstName: z.string().describe(\"The first name of the contact.\").optional(),\n audienceId: z.string().describe(\"The Audience ID.\"),\n unsubscribed: z.boolean().describe(\"The subscription status.\").optional(),\n});\nexport const ResendCreateContactOutput = z.object({\n id: z.string().describe(\"The id of the created contact.\").nullable().optional(),\n object: z.string().describe(\"The type of object, which is 'contact'.\").nullable().optional(),\n});\n\nexport const resendCreateContact = action(\"RESEND_CREATE_CONTACT\", {\n slug: \"resend-create-contact\",\n name: \"Create Contact\",\n description: \"Create a contact in Resend.\",\n input: ResendCreateContactInput,\n output: ResendCreateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;CAC3G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAClD,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AAC1E,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-contact.d.ts
4
+ declare const ResendCreateContactInput: z.ZodObject<{
5
+ email: z.ZodString;
6
+ lastName: z.ZodOptional<z.ZodString>;
7
+ firstName: z.ZodOptional<z.ZodString>;
8
+ audienceId: z.ZodString;
9
+ unsubscribed: z.ZodOptional<z.ZodBoolean>;
10
+ }, z.core.$strip>;
11
+ declare const ResendCreateContactOutput: z.ZodObject<{
12
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ }, z.core.$strip>;
15
+ declare const resendCreateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ email: string;
17
+ audienceId: string;
18
+ lastName?: string | undefined;
19
+ firstName?: string | undefined;
20
+ unsubscribed?: boolean | undefined;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ //#endregion
23
+ export { resendCreateContact };
24
+ //# sourceMappingURL=create-contact.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-contact.d.cts","names":[],"sources":["../../src/actions/create-contact.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;cAOxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -0,0 +1,24 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-contact.d.ts
4
+ declare const ResendCreateContactInput: z.ZodObject<{
5
+ email: z.ZodString;
6
+ lastName: z.ZodOptional<z.ZodString>;
7
+ firstName: z.ZodOptional<z.ZodString>;
8
+ audienceId: z.ZodString;
9
+ unsubscribed: z.ZodOptional<z.ZodBoolean>;
10
+ }, z.core.$strip>;
11
+ declare const ResendCreateContactOutput: z.ZodObject<{
12
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ }, z.core.$strip>;
15
+ declare const resendCreateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ email: string;
17
+ audienceId: string;
18
+ lastName?: string | undefined;
19
+ firstName?: string | undefined;
20
+ unsubscribed?: boolean | undefined;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ //#endregion
23
+ export { resendCreateContact };
24
+ //# sourceMappingURL=create-contact.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-contact.d.mts","names":[],"sources":["../../src/actions/create-contact.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;cAOxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -0,0 +1,22 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const resendCreateContact = action("RESEND_CREATE_CONTACT", {
4
+ slug: "resend-create-contact",
5
+ name: "Create Contact",
6
+ description: "Create a contact in Resend.",
7
+ input: z.object({
8
+ email: z.string().describe("The email address of the contact. Must be a valid RFC-compliant email address."),
9
+ lastName: z.string().describe("The last name of the contact.").optional(),
10
+ firstName: z.string().describe("The first name of the contact.").optional(),
11
+ audienceId: z.string().describe("The Audience ID."),
12
+ unsubscribed: z.boolean().describe("The subscription status.").optional()
13
+ }),
14
+ output: z.object({
15
+ id: z.string().describe("The id of the created contact.").nullable().optional(),
16
+ object: z.string().describe("The type of object, which is 'contact'.").nullable().optional()
17
+ })
18
+ });
19
+ //#endregion
20
+ export { resendCreateContact };
21
+
22
+ //# sourceMappingURL=create-contact.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-contact.mjs","names":[],"sources":["../../src/actions/create-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ResendCreateContactInput = z.object({\n email: z.string().describe(\"The email address of the contact. Must be a valid RFC-compliant email address.\"),\n lastName: z.string().describe(\"The last name of the contact.\").optional(),\n firstName: z.string().describe(\"The first name of the contact.\").optional(),\n audienceId: z.string().describe(\"The Audience ID.\"),\n unsubscribed: z.boolean().describe(\"The subscription status.\").optional(),\n});\nexport const ResendCreateContactOutput = z.object({\n id: z.string().describe(\"The id of the created contact.\").nullable().optional(),\n object: z.string().describe(\"The type of object, which is 'contact'.\").nullable().optional(),\n});\n\nexport const resendCreateContact = action(\"RESEND_CREATE_CONTACT\", {\n slug: \"resend-create-contact\",\n name: \"Create Contact\",\n description: \"Create a contact in Resend.\",\n input: ResendCreateContactInput,\n output: ResendCreateContactOutput,\n});\n"],"mappings":";;AAgBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBsC,EAAE,OAAO;EAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;EAC3G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;EAClD,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC1E,CAUS;CACP,QAVuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,CAOU;AACV,CAAC"}
@@ -0,0 +1,45 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-domain.ts
4
+ const ResendCreateDomainInput = zod.z.object({
5
+ name: zod.z.string().describe("The name of the domain to be created."),
6
+ region: zod.z.enum([
7
+ "us-east-1",
8
+ "eu-west-1",
9
+ "sa-east-1",
10
+ "ap-northeast-1"
11
+ ]).default("us-east-1").describe("The region where emails will be sent from. Supported values: 'us-east-1', 'eu-west-1', 'sa-east-1'. Unsupported values cause validation errors.").optional()
12
+ });
13
+ const ResendCreateDomain_DnsRecordSchema = zod.z.object({
14
+ ttl: zod.z.string().describe("The TTL (time to live) for this record.").nullable().optional(),
15
+ name: zod.z.string().describe("The DNS record name.").nullable().optional(),
16
+ type: zod.z.string().describe("The DNS record type (TXT, MX).").nullable().optional(),
17
+ value: zod.z.string().describe("The DNS record value.").nullable().optional(),
18
+ record: zod.z.string().describe("The type of record (DKIM, SPF).").nullable().optional(),
19
+ status: zod.z.string().describe("The verification status of this record.").nullable().optional(),
20
+ priority: zod.z.number().int().describe("The priority for MX records.").nullable().optional()
21
+ }).describe("DNS record information for domain verification.");
22
+ const ResendCreateDomain_DomainCapabilitiesSchema = zod.z.object({
23
+ sending: zod.z.string().describe("Whether sending emails is enabled or disabled for this domain.").nullable().optional(),
24
+ receiving: zod.z.string().describe("Whether receiving emails is enabled or disabled for this domain.").nullable().optional()
25
+ }).describe("Domain sending and receiving capabilities.");
26
+ const ResendCreateDomainOutput = zod.z.object({
27
+ id: zod.z.string().describe("The id of the created domain.").nullable().optional(),
28
+ name: zod.z.string().describe("The name of the created domain.").nullable().optional(),
29
+ region: zod.z.string().describe("The region where emails will be sent from.").nullable().optional(),
30
+ status: zod.z.string().describe("The status of the domain creation (not_started, pending, verified, failed).").nullable().optional(),
31
+ records: zod.z.array(ResendCreateDomain_DnsRecordSchema).describe("The DNS records that need to be configured for domain verification.").nullable().optional(),
32
+ created_at: zod.z.string().describe("The creation timestamp of the domain.").nullable().optional(),
33
+ capabilities: ResendCreateDomain_DomainCapabilitiesSchema.nullable().optional()
34
+ });
35
+ const resendCreateDomain = require_action.action("RESEND_CREATE_DOMAIN", {
36
+ slug: "resend-create-domain",
37
+ name: "Create Domain",
38
+ description: "Create a domain through the Resend Email API. The domain is created in a pending/unverified state and cannot be used for sending emails until DNS verification is completed.",
39
+ input: ResendCreateDomainInput,
40
+ output: ResendCreateDomainOutput
41
+ });
42
+ //#endregion
43
+ exports.resendCreateDomain = resendCreateDomain;
44
+
45
+ //# sourceMappingURL=create-domain.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-domain.cjs","names":["z","action"],"sources":["../../src/actions/create-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ResendCreateDomainInput = z.object({\n name: z.string().describe(\"The name of the domain to be created.\"),\n region: z.enum([\"us-east-1\", \"eu-west-1\", \"sa-east-1\", \"ap-northeast-1\"]).default(\"us-east-1\").describe(\"The region where emails will be sent from. Supported values: 'us-east-1', 'eu-west-1', 'sa-east-1'. Unsupported values cause validation errors.\").optional(),\n});\nconst ResendCreateDomain_DnsRecordSchema = z.object({\n ttl: z.string().describe(\"The TTL (time to live) for this record.\").nullable().optional(),\n name: z.string().describe(\"The DNS record name.\").nullable().optional(),\n type: z.string().describe(\"The DNS record type (TXT, MX).\").nullable().optional(),\n value: z.string().describe(\"The DNS record value.\").nullable().optional(),\n record: z.string().describe(\"The type of record (DKIM, SPF).\").nullable().optional(),\n status: z.string().describe(\"The verification status of this record.\").nullable().optional(),\n priority: z.number().int().describe(\"The priority for MX records.\").nullable().optional(),\n}).describe(\"DNS record information for domain verification.\");\nconst ResendCreateDomain_DomainCapabilitiesSchema = z.object({\n sending: z.string().describe(\"Whether sending emails is enabled or disabled for this domain.\").nullable().optional(),\n receiving: z.string().describe(\"Whether receiving emails is enabled or disabled for this domain.\").nullable().optional(),\n}).describe(\"Domain sending and receiving capabilities.\");\nexport const ResendCreateDomainOutput = z.object({\n id: z.string().describe(\"The id of the created domain.\").nullable().optional(),\n name: z.string().describe(\"The name of the created domain.\").nullable().optional(),\n region: z.string().describe(\"The region where emails will be sent from.\").nullable().optional(),\n status: z.string().describe(\"The status of the domain creation (not_started, pending, verified, failed).\").nullable().optional(),\n records: z.array(ResendCreateDomain_DnsRecordSchema).describe(\"The DNS records that need to be configured for domain verification.\").nullable().optional(),\n created_at: z.string().describe(\"The creation timestamp of the domain.\").nullable().optional(),\n capabilities: ResendCreateDomain_DomainCapabilitiesSchema.nullable().optional(),\n});\n\nexport const resendCreateDomain = action(\"RESEND_CREATE_DOMAIN\", {\n slug: \"resend-create-domain\",\n name: \"Create Domain\",\n description: \"Create a domain through the Resend Email API. The domain is created in a pending/unverified state and cannot be used for sending emails until DNS verification is completed.\",\n input: ResendCreateDomainInput,\n output: ResendCreateDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACjE,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAa;EAAa;EAAa;CAAgB,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;AACtQ,CAAC;AACD,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,SAASA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,cAAc,4CAA4C,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC;AAED,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-domain.d.ts
4
+ declare const ResendCreateDomainInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ region: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
7
+ "us-east-1": "us-east-1";
8
+ "eu-west-1": "eu-west-1";
9
+ "sa-east-1": "sa-east-1";
10
+ "ap-northeast-1": "ap-northeast-1";
11
+ }>>>;
12
+ }, z.core.$strip>;
13
+ declare const ResendCreateDomainOutput: z.ZodObject<{
14
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ records: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
19
+ ttl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ record: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ priority: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ }, z.core.$strip>>>>;
27
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ capabilities: z.ZodOptional<z.ZodNullable<z.ZodObject<{
29
+ sending: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ receiving: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ }, z.core.$strip>>>;
32
+ }, z.core.$strip>;
33
+ declare const resendCreateDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
34
+ name: string;
35
+ region?: "us-east-1" | "eu-west-1" | "sa-east-1" | "ap-northeast-1" | undefined;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
37
+ //#endregion
38
+ export { resendCreateDomain };
39
+ //# sourceMappingURL=create-domain.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-domain.d.cts","names":[],"sources":["../../src/actions/create-domain.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAiBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAUxB,kBAAA,gCAAkB,wBAAA"}
@@ -0,0 +1,39 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-domain.d.ts
4
+ declare const ResendCreateDomainInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ region: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
7
+ "us-east-1": "us-east-1";
8
+ "eu-west-1": "eu-west-1";
9
+ "sa-east-1": "sa-east-1";
10
+ "ap-northeast-1": "ap-northeast-1";
11
+ }>>>;
12
+ }, z.core.$strip>;
13
+ declare const ResendCreateDomainOutput: z.ZodObject<{
14
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ records: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
19
+ ttl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ record: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ priority: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ }, z.core.$strip>>>>;
27
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ capabilities: z.ZodOptional<z.ZodNullable<z.ZodObject<{
29
+ sending: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ receiving: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ }, z.core.$strip>>>;
32
+ }, z.core.$strip>;
33
+ declare const resendCreateDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
34
+ name: string;
35
+ region?: "us-east-1" | "eu-west-1" | "sa-east-1" | "ap-northeast-1" | undefined;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
37
+ //#endregion
38
+ export { resendCreateDomain };
39
+ //# sourceMappingURL=create-domain.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-domain.d.mts","names":[],"sources":["../../src/actions/create-domain.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAiBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAUxB,kBAAA,gCAAkB,wBAAA"}
@@ -0,0 +1,44 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/create-domain.ts
4
+ const ResendCreateDomainInput = z.object({
5
+ name: z.string().describe("The name of the domain to be created."),
6
+ region: z.enum([
7
+ "us-east-1",
8
+ "eu-west-1",
9
+ "sa-east-1",
10
+ "ap-northeast-1"
11
+ ]).default("us-east-1").describe("The region where emails will be sent from. Supported values: 'us-east-1', 'eu-west-1', 'sa-east-1'. Unsupported values cause validation errors.").optional()
12
+ });
13
+ const ResendCreateDomain_DnsRecordSchema = z.object({
14
+ ttl: z.string().describe("The TTL (time to live) for this record.").nullable().optional(),
15
+ name: z.string().describe("The DNS record name.").nullable().optional(),
16
+ type: z.string().describe("The DNS record type (TXT, MX).").nullable().optional(),
17
+ value: z.string().describe("The DNS record value.").nullable().optional(),
18
+ record: z.string().describe("The type of record (DKIM, SPF).").nullable().optional(),
19
+ status: z.string().describe("The verification status of this record.").nullable().optional(),
20
+ priority: z.number().int().describe("The priority for MX records.").nullable().optional()
21
+ }).describe("DNS record information for domain verification.");
22
+ const ResendCreateDomain_DomainCapabilitiesSchema = z.object({
23
+ sending: z.string().describe("Whether sending emails is enabled or disabled for this domain.").nullable().optional(),
24
+ receiving: z.string().describe("Whether receiving emails is enabled or disabled for this domain.").nullable().optional()
25
+ }).describe("Domain sending and receiving capabilities.");
26
+ const resendCreateDomain = action("RESEND_CREATE_DOMAIN", {
27
+ slug: "resend-create-domain",
28
+ name: "Create Domain",
29
+ description: "Create a domain through the Resend Email API. The domain is created in a pending/unverified state and cannot be used for sending emails until DNS verification is completed.",
30
+ input: ResendCreateDomainInput,
31
+ output: z.object({
32
+ id: z.string().describe("The id of the created domain.").nullable().optional(),
33
+ name: z.string().describe("The name of the created domain.").nullable().optional(),
34
+ region: z.string().describe("The region where emails will be sent from.").nullable().optional(),
35
+ status: z.string().describe("The status of the domain creation (not_started, pending, verified, failed).").nullable().optional(),
36
+ records: z.array(ResendCreateDomain_DnsRecordSchema).describe("The DNS records that need to be configured for domain verification.").nullable().optional(),
37
+ created_at: z.string().describe("The creation timestamp of the domain.").nullable().optional(),
38
+ capabilities: ResendCreateDomain_DomainCapabilitiesSchema.nullable().optional()
39
+ })
40
+ });
41
+ //#endregion
42
+ export { resendCreateDomain };
43
+
44
+ //# sourceMappingURL=create-domain.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-domain.mjs","names":[],"sources":["../../src/actions/create-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ResendCreateDomainInput = z.object({\n name: z.string().describe(\"The name of the domain to be created.\"),\n region: z.enum([\"us-east-1\", \"eu-west-1\", \"sa-east-1\", \"ap-northeast-1\"]).default(\"us-east-1\").describe(\"The region where emails will be sent from. Supported values: 'us-east-1', 'eu-west-1', 'sa-east-1'. Unsupported values cause validation errors.\").optional(),\n});\nconst ResendCreateDomain_DnsRecordSchema = z.object({\n ttl: z.string().describe(\"The TTL (time to live) for this record.\").nullable().optional(),\n name: z.string().describe(\"The DNS record name.\").nullable().optional(),\n type: z.string().describe(\"The DNS record type (TXT, MX).\").nullable().optional(),\n value: z.string().describe(\"The DNS record value.\").nullable().optional(),\n record: z.string().describe(\"The type of record (DKIM, SPF).\").nullable().optional(),\n status: z.string().describe(\"The verification status of this record.\").nullable().optional(),\n priority: z.number().int().describe(\"The priority for MX records.\").nullable().optional(),\n}).describe(\"DNS record information for domain verification.\");\nconst ResendCreateDomain_DomainCapabilitiesSchema = z.object({\n sending: z.string().describe(\"Whether sending emails is enabled or disabled for this domain.\").nullable().optional(),\n receiving: z.string().describe(\"Whether receiving emails is enabled or disabled for this domain.\").nullable().optional(),\n}).describe(\"Domain sending and receiving capabilities.\");\nexport const ResendCreateDomainOutput = z.object({\n id: z.string().describe(\"The id of the created domain.\").nullable().optional(),\n name: z.string().describe(\"The name of the created domain.\").nullable().optional(),\n region: z.string().describe(\"The region where emails will be sent from.\").nullable().optional(),\n status: z.string().describe(\"The status of the domain creation (not_started, pending, verified, failed).\").nullable().optional(),\n records: z.array(ResendCreateDomain_DnsRecordSchema).describe(\"The DNS records that need to be configured for domain verification.\").nullable().optional(),\n created_at: z.string().describe(\"The creation timestamp of the domain.\").nullable().optional(),\n capabilities: ResendCreateDomain_DomainCapabilitiesSchema.nullable().optional(),\n});\n\nexport const resendCreateDomain = action(\"RESEND_CREATE_DOMAIN\", {\n slug: \"resend-create-domain\",\n name: \"Create Domain\",\n description: \"Create a domain through the Resend Email API. The domain is created in a pending/unverified state and cannot be used for sending emails until DNS verification is completed.\",\n input: ResendCreateDomainInput,\n output: ResendCreateDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACjE,QAAQ,EAAE,KAAK;EAAC;EAAa;EAAa;EAAa;CAAgB,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;AACtQ,CAAC;AACD,MAAM,qCAAqC,EAAE,OAAO;CAClD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,8CAA8C,EAAE,OAAO;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAWxD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfsC,EAAE,OAAO;EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,SAAS,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,cAAc,4CAA4C,SAAS,CAAC,CAAC,SAAS;CAChF,CAOU;AACV,CAAC"}
@@ -0,0 +1,36 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-template.ts
4
+ const ResendCreateTemplateInput = zod.z.object({
5
+ from: zod.z.string().describe("Sender email address. To include a friendly name, use the format 'Your Name <sender@domain.com>'.").optional(),
6
+ html: zod.z.string().describe("The HTML version of the template. Use {{VARIABLE_NAME}} syntax to reference template variables."),
7
+ name: zod.z.string().describe("The name of the template."),
8
+ text: zod.z.string().describe("The plain text version of the template. If omitted, Resend will auto-generate from HTML.").optional(),
9
+ alias: zod.z.string().describe("The alias of the template. This is an optional identifier that can be used instead of the template ID.").optional(),
10
+ subject: zod.z.string().describe("Email subject for the template.").optional(),
11
+ reply_to: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]).optional(),
12
+ variables: zod.z.array(zod.z.object({
13
+ key: zod.z.string().describe("The key of the variable. Recommended to use capitalized format (e.g., PRODUCT_NAME). Reserved names: FIRST_NAME, LAST_NAME, EMAIL, RESEND_UNSUBSCRIBE_URL, contact, this."),
14
+ type: zod.z.enum(["string", "number"]).describe("The type of the variable, either 'string' or 'number'."),
15
+ fallback_value: zod.z.union([
16
+ zod.z.string(),
17
+ zod.z.number().int(),
18
+ zod.z.number()
19
+ ]).optional()
20
+ }).describe("Template variable definition.")).describe("Template variables. Up to 50 variables can be defined per template.").optional()
21
+ });
22
+ const ResendCreateTemplateOutput = zod.z.object({
23
+ id: zod.z.string().describe("The ID of the created template.").nullable().optional(),
24
+ object: zod.z.string().describe("The type of object, which is 'template'.").nullable().optional()
25
+ });
26
+ const resendCreateTemplate = require_action.action("RESEND_CREATE_TEMPLATE", {
27
+ slug: "resend-create-template",
28
+ name: "Create Template",
29
+ description: "Tool to create a new email template in Resend. Use when you need to define reusable email templates with optional variables.",
30
+ input: ResendCreateTemplateInput,
31
+ output: ResendCreateTemplateOutput
32
+ });
33
+ //#endregion
34
+ exports.resendCreateTemplate = resendCreateTemplate;
35
+
36
+ //# sourceMappingURL=create-template.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-template.cjs","names":["z","action"],"sources":["../../src/actions/create-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ResendCreateTemplateInput = z.object({\n from: z.string().describe(\"Sender email address. To include a friendly name, use the format 'Your Name <sender@domain.com>'.\").optional(),\n html: z.string().describe(\"The HTML version of the template. Use {{VARIABLE_NAME}} syntax to reference template variables.\"),\n name: z.string().describe(\"The name of the template.\"),\n text: z.string().describe(\"The plain text version of the template. If omitted, Resend will auto-generate from HTML.\").optional(),\n alias: z.string().describe(\"The alias of the template. This is an optional identifier that can be used instead of the template ID.\").optional(),\n subject: z.string().describe(\"Email subject for the template.\").optional(),\n reply_to: z.union([z.string(), z.array(z.string())]).optional(),\n variables: z.array(z.object({\n key: z.string().describe(\"The key of the variable. Recommended to use capitalized format (e.g., PRODUCT_NAME). Reserved names: FIRST_NAME, LAST_NAME, EMAIL, RESEND_UNSUBSCRIBE_URL, contact, this.\"),\n type: z.enum([\"string\", \"number\"]).describe(\"The type of the variable, either 'string' or 'number'.\"),\n fallback_value: z.union([z.string(), z.number().int(), z.number()]).optional(),\n}).describe(\"Template variable definition.\")).describe(\"Template variables. Up to 50 variables can be defined per template.\").optional(),\n});\nexport const ResendCreateTemplateOutput = z.object({\n id: z.string().describe(\"The ID of the created template.\").nullable().optional(),\n object: z.string().describe(\"The type of object, which is 'template'.\").nullable().optional(),\n});\n\nexport const resendCreateTemplate = action(\"RESEND_CREATE_TEMPLATE\", {\n slug: \"resend-create-template\",\n name: \"Create Template\",\n description: \"Tool to create a new email template in Resend. Use when you need to define reusable email templates with optional variables.\",\n input: ResendCreateTemplateInput,\n output: ResendCreateTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACxI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CAC3H,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC/H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAC9I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACzE,UAAUA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CAC9D,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC5B,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K;EACpM,MAAMA,IAAAA,EAAE,KAAK,CAAC,UAAU,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD;EACpG,gBAAgBA,IAAAA,EAAE,MAAM;GAACA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GAAGA,IAAAA,EAAE,OAAO;EAAC,CAAC,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;AACvI,CAAC;AACD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}