@zapier/zapier-sdk-cli 0.67.1 โ†’ 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,29 @@
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
+
18
+ ## 0.67.2
19
+
20
+ ### Patch Changes
21
+
22
+ - e24c236: Added `listWorkflowDrafts` and `getWorkflowDraft` (experimental). `listWorkflowDrafts` is paginated (cursor + pageSize), returns a workflow's drafts most recently edited first, and filters by `status` (server default: open) or exact `slug`. `getWorkflowDraft` returns the full draft state including `source_files` and `draft_revision`, the draft's optimistic-concurrency counter. CLI commands taking a draft id present an interactive picker. All ID inputs are UUID-validated at the boundary.
23
+ - Updated dependencies [e24c236]
24
+ - @zapier/zapier-sdk@0.89.0
25
+ - @zapier/zapier-sdk-mcp@0.18.17
26
+
3
27
  ## 0.67.1
4
28
 
5
29
  ### Patch Changes
package/README.md CHANGED
@@ -29,15 +29,19 @@
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)
37
39
  - [`get-workflow`](#get-workflow--experimental)
40
+ - [`get-workflow-draft`](#get-workflow-draft--experimental)
38
41
  - [`get-workflow-run`](#get-workflow-run--experimental)
39
42
  - [`get-workflow-version`](#get-workflow-version--experimental)
40
43
  - [`list-durable-runs`](#list-durable-runs--experimental)
44
+ - [`list-workflow-drafts`](#list-workflow-drafts--experimental)
41
45
  - [`list-workflow-runs`](#list-workflow-runs--experimental)
42
46
  - [`list-workflow-versions`](#list-workflow-versions--experimental)
43
47
  - [`list-workflows`](#list-workflows--experimental)
@@ -45,6 +49,7 @@
45
49
  - [`run-durable`](#run-durable--experimental)
46
50
  - [`trigger-workflow`](#trigger-workflow--experimental)
47
51
  - [`update-workflow`](#update-workflow--experimental)
52
+ - [`update-workflow-draft`](#update-workflow-draft--experimental)
48
53
  - [Connections](#connections)
49
54
  - [`create-connection`](#create-connection)
50
55
  - [`find-first-connection`](#find-first-connection)
@@ -508,6 +513,23 @@ Create a durable workflow container. Starts disabled with no version; publish a
508
513
  npx zapier-sdk create-workflow <name> [--description] [--private]
509
514
  ```
510
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
+
511
533
  #### `delete-workflow` ๐Ÿงช _experimental_
512
534
 
513
535
  Delete a durable workflow. Throws `ZapierNotFoundError` if the workflow doesn't exist; callers wanting idempotency should catch that themselves.
@@ -540,6 +562,23 @@ Disable a durable workflow so it stops accepting triggers
540
562
  npx zapier-sdk disable-workflow <workflow>
541
563
  ```
542
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
+
543
582
  #### `enable-workflow` ๐Ÿงช _experimental_
544
583
 
545
584
  Enable a durable workflow so it accepts triggers
@@ -604,6 +643,23 @@ Get a durable workflow with its current version details and trigger claim status
604
643
  npx zapier-sdk get-workflow <workflow>
605
644
  ```
606
645
 
646
+ #### `get-workflow-draft` ๐Ÿงช _experimental_
647
+
648
+ Get full details of a workflow draft including source files
649
+
650
+ **Options:**
651
+
652
+ | Option | Type | Required | Default | Possible Values | Description |
653
+ | ------------ | -------- | -------- | ------- | --------------- | ------------------- |
654
+ | `<workflow>` | `string` | โœ… | โ€” | โ€” | Durable workflow ID |
655
+ | `<draft>` | `string` | โœ… | โ€” | โ€” | Workflow draft ID |
656
+
657
+ **Usage:**
658
+
659
+ ```bash
660
+ npx zapier-sdk get-workflow-draft <workflow> <draft>
661
+ ```
662
+
607
663
  #### `get-workflow-run` ๐Ÿงช _experimental_
608
664
 
609
665
  Get the current state of a workflow run (a triggered execution of a deployed workflow)
@@ -656,6 +712,27 @@ List run-once durable runs for the authenticated account, newest first
656
712
  npx zapier-sdk list-durable-runs [--page-size] [--cursor] [--max-items]
657
713
  ```
658
714
 
715
+ #### `list-workflow-drafts` ๐Ÿงช _experimental_
716
+
717
+ List drafts for a workflow, most recently edited first (open drafts by default)
718
+
719
+ **Options:**
720
+
721
+ | Option | Type | Required | Default | Possible Values | Description |
722
+ | ------------- | -------- | -------- | ------- | ------------------- | ----------------------------------------------------- |
723
+ | `<workflow>` | `string` | โœ… | โ€” | โ€” | Durable workflow ID |
724
+ | `--status` | `string` | โŒ | โ€” | `open`, `discarded` | Filter by draft status (server default: open) |
725
+ | `--slug` | `string` | โŒ | โ€” | โ€” | Filter by exact slug match; returns at most one draft |
726
+ | `--page-size` | `number` | โŒ | โ€” | โ€” | Number of drafts per page (max 100) |
727
+ | `--cursor` | `string` | โŒ | โ€” | โ€” | Pagination cursor |
728
+ | `--max-items` | `number` | โŒ | โ€” | โ€” | Maximum total drafts to return across all pages |
729
+
730
+ **Usage:**
731
+
732
+ ```bash
733
+ npx zapier-sdk list-workflow-drafts <workflow> [--status] [--slug] [--page-size] [--cursor] [--max-items]
734
+ ```
735
+
659
736
  #### `list-workflow-runs` ๐Ÿงช _experimental_
660
737
 
661
738
  List workflow runs (triggered executions) for a specific deployed workflow, newest first
@@ -797,6 +874,30 @@ Update a durable workflow's name and/or description
797
874
  npx zapier-sdk update-workflow <workflow> [--name] [--description]
798
875
  ```
799
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
+
800
901
  ### Connections
801
902
 
802
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.1"};
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.1"};
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.1"};
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.1"};
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.1"};
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.1"};
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.1"};
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.1"};
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.1"};
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.1"};
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.1",
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.88.1",
98
- "@zapier/zapier-sdk-mcp": "0.18.16"
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",