@keystrokehq/missive 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-analytics-report.cjs +2 -2
  4. package/dist/actions/create-analytics-report.cjs.map +1 -1
  5. package/dist/actions/create-analytics-report.d.cts +39 -3
  6. package/dist/actions/create-analytics-report.d.cts.map +1 -1
  7. package/dist/actions/create-analytics-report.d.mts +39 -3
  8. package/dist/actions/create-analytics-report.d.mts.map +1 -1
  9. package/dist/actions/create-analytics-report.mjs +2 -2
  10. package/dist/actions/create-analytics-report.mjs.map +1 -1
  11. package/dist/actions/create-contacts.cjs +10 -10
  12. package/dist/actions/create-contacts.cjs.map +1 -1
  13. package/dist/actions/create-contacts.d.cts +140 -3
  14. package/dist/actions/create-contacts.d.cts.map +1 -1
  15. package/dist/actions/create-contacts.d.mts +140 -3
  16. package/dist/actions/create-contacts.d.mts.map +1 -1
  17. package/dist/actions/create-contacts.mjs +10 -10
  18. package/dist/actions/create-contacts.mjs.map +1 -1
  19. package/dist/actions/create-draft.cjs +13 -13
  20. package/dist/actions/create-draft.cjs.map +1 -1
  21. package/dist/actions/create-draft.d.cts +143 -3
  22. package/dist/actions/create-draft.d.cts.map +1 -1
  23. package/dist/actions/create-draft.d.mts +143 -3
  24. package/dist/actions/create-draft.d.mts.map +1 -1
  25. package/dist/actions/create-draft.mjs +13 -13
  26. package/dist/actions/create-draft.mjs.map +1 -1
  27. package/dist/actions/create-post.cjs +1 -1
  28. package/dist/actions/create-post.cjs.map +1 -1
  29. package/dist/actions/create-post.d.cts +37 -3
  30. package/dist/actions/create-post.d.cts.map +1 -1
  31. package/dist/actions/create-post.d.mts +37 -3
  32. package/dist/actions/create-post.d.mts.map +1 -1
  33. package/dist/actions/create-post.mjs +1 -1
  34. package/dist/actions/create-post.mjs.map +1 -1
  35. package/dist/actions/create-response.cjs +6 -6
  36. package/dist/actions/create-response.cjs.map +1 -1
  37. package/dist/actions/create-response.d.cts +57 -3
  38. package/dist/actions/create-response.d.cts.map +1 -1
  39. package/dist/actions/create-response.d.mts +57 -3
  40. package/dist/actions/create-response.d.mts.map +1 -1
  41. package/dist/actions/create-response.mjs +6 -6
  42. package/dist/actions/create-response.mjs.map +1 -1
  43. package/dist/actions/create-shared-label.cjs +6 -6
  44. package/dist/actions/create-shared-label.cjs.map +1 -1
  45. package/dist/actions/create-shared-label.d.cts +29 -3
  46. package/dist/actions/create-shared-label.d.cts.map +1 -1
  47. package/dist/actions/create-shared-label.d.mts +29 -3
  48. package/dist/actions/create-shared-label.d.mts.map +1 -1
  49. package/dist/actions/create-shared-label.mjs +6 -6
  50. package/dist/actions/create-shared-label.mjs.map +1 -1
  51. package/dist/actions/create-task.cjs +3 -3
  52. package/dist/actions/create-task.cjs.map +1 -1
  53. package/dist/actions/create-task.d.cts +46 -3
  54. package/dist/actions/create-task.d.cts.map +1 -1
  55. package/dist/actions/create-task.d.mts +46 -3
  56. package/dist/actions/create-task.d.mts.map +1 -1
  57. package/dist/actions/create-task.mjs +3 -3
  58. package/dist/actions/create-task.mjs.map +1 -1
  59. package/dist/actions/create-team.cjs +4 -4
  60. package/dist/actions/create-team.cjs.map +1 -1
  61. package/dist/actions/create-team.d.cts +30 -3
  62. package/dist/actions/create-team.d.cts.map +1 -1
  63. package/dist/actions/create-team.d.mts +30 -3
  64. package/dist/actions/create-team.d.mts.map +1 -1
  65. package/dist/actions/create-team.mjs +4 -4
  66. package/dist/actions/create-team.mjs.map +1 -1
  67. package/dist/actions/create-webhook.cjs +2 -2
  68. package/dist/actions/create-webhook.cjs.map +1 -1
  69. package/dist/actions/create-webhook.d.cts +38 -3
  70. package/dist/actions/create-webhook.d.cts.map +1 -1
  71. package/dist/actions/create-webhook.d.mts +38 -3
  72. package/dist/actions/create-webhook.d.mts.map +1 -1
  73. package/dist/actions/create-webhook.mjs +2 -2
  74. package/dist/actions/create-webhook.mjs.map +1 -1
  75. package/dist/actions/delete-draft.cjs +1 -1
  76. package/dist/actions/delete-draft.cjs.map +1 -1
  77. package/dist/actions/delete-draft.d.cts +7 -3
  78. package/dist/actions/delete-draft.d.cts.map +1 -1
  79. package/dist/actions/delete-draft.d.mts +7 -3
  80. package/dist/actions/delete-draft.d.mts.map +1 -1
  81. package/dist/actions/delete-draft.mjs +1 -1
  82. package/dist/actions/delete-draft.mjs.map +1 -1
  83. package/dist/actions/delete-post.cjs +1 -1
  84. package/dist/actions/delete-post.cjs.map +1 -1
  85. package/dist/actions/delete-post.d.cts +7 -3
  86. package/dist/actions/delete-post.d.cts.map +1 -1
  87. package/dist/actions/delete-post.d.mts +7 -3
  88. package/dist/actions/delete-post.d.mts.map +1 -1
  89. package/dist/actions/delete-post.mjs +1 -1
  90. package/dist/actions/delete-post.mjs.map +1 -1
  91. package/dist/actions/delete-responses.cjs +1 -1
  92. package/dist/actions/delete-responses.cjs.map +1 -1
  93. package/dist/actions/delete-responses.d.cts +7 -3
  94. package/dist/actions/delete-responses.d.cts.map +1 -1
  95. package/dist/actions/delete-responses.d.mts +7 -3
  96. package/dist/actions/delete-responses.d.mts.map +1 -1
  97. package/dist/actions/delete-responses.mjs +1 -1
  98. package/dist/actions/delete-responses.mjs.map +1 -1
  99. package/dist/actions/delete-webhook.cjs +1 -1
  100. package/dist/actions/delete-webhook.cjs.map +1 -1
  101. package/dist/actions/delete-webhook.d.cts +7 -3
  102. package/dist/actions/delete-webhook.d.cts.map +1 -1
  103. package/dist/actions/delete-webhook.d.mts +7 -3
  104. package/dist/actions/delete-webhook.d.mts.map +1 -1
  105. package/dist/actions/delete-webhook.mjs +1 -1
  106. package/dist/actions/delete-webhook.mjs.map +1 -1
  107. package/dist/actions/get-analytics-report.cjs +3 -3
  108. package/dist/actions/get-analytics-report.cjs.map +1 -1
  109. package/dist/actions/get-analytics-report.d.cts +19 -3
  110. package/dist/actions/get-analytics-report.d.cts.map +1 -1
  111. package/dist/actions/get-analytics-report.d.mts +19 -3
  112. package/dist/actions/get-analytics-report.d.mts.map +1 -1
  113. package/dist/actions/get-analytics-report.mjs +3 -3
  114. package/dist/actions/get-analytics-report.mjs.map +1 -1
  115. package/dist/actions/get-contact.cjs +9 -9
  116. package/dist/actions/get-contact.cjs.map +1 -1
  117. package/dist/actions/get-contact.d.cts +52 -3
  118. package/dist/actions/get-contact.d.cts.map +1 -1
  119. package/dist/actions/get-contact.d.mts +52 -3
  120. package/dist/actions/get-contact.d.mts.map +1 -1
  121. package/dist/actions/get-contact.mjs +9 -9
  122. package/dist/actions/get-contact.mjs.map +1 -1
  123. package/dist/actions/get-conversation-messages.cjs +6 -6
  124. package/dist/actions/get-conversation-messages.cjs.map +1 -1
  125. package/dist/actions/get-conversation-messages.d.cts +51 -3
  126. package/dist/actions/get-conversation-messages.d.cts.map +1 -1
  127. package/dist/actions/get-conversation-messages.d.mts +51 -3
  128. package/dist/actions/get-conversation-messages.d.mts.map +1 -1
  129. package/dist/actions/get-conversation-messages.mjs +6 -6
  130. package/dist/actions/get-conversation-messages.mjs.map +1 -1
  131. package/dist/actions/get-conversation.cjs +23 -23
  132. package/dist/actions/get-conversation.cjs.map +1 -1
  133. package/dist/actions/get-conversation.d.cts +80 -3
  134. package/dist/actions/get-conversation.d.cts.map +1 -1
  135. package/dist/actions/get-conversation.d.mts +80 -3
  136. package/dist/actions/get-conversation.d.mts.map +1 -1
  137. package/dist/actions/get-conversation.mjs +23 -23
  138. package/dist/actions/get-conversation.mjs.map +1 -1
  139. package/dist/actions/get-message.cjs +7 -7
  140. package/dist/actions/get-message.cjs.map +1 -1
  141. package/dist/actions/get-message.d.cts +143 -3
  142. package/dist/actions/get-message.d.cts.map +1 -1
  143. package/dist/actions/get-message.d.mts +143 -3
  144. package/dist/actions/get-message.d.mts.map +1 -1
  145. package/dist/actions/get-message.mjs +7 -7
  146. package/dist/actions/get-message.mjs.map +1 -1
  147. package/dist/actions/get-response.cjs +11 -11
  148. package/dist/actions/get-response.cjs.map +1 -1
  149. package/dist/actions/get-response.d.cts +43 -3
  150. package/dist/actions/get-response.d.cts.map +1 -1
  151. package/dist/actions/get-response.d.mts +43 -3
  152. package/dist/actions/get-response.d.mts.map +1 -1
  153. package/dist/actions/get-response.mjs +11 -11
  154. package/dist/actions/get-response.mjs.map +1 -1
  155. package/dist/actions/get-task.cjs +10 -10
  156. package/dist/actions/get-task.cjs.map +1 -1
  157. package/dist/actions/get-task.d.cts +35 -3
  158. package/dist/actions/get-task.d.cts.map +1 -1
  159. package/dist/actions/get-task.d.mts +35 -3
  160. package/dist/actions/get-task.d.mts.map +1 -1
  161. package/dist/actions/get-task.mjs +10 -10
  162. package/dist/actions/get-task.mjs.map +1 -1
  163. package/dist/actions/list-contact-books.cjs +6 -6
  164. package/dist/actions/list-contact-books.cjs.map +1 -1
  165. package/dist/actions/list-contact-books.d.cts +20 -3
  166. package/dist/actions/list-contact-books.d.cts.map +1 -1
  167. package/dist/actions/list-contact-books.d.mts +20 -3
  168. package/dist/actions/list-contact-books.d.mts.map +1 -1
  169. package/dist/actions/list-contact-books.mjs +6 -6
  170. package/dist/actions/list-contact-books.mjs.map +1 -1
  171. package/dist/actions/list-contact-groups.cjs +4 -4
  172. package/dist/actions/list-contact-groups.cjs.map +1 -1
  173. package/dist/actions/list-contact-groups.d.cts +21 -3
  174. package/dist/actions/list-contact-groups.d.cts.map +1 -1
  175. package/dist/actions/list-contact-groups.d.mts +21 -3
  176. package/dist/actions/list-contact-groups.d.mts.map +1 -1
  177. package/dist/actions/list-contact-groups.mjs +4 -4
  178. package/dist/actions/list-contact-groups.mjs.map +1 -1
  179. package/dist/actions/list-contacts.cjs +6 -6
  180. package/dist/actions/list-contacts.cjs.map +1 -1
  181. package/dist/actions/list-contacts.d.cts +57 -3
  182. package/dist/actions/list-contacts.d.cts.map +1 -1
  183. package/dist/actions/list-contacts.d.mts +57 -3
  184. package/dist/actions/list-contacts.d.mts.map +1 -1
  185. package/dist/actions/list-contacts.mjs +6 -6
  186. package/dist/actions/list-contacts.mjs.map +1 -1
  187. package/dist/actions/list-conversation-comments.cjs +8 -8
  188. package/dist/actions/list-conversation-comments.cjs.map +1 -1
  189. package/dist/actions/list-conversation-comments.d.cts +59 -3
  190. package/dist/actions/list-conversation-comments.d.cts.map +1 -1
  191. package/dist/actions/list-conversation-comments.d.mts +59 -3
  192. package/dist/actions/list-conversation-comments.d.mts.map +1 -1
  193. package/dist/actions/list-conversation-comments.mjs +8 -8
  194. package/dist/actions/list-conversation-comments.mjs.map +1 -1
  195. package/dist/actions/list-conversation-drafts.cjs +7 -7
  196. package/dist/actions/list-conversation-drafts.cjs.map +1 -1
  197. package/dist/actions/list-conversation-drafts.d.cts +57 -3
  198. package/dist/actions/list-conversation-drafts.d.cts.map +1 -1
  199. package/dist/actions/list-conversation-drafts.d.mts +57 -3
  200. package/dist/actions/list-conversation-drafts.d.mts.map +1 -1
  201. package/dist/actions/list-conversation-drafts.mjs +7 -7
  202. package/dist/actions/list-conversation-drafts.mjs.map +1 -1
  203. package/dist/actions/list-conversation-posts.cjs +6 -6
  204. package/dist/actions/list-conversation-posts.cjs.map +1 -1
  205. package/dist/actions/list-conversation-posts.d.cts +30 -3
  206. package/dist/actions/list-conversation-posts.d.cts.map +1 -1
  207. package/dist/actions/list-conversation-posts.d.mts +30 -3
  208. package/dist/actions/list-conversation-posts.d.mts.map +1 -1
  209. package/dist/actions/list-conversation-posts.mjs +6 -6
  210. package/dist/actions/list-conversation-posts.mjs.map +1 -1
  211. package/dist/actions/list-conversations.cjs +21 -21
  212. package/dist/actions/list-conversations.cjs.map +1 -1
  213. package/dist/actions/list-conversations.d.cts +79 -3
  214. package/dist/actions/list-conversations.d.cts.map +1 -1
  215. package/dist/actions/list-conversations.d.mts +79 -3
  216. package/dist/actions/list-conversations.d.mts.map +1 -1
  217. package/dist/actions/list-conversations.mjs +21 -21
  218. package/dist/actions/list-conversations.mjs.map +1 -1
  219. package/dist/actions/list-messages.cjs +7 -7
  220. package/dist/actions/list-messages.cjs.map +1 -1
  221. package/dist/actions/list-messages.d.cts +64 -3
  222. package/dist/actions/list-messages.d.cts.map +1 -1
  223. package/dist/actions/list-messages.d.mts +64 -3
  224. package/dist/actions/list-messages.d.mts.map +1 -1
  225. package/dist/actions/list-messages.mjs +7 -7
  226. package/dist/actions/list-messages.mjs.map +1 -1
  227. package/dist/actions/list-organizations.cjs +4 -4
  228. package/dist/actions/list-organizations.cjs.map +1 -1
  229. package/dist/actions/list-organizations.d.cts +14 -3
  230. package/dist/actions/list-organizations.d.cts.map +1 -1
  231. package/dist/actions/list-organizations.d.mts +14 -3
  232. package/dist/actions/list-organizations.d.mts.map +1 -1
  233. package/dist/actions/list-organizations.mjs +4 -4
  234. package/dist/actions/list-organizations.mjs.map +1 -1
  235. package/dist/actions/list-responses.cjs +11 -11
  236. package/dist/actions/list-responses.cjs.map +1 -1
  237. package/dist/actions/list-responses.d.cts +46 -3
  238. package/dist/actions/list-responses.d.cts.map +1 -1
  239. package/dist/actions/list-responses.d.mts +46 -3
  240. package/dist/actions/list-responses.d.mts.map +1 -1
  241. package/dist/actions/list-responses.mjs +11 -11
  242. package/dist/actions/list-responses.mjs.map +1 -1
  243. package/dist/actions/list-shared-labels.cjs +4 -4
  244. package/dist/actions/list-shared-labels.cjs.map +1 -1
  245. package/dist/actions/list-shared-labels.d.cts +27 -3
  246. package/dist/actions/list-shared-labels.d.cts.map +1 -1
  247. package/dist/actions/list-shared-labels.d.mts +27 -3
  248. package/dist/actions/list-shared-labels.d.mts.map +1 -1
  249. package/dist/actions/list-shared-labels.mjs +4 -4
  250. package/dist/actions/list-shared-labels.mjs.map +1 -1
  251. package/dist/actions/list-tasks.cjs +11 -11
  252. package/dist/actions/list-tasks.cjs.map +1 -1
  253. package/dist/actions/list-tasks.d.cts +48 -3
  254. package/dist/actions/list-tasks.d.cts.map +1 -1
  255. package/dist/actions/list-tasks.d.mts +48 -3
  256. package/dist/actions/list-tasks.d.mts.map +1 -1
  257. package/dist/actions/list-tasks.mjs +11 -11
  258. package/dist/actions/list-tasks.mjs.map +1 -1
  259. package/dist/actions/list-teams.cjs +4 -4
  260. package/dist/actions/list-teams.cjs.map +1 -1
  261. package/dist/actions/list-teams.d.cts +19 -3
  262. package/dist/actions/list-teams.d.cts.map +1 -1
  263. package/dist/actions/list-teams.d.mts +19 -3
  264. package/dist/actions/list-teams.d.mts.map +1 -1
  265. package/dist/actions/list-teams.mjs +4 -4
  266. package/dist/actions/list-teams.mjs.map +1 -1
  267. package/dist/actions/list-users.cjs +6 -6
  268. package/dist/actions/list-users.cjs.map +1 -1
  269. package/dist/actions/list-users.d.cts +19 -3
  270. package/dist/actions/list-users.d.cts.map +1 -1
  271. package/dist/actions/list-users.d.mts +19 -3
  272. package/dist/actions/list-users.d.mts.map +1 -1
  273. package/dist/actions/list-users.mjs +6 -6
  274. package/dist/actions/list-users.mjs.map +1 -1
  275. package/dist/actions/merge-conversations.cjs +22 -22
  276. package/dist/actions/merge-conversations.cjs.map +1 -1
  277. package/dist/actions/merge-conversations.d.cts +85 -3
  278. package/dist/actions/merge-conversations.d.cts.map +1 -1
  279. package/dist/actions/merge-conversations.d.mts +85 -3
  280. package/dist/actions/merge-conversations.d.mts.map +1 -1
  281. package/dist/actions/merge-conversations.mjs +22 -22
  282. package/dist/actions/merge-conversations.mjs.map +1 -1
  283. package/dist/actions/update-contact.cjs +12 -12
  284. package/dist/actions/update-contact.cjs.map +1 -1
  285. package/dist/actions/update-contact.d.cts +138 -3
  286. package/dist/actions/update-contact.d.cts.map +1 -1
  287. package/dist/actions/update-contact.d.mts +138 -3
  288. package/dist/actions/update-contact.d.mts.map +1 -1
  289. package/dist/actions/update-contact.mjs +12 -12
  290. package/dist/actions/update-contact.mjs.map +1 -1
  291. package/dist/actions/update-response.cjs +10 -10
  292. package/dist/actions/update-response.cjs.map +1 -1
  293. package/dist/actions/update-response.d.cts +87 -3
  294. package/dist/actions/update-response.d.cts.map +1 -1
  295. package/dist/actions/update-response.d.mts +87 -3
  296. package/dist/actions/update-response.d.mts.map +1 -1
  297. package/dist/actions/update-response.mjs +10 -10
  298. package/dist/actions/update-response.mjs.map +1 -1
  299. package/dist/actions/update-shared-labels.cjs +6 -6
  300. package/dist/actions/update-shared-labels.cjs.map +1 -1
  301. package/dist/actions/update-shared-labels.d.cts +24 -3
  302. package/dist/actions/update-shared-labels.d.cts.map +1 -1
  303. package/dist/actions/update-shared-labels.d.mts +24 -3
  304. package/dist/actions/update-shared-labels.d.mts.map +1 -1
  305. package/dist/actions/update-shared-labels.mjs +6 -6
  306. package/dist/actions/update-shared-labels.mjs.map +1 -1
  307. package/dist/actions/update-task.cjs +7 -7
  308. package/dist/actions/update-task.cjs.map +1 -1
  309. package/dist/actions/update-task.d.cts +37 -3
  310. package/dist/actions/update-task.d.cts.map +1 -1
  311. package/dist/actions/update-task.d.mts +37 -3
  312. package/dist/actions/update-task.d.mts.map +1 -1
  313. package/dist/actions/update-task.mjs +7 -7
  314. package/dist/actions/update-task.mjs.map +1 -1
  315. package/dist/actions/update-team.cjs +5 -5
  316. package/dist/actions/update-team.cjs.map +1 -1
  317. package/dist/actions/update-team.d.cts +30 -3
  318. package/dist/actions/update-team.d.cts.map +1 -1
  319. package/dist/actions/update-team.d.mts +30 -3
  320. package/dist/actions/update-team.d.mts.map +1 -1
  321. package/dist/actions/update-team.mjs +5 -5
  322. package/dist/actions/update-team.mjs.map +1 -1
  323. package/dist/catalog.cjs +7 -1
  324. package/dist/catalog.cjs.map +1 -1
  325. package/dist/catalog.d.cts +8 -0
  326. package/dist/catalog.d.mts +8 -0
  327. package/dist/catalog.mjs +7 -1
  328. package/dist/catalog.mjs.map +1 -1
  329. package/package.json +2 -2
