@zapier/zapier-sdk-cli 0.52.12 → 0.53.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 +13 -0
- package/README.md +20 -0
- package/dist/cli.cjs +896 -395
- package/dist/cli.mjs +897 -396
- package/dist/experimental.cjs +897 -398
- package/dist/experimental.d.mts +1 -1
- package/dist/experimental.d.ts +1 -1
- package/dist/experimental.mjs +896 -397
- package/dist/index.cjs +898 -399
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +897 -398
- package/dist/package.json +1 -1
- package/dist/{sdk-Sa1HjzUj.d.mts → sdk-SOLizjno.d.mts} +40 -2
- package/dist/{sdk-Sa1HjzUj.d.ts → sdk-SOLizjno.d.ts} +40 -2
- package/dist/src/experimental.js +2 -1
- package/dist/src/plugins/index.d.ts +1 -0
- package/dist/src/plugins/index.js +1 -0
- package/dist/src/plugins/login/index.d.ts +2 -15
- package/dist/src/plugins/login/index.js +3 -191
- package/dist/src/plugins/signup/index.d.ts +25 -0
- package/dist/src/plugins/signup/index.js +12 -0
- package/dist/src/plugins/signup/schemas.d.ts +9 -0
- package/dist/src/plugins/signup/schemas.js +26 -0
- package/dist/src/plugins/signup/test-harness.d.ts +34 -0
- package/dist/src/plugins/signup/test-harness.js +74 -0
- package/dist/src/sdk.js +2 -1
- package/dist/src/types/sdk.d.ts +2 -1
- package/dist/src/utils/auth/account-auth.d.ts +32 -0
- package/dist/src/utils/auth/account-auth.js +265 -0
- package/dist/src/utils/auth/oauth-callback.d.ts +6 -0
- package/dist/src/utils/auth/oauth-callback.js +28 -0
- package/dist/src/utils/auth/oauth-errors.d.ts +2 -0
- package/dist/src/utils/auth/oauth-errors.js +39 -0
- package/dist/src/utils/auth/oauth-flow.d.ts +31 -6
- package/dist/src/utils/auth/oauth-flow.js +258 -106
- package/dist/src/utils/auth/oauth-transaction.d.ts +35 -0
- package/dist/src/utils/auth/oauth-transaction.js +69 -0
- package/dist/src/utils/non-interactive.d.ts +5 -4
- package/dist/src/utils/non-interactive.js +6 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.53.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 41a7c26: Add `zapier-sdk signup` for browser-based account setup and local SDK credential provisioning.
|
|
8
|
+
Add the `signup_success` SDK lifecycle telemetry event type for successful signup OAuth callback acceptance.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies [41a7c26]
|
|
13
|
+
- @zapier/zapier-sdk@0.68.0
|
|
14
|
+
- @zapier/zapier-sdk-mcp@0.13.22
|
|
15
|
+
|
|
3
16
|
## 0.52.12
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
- [`get-profile`](#get-profile)
|
|
12
12
|
- [`login`](#login)
|
|
13
13
|
- [`logout`](#logout)
|
|
14
|
+
- [`signup`](#signup)
|
|
14
15
|
- [Actions](#actions)
|
|
15
16
|
- [`get-action`](#get-action)
|
|
16
17
|
- [`get-action-input-fields-schema`](#get-action-input-fields-schema)
|
|
@@ -219,6 +220,25 @@ Log out of your Zapier account
|
|
|
219
220
|
npx zapier-sdk logout
|
|
220
221
|
```
|
|
221
222
|
|
|
223
|
+
#### `signup`
|
|
224
|
+
|
|
225
|
+
Set up Zapier account access and SDK credentials
|
|
226
|
+
|
|
227
|
+
**Options:**
|
|
228
|
+
|
|
229
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
230
|
+
| ------------------- | --------- | -------- | ------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
231
|
+
| `--timeout` | `string` | ❌ | — | — | Signup timeout in seconds (default: 300) |
|
|
232
|
+
| `--use-approvals` | `boolean` | ❌ | — | — | Require approvals for actions performed with these credentials |
|
|
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. |
|
|
234
|
+
| `--headless` | `boolean` | ❌ | — | — | Use when signing up from a machine that has no browser. Prints a signup link to open elsewhere, then accepts the pasted loopback callback URL. |
|
|
235
|
+
|
|
236
|
+
**Usage:**
|
|
237
|
+
|
|
238
|
+
```bash
|
|
239
|
+
npx zapier-sdk signup [--timeout] [--use-approvals] [--non-interactive] [--headless]
|
|
240
|
+
```
|
|
241
|
+
|
|
222
242
|
### Actions
|
|
223
243
|
|
|
224
244
|
#### `get-action`
|