@zapier/zapier-sdk-cli 0.77.9 → 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 CHANGED
@@ -1,5 +1,30 @@
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
+
22
+ ## 0.78.0
23
+
24
+ ### Minor Changes
25
+
26
+ - 69819a2: `zapier-sdk login` and the account step in `zapier-sdk setup` now show a searchable chooser for stored accounts and switch between them without revoking credentials. The current account is selected by default, while adding an account preserves existing credentials. `login --name` now activates matching stored credentials or creates a new account with that name; interactive login asks for confirmation before creating it. Stored-account switching is skipped or rejected when SDK options or environment variables provide credentials that take precedence.
27
+
3
28
  ## 0.77.9
4
29
 
5
30
  ### Patch 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. |
@@ -225,7 +227,7 @@ Log in to Zapier to access your account
225
227
 
226
228
  | Option | Type | Required | Default | Possible Values | Description |
227
229
  | ------------------- | --------- | -------- | ------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
228
- | `--name` | `string` | ❌ | — | — | Name to identify these credentials (defaults to <email>@<hostname>). Provide this to set a custom name without the interactive prompt. |
230
+ | `--name` | `string` | ❌ | — | — | Activate stored credentials with this name. If none exist, create new credentials with this name; interactive login asks for confirmation first. |
229
231
  | `--timeout` | `string` | ❌ | — | — | Login timeout in seconds (default: 300) |
230
232
  | `--use-approvals` | `boolean` | ❌ | — | — | Require approvals for actions performed with these credentials |
231
233
  | `--non-interactive` | `boolean` | ❌ | — | — | Skip interactive prompts. Uses defaults where possible; errors instead of prompting when input is required. Useful in CI, piped output, or environments where TTY detection is unreliable. |