@@ -1,9 +1,146 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-contacts.d.ts
4
- declare const MissiveCreateContactsInput: z.ZodTypeAny;
5
- declare const MissiveCreateContactsOutput: z.ZodTypeAny;
6
- declare const missiveCreateContacts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MissiveCreateContactsInput: z.ZodObject<{
5
+ contacts: z.ZodArray<z.ZodObject<{
6
+ infos: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
+ city: z.ZodOptional<z.ZodString>;
8
+ kind: z.ZodEnum<{
9
+ custom: "custom";
10
+ email: "email";
11
+ phone_number: "phone_number";
12
+ twitter: "twitter";
13
+ facebook: "facebook";
14
+ physical_address: "physical_address";
15
+ url: "url";
16
+ }>;
17
+ name: z.ZodOptional<z.ZodString>;
18
+ label: z.ZodString;
19
+ value: z.ZodOptional<z.ZodString>;
20
+ region: z.ZodOptional<z.ZodString>;
21
+ street: z.ZodOptional<z.ZodString>;
22
+ country: z.ZodOptional<z.ZodString>;
23
+ postal_code: z.ZodOptional<z.ZodString>;
24
+ custom_label: z.ZodOptional<z.ZodString>;
25
+ }, z.core.$loose>>>;
26
+ notes: z.ZodOptional<z.ZodString>;
27
+ gender: z.ZodOptional<z.ZodString>;
28
+ prefix: z.ZodOptional<z.ZodString>;
29
+ suffix: z.ZodOptional<z.ZodString>;
30
+ file_as: z.ZodOptional<z.ZodString>;
31
+ starred: z.ZodOptional<z.ZodBoolean>;
32
+ nickname: z.ZodOptional<z.ZodString>;
33
+ last_name: z.ZodOptional<z.ZodString>;
34
+ first_name: z.ZodOptional<z.ZodString>;
35
+ memberships: z.ZodOptional<z.ZodArray<z.ZodObject<{
36
+ group: z.ZodObject<{
37
+ id: z.ZodOptional<z.ZodString>;
38
+ kind: z.ZodEnum<{
39
+ organization: "organization";
40
+ group: "group";
41
+ }>;
42
+ name: z.ZodOptional<z.ZodString>;
43
+ }, z.core.$strip>;
44
+ title: z.ZodOptional<z.ZodString>;
45
+ location: z.ZodOptional<z.ZodString>;
46
+ department: z.ZodOptional<z.ZodString>;
47
+ description: z.ZodOptional<z.ZodString>;
48
+ }, z.core.$loose>>>;
49
+ middle_name: z.ZodOptional<z.ZodString>;
50
+ contact_book: z.ZodString;
51
+ phonetic_last_name: z.ZodOptional<z.ZodString>;
52
+ phonetic_first_name: z.ZodOptional<z.ZodString>;
53
+ phonetic_middle_name: z.ZodOptional<z.ZodString>;
54
+ }, z.core.$loose>>;
55
+ }, z.core.$strip>;
56
+ declare const MissiveCreateContactsOutput: z.ZodObject<{
57
+ contacts: z.ZodArray<z.ZodObject<{
58
+ id: z.ZodNullable<z.ZodString>;
59
+ infos: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
60
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ kind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ custom_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ }, z.core.$loose>>>>;
71
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ prefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ suffix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
76
+ file_as: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ starred: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
78
+ nickname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
+ memberships: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
82
+ group: z.ZodOptional<z.ZodNullable<z.ZodObject<{
83
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
+ kind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ }, z.core.$loose>>>;
87
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ department: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ }, z.core.$loose>>>>;
92
+ middle_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
+ modified_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
94
+ contact_book: z.ZodNullable<z.ZodString>;
95
+ phonetic_last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ phonetic_first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ phonetic_middle_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
+ }, z.core.$loose>>;
99
+ }, z.core.$loose>;
100
+ declare const missiveCreateContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
101
+ contacts: {
102
+ [x: string]: unknown;
103
+ contact_book: string;
104
+ infos?: {
105
+ [x: string]: unknown;
106
+ kind: "custom" | "email" | "phone_number" | "twitter" | "facebook" | "physical_address" | "url";
107
+ label: string;
108
+ city?: string | undefined;
109
+ name?: string | undefined;
110
+ value?: string | undefined;
111
+ region?: string | undefined;
112
+ street?: string | undefined;
113
+ country?: string | undefined;
114
+ postal_code?: string | undefined;
115
+ custom_label?: string | undefined;
116
+ }[] | undefined;
117
+ notes?: string | undefined;
118
+ gender?: string | undefined;
119
+ prefix?: string | undefined;
120
+ suffix?: string | undefined;
121
+ file_as?: string | undefined;
122
+ starred?: boolean | undefined;
123
+ nickname?: string | undefined;
124
+ last_name?: string | undefined;
125
+ first_name?: string | undefined;
126
+ memberships?: {
127
+ [x: string]: unknown;
128
+ group: {
129
+ kind: "organization" | "group";
130
+ id?: string | undefined;
131
+ name?: string | undefined;
132
+ };
133
+ title?: string | undefined;
134
+ location?: string | undefined;
135
+ department?: string | undefined;
136
+ description?: string | undefined;
137
+ }[] | undefined;
138
+ middle_name?: string | undefined;
139
+ phonetic_last_name?: string | undefined;
140
+ phonetic_first_name?: string | undefined;
141
+ phonetic_middle_name?: string | undefined;
142
+ }[];
143
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
144
  //#endregion
