@keystrokehq/missive 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/dist/actions/create-analytics-report.cjs +2 -2
  2. package/dist/actions/create-analytics-report.cjs.map +1 -1
  3. package/dist/actions/create-analytics-report.d.cts +4 -4
  4. package/dist/actions/create-analytics-report.d.mts +4 -4
  5. package/dist/actions/create-analytics-report.mjs +2 -2
  6. package/dist/actions/create-analytics-report.mjs.map +1 -1
  7. package/dist/actions/create-contacts.cjs +8 -8
  8. package/dist/actions/create-contacts.cjs.map +1 -1
  9. package/dist/actions/create-contacts.d.cts +14 -11
  10. package/dist/actions/create-contacts.d.mts +14 -11
  11. package/dist/actions/create-contacts.mjs +8 -8
  12. package/dist/actions/create-contacts.mjs.map +1 -1
  13. package/dist/actions/create-draft.cjs +12 -12
  14. package/dist/actions/create-draft.cjs.map +1 -1
  15. package/dist/actions/create-draft.d.cts +26 -17
  16. package/dist/actions/create-draft.d.cts.map +1 -1
  17. package/dist/actions/create-draft.d.mts +26 -17
  18. package/dist/actions/create-draft.d.mts.map +1 -1
  19. package/dist/actions/create-draft.mjs +12 -12
  20. package/dist/actions/create-draft.mjs.map +1 -1
  21. package/dist/actions/create-post.cjs +1 -1
  22. package/dist/actions/create-post.cjs.map +1 -1
  23. package/dist/actions/create-post.d.cts +1 -1
  24. package/dist/actions/create-post.d.cts.map +1 -1
  25. package/dist/actions/create-post.d.mts +1 -1
  26. package/dist/actions/create-post.d.mts.map +1 -1
  27. package/dist/actions/create-post.mjs +1 -1
  28. package/dist/actions/create-post.mjs.map +1 -1
  29. package/dist/actions/create-response.cjs +5 -5
  30. package/dist/actions/create-response.cjs.map +1 -1
  31. package/dist/actions/create-response.d.cts +8 -7
  32. package/dist/actions/create-response.d.mts +8 -7
  33. package/dist/actions/create-response.mjs +5 -5
  34. package/dist/actions/create-response.mjs.map +1 -1
  35. package/dist/actions/create-shared-label.cjs +3 -3
  36. package/dist/actions/create-shared-label.cjs.map +1 -1
  37. package/dist/actions/create-shared-label.d.cts +4 -3
  38. package/dist/actions/create-shared-label.d.mts +4 -3
  39. package/dist/actions/create-shared-label.mjs +3 -3
  40. package/dist/actions/create-shared-label.mjs.map +1 -1
  41. package/dist/actions/create-task.cjs +2 -2
  42. package/dist/actions/create-task.cjs.map +1 -1
  43. package/dist/actions/create-task.d.cts +2 -2
  44. package/dist/actions/create-task.d.mts +2 -2
  45. package/dist/actions/create-task.mjs +2 -2
  46. package/dist/actions/create-task.mjs.map +1 -1
  47. package/dist/actions/create-team.cjs +3 -3
  48. package/dist/actions/create-team.cjs.map +1 -1
  49. package/dist/actions/create-team.d.cts +4 -3
  50. package/dist/actions/create-team.d.mts +4 -3
  51. package/dist/actions/create-team.mjs +3 -3
  52. package/dist/actions/create-team.mjs.map +1 -1
  53. package/dist/actions/create-webhook.cjs +2 -2
  54. package/dist/actions/create-webhook.cjs.map +1 -1
  55. package/dist/actions/create-webhook.d.cts +2 -2
  56. package/dist/actions/create-webhook.d.mts +2 -2
  57. package/dist/actions/create-webhook.mjs +2 -2
  58. package/dist/actions/create-webhook.mjs.map +1 -1
  59. package/dist/actions/delete-draft.cjs +1 -1
  60. package/dist/actions/delete-draft.cjs.map +1 -1
  61. package/dist/actions/delete-draft.d.cts +1 -1
  62. package/dist/actions/delete-draft.d.cts.map +1 -1
  63. package/dist/actions/delete-draft.d.mts +1 -1
  64. package/dist/actions/delete-draft.d.mts.map +1 -1
  65. package/dist/actions/delete-draft.mjs +1 -1
  66. package/dist/actions/delete-draft.mjs.map +1 -1
  67. package/dist/actions/delete-post.cjs +1 -1
  68. package/dist/actions/delete-post.cjs.map +1 -1
  69. package/dist/actions/delete-post.d.cts +1 -1
  70. package/dist/actions/delete-post.d.cts.map +1 -1
  71. package/dist/actions/delete-post.d.mts +1 -1
  72. package/dist/actions/delete-post.d.mts.map +1 -1
  73. package/dist/actions/delete-post.mjs +1 -1
  74. package/dist/actions/delete-post.mjs.map +1 -1
  75. package/dist/actions/delete-responses.cjs +1 -1
  76. package/dist/actions/delete-responses.cjs.map +1 -1
  77. package/dist/actions/delete-responses.d.cts +1 -1
  78. package/dist/actions/delete-responses.d.cts.map +1 -1
  79. package/dist/actions/delete-responses.d.mts +1 -1
  80. package/dist/actions/delete-responses.d.mts.map +1 -1
  81. package/dist/actions/delete-responses.mjs +1 -1
  82. package/dist/actions/delete-responses.mjs.map +1 -1
  83. package/dist/actions/delete-webhook.cjs +1 -1
  84. package/dist/actions/delete-webhook.cjs.map +1 -1
  85. package/dist/actions/delete-webhook.d.cts +1 -1
  86. package/dist/actions/delete-webhook.d.cts.map +1 -1
  87. package/dist/actions/delete-webhook.d.mts +1 -1
  88. package/dist/actions/delete-webhook.d.mts.map +1 -1
  89. package/dist/actions/delete-webhook.mjs +1 -1
  90. package/dist/actions/delete-webhook.mjs.map +1 -1
  91. package/dist/actions/get-analytics-report.cjs +1 -1
  92. package/dist/actions/get-analytics-report.cjs.map +1 -1
  93. package/dist/actions/get-analytics-report.d.cts +1 -1
  94. package/dist/actions/get-analytics-report.d.mts +1 -1
  95. package/dist/actions/get-analytics-report.mjs +1 -1
  96. package/dist/actions/get-analytics-report.mjs.map +1 -1
  97. package/dist/actions/get-contact.cjs +5 -5
  98. package/dist/actions/get-contact.cjs.map +1 -1
  99. package/dist/actions/get-contact.d.cts +5 -5
  100. package/dist/actions/get-contact.d.mts +5 -5
  101. package/dist/actions/get-contact.mjs +5 -5
  102. package/dist/actions/get-contact.mjs.map +1 -1
  103. package/dist/actions/get-conversation-messages.cjs +5 -5
  104. package/dist/actions/get-conversation-messages.cjs.map +1 -1
  105. package/dist/actions/get-conversation-messages.d.cts +8 -8
  106. package/dist/actions/get-conversation-messages.d.mts +8 -8
  107. package/dist/actions/get-conversation-messages.mjs +5 -5
  108. package/dist/actions/get-conversation-messages.mjs.map +1 -1
  109. package/dist/actions/get-conversation.cjs +7 -7
  110. package/dist/actions/get-conversation.cjs.map +1 -1
  111. package/dist/actions/get-conversation.d.cts +8 -8
  112. package/dist/actions/get-conversation.d.mts +8 -8
  113. package/dist/actions/get-conversation.mjs +7 -7
  114. package/dist/actions/get-conversation.mjs.map +1 -1
  115. package/dist/actions/get-message.cjs +6 -6
  116. package/dist/actions/get-message.cjs.map +1 -1
  117. package/dist/actions/get-message.d.cts +17 -17
  118. package/dist/actions/get-message.d.mts +17 -17
  119. package/dist/actions/get-message.mjs +6 -6
  120. package/dist/actions/get-message.mjs.map +1 -1
  121. package/dist/actions/get-response.cjs +4 -4
  122. package/dist/actions/get-response.cjs.map +1 -1
  123. package/dist/actions/get-response.d.cts +6 -6
  124. package/dist/actions/get-response.d.mts +6 -6
  125. package/dist/actions/get-response.mjs +4 -4
  126. package/dist/actions/get-response.mjs.map +1 -1
  127. package/dist/actions/get-task.cjs +4 -4
  128. package/dist/actions/get-task.cjs.map +1 -1
  129. package/dist/actions/get-task.d.cts +4 -4
  130. package/dist/actions/get-task.d.mts +4 -4
  131. package/dist/actions/get-task.mjs +4 -4
  132. package/dist/actions/get-task.mjs.map +1 -1
  133. package/dist/actions/list-contact-books.cjs +2 -2
  134. package/dist/actions/list-contact-books.cjs.map +1 -1
  135. package/dist/actions/list-contact-books.d.cts +2 -2
  136. package/dist/actions/list-contact-books.d.mts +2 -2
  137. package/dist/actions/list-contact-books.mjs +2 -2
  138. package/dist/actions/list-contact-books.mjs.map +1 -1
  139. package/dist/actions/list-contact-groups.cjs +2 -2
  140. package/dist/actions/list-contact-groups.cjs.map +1 -1
  141. package/dist/actions/list-contact-groups.d.cts +2 -2
  142. package/dist/actions/list-contact-groups.d.mts +2 -2
  143. package/dist/actions/list-contact-groups.mjs +2 -2
  144. package/dist/actions/list-contact-groups.mjs.map +1 -1
  145. package/dist/actions/list-contacts.cjs +5 -5
  146. package/dist/actions/list-contacts.cjs.map +1 -1
  147. package/dist/actions/list-contacts.d.cts +7 -7
  148. package/dist/actions/list-contacts.d.mts +7 -7
  149. package/dist/actions/list-contacts.mjs +5 -5
  150. package/dist/actions/list-contacts.mjs.map +1 -1
  151. package/dist/actions/list-conversation-comments.cjs +8 -8
  152. package/dist/actions/list-conversation-comments.cjs.map +1 -1
  153. package/dist/actions/list-conversation-comments.d.cts +8 -8
  154. package/dist/actions/list-conversation-comments.d.mts +8 -8
  155. package/dist/actions/list-conversation-comments.mjs +8 -8
  156. package/dist/actions/list-conversation-comments.mjs.map +1 -1
  157. package/dist/actions/list-conversation-drafts.cjs +6 -6
  158. package/dist/actions/list-conversation-drafts.cjs.map +1 -1
  159. package/dist/actions/list-conversation-drafts.d.cts +9 -9
  160. package/dist/actions/list-conversation-drafts.d.mts +9 -9
  161. package/dist/actions/list-conversation-drafts.mjs +6 -6
  162. package/dist/actions/list-conversation-drafts.mjs.map +1 -1
  163. package/dist/actions/list-conversation-posts.cjs +4 -4
  164. package/dist/actions/list-conversation-posts.cjs.map +1 -1
  165. package/dist/actions/list-conversation-posts.d.cts +4 -4
  166. package/dist/actions/list-conversation-posts.d.mts +4 -4
  167. package/dist/actions/list-conversation-posts.mjs +4 -4
  168. package/dist/actions/list-conversation-posts.mjs.map +1 -1
  169. package/dist/actions/list-conversations.cjs +6 -6
  170. package/dist/actions/list-conversations.cjs.map +1 -1
  171. package/dist/actions/list-conversations.d.cts +7 -7
  172. package/dist/actions/list-conversations.d.mts +7 -7
  173. package/dist/actions/list-conversations.mjs +6 -6
  174. package/dist/actions/list-conversations.mjs.map +1 -1
  175. package/dist/actions/list-messages.cjs +6 -6
  176. package/dist/actions/list-messages.cjs.map +1 -1
  177. package/dist/actions/list-messages.d.cts +9 -9
  178. package/dist/actions/list-messages.d.mts +9 -9
  179. package/dist/actions/list-messages.mjs +6 -6
  180. package/dist/actions/list-messages.mjs.map +1 -1
  181. package/dist/actions/list-organizations.cjs +2 -2
  182. package/dist/actions/list-organizations.cjs.map +1 -1
  183. package/dist/actions/list-organizations.d.cts +2 -2
  184. package/dist/actions/list-organizations.d.mts +2 -2
  185. package/dist/actions/list-organizations.mjs +2 -2
  186. package/dist/actions/list-organizations.mjs.map +1 -1
  187. package/dist/actions/list-responses.cjs +4 -4
  188. package/dist/actions/list-responses.cjs.map +1 -1
  189. package/dist/actions/list-responses.d.cts +6 -6
  190. package/dist/actions/list-responses.d.mts +6 -6
  191. package/dist/actions/list-responses.mjs +4 -4
  192. package/dist/actions/list-responses.mjs.map +1 -1
  193. package/dist/actions/list-shared-labels.cjs +2 -2
  194. package/dist/actions/list-shared-labels.cjs.map +1 -1
  195. package/dist/actions/list-shared-labels.d.cts +2 -2
  196. package/dist/actions/list-shared-labels.d.mts +2 -2
  197. package/dist/actions/list-shared-labels.mjs +2 -2
  198. package/dist/actions/list-shared-labels.mjs.map +1 -1
  199. package/dist/actions/list-tasks.cjs +4 -4
  200. package/dist/actions/list-tasks.cjs.map +1 -1
  201. package/dist/actions/list-tasks.d.cts +4 -4
  202. package/dist/actions/list-tasks.d.mts +4 -4
  203. package/dist/actions/list-tasks.mjs +4 -4
  204. package/dist/actions/list-tasks.mjs.map +1 -1
  205. package/dist/actions/list-teams.cjs +2 -2
  206. package/dist/actions/list-teams.cjs.map +1 -1
  207. package/dist/actions/list-teams.d.cts +2 -2
  208. package/dist/actions/list-teams.d.mts +2 -2
  209. package/dist/actions/list-teams.mjs +2 -2
  210. package/dist/actions/list-teams.mjs.map +1 -1
  211. package/dist/actions/list-users.cjs +2 -2
  212. package/dist/actions/list-users.cjs.map +1 -1
  213. package/dist/actions/list-users.d.cts +2 -2
  214. package/dist/actions/list-users.d.mts +2 -2
  215. package/dist/actions/list-users.mjs +2 -2
  216. package/dist/actions/list-users.mjs.map +1 -1
  217. package/dist/actions/merge-conversations.cjs +7 -7
  218. package/dist/actions/merge-conversations.cjs.map +1 -1
  219. package/dist/actions/merge-conversations.d.cts +9 -9
  220. package/dist/actions/merge-conversations.d.mts +9 -9
  221. package/dist/actions/merge-conversations.mjs +7 -7
  222. package/dist/actions/merge-conversations.mjs.map +1 -1
  223. package/dist/actions/update-contact.cjs +8 -8
  224. package/dist/actions/update-contact.cjs.map +1 -1
  225. package/dist/actions/update-contact.d.cts +14 -11
  226. package/dist/actions/update-contact.d.mts +14 -11
  227. package/dist/actions/update-contact.mjs +8 -8
  228. package/dist/actions/update-contact.mjs.map +1 -1
  229. package/dist/actions/update-response.cjs +9 -9
  230. package/dist/actions/update-response.cjs.map +1 -1
  231. package/dist/actions/update-response.d.cts +16 -11
  232. package/dist/actions/update-response.d.mts +16 -11
  233. package/dist/actions/update-response.mjs +9 -9
  234. package/dist/actions/update-response.mjs.map +1 -1
  235. package/dist/actions/update-shared-labels.cjs +3 -3
  236. package/dist/actions/update-shared-labels.cjs.map +1 -1
  237. package/dist/actions/update-shared-labels.d.cts +4 -3
  238. package/dist/actions/update-shared-labels.d.mts +4 -3
  239. package/dist/actions/update-shared-labels.mjs +3 -3
  240. package/dist/actions/update-shared-labels.mjs.map +1 -1
  241. package/dist/actions/update-task.cjs +3 -3
  242. package/dist/actions/update-task.cjs.map +1 -1
  243. package/dist/actions/update-task.d.cts +3 -3
  244. package/dist/actions/update-task.d.mts +3 -3
  245. package/dist/actions/update-task.mjs +3 -3
  246. package/dist/actions/update-task.mjs.map +1 -1
  247. package/dist/actions/update-team.cjs +3 -3
  248. package/dist/actions/update-team.cjs.map +1 -1
  249. package/dist/actions/update-team.d.cts +4 -3
  250. package/dist/actions/update-team.d.mts +4 -3
  251. package/dist/actions/update-team.mjs +3 -3
  252. package/dist/actions/update-team.mjs.map +1 -1
  253. package/package.json +1 -1
