@zapier/zapier-sdk-cli 0.78.0 → 0.79.1
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 +29 -0
- package/README.md +2 -0
- package/dist/cli.cjs +23 -14
- package/dist/cli.mjs +23 -14
- package/dist/experimental.cjs +12 -13
- package/dist/experimental.d.mts +1 -1
- package/dist/experimental.d.ts +1 -1
- package/dist/experimental.mjs +12 -13
- package/dist/{extensions-B2RUri85.d.mts → extensions-B6a6ysnh.d.mts} +626 -79
- package/dist/{extensions-B2RUri85.d.ts → extensions-B6a6ysnh.d.ts} +626 -79
- package/dist/index.cjs +13 -14
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +13 -14
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.79.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [4b9d735]
|
|
8
|
+
- Updated dependencies [4b9d735]
|
|
9
|
+
- @zapier/kitcore@0.20.0
|
|
10
|
+
- @zapier/zapier-sdk@0.106.0
|
|
11
|
+
- @zapier/zapier-sdk-mcp@0.21.12
|
|
12
|
+
|
|
13
|
+
## 0.79.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- ef3540d: Added `correlationId` and `causationId` options on `createZapierSdk`, matching
|
|
18
|
+
`--correlation-id` and `--causation-id` CLI flags, and the `ZAPIER_CORRELATION_ID`
|
|
19
|
+
and `ZAPIER_CAUSATION_ID` environment variables. When set, they are emitted as
|
|
20
|
+
`zapier-correlation-id` and `zapier-causation-id` headers on every outbound
|
|
21
|
+
Zapier API request. Precedence for both ids is: explicit option, then
|
|
22
|
+
environment variable, and for correlation the SDK falls back to its per-call
|
|
23
|
+
id so requests still carry a trace identifier. Precedence is: explicit option,
|
|
24
|
+
then environment variable. Empty strings at either layer are treated as unset.
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [ef3540d]
|
|
29
|
+
- @zapier/zapier-sdk@0.105.0
|
|
30
|
+
- @zapier/zapier-sdk-mcp@0.21.11
|
|
31
|
+
|
|
3
32
|
## 0.78.0
|
|
4
33
|
|
|
5
34
|
### 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.1"};
|
|
606
606
|
var PACKAGE_MANAGERS = ["npm", "pnpm", "yarn", "bun"];
|
|
607
607
|
var LOCKFILES = [
|
|
608
608
|
["pnpm-lock.yaml", "pnpm"],
|
|
@@ -8142,20 +8142,19 @@ var listConnectionsRef2 = zapierSdk.declareMethod({ id: "listConnections" });
|
|
|
8142
8142
|
var loginRef = zapierSdk.declareMethod({ id: "login" });
|
|
8143
8143
|
var logoutRef = zapierSdk.declareMethod({ id: "logout" });
|
|
8144
8144
|
var signupRef = zapierSdk.declareMethod({ id: "signup" });
|
|
8145
|
-
var setupImports = [
|
|
8146
|
-
getProfileRef,
|
|
8147
|
-
listConnectionsRef2,
|
|
8148
|
-
loginRef,
|
|
8149
|
-
logoutRef,
|
|
8150
|
-
signupRef,
|
|
8151
|
-
zapierSdk.apiPluginRef,
|
|
8152
|
-
zapierSdk.resolveCredentialsPluginRef,
|
|
8153
|
-
zapierSdk.eventEmissionPluginRef,
|
|
8154
|
-
zapierSdk.sdkOptionsPluginRef
|
|
8155
|
-
];
|
|
8156
8145
|
var setupPlugin = zapierSdk.defineMethod({
|
|
8157
8146
|
name: "setup",
|
|
8158
|
-
imports:
|
|
8147
|
+
imports: [
|
|
8148
|
+
getProfileRef,
|
|
8149
|
+
listConnectionsRef2,
|
|
8150
|
+
loginRef,
|
|
8151
|
+
logoutRef,
|
|
8152
|
+
signupRef,
|
|
8153
|
+
zapierSdk.apiPluginRef,
|
|
8154
|
+
zapierSdk.resolveCredentialsPluginRef,
|
|
8155
|
+
zapierSdk.eventEmissionPluginRef,
|
|
8156
|
+
zapierSdk.sdkOptionsPluginRef
|
|
8157
|
+
],
|
|
8159
8158
|
categories: ["utility"],
|
|
8160
8159
|
supportsJsonOutput: false,
|
|
8161
8160
|
inputSchema: SetupSchema,
|
|
@@ -8686,7 +8685,7 @@ function buildBoxLines(message) {
|
|
|
8686
8685
|
// package.json with { type: 'json' }
|
|
8687
8686
|
var package_default2 = {
|
|
8688
8687
|
name: "@zapier/zapier-sdk-cli",
|
|
8689
|
-
version: "0.
|
|
8688
|
+
version: "0.79.1"};
|
|
8690
8689
|
|
|
8691
8690
|
// src/sdk.ts
|
|
8692
8691
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
|
@@ -9242,6 +9241,12 @@ program.name("zapier-sdk").description("CLI for Zapier SDK").version(
|
|
|
9242
9241
|
).option(
|
|
9243
9242
|
"--max-concurrent-requests <count>",
|
|
9244
9243
|
"Max concurrent in-flight HTTP requests (default: 200). Pass 'Infinity' to disable."
|
|
9244
|
+
).option(
|
|
9245
|
+
"--correlation-id <id>",
|
|
9246
|
+
"Correlation ID emitted as the zapier-correlation-id header on every outbound request. Falls back to ZAPIER_CORRELATION_ID."
|
|
9247
|
+
).option(
|
|
9248
|
+
"--causation-id <id>",
|
|
9249
|
+
"Causation ID emitted as the zapier-causation-id header on every outbound request. Falls back to ZAPIER_CAUSATION_ID."
|
|
9245
9250
|
).option("--experimental", "Use the experimental SDK / CLI surface");
|
|
9246
9251
|
var booleanFlags = [];
|
|
9247
9252
|
for (const [key, fieldSchema] of Object.entries(
|
|
@@ -9287,6 +9292,8 @@ var maxNetworkRetryDelaySecondsStr = getFlagValue(
|
|
|
9287
9292
|
var maxNetworkRetryDelaySeconds = maxNetworkRetryDelaySecondsStr ? parseInt(maxNetworkRetryDelaySecondsStr, 10) : void 0;
|
|
9288
9293
|
var maxNetworkRetryDelayMsStr = getFlagValue("--max-network-retry-delay-ms");
|
|
9289
9294
|
var maxNetworkRetryDelayMs = maxNetworkRetryDelayMsStr ? parseInt(maxNetworkRetryDelayMsStr, 10) : void 0;
|
|
9295
|
+
var correlationId = getFlagValue("--correlation-id");
|
|
9296
|
+
var causationId = getFlagValue("--causation-id");
|
|
9290
9297
|
var maxConcurrentRequestsStr = getFlagValue("--max-concurrent-requests");
|
|
9291
9298
|
var maxConcurrentRequests;
|
|
9292
9299
|
if (maxConcurrentRequestsStr === void 0) {
|
|
@@ -9344,6 +9351,8 @@ program.exitOverride();
|
|
|
9344
9351
|
maxNetworkRetryDelaySeconds,
|
|
9345
9352
|
maxNetworkRetryDelayMs,
|
|
9346
9353
|
maxConcurrentRequests,
|
|
9354
|
+
correlationId,
|
|
9355
|
+
causationId,
|
|
9347
9356
|
onEvent: approvalProgress.onEvent,
|
|
9348
9357
|
...flagOverrides,
|
|
9349
9358
|
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.1"};
|
|
562
562
|
var PACKAGE_MANAGERS = ["npm", "pnpm", "yarn", "bun"];
|
|
563
563
|
var LOCKFILES = [
|
|
564
564
|
["pnpm-lock.yaml", "pnpm"],
|
|
@@ -8098,20 +8098,19 @@ var listConnectionsRef2 = declareMethod({ id: "listConnections" });
|
|
|
8098
8098
|
var loginRef = declareMethod({ id: "login" });
|
|
8099
8099
|
var logoutRef = declareMethod({ id: "logout" });
|
|
8100
8100
|
var signupRef = declareMethod({ id: "signup" });
|
|
8101
|
-
var setupImports = [
|
|
8102
|
-
getProfileRef,
|
|
8103
|
-
listConnectionsRef2,
|
|
8104
|
-
loginRef,
|
|
8105
|
-
logoutRef,
|
|
8106
|
-
signupRef,
|
|
8107
|
-
apiPluginRef,
|
|
8108
|
-
resolveCredentialsPluginRef,
|
|
8109
|
-
eventEmissionPluginRef,
|
|
8110
|
-
sdkOptionsPluginRef
|
|
8111
|
-
];
|
|
8112
8101
|
var setupPlugin = defineMethod({
|
|
8113
8102
|
name: "setup",
|
|
8114
|
-
imports:
|
|
8103
|
+
imports: [
|
|
8104
|
+
getProfileRef,
|
|
8105
|
+
listConnectionsRef2,
|
|
8106
|
+
loginRef,
|
|
8107
|
+
logoutRef,
|
|
8108
|
+
signupRef,
|
|
8109
|
+
apiPluginRef,
|
|
8110
|
+
resolveCredentialsPluginRef,
|
|
8111
|
+
eventEmissionPluginRef,
|
|
8112
|
+
sdkOptionsPluginRef
|
|
8113
|
+
],
|
|
8115
8114
|
categories: ["utility"],
|
|
8116
8115
|
supportsJsonOutput: false,
|
|
8117
8116
|
inputSchema: SetupSchema,
|
|
@@ -8642,7 +8641,7 @@ function buildBoxLines(message) {
|
|
|
8642
8641
|
// package.json with { type: 'json' }
|
|
8643
8642
|
var package_default2 = {
|
|
8644
8643
|
name: "@zapier/zapier-sdk-cli",
|
|
8645
|
-
version: "0.
|
|
8644
|
+
version: "0.79.1"};
|
|
8646
8645
|
|
|
8647
8646
|
// src/sdk.ts
|
|
8648
8647
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
|
@@ -9198,6 +9197,12 @@ program.name("zapier-sdk").description("CLI for Zapier SDK").version(
|
|
|
9198
9197
|
).option(
|
|
9199
9198
|
"--max-concurrent-requests <count>",
|
|
9200
9199
|
"Max concurrent in-flight HTTP requests (default: 200). Pass 'Infinity' to disable."
|
|
9200
|
+
).option(
|
|
9201
|
+
"--correlation-id <id>",
|
|
9202
|
+
"Correlation ID emitted as the zapier-correlation-id header on every outbound request. Falls back to ZAPIER_CORRELATION_ID."
|
|
9203
|
+
).option(
|
|
9204
|
+
"--causation-id <id>",
|
|
9205
|
+
"Causation ID emitted as the zapier-causation-id header on every outbound request. Falls back to ZAPIER_CAUSATION_ID."
|
|
9201
9206
|
).option("--experimental", "Use the experimental SDK / CLI surface");
|
|
9202
9207
|
var booleanFlags = [];
|
|
9203
9208
|
for (const [key, fieldSchema] of Object.entries(
|
|
@@ -9243,6 +9248,8 @@ var maxNetworkRetryDelaySecondsStr = getFlagValue(
|
|
|
9243
9248
|
var maxNetworkRetryDelaySeconds = maxNetworkRetryDelaySecondsStr ? parseInt(maxNetworkRetryDelaySecondsStr, 10) : void 0;
|
|
9244
9249
|
var maxNetworkRetryDelayMsStr = getFlagValue("--max-network-retry-delay-ms");
|
|
9245
9250
|
var maxNetworkRetryDelayMs = maxNetworkRetryDelayMsStr ? parseInt(maxNetworkRetryDelayMsStr, 10) : void 0;
|
|
9251
|
+
var correlationId = getFlagValue("--correlation-id");
|
|
9252
|
+
var causationId = getFlagValue("--causation-id");
|
|
9246
9253
|
var maxConcurrentRequestsStr = getFlagValue("--max-concurrent-requests");
|
|
9247
9254
|
var maxConcurrentRequests;
|
|
9248
9255
|
if (maxConcurrentRequestsStr === void 0) {
|
|
@@ -9300,6 +9307,8 @@ program.exitOverride();
|
|
|
9300
9307
|
maxNetworkRetryDelaySeconds,
|
|
9301
9308
|
maxNetworkRetryDelayMs,
|
|
9302
9309
|
maxConcurrentRequests,
|
|
9310
|
+
correlationId,
|
|
9311
|
+
causationId,
|
|
9303
9312
|
onEvent: approvalProgress.onEvent,
|
|
9304
9313
|
...flagOverrides,
|
|
9305
9314
|
extensions
|
package/dist/experimental.cjs
CHANGED
|
@@ -6646,20 +6646,19 @@ var listConnectionsRef2 = zapierSdk.declareMethod({ id: "listConnections" });
|
|
|
6646
6646
|
var loginRef = zapierSdk.declareMethod({ id: "login" });
|
|
6647
6647
|
var logoutRef = zapierSdk.declareMethod({ id: "logout" });
|
|
6648
6648
|
var signupRef = zapierSdk.declareMethod({ id: "signup" });
|
|
6649
|
-
var setupImports = [
|
|
6650
|
-
getProfileRef,
|
|
6651
|
-
listConnectionsRef2,
|
|
6652
|
-
loginRef,
|
|
6653
|
-
logoutRef,
|
|
6654
|
-
signupRef,
|
|
6655
|
-
zapierSdk.apiPluginRef,
|
|
6656
|
-
zapierSdk.resolveCredentialsPluginRef,
|
|
6657
|
-
zapierSdk.eventEmissionPluginRef,
|
|
6658
|
-
zapierSdk.sdkOptionsPluginRef
|
|
6659
|
-
];
|
|
6660
6649
|
var setupPlugin = zapierSdk.defineMethod({
|
|
6661
6650
|
name: "setup",
|
|
6662
|
-
imports:
|
|
6651
|
+
imports: [
|
|
6652
|
+
getProfileRef,
|
|
6653
|
+
listConnectionsRef2,
|
|
6654
|
+
loginRef,
|
|
6655
|
+
logoutRef,
|
|
6656
|
+
signupRef,
|
|
6657
|
+
zapierSdk.apiPluginRef,
|
|
6658
|
+
zapierSdk.resolveCredentialsPluginRef,
|
|
6659
|
+
zapierSdk.eventEmissionPluginRef,
|
|
6660
|
+
zapierSdk.sdkOptionsPluginRef
|
|
6661
|
+
],
|
|
6663
6662
|
categories: ["utility"],
|
|
6664
6663
|
supportsJsonOutput: false,
|
|
6665
6664
|
inputSchema: SetupSchema,
|
|
@@ -7179,7 +7178,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
7179
7178
|
// package.json with { type: 'json' }
|
|
7180
7179
|
var package_default = {
|
|
7181
7180
|
name: "@zapier/zapier-sdk-cli",
|
|
7182
|
-
version: "0.
|
|
7181
|
+
version: "0.79.1"};
|
|
7183
7182
|
|
|
7184
7183
|
// src/sdk.ts
|
|
7185
7184
|
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-B6a6ysnh.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-B6a6ysnh.js';
|
|
3
3
|
import '@zapier/zapier-sdk';
|
|
4
4
|
import '@zapier/kitcore';
|
|
5
5
|
import 'zod';
|
package/dist/experimental.mjs
CHANGED
|
@@ -6605,20 +6605,19 @@ var listConnectionsRef2 = declareMethod({ id: "listConnections" });
|
|
|
6605
6605
|
var loginRef = declareMethod({ id: "login" });
|
|
6606
6606
|
var logoutRef = declareMethod({ id: "logout" });
|
|
6607
6607
|
var signupRef = declareMethod({ id: "signup" });
|
|
6608
|
-
var setupImports = [
|
|
6609
|
-
getProfileRef,
|
|
6610
|
-
listConnectionsRef2,
|
|
6611
|
-
loginRef,
|
|
6612
|
-
logoutRef,
|
|
6613
|
-
signupRef,
|
|
6614
|
-
apiPluginRef,
|
|
6615
|
-
resolveCredentialsPluginRef,
|
|
6616
|
-
eventEmissionPluginRef,
|
|
6617
|
-
sdkOptionsPluginRef
|
|
6618
|
-
];
|
|
6619
6608
|
var setupPlugin = defineMethod({
|
|
6620
6609
|
name: "setup",
|
|
6621
|
-
imports:
|
|
6610
|
+
imports: [
|
|
6611
|
+
getProfileRef,
|
|
6612
|
+
listConnectionsRef2,
|
|
6613
|
+
loginRef,
|
|
6614
|
+
logoutRef,
|
|
6615
|
+
signupRef,
|
|
6616
|
+
apiPluginRef,
|
|
6617
|
+
resolveCredentialsPluginRef,
|
|
6618
|
+
eventEmissionPluginRef,
|
|
6619
|
+
sdkOptionsPluginRef
|
|
6620
|
+
],
|
|
6622
6621
|
categories: ["utility"],
|
|
6623
6622
|
supportsJsonOutput: false,
|
|
6624
6623
|
inputSchema: SetupSchema,
|
|
@@ -7138,7 +7137,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
7138
7137
|
// package.json with { type: 'json' }
|
|
7139
7138
|
var package_default = {
|
|
7140
7139
|
name: "@zapier/zapier-sdk-cli",
|
|
7141
|
-
version: "0.
|
|
7140
|
+
version: "0.79.1"};
|
|
7142
7141
|
|
|
7143
7142
|
// src/sdk.ts
|
|
7144
7143
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|