8
145
  export { missiveCreateContacts };
9
146
  //# sourceMappingURL=create-contacts.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-contacts.d.mts","names":[],"sources":["../../src/actions/create-contacts.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAwC+B;AAAA,cA8C7D,2BAAA,EAA6B,CAAA,CAAE,UAEmB;AAAA,cAElD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-contacts.d.mts","names":[],"sources":["../../src/actions/create-contacts.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsF1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
@@ -21,7 +21,7 @@ const MissiveCreateContactsInput = z.object({ contacts: z.array(z.object({
21
21
  country: z.string().describe("Country (for physical_address kind)").optional(),
22
22
  postal_code: z.string().describe("Postal or ZIP code (for physical_address kind)").optional(),
23
23
  custom_label: z.string().describe("Custom label when kind is 'custom' or when using a custom label value").optional()
24
- }).describe("Contact information object (email, phone, address, social, etc.).")).describe("List of contact information objects (emails, phones, addresses, social profiles, etc.)").optional(),
24
+ }).passthrough().describe("Contact information object (email, phone, address, social, etc.).")).describe("List of contact information objects (emails, phones, addresses, social profiles, etc.)").optional(),
25
25
  notes: z.string().describe("Notes about the contact").optional(),
26
26
  gender: z.string().describe("Gender of the contact").optional(),