@@ -13,12 +13,12 @@ const MissiveCreateDraftInput = zod.z.object({
13
13
  cc_fields: zod.z.array(zod.z.object({
14
14
  name: zod.z.string().describe("Display name associated with the email address").optional(),
15
15
  address: zod.z.string().describe("Email address of the recipient or sender")
16
- }).describe("Email address field for drafts.")).describe("CC recipients for email drafts").optional(),
16
+ }).passthrough().describe("Email address field for drafts.")).describe("CC recipients for email drafts").optional(),
17
17
  to_fields: zod.z.array(zod.z.union([
18
18
  zod.z.object({
19
19
  name: zod.z.string().nullable().optional(),
20
20
  address: zod.z.string().describe("Email address of the recipient or sender")
21
- }).describe("Email address field for drafts."),
21
+ }).passthrough().describe("Email address field for drafts."),
22
22
  zod.z.object({
23
23
  type: zod.z.enum([
24
24
  "signalwire",
@@ -27,23 +27,23 @@ const MissiveCreateDraftInput = zod.z.object({
27
27
  "whatsapp"
28
28
  ]).nullable().optional(),
29
29
  phone_number: zod.z.string().describe("Phone number in E.164 format (e.g., '+18005550199')")
30
- }).describe("Phone number field for SMS/WhatsApp drafts."),
30
+ }).passthrough().describe("Phone number field for SMS/WhatsApp drafts."),
31
31
  zod.z.object({
32
32
  id: zod.z.string().describe("Custom channel or live chat account ID"),
33
33
  name: zod.z.string().describe("Display name for the custom channel or live chat participant"),
34
34
  username: zod.z.string().describe("Username in the custom channel or live chat")
35
- }).describe("Custom channel or live chat field.")
35
+ }).passthrough().describe("Custom channel or live chat field.")
36
36
  ])).describe("List of recipients (one only for SMS/WhatsApp)"),
