@zapier/zapier-sdk-cli 0.46.0 → 0.46.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 +19 -0
- package/README.md +20 -17
- package/dist/cli.cjs +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/experimental.cjs +1 -1
- package/dist/experimental.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.46.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- cd8f37b: Collapse the approval-flow surface into a single tri-state `approvalMode` option.
|
|
8
|
+
|
|
9
|
+
What changed:
|
|
10
|
+
- `approvalMode` is now `"disabled" | "poll" | "throw"` (was `"poll" | "fail"`).
|
|
11
|
+
- `"disabled"` is the default. While the approval flow is alpha, callers must opt in explicitly via `approvalMode: "poll"` or `approvalMode: "throw"` (or the `ZAPIER_APPROVAL_MODE` env var). On an approval-required response, `"disabled"` throws a `ZapierApprovalError` with `status: "approval_required"` without creating an approval.
|
|
12
|
+
- The `isInteractive` SDK option and the `ZAPIER_IS_INTERACTIVE` env var have been removed. Their role is subsumed by `approvalMode`: choosing `"poll"` / `"throw"` is the explicit opt-in that previously required `isInteractive: true`.
|
|
13
|
+
- `"fail"` has been renamed to `"throw"` (both the option value and the `ZAPIER_APPROVAL_MODE` env var value). The behavior is unchanged: throw a `ZapierApprovalError` carrying the approval URL so the caller can surface it.
|
|
14
|
+
- `approvalMode`, `approvalTimeoutMs`, and `maxApprovalRetries` are now part of the public API (no longer marked `internal: true`).
|
|
15
|
+
|
|
16
|
+
There is no back-compat shim. `approvalMode: "fail"` and `isInteractive: <anything>` will fail Zod validation up front.
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [cd8f37b]
|
|
19
|
+
- @zapier/zapier-sdk@0.50.0
|
|
20
|
+
- @zapier/zapier-sdk-mcp@0.13.1
|
|
21
|
+
|
|
3
22
|
## 0.46.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -133,23 +133,26 @@ npx zapier-sdk fetch "https://gmail.googleapis.com/gmail/v1/users/me/labels" --c
|
|
|
133
133
|
|
|
134
134
|
These options are available for all commands:
|
|
135
135
|
|
|
136
|
-
| Option | Short | Description
|
|
137
|
-
| -------------------------------------- | ----- |
|
|
138
|
-
| `--version` | `-V` | Display version number
|
|
139
|
-
| `--help` | `-h` | Display help for command
|
|
140
|
-
| `--credentials <token>` | | Authentication token.
|
|
141
|
-
| `--credentials-client-id <id>` | | OAuth client ID for authentication.
|
|
142
|
-
| `--credentials-client-secret <secret>` | | OAuth client secret for authentication.
|
|
143
|
-
| `--credentials-base-url <url>` | | Override authentication base URL.
|
|
144
|
-
| `--debug` | | Enable debug logging.
|
|
145
|
-
| `--base-url <url>` | | Base URL for Zapier API endpoints.
|
|
146
|
-
| `--tracking-base-url <url>` | | Base URL for Zapier tracking endpoints.
|
|
147
|
-
| `--max-network-retries <count>` | | Max retries for rate-limited requests (default: 3).
|
|
148
|
-
| `--max-network-retry-delay-ms <ms>` | | Max delay in ms to wait for retry (default: 60000).
|
|
149
|
-
| `--
|
|
150
|
-
| `--
|
|
151
|
-
| `--
|
|
152
|
-
| `--
|
|
136
|
+
| Option | Short | Description |
|
|
137
|
+
| -------------------------------------- | ----- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
138
|
+
| `--version` | `-V` | Display version number |
|
|
139
|
+
| `--help` | `-h` | Display help for command |
|
|
140
|
+
| `--credentials <token>` | | Authentication token. |
|
|
141
|
+
| `--credentials-client-id <id>` | | OAuth client ID for authentication. |
|
|
142
|
+
| `--credentials-client-secret <secret>` | | OAuth client secret for authentication. |
|
|
143
|
+
| `--credentials-base-url <url>` | | Override authentication base URL. |
|
|
144
|
+
| `--debug` | | Enable debug logging. |
|
|
145
|
+
| `--base-url <url>` | | Base URL for Zapier API endpoints. |
|
|
146
|
+
| `--tracking-base-url <url>` | | Base URL for Zapier tracking endpoints. |
|
|
147
|
+
| `--max-network-retries <count>` | | Max retries for rate-limited requests (default: 3). |
|
|
148
|
+
| `--max-network-retry-delay-ms <ms>` | | Max delay in ms to wait for retry (default: 60000). |
|
|
149
|
+
| `--approval-timeout-ms <ms>` | | Timeout in ms for approval polling. Default: 600000 (10 min). |
|
|
150
|
+
| `--max-approval-retries` | | Maximum number of sequential approval rounds per request (one per gating policy) before giving up. Default: 2. |
|
|
151
|
+
| `--approval-mode` | | Approval flow behavior. "disabled" (default) throws a ZapierApprovalError on approval-required responses without creating an approval. "poll" creates the approval, opens it in a browser, polls until resolved, and retries the original request. "throw" creates the approval and throws a ZapierApprovalError with the approval URL so the caller can surface it. Defaults to the ZAPIER_APPROVAL_MODE env var, then "disabled". |
|
|
152
|
+
| `--can-include-shared-connections` | | Allow listing shared connections. |
|
|
153
|
+
| `--can-include-shared-tables` | | Allow listing shared tables. |
|
|
154
|
+
| `--can-delete-tables` | | Allow deleting tables. |
|
|
155
|
+
| `--json` | | Output raw JSON instead of formatted results |
|
|
153
156
|
|
|
154
157
|
## Available Commands
|
|
155
158
|
|
package/dist/cli.cjs
CHANGED
|
@@ -1179,7 +1179,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
|
|
|
1179
1179
|
|
|
1180
1180
|
// package.json
|
|
1181
1181
|
var package_default = {
|
|
1182
|
-
version: "0.46.
|
|
1182
|
+
version: "0.46.1"};
|
|
1183
1183
|
|
|
1184
1184
|
// src/telemetry/builders.ts
|
|
1185
1185
|
function createCliBaseEvent(context = {}) {
|
|
@@ -5735,7 +5735,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.definePlugin(
|
|
|
5735
5735
|
// package.json with { type: 'json' }
|
|
5736
5736
|
var package_default2 = {
|
|
5737
5737
|
name: "@zapier/zapier-sdk-cli",
|
|
5738
|
-
version: "0.46.
|
|
5738
|
+
version: "0.46.1"};
|
|
5739
5739
|
|
|
5740
5740
|
// src/sdk.ts
|
|
5741
5741
|
zapierSdk.injectCliLogin(login_exports);
|
package/dist/cli.mjs
CHANGED
|
@@ -1138,7 +1138,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
|
|
|
1138
1138
|
|
|
1139
1139
|
// package.json
|
|
1140
1140
|
var package_default = {
|
|
1141
|
-
version: "0.46.
|
|
1141
|
+
version: "0.46.1"};
|
|
1142
1142
|
|
|
1143
1143
|
// src/telemetry/builders.ts
|
|
1144
1144
|
function createCliBaseEvent(context = {}) {
|
|
@@ -5694,7 +5694,7 @@ var watchTriggerInboxCliPlugin = definePlugin(
|
|
|
5694
5694
|
// package.json with { type: 'json' }
|
|
5695
5695
|
var package_default2 = {
|
|
5696
5696
|
name: "@zapier/zapier-sdk-cli",
|
|
5697
|
-
version: "0.46.
|
|
5697
|
+
version: "0.46.1"};
|
|
5698
5698
|
|
|
5699
5699
|
// src/sdk.ts
|
|
5700
5700
|
injectCliLogin(login_exports);
|
package/dist/experimental.cjs
CHANGED
|
@@ -3487,7 +3487,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.definePlugin(
|
|
|
3487
3487
|
// package.json with { type: 'json' }
|
|
3488
3488
|
var package_default = {
|
|
3489
3489
|
name: "@zapier/zapier-sdk-cli",
|
|
3490
|
-
version: "0.46.
|
|
3490
|
+
version: "0.46.1"};
|
|
3491
3491
|
|
|
3492
3492
|
// src/experimental.ts
|
|
3493
3493
|
experimental.injectCliLogin(login_exports);
|
package/dist/experimental.mjs
CHANGED
|
@@ -3451,7 +3451,7 @@ var watchTriggerInboxCliPlugin = definePlugin(
|
|
|
3451
3451
|
// package.json with { type: 'json' }
|
|
3452
3452
|
var package_default = {
|
|
3453
3453
|
name: "@zapier/zapier-sdk-cli",
|
|
3454
|
-
version: "0.46.
|
|
3454
|
+
version: "0.46.1"};
|
|
3455
3455
|
|
|
3456
3456
|
// src/experimental.ts
|
|
3457
3457
|
injectCliLogin(login_exports);
|
package/dist/index.cjs
CHANGED
|
@@ -3486,7 +3486,7 @@ zapierSdk.definePlugin(
|
|
|
3486
3486
|
// package.json with { type: 'json' }
|
|
3487
3487
|
var package_default = {
|
|
3488
3488
|
name: "@zapier/zapier-sdk-cli",
|
|
3489
|
-
version: "0.46.
|
|
3489
|
+
version: "0.46.1"};
|
|
3490
3490
|
|
|
3491
3491
|
// src/sdk.ts
|
|
3492
3492
|
zapierSdk.injectCliLogin(login_exports);
|
|
@@ -3514,7 +3514,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
3514
3514
|
|
|
3515
3515
|
// package.json
|
|
3516
3516
|
var package_default2 = {
|
|
3517
|
-
version: "0.46.
|
|
3517
|
+
version: "0.46.1"};
|
|
3518
3518
|
|
|
3519
3519
|
// src/telemetry/builders.ts
|
|
3520
3520
|
function createCliBaseEvent(context = {}) {
|
package/dist/index.mjs
CHANGED
|
@@ -3450,7 +3450,7 @@ definePlugin(
|
|
|
3450
3450
|
// package.json with { type: 'json' }
|
|
3451
3451
|
var package_default = {
|
|
3452
3452
|
name: "@zapier/zapier-sdk-cli",
|
|
3453
|
-
version: "0.46.
|
|
3453
|
+
version: "0.46.1"};
|
|
3454
3454
|
|
|
3455
3455
|
// src/sdk.ts
|
|
3456
3456
|
injectCliLogin(login_exports);
|
|
@@ -3478,7 +3478,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
3478
3478
|
|
|
3479
3479
|
// package.json
|
|
3480
3480
|
var package_default2 = {
|
|
3481
|
-
version: "0.46.
|
|
3481
|
+
version: "0.46.1"};
|
|
3482
3482
|
|
|
3483
3483
|
// src/telemetry/builders.ts
|
|
3484
3484
|
function createCliBaseEvent(context = {}) {
|