27
27
  prefix: z.string().describe("Name prefix (Mr., Mrs., Dr., etc.)").optional(),
@@ -41,13 +41,13 @@ const MissiveCreateContactsInput = z.object({ contacts: z.array(z.object({
41
41
  location: z.string().describe("Location (applicable when group kind is 'organization')").optional(),
42
42
  department: z.string().describe("Department (applicable when group kind is 'organization')").optional(),
43
43
  description: z.string().describe("Description of the membership (applicable when group kind is 'organization')").optional()
44
- }).describe("Organization or group membership for a contact.")).describe("List of organization or group memberships").optional(),
44
+ }).passthrough().describe("Organization or group membership for a contact.")).describe("List of organization or group memberships").optional(),
45
45
  middle_name: z.string().describe("Middle name of the contact").optional(),
46
46
  contact_book: z.string().describe("UUID of the contact book to add this contact to"),
47
47
  phonetic_last_name: z.string().describe("Phonetic spelling of last name").optional(),
48
48
  phonetic_first_name: z.string().describe("Phonetic spelling of first name").optional(),
49
49
  phonetic_middle_name: z.string().describe("Phonetic spelling of middle name").optional()
50
- }).describe("Contact object to create.")).describe("Array of contact objects to create. Each contact must include contact_book UUID.") }).describe("Request model for creating one or more contacts in Missive.");
50
+ }).passthrough().describe("Contact object to create.")).describe("Array of contact objects to create. Each contact must include contact_book UUID.") }).describe("Request model for creating one or more contacts in Missive.");
51
51
  const MissiveCreateContacts_ContactInfoResponseSchema = z.object({
52
52
  city: z.string().describe("City").nullable().optional(),
53
53
  kind: z.string().describe("Type of contact information").nullable().optional(),
@@ -59,21 +59,21 @@ const MissiveCreateContacts_ContactInfoResponseSchema = z.object({
59
59
  country: z.string().describe("Country").nullable().optional(),
60
60
  postal_code: z.string().describe("Postal code").nullable().optional(),
61
61
  custom_label: z.string().describe("Custom label").nullable().optional()
62
- }).describe("Contact information in the response.");
62
+ }).passthrough().describe("Contact information in the response.");
63
63
  const MissiveCreateContacts_MembershipGroupResponseSchema = z.object({
64
64
  id: z.string().describe("UUID of the group or organization").nullable().optional(),
65
65
  kind: z.string().describe("Type of group").nullable().optional(),
66
66
  name: z.string().describe("Name of the group or organization").nullable().optional()
67
- }).describe("Group or organization in membership response.");
67
+ }).passthrough().describe("Group or organization in membership response.");
68
68
  const MissiveCreateContacts_MembershipResponseSchema = z.object({
69
69
  group: MissiveCreateContacts_MembershipGroupResponseSchema.nullable().optional(),
70
70
  title: z.string().describe("Job title").nullable().optional(),
71
71
  location: z.string().describe("Location").nullable().optional(),
72
72
  department: z.string().describe("Department").nullable().optional(),
73
73
  description: z.string().describe("Description").nullable().optional()
74
- }).describe("Membership in the response.");
74
+ }).passthrough().describe("Membership in the response.");
75
75
  const MissiveCreateContacts_ContactResponseSchema = z.object({
76
- id: z.string().describe("UUID of the created contact"),
76
+ id: z.string().describe("UUID of the created contact").nullable(),
77
77
  infos: z.array(MissiveCreateContacts_ContactInfoResponseSchema).describe("List of contact information").nullable().optional(),
78
78
  notes: z.string().describe("Notes").nullable().optional(),
79
79
  gender: z.string().describe("Gender").nullable().optional(),
@@ -88,17 +88,17 @@ const MissiveCreateContacts_ContactResponseSchema = z.object({
88
88
  memberships: z.array(MissiveCreateContacts_MembershipResponseSchema).describe("List of memberships").nullable().optional(),
89
89
  middle_name: z.string().describe("Middle name").nullable().optional(),
90
90
  modified_at: z.number().int().describe("Unix timestamp of last modification").nullable().optional(),
91
- contact_book: z.string().describe("Contact book UUID"),
91
+ contact_book: z.string().describe("Contact book UUID").nullable(),
92
92
  phonetic_last_name: z.string().describe("Phonetic last name").nullable().optional(),
93
93
  phonetic_first_name: z.string().describe("Phonetic first name").nullable().optional(),
94
94
  phonetic_middle_name: z.string().describe("Phonetic middle name").nullable().optional()
95
- }).describe("Created contact object in the response.");
95
+ }).passthrough().describe("Created contact object in the response.");
96
96
  const missiveCreateContacts = action("MISSIVE_CREATE_CONTACTS", {
97
97
  slug: "missive-create-contacts",
98
98
  name: "Create Missive Contacts",
99
99
  description: "Tool to create one or more contacts in a Missive contact book. Use when you need to add new contacts with detailed information including name, email, phone, addresses, and organization memberships.",
100
100
  input: MissiveCreateContactsInput,
101
- output: z.object({ contacts: z.array(MissiveCreateContacts_ContactResponseSchema).describe("Array of created contact objects") }).describe("Response model for creating contacts in Missive.")
101
+ output: z.object({ contacts: z.array(MissiveCreateContacts_ContactResponseSchema).describe("Array of created contact objects") }).passthrough().describe("Response model for creating contacts in Missive.")
102
102
  });
103
103
  //#endregion
104
104
  export { missiveCreateContacts };
