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

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,14 @@
1
1
  # @zapier/zapier-sdk-cli
2
2
 
3
+ ## 0.67.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 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.
8
+ - Updated dependencies [e24c236]
9
+ - @zapier/zapier-sdk@0.89.0
10
+ - @zapier/zapier-sdk-mcp@0.18.17
11
+
3
12
  ## 0.67.1
4
13
 
5
14
  ### Patch Changes
package/README.md CHANGED
@@ -35,9 +35,11 @@
35
35
  - [`get-durable-run`](#get-durable-run--experimental)
36
36
  - [`get-trigger-run`](#get-trigger-run--experimental)
37
37
  - [`get-workflow`](#get-workflow--experimental)
38
+ - [`get-workflow-draft`](#get-workflow-draft--experimental)
38
39
  - [`get-workflow-run`](#get-workflow-run--experimental)
39
40
  - [`get-workflow-version`](#get-workflow-version--experimental)
40
41
  - [`list-durable-runs`](#list-durable-runs--experimental)
42
+ - [`list-workflow-drafts`](#list-workflow-drafts--experimental)
41
43
  - [`list-workflow-runs`](#list-workflow-runs--experimental)
42
44
  - [`list-workflow-versions`](#list-workflow-versions--experimental)
43
45
  - [`list-workflows`](#list-workflows--experimental)
@@ -604,6 +606,23 @@ Get a durable workflow with its current version details and trigger claim status
604
606
  npx zapier-sdk get-workflow <workflow>
605
607
  ```
606
608
 
609
+ #### `get-workflow-draft` ๐Ÿงช _experimental_
610
+
611
+ Get full details of a workflow draft including source files
612
+
613
+ **Options:**
614
+
615
+ | Option | Type | Required | Default | Possible Values | Description |
616
+ | ------------ | -------- | -------- | ------- | --------------- | ------------------- |
617
+ | `<workflow>` | `string` | โœ… | โ€” | โ€” | Durable workflow ID |
618
+ | `<draft>` | `string` | โœ… | โ€” | โ€” | Workflow draft ID |
619
+
620
+ **Usage:**
621
+
622
+ ```bash
623
+ npx zapier-sdk get-workflow-draft <workflow> <draft>
624
+ ```
625
+
607
626
  #### `get-workflow-run` ๐Ÿงช _experimental_
608
627
 
609
628
  Get the current state of a workflow run (a triggered execution of a deployed workflow)
@@ -656,6 +675,27 @@ List run-once durable runs for the authenticated account, newest first
656
675
  npx zapier-sdk list-durable-runs [--page-size] [--cursor] [--max-items]
657
676
  ```
658
677
 
678
+ #### `list-workflow-drafts` ๐Ÿงช _experimental_
679
+
680
+ List drafts for a workflow, most recently edited first (open drafts by default)
681
+
682
+ **Options:**
683
+
684
+ | Option | Type | Required | Default | Possible Values | Description |
685
+ | ------------- | -------- | -------- | ------- | ------------------- | ----------------------------------------------------- |
686
+ | `<workflow>` | `string` | โœ… | โ€” | โ€” | Durable workflow ID |
687
+ | `--status` | `string` | โŒ | โ€” | `open`, `discarded` | Filter by draft status (server default: open) |
688
+ | `--slug` | `string` | โŒ | โ€” | โ€” | Filter by exact slug match; returns at most one draft |
689
+ | `--page-size` | `number` | โŒ | โ€” | โ€” | Number of drafts per page (max 100) |
690
+ | `--cursor` | `string` | โŒ | โ€” | โ€” | Pagination cursor |
691
+ | `--max-items` | `number` | โŒ | โ€” | โ€” | Maximum total drafts to return across all pages |
692
+
693
+ **Usage:**
694
+
695
+ ```bash
696
+ npx zapier-sdk list-workflow-drafts <workflow> [--status] [--slug] [--page-size] [--cursor] [--max-items]
697
+ ```
698
+
659
699
  #### `list-workflow-runs` ๐Ÿงช _experimental_
660
700
 
661
701
  List workflow runs (triggered executions) for a specific deployed workflow, newest first
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.2"};
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.2"};
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.2"};
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.2"};
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.2"};
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.2"};
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.2"};
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.2"};
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.2"};
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.2"};
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.2",
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.89.0",
98
+ "@zapier/zapier-sdk-mcp": "0.18.17"
99
99
  },
100
100
  "devDependencies": {
101
101
  "@types/express": "^5.0.3",