@zapier/zapier-sdk-cli 0.25.0 → 0.26.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 +21 -0
- package/README.md +21 -20
- package/dist/cli.cjs +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.26.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- aacaf22: Improved `fetch` to automatically set the correct `Content-Type` header based on the request body type. `FormData`, `Blob`, and other binary bodies are now handled correctly instead of being misidentified as JSON.
|
|
8
|
+
- Updated dependencies [aacaf22]
|
|
9
|
+
- @zapier/zapier-sdk@0.25.1
|
|
10
|
+
- @zapier/zapier-sdk-mcp@0.8.2
|
|
11
|
+
|
|
12
|
+
## 0.26.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- b0b7eb3: Add timeoutMs for setting the timeout for polling action results.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [b0b7eb3]
|
|
21
|
+
- @zapier/zapier-sdk@0.25.0
|
|
22
|
+
- @zapier/zapier-sdk-mcp@0.8.1
|
|
23
|
+
|
|
3
24
|
## 0.25.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -228,21 +228,22 @@ Execute an action with the given inputs
|
|
|
228
228
|
|
|
229
229
|
**Options:**
|
|
230
230
|
|
|
231
|
-
| Option | Type | Required | Default | Possible Values | Description
|
|
232
|
-
| --------------------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------------------------------- |
|
|
233
|
-
| `<app-key>` | `string` | ✅ | — | — | App key (e.g., 'SlackCLIAPI' or slug like 'github')
|
|
234
|
-
| `<action-type>` | `string` | ✅ | — | `read`, `read_bulk`, `write`, `run`, `search`, `search_or_write`, `search_and_write`, `filter` | Action type that matches the action's defined type
|
|
235
|
-
| `<action-key>` | `string` | ✅ | — | — | Action key to execute
|
|
236
|
-
| `--authentication-id` | `string, number` | ❌ | — | — | Authentication ID to use for this action
|
|
237
|
-
| `--inputs` | `object` | ❌ | — | — | Input parameters for the action
|
|
238
|
-
| `--
|
|
239
|
-
| `--
|
|
240
|
-
| `--
|
|
231
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
232
|
+
| --------------------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
|
|
233
|
+
| `<app-key>` | `string` | ✅ | — | — | App key (e.g., 'SlackCLIAPI' or slug like 'github') |
|
|
234
|
+
| `<action-type>` | `string` | ✅ | — | `read`, `read_bulk`, `write`, `run`, `search`, `search_or_write`, `search_and_write`, `filter` | Action type that matches the action's defined type |
|
|
235
|
+
| `<action-key>` | `string` | ✅ | — | — | Action key to execute |
|
|
236
|
+
| `--authentication-id` | `string, number` | ❌ | — | — | Authentication ID to use for this action |
|
|
237
|
+
| `--inputs` | `object` | ❌ | — | — | Input parameters for the action |
|
|
238
|
+
| `--timeout-ms` | `number` | ❌ | — | — | Maximum time to wait for action completion in milliseconds (default: 180000) |
|
|
239
|
+
| `--page-size` | `number` | ❌ | — | — | Number of results per page |
|
|
240
|
+
| `--max-items` | `number` | ❌ | — | — | Maximum total items to return across all pages |
|
|
241
|
+
| `--cursor` | `string` | ❌ | — | — | Cursor to start from |
|
|
241
242
|
|
|
242
243
|
**Usage:**
|
|
243
244
|
|
|
244
245
|
```bash
|
|
245
|
-
npx zapier-sdk run-action <app-key> <action-type> <action-key> [--authentication-id] [--inputs] [--page-size] [--max-items] [--cursor]
|
|
246
|
+
npx zapier-sdk run-action <app-key> <action-type> <action-key> [--authentication-id] [--inputs] [--timeout-ms] [--page-size] [--max-items] [--cursor]
|
|
246
247
|
```
|
|
247
248
|
|
|
248
249
|
### Apps
|
|
@@ -429,15 +430,15 @@ Make authenticated HTTP requests to any API through Zapier's Relay service. Pass
|
|
|
429
430
|
|
|
430
431
|
**Options:**
|
|
431
432
|
|
|
432
|
-
| Option | Type
|
|
433
|
-
| --------------------------- |
|
|
434
|
-
| `<url>` | `string, custom`
|
|
435
|
-
| `--method` | `string`
|
|
436
|
-
| `--headers` | `object`
|
|
437
|
-
| `--body` | `string, custom, custom` | ❌ | — | — | Request body — JSON strings are auto-detected and Content-Type is set accordingly |
|
|
438
|
-
| `--authentication-id` | `string, number`
|
|
439
|
-
| `--callback-url` | `string`
|
|
440
|
-
| `--authentication-template` | `string`
|
|
433
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
434
|
+
| --------------------------- | -------------------------------- | -------- | ------- | ---------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
|
|
435
|
+
| `<url>` | `string, custom` | ✅ | — | — | The full URL of the API endpoint to call (proxied through Zapier's Relay service) |
|
|
436
|
+
| `--method` | `string` | ❌ | — | `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `OPTIONS` | HTTP method for the request (defaults to GET) |
|
|
437
|
+
| `--headers` | `object` | ❌ | — | — | HTTP headers to include in the request |
|
|
438
|
+
| `--body` | `string, custom, custom, record` | ❌ | — | — | Request body — plain objects and JSON strings are auto-detected and Content-Type is set accordingly |
|
|
439
|
+
| `--authentication-id` | `string, number` | ❌ | — | — | Authentication ID to use for this action |
|
|
440
|
+
| `--callback-url` | `string` | ❌ | — | — | URL to send async response to (makes request async) |
|
|
441
|
+
| `--authentication-template` | `string` | ❌ | — | — | Optional JSON string authentication template to bypass Notary lookup |
|
|
441
442
|
|
|
442
443
|
**Usage:**
|
|
443
444
|
|
package/dist/cli.cjs
CHANGED
|
@@ -1774,7 +1774,7 @@ var LoginSchema = zod.z.object({
|
|
|
1774
1774
|
|
|
1775
1775
|
// package.json
|
|
1776
1776
|
var package_default = {
|
|
1777
|
-
version: "0.
|
|
1777
|
+
version: "0.26.1"};
|
|
1778
1778
|
|
|
1779
1779
|
// src/telemetry/builders.ts
|
|
1780
1780
|
function createCliBaseEvent(context = {}) {
|
|
@@ -3055,7 +3055,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
3055
3055
|
// package.json with { type: 'json' }
|
|
3056
3056
|
var package_default2 = {
|
|
3057
3057
|
name: "@zapier/zapier-sdk-cli",
|
|
3058
|
-
version: "0.
|
|
3058
|
+
version: "0.26.1"};
|
|
3059
3059
|
function detectPackageManager(cwd = process.cwd()) {
|
|
3060
3060
|
const ua = process.env.npm_config_user_agent;
|
|
3061
3061
|
if (ua) {
|
package/dist/cli.mjs
CHANGED
|
@@ -1738,7 +1738,7 @@ var LoginSchema = z.object({
|
|
|
1738
1738
|
|
|
1739
1739
|
// package.json
|
|
1740
1740
|
var package_default = {
|
|
1741
|
-
version: "0.
|
|
1741
|
+
version: "0.26.1"};
|
|
1742
1742
|
|
|
1743
1743
|
// src/telemetry/builders.ts
|
|
1744
1744
|
function createCliBaseEvent(context = {}) {
|
|
@@ -3019,7 +3019,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
3019
3019
|
// package.json with { type: 'json' }
|
|
3020
3020
|
var package_default2 = {
|
|
3021
3021
|
name: "@zapier/zapier-sdk-cli",
|
|
3022
|
-
version: "0.
|
|
3022
|
+
version: "0.26.1"};
|
|
3023
3023
|
function detectPackageManager(cwd = process.cwd()) {
|
|
3024
3024
|
const ua = process.env.npm_config_user_agent;
|
|
3025
3025
|
if (ua) {
|
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED