@zapier/zapier-sdk-cli 0.54.2 → 0.55.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 +35 -0
- package/README.md +22 -14
- package/dist/cli.cjs +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/experimental.cjs +1 -1
- package/dist/experimental.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/package.json +1 -1
- package/dist/src/plugins/signup/test-harness.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.55.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8f20472: `watchTriggerInbox` now retries transient drain failures (5xx, 429,
|
|
8
|
+
network blips) indefinitely with bounded backoff instead of rejecting
|
|
9
|
+
on the first error; it still rejects immediately on fail-fast handler
|
|
10
|
+
errors, `initialization_failure`, and permanent HTTP errors. When those
|
|
11
|
+
retries persist long enough to saturate the backoff, it warns once on
|
|
12
|
+
stderr (re-armed on recovery) so a stalled watch isn't silent.
|
|
13
|
+
|
|
14
|
+
New `ApiClient.fetchJsonStream` (with the `JsonSseMessage` type): like
|
|
15
|
+
`fetchStream` but JSON-parses each frame, surfacing a malformed frame
|
|
16
|
+
as `{ parsed: false, data: null, raw }` instead of throwing, so one
|
|
17
|
+
bad frame can't kill a long-lived stream. A non-ok response still
|
|
18
|
+
throws the shared `ZapierError` subclasses before the first frame.
|
|
19
|
+
|
|
20
|
+
Fixed: a fail-fast handler that throws a falsy value (`throw
|
|
21
|
+
undefined`) is no longer silently swallowed, and a handler-thrown
|
|
22
|
+
AbortError now rejects the watch instead of resolving it cleanly.
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [8f20472]
|
|
27
|
+
- @zapier/zapier-sdk@0.70.0
|
|
28
|
+
- @zapier/zapier-sdk-mcp@0.13.28
|
|
29
|
+
|
|
30
|
+
## 0.54.3
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- Updated dependencies [c4df375]
|
|
35
|
+
- @zapier/zapier-sdk@0.69.3
|
|
36
|
+
- @zapier/zapier-sdk-mcp@0.13.27
|
|
37
|
+
|
|
3
38
|
## 0.54.2
|
|
4
39
|
|
|
5
40
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -488,15 +488,16 @@ Create a durable workflow container. Starts disabled with no version; publish a
|
|
|
488
488
|
|
|
489
489
|
**Options:**
|
|
490
490
|
|
|
491
|
-
| Option | Type
|
|
492
|
-
| --------------- |
|
|
493
|
-
| `<name>` | `string`
|
|
494
|
-
| `--description` | `string`
|
|
491
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
492
|
+
| --------------- | --------- | -------- | ------- | --------------- | ----------------------------------------------------------------------------------------------------- |
|
|
493
|
+
| `<name>` | `string` | ✅ | — | — | Workflow name |
|
|
494
|
+
| `--description` | `string` | ❌ | — | — | Optional description for the workflow |
|
|
495
|
+
| `--is_private` | `boolean` | ❌ | — | — | If true, only the creating user can see or manage this workflow. Defaults to false (account-visible). |
|
|
495
496
|
|
|
496
497
|
**Usage:**
|
|
497
498
|
|
|
498
499
|
```bash
|
|
499
|
-
npx zapier-sdk create-workflow <name> [--description]
|
|
500
|
+
npx zapier-sdk create-workflow <name> [--description] [--is_private]
|
|
500
501
|
```
|
|
501
502
|
|
|
502
503
|
#### `delete-workflow` 🧪 _experimental_
|
|
@@ -709,18 +710,25 @@ Publish a new version of a durable workflow. Enables the workflow by default.
|
|
|
709
710
|
|
|
710
711
|
**Options:**
|
|
711
712
|
|
|
712
|
-
| Option | Type | Required | Default | Possible Values | Description
|
|
713
|
-
| -------------------------- | --------- | -------- | ------- | --------------- |
|
|
714
|
-
| `<workflow>` | `string` | ✅ | — | — | Durable workflow ID
|
|
715
|
-
| `<source_files>` | `object` | ✅ | — | — | Source files keyed by filename → contents
|
|
716
|
-
| `--dependencies` | `object` | ❌ | — | — | Optional npm package dependencies
|
|
717
|
-
| `--zapier_durable_version` | `string` | ❌ | — | — | Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Defaults to server-configured version if omitted.
|
|
718
|
-
| `--enabled` | `boolean` | ❌ | — | — | Enable the workflow after publishing. Defaults to true; pass false to publish without enabling.
|
|
713
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
714
|
+
| -------------------------- | --------- | -------- | ------- | --------------- | -------------------------------------------------------------------------------------------------------------------- |
|
|
715
|
+
| `<workflow>` | `string` | ✅ | — | — | Durable workflow ID |
|
|
716
|
+
| `<source_files>` | `object` | ✅ | — | — | Source files keyed by filename → contents |
|
|
717
|
+
| `--dependencies` | `object` | ❌ | — | — | Optional npm package dependencies |
|
|
718
|
+
| `--zapier_durable_version` | `string` | ❌ | — | — | Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Defaults to server-configured version if omitted. |
|
|
719
|
+
| `--enabled` | `boolean` | ❌ | — | — | Enable the workflow after publishing. Defaults to true; pass false to publish without enabling. |
|
|
720
|
+
| `--connections` | `object` | ❌ | — | — | Map of connection aliases to Zapier connections used by the workflow. Pass `null` to clear an existing binding. |
|
|
721
|
+
| `--app_versions` | `object` | ❌ | — | — | Map of app keys to pinned app implementation/version used by the workflow. Pass `null` to clear an existing binding. |
|
|
722
|
+
| `--trigger` | `object` | ❌ | — | — | Trigger configuration. When provided, the workflow subscribes to a Zapier trigger; omit for webhook-only workflows. |
|
|
723
|
+
| ↳ `selected_api` | `string` | ✅ | — | — | Zapier app/API identifier (e.g. 'GoogleSheetsAPI') |
|
|
724
|
+
| ↳ `action` | `string` | ✅ | — | — | Trigger action key (e.g. 'new_row') |
|
|
725
|
+
| ↳ `authentication_id` | `string` | ❌ | — | — | Connection ID for the trigger source. Omit or pass null for no-auth triggers (e.g. Schedule by Zapier). |
|
|
726
|
+
| ↳ `params` | `object` | ❌ | — | — | Trigger parameters as a JSON object |
|
|
719
727
|
|
|
720
728
|
**Usage:**
|
|
721
729
|
|
|
722
730
|
```bash
|
|
723
|
-
npx zapier-sdk publish-workflow-version <workflow> <source_files> [--dependencies] [--zapier_durable_version] [--enabled]
|
|
731
|
+
npx zapier-sdk publish-workflow-version <workflow> <source_files> [--dependencies] [--zapier_durable_version] [--enabled] [--connections] [--app_versions] [--trigger]
|
|
724
732
|
```
|
|
725
733
|
|
|
726
734
|
#### `run-durable` 🧪 _experimental_
|
|
@@ -1465,7 +1473,7 @@ npx zapier-sdk update-trigger-inbox <inbox> [--notification-url]
|
|
|
1465
1473
|
|
|
1466
1474
|
#### `watch-trigger-inbox` 🧪 _experimental_
|
|
1467
1475
|
|
|
1468
|
-
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
|
|
1476
|
+
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.
|
|
1469
1477
|
|
|
1470
1478
|
**Options:**
|
|
1471
1479
|
|
package/dist/cli.cjs
CHANGED
|
@@ -1573,7 +1573,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
|
|
|
1573
1573
|
|
|
1574
1574
|
// package.json
|
|
1575
1575
|
var package_default = {
|
|
1576
|
-
version: "0.
|
|
1576
|
+
version: "0.55.0"};
|
|
1577
1577
|
|
|
1578
1578
|
// src/telemetry/builders.ts
|
|
1579
1579
|
function createCliBaseEvent(context = {}) {
|
|
@@ -7172,7 +7172,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.definePlugin(
|
|
|
7172
7172
|
// package.json with { type: 'json' }
|
|
7173
7173
|
var package_default2 = {
|
|
7174
7174
|
name: "@zapier/zapier-sdk-cli",
|
|
7175
|
-
version: "0.
|
|
7175
|
+
version: "0.55.0"};
|
|
7176
7176
|
|
|
7177
7177
|
// src/sdk.ts
|
|
7178
7178
|
zapierSdk.injectCliLogin(login_exports);
|
package/dist/cli.mjs
CHANGED
|
@@ -1531,7 +1531,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
|
|
|
1531
1531
|
|
|
1532
1532
|
// package.json
|
|
1533
1533
|
var package_default = {
|
|
1534
|
-
version: "0.
|
|
1534
|
+
version: "0.55.0"};
|
|
1535
1535
|
|
|
1536
1536
|
// src/telemetry/builders.ts
|
|
1537
1537
|
function createCliBaseEvent(context = {}) {
|
|
@@ -7130,7 +7130,7 @@ var watchTriggerInboxCliPlugin = definePlugin(
|
|
|
7130
7130
|
// package.json with { type: 'json' }
|
|
7131
7131
|
var package_default2 = {
|
|
7132
7132
|
name: "@zapier/zapier-sdk-cli",
|
|
7133
|
-
version: "0.
|
|
7133
|
+
version: "0.55.0"};
|
|
7134
7134
|
|
|
7135
7135
|
// src/sdk.ts
|
|
7136
7136
|
injectCliLogin(login_exports);
|
package/dist/experimental.cjs
CHANGED
|
@@ -4525,7 +4525,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.definePlugin(
|
|
|
4525
4525
|
// package.json with { type: 'json' }
|
|
4526
4526
|
var package_default = {
|
|
4527
4527
|
name: "@zapier/zapier-sdk-cli",
|
|
4528
|
-
version: "0.
|
|
4528
|
+
version: "0.55.0"};
|
|
4529
4529
|
|
|
4530
4530
|
// src/experimental.ts
|
|
4531
4531
|
experimental.injectCliLogin(login_exports);
|
package/dist/experimental.mjs
CHANGED
|
@@ -4489,7 +4489,7 @@ var watchTriggerInboxCliPlugin = definePlugin(
|
|
|
4489
4489
|
// package.json with { type: 'json' }
|
|
4490
4490
|
var package_default = {
|
|
4491
4491
|
name: "@zapier/zapier-sdk-cli",
|
|
4492
|
-
version: "0.
|
|
4492
|
+
version: "0.55.0"};
|
|
4493
4493
|
|
|
4494
4494
|
// src/experimental.ts
|
|
4495
4495
|
injectCliLogin(login_exports);
|
package/dist/index.cjs
CHANGED
|
@@ -4524,7 +4524,7 @@ zapierSdk.definePlugin(
|
|
|
4524
4524
|
// package.json with { type: 'json' }
|
|
4525
4525
|
var package_default = {
|
|
4526
4526
|
name: "@zapier/zapier-sdk-cli",
|
|
4527
|
-
version: "0.
|
|
4527
|
+
version: "0.55.0"};
|
|
4528
4528
|
|
|
4529
4529
|
// src/sdk.ts
|
|
4530
4530
|
zapierSdk.injectCliLogin(login_exports);
|
|
@@ -4552,7 +4552,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
4552
4552
|
|
|
4553
4553
|
// package.json
|
|
4554
4554
|
var package_default2 = {
|
|
4555
|
-
version: "0.
|
|
4555
|
+
version: "0.55.0"};
|
|
4556
4556
|
|
|
4557
4557
|
// src/telemetry/builders.ts
|
|
4558
4558
|
function createCliBaseEvent(context = {}) {
|
package/dist/index.mjs
CHANGED
|
@@ -4488,7 +4488,7 @@ definePlugin(
|
|
|
4488
4488
|
// package.json with { type: 'json' }
|
|
4489
4489
|
var package_default = {
|
|
4490
4490
|
name: "@zapier/zapier-sdk-cli",
|
|
4491
|
-
version: "0.
|
|
4491
|
+
version: "0.55.0"};
|
|
4492
4492
|
|
|
4493
4493
|
// src/sdk.ts
|
|
4494
4494
|
injectCliLogin(login_exports);
|
|
@@ -4516,7 +4516,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
4516
4516
|
|
|
4517
4517
|
// package.json
|
|
4518
4518
|
var package_default2 = {
|
|
4519
|
-
version: "0.
|
|
4519
|
+
version: "0.55.0"};
|
|
4520
4520
|
|
|
4521
4521
|
// src/telemetry/builders.ts
|
|
4522
4522
|
function createCliBaseEvent(context = {}) {
|
package/dist/package.json
CHANGED
|
@@ -51,6 +51,7 @@ function createSignupTestApi() {
|
|
|
51
51
|
poll: emptyApiResult,
|
|
52
52
|
fetch: () => Promise.resolve(new Response()),
|
|
53
53
|
fetchStream: async function* () { },
|
|
54
|
+
fetchJsonStream: async function* () { },
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
57
|
export function buildSignupTestContext(vi, mockEmit = () => undefined) {
|