37
37
  bcc_fields: zod.z.array(zod.z.object({
38
38
  name: zod.z.string().describe("Display name associated with the email address").optional(),
39
39
  address: zod.z.string().describe("Email address of the recipient or sender")
40
- }).describe("Email address field for drafts.")).describe("BCC recipients for email drafts").optional(),
40
+ }).passthrough().describe("Email address field for drafts.")).describe("BCC recipients for email drafts").optional(),
41
41
  force_team: zod.z.boolean().describe("Force association to the specified team even if already linked").optional(),
42
42
  from_field: zod.z.union([
43
43
  zod.z.object({
44
44
  name: zod.z.string().nullable().optional(),
45
45
  address: zod.z.string().describe("Email address of the recipient or sender")
46
- }).describe("Email address field for drafts."),
46
+ }).passthrough().describe("Email address field for drafts."),
47
47
  zod.z.object({
48
48
  type: zod.z.enum([
49
49
  "signalwire",
@@ -52,18 +52,18 @@ const MissiveCreateDraftInput = zod.z.object({
52
52
  "whatsapp"
53
53
  ]).nullable().optional(),
54
54
  phone_number: zod.z.string().describe("Phone number in E.164 format (e.g., '+18005550199')")
55
- }).describe("Phone number field for SMS/WhatsApp drafts."),
55
+ }).passthrough().describe("Phone number field for SMS/WhatsApp drafts."),
56
56
  zod.z.object({
57
57
  id: zod.z.string().describe("Custom channel or live chat account ID"),
58
58
  name: zod.z.string().describe("Display name for the custom channel or live chat participant"),
59
59
  username: zod.z.string().describe("Username in the custom channel or live chat")
60
- }).describe("Custom channel or live chat field.")
60
+ }).passthrough().describe("Custom channel or live chat field.")
61
61
  ]),
62
62
  references: zod.z.array(zod.z.string()).describe("Message-ID references for threading into existing conversations").optional(),
63
63
  attachments: zod.z.array(zod.z.object({
64
64
  filename: zod.z.string().describe("Filename of the attachment"),
65
65
  base64_data: zod.z.string().describe("Base64-encoded contents of the file")
66
- }).describe("File attachment model.")).describe("List of file attachments (up to 25, total payload <=10MB)").optional(),
66
+ }).passthrough().describe("File attachment model.")).describe("List of file attachments (up to 25, total payload <=10MB)").optional(),
67
67
  add_to_inbox: zod.z.boolean().describe("Move the draft's conversation to everyone's inbox").optional(),
68
68
  conversation: zod.z.string().describe("Conversation ID to append the draft to").optional(),
69
69
  organization: zod.z.string().describe("Organization ID to scope or link the conversation").optional(),
@@ -76,13 +76,13 @@ const MissiveCreateDraftInput = zod.z.object({
76
76
  external_response_id: zod.z.string().describe("WhatsApp template ID when initiating new WhatsApp conversation").optional(),
77
77
  remove_shared_labels: zod.z.array(zod.z.string()).describe("Shared label IDs to remove from the conversation").optional(),
78
78
  quote_previous_message: zod.z.boolean().describe("Include quoted text of the last message in an existing conversation").optional(),
79
- external_response_variables: zod.z.object({}).describe("Variables for WhatsApp template interpolation").optional()
79
+ external_response_variables: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Variables for WhatsApp template interpolation").optional()
80
80
  }).describe("Request model for creating a draft (email, SMS, WhatsApp, or Live Chat) in Missive.");
