@zapier/zapier-sdk-cli 0.75.2 โ†’ 0.77.0

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,30 @@
1
1
  # @zapier/zapier-sdk-cli
2
2
 
3
+ ## 0.77.0
4
+
5
+ ### Minor Changes
6
+
7
+ - cfc7020: Added `importWorkflow` (experimental), exposed in the CLI as `import-workflow`. Converts an existing Zap into a durable workflow: pass `zap` (the Zap ID) and optionally `name` and `private`. Returns `{ workflow, draft, issues }`. The workflow is created disabled with no published version; publish the draft to make it live, once any blocking `issues` are resolved. The original Zap is untouched.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [cfc7020]
12
+ - @zapier/zapier-sdk@0.101.0
13
+ - @zapier/zapier-sdk-mcp@0.21.1
14
+
15
+ ## 0.76.0
16
+
17
+ ### Minor Changes
18
+
19
+ - 22a885c: Added `validate-workflow` (experimental) to check durable workflow source from the terminal. Pass the source files as a JSON object of path โ†’ source (or answer the prompts) plus an optional `--entrypoint-file`. An empty `issues` array means the source is valid; otherwise each issue names the file and line it points at.
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [22a885c]
24
+ - Updated dependencies [22a885c]
25
+ - @zapier/zapier-sdk-mcp@0.21.0
26
+ - @zapier/zapier-sdk@0.100.0
27
+
3
28
  ## 0.75.2
4
29
 
5
30
  ### Patch Changes
