@zapier/zapier-sdk-cli 0.62.0 → 0.64.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/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @zapier/zapier-sdk-cli
2
2
 
3
+ ## 0.64.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d09592b: Graduated Triggers and Trigger Inbox methods from the experimental interface to the stable one. Every trigger method (`listTriggers`, `listTriggerInputFields`, `createTriggerInbox`, `ensureTriggerInbox`, `drainTriggerInbox`, `watchTriggerInbox`, the inbox lifecycle methods, and the message lease/ack/release methods) is now available directly from `@zapier/zapier-sdk` and the `zapier-sdk` CLI — no `/experimental` import, `--experimental` flag, or `ZAPIER_EXPERIMENTAL` env var required. On the default MCP server the request/response trigger tools (`create-trigger-inbox`, `list-triggers`, the lease/ack/release tools, etc.) are now listed; the callback-driven `drainTriggerInbox` and `watchTriggerInbox` remain SDK/CLI-only. They stay available via the experimental subpath and `zapier-sdk-experimental` binary for backward compatibility.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [d09592b]
12
+ - @zapier/zapier-sdk-mcp@0.18.0
13
+ - @zapier/zapier-sdk@0.82.0
14
+
15
+ ## 0.63.0
16
+
17
+ ### Minor Changes
18
+
19
+ - d96b5f6: Added `--callback-url` to `zapier-sdk login` and `zapier-sdk signup` for resuming pending non-interactive OAuth flows. Non-interactive login and signup now save pending state and exit immediately; run the same command later with `--callback-url <url>` to complete authentication from the browser callback URL.
20
+
21
+ Login and signup telemetry now includes `used_non_interactive_mode` and `is_headless` on CLI command and auth lifecycle events.
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [d96b5f6]
26
+ - @zapier/zapier-sdk@0.81.1
27
+ - @zapier/zapier-sdk-mcp@0.17.1
28
+
3
29
  ## 0.62.0
4
30
 
5
31
  ### Minor Changes
