@zapier/zapier-sdk-cli 0.68.0 → 0.70.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 +28 -0
- package/README.md +26 -7
- package/dist/cli.cjs +1719 -293
- package/dist/cli.mjs +1721 -297
- package/dist/experimental.cjs +1793 -30
- package/dist/experimental.d.mts +1 -1
- package/dist/experimental.d.ts +1 -1
- package/dist/experimental.mjs +1791 -33
- package/dist/{extensions-CU5Oy_Wv.d.mts → extensions-DSCQgX9d.d.mts} +177 -2
- package/dist/{extensions-CU5Oy_Wv.d.ts → extensions-DSCQgX9d.d.ts} +177 -2
- package/dist/index.cjs +1804 -33
- package/dist/index.d.mts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.mjs +1800 -35
- package/package.json +6 -4
- package/templates/setup/zapier-slack-test.mjs +38 -0
- package/templates/setup/zapier-slack-test.ts +38 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.70.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- af89cf8: Boolean CLI flags are now strict presence toggles, and list-taking positional arguments now collect every operand:
|
|
8
|
+
- `--flag` enables; omitting the flag uses the default. Passing a value (`--flag false` or `--flag=false`) is rejected with an error pointing at the correct spelling, instead of being silently ignored (which previously left the flag enabled). A positional argument whose literal value looks boolean can still be passed after a `--` terminator.
|
|
9
|
+
- Flags where disabling differs from omitting get an explicit disable form: `publish-workflow-version <id> --disabled` and `publish-workflow-draft <workflow> <draft> --disabled` publish without enabling. Generated CLI docs show the disable form wherever one exists.
|
|
10
|
+
- Commands reject unexpected extra positional arguments rather than ignoring them.
|
|
11
|
+
- Commands whose first argument is a list (`add`, `build-manifest`, `generate-app-types`, the `create-`/`update-`/`delete-table-records` and `-fields` commands) now collect every operand into the list: `npx zapier-sdk add slack google-sheets` adds both apps. Previously only the first value was used and the rest were silently ignored.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [bc7405e]
|
|
16
|
+
- @zapier/zapier-sdk@0.93.0
|
|
17
|
+
- @zapier/zapier-sdk-mcp@0.18.23
|
|
18
|
+
|
|
19
|
+
## 0.69.0
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- 67db455: Added the interactive `zapier-sdk setup` command for guided SDK installation, authentication, connection discovery, a Slack proof, and connected-app ideas in your AI agent.
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [67db455]
|
|
28
|
+
- @zapier/zapier-sdk@0.92.1
|
|
29
|
+
- @zapier/zapier-sdk-mcp@0.18.22
|
|
30
|
+
|
|
3
31
|
## 0.68.0
|
|
4
32
|
|
|
5
33
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
- [`get-login-config-path`](#get-login-config-path)
|
|
102
102
|
- [`init`](#init)
|
|
103
103
|
- [`mcp`](#mcp)
|
|
104
|
+
- [`setup`](#setup)
|
|
104
105
|
|
|
105
106
|
## Quick Start
|
|
106
107
|
|
|
@@ -120,6 +121,12 @@ npx @zapier/zapier-sdk-cli init my-zapier-app --non-interactive
|
|
|
120
121
|
|
|
121
122
|
_For existing projects._
|
|
122
123
|
|
|
124
|
+
Run the guided setup to add undeclared Zapier SDK dependencies, authenticate, and inspect your connected apps:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
npx @zapier/zapier-sdk-cli setup
|
|
128
|
+
```
|
|
129
|
+
|
|
123
130
|
If you already have a project and want to add the CLI as a dependency:
|
|
124
131
|
|
|
125
132
|
```bash
|
|
@@ -190,6 +197,8 @@ These options are available for all commands:
|
|
|
190
197
|
|
|
191
198
|
The CLI automatically generates commands from the SDK registry. All SDK functions are available as CLI commands using kebab-case naming.
|
|
192
199
|
|
|
200
|
+
Boolean flags are presence toggles and take no value: pass `--flag` to enable it, or omit the flag to use the default. Flags where disabling differs from omitting document a separate disable flag (e.g. `--disabled`). A value after a boolean flag (`--flag false`) is rejected as an extra argument.
|
|
201
|
+
|
|
193
202
|
### Accounts
|
|
194
203
|
|
|
195
204
|
#### `get-profile`
|
|
@@ -796,12 +805,12 @@ Publish an open draft as a new immutable workflow version. Advances the workflow
|
|
|
796
805
|
|
|
797
806
|
**Options:**
|
|
798
807
|
|
|
799
|
-
| Option
|
|
800
|
-
|
|
|
801
|
-
| `<workflow>`
|
|
802
|
-
| `<draft>`
|
|
803
|
-
| `--enabled`
|
|
804
|
-
| `--draft-revision`
|
|
808
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
809
|
+
| -------------------------- | --------- | -------- | ------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
810
|
+
| `<workflow>` | `string` | ✅ | — | — | Durable workflow ID |
|
|
811
|
+
| `<draft>` | `string` | ✅ | — | — | Workflow draft ID |
|
|
812
|
+
| `--enabled` / `--disabled` | `boolean` | ❌ | — | — | Set the workflow's enabled state as part of the publish. If omitted, the current enabled state is preserved. |
|
|
813
|
+
| `--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
814
|
|
|
806
815
|
**Usage:**
|
|
807
816
|
|
|
@@ -821,7 +830,7 @@ Publish a new version of a durable workflow. Enables the workflow by default.
|
|
|
821
830
|
| `<source-files>` | `object` | ✅ | — | — | Source files keyed by filename → contents |
|
|
822
831
|
| `--dependencies` | `object` | ❌ | — | — | Optional npm package dependencies |
|
|
823
832
|
| `--zapier-durable-version` | `string` | ❌ | — | — | Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Defaults to server-configured version if omitted. |
|
|
824
|
-
| `--enabled`
|
|
833
|
+
| `--enabled` / `--disabled` | `boolean` | ❌ | — | — | Enable the workflow after publishing. Defaults to true if omitted; pass false to publish without enabling. |
|
|
825
834
|
| `--ignore-open-drafts` | `boolean` | ❌ | — | — | Publish even though the workflow has open draft(s). Without this, the API rejects a direct publish with a 409 while any draft is open, since publishing the draft later would ship its stale content over this version. |
|
|
826
835
|
| `--connections` | `object` | ❌ | — | — | Map of connection aliases to Zapier connections used by the workflow. Pass `null` to clear an existing binding. |
|
|
827
836
|
| `--app-versions` | `object` | ❌ | — | — | Map of app keys to pinned app implementation/version used by the workflow. Pass `null` to clear an existing binding. |
|
|
@@ -1817,3 +1826,13 @@ Start MCP server for Zapier SDK
|
|
|
1817
1826
|
```bash
|
|
1818
1827
|
npx zapier-sdk mcp [--port]
|
|
1819
1828
|
```
|
|
1829
|
+
|
|
1830
|
+
#### `setup`
|
|
1831
|
+
|
|
1832
|
+
Set up the Zapier SDK in an existing or new project
|
|
1833
|
+
|
|
1834
|
+
**Usage:**
|
|
1835
|
+
|
|
1836
|
+
```bash
|
|
1837
|
+
npx zapier-sdk setup
|
|
1838
|
+
```
|