81
81
  const MissiveCreateDraft_DraftResponseSchema = zod.z.object({
82
82
  id: zod.z.string().describe("Unique identifier of the created draft").nullable(),
83
83
  conversation: zod.z.string().describe("Conversation ID the draft belongs to").nullable().optional()
84
- }).describe("Created draft model.");
85
- const MissiveCreateDraftOutput = zod.z.object({ drafts: MissiveCreateDraft_DraftResponseSchema.nullable() }).describe("Response model for creating a draft in Missive.");
84
+ }).passthrough().describe("Created draft model.");
85
+ const MissiveCreateDraftOutput = zod.z.object({ drafts: MissiveCreateDraft_DraftResponseSchema.nullable() }).passthrough().describe("Response model for creating a draft in Missive.");
86
86
  const missiveCreateDraft = require_action.action("MISSIVE_CREATE_DRAFT", {
87
87
  slug: "missive-create-draft",
88
88
  name: "Create Draft",
@@ -1 +1 @@
1
- {"version":3,"file":"create-draft.cjs","names":["z","action"],"sources":["../../src/actions/create-draft.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MissiveCreateDraftInput = z.object({\n body: z.string().describe(\"HTML or text body of the draft. Use '<br>' for paragraphs.\"),\n send: z.boolean().describe(\"Send the draft immediately upon creation\").optional(),\n team: z.string().describe(\"Team ID to link the draft's conversation\").optional(),\n close: z.boolean().describe(\"Close the conversation after draft creation\").optional(),\n account: z.string().describe(\"Account ID for custom channels or live chat\").optional(),\n send_at: z.number().int().describe(\"Unix timestamp to schedule sending (cannot combine with send)\").optional(),\n subject: z.string().describe(\"Subject for email drafts\").optional(),\n add_users: z.array(z.string()).describe(\"List of user IDs to grant access to the conversation (requires organization)\").optional(),\n cc_fields: z.array(z.object({\n name: z.string().describe(\"Display name associated with the email address\").optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).describe(\"Email address field for drafts.\")).describe(\"CC recipients for email drafts\").optional(),\n to_fields: z.array(z.union([z.object({\n name: z.string().nullable().optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).describe(\"Email address field for drafts.\"), z.object({\n type: z.enum([\"signalwire\", \"twilio\", \"twilio_whatsapp\", \"whatsapp\"]).nullable().optional(),\n phone_number: z.string().describe(\"Phone number in E.164 format (e.g., '+18005550199')\"),\n}).describe(\"Phone number field for SMS/WhatsApp drafts.\"), z.object({\n id: z.string().describe(\"Custom channel or live chat account ID\"),\n name: z.string().describe(\"Display name for the custom channel or live chat participant\"),\n username: z.string().describe(\"Username in the custom channel or live chat\"),\n}).describe(\"Custom channel or live chat field.\")])).describe(\"List of recipients (one only for SMS/WhatsApp)\"),\n bcc_fields: z.array(z.object({\n name: z.string().describe(\"Display name associated with the email address\").optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).describe(\"Email address field for drafts.\")).describe(\"BCC recipients for email drafts\").optional(),\n force_team: z.boolean().describe(\"Force association to the specified team even if already linked\").optional(),\n from_field: z.union([z.object({\n name: z.string().nullable().optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).describe(\"Email address field for drafts.\"), z.object({\n type: z.enum([\"signalwire\", \"twilio\", \"twilio_whatsapp\", \"whatsapp\"]).nullable().optional(),\n phone_number: z.string().describe(\"Phone number in E.164 format (e.g., '+18005550199')\"),\n}).describe(\"Phone number field for SMS/WhatsApp drafts.\"), z.object({\n id: z.string().describe(\"Custom channel or live chat account ID\"),\n name: z.string().describe(\"Display name for the custom channel or live chat participant\"),\n username: z.string().describe(\"Username in the custom channel or live chat\"),\n}).describe(\"Custom channel or live chat field.\")]),\n references: z.array(z.string()).describe(\"Message-ID references for threading into existing conversations\").optional(),\n attachments: z.array(z.object({\n filename: z.string().describe(\"Filename of the attachment\"),\n base64_data: z.string().describe(\"Base64-encoded contents of the file\"),\n}).describe(\"File attachment model.\")).describe(\"List of file attachments (up to 25, total payload <=10MB)\").optional(),\n add_to_inbox: z.boolean().describe(\"Move the draft's conversation to everyone's inbox\").optional(),\n conversation: z.string().describe(\"Conversation ID to append the draft to\").optional(),\n organization: z.string().describe(\"Organization ID to scope or link the conversation\").optional(),\n add_assignees: z.array(z.string()).describe(\"List of user IDs to assign to the conversation (requires organization)\").optional(),\n auto_followup: z.boolean().describe(\"Auto-cancel scheduled draft if a reply arrives (requires send_at)\").optional(),\n add_shared_labels: z.array(z.string()).describe(\"Shared label IDs to add to the conversation\").optional(),\n add_to_team_inbox: z.boolean().describe(\"Move the draft's conversation to team inbox (requires team)\").optional(),\n conversation_color: z.string().describe(\"HEX color code or 'good'/'warning'/'danger' for the conversation\").optional(),\n conversation_subject: z.string().describe(\"Subject for new conversation when using references\").optional(),\n external_response_id: z.string().describe(\"WhatsApp template ID when initiating new WhatsApp conversation\").optional(),\n remove_shared_labels: z.array(z.string()).describe(\"Shared label IDs to remove from the conversation\").optional(),\n quote_previous_message: z.boolean().describe(\"Include quoted text of the last message in an existing conversation\").optional(),\n external_response_variables: z.object({}).describe(\"Variables for WhatsApp template interpolation\").optional(),\n}).describe(\"Request model for creating a draft (email, SMS, WhatsApp, or Live Chat) in Missive.\");\nconst MissiveCreateDraft_DraftResponseSchema = z.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}).describe(\"Created draft model.\");\nexport const MissiveCreateDraftOutput = z.object({\n drafts: MissiveCreateDraft_DraftResponseSchema.nullable(),\n}).describe(\"Response model for creating a draft in Missive.\");\n\nexport const missiveCreateDraft = action(\"MISSIVE_CREATE_DRAFT\", {\n slug: \"missive-create-draft\",\n name: \"Create Draft\",\n description: \"Tool to create a new draft in Missive. Use after preparing message details to save a draft (email, SMS, WhatsApp, or Live Chat) for later editing or scheduling.\",\n input: MissiveCreateDraftInput,\n output: MissiveCreateDraftOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,IAAA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OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChH,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC7H,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,SAAS,sBAAsB;AAClC,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,QAAQ,uCAAuC,SAAS,EAC1D,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-draft.cjs","names":["z","action"],"sources":["../../src/actions/create-draft.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MissiveCreateDraftInput = z.object({\n body: z.string().describe(\"HTML or text body of the draft. Use '<br>' for paragraphs.\"),\n send: z.boolean().describe(\"Send the draft immediately upon creation\").optional(),\n team: z.string().describe(\"Team ID to link the draft's conversation\").optional(),\n close: z.boolean().describe(\"Close the conversation after draft creation\").optional(),\n account: z.string().describe(\"Account ID for custom channels or live chat\").optional(),\n send_at: z.number().int().describe(\"Unix timestamp to schedule sending (cannot combine with send)\").optional(),\n subject: z.string().describe(\"Subject for email drafts\").optional(),\n add_users: z.array(z.string()).describe(\"List of user IDs to grant access to the conversation (requires organization)\").optional(),\n cc_fields: z.array(z.object({\n name: z.string().describe(\"Display name associated with the email address\").optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).passthrough().describe(\"Email address field for drafts.\")).describe(\"CC recipients for email drafts\").optional(),\n to_fields: z.array(z.union([z.object({\n name: z.string().nullable().optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).passthrough().describe(\"Email address field for drafts.\"), z.object({\n type: z.enum([\"signalwire\", \"twilio\", \"twilio_whatsapp\", \"whatsapp\"]).nullable().optional(),\n phone_number: z.string().describe(\"Phone number in E.164 format (e.g., '+18005550199')\"),\n}).passthrough().describe(\"Phone number field for SMS/WhatsApp drafts.\"), z.object({\n id: z.string().describe(\"Custom channel or live chat account ID\"),\n name: z.string().describe(\"Display name for the custom channel or live chat participant\"),\n username: z.string().describe(\"Username in the custom channel or live chat\"),\n}).passthrough().describe(\"Custom channel or live chat field.\")])).describe(\"List of recipients (one only for SMS/WhatsApp)\"),\n bcc_fields: z.array(z.object({\n name: z.string().describe(\"Display name associated with the email address\").optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).passthrough().describe(\"Email address field for drafts.\")).describe(\"BCC recipients for email drafts\").optional(),\n force_team: z.boolean().describe(\"Force association to the specified team even if already linked\").optional(),\n from_field: z.union([z.object({\n name: z.string().nullable().optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).passthrough().describe(\"Email address field for drafts.\"), z.object({\n type: z.enum([\"signalwire\", \"twilio\", \"twilio_whatsapp\", \"whatsapp\"]).nullable().optional(),\n phone_number: z.string().describe(\"Phone number in E.164 format (e.g., '+18005550199')\"),\n}).passthrough().describe(\"Phone number field for SMS/WhatsApp drafts.\"), z.object({\n id: z.string().describe(\"Custom channel or live chat account ID\"),\n name: z.string().describe(\"Display name for the custom channel or live chat participant\"),\n username: z.string().describe(\"Username in the custom channel or live chat\"),\n}).passthrough().describe(\"Custom channel or live chat field.\")]),\n references: z.array(z.string()).describe(\"Message-ID references for threading into existing conversations\").optional(),\n attachments: z.array(z.object({\n filename: z.string().describe(\"Filename of the attachment\"),\n base64_data: z.string().describe(\"Base64-encoded contents of the file\"),\n}).passthrough().describe(\"File attachment model.\")).describe(\"List of file attachments (up to 25, total payload <=10MB)\").optional(),\n add_to_inbox: z.boolean().describe(\"Move the draft's conversation to everyone's inbox\").optional(),\n conversation: z.string().describe(\"Conversation ID to append the draft to\").optional(),\n organization: z.string().describe(\"Organization ID to scope or link the conversation\").optional(),\n add_assignees: z.array(z.string()).describe(\"List of user IDs to assign to the conversation (requires organization)\").optional(),\n auto_followup: z.boolean().describe(\"Auto-cancel scheduled draft if a reply arrives (requires send_at)\").optional(),\n add_shared_labels: z.array(z.string()).describe(\"Shared label IDs to add to the conversation\").optional(),\n add_to_team_inbox: z.boolean().describe(\"Move the draft's conversation to team inbox (requires team)\").optional(),\n conversation_color: z.string().describe(\"HEX color code or 'good'/'warning'/'danger' for the conversation\").optional(),\n conversation_subject: z.string().describe(\"Subject for new conversation when using references\").optional(),\n external_response_id: z.string().describe(\"WhatsApp template ID when initiating new WhatsApp conversation\").optional(),\n remove_shared_labels: z.array(z.string()).describe(\"Shared label IDs to remove from the conversation\").optional(),\n quote_previous_message: z.boolean().describe(\"Include quoted text of the last message in an existing conversation\").optional(),\n external_response_variables: z.record(z.string(), z.unknown()).describe(\"Variables for WhatsApp template interpolation\").optional(),\n}).describe(\"Request model for creating a draft (email, SMS, WhatsApp, or Live Chat) in Missive.\");\nconst MissiveCreateDraft_DraftResponseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the created draft\").nullable(),\n conversation: z.string().describe(\"Conversation ID the draft belongs to\").nullable().optional(),\n}).passthrough().describe(\"Created draft model.\");\nexport const MissiveCreateDraftOutput = z.object({\n drafts: MissiveCreateDraft_DraftResponseSchema.nullable(),\n}).passthrough().describe(\"Response model for creating a draft in Missive.\");\n\nexport const missiveCreateDraft = action(\"MISSIVE_CREATE_DRAFT\", {\n slug: \"missive-create-draft\",\n name: \"Create Draft\",\n description: \"Tool to create a new draft in Missive. Use after preparing message details to save a draft (email, SMS, WhatsApp, or Live Chat) for later editing or scheduling.\",\n input: MissiveCreateDraftInput,\n output: MissiveCreateDraftOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACtF,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC7G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACjI,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC5B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAChH,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;GACrC,MAAMA,IAAAA,EAAE,OAAO,CA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B;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"}
@@ -13,49 +13,49 @@ declare const MissiveCreateDraftInput: z.ZodObject<{
13
13
  cc_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
14
  name: z.ZodOptional<z.ZodString>;
15
15
  address: z.ZodString;
16
- }, z.core.$strip>>>;
16
+ }, z.core.$loose>>>;
17
17
  to_fields: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
18
18
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
19
  address: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
20
+ }, z.core.$loose>, z.ZodObject<{
21
21
  type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
22
+ whatsapp: "whatsapp";
22
23
  signalwire: "signalwire";
23
24
  twilio: "twilio";
24
25
  twilio_whatsapp: "twilio_whatsapp";
25
- whatsapp: "whatsapp";
26
26
  }>>>;
27
27
  phone_number: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
28
+ }, z.core.$loose>, z.ZodObject<{
29
29
  id: z.ZodString;
30
30
  name: z.ZodString;
31
31
  username: z.ZodString;
32
- }, z.core.$strip>]>>;
32
+ }, z.core.$loose>]>>;
33
33
  bcc_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