@@ -1 +1 @@
1
- {"version":3,"file":"create-contacts.mjs","names":[],"sources":["../../src/actions/create-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MissiveCreateContactsInput: z.ZodTypeAny = z.object({\n contacts: z.array(z.object({\n infos: z.array(z.object({\n city: z.string().describe(\"City (for physical_address kind)\").optional(),\n kind: z.enum([\"email\", \"phone_number\", \"twitter\", \"facebook\", \"physical_address\", \"url\", \"custom\"]).describe(\"Type of contact information (email, phone_number, twitter, facebook, physical_address, url, custom)\"),\n name: z.string().describe(\"Name for facebook kind\").optional(),\n label: z.string().describe(\"Label for the contact info (home, work, personal, other, etc.). This field is required by the API.\"),\n value: z.string().describe(\"Value for the contact info (email address, phone number, URL, etc.). Required for most info types except physical_address and facebook.\").optional(),\n region: z.string().describe(\"State or region (for physical_address kind)\").optional(),\n street: z.string().describe(\"Street address (for physical_address kind)\").optional(),\n country: z.string().describe(\"Country (for physical_address kind)\").optional(),\n postal_code: z.string().describe(\"Postal or ZIP code (for physical_address kind)\").optional(),\n custom_label: z.string().describe(\"Custom label when kind is 'custom' or when using a custom label value\").optional(),\n}).describe(\"Contact information object (email, phone, address, social, etc.).\")).describe(\"List of contact information objects (emails, phones, addresses, social profiles, etc.)\").optional(),\n notes: z.string().describe(\"Notes about the contact\").optional(),\n gender: z.string().describe(\"Gender of the contact\").optional(),\n prefix: z.string().describe(\"Name prefix (Mr., Mrs., Dr., etc.)\").optional(),\n suffix: z.string().describe(\"Name suffix (Jr., Sr., III, etc.)\").optional(),\n file_as: z.string().describe(\"How to file this contact (custom sorting name)\").optional(),\n starred: z.boolean().describe(\"Whether the contact is starred/favorited\").optional(),\n nickname: z.string().describe(\"Nickname\").optional(),\n last_name: z.string().describe(\"Last name of the contact\").optional(),\n first_name: z.string().describe(\"First name of the contact\").optional(),\n memberships: z.array(z.object({\n group: z.object({\n id: z.string().describe(\"UUID of the organization or group\").optional(),\n kind: z.enum([\"organization\", \"group\"]).describe(\"Type of group (organization or group)\"),\n name: z.string().describe(\"Name of the organization or group\").optional(),\n}).describe(\"Organization or group reference\"),\n title: z.string().describe(\"Job title (applicable when group kind is 'organization')\").optional(),\n location: z.string().describe(\"Location (applicable when group kind is 'organization')\").optional(),\n department: z.string().describe(\"Department (applicable when group kind is 'organization')\").optional(),\n description: z.string().describe(\"Description of the membership (applicable when group kind is 'organization')\").optional(),\n}).describe(\"Organization or group membership for a contact.\")).describe(\"List of organization or group memberships\").optional(),\n middle_name: z.string().describe(\"Middle name of the contact\").optional(),\n contact_book: z.string().describe(\"UUID of the contact book to add this contact to\"),\n phonetic_last_name: z.string().describe(\"Phonetic spelling of last name\").optional(),\n phonetic_first_name: z.string().describe(\"Phonetic spelling of first name\").optional(),\n phonetic_middle_name: z.string().describe(\"Phonetic spelling of middle name\").optional(),\n}).describe(\"Contact object to create.\")).describe(\"Array of contact objects to create. Each contact must include contact_book UUID.\"),\n}).describe(\"Request model for creating one or more contacts in Missive.\");\nconst MissiveCreateContacts_ContactInfoResponseSchema: z.ZodTypeAny = z.object({\n city: z.string().describe(\"City\").nullable().optional(),\n kind: z.string().describe(\"Type of contact information\").nullable().optional(),\n name: z.string().describe(\"Name for facebook kind\").nullable().optional(),\n label: z.string().describe(\"Label for the contact info\").nullable().optional(),\n value: z.string().describe(\"Value of the contact info\").nullable().optional(),\n region: z.string().describe(\"Region or state\").nullable().optional(),\n street: z.string().describe(\"Street address\").nullable().optional(),\n country: z.string().describe(\"Country\").nullable().optional(),\n postal_code: z.string().describe(\"Postal code\").nullable().optional(),\n custom_label: z.string().describe(\"Custom label\").nullable().optional(),\n}).describe(\"Contact information in the response.\");\nconst MissiveCreateContacts_MembershipGroupResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID of the group or organization\").nullable().optional(),\n kind: z.string().describe(\"Type of group\").nullable().optional(),\n name: z.string().describe(\"Name of the group or organization\").nullable().optional(),\n}).describe(\"Group or organization in membership response.\");\nconst MissiveCreateContacts_MembershipResponseSchema: z.ZodTypeAny = z.object({\n group: MissiveCreateContacts_MembershipGroupResponseSchema.nullable().optional(),\n title: z.string().describe(\"Job title\").nullable().optional(),\n location: z.string().describe(\"Location\").nullable().optional(),\n department: z.string().describe(\"Department\").nullable().optional(),\n description: z.string().describe(\"Description\").nullable().optional(),\n}).describe(\"Membership in the response.\");\nconst MissiveCreateContacts_ContactResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID of the created contact\"),\n infos: z.array(MissiveCreateContacts_ContactInfoResponseSchema).describe(\"List of contact information\").nullable().optional(),\n notes: z.string().describe(\"Notes\").nullable().optional(),\n gender: z.string().describe(\"Gender\").nullable().optional(),\n prefix: z.string().describe(\"Name prefix\").nullable().optional(),\n suffix: z.string().describe(\"Name suffix\").nullable().optional(),\n deleted: z.boolean().describe(\"Whether the contact is deleted\").nullable().optional(),\n file_as: z.string().describe(\"File as name\").nullable().optional(),\n starred: z.boolean().describe(\"Whether starred\").nullable().optional(),\n nickname: z.string().describe(\"Nickname\").nullable().optional(),\n last_name: z.string().describe(\"Last name\").nullable().optional(),\n first_name: z.string().describe(\"First name\").nullable().optional(),\n memberships: z.array(MissiveCreateContacts_MembershipResponseSchema).describe(\"List of memberships\").nullable().optional(),\n middle_name: z.string().describe(\"Middle name\").nullable().optional(),\n modified_at: z.number().int().describe(\"Unix timestamp of last modification\").nullable().optional(),\n contact_book: z.string().describe(\"Contact book UUID\"),\n phonetic_last_name: z.string().describe(\"Phonetic last name\").nullable().optional(),\n phonetic_first_name: z.string().describe(\"Phonetic first name\").nullable().optional(),\n phonetic_middle_name: z.string().describe(\"Phonetic middle name\").nullable().optional(),\n}).describe(\"Created contact object in the response.\");\nexport const MissiveCreateContactsOutput: z.ZodTypeAny = z.object({\n contacts: z.array(MissiveCreateContacts_ContactResponseSchema).describe(\"Array of created contact objects\"),\n}).describe(\"Response model for creating contacts in Missive.\");\n\nexport const missiveCreateContacts = action(\"MISSIVE_CREATE_CONTACTS\", {\n slug: \"missive-create-contacts\",\n name: \"Create Missive Contacts\",\n description: \"Tool to create one or more contacts in a Missive contact book. Use when you need to add new contacts with detailed information including name, email, phone, addresses, and organization memberships.\",\n input: MissiveCreateContactsInput,\n output: MissiveCreateContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO,EAC/D,UAAU,EAAE,MAAM,EAAE,OAAO;CAC3B,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,KAAK;GAAC;GAAS;GAAgB;GAAW;GAAY;GAAoB;GAAO;EAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG;EAClN,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG;EAC/H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;EAC/K,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnF,S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AAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CACrD,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAKrD,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuD,EAAE,OAAO,EAChE,UAAU,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,kCAAkC,EAC5G,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-contacts.mjs","names":[],"sources":["../../src/actions/create-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MissiveCreateContactsInput = z.object({\n contacts: z.array(z.object({\n infos: z.array(z.object({\n city: z.string().describe(\"City (for physical_address kind)\").optional(),\n kind: z.enum([\"email\", \"phone_number\", \"twitter\", \"facebook\", \"physical_address\", \"url\", \"custom\"]).describe(\"Type of contact information (email, phone_number, twitter, facebook, physical_address, url, custom)\"),\n name: z.string().describe(\"Name for facebook kind\").optional(),\n label: z.string().describe(\"Label for the contact info (home, work, personal, other, etc.). This field is required by the API.\"),\n value: z.string().describe(\"Value for the contact info (email address, phone number, URL, etc.). Required for most info types except physical_address and facebook.\").optional(),\n region: z.string().describe(\"State or region (for physical_address kind)\").optional(),\n street: z.string().describe(\"Street address (for physical_address kind)\").optional(),\n country: z.string().describe(\"Country (for physical_address kind)\").optional(),\n postal_code: z.string().describe(\"Postal or ZIP code (for physical_address kind)\").optional(),\n custom_label: z.string().describe(\"Custom label when kind is 'custom' or when using a custom label value\").optional(),\n}).passthrough().describe(\"Contact information object (email, phone, address, social, etc.).\")).describe(\"List of contact information objects (emails, phones, addresses, social profiles, etc.)\").optional(),\n notes: z.string().describe(\"Notes about the contact\").optional(),\n gender: z.string().describe(\"Gender of the contact\").optional(),\n prefix: z.string().describe(\"Name prefix (Mr., Mrs., Dr., etc.)\").optional(),\n suffix: z.string().describe(\"Name suffix (Jr., Sr., III, etc.)\").optional(),\n file_as: z.string().describe(\"How to file this contact (custom sorting name)\").optional(),\n starred: z.boolean().describe(\"Whether the contact is starred/favorited\").optional(),\n nickname: z.string().describe(\"Nickname\").optional(),\n last_name: z.string().describe(\"Last name of the contact\").optional(),\n first_name: z.string().describe(\"First name of the contact\").optional(),\n memberships: z.array(z.object({\n group: z.object({\n id: z.string().describe(\"UUID of the organization or group\").optional(),\n kind: z.enum([\"organization\", \"group\"]).describe(\"Type of group (organization or group)\"),\n name: z.string().describe(\"Name of the organization or group\").optional(),\n}).describe(\"Organization or group reference\"),\n title: z.string().describe(\"Job title (applicable when group kind is 'organization')\").optional(),\n location: z.string().describe(\"Location (applicable when group kind is 'organization')\").optional(),\n department: z.string().describe(\"Department (applicable when group kind is 'organization')\").optional(),\n description: z.string().describe(\"Description of the membership (applicable when group kind is 'organization')\").optional(),\n}).passthrough().describe(\"Organization or group membership for a contact.\")).describe(\"List of organization or group memberships\").optional(),\n middle_name: z.string().describe(\"Middle name of the contact\").optional(),\n contact_book: z.string().describe(\"UUID of the contact book to add this contact to\"),\n phonetic_last_name: z.string().describe(\"Phonetic spelling of last name\").optional(),\n phonetic_first_name: z.string().describe(\"Phonetic spelling of first name\").optional(),\n phonetic_middle_name: z.string().describe(\"Phonetic spelling of middle name\").optional(),\n}).passthrough().describe(\"Contact object to create.\")).describe(\"Array of contact objects to create. Each contact must include contact_book UUID.\"),\n}).describe(\"Request model for creating one or more contacts in Missive.\");\nconst MissiveCreateContacts_ContactInfoResponseSchema = z.object({\n city: z.string().describe(\"City\").nullable().optional(),\n kind: z.string().describe(\"Type of contact information\").nullable().optional(),\n name: z.string().describe(\"Name for facebook kind\").nullable().optional(),\n label: z.string().describe(\"Label for the contact info\").nullable().optional(),\n value: z.string().describe(\"Value of the contact info\").nullable().optional(),\n region: z.string().describe(\"Region or state\").nullable().optional(),\n street: z.string().describe(\"Street address\").nullable().optional(),\n country: z.string().describe(\"Country\").nullable().optional(),\n postal_code: z.string().describe(\"Postal code\").nullable().optional(),\n custom_label: z.string().describe(\"Custom label\").nullable().optional(),\n}).passthrough().describe(\"Contact information in the response.\");\nconst MissiveCreateContacts_MembershipGroupResponseSchema = z.object({\n id: z.string().describe(\"UUID of the group or organization\").nullable().optional(),\n kind: z.string().describe(\"Type of group\").nullable().optional(),\n name: z.string().describe(\"Name of the group or organization\").nullable().optional(),\n}).passthrough().describe(\"Group or organization in membership response.\");\nconst MissiveCreateContacts_MembershipResponseSchema = z.object({\n group: MissiveCreateContacts_MembershipGroupResponseSchema.nullable().optional(),\n title: z.string().describe(\"Job title\").nullable().optional(),\n location: z.string().describe(\"Location\").nullable().optional(),\n department: z.string().describe(\"Department\").nullable().optional(),\n description: z.string().describe(\"Description\").nullable().optional(),\n}).passthrough().describe(\"Membership in the response.\");\nconst MissiveCreateContacts_ContactResponseSchema = z.object({\n id: z.string().describe(\"UUID of the created contact\").nullable(),\n infos: z.array(MissiveCreateContacts_ContactInfoResponseSchema).describe(\"List of contact information\").nullable().optional(),\n notes: z.string().describe(\"Notes\").nullable().optional(),\n gender: z.string().describe(\"Gender\").nullable().optional(),\n prefix: z.string().describe(\"Name prefix\").nullable().optional(),\n suffix: z.string().describe(\"Name suffix\").nullable().optional(),\n deleted: z.boolean().describe(\"Whether the contact is deleted\").nullable().optional(),\n file_as: z.string().describe(\"File as name\").nullable().optional(),\n starred: z.boolean().describe(\"Whether starred\").nullable().optional(),\n nickname: z.string().describe(\"Nickname\").nullable().optional(),\n last_name: z.string().describe(\"Last name\").nullable().optional(),\n first_name: z.string().describe(\"First name\").nullable().optional(),\n memberships: z.array(MissiveCreateContacts_MembershipResponseSchema).describe(\"List of memberships\").nullable().optional(),\n middle_name: z.string().describe(\"Middle name\").nullable().optional(),\n modified_at: z.number().int().describe(\"Unix timestamp of last modification\").nullable().optional(),\n contact_book: z.string().describe(\"Contact book UUID\").nullable(),\n phonetic_last_name: z.string().describe(\"Phonetic last name\").nullable().optional(),\n phonetic_first_name: z.string().describe(\"Phonetic first name\").nullable().optional(),\n phonetic_middle_name: z.string().describe(\"Phonetic middle name\").nullable().optional(),\n}).passthrough().describe(\"Created contact object in the response.\");\nexport const MissiveCreateContactsOutput = z.object({\n contacts: z.array(MissiveCreateContacts_ContactResponseSchema).describe(\"Array of created contact objects\"),\n}).passthrough().describe(\"Response model for creating contacts in Missive.\");\n\nexport const missiveCreateContacts = action(\"MISSIVE_CREATE_CONTACTS\", {\n slug: \"missive-create-contacts\",\n name: \"Create Missive Contacts\",\n description: \"Tool to create one or more contacts in a Missive contact book. Use when you need to add new contacts with detailed information including name, email, phone, addresses, and organization memberships.\",\n input: MissiveCreateContactsInput,\n output: MissiveCreateContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,EACjD,UAAU,EAAE,MAAM,EAAE,OAAO;CAC3B,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,KAAK;GAAC;GAAS;GAAgB;GAAW;GAAY;GAAoB;GAAO;EAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG;EAClN,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC7D,OAAO,EAAE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.z.object({
14
14
  name: zod.z.string().describe("Display name associated with the email address").optional(),
15
15
  address: zod.z.string().describe("Email address of the recipient or sender")
16
- }).describe("Email address field for drafts.")).describe("CC recipients for email drafts").optional(),
16
+ }).passthrough().describe("Email address field for drafts.")).describe("CC recipients for email drafts").optional(),
17
17
  to_fields: zod.z.array(zod.z.union([
18
18
  zod.z.object({
19
19
  name: zod.z.string().nullable().optional(),
20
20
  address: zod.z.string().describe("Email address of the recipient or sender")
21
- }).describe("Email address field for drafts."),
21
+ }).passthrough().describe("Email address field for drafts."),
22
22
  zod.z.object({
23
23
  type: zod.z.enum([
24
24
  "signalwire",
@@ -27,23 +27,23 @@ const MissiveCreateDraftInput = zod.z.object({
27
27
  "whatsapp"
28
28
  ]).nullable().optional(),
29
29
  phone_number: zod.z.string().describe("Phone number in E.164 format (e.g., '+18005550199')")
30
- }).describe("Phone number field for SMS/WhatsApp drafts."),
30
+ }).passthrough().describe("Phone number field for SMS/WhatsApp drafts."),
31
31
  zod.z.object({
32
32
  id: zod.z.string().describe("Custom channel or live chat account ID"),
33
33
  name: zod.z.string().describe("Display name for the custom channel or live chat participant"),
34
34
  username: zod.z.string().describe("Username in the custom channel or live chat")
35
- }).describe("Custom channel or live chat field.")
35
+ }).passthrough().describe("Custom channel or live chat field.")
36
36
  ])).describe("List of recipients (one only for SMS/WhatsApp)"),
