@zapier/zapier-sdk-cli 0.78.0 → 0.79.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 +19 -0
- package/README.md +2 -0
- package/dist/cli.cjs +12 -2
- package/dist/cli.mjs +12 -2
- package/dist/experimental.cjs +1 -1
- package/dist/experimental.d.mts +1 -1
- package/dist/experimental.d.ts +1 -1
- package/dist/experimental.mjs +1 -1
- package/dist/{extensions-B2RUri85.d.mts → extensions-BlLLLz3o.d.mts} +6 -0
- package/dist/{extensions-B2RUri85.d.ts → extensions-BlLLLz3o.d.ts} +6 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.79.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ef3540d: Added `correlationId` and `causationId` options on `createZapierSdk`, matching
|
|
8
|
+
`--correlation-id` and `--causation-id` CLI flags, and the `ZAPIER_CORRELATION_ID`
|
|
9
|
+
and `ZAPIER_CAUSATION_ID` environment variables. When set, they are emitted as
|
|
10
|
+
`zapier-correlation-id` and `zapier-causation-id` headers on every outbound
|
|
11
|
+
Zapier API request. Precedence for both ids is: explicit option, then
|
|
12
|
+
environment variable, and for correlation the SDK falls back to its per-call
|
|
13
|
+
id so requests still carry a trace identifier. Precedence is: explicit option,
|
|
14
|
+
then environment variable. Empty strings at either layer are treated as unset.
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [ef3540d]
|
|
19
|
+
- @zapier/zapier-sdk@0.105.0
|
|
20
|
+
- @zapier/zapier-sdk-mcp@0.21.11
|
|
21
|
+
|
|
3
22
|
## 0.78.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -194,6 +194,8 @@ These options are available for all commands:
|
|
|
194
194
|
| `--max-approval-retries` | | Maximum number of sequential approval rounds per request (one per gating policy) before giving up. Default: 2. |
|
|
195
195
|
| `--approval-mode` | | Approval flow behavior for manual approvals. "poll" creates the approval, opens it in a browser, polls until resolved, and retries the original request. "throw" creates the manual approval and throws a ZapierApprovalError with the approval URL so the caller can surface it. Server-created auto-mode approvals always poll until they reach a terminal status and retry the original request on approval, even when this option is "throw". "disabled" throws a ZapierApprovalError on approval-required responses without creating an approval. Resolution order is: explicit option, then ZAPIER_APPROVAL_MODE, then the default behavior (poll for interactive TTY, throw otherwise). |
|
|
196
196
|
| `--open-auto-mode-approvals-in-browser` | | By default, auto-mode approvals do not open in a browser. Enable this option to open the approval URL and watch the approval process. Resolution order is: explicit option, then ZAPIER_OPEN_AUTO_MODE_APPROVALS_IN_BROWSER, then false. |
|
|
197
|
+
| `--correlation-id <id>` | | Correlation ID for request tracing. When set, emitted as the `zapier-correlation-id` header on every outbound request. Falls back to the ZAPIER_CORRELATION_ID environment variable. |
|
|
198
|
+
| `--causation-id <id>` | | Causation ID for request tracing. When set, emitted as the `zapier-causation-id` header on every outbound request. Falls back to the ZAPIER_CAUSATION_ID environment variable. |
|
|
197
199
|
| `--can-include-shared-connections` | | Allow listing shared connections. |
|
|
198
200
|
| `--can-include-shared-tables` | | Allow listing shared tables. |
|
|
199
201
|
| `--can-delete-tables` | | Allow deleting tables. |
|
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.
|
|
605
|
+
version: "0.79.0"};
|
|
606
606
|
var PACKAGE_MANAGERS = ["npm", "pnpm", "yarn", "bun"];
|
|
607
607
|
var LOCKFILES = [
|
|
608
608
|
["pnpm-lock.yaml", "pnpm"],
|
|
@@ -8686,7 +8686,7 @@ function buildBoxLines(message) {
|
|
|
8686
8686
|
// package.json with { type: 'json' }
|
|
8687
8687
|
var package_default2 = {
|
|
8688
8688
|
name: "@zapier/zapier-sdk-cli",
|
|
8689
|
-
version: "0.
|
|
8689
|
+
version: "0.79.0"};
|
|
8690
8690
|
|
|
8691
8691
|
// src/sdk.ts
|
|
8692
8692
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
|
@@ -9242,6 +9242,12 @@ program.name("zapier-sdk").description("CLI for Zapier SDK").version(
|
|
|
9242
9242
|
).option(
|
|
9243
9243
|
"--max-concurrent-requests <count>",
|
|
9244
9244
|
"Max concurrent in-flight HTTP requests (default: 200). Pass 'Infinity' to disable."
|
|
9245
|
+
).option(
|
|
9246
|
+
"--correlation-id <id>",
|
|
9247
|
+
"Correlation ID emitted as the zapier-correlation-id header on every outbound request. Falls back to ZAPIER_CORRELATION_ID."
|
|
9248
|
+
).option(
|
|
9249
|
+
"--causation-id <id>",
|
|
9250
|
+
"Causation ID emitted as the zapier-causation-id header on every outbound request. Falls back to ZAPIER_CAUSATION_ID."
|
|
9245
9251
|
).option("--experimental", "Use the experimental SDK / CLI surface");
|
|
9246
9252
|
var booleanFlags = [];
|
|
9247
9253
|
for (const [key, fieldSchema] of Object.entries(
|
|
@@ -9287,6 +9293,8 @@ var maxNetworkRetryDelaySecondsStr = getFlagValue(
|
|
|
9287
9293
|
var maxNetworkRetryDelaySeconds = maxNetworkRetryDelaySecondsStr ? parseInt(maxNetworkRetryDelaySecondsStr, 10) : void 0;
|
|
9288
9294
|
var maxNetworkRetryDelayMsStr = getFlagValue("--max-network-retry-delay-ms");
|
|
9289
9295
|
var maxNetworkRetryDelayMs = maxNetworkRetryDelayMsStr ? parseInt(maxNetworkRetryDelayMsStr, 10) : void 0;
|
|
9296
|
+
var correlationId = getFlagValue("--correlation-id");
|
|
9297
|
+
var causationId = getFlagValue("--causation-id");
|
|
9290
9298
|
var maxConcurrentRequestsStr = getFlagValue("--max-concurrent-requests");
|
|
9291
9299
|
var maxConcurrentRequests;
|
|
9292
9300
|
if (maxConcurrentRequestsStr === void 0) {
|
|
@@ -9344,6 +9352,8 @@ program.exitOverride();
|
|
|
9344
9352
|
maxNetworkRetryDelaySeconds,
|
|
9345
9353
|
maxNetworkRetryDelayMs,
|
|
9346
9354
|
maxConcurrentRequests,
|
|
9355
|
+
correlationId,
|
|
9356
|
+
causationId,
|
|
9347
9357
|
onEvent: approvalProgress.onEvent,
|
|
9348
9358
|
...flagOverrides,
|
|
9349
9359
|
extensions
|
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.
|
|
561
|
+
version: "0.79.0"};
|
|
562
562
|
var PACKAGE_MANAGERS = ["npm", "pnpm", "yarn", "bun"];
|
|
563
563
|
var LOCKFILES = [
|
|
564
564
|
["pnpm-lock.yaml", "pnpm"],
|
|
@@ -8642,7 +8642,7 @@ function buildBoxLines(message) {
|
|
|
8642
8642
|
// package.json with { type: 'json' }
|
|
8643
8643
|
var package_default2 = {
|
|
8644
8644
|
name: "@zapier/zapier-sdk-cli",
|
|
8645
|
-
version: "0.
|
|
8645
|
+
version: "0.79.0"};
|
|
8646
8646
|
|
|
8647
8647
|
// src/sdk.ts
|
|
8648
8648
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
|
@@ -9198,6 +9198,12 @@ program.name("zapier-sdk").description("CLI for Zapier SDK").version(
|
|
|
9198
9198
|
).option(
|
|
9199
9199
|
"--max-concurrent-requests <count>",
|
|
9200
9200
|
"Max concurrent in-flight HTTP requests (default: 200). Pass 'Infinity' to disable."
|
|
9201
|
+
).option(
|
|
9202
|
+
"--correlation-id <id>",
|
|
9203
|
+
"Correlation ID emitted as the zapier-correlation-id header on every outbound request. Falls back to ZAPIER_CORRELATION_ID."
|
|
9204
|
+
).option(
|
|
9205
|
+
"--causation-id <id>",
|
|
9206
|
+
"Causation ID emitted as the zapier-causation-id header on every outbound request. Falls back to ZAPIER_CAUSATION_ID."
|
|
9201
9207
|
).option("--experimental", "Use the experimental SDK / CLI surface");
|
|
9202
9208
|
var booleanFlags = [];
|
|
9203
9209
|
for (const [key, fieldSchema] of Object.entries(
|
|
@@ -9243,6 +9249,8 @@ var maxNetworkRetryDelaySecondsStr = getFlagValue(
|
|
|
9243
9249
|
var maxNetworkRetryDelaySeconds = maxNetworkRetryDelaySecondsStr ? parseInt(maxNetworkRetryDelaySecondsStr, 10) : void 0;
|
|
9244
9250
|
var maxNetworkRetryDelayMsStr = getFlagValue("--max-network-retry-delay-ms");
|
|
9245
9251
|
var maxNetworkRetryDelayMs = maxNetworkRetryDelayMsStr ? parseInt(maxNetworkRetryDelayMsStr, 10) : void 0;
|
|
9252
|
+
var correlationId = getFlagValue("--correlation-id");
|
|
9253
|
+
var causationId = getFlagValue("--causation-id");
|
|
9246
9254
|
var maxConcurrentRequestsStr = getFlagValue("--max-concurrent-requests");
|
|
9247
9255
|
var maxConcurrentRequests;
|
|
9248
9256
|
if (maxConcurrentRequestsStr === void 0) {
|
|
@@ -9300,6 +9308,8 @@ program.exitOverride();
|
|
|
9300
9308
|
maxNetworkRetryDelaySeconds,
|
|
9301
9309
|
maxNetworkRetryDelayMs,
|
|
9302
9310
|
maxConcurrentRequests,
|
|
9311
|
+
correlationId,
|
|
9312
|
+
causationId,
|
|
9303
9313
|
onEvent: approvalProgress.onEvent,
|
|
9304
9314
|
...flagOverrides,
|
|
9305
9315
|
extensions
|
package/dist/experimental.cjs
CHANGED
|
@@ -7179,7 +7179,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
7179
7179
|
// package.json with { type: 'json' }
|
|
7180
7180
|
var package_default = {
|
|
7181
7181
|
name: "@zapier/zapier-sdk-cli",
|
|
7182
|
-
version: "0.
|
|
7182
|
+
version: "0.79.0"};
|
|
7183
7183
|
|
|
7184
7184
|
// src/sdk.ts
|
|
7185
7185
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
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-BlLLLz3o.mjs';
|
|
3
3
|
import '@zapier/zapier-sdk';
|
|
4
4
|
import '@zapier/kitcore';
|
|
5
5
|
import 'zod';
|
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-BlLLLz3o.js';
|
|
3
3
|
import '@zapier/zapier-sdk';
|
|
4
4
|
import '@zapier/kitcore';
|
|
5
5
|
import 'zod';
|
package/dist/experimental.mjs
CHANGED
|
@@ -7138,7 +7138,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
7138
7138
|
// package.json with { type: 'json' }
|
|
7139
7139
|
var package_default = {
|
|
7140
7140
|
name: "@zapier/zapier-sdk-cli",
|
|
7141
|
-
version: "0.
|
|
7141
|
+
version: "0.79.0"};
|
|
7142
7142
|
|
|
7143
7143
|
// src/sdk.ts
|
|
7144
7144
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
|
@@ -590,6 +590,8 @@ declare const signupPlugin: _zapier_kitcore.MethodPlugin<"signup", {
|
|
|
590
590
|
maxApprovalRetries?: number | undefined;
|
|
591
591
|
approvalMode?: "disabled" | "poll" | "throw" | undefined;
|
|
592
592
|
openAutoModeApprovalsInBrowser?: boolean | undefined;
|
|
593
|
+
correlationId?: string | undefined;
|
|
594
|
+
causationId?: string | undefined;
|
|
593
595
|
manifestPath?: string | undefined;
|
|
594
596
|
manifest?: _zapier_zapier_sdk.Manifest | undefined;
|
|
595
597
|
onEvent?: _zapier_zapier_sdk.EventCallback | undefined;
|
|
@@ -686,6 +688,8 @@ declare const loginPlugin: _zapier_kitcore.MethodPlugin<"login", {
|
|
|
686
688
|
maxApprovalRetries?: number | undefined;
|
|
687
689
|
approvalMode?: "disabled" | "poll" | "throw" | undefined;
|
|
688
690
|
openAutoModeApprovalsInBrowser?: boolean | undefined;
|
|
691
|
+
correlationId?: string | undefined;
|
|
692
|
+
causationId?: string | undefined;
|
|
689
693
|
manifestPath?: string | undefined;
|
|
690
694
|
manifest?: _zapier_zapier_sdk.Manifest | undefined;
|
|
691
695
|
onEvent?: _zapier_zapier_sdk.EventCallback | undefined;
|
|
@@ -758,6 +762,8 @@ declare const logoutPlugin: _zapier_kitcore.MethodPlugin<"logout", Record<string
|
|
|
758
762
|
maxApprovalRetries?: number | undefined;
|
|
759
763
|
approvalMode?: "disabled" | "poll" | "throw" | undefined;
|
|
760
764
|
openAutoModeApprovalsInBrowser?: boolean | undefined;
|
|
765
|
+
correlationId?: string | undefined;
|
|
766
|
+
causationId?: string | undefined;
|
|
761
767
|
manifestPath?: string | undefined;
|
|
762
768
|
manifest?: _zapier_zapier_sdk.Manifest | undefined;
|
|
763
769
|
onEvent?: _zapier_zapier_sdk.EventCallback | undefined;
|
|
@@ -590,6 +590,8 @@ declare const signupPlugin: _zapier_kitcore.MethodPlugin<"signup", {
|
|
|
590
590
|
maxApprovalRetries?: number | undefined;
|
|
591
591
|
approvalMode?: "disabled" | "poll" | "throw" | undefined;
|
|
592
592
|
openAutoModeApprovalsInBrowser?: boolean | undefined;
|
|
593
|
+
correlationId?: string | undefined;
|
|
594
|
+
causationId?: string | undefined;
|
|
593
595
|
manifestPath?: string | undefined;
|
|
594
596
|
manifest?: _zapier_zapier_sdk.Manifest | undefined;
|
|
595
597
|
onEvent?: _zapier_zapier_sdk.EventCallback | undefined;
|
|
@@ -686,6 +688,8 @@ declare const loginPlugin: _zapier_kitcore.MethodPlugin<"login", {
|
|
|
686
688
|
maxApprovalRetries?: number | undefined;
|
|
687
689
|
approvalMode?: "disabled" | "poll" | "throw" | undefined;
|
|
688
690
|
openAutoModeApprovalsInBrowser?: boolean | undefined;
|
|
691
|
+
correlationId?: string | undefined;
|
|
692
|
+
causationId?: string | undefined;
|
|
689
693
|
manifestPath?: string | undefined;
|
|
690
694
|
manifest?: _zapier_zapier_sdk.Manifest | undefined;
|
|
691
695
|
onEvent?: _zapier_zapier_sdk.EventCallback | undefined;
|
|
@@ -758,6 +762,8 @@ declare const logoutPlugin: _zapier_kitcore.MethodPlugin<"logout", Record<string
|
|
|
758
762
|
maxApprovalRetries?: number | undefined;
|
|
759
763
|
approvalMode?: "disabled" | "poll" | "throw" | undefined;
|
|
760
764
|
openAutoModeApprovalsInBrowser?: boolean | undefined;
|
|
765
|
+
correlationId?: string | undefined;
|
|
766
|
+
causationId?: string | undefined;
|
|
761
767
|
manifestPath?: string | undefined;
|
|
762
768
|
manifest?: _zapier_zapier_sdk.Manifest | undefined;
|
|
763
769
|
onEvent?: _zapier_zapier_sdk.EventCallback | undefined;
|
package/dist/index.cjs
CHANGED
|
@@ -7180,7 +7180,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
7180
7180
|
// package.json with { type: 'json' }
|
|
7181
7181
|
var package_default = {
|
|
7182
7182
|
name: "@zapier/zapier-sdk-cli",
|
|
7183
|
-
version: "0.
|
|
7183
|
+
version: "0.79.0"};
|
|
7184
7184
|
|
|
7185
7185
|
// src/sdk.ts
|
|
7186
7186
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
|
@@ -7264,7 +7264,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
7264
7264
|
|
|
7265
7265
|
// package.json
|
|
7266
7266
|
var package_default2 = {
|
|
7267
|
-
version: "0.
|
|
7267
|
+
version: "0.79.0"};
|
|
7268
7268
|
|
|
7269
7269
|
// src/telemetry/builders.ts
|
|
7270
7270
|
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-BlLLLz3o.mjs';
|
|
3
3
|
import '@zapier/kitcore';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'zod/v4/core';
|
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-BlLLLz3o.js';
|
|
3
3
|
import '@zapier/kitcore';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'zod/v4/core';
|
package/dist/index.mjs
CHANGED
|
@@ -7139,7 +7139,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
7139
7139
|
// package.json with { type: 'json' }
|
|
7140
7140
|
var package_default = {
|
|
7141
7141
|
name: "@zapier/zapier-sdk-cli",
|
|
7142
|
-
version: "0.
|
|
7142
|
+
version: "0.79.0"};
|
|
7143
7143
|
|
|
7144
7144
|
// src/sdk.ts
|
|
7145
7145
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
|
@@ -7223,7 +7223,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
7223
7223
|
|
|
7224
7224
|
// package.json
|
|
7225
7225
|
var package_default2 = {
|
|
7226
|
-
version: "0.
|
|
7226
|
+
version: "0.79.0"};
|
|
7227
7227
|
|
|
7228
7228
|
// src/telemetry/builders.ts
|
|
7229
7229
|
function createCliBaseEvent(context = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zapier/zapier-sdk-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.79.0",
|
|
4
4
|
"description": "Command line interface for Zapier SDK",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
"typescript": "^5.8.3",
|
|
96
96
|
"wrap-ansi": "^10.0.0",
|
|
97
97
|
"zod": "4.3.6",
|
|
98
|
-
"@zapier/zapier-sdk-mcp": "0.21.10",
|
|
99
98
|
"@zapier/kitcore": "0.19.0",
|
|
100
|
-
"@zapier/zapier-sdk": "0.
|
|
99
|
+
"@zapier/zapier-sdk-mcp": "0.21.11",
|
|
100
|
+
"@zapier/zapier-sdk": "0.105.0"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
103
|
"@types/cross-spawn": "^6.0.6",
|