@zapier/zapier-sdk-cli 0.61.1 → 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 +24 -0
- package/README.md +5 -5
- package/dist/cli.cjs +4 -3
- package/dist/cli.mjs +4 -3
- package/dist/experimental.cjs +3 -2
- package/dist/experimental.d.mts +1 -1
- package/dist/experimental.d.ts +1 -1
- package/dist/experimental.mjs +3 -2
- package/dist/{extensions-DXyB9Vsr.d.mts → extensions-DggdwXJF.d.mts} +4 -0
- package/dist/{extensions-DXyB9Vsr.d.ts → extensions-DggdwXJF.d.ts} +4 -0
- package/dist/index.cjs +4 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +4 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
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
|
+
|
|
18
|
+
## 0.61.2
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 4fd8dce: _This release contains no user-facing changes._
|
|
23
|
+
- Updated dependencies [4fd8dce]
|
|
24
|
+
- @zapier/zapier-sdk@0.80.1
|
|
25
|
+
- @zapier/zapier-sdk-mcp@0.16.2
|
|
26
|
+
|
|
3
27
|
## 0.61.1
|
|
4
28
|
|
|
5
29
|
### 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.
|
|
1730
|
+
version: "0.61.3"};
|
|
1731
1731
|
|
|
1732
1732
|
// src/telemetry/builders.ts
|
|
1733
1733
|
function createCliBaseEvent(context = {}) {
|
|
@@ -4930,7 +4930,8 @@ async function runAccountAuth({
|
|
|
4930
4930
|
});
|
|
4931
4931
|
const scopedApi = zapierSdk.getOrCreateApiClient({
|
|
4932
4932
|
credentials: accessToken,
|
|
4933
|
-
baseUrl: credentialsBaseUrl2
|
|
4933
|
+
baseUrl: credentialsBaseUrl2,
|
|
4934
|
+
callerPackage: sdk.context.options?.callerPackage
|
|
4934
4935
|
});
|
|
4935
4936
|
const profile = await getProfile(scopedApi);
|
|
4936
4937
|
process.stderr.write(`${getProfileMessage(entryPoint, profile.email)}
|
|
@@ -7611,7 +7612,7 @@ function buildBoxLines(message) {
|
|
|
7611
7612
|
// package.json with { type: 'json' }
|
|
7612
7613
|
var package_default2 = {
|
|
7613
7614
|
name: "@zapier/zapier-sdk-cli",
|
|
7614
|
-
version: "0.61.
|
|
7615
|
+
version: "0.61.3"};
|
|
7615
7616
|
|
|
7616
7617
|
// src/sdk.ts
|
|
7617
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.
|
|
1687
|
+
version: "0.61.3"};
|
|
1688
1688
|
|
|
1689
1689
|
// src/telemetry/builders.ts
|
|
1690
1690
|
function createCliBaseEvent(context = {}) {
|
|
@@ -4887,7 +4887,8 @@ async function runAccountAuth({
|
|
|
4887
4887
|
});
|
|
4888
4888
|
const scopedApi = getOrCreateApiClient({
|
|
4889
4889
|
credentials: accessToken,
|
|
4890
|
-
baseUrl: credentialsBaseUrl2
|
|
4890
|
+
baseUrl: credentialsBaseUrl2,
|
|
4891
|
+
callerPackage: sdk.context.options?.callerPackage
|
|
4891
4892
|
});
|
|
4892
4893
|
const profile = await getProfile(scopedApi);
|
|
4893
4894
|
process.stderr.write(`${getProfileMessage(entryPoint, profile.email)}
|
|
@@ -7568,7 +7569,7 @@ function buildBoxLines(message) {
|
|
|
7568
7569
|
// package.json with { type: 'json' }
|
|
7569
7570
|
var package_default2 = {
|
|
7570
7571
|
name: "@zapier/zapier-sdk-cli",
|
|
7571
|
-
version: "0.61.
|
|
7572
|
+
version: "0.61.3"};
|
|
7572
7573
|
|
|
7573
7574
|
// src/sdk.ts
|
|
7574
7575
|
injectCliLogin(login_exports);
|
package/dist/experimental.cjs
CHANGED
|
@@ -2102,7 +2102,8 @@ async function runAccountAuth({
|
|
|
2102
2102
|
});
|
|
2103
2103
|
const scopedApi = zapierSdk.getOrCreateApiClient({
|
|
2104
2104
|
credentials: accessToken,
|
|
2105
|
-
baseUrl: credentialsBaseUrl
|
|
2105
|
+
baseUrl: credentialsBaseUrl,
|
|
2106
|
+
callerPackage: sdk.context.options?.callerPackage
|
|
2106
2107
|
});
|
|
2107
2108
|
const profile = await getProfile(scopedApi);
|
|
2108
2109
|
process.stderr.write(`${getProfileMessage(entryPoint, profile.email)}
|
|
@@ -4740,7 +4741,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
4740
4741
|
// package.json with { type: 'json' }
|
|
4741
4742
|
var package_default = {
|
|
4742
4743
|
name: "@zapier/zapier-sdk-cli",
|
|
4743
|
-
version: "0.61.
|
|
4744
|
+
version: "0.61.3"};
|
|
4744
4745
|
|
|
4745
4746
|
// src/experimental.ts
|
|
4746
4747
|
experimental.injectCliLogin(login_exports);
|
package/dist/experimental.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZapierSdkOptions } from '@zapier/zapier-sdk/experimental';
|
|
2
|
-
import { E as Extension, Z as ZapierSdkCli } from './extensions-
|
|
2
|
+
import { E as Extension, Z as ZapierSdkCli } from './extensions-DggdwXJF.mjs';
|
|
3
3
|
import '@zapier/zapier-sdk';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
package/dist/experimental.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZapierSdkOptions } from '@zapier/zapier-sdk/experimental';
|
|
2
|
-
import { E as Extension, Z as ZapierSdkCli } from './extensions-
|
|
2
|
+
import { E as Extension, Z as ZapierSdkCli } from './extensions-DggdwXJF.js';
|
|
3
3
|
import '@zapier/zapier-sdk';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
package/dist/experimental.mjs
CHANGED
|
@@ -2066,7 +2066,8 @@ async function runAccountAuth({
|
|
|
2066
2066
|
});
|
|
2067
2067
|
const scopedApi = getOrCreateApiClient({
|
|
2068
2068
|
credentials: accessToken,
|
|
2069
|
-
baseUrl: credentialsBaseUrl
|
|
2069
|
+
baseUrl: credentialsBaseUrl,
|
|
2070
|
+
callerPackage: sdk.context.options?.callerPackage
|
|
2070
2071
|
});
|
|
2071
2072
|
const profile = await getProfile(scopedApi);
|
|
2072
2073
|
process.stderr.write(`${getProfileMessage(entryPoint, profile.email)}
|
|
@@ -4704,7 +4705,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
4704
4705
|
// package.json with { type: 'json' }
|
|
4705
4706
|
var package_default = {
|
|
4706
4707
|
name: "@zapier/zapier-sdk-cli",
|
|
4707
|
-
version: "0.61.
|
|
4708
|
+
version: "0.61.3"};
|
|
4708
4709
|
|
|
4709
4710
|
// src/experimental.ts
|
|
4710
4711
|
injectCliLogin(login_exports);
|
package/dist/index.cjs
CHANGED
|
@@ -2101,7 +2101,8 @@ async function runAccountAuth({
|
|
|
2101
2101
|
});
|
|
2102
2102
|
const scopedApi = zapierSdk.getOrCreateApiClient({
|
|
2103
2103
|
credentials: accessToken,
|
|
2104
|
-
baseUrl: credentialsBaseUrl
|
|
2104
|
+
baseUrl: credentialsBaseUrl,
|
|
2105
|
+
callerPackage: sdk.context.options?.callerPackage
|
|
2105
2106
|
});
|
|
2106
2107
|
const profile = await getProfile(scopedApi);
|
|
2107
2108
|
process.stderr.write(`${getProfileMessage(entryPoint, profile.email)}
|
|
@@ -4739,7 +4740,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
4739
4740
|
// package.json with { type: 'json' }
|
|
4740
4741
|
var package_default = {
|
|
4741
4742
|
name: "@zapier/zapier-sdk-cli",
|
|
4742
|
-
version: "0.61.
|
|
4743
|
+
version: "0.61.3"};
|
|
4743
4744
|
|
|
4744
4745
|
// src/sdk.ts
|
|
4745
4746
|
zapierSdk.injectCliLogin(login_exports);
|
|
@@ -4779,7 +4780,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
4779
4780
|
|
|
4780
4781
|
// package.json
|
|
4781
4782
|
var package_default2 = {
|
|
4782
|
-
version: "0.61.
|
|
4783
|
+
version: "0.61.3"};
|
|
4783
4784
|
|
|
4784
4785
|
// src/telemetry/builders.ts
|
|
4785
4786
|
function createCliBaseEvent(context = {}) {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZapierSdkOptions, BaseEvent } from '@zapier/zapier-sdk';
|
|
2
|
-
import { E as Extension, Z as ZapierSdkCli } from './extensions-
|
|
2
|
+
import { E as Extension, Z as ZapierSdkCli } from './extensions-DggdwXJF.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
interface ZapierCliSdkOptions extends ZapierSdkOptions {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZapierSdkOptions, BaseEvent } from '@zapier/zapier-sdk';
|
|
2
|
-
import { E as Extension, Z as ZapierSdkCli } from './extensions-
|
|
2
|
+
import { E as Extension, Z as ZapierSdkCli } from './extensions-DggdwXJF.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
interface ZapierCliSdkOptions extends ZapierSdkOptions {
|
package/dist/index.mjs
CHANGED
|
@@ -2065,7 +2065,8 @@ async function runAccountAuth({
|
|
|
2065
2065
|
});
|
|
2066
2066
|
const scopedApi = getOrCreateApiClient({
|
|
2067
2067
|
credentials: accessToken,
|
|
2068
|
-
baseUrl: credentialsBaseUrl
|
|
2068
|
+
baseUrl: credentialsBaseUrl,
|
|
2069
|
+
callerPackage: sdk.context.options?.callerPackage
|
|
2069
2070
|
});
|
|
2070
2071
|
const profile = await getProfile(scopedApi);
|
|
2071
2072
|
process.stderr.write(`${getProfileMessage(entryPoint, profile.email)}
|
|
@@ -4703,7 +4704,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
4703
4704
|
// package.json with { type: 'json' }
|
|
4704
4705
|
var package_default = {
|
|
4705
4706
|
name: "@zapier/zapier-sdk-cli",
|
|
4706
|
-
version: "0.61.
|
|
4707
|
+
version: "0.61.3"};
|
|
4707
4708
|
|
|
4708
4709
|
// src/sdk.ts
|
|
4709
4710
|
injectCliLogin(login_exports);
|
|
@@ -4743,7 +4744,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
4743
4744
|
|
|
4744
4745
|
// package.json
|
|
4745
4746
|
var package_default2 = {
|
|
4746
|
-
version: "0.61.
|
|
4747
|
+
version: "0.61.3"};
|
|
4747
4748
|
|
|
4748
4749
|
// src/telemetry/builders.ts
|
|
4749
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.
|
|
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.
|
|
99
|
-
"@zapier/zapier-sdk
|
|
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",
|