@zapier/zapier-sdk-cli 0.67.3 โ 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 +13 -0
- package/README.md +20 -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,18 @@
|
|
|
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
|
+
|
|
3
16
|
## 0.67.3
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
- [`list-workflow-runs`](#list-workflow-runs--experimental)
|
|
46
46
|
- [`list-workflow-versions`](#list-workflow-versions--experimental)
|
|
47
47
|
- [`list-workflows`](#list-workflows--experimental)
|
|
48
|
+
- [`publish-workflow-draft`](#publish-workflow-draft--experimental)
|
|
48
49
|
- [`publish-workflow-version`](#publish-workflow-version--experimental)
|
|
49
50
|
- [`run-durable`](#run-durable--experimental)
|
|
50
51
|
- [`trigger-workflow`](#trigger-workflow--experimental)
|
|
@@ -789,6 +790,25 @@ List all active durable workflows for the authenticated account
|
|
|
789
790
|
npx zapier-sdk list-workflows [--page-size] [--max-items] [--cursor]
|
|
790
791
|
```
|
|
791
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
|
+
|
|
792
812
|
#### `publish-workflow-version` ๐งช _experimental_
|
|
793
813
|
|
|
794
814
|
Publish a new version of a durable workflow. Enables the workflow by default.
|
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",
|