@zapier/zapier-sdk-cli 0.61.2 → 0.61.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.61.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 072fe2b: Decode JSON-string `input` on `triggerWorkflow` and `runDurable`. Their `input`
8
+ field is freeform (`z.unknown()`), which the CLI surfaces as a raw string flag
9
+ and never JSON-parses, so `--input '{"a":1}'` reached the API as a string and
10
+ was double-encoded (server rejected it with `expected object, received string`).
11
+ The input is now normalized at the schema boundary: a `{`/`[`-leading JSON
12
+ string is decoded to its value, while objects and scalar strings pass through
13
+ unchanged. This also fixes programmatic callers passing a JSON string.
14
+ - Updated dependencies [072fe2b]
15
+ - @zapier/zapier-sdk@0.80.2
16
+ - @zapier/zapier-sdk-mcp@0.16.3
17
+
3
18
  ## 0.61.2
4
19
 
5
20
  ### Patch Changes
package/README.md CHANGED
@@ -746,7 +746,7 @@ Run a workflow source file as a run-once durable run on sdkdurableapi (no deploy
746
746
  | Option | Type | Required | Default | Possible Values | Description |
747
747
  | -------------------------- | --------- | -------- | ------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
748
748
  | `<source-files>` | `object` | ✅ | — | — | Source files keyed by filename → contents |
749
- | `--input` | `unknown` | ❌ | — | — | Input data passed to the run |
749
+ | `--input` | `unknown` | ❌ | — | — | Input data passed to the run. Accepts any JSON value, or its JSON-string encoding. |
750
750
  | `--dependencies` | `object` | ❌ | — | — | Optional npm package dependencies |
751
751
  | `--zapier-durable-version` | `string` | ❌ | — | — | Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Defaults to server-configured version if omitted. |
752
752
  | `--connections` | `object` | ❌ | — | — | Named connection aliases. Maps each alias to an object holding its Zapier connection ID, e.g. `{ "slack": { "connectionId": "123" } }`. |
@@ -766,10 +766,10 @@ Look up a workflow's trigger URL and fire it manually, as the authenticated acco
766
766
 
767
767
  **Options:**
768
768
 
769
- | Option | Type | Required | Default | Possible Values | Description |
770
- | ------------ | --------- | -------- | ------- | --------------- | -------------------------------------------------------------------------------------------------------- |
771
- | `<workflow>` | `string` | ✅ | — | — | Durable workflow ID |
772
- | `--input` | `unknown` | ❌ | — | — | JSON payload delivered as the trigger body. Sent as `application/json`; omit to fire with an empty body. |
769
+ | Option | Type | Required | Default | Possible Values | Description |
770
+ | ------------ | --------- | -------- | ------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
771
+ | `<workflow>` | `string` | ✅ | — | — | Durable workflow ID |
772
+ | `--input` | `unknown` | ❌ | — | — | JSON payload delivered as the trigger body. Accepts any JSON value, or its JSON-string encoding. Sent as `application/json`; omit to fire with an empty body. |
773
773
 
774
774
  **Usage:**
775
775
 
package/dist/cli.cjs CHANGED
@@ -1727,7 +1727,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
1727
1727
 
1728
1728
  // package.json
1729
1729
  var package_default = {
1730
- version: "0.61.2"};
1730
+ version: "0.61.3"};
1731
1731
 
1732
1732
  // src/telemetry/builders.ts
1733
1733
  function createCliBaseEvent(context = {}) {
@@ -7612,7 +7612,7 @@ function buildBoxLines(message) {
7612
7612
  // package.json with { type: 'json' }
7613
7613
  var package_default2 = {
7614
7614
  name: "@zapier/zapier-sdk-cli",
7615
- version: "0.61.2"};
7615
+ version: "0.61.3"};
7616
7616
 
7617
7617
  // src/sdk.ts
7618
7618
  zapierSdk.injectCliLogin(login_exports);
package/dist/cli.mjs CHANGED
@@ -1684,7 +1684,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
1684
1684
 
1685
1685
  // package.json
1686
1686
  var package_default = {
1687
- version: "0.61.2"};
1687
+ version: "0.61.3"};
1688
1688
 
1689
1689
  // src/telemetry/builders.ts
1690
1690
  function createCliBaseEvent(context = {}) {
@@ -7569,7 +7569,7 @@ function buildBoxLines(message) {
7569
7569
  // package.json with { type: 'json' }
7570
7570
  var package_default2 = {
7571
7571
  name: "@zapier/zapier-sdk-cli",
7572
- version: "0.61.2"};
7572
+ version: "0.61.3"};
7573
7573
 
7574
7574
  // src/sdk.ts
7575
7575
  injectCliLogin(login_exports);
@@ -4741,7 +4741,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
4741
4741
  // package.json with { type: 'json' }
4742
4742
  var package_default = {
4743
4743
  name: "@zapier/zapier-sdk-cli",
4744
- version: "0.61.2"};
4744
+ version: "0.61.3"};
4745
4745
 
4746
4746
  // src/experimental.ts
4747
4747
  experimental.injectCliLogin(login_exports);
@@ -4705,7 +4705,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
4705
4705
  // package.json with { type: 'json' }
4706
4706
  var package_default = {
4707
4707
  name: "@zapier/zapier-sdk-cli",
4708
- version: "0.61.2"};
4708
+ version: "0.61.3"};
4709
4709
 
4710
4710
  // src/experimental.ts
4711
4711
  injectCliLogin(login_exports);
package/dist/index.cjs CHANGED
@@ -4740,7 +4740,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
4740
4740
  // package.json with { type: 'json' }
4741
4741
  var package_default = {
4742
4742
  name: "@zapier/zapier-sdk-cli",
4743
- version: "0.61.2"};
4743
+ version: "0.61.3"};
4744
4744
 
4745
4745
  // src/sdk.ts
4746
4746
  zapierSdk.injectCliLogin(login_exports);
@@ -4780,7 +4780,7 @@ function createZapierCliSdk(options = {}) {
4780
4780
 
4781
4781
  // package.json
4782
4782
  var package_default2 = {
4783
- version: "0.61.2"};
4783
+ version: "0.61.3"};
4784
4784
 
4785
4785
  // src/telemetry/builders.ts
4786
4786
  function createCliBaseEvent(context = {}) {
package/dist/index.mjs CHANGED
@@ -4704,7 +4704,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
4704
4704
  // package.json with { type: 'json' }
4705
4705
  var package_default = {
4706
4706
  name: "@zapier/zapier-sdk-cli",
4707
- version: "0.61.2"};
4707
+ version: "0.61.3"};
4708
4708
 
4709
4709
  // src/sdk.ts
4710
4710
  injectCliLogin(login_exports);
@@ -4744,7 +4744,7 @@ function createZapierCliSdk(options = {}) {
4744
4744
 
4745
4745
  // package.json
4746
4746
  var package_default2 = {
4747
- version: "0.61.2"};
4747
+ version: "0.61.3"};
4748
4748
 
4749
4749
  // src/telemetry/builders.ts
4750
4750
  function createCliBaseEvent(context = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk-cli",
3
- "version": "0.61.2",
3
+ "version": "0.61.3",
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.80.1",
99
- "@zapier/zapier-sdk-mcp": "0.16.2"
98
+ "@zapier/zapier-sdk-mcp": "0.16.3",
99
+ "@zapier/zapier-sdk": "0.80.2"
100
100
  },
101
101
  "devDependencies": {
102
102
  "@types/express": "^5.0.3",