34
  name: z.ZodOptional<z.ZodString>;
35
35
  address: z.ZodString;
36
- }, z.core.$strip>>>;
36
+ }, z.core.$loose>>>;
37
37
  force_team: z.ZodOptional<z.ZodBoolean>;
38
38
  from_field: z.ZodUnion<readonly [z.ZodObject<{
39
39
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  address: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
41
+ }, z.core.$loose>, z.ZodObject<{
42
42
  type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
43
+ whatsapp: "whatsapp";
43
44
  signalwire: "signalwire";
44
45
  twilio: "twilio";
45
46
  twilio_whatsapp: "twilio_whatsapp";
46
- whatsapp: "whatsapp";
47
47
  }>>>;
48
48
  phone_number: z.ZodString;
49
- }, z.core.$strip>, z.ZodObject<{
49
+ }, z.core.$loose>, z.ZodObject<{
50
50
  id: z.ZodString;
51
51
  name: z.ZodString;
52
52
  username: z.ZodString;
53
- }, z.core.$strip>]>;
53
+ }, z.core.$loose>]>;
54
54
  references: z.ZodOptional<z.ZodArray<z.ZodString>>;
55
55
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
56
56
  filename: z.ZodString;
57
57
  base64_data: z.ZodString;
58
- }, z.core.$strip>>>;
58
+ }, z.core.$loose>>>;
59
59
  add_to_inbox: z.ZodOptional<z.ZodBoolean>;
60
60
  conversation: z.ZodOptional<z.ZodString>;
61
61
  organization: z.ZodOptional<z.ZodString>;
@@ -68,34 +68,40 @@ declare const MissiveCreateDraftInput: z.ZodObject<{
68
68
  external_response_id: z.ZodOptional<z.ZodString>;
69
69
  remove_shared_labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
70
70
  quote_previous_message: z.ZodOptional<z.ZodBoolean>;
71
- external_response_variables: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
71
+ external_response_variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
72
72
  }, z.core.$strip>;
73
73
  declare const MissiveCreateDraftOutput: z.ZodObject<{
74
74
  drafts: z.ZodNullable<z.ZodObject<{
75
75
  id: z.ZodNullable<z.ZodString>;
76
76
  conversation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
- }, z.core.$strip>>;
78
- }, z.core.$strip>;
77
+ }, z.core.$loose>>;
78
+ }, z.core.$loose>;
79
79
  declare const missiveCreateDraft: import("@keystrokehq/action").WorkflowActionDefinition<{
80
80
  body: string;
81
81
  to_fields: ({
82
+ [x: string]: unknown;
82
83
  address: string;
83
84
  name?: string | null | undefined;
84
85
  } | {
86
+ [x: string]: unknown;
85
87
  phone_number: string;
86
- type?: "signalwire" | "twilio" | "twilio_whatsapp" | "whatsapp" | null | undefined;
88
+ type?: "whatsapp" | "signalwire" | "twilio" | "twilio_whatsapp" | null | undefined;
87
89
  } | {
90
+ [x: string]: unknown;
88
91
  id: string;
89
92
  name: string;
90
93
  username: string;
91
94
  })[];
92
95
  from_field: {
96
+ [x: string]: unknown;
93
97
  address: string;
94
98
  name?: string | null | undefined;
95
99
  } | {
100
+ [x: string]: unknown;
96
101
  phone_number: string;
97
- type?: "signalwire" | "twilio" | "twilio_whatsapp" | "whatsapp" | null | undefined;
102
+ type?: "whatsapp" | "signalwire" | "twilio" | "twilio_whatsapp" | null | undefined;
98
103
  } | {
104
+ [x: string]: unknown;
99
105
  id: string;
100
106
  name: string;
101
107
  username: string;
@@ -108,16 +114,19 @@ declare const missiveCreateDraft: import("@keystrokehq/action").WorkflowActionDe
108
114
  subject?: string | undefined;
109
115
  add_users?: string[] | undefined;
110
116
  cc_fields?: {
117
+ [x: string]: unknown;
111
118
  address: string;
112
119
  name?: string | undefined;
113
120
  }[] | undefined;
114
121
  bcc_fields?: {
122
+ [x: string]: unknown;
115
123
  address: string;
116
124
  name?: string | undefined;
117
125
  }[] | undefined;
118
126
  force_team?: boolean | undefined;
119
127
  references?: string[] | undefined;
120
128
  attachments?: {
129
+ [x: string]: unknown;
121
130
  filename: string;
122
131
  base64_data: string;
123
132
  }[] | undefined;
@@ -133,7 +142,7 @@ declare const missiveCreateDraft: import("@keystrokehq/action").WorkflowActionDe
133
142
  external_response_id?: string | undefined;
134
143
  remove_shared_labels?: string[] | undefined;
135
144
  quote_previous_message?: boolean | undefined;
136
- external_response_variables?: Record<string, never> | undefined;
145
+ external_response_variables?: Record<string, unknown> | undefined;
137
146
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
138
147
  //#endregion
139
148
  export { missiveCreateDraft };
@@ -1 +1 @@
1
- {"version":3,"file":"create-draft.d.cts","names":[],"sources":["../../src/actions/create-draft.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+DvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAM7B,MAAA;AAAA"}
1
+ {"version":3,"file":"create-draft.d.cts","names":[],"sources":["../../src/actions/create-draft.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+DvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAM7B,MAAA;AAAA"}
@@ -13,49 +13,49 @@ declare const MissiveCreateDraftInput: z.ZodObject<{
13
13
  cc_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
14
  name: z.ZodOptional<z.ZodString>;
15
15
  address: z.ZodString;
16
- }, z.core.$strip>>>;
16
+ }, z.core.$loose>>>;
17
17
  to_fields: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
18
18
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
19
  address: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
20
+ }, z.core.$loose>, z.ZodObject<{
21
21
  type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
22
+ whatsapp: "whatsapp";
22
23
  signalwire: "signalwire";
23
24
  twilio: "twilio";
24
25
  twilio_whatsapp: "twilio_whatsapp";
25
- whatsapp: "whatsapp";
26
26
  }>>>;
27
27
  phone_number: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
28
+ }, z.core.$loose>, z.ZodObject<{
29
29
  id: z.ZodString;
30
30
  name: z.ZodString;
31
31
  username: z.ZodString;
32
- }, z.core.$strip>]>>;
32
+ }, z.core.$loose>]>>;
33
33
  bcc_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
