resend-cli 2.22.0-preview-inboxes.3 → 2.22.0-preview-inboxes.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resend-cli",
3
- "version": "2.22.0-preview-inboxes.3",
3
+ "version": "2.22.0-preview-inboxes.5",
4
4
  "description": "The official CLI for Resend",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -46,7 +46,7 @@
46
46
  "esbuild": "0.28.1",
47
47
  "esbuild-wasm": "0.28.0",
48
48
  "picocolors": "1.1.1",
49
- "resend": "6.32.1-preview-inboxes.1"
49
+ "resend": "6.32.1-preview-inboxes.3"
50
50
  },
51
51
  "pkg": {
52
52
  "scripts": [
@@ -137,7 +137,7 @@ Auth resolves: `RESEND_API_KEY` env > config file (`resend login --key`). Use `-
137
137
  | `logs` | list, get, open |
138
138
  | `careers` | list, apply — browse open positions at Resend and apply |
139
139
  | `suppressions` _(beta)_ | list, add, get, delete, batch — requires account enrollment |
140
- | `inboxes` _(beta)_ | create, list, get, update, delete, threads (list, get, update, delete, emails list/get/reply/forward), labels, drafts — requires account enrollment |
140
+ | `inboxes` _(beta)_ | create, list, get, update, delete, threads (list, get, update, delete, emails list/get/reply/forward), labels, drafts, agent — requires account enrollment |
141
141
  | `api-keys` | create, list, update, delete |
142
142
  | `automations` | create, get, list, update, delete, duplicate, stop, open, runs |
143
143
  | `events` | create, get, list, update, delete, send, open |
@@ -184,6 +184,7 @@ non-interactive mode; the email ID comes from `inboxes threads emails list`
184
184
  | `--text <text>` | string | One of text/html | Plain text reply body |
185
185
  | `--html <html>` | string | One of text/html | HTML reply body |
186
186
  | `--subject <subject>` | string | No | Override the reply subject |
187
+ | `--idempotency-key <key>` | string | No | Deduplicate request |
187
188
 
188
189
  **Output:** `{"id":"<uuid>","email_id":"<uuid>","direction":"outbound","from":"<inbox-address>","to":["<recipient>"],"cc":[],"bcc":[],"reply_to":[],"subject":"<subject>"|null,"message_id":"<message-id>"|null,"html":"<html>"|null,"text":"<text>"|null,"attachments":[],"read":true,"received_at":"<date>"}`
189
190
 
@@ -203,6 +204,7 @@ Forward an email to other recipients from the inbox address.
203
204
  | `--text <text>` | string | No | Plain text note to include |
204
205
  | `--html <html>` | string | No | HTML note to include |
205
206
  | `--subject <subject>` | string | No | Override the forwarded subject |
207
+ | `--idempotency-key <key>` | string | No | Deduplicate request |
206
208
 
207
209
  `--to`, `--cc`, and `--bcc` combined cannot exceed 50 recipients.
208
210
 
@@ -357,10 +359,42 @@ body.
357
359
 
358
360
  **Flags:** `--inbox_id <id> --draft_id <id>` — required in non-interactive mode
359
361
 
362
+ | Flag | Type | Required | Description |
363
+ |------|------|----------|-------------|
364
+ | `--idempotency-key <key>` | string | No | Deduplicate request |
365
+
360
366
  **Output:** `{"object":"inbox_draft","id":"<uuid>","thread_id":"<uuid>","email_id":"<uuid>"}`
361
367
 
362
368
  ---
363
369
 
370
+ ## inboxes agent get
371
+
372
+ Retrieve an inbox's agent settings (default subcommand of `resend inboxes agent`).
373
+ An inbox without a configured agent returns empty settings.
374
+
375
+ **Flags:** `--inbox_id <id>` — required in non-interactive mode
376
+
377
+ **Output:** `{"object":"inbox_agent","instructions":"<text>"|null,"tone":"<tone>"|null,"enabled_actions":["draft_reply"]}`
378
+
379
+ ---
380
+
381
+ ## inboxes agent update
382
+
383
+ Update an inbox's agent settings. At least one option is required. Omitted
384
+ fields keep their current value.
385
+
386
+ **Flags:** `--inbox_id <id>` — required in non-interactive mode
387
+
388
+ | Flag | Type | Description |
389
+ |------|------|-------------|
390
+ | `--instructions <text>` | string | Instructions the agent follows (max 4000 chars). Pass `""` to clear them |
391
+ | `--tone <tone>` | string | Tone the agent writes in, e.g. `friendly and concise` (max 64 chars). Pass `""` to clear it |
392
+ | `--enabled_actions <actions...>` | string[] | Replaces the whole set (comma or space-separated). One or more of `draft_reply`, `forward_thread`, `add_labels`, `assign_thread`, `mark_as_spam`, `archive_thread`, `delete_thread`. Pass `""` to disable all actions |
393
+
394
+ **Output:** `{"object":"inbox_agent","id":"<uuid>"}`
395
+
396
+ ---
397
+
364
398
  ## inboxes delete
365
399
 
366
400
  Delete an inbox. Its threads and messages are removed and the address stops