package/README.md CHANGED
@@ -42,6 +42,7 @@
42
42
  - [`get-workflow-draft`](#get-workflow-draft--experimental)
43
43
  - [`get-workflow-run`](#get-workflow-run--experimental)
44
44
  - [`get-workflow-version`](#get-workflow-version--experimental)
45
+ - [`import-workflow`](#import-workflow--experimental)
45
46
  - [`list-durable-runs`](#list-durable-runs--experimental)
46
47
  - [`list-workflow-drafts`](#list-workflow-drafts--experimental)
47
48
  - [`list-workflow-runs`](#list-workflow-runs--experimental)
@@ -53,6 +54,7 @@
53
54
  - [`trigger-workflow`](#trigger-workflow--experimental)
54
55
  - [`update-workflow`](#update-workflow--experimental)
55
56
  - [`update-workflow-draft`](#update-workflow-draft--experimental)
57
+ - [`validate-workflow`](#validate-workflow--experimental)
56
58
  - [Connections](#connections)
57
59
  - [`create-connection`](#create-connection)
58
60
  - [`find-first-connection`](#find-first-connection)
@@ -746,6 +748,24 @@ Get full details of a workflow version including source files
746
748
  npx zapier-sdk get-workflow-version <workflow> <version>
747
749
  ```
748
750
 
751
+ #### `import-workflow` ๐Ÿงช _experimental_
752
+
753
+ Convert an existing Zap into a durable workflow. Transforms the Zap's latest published version (falling back to its draft only when the Zap has never been published) and puts the resulting source in an open draft. The workflow is created disabled with no published version, so publish the draft to make it live. The original Zap is untouched and keeps running.
754
+
755
+ **Options:**
756
+
757
+ | Option | Type | Required | Default | Possible Values | Description |
758
+ | ----------- | --------- | -------- | ------- | --------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
759
+ | `<zap>` | `string` | โœ… | โ€” | โ€” | ID of the Zap to import. Must be owned by the requesting user. Recorded on the created workflow as source_zap_id. |
760
+ | `--name` | `string` | โŒ | โ€” | โ€” | Name for the created workflow. Defaults to a kebab-cased form of the Zap's title, or "imported-workflow" when the Zap has no title. |
761
+ | `--private` | `boolean` | โŒ | โ€” | โ€” | Restrict the created workflow to the creating user. Defaults to false, which makes it account-visible. |
762
+
763
+ **Usage:**
764
+
765
+ ```bash
766
+ npx zapier-sdk import-workflow <zap> [--name] [--private]
767
+ ```
768
+
749
769
  #### `list-durable-runs` ๐Ÿงช _experimental_
750
770
 
751
771
  List run-once durable runs for the authenticated account, newest first
@@ -973,6 +993,23 @@ Update (autosave) an open workflow draft
973
993
  npx zapier-sdk update-workflow-draft <workflow> <draft> <source-files> [--zapier-durable-version] [--dependencies] [--draft-revision] [--trigger] [--connections] [--app-versions] [--manual]
974
994
  ```
975
995
 
996
+ #### `validate-workflow` ๐Ÿงช _experimental_
997
+
998
+ Validate durable workflow source without publishing it. Returns source diagnostics; issue kinds are extensible and may be unfamiliar to the client.
999
+
1000
+ **Options:**
1001
+
1002
+ | Option | Type | Required | Default | Possible Values | Description |
1003
+ | ------------------- | -------- | -------- | ------- | --------------- | --------------------------------------------------------------------------------- |
1004
+ | `<source-files>` | `object` | โœ… | โ€” | โ€” | Exact TypeScript sources keyed by absolute logical path. |
1005
+ | `--entrypoint-file` | `string` | โŒ | โ€” | โ€” | Absolute logical path of the entry file in sourceFiles. Defaults to /workflow.ts. |
1006
+
1007
+ **Usage:**
1008
+
1009
+ ```bash
1010
+ npx zapier-sdk validate-workflow <source-files> [--entrypoint-file]
1011
+ ```
1012
+
976
1013
  ### Connections
977
1014
 
978
1015
  #### `create-connection`
package/dist/cli.cjs CHANGED
@@ -602,7 +602,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
602
602
 
603
603
  // package.json
604
604
  var package_default = {
605
- version: "0.75.2"};
605
+ version: "0.77.0"};
606
606
  var PACKAGE_MANAGERS = ["npm", "pnpm", "yarn", "bun"];
607
607
  var LOCKFILES = [
608
608
  ["pnpm-lock.yaml", "pnpm"],
@@ -8367,7 +8367,7 @@ function buildBoxLines(message) {
8367
8367
  // package.json with { type: 'json' }
8368
8368
  var package_default2 = {
8369
8369
  name: "@zapier/zapier-sdk-cli",
8370
- version: "0.75.2"};
8370
+ version: "0.77.0"};
8371
8371
 
8372
8372
  // src/sdk.ts
8373
8373
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
package/dist/cli.mjs CHANGED
@@ -558,7 +558,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
558
558
 
559
559
  // package.json
560
560
  var package_default = {
561
- version: "0.75.2"};
561
+ version: "0.77.0"};
562
562
  var PACKAGE_MANAGERS = ["npm", "pnpm", "yarn", "bun"];
563
563
  var LOCKFILES = [
564
564
  ["pnpm-lock.yaml", "pnpm"],
@@ -8323,7 +8323,7 @@ function buildBoxLines(message) {
8323
8323
  // package.json with { type: 'json' }
8324
8324
  var package_default2 = {
8325
8325
  name: "@zapier/zapier-sdk-cli",
8326
- version: "0.75.2"};
8326
+ version: "0.77.0"};
8327
8327
 
8328
8328
  // src/sdk.ts
8329
8329
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -6860,7 +6860,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
6860
6860
  // package.json with { type: 'json' }
6861
6861
  var package_default = {
6862
6862
  name: "@zapier/zapier-sdk-cli",
6863
- version: "0.75.2"};
6863
+ version: "0.77.0"};
6864
6864
 
6865
6865
  // src/sdk.ts
6866
6866
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -6819,7 +6819,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
6819
6819
  // package.json with { type: 'json' }
6820
6820
  var package_default = {
6821
6821
  name: "@zapier/zapier-sdk-cli",
6822
- version: "0.75.2"};
6822
+ version: "0.77.0"};
6823
6823
 
6824
6824
  // src/sdk.ts
6825
6825
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
package/dist/index.cjs CHANGED
@@ -6861,7 +6861,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
6861
6861
  // package.json with { type: 'json' }
6862
6862
  var package_default = {
6863
6863
  name: "@zapier/zapier-sdk-cli",
6864
- version: "0.75.2"};
6864
+ version: "0.77.0"};
6865
6865
 
6866
6866
  // src/sdk.ts
6867
6867
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -6945,7 +6945,7 @@ function createZapierCliSdk(options = {}) {
6945
6945
 
6946
6946
  // package.json
6947
6947
  var package_default2 = {
6948
- version: "0.75.2"};
6948
+ version: "0.77.0"};
6949
6949
 
6950
6950
  // src/telemetry/builders.ts
6951
6951
  function createCliBaseEvent(context = {}) {
package/dist/index.mjs CHANGED
@@ -6820,7 +6820,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
6820
6820
  // package.json with { type: 'json' }
6821
6821
  var package_default = {
6822
6822
  name: "@zapier/zapier-sdk-cli",
6823
- version: "0.75.2"};
6823
+ version: "0.77.0"};
6824
6824
 
6825
6825
  // src/sdk.ts
6826
6826
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -6904,7 +6904,7 @@ function createZapierCliSdk(options = {}) {
6904
6904
 
6905
6905
  // package.json
6906
6906
  var package_default2 = {
6907
- version: "0.75.2"};
6907
+ version: "0.77.0"};
6908
6908
 
6909
6909
  // src/telemetry/builders.ts
6910
6910
  function createCliBaseEvent(context = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk-cli",
3
- "version": "0.75.2",
3
+ "version": "0.77.0",
4
4
  "description": "Command line interface for Zapier SDK",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -95,8 +95,8 @@
95
95
  "typescript": "^5.8.3",
96
96
  "wrap-ansi": "^10.0.0",
97
97
  "zod": "4.3.6",
98
- "@zapier/zapier-sdk": "0.99.0",
99
- "@zapier/zapier-sdk-mcp": "0.20.5"
98
+ "@zapier/zapier-sdk": "0.101.0",
99
+ "@zapier/zapier-sdk-mcp": "0.21.1"
100
100
  },
101
101
  "devDependencies": {
102
102
  "@types/cross-spawn": "^6.0.6",