34
  name: z.ZodOptional<z.ZodString>;
35
35
  address: z.ZodString;
36
- }, z.core.$strip>>>;
36
+ }, z.core.$loose>>>;
37
37
  force_team: z.ZodOptional<z.ZodBoolean>;
38
38
  from_field: z.ZodUnion<readonly [z.ZodObject<{
39
39
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  address: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
41
+ }, z.core.$loose>, z.ZodObject<{
42
42
  type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
43
+ whatsapp: "whatsapp";
43
44
  signalwire: "signalwire";
44
45
  twilio: "twilio";
45
46
  twilio_whatsapp: "twilio_whatsapp";
46
- whatsapp: "whatsapp";
47
47
  }>>>;
48
48
  phone_number: z.ZodString;
49
- }, z.core.$strip>, z.ZodObject<{
49
+ }, z.core.$loose>, z.ZodObject<{
50
50
  id: z.ZodString;
51
51
  name: z.ZodString;
52
52
  username: z.ZodString;
53
- }, z.core.$strip>]>;
53
+ }, z.core.$loose>]>;
54
54
  references: z.ZodOptional<z.ZodArray<z.ZodString>>;
55
55
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
56
56
  filename: z.ZodString;
57
57
  base64_data: z.ZodString;
58
- }, z.core.$strip>>>;
58
+ }, z.core.$loose>>>;
59
59
  add_to_inbox: z.ZodOptional<z.ZodBoolean>;
60
60
  conversation: z.ZodOptional<z.ZodString>;
61
61
  organization: z.ZodOptional<z.ZodString>;
@@ -68,34 +68,40 @@ declare const MissiveCreateDraftInput: z.ZodObject<{
68
68
  external_response_id: z.ZodOptional<z.ZodString>;
69
69
  remove_shared_labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
70
70
  quote_previous_message: z.ZodOptional<z.ZodBoolean>;
71
- external_response_variables: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
71
+ external_response_variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
72
72
  }, z.core.$strip>;
73
73
  declare const MissiveCreateDraftOutput: z.ZodObject<{
74
74
  drafts: z.ZodNullable<z.ZodObject<{
75
75
  id: z.ZodNullable<z.ZodString>;
76
76
  conversation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
- }, z.core.$strip>>;
78
- }, z.core.$strip>;
77
+ }, z.core.$loose>>;
78
+ }, z.core.$loose>;
79
79
  declare const missiveCreateDraft: import("@keystrokehq/action").WorkflowActionDefinition<{
80
80
  body: string;
81
81
  to_fields: ({
82
+ [x: string]: unknown;
82
83
  address: string;
83
84
  name?: string | null | undefined;
84
85
  } | {
86
+ [x: string]: unknown;
85
87
  phone_number: string;
86
- type?: "signalwire" | "twilio" | "twilio_whatsapp" | "whatsapp" | null | undefined;
88
+ type?: "whatsapp" | "signalwire" | "twilio" | "twilio_whatsapp" | null | undefined;
87
89
  } | {
90
+ [x: string]: unknown;
88
91
  id: string;
89
92
  name: string;
90
93
  username: string;
91
94
  })[];
92
95
  from_field: {
96
+ [x: string]: unknown;
93
97
  address: string;
94
98
  name?: string | null | undefined;
95
99
  } | {
100
+ [x: string]: unknown;
96
101
  phone_number: string;
97
- type?: "signalwire" | "twilio" | "twilio_whatsapp" | "whatsapp" | null | undefined;
102
+ type?: "whatsapp" | "signalwire" | "twilio" | "twilio_whatsapp" | null | undefined;
98
103
  } | {
104
+ [x: string]: unknown;
99
105
  id: string;
100
106
  name: string;
101
107
  username: string;
@@ -108,16 +114,19 @@ declare const missiveCreateDraft: import("@keystrokehq/action").WorkflowActionDe
108
114
  subject?: string | undefined;
109
115
  add_users?: string[] | undefined;
110
116
  cc_fields?: {
117
+ [x: string]: unknown;
111
118
  address: string;
112
119
  name?: string | undefined;
113
120
  }[] | undefined;
114
121
  bcc_fields?: {
122
+ [x: string]: unknown;
115
123
  address: string;
116
124
  name?: string | undefined;
117
125
  }[] | undefined;
118
126
  force_team?: boolean | undefined;
119
127
  references?: string[] | undefined;
120
128
  attachments?: {
129
+ [x: string]: unknown;
121
130
  filename: string;
122
131
  base64_data: string;
123
132
  }[] | undefined;
@@ -133,7 +142,7 @@ declare const missiveCreateDraft: import("@keystrokehq/action").WorkflowActionDe
133
142
  external_response_id?: string | undefined;
134
143
  remove_shared_labels?: string[] | undefined;
135
144
  quote_previous_message?: boolean | undefined;
136
- external_response_variables?: Record<string, never> | undefined;
145
+ external_response_variables?: Record<string, unknown> | undefined;
137
146
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
138
147
  //#endregion
139
148
  export { missiveCreateDraft };
@@ -1 +1 @@
1
- {"version":3,"file":"create-draft.d.mts","names":[],"sources":["../../src/actions/create-draft.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+DvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAM7B,MAAA;AAAA"}
1
+ {"version":3,"file":"create-draft.d.mts","names":[],"sources":["../../src/actions/create-draft.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+DvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAM7B,MAAA;AAAA"}
@@ -13,12 +13,12 @@ const MissiveCreateDraftInput = z.object({
13
13
  cc_fields: z.array(z.object({
14
14
  name: z.string().describe("Display name associated with the email address").optional(),
15
15
  address: z.string().describe("Email address of the recipient or sender")
16
- }).describe("Email address field for drafts.")).describe("CC recipients for email drafts").optional(),
16
+ }).passthrough().describe("Email address field for drafts.")).describe("CC recipients for email drafts").optional(),
17
17
  to_fields: z.array(z.union([
18
18
  z.object({
19
19
  name: z.string().nullable().optional(),
20
20
  address: z.string().describe("Email address of the recipient or sender")
21
- }).describe("Email address field for drafts."),
21
+ }).passthrough().describe("Email address field for drafts."),
22
22
  z.object({
23
23
  type: z.enum([
24
24
  "signalwire",
@@ -27,23 +27,23 @@ const MissiveCreateDraftInput = z.object({
27
27
  "whatsapp"
28
28
  ]).nullable().optional(),
29
29
  phone_number: z.string().describe("Phone number in E.164 format (e.g., '+18005550199')")
30
- }).describe("Phone number field for SMS/WhatsApp drafts."),
30
+ }).passthrough().describe("Phone number field for SMS/WhatsApp drafts."),
31
31
  z.object({
32
32
  id: z.string().describe("Custom channel or live chat account ID"),
33
33
  name: z.string().describe("Display name for the custom channel or live chat participant"),
34
34
  username: z.string().describe("Username in the custom channel or live chat")
35
- }).describe("Custom channel or live chat field.")
35
+ }).passthrough().describe("Custom channel or live chat field.")
36
36
  ])).describe("List of recipients (one only for SMS/WhatsApp)"),
