@keystrokehq/missive 0.1.5 → 0.1.6

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 (333) 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 +1 -0
  4. package/dist/actions/create-analytics-report.cjs.map +1 -1
  5. package/dist/actions/create-analytics-report.d.cts +3 -25
  6. package/dist/actions/create-analytics-report.d.cts.map +1 -1
  7. package/dist/actions/create-analytics-report.d.mts +3 -25
  8. package/dist/actions/create-analytics-report.d.mts.map +1 -1
  9. package/dist/actions/create-analytics-report.mjs +1 -0
  10. package/dist/actions/create-analytics-report.mjs.map +1 -1
  11. package/dist/actions/create-contacts.cjs +1 -0
  12. package/dist/actions/create-contacts.cjs.map +1 -1
  13. package/dist/actions/create-contacts.d.cts +3 -56
  14. package/dist/actions/create-contacts.d.cts.map +1 -1
  15. package/dist/actions/create-contacts.d.mts +3 -56
  16. package/dist/actions/create-contacts.d.mts.map +1 -1
  17. package/dist/actions/create-contacts.mjs +1 -0
  18. package/dist/actions/create-contacts.mjs.map +1 -1
  19. package/dist/actions/create-draft.cjs +1 -0
  20. package/dist/actions/create-draft.cjs.map +1 -1
  21. package/dist/actions/create-draft.d.cts +3 -80
  22. package/dist/actions/create-draft.d.cts.map +1 -1
  23. package/dist/actions/create-draft.d.mts +3 -80
  24. package/dist/actions/create-draft.d.mts.map +1 -1
  25. package/dist/actions/create-draft.mjs +1 -0
  26. package/dist/actions/create-draft.mjs.map +1 -1
  27. package/dist/actions/create-post.cjs +1 -0
  28. package/dist/actions/create-post.cjs.map +1 -1
  29. package/dist/actions/create-post.d.cts +3 -30
  30. package/dist/actions/create-post.d.cts.map +1 -1
  31. package/dist/actions/create-post.d.mts +3 -30
  32. package/dist/actions/create-post.d.mts.map +1 -1
  33. package/dist/actions/create-post.mjs +1 -0
  34. package/dist/actions/create-post.mjs.map +1 -1
  35. package/dist/actions/create-response.cjs +1 -0
  36. package/dist/actions/create-response.cjs.map +1 -1
  37. package/dist/actions/create-response.d.cts +3 -23
  38. package/dist/actions/create-response.d.cts.map +1 -1
  39. package/dist/actions/create-response.d.mts +3 -23
  40. package/dist/actions/create-response.d.mts.map +1 -1
  41. package/dist/actions/create-response.mjs +1 -0
  42. package/dist/actions/create-response.mjs.map +1 -1
  43. package/dist/actions/create-shared-label.cjs +1 -0
  44. package/dist/actions/create-shared-label.cjs.map +1 -1
  45. package/dist/actions/create-shared-label.d.cts +3 -22
  46. package/dist/actions/create-shared-label.d.cts.map +1 -1
  47. package/dist/actions/create-shared-label.d.mts +3 -22
  48. package/dist/actions/create-shared-label.d.mts.map +1 -1
  49. package/dist/actions/create-shared-label.mjs +1 -0
  50. package/dist/actions/create-shared-label.mjs.map +1 -1
  51. package/dist/actions/create-task.cjs +1 -0
  52. package/dist/actions/create-task.cjs.map +1 -1
  53. package/dist/actions/create-task.d.cts +3 -26
  54. package/dist/actions/create-task.d.cts.map +1 -1
  55. package/dist/actions/create-task.d.mts +3 -26
  56. package/dist/actions/create-task.d.mts.map +1 -1
  57. package/dist/actions/create-task.mjs +1 -0
  58. package/dist/actions/create-task.mjs.map +1 -1
  59. package/dist/actions/create-team.cjs +1 -0
  60. package/dist/actions/create-team.cjs.map +1 -1
  61. package/dist/actions/create-team.d.cts +3 -22
  62. package/dist/actions/create-team.d.cts.map +1 -1
  63. package/dist/actions/create-team.d.mts +3 -22
  64. package/dist/actions/create-team.d.mts.map +1 -1
  65. package/dist/actions/create-team.mjs +1 -0
  66. package/dist/actions/create-team.mjs.map +1 -1
  67. package/dist/actions/create-webhook.cjs +1 -0
  68. package/dist/actions/create-webhook.cjs.map +1 -1
  69. package/dist/actions/create-webhook.d.cts +3 -25
  70. package/dist/actions/create-webhook.d.cts.map +1 -1
  71. package/dist/actions/create-webhook.d.mts +3 -25
  72. package/dist/actions/create-webhook.d.mts.map +1 -1
  73. package/dist/actions/create-webhook.mjs +1 -0
  74. package/dist/actions/create-webhook.mjs.map +1 -1
  75. package/dist/actions/delete-draft.cjs +1 -0
  76. package/dist/actions/delete-draft.cjs.map +1 -1
  77. package/dist/actions/delete-draft.d.cts +3 -15
  78. package/dist/actions/delete-draft.d.cts.map +1 -1
  79. package/dist/actions/delete-draft.d.mts +3 -15
  80. package/dist/actions/delete-draft.d.mts.map +1 -1
  81. package/dist/actions/delete-draft.mjs +1 -0
  82. package/dist/actions/delete-draft.mjs.map +1 -1
  83. package/dist/actions/delete-post.cjs +1 -0
  84. package/dist/actions/delete-post.cjs.map +1 -1
  85. package/dist/actions/delete-post.d.cts +3 -15
  86. package/dist/actions/delete-post.d.cts.map +1 -1
  87. package/dist/actions/delete-post.d.mts +3 -15
  88. package/dist/actions/delete-post.d.mts.map +1 -1
  89. package/dist/actions/delete-post.mjs +1 -0
  90. package/dist/actions/delete-post.mjs.map +1 -1
  91. package/dist/actions/delete-responses.cjs +1 -0
  92. package/dist/actions/delete-responses.cjs.map +1 -1
  93. package/dist/actions/delete-responses.d.cts +3 -15
  94. package/dist/actions/delete-responses.d.cts.map +1 -1
  95. package/dist/actions/delete-responses.d.mts +3 -15
  96. package/dist/actions/delete-responses.d.mts.map +1 -1
  97. package/dist/actions/delete-responses.mjs +1 -0
  98. package/dist/actions/delete-responses.mjs.map +1 -1
  99. package/dist/actions/delete-webhook.cjs +1 -0
  100. package/dist/actions/delete-webhook.cjs.map +1 -1
  101. package/dist/actions/delete-webhook.d.cts +3 -15
  102. package/dist/actions/delete-webhook.d.cts.map +1 -1
  103. package/dist/actions/delete-webhook.d.mts +3 -15
  104. package/dist/actions/delete-webhook.d.mts.map +1 -1
  105. package/dist/actions/delete-webhook.mjs +1 -0
  106. package/dist/actions/delete-webhook.mjs.map +1 -1
  107. package/dist/actions/get-analytics-report.cjs +1 -0
  108. package/dist/actions/get-analytics-report.cjs.map +1 -1
  109. package/dist/actions/get-analytics-report.d.cts +3 -15
  110. package/dist/actions/get-analytics-report.d.cts.map +1 -1
  111. package/dist/actions/get-analytics-report.d.mts +3 -15
  112. package/dist/actions/get-analytics-report.d.mts.map +1 -1
  113. package/dist/actions/get-analytics-report.mjs +1 -0
  114. package/dist/actions/get-analytics-report.mjs.map +1 -1
  115. package/dist/actions/get-contact.cjs +1 -0
  116. package/dist/actions/get-contact.cjs.map +1 -1
  117. package/dist/actions/get-contact.d.cts +3 -15
  118. package/dist/actions/get-contact.d.cts.map +1 -1
  119. package/dist/actions/get-contact.d.mts +3 -15
  120. package/dist/actions/get-contact.d.mts.map +1 -1
  121. package/dist/actions/get-contact.mjs +1 -0
  122. package/dist/actions/get-contact.mjs.map +1 -1
  123. package/dist/actions/get-conversation-messages.cjs +1 -0
  124. package/dist/actions/get-conversation-messages.cjs.map +1 -1
  125. package/dist/actions/get-conversation-messages.d.cts +3 -17
  126. package/dist/actions/get-conversation-messages.d.cts.map +1 -1
  127. package/dist/actions/get-conversation-messages.d.mts +3 -17
  128. package/dist/actions/get-conversation-messages.d.mts.map +1 -1
  129. package/dist/actions/get-conversation-messages.mjs +1 -0
  130. package/dist/actions/get-conversation-messages.mjs.map +1 -1
  131. package/dist/actions/get-conversation.cjs +1 -0
  132. package/dist/actions/get-conversation.cjs.map +1 -1
  133. package/dist/actions/get-conversation.d.cts +3 -15
  134. package/dist/actions/get-conversation.d.cts.map +1 -1
  135. package/dist/actions/get-conversation.d.mts +3 -15
  136. package/dist/actions/get-conversation.d.mts.map +1 -1
  137. package/dist/actions/get-conversation.mjs +1 -0
  138. package/dist/actions/get-conversation.mjs.map +1 -1
  139. package/dist/actions/get-message.cjs +1 -0
  140. package/dist/actions/get-message.cjs.map +1 -1
  141. package/dist/actions/get-message.d.cts +3 -15
  142. package/dist/actions/get-message.d.cts.map +1 -1
  143. package/dist/actions/get-message.d.mts +3 -15
  144. package/dist/actions/get-message.d.mts.map +1 -1
  145. package/dist/actions/get-message.mjs +1 -0
  146. package/dist/actions/get-message.mjs.map +1 -1
  147. package/dist/actions/get-response.cjs +1 -0
  148. package/dist/actions/get-response.cjs.map +1 -1
  149. package/dist/actions/get-response.d.cts +3 -15
  150. package/dist/actions/get-response.d.cts.map +1 -1
  151. package/dist/actions/get-response.d.mts +3 -15
  152. package/dist/actions/get-response.d.mts.map +1 -1
  153. package/dist/actions/get-response.mjs +1 -0
  154. package/dist/actions/get-response.mjs.map +1 -1
  155. package/dist/actions/get-task.cjs +1 -0
  156. package/dist/actions/get-task.cjs.map +1 -1
  157. package/dist/actions/get-task.d.cts +3 -15
  158. package/dist/actions/get-task.d.cts.map +1 -1
  159. package/dist/actions/get-task.d.mts +3 -15
  160. package/dist/actions/get-task.d.mts.map +1 -1
  161. package/dist/actions/get-task.mjs +1 -0
  162. package/dist/actions/get-task.mjs.map +1 -1
  163. package/dist/actions/list-contact-books.cjs +1 -0
  164. package/dist/actions/list-contact-books.cjs.map +1 -1
  165. package/dist/actions/list-contact-books.d.cts +3 -16
  166. package/dist/actions/list-contact-books.d.cts.map +1 -1
  167. package/dist/actions/list-contact-books.d.mts +3 -16
  168. package/dist/actions/list-contact-books.d.mts.map +1 -1
  169. package/dist/actions/list-contact-books.mjs +1 -0
  170. package/dist/actions/list-contact-books.mjs.map +1 -1
  171. package/dist/actions/list-contact-groups.cjs +1 -0
  172. package/dist/actions/list-contact-groups.cjs.map +1 -1
  173. package/dist/actions/list-contact-groups.d.cts +3 -18
  174. package/dist/actions/list-contact-groups.d.cts.map +1 -1
  175. package/dist/actions/list-contact-groups.d.mts +3 -18
  176. package/dist/actions/list-contact-groups.d.mts.map +1 -1
  177. package/dist/actions/list-contact-groups.mjs +1 -0
  178. package/dist/actions/list-contact-groups.mjs.map +1 -1
  179. package/dist/actions/list-contacts.cjs +1 -0
  180. package/dist/actions/list-contacts.cjs.map +1 -1
  181. package/dist/actions/list-contacts.d.cts +3 -21
  182. package/dist/actions/list-contacts.d.cts.map +1 -1
  183. package/dist/actions/list-contacts.d.mts +3 -21
  184. package/dist/actions/list-contacts.d.mts.map +1 -1
  185. package/dist/actions/list-contacts.mjs +1 -0
  186. package/dist/actions/list-contacts.mjs.map +1 -1
  187. package/dist/actions/list-conversation-comments.cjs +1 -0
  188. package/dist/actions/list-conversation-comments.cjs.map +1 -1
  189. package/dist/actions/list-conversation-comments.d.cts +3 -17
  190. package/dist/actions/list-conversation-comments.d.cts.map +1 -1
  191. package/dist/actions/list-conversation-comments.d.mts +3 -17
  192. package/dist/actions/list-conversation-comments.d.mts.map +1 -1
  193. package/dist/actions/list-conversation-comments.mjs +1 -0
  194. package/dist/actions/list-conversation-comments.mjs.map +1 -1
  195. package/dist/actions/list-conversation-drafts.cjs +1 -0
  196. package/dist/actions/list-conversation-drafts.cjs.map +1 -1
  197. package/dist/actions/list-conversation-drafts.d.cts +3 -17
  198. package/dist/actions/list-conversation-drafts.d.cts.map +1 -1
  199. package/dist/actions/list-conversation-drafts.d.mts +3 -17
  200. package/dist/actions/list-conversation-drafts.d.mts.map +1 -1
  201. package/dist/actions/list-conversation-drafts.mjs +1 -0
  202. package/dist/actions/list-conversation-drafts.mjs.map +1 -1
  203. package/dist/actions/list-conversation-posts.cjs +1 -0
  204. package/dist/actions/list-conversation-posts.cjs.map +1 -1
  205. package/dist/actions/list-conversation-posts.d.cts +3 -17
  206. package/dist/actions/list-conversation-posts.d.cts.map +1 -1
  207. package/dist/actions/list-conversation-posts.d.mts +3 -17
  208. package/dist/actions/list-conversation-posts.d.mts.map +1 -1
  209. package/dist/actions/list-conversation-posts.mjs +1 -0
  210. package/dist/actions/list-conversation-posts.mjs.map +1 -1
  211. package/dist/actions/list-conversations.cjs +1 -0
  212. package/dist/actions/list-conversations.cjs.map +1 -1
  213. package/dist/actions/list-conversations.d.cts +3 -32
  214. package/dist/actions/list-conversations.d.cts.map +1 -1
  215. package/dist/actions/list-conversations.d.mts +3 -32
  216. package/dist/actions/list-conversations.d.mts.map +1 -1
  217. package/dist/actions/list-conversations.mjs +1 -0
  218. package/dist/actions/list-conversations.mjs.map +1 -1
  219. package/dist/actions/list-messages.cjs +1 -0
  220. package/dist/actions/list-messages.cjs.map +1 -1
  221. package/dist/actions/list-messages.d.cts +3 -15
  222. package/dist/actions/list-messages.d.cts.map +1 -1
  223. package/dist/actions/list-messages.d.mts +3 -15
  224. package/dist/actions/list-messages.d.mts.map +1 -1
  225. package/dist/actions/list-messages.mjs +1 -0
  226. package/dist/actions/list-messages.mjs.map +1 -1
  227. package/dist/actions/list-organizations.cjs +1 -0
  228. package/dist/actions/list-organizations.cjs.map +1 -1
  229. package/dist/actions/list-organizations.d.cts +3 -16
  230. package/dist/actions/list-organizations.d.cts.map +1 -1
  231. package/dist/actions/list-organizations.d.mts +3 -16
  232. package/dist/actions/list-organizations.d.mts.map +1 -1
  233. package/dist/actions/list-organizations.mjs +1 -0
  234. package/dist/actions/list-organizations.mjs.map +1 -1
  235. package/dist/actions/list-responses.cjs +1 -0
  236. package/dist/actions/list-responses.cjs.map +1 -1
  237. package/dist/actions/list-responses.d.cts +3 -16
  238. package/dist/actions/list-responses.d.cts.map +1 -1
  239. package/dist/actions/list-responses.d.mts +3 -16
  240. package/dist/actions/list-responses.d.mts.map +1 -1
  241. package/dist/actions/list-responses.mjs +1 -0
  242. package/dist/actions/list-responses.mjs.map +1 -1
  243. package/dist/actions/list-shared-labels.cjs +1 -0
  244. package/dist/actions/list-shared-labels.cjs.map +1 -1
  245. package/dist/actions/list-shared-labels.d.cts +3 -17
  246. package/dist/actions/list-shared-labels.d.cts.map +1 -1
  247. package/dist/actions/list-shared-labels.d.mts +3 -17
  248. package/dist/actions/list-shared-labels.d.mts.map +1 -1
  249. package/dist/actions/list-shared-labels.mjs +1 -0
  250. package/dist/actions/list-shared-labels.mjs.map +1 -1
  251. package/dist/actions/list-tasks.cjs +1 -0
  252. package/dist/actions/list-tasks.cjs.map +1 -1
  253. package/dist/actions/list-tasks.d.cts +3 -19
  254. package/dist/actions/list-tasks.d.cts.map +1 -1
  255. package/dist/actions/list-tasks.d.mts +3 -19
  256. package/dist/actions/list-tasks.d.mts.map +1 -1
  257. package/dist/actions/list-tasks.mjs +1 -0
  258. package/dist/actions/list-tasks.mjs.map +1 -1
  259. package/dist/actions/list-teams.cjs +1 -0
  260. package/dist/actions/list-teams.cjs.map +1 -1
  261. package/dist/actions/list-teams.d.cts +3 -16
  262. package/dist/actions/list-teams.d.cts.map +1 -1
  263. package/dist/actions/list-teams.d.mts +3 -16
  264. package/dist/actions/list-teams.d.mts.map +1 -1
  265. package/dist/actions/list-teams.mjs +1 -0
  266. package/dist/actions/list-teams.mjs.map +1 -1
  267. package/dist/actions/list-users.cjs +1 -0
  268. package/dist/actions/list-users.cjs.map +1 -1
  269. package/dist/actions/list-users.d.cts +3 -16
  270. package/dist/actions/list-users.d.cts.map +1 -1
  271. package/dist/actions/list-users.d.mts +3 -16
  272. package/dist/actions/list-users.d.mts.map +1 -1
  273. package/dist/actions/list-users.mjs +1 -0
  274. package/dist/actions/list-users.mjs.map +1 -1
  275. package/dist/actions/merge-conversations.cjs +1 -0
  276. package/dist/actions/merge-conversations.cjs.map +1 -1
  277. package/dist/actions/merge-conversations.d.cts +3 -16
  278. package/dist/actions/merge-conversations.d.cts.map +1 -1
  279. package/dist/actions/merge-conversations.d.mts +3 -16
  280. package/dist/actions/merge-conversations.d.mts.map +1 -1
  281. package/dist/actions/merge-conversations.mjs +1 -0
  282. package/dist/actions/merge-conversations.mjs.map +1 -1
  283. package/dist/actions/update-contact.cjs +1 -0
  284. package/dist/actions/update-contact.cjs.map +1 -1
  285. package/dist/actions/update-contact.d.cts +3 -56
  286. package/dist/actions/update-contact.d.cts.map +1 -1
  287. package/dist/actions/update-contact.d.mts +3 -56
  288. package/dist/actions/update-contact.d.mts.map +1 -1
  289. package/dist/actions/update-contact.mjs +1 -0
  290. package/dist/actions/update-contact.mjs.map +1 -1
  291. package/dist/actions/update-response.cjs +1 -0
  292. package/dist/actions/update-response.cjs.map +1 -1
  293. package/dist/actions/update-response.d.cts +3 -44
  294. package/dist/actions/update-response.d.cts.map +1 -1
  295. package/dist/actions/update-response.d.mts +3 -44
  296. package/dist/actions/update-response.d.mts.map +1 -1
  297. package/dist/actions/update-response.mjs +1 -0
  298. package/dist/actions/update-response.mjs.map +1 -1
  299. package/dist/actions/update-shared-labels.cjs +1 -0
  300. package/dist/actions/update-shared-labels.cjs.map +1 -1
  301. package/dist/actions/update-shared-labels.d.cts +3 -21
  302. package/dist/actions/update-shared-labels.d.cts.map +1 -1
  303. package/dist/actions/update-shared-labels.d.mts +3 -21
  304. package/dist/actions/update-shared-labels.d.mts.map +1 -1
  305. package/dist/actions/update-shared-labels.mjs +1 -0
  306. package/dist/actions/update-shared-labels.mjs.map +1 -1
  307. package/dist/actions/update-task.cjs +1 -0
  308. package/dist/actions/update-task.cjs.map +1 -1
  309. package/dist/actions/update-task.d.cts +3 -21
  310. package/dist/actions/update-task.d.cts.map +1 -1
  311. package/dist/actions/update-task.d.mts +3 -21
  312. package/dist/actions/update-task.d.mts.map +1 -1
  313. package/dist/actions/update-task.mjs +1 -0
  314. package/dist/actions/update-task.mjs.map +1 -1
  315. package/dist/actions/update-team.cjs +1 -0
  316. package/dist/actions/update-team.cjs.map +1 -1
  317. package/dist/actions/update-team.d.cts +3 -22
  318. package/dist/actions/update-team.d.cts.map +1 -1
  319. package/dist/actions/update-team.d.mts +3 -22
  320. package/dist/actions/update-team.d.mts.map +1 -1
  321. package/dist/actions/update-team.mjs +1 -0
  322. package/dist/actions/update-team.mjs.map +1 -1
  323. package/dist/app.cjs +2 -2
  324. package/dist/app.cjs.map +1 -1
  325. package/dist/app.d.cts +4 -6
  326. package/dist/app.d.cts.map +1 -1
  327. package/dist/app.d.mts +4 -6
  328. package/dist/app.d.mts.map +1 -1
  329. package/dist/app.mjs +0 -1
  330. package/dist/app.mjs.map +1 -1
  331. package/dist/index.d.cts +1 -1
  332. package/dist/index.d.mts +1 -1
  333. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["missive","executeMissiveTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { missive } from \"./app\";\nimport { executeMissiveTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return missive.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeMissiveTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["missive","executeMissiveTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { missive } from \"./app\";\nimport { executeMissiveTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof missive.credential> {\n return missive.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeMissiveTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,OAAOA,YAAAA,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { missive } from \"./app\";\nimport { executeMissiveTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return missive.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeMissiveTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { missive } from \"./app\";\nimport { executeMissiveTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof missive.credential> {\n return missive.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeMissiveTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-analytics-report.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-analytics-report.cjs","names":["z","action"],"sources":["../../src/actions/create-analytics-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MissiveCreateAnalyticsReportInput = z.object({\n reports: z.object({\n end: z.number().int().describe(\"Report period end in Unix epoch seconds\"),\n start: z.number().int().describe(\"Report period start in Unix epoch seconds\"),\n teams: z.array(z.string()).describe(\"Array of team ID strings to filter the report\").optional(),\n users: z.array(z.string()).describe(\"Array of user ID strings to filter the report\").optional(),\n accounts: z.array(z.string()).describe(\"Array of account ID strings to filter the report\").optional(),\n time_zone: z.string().describe(\"Time zone identifier (IANA) for the report period\").optional(),\n organization: z.string().describe(\"Organization ID string\"),\n account_types: z.array(z.enum([\"custom\", \"email\", \"instagram\", \"live_chat\", \"messenger\", \"sms\", \"whatsapp\"])).describe(\"Array of account types to filter the report\").optional(),\n shared_labels: z.array(z.string()).describe(\"Array of shared label ID strings to filter the report\").optional(),\n}).describe(\"Report specifications including organization, period, and optional filters\"),\n}).describe(\"Request model for creating an analytics report in Missive.\");\nconst MissiveCreateAnalyticsReport_ReportsResponseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the created analytics report\").nullable(),\n}).passthrough();\nexport const MissiveCreateAnalyticsReportOutput = z.object({\n reports: MissiveCreateAnalyticsReport_ReportsResponseSchema.nullable(),\n}).passthrough().describe(\"Response model for the created analytics report.\");\n\nexport const missiveCreateAnalyticsReport = action(\"MISSIVE_CREATE_ANALYTICS_REPORT\", {\n slug: \"missive-create-analytics-report\",\n name: \"Create Analytics Report\",\n description: \"Tool to create an analytics report. Use when you need to generate a report over a specific time range with optional filters. Returns a report ID for later retrieval.\",\n input: MissiveCreateAnalyticsReportInput,\n output: MissiveCreateAnalyticsReportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,SAASA,IAAAA,EAAE,OAAO;CAClB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAC5E,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAC1D,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAS;EAAa;EAAa;EAAa;EAAO;CAAU,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC/K,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,4EAA4E,EACxF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,qDAAqDA,IAAAA,EAAE,OAAO,EAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EACxF,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,SAAS,mDAAmD,SAAS,EACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-analytics-report.cjs","names":["z","action"],"sources":["../../src/actions/create-analytics-report.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { missive } from \"../app\";\n\nexport const MissiveCreateAnalyticsReportInput = z.object({\n reports: z.object({\n end: z.number().int().describe(\"Report period end in Unix epoch seconds\"),\n start: z.number().int().describe(\"Report period start in Unix epoch seconds\"),\n teams: z.array(z.string()).describe(\"Array of team ID strings to filter the report\").optional(),\n users: z.array(z.string()).describe(\"Array of user ID strings to filter the report\").optional(),\n accounts: z.array(z.string()).describe(\"Array of account ID strings to filter the report\").optional(),\n time_zone: z.string().describe(\"Time zone identifier (IANA) for the report period\").optional(),\n organization: z.string().describe(\"Organization ID string\"),\n account_types: z.array(z.enum([\"custom\", \"email\", \"instagram\", \"live_chat\", \"messenger\", \"sms\", \"whatsapp\"])).describe(\"Array of account types to filter the report\").optional(),\n shared_labels: z.array(z.string()).describe(\"Array of shared label ID strings to filter the report\").optional(),\n}).describe(\"Report specifications including organization, period, and optional filters\"),\n}).describe(\"Request model for creating an analytics report in Missive.\");\nconst MissiveCreateAnalyticsReport_ReportsResponseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the created analytics report\").nullable(),\n}).passthrough();\nexport const MissiveCreateAnalyticsReportOutput = z.object({\n reports: MissiveCreateAnalyticsReport_ReportsResponseSchema.nullable(),\n}).passthrough().describe(\"Response model for the created analytics report.\");\n\nexport const missiveCreateAnalyticsReport: AppAction<\n typeof MissiveCreateAnalyticsReportInput,\n typeof MissiveCreateAnalyticsReportOutput,\n typeof missive.credential\n> = action(\"MISSIVE_CREATE_ANALYTICS_REPORT\", {\n slug: \"missive-create-analytics-report\",\n name: \"Create Analytics Report\",\n description: \"Tool to create an analytics report. Use when you need to generate a report over a specific time range with optional filters. Returns a report ID for later retrieval.\",\n input: MissiveCreateAnalyticsReportInput,\n output: MissiveCreateAnalyticsReportOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,SAASA,IAAAA,EAAE,OAAO;CAClB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAC5E,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAC1D,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAS;EAAa;EAAa;EAAa;EAAO;CAAU,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC/K,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,4EAA4E,EACxF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,qDAAqDA,IAAAA,EAAE,OAAO,EAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EACxF,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,SAAS,mDAAmD,SAAS,EACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,+BAITC,eAAAA,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { missive } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-analytics-report.d.ts
@@ -27,31 +29,7 @@ declare const MissiveCreateAnalyticsReportOutput: z.ZodObject<{
27
29
  id: z.ZodNullable<z.ZodString>;
28
30
  }, z.core.$loose>>;
29
31
  }, z.core.$loose>;
30
- declare const missiveCreateAnalyticsReport: import("@keystrokehq/action").WorkflowActionDefinition<{
31
- reports: {
32
- end: number;
33
- start: number;
34
- organization: string;
35
- teams?: string[] | undefined;
36
- users?: string[] | undefined;
37
- accounts?: string[] | undefined;
38
- time_zone?: string | undefined;
39
- account_types?: ("custom" | "email" | "instagram" | "live_chat" | "messenger" | "sms" | "whatsapp")[] | undefined;
40
- shared_labels?: string[] | undefined;
41
- };
42
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"missive", z.ZodObject<{
43
- connectionId: z.ZodString;
44
- entityId: z.ZodString;
45
- instanceId: z.ZodString;
46
- }, z.core.$strip>, z.ZodObject<{
47
- bearer_token: z.ZodString;
48
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"missive", z.ZodObject<{
49
- connectionId: z.ZodString;
50
- entityId: z.ZodString;
51
- instanceId: z.ZodString;
52
- }, z.core.$strip>, z.ZodObject<{
53
- bearer_token: z.ZodString;
54
- }, z.core.$strip>>]>;
32
+ declare const missiveCreateAnalyticsReport: AppAction<typeof MissiveCreateAnalyticsReportInput, typeof MissiveCreateAnalyticsReportOutput, typeof missive.credential>;
55
33
  //#endregion
56
34
  export { missiveCreateAnalyticsReport };
57
35
  //# sourceMappingURL=create-analytics-report.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-analytics-report.d.cts","names":[],"sources":["../../src/actions/create-analytics-report.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAgBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"create-analytics-report.d.cts","names":[],"sources":["../../src/actions/create-analytics-report.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAgBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAIlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { missive } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-analytics-report.d.ts
@@ -27,31 +29,7 @@ declare const MissiveCreateAnalyticsReportOutput: z.ZodObject<{
27
29
  id: z.ZodNullable<z.ZodString>;
28
30
  }, z.core.$loose>>;
29
31
  }, z.core.$loose>;
30
- declare const missiveCreateAnalyticsReport: import("@keystrokehq/action").WorkflowActionDefinition<{
31
- reports: {
32
- end: number;
33
- start: number;
34
- organization: string;
35
- teams?: string[] | undefined;
36
- users?: string[] | undefined;
37
- accounts?: string[] | undefined;
38
- time_zone?: string | undefined;
39
- account_types?: ("custom" | "email" | "instagram" | "live_chat" | "messenger" | "sms" | "whatsapp")[] | undefined;
40
- shared_labels?: string[] | undefined;
41
- };
42
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"missive", z.ZodObject<{
43
- connectionId: z.ZodString;
44
- entityId: z.ZodString;
45
- instanceId: z.ZodString;
46
- }, z.core.$strip>, z.ZodObject<{
47
- bearer_token: z.ZodString;
48
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"missive", z.ZodObject<{
49
- connectionId: z.ZodString;
50
- entityId: z.ZodString;
51
- instanceId: z.ZodString;
52
- }, z.core.$strip>, z.ZodObject<{
53
- bearer_token: z.ZodString;
54
- }, z.core.$strip>>]>;
32
+ declare const missiveCreateAnalyticsReport: AppAction<typeof MissiveCreateAnalyticsReportInput, typeof MissiveCreateAnalyticsReportOutput, typeof missive.credential>;
55
33
  //#endregion
56
34
  export { missiveCreateAnalyticsReport };
57
35
  //# sourceMappingURL=create-analytics-report.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-analytics-report.d.mts","names":[],"sources":["../../src/actions/create-analytics-report.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAgBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"create-analytics-report.d.mts","names":[],"sources":["../../src/actions/create-analytics-report.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAgBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAIlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/create-analytics-report.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-analytics-report.mjs","names":[],"sources":["../../src/actions/create-analytics-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MissiveCreateAnalyticsReportInput = z.object({\n reports: z.object({\n end: z.number().int().describe(\"Report period end in Unix epoch seconds\"),\n start: z.number().int().describe(\"Report period start in Unix epoch seconds\"),\n teams: z.array(z.string()).describe(\"Array of team ID strings to filter the report\").optional(),\n users: z.array(z.string()).describe(\"Array of user ID strings to filter the report\").optional(),\n accounts: z.array(z.string()).describe(\"Array of account ID strings to filter the report\").optional(),\n time_zone: z.string().describe(\"Time zone identifier (IANA) for the report period\").optional(),\n organization: z.string().describe(\"Organization ID string\"),\n account_types: z.array(z.enum([\"custom\", \"email\", \"instagram\", \"live_chat\", \"messenger\", \"sms\", \"whatsapp\"])).describe(\"Array of account types to filter the report\").optional(),\n shared_labels: z.array(z.string()).describe(\"Array of shared label ID strings to filter the report\").optional(),\n}).describe(\"Report specifications including organization, period, and optional filters\"),\n}).describe(\"Request model for creating an analytics report in Missive.\");\nconst MissiveCreateAnalyticsReport_ReportsResponseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the created analytics report\").nullable(),\n}).passthrough();\nexport const MissiveCreateAnalyticsReportOutput = z.object({\n reports: MissiveCreateAnalyticsReport_ReportsResponseSchema.nullable(),\n}).passthrough().describe(\"Response model for the created analytics report.\");\n\nexport const missiveCreateAnalyticsReport = action(\"MISSIVE_CREATE_ANALYTICS_REPORT\", {\n slug: \"missive-create-analytics-report\",\n name: \"Create Analytics Report\",\n description: \"Tool to create an analytics report. Use when you need to generate a report over a specific time range with optional filters. Returns a report ID for later retrieval.\",\n input: MissiveCreateAnalyticsReportInput,\n output: MissiveCreateAnalyticsReportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO,EACxD,SAAS,EAAE,OAAO;CAClB,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAC5E,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9F,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAC1D,eAAe,EAAE,MAAM,EAAE,KAAK;EAAC;EAAU;EAAS;EAAa;EAAa;EAAa;EAAO;CAAU,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC/K,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,4EAA4E,EACxF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,qDAAqD,EAAE,OAAO,EAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EACxF,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATgD,EAAE,OAAO,EACzD,SAAS,mDAAmD,SAAS,EACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-analytics-report.mjs","names":[],"sources":["../../src/actions/create-analytics-report.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { missive } from \"../app\";\n\nexport const MissiveCreateAnalyticsReportInput = z.object({\n reports: z.object({\n end: z.number().int().describe(\"Report period end in Unix epoch seconds\"),\n start: z.number().int().describe(\"Report period start in Unix epoch seconds\"),\n teams: z.array(z.string()).describe(\"Array of team ID strings to filter the report\").optional(),\n users: z.array(z.string()).describe(\"Array of user ID strings to filter the report\").optional(),\n accounts: z.array(z.string()).describe(\"Array of account ID strings to filter the report\").optional(),\n time_zone: z.string().describe(\"Time zone identifier (IANA) for the report period\").optional(),\n organization: z.string().describe(\"Organization ID string\"),\n account_types: z.array(z.enum([\"custom\", \"email\", \"instagram\", \"live_chat\", \"messenger\", \"sms\", \"whatsapp\"])).describe(\"Array of account types to filter the report\").optional(),\n shared_labels: z.array(z.string()).describe(\"Array of shared label ID strings to filter the report\").optional(),\n}).describe(\"Report specifications including organization, period, and optional filters\"),\n}).describe(\"Request model for creating an analytics report in Missive.\");\nconst MissiveCreateAnalyticsReport_ReportsResponseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the created analytics report\").nullable(),\n}).passthrough();\nexport const MissiveCreateAnalyticsReportOutput = z.object({\n reports: MissiveCreateAnalyticsReport_ReportsResponseSchema.nullable(),\n}).passthrough().describe(\"Response model for the created analytics report.\");\n\nexport const missiveCreateAnalyticsReport: AppAction<\n typeof MissiveCreateAnalyticsReportInput,\n typeof MissiveCreateAnalyticsReportOutput,\n typeof missive.credential\n> = action(\"MISSIVE_CREATE_ANALYTICS_REPORT\", {\n slug: \"missive-create-analytics-report\",\n name: \"Create Analytics Report\",\n description: \"Tool to create an analytics report. Use when you need to generate a report over a specific time range with optional filters. Returns a report ID for later retrieval.\",\n input: MissiveCreateAnalyticsReportInput,\n output: MissiveCreateAnalyticsReportOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoC,EAAE,OAAO,EACxD,SAAS,EAAE,OAAO;CAClB,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAC5E,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9F,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAC1D,eAAe,EAAE,MAAM,EAAE,KAAK;EAAC;EAAU;EAAS;EAAa;EAAa;EAAa;EAAO;CAAU,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC/K,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,4EAA4E,EACxF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,qDAAqD,EAAE,OAAO,EAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EACxF,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,+BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbgD,EAAE,OAAO,EACzD,SAAS,mDAAmD,SAAS,EACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-contacts.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-contacts.cjs","names":["z","action"],"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,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC3B,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACvE,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAS;GAAgB;GAAW;GAAY;GAAoB;GAAO;EAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG;EAClN,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG;EAC/H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;EAC/K,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACpF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD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AY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-contacts.cjs","names":["z","action"],"sources":["../../src/actions/create-contacts.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { missive } from \"../app\";\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: AppAction<\n typeof MissiveCreateContactsInput,\n typeof MissiveCreateContactsOutput,\n typeof missive.credential\n> = 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":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC3B,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACvE,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAS;GAAgB;GAAW;GAAY;GAAoB;GAAO;EAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG;EAClN,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG;EAC/H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;EAC/K,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACpF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC7E,aAAaA,IAAAA,EAAE,OAAO,CAA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,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { missive } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-contacts.d.ts
@@ -97,62 +99,7 @@ declare const MissiveCreateContactsOutput: z.ZodObject<{
97
99
  phonetic_middle_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
100
  }, z.core.$loose>>;
99
101
  }, 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<"missive", z.ZodObject<{
144
- connectionId: z.ZodString;
145
- entityId: z.ZodString;
146
- instanceId: z.ZodString;
147
- }, z.core.$strip>, z.ZodObject<{
148
- bearer_token: z.ZodString;
149
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"missive", z.ZodObject<{
150
- connectionId: z.ZodString;
151
- entityId: z.ZodString;
152
- instanceId: z.ZodString;
153
- }, z.core.$strip>, z.ZodObject<{
154
- bearer_token: z.ZodString;
155
- }, z.core.$strip>>]>;
102
+ declare const missiveCreateContacts: AppAction<typeof MissiveCreateContactsInput, typeof MissiveCreateContactsOutput, typeof missive.credential>;
156
103
  //#endregion
157
104
  export { missiveCreateContacts };
158
105
  //# sourceMappingURL=create-contacts.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-contacts.d.cts","names":[],"sources":["../../src/actions/create-contacts.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsF1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"create-contacts.d.cts","names":[],"sources":["../../src/actions/create-contacts.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsF1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { missive } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-contacts.d.ts
@@ -97,62 +99,7 @@ declare const MissiveCreateContactsOutput: z.ZodObject<{
97
99
  phonetic_middle_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
100
  }, z.core.$loose>>;
99
101
  }, 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<"missive", z.ZodObject<{
144
- connectionId: z.ZodString;
145
- entityId: z.ZodString;
146
- instanceId: z.ZodString;
147
- }, z.core.$strip>, z.ZodObject<{
148
- bearer_token: z.ZodString;
149
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"missive", z.ZodObject<{
150
- connectionId: z.ZodString;
151
- entityId: z.ZodString;
152
- instanceId: z.ZodString;
153
- }, z.core.$strip>, z.ZodObject<{
154
- bearer_token: z.ZodString;
155
- }, z.core.$strip>>]>;
102
+ declare const missiveCreateContacts: AppAction<typeof MissiveCreateContactsInput, typeof MissiveCreateContactsOutput, typeof missive.credential>;
156
103
  //#endregion
157
104
  export { missiveCreateContacts };
158
105
  //# 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,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsF1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"create-contacts.d.mts","names":[],"sources":["../../src/actions/create-contacts.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsF1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/create-contacts.ts
@@ -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.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;CAC3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MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,UAAU,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,kCAAkC,EAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-contacts.mjs","names":[],"sources":["../../src/actions/create-contacts.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { missive } from \"../app\";\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: AppAction<\n typeof MissiveCreateContactsInput,\n typeof MissiveCreateContactsOutput,\n typeof missive.credential\n> = 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":";;;;AAMA,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,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,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SA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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,CAAC,CAAC,SAAS;CAChE,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,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAKnE,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbyC,EAAE,OAAO,EAClD,UAAU,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,kCAAkC,EAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-draft.ts
@@ -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.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,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC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S;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
+ {"version":3,"file":"create-draft.cjs","names":["z","action"],"sources":["../../src/actions/create-draft.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { missive } from \"../app\";\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: AppAction<\n typeof MissiveCreateDraftInput,\n typeof MissiveCreateDraftOutput,\n typeof missive.credential\n> = 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":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SA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