37
37
  bcc_fields: zod.z.array(zod.z.object({
38
38
  name: zod.z.string().describe("Display name associated with the email address").optional(),
39
39
  address: zod.z.string().describe("Email address of the recipient or sender")
40
- }).describe("Email address field for drafts.")).describe("BCC recipients for email drafts").optional(),
40
+ }).passthrough().describe("Email address field for drafts.")).describe("BCC recipients for email drafts").optional(),
41
41
  force_team: zod.z.boolean().describe("Force association to the specified team even if already linked").optional(),
42
42
  from_field: zod.z.union([
43
43
  zod.z.object({
44
44
  name: zod.z.string().nullable().optional(),
45
45
  address: zod.z.string().describe("Email address of the recipient or sender")
46
- }).describe("Email address field for drafts."),
46
+ }).passthrough().describe("Email address field for drafts."),
47
47
  zod.z.object({
48
48
  type: zod.z.enum([
49
49
  "signalwire",
@@ -52,18 +52,18 @@ const MissiveCreateDraftInput = zod.z.object({
52
52
  "whatsapp"
53
53
  ]).nullable().optional(),
54
54
  phone_number: zod.z.string().describe("Phone number in E.164 format (e.g., '+18005550199')")
55
- }).describe("Phone number field for SMS/WhatsApp drafts."),
55
+ }).passthrough().describe("Phone number field for SMS/WhatsApp drafts."),
56
56
  zod.z.object({
57
57
  id: zod.z.string().describe("Custom channel or live chat account ID"),
58
58
  name: zod.z.string().describe("Display name for the custom channel or live chat participant"),
59
59
  username: zod.z.string().describe("Username in the custom channel or live chat")
60
- }).describe("Custom channel or live chat field.")
60
+ }).passthrough().describe("Custom channel or live chat field.")
61
61
  ]),
62
62
  references: zod.z.array(zod.z.string()).describe("Message-ID references for threading into existing conversations").optional(),
63
63
  attachments: zod.z.array(zod.z.object({
64
64
  filename: zod.z.string().describe("Filename of the attachment"),
65
65
  base64_data: zod.z.string().describe("Base64-encoded contents of the file")
66
- }).describe("File attachment model.")).describe("List of file attachments (up to 25, total payload <=10MB)").optional(),
66
+ }).passthrough().describe("File attachment model.")).describe("List of file attachments (up to 25, total payload <=10MB)").optional(),
67
67
  add_to_inbox: zod.z.boolean().describe("Move the draft's conversation to everyone's inbox").optional(),
68
68
  conversation: zod.z.string().describe("Conversation ID to append the draft to").optional(),
69
69
  organization: zod.z.string().describe("Organization ID to scope or link the conversation").optional(),
@@ -76,13 +76,13 @@ const MissiveCreateDraftInput = zod.z.object({
76
76
  external_response_id: zod.z.string().describe("WhatsApp template ID when initiating new WhatsApp conversation").optional(),
77
77
  remove_shared_labels: zod.z.array(zod.z.string()).describe("Shared label IDs to remove from the conversation").optional(),
78
78
  quote_previous_message: zod.z.boolean().describe("Include quoted text of the last message in an existing conversation").optional(),
79
- external_response_variables: zod.z.object({}).describe("Variables for WhatsApp template interpolation").optional()
79
+ external_response_variables: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Variables for WhatsApp template interpolation").optional()
80
80
  }).describe("Request model for creating a draft (email, SMS, WhatsApp, or Live Chat) in Missive.");