37
37
  bcc_fields: z.array(z.object({
38
38
  name: z.string().describe("Display name associated with the email address").optional(),
39
39
  address: z.string().describe("Email address of the recipient or sender")
40
- }).describe("Email address field for drafts.")).describe("BCC recipients for email drafts").optional(),
40
+ }).passthrough().describe("Email address field for drafts.")).describe("BCC recipients for email drafts").optional(),
41
41
  force_team: z.boolean().describe("Force association to the specified team even if already linked").optional(),
42
42
  from_field: z.union([
43
43
  z.object({
44
44
  name: z.string().nullable().optional(),
45
45
  address: z.string().describe("Email address of the recipient or sender")
46
- }).describe("Email address field for drafts."),
46
+ }).passthrough().describe("Email address field for drafts."),
47
47
  z.object({
48
48
  type: z.enum([
49
49
  "signalwire",
@@ -52,18 +52,18 @@ const MissiveCreateDraftInput = z.object({
52
52
  "whatsapp"
53
53
  ]).nullable().optional(),
54
54
  phone_number: z.string().describe("Phone number in E.164 format (e.g., '+18005550199')")
55
- }).describe("Phone number field for SMS/WhatsApp drafts."),
55
+ }).passthrough().describe("Phone number field for SMS/WhatsApp drafts."),
56
56
  z.object({
57
57
  id: z.string().describe("Custom channel or live chat account ID"),
58
58
  name: z.string().describe("Display name for the custom channel or live chat participant"),
59
59
  username: z.string().describe("Username in the custom channel or live chat")
60
- }).describe("Custom channel or live chat field.")
60
+ }).passthrough().describe("Custom channel or live chat field.")
61
61
  ]),
62
62
  references: z.array(z.string()).describe("Message-ID references for threading into existing conversations").optional(),
63
63
  attachments: z.array(z.object({
64
64
  filename: z.string().describe("Filename of the attachment"),
65
65
  base64_data: z.string().describe("Base64-encoded contents of the file")
66
- }).describe("File attachment model.")).describe("List of file attachments (up to 25, total payload <=10MB)").optional(),
66
+ }).passthrough().describe("File attachment model.")).describe("List of file attachments (up to 25, total payload <=10MB)").optional(),
67
67
  add_to_inbox: z.boolean().describe("Move the draft's conversation to everyone's inbox").optional(),
68
68
  conversation: z.string().describe("Conversation ID to append the draft to").optional(),
69
69
  organization: z.string().describe("Organization ID to scope or link the conversation").optional(),
@@ -76,18 +76,18 @@ const MissiveCreateDraftInput = z.object({
76
76
  external_response_id: z.string().describe("WhatsApp template ID when initiating new WhatsApp conversation").optional(),
77
77
  remove_shared_labels: z.array(z.string()).describe("Shared label IDs to remove from the conversation").optional(),
78
78
  quote_previous_message: z.boolean().describe("Include quoted text of the last message in an existing conversation").optional(),
79
- external_response_variables: z.object({}).describe("Variables for WhatsApp template interpolation").optional()
79
+ external_response_variables: z.record(z.string(), z.unknown()).describe("Variables for WhatsApp template interpolation").optional()
80
80
  }).describe("Request model for creating a draft (email, SMS, WhatsApp, or Live Chat) in Missive.");
81
81
  const MissiveCreateDraft_DraftResponseSchema = z.object({
82
82
  id: z.string().describe("Unique identifier of the created draft").nullable(),
83
83
  conversation: z.string().describe("Conversation ID the draft belongs to").nullable().optional()
84
- }).describe("Created draft model.");
84
+ }).passthrough().describe("Created draft model.");
85
85
  const missiveCreateDraft = action("MISSIVE_CREATE_DRAFT", {
86
86
  slug: "missive-create-draft",
87
87
  name: "Create Draft",
88
88
  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.",
89
89
  input: MissiveCreateDraftInput,
90
- output: z.object({ drafts: MissiveCreateDraft_DraftResponseSchema.nullable() }).describe("Response model for creating a draft in Missive.")
90
+ output: z.object({ drafts: MissiveCreateDraft_DraftResponseSchema.nullable() }).passthrough().describe("Response model for creating a draft in Missive.")
91
91
  });
92
92
  //#endregion
93
93
  export { missiveCreateDraft };
