@zapier/zapier-sdk-cli 0.67.2 โ†’ 0.67.3

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,20 @@
1
1
  # @zapier/zapier-sdk-cli
2
2
 
3
+ ## 0.67.3
4
+
5
+ ### Patch Changes
6
+
7
+ - f6eac6f: Added `createWorkflowDraft`, `updateWorkflowDraft`, and `discardWorkflowDraft` (experimental), completing the draft lifecycle alongside the existing read methods.
8
+ - `createWorkflowDraft` forks a new draft from the workflow's live version, with an optional `slug`.
9
+ - `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.
10
+ - `discardWorkflowDraft` soft-deletes a draft and returns it with status `discarded`.
11
+
12
+ All ID inputs are UUID-validated at the boundary.
13
+
14
+ - Updated dependencies [f6eac6f]
15
+ - @zapier/zapier-sdk@0.90.0
16
+ - @zapier/zapier-sdk-mcp@0.18.18
17
+
3
18
  ## 0.67.2
4
19
 
5
20
  ### 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)
@@ -47,6 +49,7 @@
47
49
  - [`run-durable`](#run-durable--experimental)
48
50
  - [`trigger-workflow`](#trigger-workflow--experimental)
49
51
  - [`update-workflow`](#update-workflow--experimental)
52
+ - [`update-workflow-draft`](#update-workflow-draft--experimental)
50
53
  - [Connections](#connections)
51
54
  - [`create-connection`](#create-connection)
52
55
  - [`find-first-connection`](#find-first-connection)
@@ -510,6 +513,23 @@ Create a durable workflow container. Starts disabled with no version; publish a
510
513
  npx zapier-sdk create-workflow <name> [--description] [--private]
511
514
  ```
512
515
 
516
+ #### `create-workflow-draft` ๐Ÿงช _experimental_
517
+
518
+ Fork a new draft from the workflow's current live version (or a blank stub before the first publish)
519
+
520
+ **Options:**
521
+
522
+ | Option | Type | Required | Default | Possible Values | Description |
523
+ | ------------ | -------- | -------- | ------- | --------------- | ---------------------------------------------------------------------- |
524
+ | `<workflow>` | `string` | โœ… | โ€” | โ€” | Durable workflow ID |
525
+ | `--slug` | `string` | โŒ | โ€” | โ€” | Optional slug for URL routing. When omitted, the server generates one. |
526
+
527
+ **Usage:**
528
+
529
+ ```bash
530
+ npx zapier-sdk create-workflow-draft <workflow> [--slug]
531
+ ```
532
+
513
533
  #### `delete-workflow` ๐Ÿงช _experimental_
514
534
 
515
535
  Delete a durable workflow. Throws `ZapierNotFoundError` if the workflow doesn't exist; callers wanting idempotency should catch that themselves.
@@ -542,6 +562,23 @@ Disable a durable workflow so it stops accepting triggers
542
562
  npx zapier-sdk disable-workflow <workflow>
543
563
  ```
544
564
 
565
+ #### `discard-workflow-draft` ๐Ÿงช _experimental_
566
+
567
+ Discard an open workflow draft (soft delete). The draft's unpublished edits stop resolving; the published version is untouched.
568
+
569
+ **Options:**
570
+
571
+ | Option | Type | Required | Default | Possible Values | Description |
572
+ | ------------ | -------- | -------- | ------- | --------------- | ------------------- |
573
+ | `<workflow>` | `string` | โœ… | โ€” | โ€” | Durable workflow ID |
574
+ | `<draft>` | `string` | โœ… | โ€” | โ€” | Workflow draft ID |
575
+
576
+ **Usage:**
577
+
578
+ ```bash
579
+ npx zapier-sdk discard-workflow-draft <workflow> <draft>
580
+ ```
581
+
545
582
  #### `enable-workflow` ๐Ÿงช _experimental_
546
583
 
547
584
  Enable a durable workflow so it accepts triggers
@@ -837,6 +874,30 @@ Update a durable workflow's name and/or description
837
874
  npx zapier-sdk update-workflow <workflow> [--name] [--description]
838
875
  ```
839
876
 
877
+ #### `update-workflow-draft` ๐Ÿงช _experimental_
878
+
879
+ Update (autosave) an open workflow draft
880
+
881
+ **Options:**
882
+
883
+ | Option | Type | Required | Default | Possible Values | Description |
884
+ | -------------------------- | -------- | -------- | ------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
885
+ | `<workflow>` | `string` | โœ… | โ€” | โ€” | Durable workflow ID |
886
+ | `<draft>` | `string` | โœ… | โ€” | โ€” | Workflow draft ID |
887
+ | `<source-files>` | `object` | โœ… | โ€” | โ€” | Source files keyed by filename โ†’ contents |
888
+ | `--zapier-durable-version` | `string` | โŒ | โ€” | โ€” | Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Leaves the stored pin unchanged if omitted. |
889
+ | `--dependencies` | `object` | โŒ | โ€” | โ€” | Optional npm package dependencies |
890
+ | `--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. |
891
+ | `--trigger` | `object` | โŒ | โ€” | โ€” | Trigger configuration. Omit to leave the stored trigger unchanged, pass null to clear it, or pass an object to replace it. |
892
+ | `--connections` | `object` | โŒ | โ€” | โ€” | Map of connection aliases to Zapier connections used by the workflow. Pass `null` to clear an existing binding. |
893
+ | `--app-versions` | `object` | โŒ | โ€” | โ€” | Map of app keys to pinned app implementation/version used by the workflow. Pass `null` to clear an existing binding. |
894
+
895
+ **Usage:**
896
+
897
+ ```bash
898
+ npx zapier-sdk update-workflow-draft <workflow> <draft> <source-files> [--zapier-durable-version] [--dependencies] [--draft-revision] [--trigger] [--connections] [--app-versions]
899
+ ```
900
+
840
901
  ### Connections
841
902
 
842
903
  #### `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.2"};
539
+ version: "0.67.3"};
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.2"};
6770
+ version: "0.67.3"};
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.2"};
497
+ version: "0.67.3"};
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.2"};
6728
+ version: "0.67.3"};
6729
6729
 
6730
6730
  // src/sdk.ts
6731
6731
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -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.2"};
5112
+ version: "0.67.3"};
5113
5113
 
5114
5114
  // src/sdk.ts
5115
5115
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -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.2"};
5076
+ version: "0.67.3"};
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.2"};
5112
+ version: "0.67.3"};
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.2"};
5195
+ version: "0.67.3"};
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.2"};
5076
+ version: "0.67.3"};
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.2"};
5159
+ version: "0.67.3"};
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.2",
3
+ "version": "0.67.3",
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.89.0",
98
- "@zapier/zapier-sdk-mcp": "0.18.17"
97
+ "@zapier/zapier-sdk": "0.90.0",
98
+ "@zapier/zapier-sdk-mcp": "0.18.18"
99
99
  },
100
100
  "devDependencies": {
101
101
  "@types/express": "^5.0.3",