@sendmux/cli 1.0.0 → 1.1.0
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.
- package/LICENSE +21 -0
- package/README.md +73 -5
- package/dist/base-command.d.ts +4 -2
- package/dist/base-command.d.ts.map +1 -1
- package/dist/base-command.js +31 -4
- package/dist/commands/mailbox/batch-delete-messages.d.ts +26 -0
- package/dist/commands/mailbox/batch-delete-messages.d.ts.map +1 -0
- package/dist/commands/mailbox/batch-delete-messages.js +7 -0
- package/dist/commands/mailbox/batch-get-messages.d.ts +26 -0
- package/dist/commands/mailbox/batch-get-messages.d.ts.map +1 -0
- package/dist/commands/mailbox/batch-get-messages.js +7 -0
- package/dist/commands/mailbox/batch-update-messages.d.ts +26 -0
- package/dist/commands/mailbox/batch-update-messages.d.ts.map +1 -0
- package/dist/commands/mailbox/batch-update-messages.js +7 -0
- package/dist/commands/mailbox/count-messages.d.ts +142 -0
- package/dist/commands/mailbox/count-messages.d.ts.map +1 -0
- package/dist/commands/mailbox/count-messages.js +7 -0
- package/dist/commands/mailbox/create-folder.d.ts +26 -0
- package/dist/commands/mailbox/create-folder.d.ts.map +1 -0
- package/dist/commands/mailbox/create-folder.js +7 -0
- package/dist/commands/mailbox/delete-folder.d.ts +38 -0
- package/dist/commands/mailbox/delete-folder.d.ts.map +1 -0
- package/dist/commands/mailbox/delete-folder.js +7 -0
- package/dist/commands/mailbox/delete-message.d.ts +44 -0
- package/dist/commands/mailbox/delete-message.d.ts.map +1 -0
- package/dist/commands/mailbox/delete-message.js +7 -0
- package/dist/commands/mailbox/folders/list.d.ts +17 -1
- package/dist/commands/mailbox/folders/list.d.ts.map +1 -1
- package/dist/commands/mailbox/folders/list.js +5 -4
- package/dist/commands/mailbox/get-changes.d.ts +82 -0
- package/dist/commands/mailbox/get-changes.d.ts.map +1 -0
- package/dist/commands/mailbox/get-changes.js +7 -0
- package/dist/commands/mailbox/get-folder-changes.d.ts +40 -0
- package/dist/commands/mailbox/get-folder-changes.d.ts.map +1 -0
- package/dist/commands/mailbox/get-folder-changes.js +7 -0
- package/dist/commands/mailbox/get-folder.d.ts +38 -0
- package/dist/commands/mailbox/get-folder.d.ts.map +1 -0
- package/dist/commands/mailbox/get-folder.js +7 -0
- package/dist/commands/mailbox/get-identity.d.ts +26 -0
- package/dist/commands/mailbox/get-identity.d.ts.map +1 -0
- package/dist/commands/mailbox/get-identity.js +7 -0
- package/dist/commands/mailbox/get-message-attachment.d.ts +44 -0
- package/dist/commands/mailbox/get-message-attachment.d.ts.map +1 -0
- package/dist/commands/mailbox/get-message-attachment.js +7 -0
- package/dist/commands/mailbox/get-quota-changes.d.ts +40 -0
- package/dist/commands/mailbox/get-quota-changes.d.ts.map +1 -0
- package/dist/commands/mailbox/get-quota-changes.js +7 -0
- package/dist/commands/mailbox/get-session.d.ts +32 -0
- package/dist/commands/mailbox/get-session.d.ts.map +1 -0
- package/dist/commands/mailbox/get-session.js +7 -0
- package/dist/commands/mailbox/get-submission-changes.d.ts +40 -0
- package/dist/commands/mailbox/get-submission-changes.d.ts.map +1 -0
- package/dist/commands/mailbox/get-submission-changes.js +7 -0
- package/dist/commands/mailbox/get-submission.d.ts +38 -0
- package/dist/commands/mailbox/get-submission.d.ts.map +1 -0
- package/dist/commands/mailbox/get-submission.js +7 -0
- package/dist/commands/mailbox/get-thread-content.d.ts +112 -0
- package/dist/commands/mailbox/get-thread-content.d.ts.map +1 -0
- package/dist/commands/mailbox/get-thread-content.js +7 -0
- package/dist/commands/mailbox/get-thread.d.ts +38 -0
- package/dist/commands/mailbox/get-thread.d.ts.map +1 -0
- package/dist/commands/mailbox/get-thread.js +7 -0
- package/dist/commands/mailbox/list-body.d.ts +53 -0
- package/dist/commands/mailbox/list-body.d.ts.map +1 -0
- package/dist/commands/mailbox/list-body.js +7 -0
- package/dist/commands/mailbox/list-content.d.ts +91 -0
- package/dist/commands/mailbox/list-content.d.ts.map +1 -0
- package/dist/commands/mailbox/list-content.js +7 -0
- package/dist/commands/mailbox/list-granted-mailboxes.d.ts +40 -0
- package/dist/commands/mailbox/list-granted-mailboxes.d.ts.map +1 -0
- package/dist/commands/mailbox/list-granted-mailboxes.js +7 -0
- package/dist/commands/mailbox/list-identities.d.ts +40 -0
- package/dist/commands/mailbox/list-identities.d.ts.map +1 -0
- package/dist/commands/mailbox/list-identities.js +7 -0
- package/dist/commands/mailbox/list-quotas.d.ts +80 -0
- package/dist/commands/mailbox/list-quotas.d.ts.map +1 -0
- package/dist/commands/mailbox/list-quotas.js +7 -0
- package/dist/commands/mailbox/list-submissions.d.ts +91 -0
- package/dist/commands/mailbox/list-submissions.d.ts.map +1 -0
- package/dist/commands/mailbox/list-submissions.js +7 -0
- package/dist/commands/mailbox/list-thread-messages.d.ts +53 -0
- package/dist/commands/mailbox/list-thread-messages.d.ts.map +1 -0
- package/dist/commands/mailbox/list-thread-messages.js +7 -0
- package/dist/commands/mailbox/list-threads.d.ts +89 -0
- package/dist/commands/mailbox/list-threads.d.ts.map +1 -0
- package/dist/commands/mailbox/list-threads.js +7 -0
- package/dist/commands/mailbox/list-usage.d.ts +32 -0
- package/dist/commands/mailbox/list-usage.d.ts.map +1 -0
- package/dist/commands/mailbox/list-usage.js +7 -0
- package/dist/commands/mailbox/me/get.d.ts +13 -2
- package/dist/commands/mailbox/me/get.d.ts.map +1 -1
- package/dist/commands/mailbox/me/get.js +5 -4
- package/dist/commands/mailbox/messages/get.d.ts +16 -2
- package/dist/commands/mailbox/messages/get.d.ts.map +1 -1
- package/dist/commands/mailbox/messages/get.js +5 -4
- package/dist/commands/mailbox/messages/list.d.ts +84 -1
- package/dist/commands/mailbox/messages/list.d.ts.map +1 -1
- package/dist/commands/mailbox/messages/list.js +5 -4
- package/dist/commands/mailbox/query-folder-changes.d.ts +40 -0
- package/dist/commands/mailbox/query-folder-changes.d.ts.map +1 -0
- package/dist/commands/mailbox/query-folder-changes.js +7 -0
- package/dist/commands/mailbox/query-message-changes.d.ts +176 -0
- package/dist/commands/mailbox/query-message-changes.d.ts.map +1 -0
- package/dist/commands/mailbox/query-message-changes.js +7 -0
- package/dist/commands/mailbox/search-message-snippets.d.ts +150 -0
- package/dist/commands/mailbox/search-message-snippets.d.ts.map +1 -0
- package/dist/commands/mailbox/search-message-snippets.js +7 -0
- package/dist/commands/mailbox/send-message.d.ts +33 -0
- package/dist/commands/mailbox/send-message.d.ts.map +1 -0
- package/dist/commands/mailbox/send-message.js +7 -0
- package/dist/commands/mailbox/stream-events.d.ts +60 -0
- package/dist/commands/mailbox/stream-events.d.ts.map +1 -0
- package/dist/commands/mailbox/stream-events.js +7 -0
- package/dist/commands/mailbox/update-folder.d.ts +38 -0
- package/dist/commands/mailbox/update-folder.d.ts.map +1 -0
- package/dist/commands/mailbox/update-folder.js +7 -0
- package/dist/commands/mailbox/update-identity.d.ts +26 -0
- package/dist/commands/mailbox/update-identity.d.ts.map +1 -0
- package/dist/commands/mailbox/update-identity.js +7 -0
- package/dist/commands/mailbox/update-message.d.ts +38 -0
- package/dist/commands/mailbox/update-message.d.ts.map +1 -0
- package/dist/commands/mailbox/update-message.js +7 -0
- package/dist/commands/mailbox/upload-attachment.d.ts +32 -0
- package/dist/commands/mailbox/upload-attachment.d.ts.map +1 -0
- package/dist/commands/mailbox/upload-attachment.js +7 -0
- package/dist/commands/management/activate-provider.d.ts +33 -0
- package/dist/commands/management/activate-provider.d.ts.map +1 -0
- package/dist/commands/management/activate-provider.js +7 -0
- package/dist/commands/management/cancel-shared-amazon-ses-limit-request.d.ts +26 -0
- package/dist/commands/management/cancel-shared-amazon-ses-limit-request.d.ts.map +1 -0
- package/dist/commands/management/cancel-shared-amazon-ses-limit-request.js +7 -0
- package/dist/commands/management/check-mailbox-availability.d.ts +26 -0
- package/dist/commands/management/check-mailbox-availability.d.ts.map +1 -0
- package/dist/commands/management/check-mailbox-availability.js +7 -0
- package/dist/commands/management/create-domain.d.ts +27 -0
- package/dist/commands/management/create-domain.d.ts.map +1 -0
- package/dist/commands/management/create-domain.js +7 -0
- package/dist/commands/management/create-mailbox-key.d.ts +33 -0
- package/dist/commands/management/create-mailbox-key.d.ts.map +1 -0
- package/dist/commands/management/create-mailbox-key.js +7 -0
- package/dist/commands/management/create-mailbox.d.ts +27 -0
- package/dist/commands/management/create-mailbox.d.ts.map +1 -0
- package/dist/commands/management/create-mailbox.js +7 -0
- package/dist/commands/management/create-provider.d.ts +27 -0
- package/dist/commands/management/create-provider.d.ts.map +1 -0
- package/dist/commands/management/create-provider.js +7 -0
- package/dist/commands/management/create-shared-amazon-ses-limit-request.d.ts +27 -0
- package/dist/commands/management/create-shared-amazon-ses-limit-request.d.ts.map +1 -0
- package/dist/commands/management/create-shared-amazon-ses-limit-request.js +7 -0
- package/dist/commands/management/create-webhook.d.ts +27 -0
- package/dist/commands/management/create-webhook.d.ts.map +1 -0
- package/dist/commands/management/create-webhook.js +7 -0
- package/dist/commands/management/deactivate-provider.d.ts +33 -0
- package/dist/commands/management/deactivate-provider.d.ts.map +1 -0
- package/dist/commands/management/deactivate-provider.js +7 -0
- package/dist/commands/management/delete-domain.d.ts +26 -0
- package/dist/commands/management/delete-domain.d.ts.map +1 -0
- package/dist/commands/management/delete-domain.js +7 -0
- package/dist/commands/management/delete-mailbox-key.d.ts +32 -0
- package/dist/commands/management/delete-mailbox-key.d.ts.map +1 -0
- package/dist/commands/management/delete-mailbox-key.js +7 -0
- package/dist/commands/management/delete-mailbox.d.ts +26 -0
- package/dist/commands/management/delete-mailbox.d.ts.map +1 -0
- package/dist/commands/management/delete-mailbox.js +7 -0
- package/dist/commands/management/delete-provider.d.ts +26 -0
- package/dist/commands/management/delete-provider.d.ts.map +1 -0
- package/dist/commands/management/delete-provider.js +7 -0
- package/dist/commands/management/delete-webhook.d.ts +26 -0
- package/dist/commands/management/delete-webhook.d.ts.map +1 -0
- package/dist/commands/management/delete-webhook.js +7 -0
- package/dist/commands/management/domains/get.d.ts +9 -1
- package/dist/commands/management/domains/get.d.ts.map +1 -1
- package/dist/commands/management/domains/get.js +5 -4
- package/dist/commands/management/domains/list.d.ts +11 -1
- package/dist/commands/management/domains/list.d.ts.map +1 -1
- package/dist/commands/management/domains/list.js +5 -4
- package/dist/commands/management/get-delivery-payload.d.ts +32 -0
- package/dist/commands/management/get-delivery-payload.d.ts.map +1 -0
- package/dist/commands/management/get-delivery-payload.js +7 -0
- package/dist/commands/management/get-domain-filters.d.ts +32 -0
- package/dist/commands/management/get-domain-filters.d.ts.map +1 -0
- package/dist/commands/management/get-domain-filters.js +7 -0
- package/dist/commands/management/get-domain-zone-file.d.ts +26 -0
- package/dist/commands/management/get-domain-zone-file.d.ts.map +1 -0
- package/dist/commands/management/get-domain-zone-file.js +7 -0
- package/dist/commands/management/get-email-log.d.ts +32 -0
- package/dist/commands/management/get-email-log.d.ts.map +1 -0
- package/dist/commands/management/get-email-log.js +7 -0
- package/dist/commands/management/get-email-metrics.d.ts +52 -0
- package/dist/commands/management/get-email-metrics.d.ts.map +1 -0
- package/dist/commands/management/get-email-metrics.js +7 -0
- package/dist/commands/management/get-inbox-log.d.ts +26 -0
- package/dist/commands/management/get-inbox-log.d.ts.map +1 -0
- package/dist/commands/management/get-inbox-log.js +7 -0
- package/dist/commands/management/get-mailbox-filters.d.ts +32 -0
- package/dist/commands/management/get-mailbox-filters.d.ts.map +1 -0
- package/dist/commands/management/get-mailbox-filters.js +7 -0
- package/dist/commands/management/get-mailbox.d.ts +32 -0
- package/dist/commands/management/get-mailbox.d.ts.map +1 -0
- package/dist/commands/management/get-mailbox.js +7 -0
- package/dist/commands/management/get-provider-limits.d.ts +20 -0
- package/dist/commands/management/get-provider-limits.d.ts.map +1 -0
- package/dist/commands/management/get-provider-limits.js +7 -0
- package/dist/commands/management/get-provider-stats.d.ts +20 -0
- package/dist/commands/management/get-provider-stats.d.ts.map +1 -0
- package/dist/commands/management/get-provider-stats.js +7 -0
- package/dist/commands/management/get-provider-usage.d.ts +20 -0
- package/dist/commands/management/get-provider-usage.d.ts.map +1 -0
- package/dist/commands/management/get-provider-usage.js +7 -0
- package/dist/commands/management/get-provider.d.ts +32 -0
- package/dist/commands/management/get-provider.d.ts.map +1 -0
- package/dist/commands/management/get-provider.js +7 -0
- package/dist/commands/management/get-shared-amazon-ses-limit-request.d.ts +20 -0
- package/dist/commands/management/get-shared-amazon-ses-limit-request.d.ts.map +1 -0
- package/dist/commands/management/get-shared-amazon-ses-limit-request.js +7 -0
- package/dist/commands/management/get-spend-summary.d.ts +27 -0
- package/dist/commands/management/get-spend-summary.d.ts.map +1 -0
- package/dist/commands/management/get-spend-summary.js +7 -0
- package/dist/commands/management/get-webhook.d.ts +32 -0
- package/dist/commands/management/get-webhook.d.ts.map +1 -0
- package/dist/commands/management/get-webhook.js +7 -0
- package/dist/commands/management/list-balance.d.ts +20 -0
- package/dist/commands/management/list-balance.d.ts.map +1 -0
- package/dist/commands/management/list-balance.js +7 -0
- package/dist/commands/management/list-delivery.d.ts +54 -0
- package/dist/commands/management/list-delivery.d.ts.map +1 -0
- package/dist/commands/management/list-delivery.js +7 -0
- package/dist/commands/management/list-email-logs.d.ts +65 -0
- package/dist/commands/management/list-email-logs.d.ts.map +1 -0
- package/dist/commands/management/list-email-logs.js +7 -0
- package/dist/commands/management/list-inbox-logs.d.ts +65 -0
- package/dist/commands/management/list-inbox-logs.d.ts.map +1 -0
- package/dist/commands/management/list-inbox-logs.js +7 -0
- package/dist/commands/management/list-transactions.d.ts +41 -0
- package/dist/commands/management/list-transactions.d.ts.map +1 -0
- package/dist/commands/management/list-transactions.js +7 -0
- package/dist/commands/management/list-webhooks.d.ts +34 -0
- package/dist/commands/management/list-webhooks.d.ts.map +1 -0
- package/dist/commands/management/list-webhooks.js +7 -0
- package/dist/commands/management/mailboxes/list.d.ts +15 -1
- package/dist/commands/management/mailboxes/list.d.ts.map +1 -1
- package/dist/commands/management/mailboxes/list.js +5 -4
- package/dist/commands/management/providers/list.d.ts +19 -1
- package/dist/commands/management/providers/list.d.ts.map +1 -1
- package/dist/commands/management/providers/list.js +5 -4
- package/dist/commands/management/request-sending-account-limit-increase.d.ts +27 -0
- package/dist/commands/management/request-sending-account-limit-increase.d.ts.map +1 -0
- package/dist/commands/management/request-sending-account-limit-increase.js +7 -0
- package/dist/commands/management/resume-mailbox.d.ts +33 -0
- package/dist/commands/management/resume-mailbox.d.ts.map +1 -0
- package/dist/commands/management/resume-mailbox.js +7 -0
- package/dist/commands/management/rotate-webhook-secret.d.ts +33 -0
- package/dist/commands/management/rotate-webhook-secret.d.ts.map +1 -0
- package/dist/commands/management/rotate-webhook-secret.js +7 -0
- package/dist/commands/management/set-domain-filters.d.ts +32 -0
- package/dist/commands/management/set-domain-filters.d.ts.map +1 -0
- package/dist/commands/management/set-domain-filters.js +7 -0
- package/dist/commands/management/set-mailbox-filters.d.ts +32 -0
- package/dist/commands/management/set-mailbox-filters.d.ts.map +1 -0
- package/dist/commands/management/set-mailbox-filters.js +7 -0
- package/dist/commands/management/suspend-mailbox.d.ts +33 -0
- package/dist/commands/management/suspend-mailbox.d.ts.map +1 -0
- package/dist/commands/management/suspend-mailbox.js +7 -0
- package/dist/commands/management/test-provider.d.ts +33 -0
- package/dist/commands/management/test-provider.d.ts.map +1 -0
- package/dist/commands/management/test-provider.js +7 -0
- package/dist/commands/management/test-webhook.d.ts +33 -0
- package/dist/commands/management/test-webhook.d.ts.map +1 -0
- package/dist/commands/management/test-webhook.js +7 -0
- package/dist/commands/management/update-domain.d.ts +32 -0
- package/dist/commands/management/update-domain.d.ts.map +1 -0
- package/dist/commands/management/update-domain.js +7 -0
- package/dist/commands/management/update-mailbox.d.ts +32 -0
- package/dist/commands/management/update-mailbox.d.ts.map +1 -0
- package/dist/commands/management/update-mailbox.js +7 -0
- package/dist/commands/management/update-provider.d.ts +32 -0
- package/dist/commands/management/update-provider.d.ts.map +1 -0
- package/dist/commands/management/update-provider.js +7 -0
- package/dist/commands/management/update-webhook.d.ts +32 -0
- package/dist/commands/management/update-webhook.d.ts.map +1 -0
- package/dist/commands/management/update-webhook.js +7 -0
- package/dist/commands/management/verify-domain.d.ts +26 -0
- package/dist/commands/management/verify-domain.d.ts.map +1 -0
- package/dist/commands/management/verify-domain.js +7 -0
- package/dist/commands/sending/get-open-api-spec.d.ts +26 -0
- package/dist/commands/sending/get-open-api-spec.d.ts.map +1 -0
- package/dist/commands/sending/get-open-api-spec.js +7 -0
- package/dist/commands/sending/send/batch.d.ts +8 -2
- package/dist/commands/sending/send/batch.d.ts.map +1 -1
- package/dist/commands/sending/send/batch.js +5 -4
- package/dist/commands/sending/send.d.ts +8 -2
- package/dist/commands/sending/send.d.ts.map +1 -1
- package/dist/commands/sending/send.js +5 -4
- package/dist/generated/operations.d.ts +1731 -25
- package/dist/generated/operations.d.ts.map +1 -1
- package/dist/generated/operations.js +2035 -316
- package/dist/key-kind.d.ts +3 -0
- package/dist/key-kind.d.ts.map +1 -1
- package/dist/key-kind.js +13 -1
- package/dist/operation-flags.d.ts +3 -3
- package/dist/operation-flags.d.ts.map +1 -1
- package/dist/operation-flags.js +132 -21
- package/dist/operation-runner.d.ts.map +1 -1
- package/dist/operation-runner.js +65 -7
- package/dist/operation-types.d.ts +21 -2
- package/dist/operation-types.d.ts.map +1 -1
- package/oclif.manifest.json +13569 -200
- package/package.json +3 -2
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,94 @@
|
|
|
1
1
|
# @sendmux/cli
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@sendmux/cli)
|
|
4
|
+
[](https://github.com/Sendmux/sendmux-sdk/actions/workflows/ci.yml)
|
|
5
|
+
[](https://www.npmjs.com/package/@sendmux/cli)
|
|
6
|
+
[](https://github.com/Sendmux/sendmux-sdk/blob/main/LICENSE)
|
|
7
|
+
|
|
3
8
|
Agent-drivable command line interface for Sendmux.
|
|
4
9
|
|
|
5
|
-
|
|
10
|
+
## Documentation
|
|
11
|
+
|
|
12
|
+
- Sendmux docs: [sendmux.ai/docs](https://sendmux.ai/docs)
|
|
13
|
+
- Management API reference: [sendmux.ai/docs/api/introduction](https://sendmux.ai/docs/api/introduction)
|
|
14
|
+
- Mailbox API reference: [sendmux.ai/docs/mailbox-api/introduction](https://sendmux.ai/docs/mailbox-api/introduction)
|
|
15
|
+
- Sending API reference: [sendmux.ai/docs/sending-api/introduction](https://sendmux.ai/docs/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 send-capable `smx_mbx_*` key or owner-approved Sending-resource `smx_agent_*` token for Sending commands.
|
|
23
|
+
- A mailbox-scoped `smx_mbx_*` key or scoped `smx_agent_*` token for Mailbox commands. Agent tokens remain limited by server-side scopes; pre-claim self-registered agent tokens do not include `email.send`.
|
|
24
|
+
|
|
25
|
+
## Installation
|
|
6
26
|
|
|
7
27
|
```sh
|
|
8
28
|
npm install -g @sendmux/cli
|
|
9
29
|
```
|
|
10
30
|
|
|
11
|
-
|
|
31
|
+
The package exposes the `sendmux` binary.
|
|
32
|
+
|
|
33
|
+
## Usage
|
|
34
|
+
|
|
35
|
+
Create profiles for each key type before running API commands.
|
|
12
36
|
|
|
13
37
|
```sh
|
|
14
38
|
sendmux profiles:set default --api-key smx_root_... --default
|
|
15
39
|
sendmux profiles:set mailbox --api-key smx_mbx_...
|
|
40
|
+
sendmux profiles:set sending --api-key smx_mbx_...
|
|
16
41
|
```
|
|
17
42
|
|
|
18
|
-
|
|
43
|
+
Run commands with `--json` for machine-readable output.
|
|
19
44
|
|
|
20
45
|
```sh
|
|
21
|
-
sendmux mailbox:messages:list --profile mailbox --query limit=25 --json
|
|
22
46
|
sendmux management:domains:list --profile default --json
|
|
23
|
-
sendmux
|
|
47
|
+
sendmux mailbox:messages:list --profile mailbox --query limit=25 --json
|
|
48
|
+
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
49
|
```
|
|
25
50
|
|
|
26
51
|
Commands reject mismatched key types before making a network request.
|
|
52
|
+
|
|
53
|
+
## Commands
|
|
54
|
+
|
|
55
|
+
The CLI includes `95` generated API operation commands:
|
|
56
|
+
|
|
57
|
+
- `40` Mailbox commands, including `mailbox:messages:list`, `mailbox:messages:get`, `mailbox:send-message`, and `mailbox:list-granted-mailboxes`.
|
|
58
|
+
- `52` Management commands, including `management:domains:list`, `management:create-mailbox`, `management:get-spend-summary`, and `management:create-webhook`.
|
|
59
|
+
- `3` Sending commands: `sending:get-open-api-spec`, `sending:send`, and `sending:send:batch`.
|
|
60
|
+
- Profile commands: `profiles:list`, `profiles:set`, and `profiles:show`.
|
|
61
|
+
|
|
62
|
+
Use command-level help for required path, query, header, and body fields.
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
sendmux management:domains:get --help
|
|
66
|
+
sendmux sending:send --help
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Global API flags
|
|
70
|
+
|
|
71
|
+
Operation commands support:
|
|
72
|
+
|
|
73
|
+
- `--api-key`
|
|
74
|
+
- `--base-url`
|
|
75
|
+
- `--profile` / `-p`
|
|
76
|
+
- `--body`
|
|
77
|
+
- `--body-file`
|
|
78
|
+
- `--header`
|
|
79
|
+
- `--idempotency-key`
|
|
80
|
+
- `--if-match`
|
|
81
|
+
- `--if-none-match`
|
|
82
|
+
- `--path`
|
|
83
|
+
- `--query`
|
|
84
|
+
- `--json`
|
|
85
|
+
|
|
86
|
+
`--path`, `--query`, and `--header` use `name=value` syntax and can be repeated when the operation accepts multiple values.
|
|
87
|
+
|
|
88
|
+
## Support
|
|
89
|
+
|
|
90
|
+
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.
|
|
91
|
+
|
|
92
|
+
## Licence
|
|
93
|
+
|
|
94
|
+
MIT. See the [licence file](https://github.com/Sendmux/sendmux-sdk/blob/main/LICENSE).
|
package/dist/base-command.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Command } from "@oclif/core";
|
|
2
|
-
import { type ApiKeyKind } from "./key-kind.js";
|
|
2
|
+
import { type ApiKeyKind, type RequiredApiKeyKind } from "./key-kind.js";
|
|
3
3
|
export interface AuthFlags {
|
|
4
4
|
"api-key"?: string;
|
|
5
5
|
"base-url"?: string;
|
|
@@ -18,8 +18,10 @@ export declare const authFlags: {
|
|
|
18
18
|
};
|
|
19
19
|
export declare abstract class SendmuxCommand extends Command {
|
|
20
20
|
static enableJsonFlag: boolean;
|
|
21
|
-
resolveAuth(flags: AuthFlags, expectedKind:
|
|
21
|
+
resolveAuth(flags: AuthFlags, expectedKind: RequiredApiKeyKind): 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,
|
|
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,EAIL,KAAK,UAAU,EACf,KAAK,kBAAkB,EACxB,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,kBAAkB,GAAG,OAAO,CAAC,YAAY,CAAC;IAmD5F,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"}
|
package/dist/base-command.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Command, Flags } from "@oclif/core";
|
|
2
|
-
import { inferApiKeyKind, } from "./key-kind.js";
|
|
2
|
+
import { apiKeyKindLabel, inferApiKeyKind, isApiKeyCompatibleWithKind, } from "./key-kind.js";
|
|
3
3
|
import { readCliConfig } from "./profiles.js";
|
|
4
4
|
export const authFlags = {
|
|
5
5
|
"api-key": Flags.string({
|
|
@@ -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 {
|
|
@@ -76,9 +94,9 @@ export class SendmuxCommand extends Command {
|
|
|
76
94
|
catch (error) {
|
|
77
95
|
this.error(error instanceof Error ? error.message : "Invalid Sendmux API key", { exit: 2 });
|
|
78
96
|
}
|
|
79
|
-
if (
|
|
80
|
-
const expectedLabel = expectedKind
|
|
81
|
-
const actualLabel = apiKeyKind
|
|
97
|
+
if (!isApiKeyCompatibleWithKind(apiKey, expectedKind)) {
|
|
98
|
+
const expectedLabel = apiKeyKindLabel(expectedKind);
|
|
99
|
+
const actualLabel = apiKeyKindLabel(apiKeyKind);
|
|
82
100
|
this.error(`Command requires a ${expectedLabel} API key, but ${source} contains a ${actualLabel} API key.`, {
|
|
83
101
|
exit: 2,
|
|
84
102
|
});
|
|
@@ -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
|
+
}
|