@@ -1 +1 @@
1
- {"version":3,"file":"create-draft.mjs","names":[],"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}).describe(\"Email address field for drafts.\")).describe(\"CC recipients for email drafts\").optional(),\n to_fields: z.array(z.union([z.object({\n name: z.string().nullable().optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).describe(\"Email address field for drafts.\"), z.object({\n type: z.enum([\"signalwire\", \"twilio\", \"twilio_whatsapp\", \"whatsapp\"]).nullable().optional(),\n phone_number: z.string().describe(\"Phone number in E.164 format (e.g., '+18005550199')\"),\n}).describe(\"Phone number field for SMS/WhatsApp drafts.\"), z.object({\n id: z.string().describe(\"Custom channel or live chat account ID\"),\n name: z.string().describe(\"Display name for the custom channel or live chat participant\"),\n username: z.string().describe(\"Username in the custom channel or live chat\"),\n}).describe(\"Custom channel or live chat field.\")])).describe(\"List of recipients (one only for SMS/WhatsApp)\"),\n bcc_fields: z.array(z.object({\n name: z.string().describe(\"Display name associated with the email address\").optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).describe(\"Email address field for drafts.\")).describe(\"BCC recipients for email drafts\").optional(),\n force_team: z.boolean().describe(\"Force association to the specified team even if already linked\").optional(),\n from_field: z.union([z.object({\n name: z.string().nullable().optional(),\n address: z.string().describe(\"Email address of the recipient or sender\"),\n}).describe(\"Email address field for drafts.\"), z.object({\n type: z.enum([\"signalwire\", \"twilio\", \"twilio_whatsapp\", \"whatsapp\"]).nullable().optional(),\n phone_number: z.string().describe(\"Phone number in E.164 format (e.g., '+18005550199')\"),\n}).describe(\"Phone number field for SMS/WhatsApp drafts.\"), z.object({\n id: z.string().describe(\"Custom channel or live chat account ID\"),\n name: z.string().describe(\"Display name for the custom channel or live chat participant\"),\n username: z.string().describe(\"Username in the custom channel or live chat\"),\n}).describe(\"Custom channel or live chat field.\")]),\n references: z.array(z.string()).describe(\"Message-ID references for threading into existing conversations\").optional(),\n attachments: z.array(z.object({\n filename: z.string().describe(\"Filename of the attachment\"),\n base64_data: z.string().describe(\"Base64-encoded contents of the file\"),\n}).describe(\"File attachment model.\")).describe(\"List of file attachments (up to 25, total payload <=10MB)\").optional(),\n add_to_inbox: z.boolean().describe(\"Move the draft's conversation to everyone's inbox\").optional(),\n conversation: z.string().describe(\"Conversation ID to append the draft to\").optional(),\n organization: z.string().describe(\"Organization ID to scope or link the conversation\").optional(),\n add_assignees: z.array(z.string()).describe(\"List of user IDs to assign to the conversation (requires organization)\").optional(),\n auto_followup: z.boolean().describe(\"Auto-cancel scheduled draft if a reply arrives (requires send_at)\").optional(),\n add_shared_labels: z.array(z.string()).describe(\"Shared label IDs to add to the conversation\").optional(),\n add_to_team_inbox: z.boolean().describe(\"Move the draft's conversation to team inbox (requires team)\").optional(),\n conversation_color: z.string().describe(\"HEX color code or 'good'/'warning'/'danger' for the conversation\").optional(),\n conversation_subject: z.string().describe(\"Subject for new conversation when using references\").optional(),\n external_response_id: z.string().describe(\"WhatsApp template ID when initiating new WhatsApp conversation\").optional(),\n remove_shared_labels: z.array(z.string()).describe(\"Shared label IDs to remove from the conversation\").optional(),\n quote_previous_message: z.boolean().describe(\"Include quoted text of the last message in an existing conversation\").optional(),\n external_response_variables: z.object({}).describe(\"Variables for WhatsApp template interpolation\").optional(),\n}).describe(\"Request model for creating a draft (email, SMS, WhatsApp, or Live Chat) in Missive.\");\nconst MissiveCreateDraft_DraftResponseSchema = z.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}).describe(\"Created draft model.\");\nexport const MissiveCreateDraftOutput = z.object({\n drafts: MissiveCreateDraft_DraftResponseSchema.nullable(),\n}).describe(\"Response model for creating a draft in Missive.\");\n\nexport const missiveCreateDraft = action(\"MISSIVE_CREATE_DRAFT\", {\n slug: \"missive-create-draft\",\n name: \"Create Draft\",\n description: \"Tool to create a new draft in Missive. Use after preparing message details to save a draft (email, SMS, WhatsApp, or Live Chat) for later editing or scheduling.\",\n input: MissiveCreateDraftInput,\n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,SAAS;CAC7H,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,SAAS,sBAAsB;AAKlC,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,QAAQ,uCAAuC,SAAS,EAC1D,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-draft.mjs","names":[],"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,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,S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AwB,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC7H,6BAA6B,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sBAAsB;AAKhD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,QAAQ,uCAAuC,SAAS,EAC1D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
@@ -19,7 +19,7 @@ const MissiveCreatePostInput = zod.z.object({
19
19
  add_shared_labels: zod.z.array(zod.z.string()).describe("Shared label IDs to add to the conversation").optional(),
20
20
  remove_shared_labels: zod.z.array(zod.z.string()).describe("Shared label IDs to remove from the conversation").optional()
21
21
  }).describe("Request model for creating a post in a Missive conversation.\nPosts are recommended for managing conversations from integrations and automations.");
22
- const MissiveCreatePostOutput = zod.z.object({}).describe("Response model for creating a post in Missive.\nThe API returns an empty response on success (201 Created).");
22
+ const MissiveCreatePostOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Response model for creating a post in Missive.\nThe API returns an empty response on success (201 Created).");
23
23
  const missiveCreatePost = require_action.action("MISSIVE_CREATE_POST", {
24
24
  slug: "missive-create-post",
25
25
  name: "Create Missive Post",
@@ -1 +1 @@
1
- {"version":3,"file":"create-post.cjs","names":["z","action"],"sources":["../../src/actions/create-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MissiveCreatePostInput = z.object({\n text: z.string().describe(\"Plain text content of the post\").optional(),\n close: z.boolean().describe(\"Close the conversation after creating the post\").optional(),\n reopen: z.boolean().describe(\"Reopen the conversation if it was previously closed\").optional(),\n snooze: z.number().int().describe(\"Unix timestamp to snooze the conversation until\").optional(),\n markdown: z.string().describe(\"Markdown-formatted content of the post\").optional(),\n add_to_inbox: z.boolean().describe(\"Move the conversation to inbox\").optional(),\n conversation: z.string().describe(\"Conversation ID to create the post in\"),\n notification: z.object({\n body: z.string().describe(\"Notification body content shown to users\"),\n title: z.string().describe(\"Notification title displayed to users\"),\n}).describe(\"Notification settings with title and body (both required)\"),\n organization: z.string().describe(\"Organization ID - required when using add_assignees parameter\").optional(),\n add_assignees: z.array(z.string()).describe(\"User IDs to assign to the conversation\").optional(),\n remove_assignees: z.array(z.string()).describe(\"User IDs to unassign from the conversation\").optional(),\n add_shared_labels: z.array(z.string()).describe(\"Shared label IDs to add to the conversation\").optional(),\n remove_shared_labels: z.array(z.string()).describe(\"Shared label IDs to remove from the conversation\").optional(),\n}).describe(\"Request model for creating a post in a Missive conversation.\\nPosts are recommended for managing conversations from integrations and automations.\");\nexport const MissiveCreatePostOutput = z.object({}).describe(\"Response model for creating a post in Missive.\\nThe API returns an empty response on success (201 Created).\");\n\nexport const missiveCreatePost = action(\"MISSIVE_CREATE_POST\", {\n slug: \"missive-create-post\",\n name: \"Create Missive Post\",\n description: \"Tool to create a post in a Missive conversation. Posts can add comments, close conversations, assign users, apply labels, and trigger other actions. Recommended approach for managing conversations from integrations and automations.\",\n input: MissiveCreatePostInput,\n output: MissiveCreatePostOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SA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AE1K,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-post.cjs","names":["z","action"],"sources":["../../src/actions/create-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MissiveCreatePostInput = z.object({\n text: z.string().describe(\"Plain text content of the post\").optional(),\n close: z.boolean().describe(\"Close the conversation after creating the post\").optional(),\n reopen: z.boolean().describe(\"Reopen the conversation if it was previously closed\").optional(),\n snooze: z.number().int().describe(\"Unix timestamp to snooze the conversation until\").optional(),\n markdown: z.string().describe(\"Markdown-formatted content of the post\").optional(),\n add_to_inbox: z.boolean().describe(\"Move the conversation to inbox\").optional(),\n conversation: z.string().describe(\"Conversation ID to create the post in\"),\n notification: z.object({\n body: z.string().describe(\"Notification body content shown to users\"),\n title: z.string().describe(\"Notification title displayed to users\"),\n}).describe(\"Notification settings with title and body (both required)\"),\n organization: z.string().describe(\"Organization ID - required when using add_assignees parameter\").optional(),\n add_assignees: z.array(z.string()).describe(\"User IDs to assign to the conversation\").optional(),\n remove_assignees: z.array(z.string()).describe(\"User IDs to unassign from the conversation\").optional(),\n add_shared_labels: z.array(z.string()).describe(\"Shared label IDs to add to the conversation\").optional(),\n remove_shared_labels: z.array(z.string()).describe(\"Shared label IDs to remove from the conversation\").optional(),\n}).describe(\"Request model for creating a post in a Missive conversation.\\nPosts are recommended for managing conversations from integrations and automations.\");\nexport const MissiveCreatePostOutput = z.record(z.string(), z.unknown()).describe(\"Response model for creating a post in Missive.\\nThe API returns an empty response on success (201 Created).\");\n\nexport const missiveCreatePost = action(\"MISSIVE_CREATE_POST\", {\n slug: \"missive-create-post\",\n name: \"Create Missive Post\",\n description: \"Tool to create a post in a Missive conversation. Posts can add comments, close conversations, assign users, apply labels, and trigger other actions. Recommended approach for managing conversations from integrations and automations.\",\n input: MissiveCreatePostInput,\n output: MissiveC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MA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,SAAS,mJAAmJ;AAC/J,MAAa,0BAA0BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6GAA6G;AAE/L,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -19,7 +19,7 @@ declare const MissiveCreatePostInput: z.ZodObject<{
19
19
  add_shared_labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
20
  remove_shared_labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
21
  }, z.core.$strip>;
22
- declare const MissiveCreatePostOutput: z.ZodObject<{}, z.core.$strip>;
22
+ declare const MissiveCreatePostOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23
23
  declare const missiveCreatePost: import("@keystrokehq/action").WorkflowActionDefinition<{
24
24
  conversation: string;
25
25
  notification: {
@@ -1 +1 @@
1
- {"version":3,"file":"create-post.d.cts","names":[],"sources":["../../src/actions/create-post.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAkBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAEvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"create-post.d.cts","names":[],"sources":["../../src/actions/create-post.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAkBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEvB,iBAAA,gCAAiB,wBAAA"}
@@ -19,7 +19,7 @@ declare const MissiveCreatePostInput: z.ZodObject<{
19
19
  add_shared_labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
20
  remove_shared_labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
21
  }, z.core.$strip>;
22
- declare const MissiveCreatePostOutput: z.ZodObject<{}, z.core.$strip>;
22
+ declare const MissiveCreatePostOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23
23
  declare const missiveCreatePost: import("@keystrokehq/action").WorkflowActionDefinition<{
24
24
  conversation: string;
25
25
  notification: {
@@ -1 +1 @@
1
- {"version":3,"file":"create-post.d.mts","names":[],"sources":["../../src/actions/create-post.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAkBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAEvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"create-post.d.mts","names":[],"sources":["../../src/actions/create-post.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAkBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEvB,iBAAA,gCAAiB,wBAAA"}