81
81
  const MissiveCreateDraft_DraftResponseSchema = zod.z.object({
82
- id: zod.z.string().describe("Unique identifier of the created draft"),
82
+ id: zod.z.string().describe("Unique identifier of the created draft").nullable(),
83
83
  conversation: zod.z.string().describe("Conversation ID the draft belongs to").nullable().optional()
84
- }).describe("Created draft model.");
85
- const MissiveCreateDraftOutput = zod.z.object({ drafts: MissiveCreateDraft_DraftResponseSchema.nullable() }).describe("Response model for creating a draft in Missive.");
84
+ }).passthrough().describe("Created draft model.");
85
+ const MissiveCreateDraftOutput = zod.z.object({ drafts: MissiveCreateDraft_DraftResponseSchema.nullable() }).passthrough().describe("Response model for creating a draft in Missive.");
86
86
  const missiveCreateDraft = require_action.action("MISSIVE_CREATE_DRAFT", {
87
87
  slug: "missive-create-draft",
88
88
  name: "Create Draft",
@@ -1 +1 @@
1
- {"version":3,"file":"create-draft.cjs","names":["z","action"],"sources":["../../src/actions/create-draft.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MissiveCreateDraftInput: z.ZodTypeAny = z.object({\n body: z.string().describe(\"HTML or text body of the draft. Use '<br>' for paragraphs.\"),\n send: z.boolean().describe(\"Send the draft immediately upon creation\").optional(),\n team: z.string().describe(\"Team ID to link the draft's conversation\").optional(),\n close: z.boolean().describe(\"Close the conversation after draft creation\").optional(),\n account: z.string().describe(\"Account ID for custom channels or live chat\").optional(),\n send_at: z.number().int().describe(\"Unix timestamp to schedule sending (cannot combine with send)\").optional(),\n subject: z.string().describe(\"Subject for email drafts\").optional(),\n add_users: z.array(z.string()).describe(\"List of user IDs to grant access to the conversation (requires organization)\").optional(),\n cc_fields: z.array(z.object({\n name: z.string().describe(\"Display name associated with the email address\").optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).describe(\"Email address field for drafts.\")).describe(\"CC recipients for email drafts\").optional(),\n to_fields: z.array(z.union([z.object({\n name: z.string().nullable().optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).describe(\"Email address field for drafts.\"), z.object({\n type: z.enum([\"signalwire\", \"twilio\", \"twilio_whatsapp\", \"whatsapp\"]).nullable().optional(),\n phone_number: z.string().describe(\"Phone number in E.164 format (e.g., '+18005550199')\"),\n}).describe(\"Phone number field for SMS/WhatsApp drafts.\"), z.object({\n id: z.string().describe(\"Custom channel or live chat account ID\"),\n name: z.string().describe(\"Display name for the custom channel or live chat participant\"),\n username: z.string().describe(\"Username in the custom channel or live chat\"),\n}).describe(\"Custom channel or live chat field.\")])).describe(\"List of recipients (one only for SMS/WhatsApp)\"),\n bcc_fields: z.array(z.object({\n name: z.string().describe(\"Display name associated with the email address\").optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).describe(\"Email address field for drafts.\")).describe(\"BCC recipients for email drafts\").optional(),\n force_team: z.boolean().describe(\"Force association to the specified team even if already linked\").optional(),\n from_field: z.union([z.object({\n name: z.string().nullable().optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).describe(\"Email address field for drafts.\"), z.object({\n type: z.enum([\"signalwire\", \"twilio\", \"twilio_whatsapp\", \"whatsapp\"]).nullable().optional(),\n phone_number: z.string().describe(\"Phone number in E.164 format (e.g., '+18005550199')\"),\n}).describe(\"Phone number field for SMS/WhatsApp drafts.\"), z.object({\n id: z.string().describe(\"Custom channel or live chat account ID\"),\n name: z.string().describe(\"Display name for the custom channel or live chat participant\"),\n username: z.string().describe(\"Username in the custom channel or live chat\"),\n}).describe(\"Custom channel or live chat field.\")]),\n references: z.array(z.string()).describe(\"Message-ID references for threading into existing conversations\").optional(),\n attachments: z.array(z.object({\n filename: z.string().describe(\"Filename of the attachment\"),\n base64_data: z.string().describe(\"Base64-encoded contents of the file\"),\n}).describe(\"File attachment model.\")).describe(\"List of file attachments (up to 25, total payload <=10MB)\").optional(),\n add_to_inbox: z.boolean().describe(\"Move the draft's conversation to everyone's inbox\").optional(),\n conversation: z.string().describe(\"Conversation ID to append the draft to\").optional(),\n organization: z.string().describe(\"Organization ID to scope or link the conversation\").optional(),\n add_assignees: z.array(z.string()).describe(\"List of user IDs to assign to the conversation (requires organization)\").optional(),\n auto_followup: z.boolean().describe(\"Auto-cancel scheduled draft if a reply arrives (requires send_at)\").optional(),\n add_shared_labels: z.array(z.string()).describe(\"Shared label IDs to add to the conversation\").optional(),\n add_to_team_inbox: z.boolean().describe(\"Move the draft's conversation to team inbox (requires team)\").optional(),\n conversation_color: z.string().describe(\"HEX color code or 'good'/'warning'/'danger' for the conversation\").optional(),\n conversation_subject: z.string().describe(\"Subject for new conversation when using references\").optional(),\n external_response_id: z.string().describe(\"WhatsApp template ID when initiating new WhatsApp conversation\").optional(),\n remove_shared_labels: z.array(z.string()).describe(\"Shared label IDs to remove from the conversation\").optional(),\n quote_previous_message: z.boolean().describe(\"Include quoted text of the last message in an existing conversation\").optional(),\n external_response_variables: z.object({}).describe(\"Variables for WhatsApp template interpolation\").optional(),\n}).describe(\"Request model for creating a draft (email, SMS, WhatsApp, or Live Chat) in Missive.\");\nconst MissiveCreateDraft_DraftResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the created draft\"),\n conversation: z.string().describe(\"Conversation ID the draft belongs to\").nullable().optional(),\n}).describe(\"Created draft model.\");\nexport const MissiveCreateDraftOutput: z.ZodTypeAny = z.object({\n drafts: MissiveCreateDraft_DraftResponseSchema.nullable(),\n}).describe(\"Response model for creating a draft in Missive.\");\n\nexport const missiveCreateDraft = action(\"MISSIVE_CREATE_DRAFT\", {\n slug: \"missive-create-draft\",\n name: \"Create Draft\",\n description: \"Tool to create a new draft in Missive. Use after preparing message details to save a draft (email, SMS, WhatsApp, or Live Chat) for later editing or scheduling.\",\n input: MissiveCreateDraftInput,\n output: MissiveCreateDraftOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAA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AChH,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACrH,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzG,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACrH,sBAAsBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChH,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC7H,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAChE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,SAAS,sBAAsB;AAClC,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,QAAQ,uCAAuC,SAAS,EAC1D,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-draft.cjs","names":["z","action"],"sources":["../../src/actions/create-draft.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MissiveCreateDraftInput = z.object({\n body: z.string().describe(\"HTML or text body of the draft. Use '<br>' for paragraphs.\"),\n send: z.boolean().describe(\"Send the draft immediately upon creation\").optional(),\n team: z.string().describe(\"Team ID to link the draft's conversation\").optional(),\n close: z.boolean().describe(\"Close the conversation after draft creation\").optional(),\n account: z.string().describe(\"Account ID for custom channels or live chat\").optional(),\n send_at: z.number().int().describe(\"Unix timestamp to schedule sending (cannot combine with send)\").optional(),\n subject: z.string().describe(\"Subject for email drafts\").optional(),\n add_users: z.array(z.string()).describe(\"List of user IDs to grant access to the conversation (requires organization)\").optional(),\n cc_fields: z.array(z.object({\n name: z.string().describe(\"Display name associated with the email address\").optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).passthrough().describe(\"Email address field for drafts.\")).describe(\"CC recipients for email drafts\").optional(),\n to_fields: z.array(z.union([z.object({\n name: z.string().nullable().optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).passthrough().describe(\"Email address field for drafts.\"), z.object({\n type: z.enum([\"signalwire\", \"twilio\", \"twilio_whatsapp\", \"whatsapp\"]).nullable().optional(),\n phone_number: z.string().describe(\"Phone number in E.164 format (e.g., '+18005550199')\"),\n}).passthrough().describe(\"Phone number field for SMS/WhatsApp drafts.\"), z.object({\n id: z.string().describe(\"Custom channel or live chat account ID\"),\n name: z.string().describe(\"Display name for the custom channel or live chat participant\"),\n username: z.string().describe(\"Username in the custom channel or live chat\"),\n}).passthrough().describe(\"Custom channel or live chat field.\")])).describe(\"List of recipients (one only for SMS/WhatsApp)\"),\n bcc_fields: z.array(z.object({\n name: z.string().describe(\"Display name associated with the email address\").optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).passthrough().describe(\"Email address field for drafts.\")).describe(\"BCC recipients for email drafts\").optional(),\n force_team: z.boolean().describe(\"Force association to the specified team even if already linked\").optional(),\n from_field: z.union([z.object({\n name: z.string().nullable().optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).passthrough().describe(\"Email address field for drafts.\"), z.object({\n type: z.enum([\"signalwire\", \"twilio\", \"twilio_whatsapp\", \"whatsapp\"]).nullable().optional(),\n phone_number: z.string().describe(\"Phone number in E.164 format (e.g., '+18005550199')\"),\n}).passthrough().describe(\"Phone number field for SMS/WhatsApp drafts.\"), z.object({\n id: z.string().describe(\"Custom channel or live chat account ID\"),\n name: z.string().describe(\"Display name for the custom channel or live chat participant\"),\n username: z.string().describe(\"Username in the custom channel or live chat\"),\n}).passthrough().describe(\"Custom channel or live chat field.\")]),\n references: z.array(z.string()).describe(\"Message-ID references for threading into existing conversations\").optional(),\n attachments: z.array(z.object({\n filename: z.string().describe(\"Filename of the attachment\"),\n base64_data: z.string().describe(\"Base64-encoded contents of the file\"),\n}).passthrough().describe(\"File attachment model.\")).describe(\"List of file attachments (up to 25, total payload <=10MB)\").optional(),\n add_to_inbox: z.boolean().describe(\"Move the draft's conversation to everyone's inbox\").optional(),\n conversation: z.string().describe(\"Conversation ID to append the draft to\").optional(),\n organization: z.string().describe(\"Organization ID to scope or link the conversation\").optional(),\n add_assignees: z.array(z.string()).describe(\"List of user IDs to assign to the conversation (requires organization)\").optional(),\n auto_followup: z.boolean().describe(\"Auto-cancel scheduled draft if a reply arrives (requires send_at)\").optional(),\n add_shared_labels: z.array(z.string()).describe(\"Shared label IDs to add to the conversation\").optional(),\n add_to_team_inbox: z.boolean().describe(\"Move the draft's conversation to team inbox (requires team)\").optional(),\n conversation_color: z.string().describe(\"HEX color code or 'good'/'warning'/'danger' for the conversation\").optional(),\n conversation_subject: z.string().describe(\"Subject for new conversation when using references\").optional(),\n external_response_id: z.string().describe(\"WhatsApp template ID when initiating new WhatsApp conversation\").optional(),\n remove_shared_labels: z.array(z.string()).describe(\"Shared label IDs to remove from the conversation\").optional(),\n quote_previous_message: z.boolean().describe(\"Include quoted text of the last message in an existing conversation\").optional(),\n external_response_variables: z.record(z.string(), z.unknown()).describe(\"Variables for WhatsApp template interpolation\").optional(),\n}).describe(\"Request model for creating a draft (email, SMS, WhatsApp, or Live Chat) in Missive.\");\nconst MissiveCreateDraft_DraftResponseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the created draft\").nullable(),\n conversation: z.string().describe(\"Conversation ID the draft belongs to\").nullable().optional(),\n}).passthrough().describe(\"Created draft model.\");\nexport const MissiveCreateDraftOutput = z.object({\n drafts: MissiveCreateDraft_DraftResponseSchema.nullable(),\n}).passthrough().describe(\"Response model for creating a draft in Missive.\");\n\nexport const missiveCreateDraft = action(\"MISSIVE_CREATE_DRAFT\", {\n slug: \"missive-create-draft\",\n name: \"Create Draft\",\n description: \"Tool to create a new draft in Missive. Use after preparing message details to save a draft (email, SMS, WhatsApp, or Live Chat) for later editing or scheduling.\",\n input: MissiveCreateDraftInput,\n output: MissiveCreateDraftOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACtF,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC7G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACjI,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC5B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACrF,SAASA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ACjG,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sBAAsB;AAChD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,QAAQ,uCAAuC,SAAS,EAC1D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,149 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-draft.d.ts
4
- declare const MissiveCreateDraftInput: z.ZodTypeAny;
5
- declare const MissiveCreateDraftOutput: z.ZodTypeAny;
6
- declare const missiveCreateDraft: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MissiveCreateDraftInput: z.ZodObject<{
5
+ body: z.ZodString;
6
+ send: z.ZodOptional<z.ZodBoolean>;
7
+ team: z.ZodOptional<z.ZodString>;
8
+ close: z.ZodOptional<z.ZodBoolean>;
9
+ account: z.ZodOptional<z.ZodString>;
10
+ send_at: z.ZodOptional<z.ZodNumber>;
11
+ subject: z.ZodOptional<z.ZodString>;
12
+ add_users: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
+ cc_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
+ name: z.ZodOptional<z.ZodString>;
15
+ address: z.ZodString;
16
+ }, z.core.$loose>>>;
17
+ to_fields: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
18
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ address: z.ZodString;
20
+ }, z.core.$loose>, z.ZodObject<{
21
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
22
+ whatsapp: "whatsapp";
23
+ signalwire: "signalwire";
24
+ twilio: "twilio";
25
+ twilio_whatsapp: "twilio_whatsapp";
26
+ }>>>;
27
+ phone_number: z.ZodString;
28
+ }, z.core.$loose>, z.ZodObject<{
29
+ id: z.ZodString;
30
+ name: z.ZodString;
31
+ username: z.ZodString;
32
+ }, z.core.$loose>]>>;
33
+ bcc_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
+ name: z.ZodOptional<z.ZodString>;
35
+ address: z.ZodString;
36
+ }, z.core.$loose>>>;
37
+ force_team: z.ZodOptional<z.ZodBoolean>;
38
+ from_field: z.ZodUnion<readonly [z.ZodObject<{
39
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ address: z.ZodString;
41
+ }, z.core.$loose>, z.ZodObject<{
42
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
43
+ whatsapp: "whatsapp";
44
+ signalwire: "signalwire";
45
+ twilio: "twilio";
46
+ twilio_whatsapp: "twilio_whatsapp";
47
+ }>>>;
48
+ phone_number: z.ZodString;
49
+ }, z.core.$loose>, z.ZodObject<{
50
+ id: z.ZodString;
51
+ name: z.ZodString;
52
+ username: z.ZodString;
53
+ }, z.core.$loose>]>;
54
+ references: z.ZodOptional<z.ZodArray<z.ZodString>>;
55
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
56
+ filename: z.ZodString;
57
+ base64_data: z.ZodString;
58
+ }, z.core.$loose>>>;
59
+ add_to_inbox: z.ZodOptional<z.ZodBoolean>;
60
+ conversation: z.ZodOptional<z.ZodString>;
61
+ organization: z.ZodOptional<z.ZodString>;
62
+ add_assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
63
+ auto_followup: z.ZodOptional<z.ZodBoolean>;
64
+ add_shared_labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
65
+ add_to_team_inbox: z.ZodOptional<z.ZodBoolean>;
66
+ conversation_color: z.ZodOptional<z.ZodString>;
67
+ conversation_subject: z.ZodOptional<z.ZodString>;
68
+ external_response_id: z.ZodOptional<z.ZodString>;
69
+ remove_shared_labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
70
+ quote_previous_message: z.ZodOptional<z.ZodBoolean>;
71
+ external_response_variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
72
+ }, z.core.$strip>;
73
+ declare const MissiveCreateDraftOutput: z.ZodObject<{
74
+ drafts: z.ZodNullable<z.ZodObject<{
75
+ id: z.ZodNullable<z.ZodString>;
76
+ conversation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ }, z.core.$loose>>;
78
+ }, z.core.$loose>;
79
+ declare const missiveCreateDraft: import("@keystrokehq/action").WorkflowActionDefinition<{
80
+ body: string;
81
+ to_fields: ({
82
+ [x: string]: unknown;
83
+ address: string;
84
+ name?: string | null | undefined;
85
+ } | {
86
+ [x: string]: unknown;
87
+ phone_number: string;
88
+ type?: "whatsapp" | "signalwire" | "twilio" | "twilio_whatsapp" | null | undefined;
89
+ } | {
90
+ [x: string]: unknown;
91
+ id: string;
92
+ name: string;
93
+ username: string;
94
+ })[];
95
+ from_field: {
96
+ [x: string]: unknown;
97
+ address: string;
98
+ name?: string | null | undefined;
99
+ } | {
100
+ [x: string]: unknown;
101
+ phone_number: string;
102
+ type?: "whatsapp" | "signalwire" | "twilio" | "twilio_whatsapp" | null | undefined;
103
+ } | {
104
+ [x: string]: unknown;
105
+ id: string;
106
+ name: string;
107
+ username: string;
108
+ };
109
+ send?: boolean | undefined;
110
+ team?: string | undefined;
111
+ close?: boolean | undefined;
112
+ account?: string | undefined;
113
+ send_at?: number | undefined;
114
+ subject?: string | undefined;
115
+ add_users?: string[] | undefined;
116
+ cc_fields?: {
117
+ [x: string]: unknown;
118
+ address: string;
119
+ name?: string | undefined;
120
+ }[] | undefined;
121
+ bcc_fields?: {
122
+ [x: string]: unknown;
123
+ address: string;
124
+ name?: string | undefined;
125
+ }[] | undefined;
126
+ force_team?: boolean | undefined;
127
+ references?: string[] | undefined;
128
+ attachments?: {
129
+ [x: string]: unknown;
130
+ filename: string;
131
+ base64_data: string;
132
+ }[] | undefined;
133
+ add_to_inbox?: boolean | undefined;
134
+ conversation?: string | undefined;
135
+ organization?: string | undefined;
136
+ add_assignees?: string[] | undefined;
137
+ auto_followup?: boolean | undefined;
138
+ add_shared_labels?: string[] | undefined;
139
+ add_to_team_inbox?: boolean | undefined;
140
+ conversation_color?: string | undefined;
141
+ conversation_subject?: string | undefined;
142
+ external_response_id?: string | undefined;
143
+ remove_shared_labels?: string[] | undefined;
144
+ quote_previous_message?: boolean | undefined;
145
+ external_response_variables?: Record<string, unknown> | undefined;
146
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
147
  //#endregion
8
148
  export { missiveCreateDraft };
9
149
  //# sourceMappingURL=create-draft.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-draft.d.cts","names":[],"sources":["../../src/actions/create-draft.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UA0D0D;AAAA,cAKrF,wBAAA,EAA0B,CAAA,CAAE,UAEqB;AAAA,cAEjD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-draft.d.cts","names":[],"sources":["../../src/actions/create-draft.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+DvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAM7B,MAAA;AAAA"}