package/README.md CHANGED
@@ -68,25 +68,25 @@
68
68
  - [`list-table-records`](#list-table-records)
69
69
  - [`list-tables`](#list-tables)
70
70
  - [`update-table-records`](#update-table-records)
71
- - [Triggers (Experimental)](#triggers-experimental)
72
- - [`ack-trigger-inbox-messages`](#ack-trigger-inbox-messages--experimental)
73
- - [`create-trigger-inbox`](#create-trigger-inbox--experimental)
74
- - [`delete-trigger-inbox`](#delete-trigger-inbox--experimental)
75
- - [`drain-trigger-inbox`](#drain-trigger-inbox--experimental)
76
- - [`ensure-trigger-inbox`](#ensure-trigger-inbox--experimental)
77
- - [`get-trigger-inbox`](#get-trigger-inbox--experimental)
78
- - [`get-trigger-input-fields-schema`](#get-trigger-input-fields-schema--experimental)
79
- - [`lease-trigger-inbox-messages`](#lease-trigger-inbox-messages--experimental)
80
- - [`list-trigger-inbox-messages`](#list-trigger-inbox-messages--experimental)
81
- - [`list-trigger-inboxes`](#list-trigger-inboxes--experimental)
82
- - [`list-trigger-input-field-choices`](#list-trigger-input-field-choices--experimental)
83
- - [`list-trigger-input-fields`](#list-trigger-input-fields--experimental)
84
- - [`list-triggers`](#list-triggers--experimental)
85
- - [`pause-trigger-inbox`](#pause-trigger-inbox--experimental)
86
- - [`release-trigger-inbox-messages`](#release-trigger-inbox-messages--experimental)
87
- - [`resume-trigger-inbox`](#resume-trigger-inbox--experimental)
88
- - [`update-trigger-inbox`](#update-trigger-inbox--experimental)
89
- - [`watch-trigger-inbox`](#watch-trigger-inbox--experimental)
71
+ - [Triggers](#triggers)
72
+ - [`ack-trigger-inbox-messages`](#ack-trigger-inbox-messages)
73
+ - [`create-trigger-inbox`](#create-trigger-inbox)
74
+ - [`delete-trigger-inbox`](#delete-trigger-inbox)
75
+ - [`drain-trigger-inbox`](#drain-trigger-inbox)
76
+ - [`ensure-trigger-inbox`](#ensure-trigger-inbox)
77
+ - [`get-trigger-inbox`](#get-trigger-inbox)
78
+ - [`get-trigger-input-fields-schema`](#get-trigger-input-fields-schema)
79
+ - [`lease-trigger-inbox-messages`](#lease-trigger-inbox-messages)
80
+ - [`list-trigger-inbox-messages`](#list-trigger-inbox-messages)
81
+ - [`list-trigger-inboxes`](#list-trigger-inboxes)
82
+ - [`list-trigger-input-field-choices`](#list-trigger-input-field-choices)
83
+ - [`list-trigger-input-fields`](#list-trigger-input-fields)
84
+ - [`list-triggers`](#list-triggers)
85
+ - [`pause-trigger-inbox`](#pause-trigger-inbox)
86
+ - [`release-trigger-inbox-messages`](#release-trigger-inbox-messages)
87
+ - [`resume-trigger-inbox`](#resume-trigger-inbox)
88
+ - [`update-trigger-inbox`](#update-trigger-inbox)
89
+ - [`watch-trigger-inbox`](#watch-trigger-inbox)
90
90
  - [Utilities](#utilities)
91
91
  - [`add`](#add)
92
92
  - [`build-manifest`](#build-manifest)
@@ -209,11 +209,12 @@ Log in to Zapier to access your account
209
209
  | `--use-approvals` | `boolean` | ❌ | — | — | Require approvals for actions performed with these credentials |
210
210
  | `--non-interactive` | `boolean` | ❌ | — | — | Skip interactive prompts. Uses defaults where possible; errors instead of prompting when input is required. Useful in CI, piped output, or environments where TTY detection is unreliable. |
211
211
  | `--headless` | `boolean` | ❌ | — | — | Use when logging in from a machine that has no browser. Prints a login link to open elsewhere, then accepts the pasted loopback callback URL. |
212
+ | `--callback-url` | `string` | ❌ | — | — | Resume a pending non-interactive login with the final OAuth callback URL from your browser. |
212
213
 
213
214
  **Usage:**
214
215
 
215
216
  ```bash
216
- npx zapier-sdk login [--name] [--timeout] [--use-approvals] [--non-interactive] [--headless]
217
+ npx zapier-sdk login [--name] [--timeout] [--use-approvals] [--non-interactive] [--headless] [--callback-url]
217
218
  ```
218
219
 
219
220
  #### `logout`
@@ -238,11 +239,12 @@ Set up Zapier account access and SDK credentials
238
239
  | `--use-approvals` | `boolean` | ❌ | — | — | Require approvals for actions performed with these credentials |
239
240
  | `--non-interactive` | `boolean` | ❌ | — | — | Skip interactive prompts. Uses defaults where possible; errors instead of prompting when input is required. Useful in CI, piped output, or environments where TTY detection is unreliable. |
240
241
  | `--headless` | `boolean` | ❌ | — | — | Use when signing up from a machine that has no browser. Prints a signup link to open elsewhere, then accepts the pasted loopback callback URL. |
242
+ | `--callback-url` | `string` | ❌ | — | — | Resume a pending non-interactive signup with the final OAuth callback URL from your browser. |
241
243
 
242
244
  **Usage:**
243
245
 
244
246
  ```bash
245
- npx zapier-sdk signup [--timeout] [--use-approvals] [--non-interactive] [--headless]
247
+ npx zapier-sdk signup [--timeout] [--use-approvals] [--non-interactive] [--headless] [--callback-url]
246
248
  ```
247
249
 
248
250
  ### Actions
@@ -1225,11 +1227,9 @@ Update one or more records in a table
1225
1227
  npx zapier-sdk update-table-records <table> <records> [--key-mode]
1226
1228
  ```
1227
1229
 
1228
- ### Triggers (Experimental)
1230
+ ### Triggers
1229
1231
 
1230
- > ℹ️ **Experimental.** Run commands via the `zapier-sdk-experimental` binary, pass `--experimental` to `zapier-sdk`, or set `ZAPIER_EXPERIMENTAL=true` in the environment. Flags and behavior may change between versions.
1231
-
1232
- #### `ack-trigger-inbox-messages` 🧪 _experimental_
1232
+ #### `ack-trigger-inbox-messages`
1233
1233
 
1234
1234
  Acknowledge messages from a lease. Acked messages are removed from the inbox; unacked ones return to the available pool when the lease expires.
1235
1235
 
@@ -1247,7 +1247,7 @@ Acknowledge messages from a lease. Acked messages are removed from the inbox; un
1247
1247
  npx zapier-sdk ack-trigger-inbox-messages <inbox> <lease> [--messages]
1248
1248
  ```
1249
1249
 
1250
- #### `create-trigger-inbox` 🧪 _experimental_
1250
+ #### `create-trigger-inbox`
1251
1251
 
1252
1252
  Create a new trigger inbox subscription. Always creates a new inbox; use ensureTriggerInbox for get-or-create on a stable key.
1253
1253
 
@@ -1268,7 +1268,7 @@ Create a new trigger inbox subscription. Always creates a new inbox; use ensureT
1268
1268
  npx zapier-sdk create-trigger-inbox <app> <action> [--key] [--connection] [--inputs] [--notification-url]
1269
1269
  ```
1270
1270
 
1271
- #### `delete-trigger-inbox` 🧪 _experimental_
1271
+ #### `delete-trigger-inbox`
1272
1272
 
1273
1273
  Mark a trigger inbox for deletion
1274
1274
 
@@ -1284,7 +1284,7 @@ Mark a trigger inbox for deletion
1284
1284
  npx zapier-sdk delete-trigger-inbox <inbox>
1285
1285
  ```
1286
1286
 
1287
- #### `drain-trigger-inbox` 🧪 _experimental_
1287
+ #### `drain-trigger-inbox`
1288
1288
 
1289
1289
  Drain an existing trigger inbox: lease currently-available messages, process each via onMessage, return when the inbox is empty, maxMessages is reached, or the abort signal fires.
1290
1290
 
@@ -1309,7 +1309,7 @@ Drain an existing trigger inbox: lease currently-available messages, process eac
1309
1309
  npx zapier-sdk drain-trigger-inbox <inbox> [--concurrency] [--lease-limit] [--lease-seconds] [--release-on-error] [--continue-on-error] [--max-messages] [--exec] [--exec-shell] [--json]
1310
1310
  ```
1311
1311
 
1312
- #### `ensure-trigger-inbox` 🧪 _experimental_
1312
+ #### `ensure-trigger-inbox`
1313
1313
 
1314
1314
  Get-or-create a trigger inbox by key. Idempotent on (user, account, key): returns the existing inbox if a matching subscription is registered, creates a new one otherwise. Throws ZapierConflictError if the key exists with a different subscription.
1315
1315
 
@@ -1330,7 +1330,7 @@ Get-or-create a trigger inbox by key. Idempotent on (user, account, key): return
1330
1330
  npx zapier-sdk ensure-trigger-inbox <key> <app> <action> [--connection] [--inputs] [--notification-url]
1331
1331
  ```
1332
1332
 
1333
- #### `get-trigger-inbox` 🧪 _experimental_
1333
+ #### `get-trigger-inbox`
1334
1334
 
1335
1335
  Get details of a trigger inbox by ID
1336
1336
 
@@ -1346,7 +1346,7 @@ Get details of a trigger inbox by ID
1346
1346
  npx zapier-sdk get-trigger-inbox <inbox>
1347
1347
  ```
1348
1348
 
1349
- #### `get-trigger-input-fields-schema` 🧪 _experimental_
1349
+ #### `get-trigger-input-fields-schema`
1350
1350
 
1351
1351
  Get the JSON Schema representation of input fields for a trigger. Returns a JSON Schema object describing the structure, types, and validation rules for the trigger's input parameters.
1352
1352
 
@@ -1365,7 +1365,7 @@ Get the JSON Schema representation of input fields for a trigger. Returns a JSON
1365
1365
  npx zapier-sdk get-trigger-input-fields-schema <app> <action> [--connection] [--inputs]
1366
1366
  ```
1367
1367
 
1368
- #### `lease-trigger-inbox-messages` 🧪 _experimental_
1368
+ #### `lease-trigger-inbox-messages`
1369
1369
 
1370
1370
  Lease up to N messages from a trigger inbox. Returns messages plus a lease ID; ack within the lease window to remove from the inbox.
1371
1371
 
@@ -1383,7 +1383,7 @@ Lease up to N messages from a trigger inbox. Returns messages plus a lease ID; a
1383
1383
  npx zapier-sdk lease-trigger-inbox-messages <inbox> [--lease-limit] [--lease-seconds]
1384
1384
  ```
1385
1385
 
1386
- #### `list-trigger-inbox-messages` 🧪 _experimental_
1386
+ #### `list-trigger-inbox-messages`
1387
1387
 
1388
1388
  List messages in a trigger inbox (no payload, status-only)
1389
1389
 
@@ -1402,7 +1402,7 @@ List messages in a trigger inbox (no payload, status-only)
1402
1402
  npx zapier-sdk list-trigger-inbox-messages <inbox> [--page-size] [--max-items] [--cursor]
1403
1403
  ```
1404
1404
 
1405
- #### `list-trigger-inboxes` 🧪 _experimental_
1405
+ #### `list-trigger-inboxes`
1406
1406
 
1407
1407
  List all trigger inboxes for the authenticated user
1408
1408
 
@@ -1422,7 +1422,7 @@ List all trigger inboxes for the authenticated user
1422
1422
  npx zapier-sdk list-trigger-inboxes [--key] [--status] [--page-size] [--max-items] [--cursor]
1423
1423
  ```
1424
1424
 
1425
- #### `list-trigger-input-field-choices` 🧪 _experimental_
1425
+ #### `list-trigger-input-field-choices`
1426
1426
 
1427
1427
  Get the available choices for a dynamic dropdown input field on a trigger
1428
1428
 
@@ -1446,7 +1446,7 @@ Get the available choices for a dynamic dropdown input field on a trigger
1446
1446
  npx zapier-sdk list-trigger-input-field-choices <app> <action> <input-field> [--connection] [--inputs] [--page] [--page-size] [--max-items] [--cursor]
1447
1447
  ```
1448
1448
 
1449
- #### `list-trigger-input-fields` 🧪 _experimental_
1449
+ #### `list-trigger-input-fields`
1450
1450
 
1451
1451
  Get the input fields required for a specific trigger
1452
1452
 
@@ -1468,7 +1468,7 @@ Get the input fields required for a specific trigger
1468
1468
  npx zapier-sdk list-trigger-input-fields <app> <action> [--connection] [--inputs] [--page-size] [--max-items] [--cursor]
1469
1469
  ```
1470
1470
 
1471
- #### `list-triggers` 🧪 _experimental_
1471
+ #### `list-triggers`
1472
1472
 
1473
1473
  List all triggers for a specific app
1474
1474
 
@@ -1487,7 +1487,7 @@ List all triggers for a specific app
1487
1487
  npx zapier-sdk list-triggers <app> [--page-size] [--max-items] [--cursor]
1488
1488
  ```
1489
1489
 
1490
- #### `pause-trigger-inbox` 🧪 _experimental_
1490
+ #### `pause-trigger-inbox`
1491
1491
 
1492
1492
  Pause a trigger inbox; events stop being collected
1493
1493
 
@@ -1503,7 +1503,7 @@ Pause a trigger inbox; events stop being collected
1503
1503
  npx zapier-sdk pause-trigger-inbox <inbox>
1504
1504
  ```
1505
1505
 
1506
- #### `release-trigger-inbox-messages` 🧪 _experimental_
1506
+ #### `release-trigger-inbox-messages`
1507
1507
 
1508
1508
  Release messages from a lease back to the inbox without acknowledging them. Released messages become immediately available for re-leasing. The lease attempt still counts against the per-message lease limit; releasing does not refund the attempt.
1509
1509
 
@@ -1521,7 +1521,7 @@ Release messages from a lease back to the inbox without acknowledging them. Rele
1521
1521
  npx zapier-sdk release-trigger-inbox-messages <inbox> <lease> [--messages]
1522
1522
  ```
1523
1523
 
1524
- #### `resume-trigger-inbox` 🧪 _experimental_
1524
+ #### `resume-trigger-inbox`
1525
1525
 
1526
1526
  Resume a paused trigger inbox; events resume being collected
1527
1527
 
@@ -1537,7 +1537,7 @@ Resume a paused trigger inbox; events resume being collected
1537
1537
  npx zapier-sdk resume-trigger-inbox <inbox>
1538
1538
  ```
1539
1539
 
1540
- #### `update-trigger-inbox` 🧪 _experimental_
1540
+ #### `update-trigger-inbox`
1541
1541
 
1542
1542
  Update settings on an existing trigger inbox
1543
1543
 
@@ -1554,7 +1554,7 @@ Update settings on an existing trigger inbox
1554
1554
  npx zapier-sdk update-trigger-inbox <inbox> [--notification-url]
1555
1555
  ```
1556
1556
 
1557
- #### `watch-trigger-inbox` 🧪 _experimental_
1557
+ #### `watch-trigger-inbox`
1558
1558
 
1559
1559
  Continuously consume a trigger inbox: drain currently-available messages via onMessage, then subscribe to SSE notifications for new arrivals until aborted. A periodic safety drain runs every maxDrainIntervalSeconds (default: 300) to guarantee forward progress if SSE events are missed. Resolves cleanly on signal abort or ZapierAbortDrainSignal from a handler. Transient drain failures (5xx, 429, network blips) retry indefinitely with bounded backoff until they succeed or the watch is aborted; it rejects on a fail-fast handler error, an initialization_failure, or a permanent HTTP error. Real-time wake-up health is reported on stderr: a warning when wake-ups pause and the watch falls back to the safety drain, plus (with debug) transient reconnect notices. Persistent drain failures likewise warn once on stderr while bounded-backoff retries continue. stdout (including --json NDJSON) is unaffected.
1560
1560