@zapier/zapier-sdk-cli 0.67.2 → 0.67.4
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 +28 -0
- package/README.md +81 -0
- 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/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.67.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5935b7e: Added `publishWorkflowDraft` (experimental) to publish an open workflow draft as a new immutable version.
|
|
8
|
+
- Publishing advances the workflow's live pointer and **discards the draft** — publish consumes it, so an open draft always means unpublished work. Returns both the new `version` and the consumed `draft` (`status: "discarded"`, `base_version_id` still recording the version it was forked from). Prefer it over `publishWorkflowVersion` once a draft exists, so the open draft is never orphaned; continue editing by creating a new draft off the new version.
|
|
9
|
+
- Accepts optional `enabled` (set the workflow's enabled state as part of the publish; preserved if omitted) and `draftRevision` (optimistic concurrency: publish exactly the revision last read).
|
|
10
|
+
- Failure modes stay distinct: a concurrent-edit or trigger-switchover conflict surfaces as `ZapierConflictError` (retryable after re-reading the draft), a trigger-catalog validation outage surfaces as a retryable 503 API error, and invalid `zapier_durable_version` or trigger config surfaces as a validation error.
|
|
11
|
+
|
|
12
|
+
- Updated dependencies [5935b7e]
|
|
13
|
+
- @zapier/zapier-sdk@0.91.0
|
|
14
|
+
- @zapier/zapier-sdk-mcp@0.18.19
|
|
15
|
+
|
|
16
|
+
## 0.67.3
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- f6eac6f: Added `createWorkflowDraft`, `updateWorkflowDraft`, and `discardWorkflowDraft` (experimental), completing the draft lifecycle alongside the existing read methods.
|
|
21
|
+
- `createWorkflowDraft` forks a new draft from the workflow's live version, with an optional `slug`.
|
|
22
|
+
- `updateWorkflowDraft` saves draft edits — source files, dependencies, trigger, connections, and app-version pins. Pass `draftRevision` to reject the save with a `ZapierConflictError` if the draft changed since it was last read; pass `null` for `trigger`, `connections`, or `appVersions` to clear the stored value, or omit them to leave it unchanged.
|
|
23
|
+
- `discardWorkflowDraft` soft-deletes a draft and returns it with status `discarded`.
|
|
24
|
+
|
|
25
|
+
All ID inputs are UUID-validated at the boundary.
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [f6eac6f]
|
|
28
|
+
- @zapier/zapier-sdk@0.90.0
|
|
29
|
+
- @zapier/zapier-sdk-mcp@0.18.18
|
|
30
|
+
|
|
3
31
|
## 0.67.2
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -29,8 +29,10 @@
|
|
|
29
29
|
- [Code Workflows (Experimental)](#code-workflows-experimental)
|
|
30
30
|
- [`cancel-durable-run`](#cancel-durable-run--experimental)
|
|
31
31
|
- [`create-workflow`](#create-workflow--experimental)
|
|
32
|
+
- [`create-workflow-draft`](#create-workflow-draft--experimental)
|
|
32
33
|
- [`delete-workflow`](#delete-workflow--experimental)
|
|
33
34
|
- [`disable-workflow`](#disable-workflow--experimental)
|
|
35
|
+
- [`discard-workflow-draft`](#discard-workflow-draft--experimental)
|
|
34
36
|
- [`enable-workflow`](#enable-workflow--experimental)
|
|
35
37
|
- [`get-durable-run`](#get-durable-run--experimental)
|
|
36
38
|
- [`get-trigger-run`](#get-trigger-run--experimental)
|
|
@@ -43,10 +45,12 @@
|
|
|
43
45
|
- [`list-workflow-runs`](#list-workflow-runs--experimental)
|
|
44
46
|
- [`list-workflow-versions`](#list-workflow-versions--experimental)
|
|
45
47
|
- [`list-workflows`](#list-workflows--experimental)
|
|
48
|
+
- [`publish-workflow-draft`](#publish-workflow-draft--experimental)
|
|
46
49
|
- [`publish-workflow-version`](#publish-workflow-version--experimental)
|
|
47
50
|
- [`run-durable`](#run-durable--experimental)
|
|
48
51
|
- [`trigger-workflow`](#trigger-workflow--experimental)
|
|
49
52
|
- [`update-workflow`](#update-workflow--experimental)
|
|
53
|
+
- [`update-workflow-draft`](#update-workflow-draft--experimental)
|
|
50
54
|
- [Connections](#connections)
|
|
51
55
|
- [`create-connection`](#create-connection)
|
|
52
56
|
- [`find-first-connection`](#find-first-connection)
|
|
@@ -510,6 +514,23 @@ Create a durable workflow container. Starts disabled with no version; publish a
|
|
|
510
514
|
npx zapier-sdk create-workflow <name> [--description] [--private]
|
|
511
515
|
```
|
|
512
516
|
|
|
517
|
+
#### `create-workflow-draft` 🧪 _experimental_
|
|
518
|
+
|
|
519
|
+
Fork a new draft from the workflow's current live version (or a blank stub before the first publish)
|
|
520
|
+
|
|
521
|
+
**Options:**
|
|
522
|
+
|
|
523
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
524
|
+
| ------------ | -------- | -------- | ------- | --------------- | ---------------------------------------------------------------------- |
|
|
525
|
+
| `<workflow>` | `string` | ✅ | — | — | Durable workflow ID |
|
|
526
|
+
| `--slug` | `string` | ❌ | — | — | Optional slug for URL routing. When omitted, the server generates one. |
|
|
527
|
+
|
|
528
|
+
**Usage:**
|
|
529
|
+
|
|
530
|
+
```bash
|
|
531
|
+
npx zapier-sdk create-workflow-draft <workflow> [--slug]
|
|
532
|
+
```
|
|
533
|
+
|
|
513
534
|
#### `delete-workflow` 🧪 _experimental_
|
|
514
535
|
|
|
515
536
|
Delete a durable workflow. Throws `ZapierNotFoundError` if the workflow doesn't exist; callers wanting idempotency should catch that themselves.
|
|
@@ -542,6 +563,23 @@ Disable a durable workflow so it stops accepting triggers
|
|
|
542
563
|
npx zapier-sdk disable-workflow <workflow>
|
|
543
564
|
```
|
|
544
565
|
|
|
566
|
+
#### `discard-workflow-draft` 🧪 _experimental_
|
|
567
|
+
|
|
568
|
+
Discard an open workflow draft (soft delete). The draft's unpublished edits stop resolving; the published version is untouched.
|
|
569
|
+
|
|
570
|
+
**Options:**
|
|
571
|
+
|
|
572
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
573
|
+
| ------------ | -------- | -------- | ------- | --------------- | ------------------- |
|
|
574
|
+
| `<workflow>` | `string` | ✅ | — | — | Durable workflow ID |
|
|
575
|
+
| `<draft>` | `string` | ✅ | — | — | Workflow draft ID |
|
|
576
|
+
|
|
577
|
+
**Usage:**
|
|
578
|
+
|
|
579
|
+
```bash
|
|
580
|
+
npx zapier-sdk discard-workflow-draft <workflow> <draft>
|
|
581
|
+
```
|
|
582
|
+
|
|
545
583
|
#### `enable-workflow` 🧪 _experimental_
|
|
546
584
|
|
|
547
585
|
Enable a durable workflow so it accepts triggers
|
|
@@ -752,6 +790,25 @@ List all active durable workflows for the authenticated account
|
|
|
752
790
|
npx zapier-sdk list-workflows [--page-size] [--max-items] [--cursor]
|
|
753
791
|
```
|
|
754
792
|
|
|
793
|
+
#### `publish-workflow-draft` 🧪 _experimental_
|
|
794
|
+
|
|
795
|
+
Publish an open draft as a new immutable workflow version. Advances the workflow's live pointer and discards the draft — publish consumes it, so an open draft always means unpublished work. Continue editing by creating a new draft, which forks from the just-published version.
|
|
796
|
+
|
|
797
|
+
**Options:**
|
|
798
|
+
|
|
799
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
800
|
+
| ------------------ | --------- | -------- | ------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
801
|
+
| `<workflow>` | `string` | ✅ | — | — | Durable workflow ID |
|
|
802
|
+
| `<draft>` | `string` | ✅ | — | — | Workflow draft ID |
|
|
803
|
+
| `--enabled` | `boolean` | ❌ | — | — | Set the workflow's enabled state as part of the publish. If omitted, the current enabled state is preserved. |
|
|
804
|
+
| `--draft-revision` | `number` | ❌ | — | — | Expected draft revision for optimistic concurrency. Pass the revision from the last read; the server rejects the publish with a conflict if the draft has changed since. Omit to skip the check. |
|
|
805
|
+
|
|
806
|
+
**Usage:**
|
|
807
|
+
|
|
808
|
+
```bash
|
|
809
|
+
npx zapier-sdk publish-workflow-draft <workflow> <draft> [--enabled] [--draft-revision]
|
|
810
|
+
```
|
|
811
|
+
|
|
755
812
|
#### `publish-workflow-version` 🧪 _experimental_
|
|
756
813
|
|
|
757
814
|
Publish a new version of a durable workflow. Enables the workflow by default.
|
|
@@ -837,6 +894,30 @@ Update a durable workflow's name and/or description
|
|
|
837
894
|
npx zapier-sdk update-workflow <workflow> [--name] [--description]
|
|
838
895
|
```
|
|
839
896
|
|
|
897
|
+
#### `update-workflow-draft` 🧪 _experimental_
|
|
898
|
+
|
|
899
|
+
Update (autosave) an open workflow draft
|
|
900
|
+
|
|
901
|
+
**Options:**
|
|
902
|
+
|
|
903
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
904
|
+
| -------------------------- | -------- | -------- | ------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
905
|
+
| `<workflow>` | `string` | ✅ | — | — | Durable workflow ID |
|
|
906
|
+
| `<draft>` | `string` | ✅ | — | — | Workflow draft ID |
|
|
907
|
+
| `<source-files>` | `object` | ✅ | — | — | Source files keyed by filename → contents |
|
|
908
|
+
| `--zapier-durable-version` | `string` | ❌ | — | — | Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Leaves the stored pin unchanged if omitted. |
|
|
909
|
+
| `--dependencies` | `object` | ❌ | — | — | Optional npm package dependencies |
|
|
910
|
+
| `--draft-revision` | `number` | ❌ | — | — | Expected draft revision for optimistic concurrency. Pass the revision from the last read; the server rejects the save with a conflict if the draft has changed since. Omit to skip the check. |
|
|
911
|
+
| `--trigger` | `object` | ❌ | — | — | Trigger configuration. Omit to leave the stored trigger unchanged, pass null to clear it, or pass an object to replace it. |
|
|
912
|
+
| `--connections` | `object` | ❌ | — | — | Map of connection aliases to Zapier connections used by the workflow. Pass `null` to clear an existing binding. |
|
|
913
|
+
| `--app-versions` | `object` | ❌ | — | — | Map of app keys to pinned app implementation/version used by the workflow. Pass `null` to clear an existing binding. |
|
|
914
|
+
|
|
915
|
+
**Usage:**
|
|
916
|
+
|
|
917
|
+
```bash
|
|
918
|
+
npx zapier-sdk update-workflow-draft <workflow> <draft> <source-files> [--zapier-durable-version] [--dependencies] [--draft-revision] [--trigger] [--connections] [--app-versions]
|
|
919
|
+
```
|
|
920
|
+
|
|
840
921
|
### Connections
|
|
841
922
|
|
|
842
923
|
#### `create-connection`
|
package/dist/cli.cjs
CHANGED
|
@@ -536,7 +536,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
|
|
|
536
536
|
|
|
537
537
|
// package.json
|
|
538
538
|
var package_default = {
|
|
539
|
-
version: "0.67.
|
|
539
|
+
version: "0.67.4"};
|
|
540
540
|
|
|
541
541
|
// src/telemetry/builders.ts
|
|
542
542
|
function createCliBaseEvent(context = {}) {
|
|
@@ -6767,7 +6767,7 @@ function buildBoxLines(message) {
|
|
|
6767
6767
|
// package.json with { type: 'json' }
|
|
6768
6768
|
var package_default2 = {
|
|
6769
6769
|
name: "@zapier/zapier-sdk-cli",
|
|
6770
|
-
version: "0.67.
|
|
6770
|
+
version: "0.67.4"};
|
|
6771
6771
|
|
|
6772
6772
|
// src/sdk.ts
|
|
6773
6773
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
package/dist/cli.mjs
CHANGED
|
@@ -494,7 +494,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
|
|
|
494
494
|
|
|
495
495
|
// package.json
|
|
496
496
|
var package_default = {
|
|
497
|
-
version: "0.67.
|
|
497
|
+
version: "0.67.4"};
|
|
498
498
|
|
|
499
499
|
// src/telemetry/builders.ts
|
|
500
500
|
function createCliBaseEvent(context = {}) {
|
|
@@ -6725,7 +6725,7 @@ function buildBoxLines(message) {
|
|
|
6725
6725
|
// package.json with { type: 'json' }
|
|
6726
6726
|
var package_default2 = {
|
|
6727
6727
|
name: "@zapier/zapier-sdk-cli",
|
|
6728
|
-
version: "0.67.
|
|
6728
|
+
version: "0.67.4"};
|
|
6729
6729
|
|
|
6730
6730
|
// src/sdk.ts
|
|
6731
6731
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
package/dist/experimental.cjs
CHANGED
|
@@ -5109,7 +5109,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
5109
5109
|
// package.json with { type: 'json' }
|
|
5110
5110
|
var package_default = {
|
|
5111
5111
|
name: "@zapier/zapier-sdk-cli",
|
|
5112
|
-
version: "0.67.
|
|
5112
|
+
version: "0.67.4"};
|
|
5113
5113
|
|
|
5114
5114
|
// src/sdk.ts
|
|
5115
5115
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
package/dist/experimental.mjs
CHANGED
|
@@ -5073,7 +5073,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
5073
5073
|
// package.json with { type: 'json' }
|
|
5074
5074
|
var package_default = {
|
|
5075
5075
|
name: "@zapier/zapier-sdk-cli",
|
|
5076
|
-
version: "0.67.
|
|
5076
|
+
version: "0.67.4"};
|
|
5077
5077
|
|
|
5078
5078
|
// src/sdk.ts
|
|
5079
5079
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
package/dist/index.cjs
CHANGED
|
@@ -5109,7 +5109,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
5109
5109
|
// package.json with { type: 'json' }
|
|
5110
5110
|
var package_default = {
|
|
5111
5111
|
name: "@zapier/zapier-sdk-cli",
|
|
5112
|
-
version: "0.67.
|
|
5112
|
+
version: "0.67.4"};
|
|
5113
5113
|
|
|
5114
5114
|
// src/sdk.ts
|
|
5115
5115
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
|
@@ -5192,7 +5192,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
5192
5192
|
|
|
5193
5193
|
// package.json
|
|
5194
5194
|
var package_default2 = {
|
|
5195
|
-
version: "0.67.
|
|
5195
|
+
version: "0.67.4"};
|
|
5196
5196
|
|
|
5197
5197
|
// src/telemetry/builders.ts
|
|
5198
5198
|
function createCliBaseEvent(context = {}) {
|
package/dist/index.mjs
CHANGED
|
@@ -5073,7 +5073,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
5073
5073
|
// package.json with { type: 'json' }
|
|
5074
5074
|
var package_default = {
|
|
5075
5075
|
name: "@zapier/zapier-sdk-cli",
|
|
5076
|
-
version: "0.67.
|
|
5076
|
+
version: "0.67.4"};
|
|
5077
5077
|
|
|
5078
5078
|
// src/sdk.ts
|
|
5079
5079
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
|
@@ -5156,7 +5156,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
5156
5156
|
|
|
5157
5157
|
// package.json
|
|
5158
5158
|
var package_default2 = {
|
|
5159
|
-
version: "0.67.
|
|
5159
|
+
version: "0.67.4"};
|
|
5160
5160
|
|
|
5161
5161
|
// src/telemetry/builders.ts
|
|
5162
5162
|
function createCliBaseEvent(context = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zapier/zapier-sdk-cli",
|
|
3
|
-
"version": "0.67.
|
|
3
|
+
"version": "0.67.4",
|
|
4
4
|
"description": "Command line interface for Zapier SDK",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
"typescript": "^5.8.3",
|
|
95
95
|
"wrap-ansi": "^10.0.0",
|
|
96
96
|
"zod": "4.3.6",
|
|
97
|
-
"@zapier/zapier-sdk": "0.
|
|
98
|
-
"@zapier/zapier-sdk
|
|
97
|
+
"@zapier/zapier-sdk-mcp": "0.18.19",
|
|
98
|
+
"@zapier/zapier-sdk": "0.91.0"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
101
|
"@types/express": "^5.0.3",
|