@sendmux/cli 1.0.0 → 1.0.1

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 (302) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +72 -5
  3. package/dist/base-command.d.ts +2 -0
  4. package/dist/base-command.d.ts.map +1 -1
  5. package/dist/base-command.js +27 -0
  6. package/dist/commands/mailbox/batch-delete-messages.d.ts +26 -0
  7. package/dist/commands/mailbox/batch-delete-messages.d.ts.map +1 -0
  8. package/dist/commands/mailbox/batch-delete-messages.js +7 -0
  9. package/dist/commands/mailbox/batch-get-messages.d.ts +26 -0
  10. package/dist/commands/mailbox/batch-get-messages.d.ts.map +1 -0
  11. package/dist/commands/mailbox/batch-get-messages.js +7 -0
  12. package/dist/commands/mailbox/batch-update-messages.d.ts +26 -0
  13. package/dist/commands/mailbox/batch-update-messages.d.ts.map +1 -0
  14. package/dist/commands/mailbox/batch-update-messages.js +7 -0
  15. package/dist/commands/mailbox/count-messages.d.ts +142 -0
  16. package/dist/commands/mailbox/count-messages.d.ts.map +1 -0
  17. package/dist/commands/mailbox/count-messages.js +7 -0
  18. package/dist/commands/mailbox/create-folder.d.ts +26 -0
  19. package/dist/commands/mailbox/create-folder.d.ts.map +1 -0
  20. package/dist/commands/mailbox/create-folder.js +7 -0
  21. package/dist/commands/mailbox/delete-folder.d.ts +38 -0
  22. package/dist/commands/mailbox/delete-folder.d.ts.map +1 -0
  23. package/dist/commands/mailbox/delete-folder.js +7 -0
  24. package/dist/commands/mailbox/delete-message.d.ts +44 -0
  25. package/dist/commands/mailbox/delete-message.d.ts.map +1 -0
  26. package/dist/commands/mailbox/delete-message.js +7 -0
  27. package/dist/commands/mailbox/folders/list.d.ts +17 -1
  28. package/dist/commands/mailbox/folders/list.d.ts.map +1 -1
  29. package/dist/commands/mailbox/folders/list.js +5 -4
  30. package/dist/commands/mailbox/get-changes.d.ts +82 -0
  31. package/dist/commands/mailbox/get-changes.d.ts.map +1 -0
  32. package/dist/commands/mailbox/get-changes.js +7 -0
  33. package/dist/commands/mailbox/get-folder-changes.d.ts +40 -0
  34. package/dist/commands/mailbox/get-folder-changes.d.ts.map +1 -0
  35. package/dist/commands/mailbox/get-folder-changes.js +7 -0
  36. package/dist/commands/mailbox/get-folder.d.ts +38 -0
  37. package/dist/commands/mailbox/get-folder.d.ts.map +1 -0
  38. package/dist/commands/mailbox/get-folder.js +7 -0
  39. package/dist/commands/mailbox/get-identity.d.ts +26 -0
  40. package/dist/commands/mailbox/get-identity.d.ts.map +1 -0
  41. package/dist/commands/mailbox/get-identity.js +7 -0
  42. package/dist/commands/mailbox/get-message-attachment.d.ts +44 -0
  43. package/dist/commands/mailbox/get-message-attachment.d.ts.map +1 -0
  44. package/dist/commands/mailbox/get-message-attachment.js +7 -0
  45. package/dist/commands/mailbox/get-quota-changes.d.ts +40 -0
  46. package/dist/commands/mailbox/get-quota-changes.d.ts.map +1 -0
  47. package/dist/commands/mailbox/get-quota-changes.js +7 -0
  48. package/dist/commands/mailbox/get-session.d.ts +32 -0
  49. package/dist/commands/mailbox/get-session.d.ts.map +1 -0
  50. package/dist/commands/mailbox/get-session.js +7 -0
  51. package/dist/commands/mailbox/get-submission-changes.d.ts +40 -0
  52. package/dist/commands/mailbox/get-submission-changes.d.ts.map +1 -0
  53. package/dist/commands/mailbox/get-submission-changes.js +7 -0
  54. package/dist/commands/mailbox/get-submission.d.ts +38 -0
  55. package/dist/commands/mailbox/get-submission.d.ts.map +1 -0
  56. package/dist/commands/mailbox/get-submission.js +7 -0
  57. package/dist/commands/mailbox/get-thread-content.d.ts +112 -0
  58. package/dist/commands/mailbox/get-thread-content.d.ts.map +1 -0
  59. package/dist/commands/mailbox/get-thread-content.js +7 -0
  60. package/dist/commands/mailbox/get-thread.d.ts +38 -0
  61. package/dist/commands/mailbox/get-thread.d.ts.map +1 -0
  62. package/dist/commands/mailbox/get-thread.js +7 -0
  63. package/dist/commands/mailbox/list-body.d.ts +53 -0
  64. package/dist/commands/mailbox/list-body.d.ts.map +1 -0
  65. package/dist/commands/mailbox/list-body.js +7 -0
  66. package/dist/commands/mailbox/list-content.d.ts +91 -0
  67. package/dist/commands/mailbox/list-content.d.ts.map +1 -0
  68. package/dist/commands/mailbox/list-content.js +7 -0
  69. package/dist/commands/mailbox/list-granted-mailboxes.d.ts +40 -0
  70. package/dist/commands/mailbox/list-granted-mailboxes.d.ts.map +1 -0
  71. package/dist/commands/mailbox/list-granted-mailboxes.js +7 -0
  72. package/dist/commands/mailbox/list-identities.d.ts +40 -0
  73. package/dist/commands/mailbox/list-identities.d.ts.map +1 -0
  74. package/dist/commands/mailbox/list-identities.js +7 -0
  75. package/dist/commands/mailbox/list-quotas.d.ts +80 -0
  76. package/dist/commands/mailbox/list-quotas.d.ts.map +1 -0
  77. package/dist/commands/mailbox/list-quotas.js +7 -0
  78. package/dist/commands/mailbox/list-submissions.d.ts +91 -0
  79. package/dist/commands/mailbox/list-submissions.d.ts.map +1 -0
  80. package/dist/commands/mailbox/list-submissions.js +7 -0
  81. package/dist/commands/mailbox/list-thread-messages.d.ts +53 -0
  82. package/dist/commands/mailbox/list-thread-messages.d.ts.map +1 -0
  83. package/dist/commands/mailbox/list-thread-messages.js +7 -0
  84. package/dist/commands/mailbox/list-threads.d.ts +89 -0
  85. package/dist/commands/mailbox/list-threads.d.ts.map +1 -0
  86. package/dist/commands/mailbox/list-threads.js +7 -0
  87. package/dist/commands/mailbox/list-usage.d.ts +32 -0
  88. package/dist/commands/mailbox/list-usage.d.ts.map +1 -0
  89. package/dist/commands/mailbox/list-usage.js +7 -0
  90. package/dist/commands/mailbox/me/get.d.ts +13 -2
  91. package/dist/commands/mailbox/me/get.d.ts.map +1 -1
  92. package/dist/commands/mailbox/me/get.js +5 -4
  93. package/dist/commands/mailbox/messages/get.d.ts +16 -2
  94. package/dist/commands/mailbox/messages/get.d.ts.map +1 -1
  95. package/dist/commands/mailbox/messages/get.js +5 -4
  96. package/dist/commands/mailbox/messages/list.d.ts +84 -1
  97. package/dist/commands/mailbox/messages/list.d.ts.map +1 -1
  98. package/dist/commands/mailbox/messages/list.js +5 -4
  99. package/dist/commands/mailbox/query-folder-changes.d.ts +40 -0
  100. package/dist/commands/mailbox/query-folder-changes.d.ts.map +1 -0
  101. package/dist/commands/mailbox/query-folder-changes.js +7 -0
  102. package/dist/commands/mailbox/query-message-changes.d.ts +176 -0
  103. package/dist/commands/mailbox/query-message-changes.d.ts.map +1 -0
  104. package/dist/commands/mailbox/query-message-changes.js +7 -0
  105. package/dist/commands/mailbox/search-message-snippets.d.ts +150 -0
  106. package/dist/commands/mailbox/search-message-snippets.d.ts.map +1 -0
  107. package/dist/commands/mailbox/search-message-snippets.js +7 -0
  108. package/dist/commands/mailbox/send-message.d.ts +33 -0
  109. package/dist/commands/mailbox/send-message.d.ts.map +1 -0
  110. package/dist/commands/mailbox/send-message.js +7 -0
  111. package/dist/commands/mailbox/stream-events.d.ts +60 -0
  112. package/dist/commands/mailbox/stream-events.d.ts.map +1 -0
  113. package/dist/commands/mailbox/stream-events.js +7 -0
  114. package/dist/commands/mailbox/update-folder.d.ts +38 -0
  115. package/dist/commands/mailbox/update-folder.d.ts.map +1 -0
  116. package/dist/commands/mailbox/update-folder.js +7 -0
  117. package/dist/commands/mailbox/update-identity.d.ts +26 -0
  118. package/dist/commands/mailbox/update-identity.d.ts.map +1 -0
  119. package/dist/commands/mailbox/update-identity.js +7 -0
  120. package/dist/commands/mailbox/update-message.d.ts +38 -0
  121. package/dist/commands/mailbox/update-message.d.ts.map +1 -0
  122. package/dist/commands/mailbox/update-message.js +7 -0
  123. package/dist/commands/mailbox/upload-attachment.d.ts +32 -0
  124. package/dist/commands/mailbox/upload-attachment.d.ts.map +1 -0
  125. package/dist/commands/mailbox/upload-attachment.js +7 -0
  126. package/dist/commands/management/activate-provider.d.ts +33 -0
  127. package/dist/commands/management/activate-provider.d.ts.map +1 -0
  128. package/dist/commands/management/activate-provider.js +7 -0
  129. package/dist/commands/management/cancel-shared-amazon-ses-limit-request.d.ts +26 -0
  130. package/dist/commands/management/cancel-shared-amazon-ses-limit-request.d.ts.map +1 -0
  131. package/dist/commands/management/cancel-shared-amazon-ses-limit-request.js +7 -0
  132. package/dist/commands/management/create-domain.d.ts +27 -0
  133. package/dist/commands/management/create-domain.d.ts.map +1 -0
  134. package/dist/commands/management/create-domain.js +7 -0
  135. package/dist/commands/management/create-mailbox-key.d.ts +33 -0
  136. package/dist/commands/management/create-mailbox-key.d.ts.map +1 -0
  137. package/dist/commands/management/create-mailbox-key.js +7 -0
  138. package/dist/commands/management/create-mailbox.d.ts +27 -0
  139. package/dist/commands/management/create-mailbox.d.ts.map +1 -0
  140. package/dist/commands/management/create-mailbox.js +7 -0
  141. package/dist/commands/management/create-provider.d.ts +27 -0
  142. package/dist/commands/management/create-provider.d.ts.map +1 -0
  143. package/dist/commands/management/create-provider.js +7 -0
  144. package/dist/commands/management/create-shared-amazon-ses-limit-request.d.ts +27 -0
  145. package/dist/commands/management/create-shared-amazon-ses-limit-request.d.ts.map +1 -0
  146. package/dist/commands/management/create-shared-amazon-ses-limit-request.js +7 -0
  147. package/dist/commands/management/create-webhook.d.ts +27 -0
  148. package/dist/commands/management/create-webhook.d.ts.map +1 -0
  149. package/dist/commands/management/create-webhook.js +7 -0
  150. package/dist/commands/management/deactivate-provider.d.ts +33 -0
  151. package/dist/commands/management/deactivate-provider.d.ts.map +1 -0
  152. package/dist/commands/management/deactivate-provider.js +7 -0
  153. package/dist/commands/management/delete-domain.d.ts +26 -0
  154. package/dist/commands/management/delete-domain.d.ts.map +1 -0
  155. package/dist/commands/management/delete-domain.js +7 -0
  156. package/dist/commands/management/delete-mailbox-key.d.ts +32 -0
  157. package/dist/commands/management/delete-mailbox-key.d.ts.map +1 -0
  158. package/dist/commands/management/delete-mailbox-key.js +7 -0
  159. package/dist/commands/management/delete-mailbox.d.ts +26 -0
  160. package/dist/commands/management/delete-mailbox.d.ts.map +1 -0
  161. package/dist/commands/management/delete-mailbox.js +7 -0
  162. package/dist/commands/management/delete-provider.d.ts +26 -0
  163. package/dist/commands/management/delete-provider.d.ts.map +1 -0
  164. package/dist/commands/management/delete-provider.js +7 -0
  165. package/dist/commands/management/delete-webhook.d.ts +26 -0
  166. package/dist/commands/management/delete-webhook.d.ts.map +1 -0
  167. package/dist/commands/management/delete-webhook.js +7 -0
  168. package/dist/commands/management/domains/get.d.ts +9 -1
  169. package/dist/commands/management/domains/get.d.ts.map +1 -1
  170. package/dist/commands/management/domains/get.js +5 -4
  171. package/dist/commands/management/domains/list.d.ts +11 -1
  172. package/dist/commands/management/domains/list.d.ts.map +1 -1
  173. package/dist/commands/management/domains/list.js +5 -4
  174. package/dist/commands/management/get-delivery-payload.d.ts +32 -0
  175. package/dist/commands/management/get-delivery-payload.d.ts.map +1 -0
  176. package/dist/commands/management/get-delivery-payload.js +7 -0
  177. package/dist/commands/management/get-domain-filters.d.ts +32 -0
  178. package/dist/commands/management/get-domain-filters.d.ts.map +1 -0
  179. package/dist/commands/management/get-domain-filters.js +7 -0
  180. package/dist/commands/management/get-domain-zone-file.d.ts +26 -0
  181. package/dist/commands/management/get-domain-zone-file.d.ts.map +1 -0
  182. package/dist/commands/management/get-domain-zone-file.js +7 -0
  183. package/dist/commands/management/get-email-log.d.ts +32 -0
  184. package/dist/commands/management/get-email-log.d.ts.map +1 -0
  185. package/dist/commands/management/get-email-log.js +7 -0
  186. package/dist/commands/management/get-email-metrics.d.ts +52 -0
  187. package/dist/commands/management/get-email-metrics.d.ts.map +1 -0
  188. package/dist/commands/management/get-email-metrics.js +7 -0
  189. package/dist/commands/management/get-inbox-log.d.ts +26 -0
  190. package/dist/commands/management/get-inbox-log.d.ts.map +1 -0
  191. package/dist/commands/management/get-inbox-log.js +7 -0
  192. package/dist/commands/management/get-mailbox-filters.d.ts +32 -0
  193. package/dist/commands/management/get-mailbox-filters.d.ts.map +1 -0
  194. package/dist/commands/management/get-mailbox-filters.js +7 -0
  195. package/dist/commands/management/get-mailbox.d.ts +32 -0
  196. package/dist/commands/management/get-mailbox.d.ts.map +1 -0
  197. package/dist/commands/management/get-mailbox.js +7 -0
  198. package/dist/commands/management/get-provider-limits.d.ts +20 -0
  199. package/dist/commands/management/get-provider-limits.d.ts.map +1 -0
  200. package/dist/commands/management/get-provider-limits.js +7 -0
  201. package/dist/commands/management/get-provider-stats.d.ts +20 -0
  202. package/dist/commands/management/get-provider-stats.d.ts.map +1 -0
  203. package/dist/commands/management/get-provider-stats.js +7 -0
  204. package/dist/commands/management/get-provider-usage.d.ts +20 -0
  205. package/dist/commands/management/get-provider-usage.d.ts.map +1 -0
  206. package/dist/commands/management/get-provider-usage.js +7 -0
  207. package/dist/commands/management/get-provider.d.ts +32 -0
  208. package/dist/commands/management/get-provider.d.ts.map +1 -0
  209. package/dist/commands/management/get-provider.js +7 -0
  210. package/dist/commands/management/get-shared-amazon-ses-limit-request.d.ts +20 -0
  211. package/dist/commands/management/get-shared-amazon-ses-limit-request.d.ts.map +1 -0
  212. package/dist/commands/management/get-shared-amazon-ses-limit-request.js +7 -0
  213. package/dist/commands/management/get-spend-summary.d.ts +27 -0
  214. package/dist/commands/management/get-spend-summary.d.ts.map +1 -0
  215. package/dist/commands/management/get-spend-summary.js +7 -0
  216. package/dist/commands/management/get-webhook.d.ts +32 -0
  217. package/dist/commands/management/get-webhook.d.ts.map +1 -0
  218. package/dist/commands/management/get-webhook.js +7 -0
  219. package/dist/commands/management/list-balance.d.ts +20 -0
  220. package/dist/commands/management/list-balance.d.ts.map +1 -0
  221. package/dist/commands/management/list-balance.js +7 -0
  222. package/dist/commands/management/list-delivery.d.ts +54 -0
  223. package/dist/commands/management/list-delivery.d.ts.map +1 -0
  224. package/dist/commands/management/list-delivery.js +7 -0
  225. package/dist/commands/management/list-email-logs.d.ts +65 -0
  226. package/dist/commands/management/list-email-logs.d.ts.map +1 -0
  227. package/dist/commands/management/list-email-logs.js +7 -0
  228. package/dist/commands/management/list-inbox-logs.d.ts +65 -0
  229. package/dist/commands/management/list-inbox-logs.d.ts.map +1 -0
  230. package/dist/commands/management/list-inbox-logs.js +7 -0
  231. package/dist/commands/management/list-transactions.d.ts +41 -0
  232. package/dist/commands/management/list-transactions.d.ts.map +1 -0
  233. package/dist/commands/management/list-transactions.js +7 -0
  234. package/dist/commands/management/list-webhooks.d.ts +34 -0
  235. package/dist/commands/management/list-webhooks.d.ts.map +1 -0
  236. package/dist/commands/management/list-webhooks.js +7 -0
  237. package/dist/commands/management/mailboxes/list.d.ts +15 -1
  238. package/dist/commands/management/mailboxes/list.d.ts.map +1 -1
  239. package/dist/commands/management/mailboxes/list.js +5 -4
  240. package/dist/commands/management/providers/list.d.ts +19 -1
  241. package/dist/commands/management/providers/list.d.ts.map +1 -1
  242. package/dist/commands/management/providers/list.js +5 -4
  243. package/dist/commands/management/request-sending-account-limit-increase.d.ts +27 -0
  244. package/dist/commands/management/request-sending-account-limit-increase.d.ts.map +1 -0
  245. package/dist/commands/management/request-sending-account-limit-increase.js +7 -0
  246. package/dist/commands/management/resume-mailbox.d.ts +33 -0
  247. package/dist/commands/management/resume-mailbox.d.ts.map +1 -0
  248. package/dist/commands/management/resume-mailbox.js +7 -0
  249. package/dist/commands/management/rotate-webhook-secret.d.ts +33 -0
  250. package/dist/commands/management/rotate-webhook-secret.d.ts.map +1 -0
  251. package/dist/commands/management/rotate-webhook-secret.js +7 -0
  252. package/dist/commands/management/set-domain-filters.d.ts +32 -0
  253. package/dist/commands/management/set-domain-filters.d.ts.map +1 -0
  254. package/dist/commands/management/set-domain-filters.js +7 -0
  255. package/dist/commands/management/set-mailbox-filters.d.ts +32 -0
  256. package/dist/commands/management/set-mailbox-filters.d.ts.map +1 -0
  257. package/dist/commands/management/set-mailbox-filters.js +7 -0
  258. package/dist/commands/management/suspend-mailbox.d.ts +33 -0
  259. package/dist/commands/management/suspend-mailbox.d.ts.map +1 -0
  260. package/dist/commands/management/suspend-mailbox.js +7 -0
  261. package/dist/commands/management/test-provider.d.ts +33 -0
  262. package/dist/commands/management/test-provider.d.ts.map +1 -0
  263. package/dist/commands/management/test-provider.js +7 -0
  264. package/dist/commands/management/test-webhook.d.ts +33 -0
  265. package/dist/commands/management/test-webhook.d.ts.map +1 -0
  266. package/dist/commands/management/test-webhook.js +7 -0
  267. package/dist/commands/management/update-domain.d.ts +32 -0
  268. package/dist/commands/management/update-domain.d.ts.map +1 -0
  269. package/dist/commands/management/update-domain.js +7 -0
  270. package/dist/commands/management/update-mailbox.d.ts +32 -0
  271. package/dist/commands/management/update-mailbox.d.ts.map +1 -0
  272. package/dist/commands/management/update-mailbox.js +7 -0
  273. package/dist/commands/management/update-provider.d.ts +32 -0
  274. package/dist/commands/management/update-provider.d.ts.map +1 -0
  275. package/dist/commands/management/update-provider.js +7 -0
  276. package/dist/commands/management/update-webhook.d.ts +32 -0
  277. package/dist/commands/management/update-webhook.d.ts.map +1 -0
  278. package/dist/commands/management/update-webhook.js +7 -0
  279. package/dist/commands/management/verify-domain.d.ts +26 -0
  280. package/dist/commands/management/verify-domain.d.ts.map +1 -0
  281. package/dist/commands/management/verify-domain.js +7 -0
  282. package/dist/commands/sending/get-open-api-spec.d.ts +26 -0
  283. package/dist/commands/sending/get-open-api-spec.d.ts.map +1 -0
  284. package/dist/commands/sending/get-open-api-spec.js +7 -0
  285. package/dist/commands/sending/send/batch.d.ts +8 -2
  286. package/dist/commands/sending/send/batch.d.ts.map +1 -1
  287. package/dist/commands/sending/send/batch.js +5 -4
  288. package/dist/commands/sending/send.d.ts +8 -2
  289. package/dist/commands/sending/send.d.ts.map +1 -1
  290. package/dist/commands/sending/send.js +5 -4
  291. package/dist/generated/operations.d.ts +1710 -25
  292. package/dist/generated/operations.d.ts.map +1 -1
  293. package/dist/generated/operations.js +2012 -316
  294. package/dist/operation-flags.d.ts +3 -3
  295. package/dist/operation-flags.d.ts.map +1 -1
  296. package/dist/operation-flags.js +132 -21
  297. package/dist/operation-runner.d.ts.map +1 -1
  298. package/dist/operation-runner.js +65 -7
  299. package/dist/operation-types.d.ts +19 -0
  300. package/dist/operation-types.d.ts.map +1 -1
  301. package/oclif.manifest.json +13474 -238
  302. package/package.json +2 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sendmux
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md CHANGED
@@ -1,26 +1,93 @@
1
1
  # @sendmux/cli
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@sendmux%2Fcli)](https://www.npmjs.com/package/@sendmux/cli)
4
+ [![CI](https://github.com/Sendmux/sendmux-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/Sendmux/sendmux-sdk/actions/workflows/ci.yml)
5
+ [![npm downloads](https://img.shields.io/npm/dm/@sendmux%2Fcli)](https://www.npmjs.com/package/@sendmux/cli)
6
+ [![Licence](https://img.shields.io/npm/l/@sendmux%2Fcli)](https://github.com/Sendmux/sendmux-sdk/blob/main/LICENSE)
7
+
3
8
  Agent-drivable command line interface for Sendmux.
4
9
 
5
- Install:
10
+ ## Documentation
11
+
12
+ - Sendmux docs: [docs.sendmux.ai](https://docs.sendmux.ai)
13
+ - Management API reference: [docs.sendmux.ai/api/introduction](https://docs.sendmux.ai/api/introduction)
14
+ - Mailbox API reference: [docs.sendmux.ai/mailbox-api/introduction](https://docs.sendmux.ai/mailbox-api/introduction)
15
+ - Sending API reference: [docs.sendmux.ai/sending-api/introduction](https://docs.sendmux.ai/sending-api/introduction)
16
+ - Source repository: [Sendmux/sendmux-sdk](https://github.com/Sendmux/sendmux-sdk)
17
+
18
+ ## Requirements
19
+
20
+ - npm global installs, `npx`, or a downloaded release tarball.
21
+ - A root `smx_root_*` key for Management commands.
22
+ - A mailbox-scoped `smx_mbx_*` key for Mailbox and Sending commands.
23
+
24
+ ## Installation
6
25
 
7
26
  ```sh
8
27
  npm install -g @sendmux/cli
9
28
  ```
10
29
 
11
- Configure a profile:
30
+ The package exposes the `sendmux` binary.
31
+
32
+ ## Usage
33
+
34
+ Create profiles for each key type before running API commands.
12
35
 
13
36
  ```sh
14
37
  sendmux profiles:set default --api-key smx_root_... --default
15
38
  sendmux profiles:set mailbox --api-key smx_mbx_...
39
+ sendmux profiles:set sending --api-key smx_mbx_...
16
40
  ```
17
41
 
18
- Use `--json` on API commands to emit the raw Sendmux response envelope:
42
+ Run commands with `--json` for machine-readable output.
19
43
 
20
44
  ```sh
21
- sendmux mailbox:messages:list --profile mailbox --query limit=25 --json
22
45
  sendmux management:domains:list --profile default --json
23
- sendmux sending:send --profile default --body '{"from":"sender@example.com","to":["user@example.com"],"subject":"Hello","text":"Hello"}' --json
46
+ sendmux mailbox:messages:list --profile mailbox --query limit=25 --json
47
+ sendmux sending:send --profile sending --body '{"from":{"email":"sender@example.com"},"to":{"email":"recipient@example.com"},"subject":"Hello","html_body":"<p>Hello.</p>","text_body":"Hello"}' --json
24
48
  ```
25
49
 
26
50
  Commands reject mismatched key types before making a network request.
51
+
52
+ ## Commands
53
+
54
+ The CLI includes `95` generated API operation commands:
55
+
56
+ - `40` Mailbox commands, including `mailbox:messages:list`, `mailbox:messages:get`, `mailbox:send-message`, and `mailbox:list-granted-mailboxes`.
57
+ - `52` Management commands, including `management:domains:list`, `management:create-mailbox`, `management:get-spend-summary`, and `management:create-webhook`.
58
+ - `3` Sending commands: `sending:get-open-api-spec`, `sending:send`, and `sending:send:batch`.
59
+ - Profile commands: `profiles:list`, `profiles:set`, and `profiles:show`.
60
+
61
+ Use command-level help for required path, query, header, and body fields.
62
+
63
+ ```sh
64
+ sendmux management:domains:get --help
65
+ sendmux sending:send --help
66
+ ```
67
+
68
+ ## Global API flags
69
+
70
+ Operation commands support:
71
+
72
+ - `--api-key`
73
+ - `--base-url`
74
+ - `--profile` / `-p`
75
+ - `--body`
76
+ - `--body-file`
77
+ - `--header`
78
+ - `--idempotency-key`
79
+ - `--if-match`
80
+ - `--if-none-match`
81
+ - `--path`
82
+ - `--query`
83
+ - `--json`
84
+
85
+ `--path`, `--query`, and `--header` use `name=value` syntax and can be repeated when the operation accepts multiple values.
86
+
87
+ ## Support
88
+
89
+ Open an issue in [Sendmux/sendmux-sdk](https://github.com/Sendmux/sendmux-sdk/issues) with the CLI version, command, flags, and request ID from any API error.
90
+
91
+ ## Licence
92
+
93
+ MIT. See the [licence file](https://github.com/Sendmux/sendmux-sdk/blob/main/LICENSE).
@@ -20,6 +20,8 @@ export declare abstract class SendmuxCommand extends Command {
20
20
  static enableJsonFlag: boolean;
21
21
  resolveAuth(flags: AuthFlags, expectedKind: ApiKeyKind): Promise<ResolvedAuth>;
22
22
  renderResult(value: unknown): unknown;
23
+ renderTextResult(value: string): unknown;
24
+ renderBinaryResult(value: ArrayBuffer | ArrayBufferView | string): unknown;
23
25
  private assertKeyKind;
24
26
  }
25
27
  //# sourceMappingURL=base-command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-command.d.ts","sourceRoot":"","sources":["../src/base-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAS,MAAM,aAAa,CAAC;AAE7C,OAAO,EAEL,KAAK,UAAU,EAChB,MAAM,eAAe,CAAC;AAGvB,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,SAAS;;;;CAcrB,CAAC;AAEF,8BAAsB,cAAe,SAAQ,OAAO;IAClD,MAAM,CAAC,cAAc,UAAQ;IAEvB,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC;IAmDpF,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;IASrC,OAAO,CAAC,aAAa;CA4BtB"}
1
+ {"version":3,"file":"base-command.d.ts","sourceRoot":"","sources":["../src/base-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAS,MAAM,aAAa,CAAC;AAE7C,OAAO,EAEL,KAAK,UAAU,EAChB,MAAM,eAAe,CAAC;AAGvB,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,SAAS;;;;CAcrB,CAAC;AAEF,8BAAsB,cAAe,SAAQ,OAAO;IAClD,MAAM,CAAC,cAAc,UAAQ;IAEvB,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC;IAmDpF,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;IASrC,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IASxC,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,eAAe,GAAG,MAAM,GAAG,OAAO;IAa1E,OAAO,CAAC,aAAa;CA4BtB"}
@@ -68,6 +68,24 @@ export class SendmuxCommand extends Command {
68
68
  this.log(JSON.stringify(value, null, 2));
69
69
  return value;
70
70
  }
71
+ renderTextResult(value) {
72
+ if (this.jsonEnabled()) {
73
+ return { text: value };
74
+ }
75
+ this.log(value);
76
+ return value;
77
+ }
78
+ renderBinaryResult(value) {
79
+ const buffer = binaryBuffer(value);
80
+ if (this.jsonEnabled()) {
81
+ return {
82
+ base64: buffer.toString("base64"),
83
+ byte_length: buffer.byteLength,
84
+ };
85
+ }
86
+ this.log(buffer.toString("base64"));
87
+ return buffer;
88
+ }
71
89
  assertKeyKind({ apiKey, baseUrl, expectedKind, source, }) {
72
90
  let apiKeyKind;
73
91
  try {
@@ -91,3 +109,12 @@ export class SendmuxCommand extends Command {
91
109
  };
92
110
  }
93
111
  }
112
+ function binaryBuffer(value) {
113
+ if (typeof value === "string") {
114
+ return Buffer.from(value, "utf8");
115
+ }
116
+ if (ArrayBuffer.isView(value)) {
117
+ return Buffer.from(value.buffer, value.byteOffset, value.byteLength);
118
+ }
119
+ return Buffer.from(value);
120
+ }
@@ -0,0 +1,26 @@
1
+ import { OperationCommand } from "../../operation-command.js";
2
+ export default class MailboxBatchDeleteMessagesCommand extends OperationCommand {
3
+ static description: "Batch delete mailbox messages";
4
+ static operation: {
5
+ readonly bodyKind: "json";
6
+ readonly command: "mailbox:batch-delete-messages";
7
+ readonly description: "Batch delete mailbox messages";
8
+ readonly headerParams: readonly [];
9
+ readonly method: "post";
10
+ readonly operationId: "mailboxBatchDeleteMessages";
11
+ readonly path: "/mailbox/messages:batch-delete";
12
+ readonly pathParams: readonly [];
13
+ readonly queryParams: readonly [{
14
+ readonly name: "mailbox_id";
15
+ readonly required: false;
16
+ readonly schema: {
17
+ readonly type: "string";
18
+ };
19
+ }];
20
+ readonly responseKind: "json";
21
+ readonly requestBodyRequired: false;
22
+ readonly requiredKeyKind: "mailbox";
23
+ readonly surface: "mailbox";
24
+ };
25
+ }
26
+ //# sourceMappingURL=batch-delete-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batch-delete-messages.d.ts","sourceRoot":"","sources":["../../../src/commands/mailbox/batch-delete-messages.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,MAAM,CAAC,OAAO,OAAO,iCAAkC,SAAQ,gBAAgB;IAC7E,MAAM,CAAC,WAAW,kCAAqD;IACvE,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;MAAyC;CAC1D"}
@@ -0,0 +1,7 @@
1
+ // This file is generated by scripts/generate-cli.mjs
2
+ import { operations } from "../../generated/operations.js";
3
+ import { OperationCommand } from "../../operation-command.js";
4
+ export default class MailboxBatchDeleteMessagesCommand extends OperationCommand {
5
+ static description = operations.mailboxBatchDeleteMessages.description;
6
+ static operation = operations.mailboxBatchDeleteMessages;
7
+ }
@@ -0,0 +1,26 @@
1
+ import { OperationCommand } from "../../operation-command.js";
2
+ export default class MailboxBatchGetMessagesCommand extends OperationCommand {
3
+ static description: "Batch get mailbox messages";
4
+ static operation: {
5
+ readonly bodyKind: "json";
6
+ readonly command: "mailbox:batch-get-messages";
7
+ readonly description: "Batch get mailbox messages";
8
+ readonly headerParams: readonly [];
9
+ readonly method: "post";
10
+ readonly operationId: "mailboxBatchGetMessages";
11
+ readonly path: "/mailbox/messages:batch-get";
12
+ readonly pathParams: readonly [];
13
+ readonly queryParams: readonly [{
14
+ readonly name: "mailbox_id";
15
+ readonly required: false;
16
+ readonly schema: {
17
+ readonly type: "string";
18
+ };
19
+ }];
20
+ readonly responseKind: "json";
21
+ readonly requestBodyRequired: false;
22
+ readonly requiredKeyKind: "mailbox";
23
+ readonly surface: "mailbox";
24
+ };
25
+ }
26
+ //# sourceMappingURL=batch-get-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batch-get-messages.d.ts","sourceRoot":"","sources":["../../../src/commands/mailbox/batch-get-messages.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,MAAM,CAAC,OAAO,OAAO,8BAA+B,SAAQ,gBAAgB;IAC1E,MAAM,CAAC,WAAW,+BAAkD;IACpE,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;MAAsC;CACvD"}
@@ -0,0 +1,7 @@
1
+ // This file is generated by scripts/generate-cli.mjs
2
+ import { operations } from "../../generated/operations.js";
3
+ import { OperationCommand } from "../../operation-command.js";
4
+ export default class MailboxBatchGetMessagesCommand extends OperationCommand {
5
+ static description = operations.mailboxBatchGetMessages.description;
6
+ static operation = operations.mailboxBatchGetMessages;
7
+ }
@@ -0,0 +1,26 @@
1
+ import { OperationCommand } from "../../operation-command.js";
2
+ export default class MailboxBatchUpdateMessagesCommand extends OperationCommand {
3
+ static description: "Batch update mailbox messages";
4
+ static operation: {
5
+ readonly bodyKind: "json";
6
+ readonly command: "mailbox:batch-update-messages";
7
+ readonly description: "Batch update mailbox messages";
8
+ readonly headerParams: readonly [];
9
+ readonly method: "post";
10
+ readonly operationId: "mailboxBatchUpdateMessages";
11
+ readonly path: "/mailbox/messages:batch-update";
12
+ readonly pathParams: readonly [];
13
+ readonly queryParams: readonly [{
14
+ readonly name: "mailbox_id";
15
+ readonly required: false;
16
+ readonly schema: {
17
+ readonly type: "string";
18
+ };
19
+ }];
20
+ readonly responseKind: "json";
21
+ readonly requestBodyRequired: false;
22
+ readonly requiredKeyKind: "mailbox";
23
+ readonly surface: "mailbox";
24
+ };
25
+ }
26
+ //# sourceMappingURL=batch-update-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batch-update-messages.d.ts","sourceRoot":"","sources":["../../../src/commands/mailbox/batch-update-messages.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,MAAM,CAAC,OAAO,OAAO,iCAAkC,SAAQ,gBAAgB;IAC7E,MAAM,CAAC,WAAW,kCAAqD;IACvE,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;MAAyC;CAC1D"}
@@ -0,0 +1,7 @@
1
+ // This file is generated by scripts/generate-cli.mjs
2
+ import { operations } from "../../generated/operations.js";
3
+ import { OperationCommand } from "../../operation-command.js";
4
+ export default class MailboxBatchUpdateMessagesCommand extends OperationCommand {
5
+ static description = operations.mailboxBatchUpdateMessages.description;
6
+ static operation = operations.mailboxBatchUpdateMessages;
7
+ }
@@ -0,0 +1,142 @@
1
+ import { OperationCommand } from "../../operation-command.js";
2
+ export default class MailboxCountMessagesCommand extends OperationCommand {
3
+ static description: "Count mailbox messages";
4
+ static operation: {
5
+ readonly bodyKind: "none";
6
+ readonly command: "mailbox:count-messages";
7
+ readonly description: "Count mailbox messages";
8
+ readonly headerParams: readonly [];
9
+ readonly method: "get";
10
+ readonly operationId: "mailboxCountMessages";
11
+ readonly path: "/mailbox/messages/count";
12
+ readonly pathParams: readonly [];
13
+ readonly queryParams: readonly [{
14
+ readonly name: "folder_id";
15
+ readonly required: false;
16
+ readonly schema: {
17
+ readonly type: "string";
18
+ };
19
+ }, {
20
+ readonly name: "thread_id";
21
+ readonly required: false;
22
+ readonly schema: {
23
+ readonly type: "string";
24
+ };
25
+ }, {
26
+ readonly name: "q";
27
+ readonly required: false;
28
+ readonly schema: {
29
+ readonly type: "string";
30
+ };
31
+ }, {
32
+ readonly name: "from";
33
+ readonly required: false;
34
+ readonly schema: {
35
+ readonly type: "string";
36
+ };
37
+ }, {
38
+ readonly name: "to";
39
+ readonly required: false;
40
+ readonly schema: {
41
+ readonly type: "string";
42
+ };
43
+ }, {
44
+ readonly name: "cc";
45
+ readonly required: false;
46
+ readonly schema: {
47
+ readonly type: "string";
48
+ };
49
+ }, {
50
+ readonly name: "bcc";
51
+ readonly required: false;
52
+ readonly schema: {
53
+ readonly type: "string";
54
+ };
55
+ }, {
56
+ readonly name: "subject";
57
+ readonly required: false;
58
+ readonly schema: {
59
+ readonly type: "string";
60
+ };
61
+ }, {
62
+ readonly name: "body";
63
+ readonly required: false;
64
+ readonly schema: {
65
+ readonly type: "string";
66
+ };
67
+ }, {
68
+ readonly name: "header_name";
69
+ readonly required: false;
70
+ readonly schema: {
71
+ readonly type: "string";
72
+ };
73
+ }, {
74
+ readonly name: "header_value";
75
+ readonly required: false;
76
+ readonly schema: {
77
+ readonly type: "string";
78
+ };
79
+ }, {
80
+ readonly name: "min_size_bytes";
81
+ readonly required: false;
82
+ readonly schema: {
83
+ readonly type: "integer";
84
+ readonly minimum: 0;
85
+ };
86
+ }, {
87
+ readonly name: "max_size_bytes";
88
+ readonly required: false;
89
+ readonly schema: {
90
+ readonly type: "integer";
91
+ readonly minimum: 0;
92
+ };
93
+ }, {
94
+ readonly name: "keyword";
95
+ readonly required: false;
96
+ readonly schema: {
97
+ readonly type: "string";
98
+ };
99
+ }, {
100
+ readonly name: "not_keyword";
101
+ readonly required: false;
102
+ readonly schema: {
103
+ readonly type: "string";
104
+ };
105
+ }, {
106
+ readonly name: "after";
107
+ readonly required: false;
108
+ readonly schema: {
109
+ readonly type: "string";
110
+ };
111
+ }, {
112
+ readonly name: "before";
113
+ readonly required: false;
114
+ readonly schema: {
115
+ readonly type: "string";
116
+ };
117
+ }, {
118
+ readonly name: "has_attachment";
119
+ readonly required: false;
120
+ readonly schema: {
121
+ readonly type: "boolean";
122
+ };
123
+ }, {
124
+ readonly name: "is_unread";
125
+ readonly required: false;
126
+ readonly schema: {
127
+ readonly type: "boolean";
128
+ };
129
+ }, {
130
+ readonly name: "mailbox_id";
131
+ readonly required: false;
132
+ readonly schema: {
133
+ readonly type: "string";
134
+ };
135
+ }];
136
+ readonly responseKind: "json";
137
+ readonly requestBodyRequired: false;
138
+ readonly requiredKeyKind: "mailbox";
139
+ readonly surface: "mailbox";
140
+ };
141
+ }
142
+ //# sourceMappingURL=count-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"count-messages.d.ts","sourceRoot":"","sources":["../../../src/commands/mailbox/count-messages.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,MAAM,CAAC,OAAO,OAAO,2BAA4B,SAAQ,gBAAgB;IACvE,MAAM,CAAC,WAAW,2BAA+C;IACjE,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAmC;CACpD"}
@@ -0,0 +1,7 @@
1
+ // This file is generated by scripts/generate-cli.mjs
2
+ import { operations } from "../../generated/operations.js";
3
+ import { OperationCommand } from "../../operation-command.js";
4
+ export default class MailboxCountMessagesCommand extends OperationCommand {
5
+ static description = operations.mailboxCountMessages.description;
6
+ static operation = operations.mailboxCountMessages;
7
+ }
@@ -0,0 +1,26 @@
1
+ import { OperationCommand } from "../../operation-command.js";
2
+ export default class MailboxCreateFolderCommand extends OperationCommand {
3
+ static description: "Create a mailbox folder";
4
+ static operation: {
5
+ readonly bodyKind: "json";
6
+ readonly command: "mailbox:create-folder";
7
+ readonly description: "Create a mailbox folder";
8
+ readonly headerParams: readonly [];
9
+ readonly method: "post";
10
+ readonly operationId: "mailboxCreateFolder";
11
+ readonly path: "/mailbox/folders";
12
+ readonly pathParams: readonly [];
13
+ readonly queryParams: readonly [{
14
+ readonly name: "mailbox_id";
15
+ readonly required: false;
16
+ readonly schema: {
17
+ readonly type: "string";
18
+ };
19
+ }];
20
+ readonly responseKind: "json";
21
+ readonly requestBodyRequired: false;
22
+ readonly requiredKeyKind: "mailbox";
23
+ readonly surface: "mailbox";
24
+ };
25
+ }
26
+ //# sourceMappingURL=create-folder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-folder.d.ts","sourceRoot":"","sources":["../../../src/commands/mailbox/create-folder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,gBAAgB;IACtE,MAAM,CAAC,WAAW,4BAA8C;IAChE,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;MAAkC;CACnD"}
@@ -0,0 +1,7 @@
1
+ // This file is generated by scripts/generate-cli.mjs
2
+ import { operations } from "../../generated/operations.js";
3
+ import { OperationCommand } from "../../operation-command.js";
4
+ export default class MailboxCreateFolderCommand extends OperationCommand {
5
+ static description = operations.mailboxCreateFolder.description;
6
+ static operation = operations.mailboxCreateFolder;
7
+ }
@@ -0,0 +1,38 @@
1
+ import { OperationCommand } from "../../operation-command.js";
2
+ export default class MailboxDeleteFolderCommand extends OperationCommand {
3
+ static description: "Delete a mailbox folder";
4
+ static operation: {
5
+ readonly bodyKind: "none";
6
+ readonly command: "mailbox:delete-folder";
7
+ readonly description: "Delete a mailbox folder";
8
+ readonly headerParams: readonly [{
9
+ readonly name: "If-Match";
10
+ readonly required: false;
11
+ readonly schema: {
12
+ readonly type: "string";
13
+ };
14
+ }];
15
+ readonly method: "delete";
16
+ readonly operationId: "mailboxDeleteFolder";
17
+ readonly path: "/mailbox/folders/{folder_id}";
18
+ readonly pathParams: readonly [{
19
+ readonly name: "folder_id";
20
+ readonly required: true;
21
+ readonly schema: {
22
+ readonly type: "string";
23
+ };
24
+ }];
25
+ readonly queryParams: readonly [{
26
+ readonly name: "mailbox_id";
27
+ readonly required: false;
28
+ readonly schema: {
29
+ readonly type: "string";
30
+ };
31
+ }];
32
+ readonly responseKind: "json";
33
+ readonly requestBodyRequired: false;
34
+ readonly requiredKeyKind: "mailbox";
35
+ readonly surface: "mailbox";
36
+ };
37
+ }
38
+ //# sourceMappingURL=delete-folder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-folder.d.ts","sourceRoot":"","sources":["../../../src/commands/mailbox/delete-folder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,gBAAgB;IACtE,MAAM,CAAC,WAAW,4BAA8C;IAChE,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAkC;CACnD"}
@@ -0,0 +1,7 @@
1
+ // This file is generated by scripts/generate-cli.mjs
2
+ import { operations } from "../../generated/operations.js";
3
+ import { OperationCommand } from "../../operation-command.js";
4
+ export default class MailboxDeleteFolderCommand extends OperationCommand {
5
+ static description = operations.mailboxDeleteFolder.description;
6
+ static operation = operations.mailboxDeleteFolder;
7
+ }
@@ -0,0 +1,44 @@
1
+ import { OperationCommand } from "../../operation-command.js";
2
+ export default class MailboxDeleteMessageCommand extends OperationCommand {
3
+ static description: "Delete a mailbox message";
4
+ static operation: {
5
+ readonly bodyKind: "none";
6
+ readonly command: "mailbox:delete-message";
7
+ readonly description: "Delete a mailbox message";
8
+ readonly headerParams: readonly [{
9
+ readonly name: "If-Match";
10
+ readonly required: false;
11
+ readonly schema: {
12
+ readonly type: "string";
13
+ };
14
+ }];
15
+ readonly method: "delete";
16
+ readonly operationId: "mailboxDeleteMessage";
17
+ readonly path: "/mailbox/messages/{message_id}";
18
+ readonly pathParams: readonly [{
19
+ readonly name: "message_id";
20
+ readonly required: true;
21
+ readonly schema: {
22
+ readonly type: "string";
23
+ };
24
+ }];
25
+ readonly queryParams: readonly [{
26
+ readonly name: "permanent";
27
+ readonly required: false;
28
+ readonly schema: {
29
+ readonly type: "boolean";
30
+ };
31
+ }, {
32
+ readonly name: "mailbox_id";
33
+ readonly required: false;
34
+ readonly schema: {
35
+ readonly type: "string";
36
+ };
37
+ }];
38
+ readonly responseKind: "json";
39
+ readonly requestBodyRequired: false;
40
+ readonly requiredKeyKind: "mailbox";
41
+ readonly surface: "mailbox";
42
+ };
43
+ }
44
+ //# sourceMappingURL=delete-message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-message.d.ts","sourceRoot":"","sources":["../../../src/commands/mailbox/delete-message.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,MAAM,CAAC,OAAO,OAAO,2BAA4B,SAAQ,gBAAgB;IACvE,MAAM,CAAC,WAAW,6BAA+C;IACjE,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAmC;CACpD"}
@@ -0,0 +1,7 @@
1
+ // This file is generated by scripts/generate-cli.mjs
2
+ import { operations } from "../../generated/operations.js";
3
+ import { OperationCommand } from "../../operation-command.js";
4
+ export default class MailboxDeleteMessageCommand extends OperationCommand {
5
+ static description = operations.mailboxDeleteMessage.description;
6
+ static operation = operations.mailboxDeleteMessage;
7
+ }
@@ -1,7 +1,8 @@
1
1
  import { OperationCommand } from "../../../operation-command.js";
2
- export default class MailboxFoldersList extends OperationCommand {
2
+ export default class MailboxListFoldersCommand extends OperationCommand {
3
3
  static description: "List mailbox folders";
4
4
  static operation: {
5
+ readonly bodyKind: "none";
5
6
  readonly command: "mailbox:folders:list";
6
7
  readonly description: "List mailbox folders";
7
8
  readonly headerParams: readonly [];
@@ -12,10 +13,25 @@ export default class MailboxFoldersList extends OperationCommand {
12
13
  readonly queryParams: readonly [{
13
14
  readonly name: "cursor";
14
15
  readonly required: false;
16
+ readonly schema: {
17
+ readonly type: "string";
18
+ };
15
19
  }, {
16
20
  readonly name: "limit";
17
21
  readonly required: false;
22
+ readonly schema: {
23
+ readonly type: "integer";
24
+ readonly minimum: 1;
25
+ readonly maximum: 100;
26
+ };
27
+ }, {
28
+ readonly name: "mailbox_id";
29
+ readonly required: false;
30
+ readonly schema: {
31
+ readonly type: "string";
32
+ };
18
33
  }];
34
+ readonly responseKind: "json";
19
35
  readonly requestBodyRequired: false;
20
36
  readonly requiredKeyKind: "mailbox";
21
37
  readonly surface: "mailbox";
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/commands/mailbox/folders/list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,gBAAgB;IAC9D,MAAM,CAAC,WAAW,yBAAoD;IACtE,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;MAAwC;CACzD"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/commands/mailbox/folders/list.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,MAAM,CAAC,OAAO,OAAO,yBAA0B,SAAQ,gBAAgB;IACrE,MAAM,CAAC,WAAW,yBAA6C;IAC/D,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAiC;CAClD"}
@@ -1,6 +1,7 @@
1
- import { curatedOperations } from "../../../generated/operations.js";
1
+ // This file is generated by scripts/generate-cli.mjs
2
+ import { operations } from "../../../generated/operations.js";
2
3
  import { OperationCommand } from "../../../operation-command.js";
3
- export default class MailboxFoldersList extends OperationCommand {
4
- static description = curatedOperations.mailboxListFolders.description;
5
- static operation = curatedOperations.mailboxListFolders;
4
+ export default class MailboxListFoldersCommand extends OperationCommand {
5
+ static description = operations.mailboxListFolders.description;
6
+ static operation = operations.mailboxListFolders;
6
7
  }