@zapier/zapier-sdk-cli 0.34.11 → 0.35.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 +21 -0
- package/README.md +33 -33
- package/dist/cli.cjs +632 -446
- package/dist/cli.mjs +632 -446
- package/dist/index.cjs +11 -7
- package/dist/index.mjs +11 -7
- package/dist/package.json +1 -1
- package/dist/src/plugins/init/index.js +1 -0
- package/dist/src/plugins/login/index.js +2 -3
- package/dist/src/plugins/logout/index.js +1 -0
- package/dist/src/utils/cli-generator.js +150 -255
- package/dist/src/utils/cli-renderer.d.ts +30 -0
- package/dist/src/utils/cli-renderer.js +226 -0
- package/dist/src/utils/errors.d.ts +17 -0
- package/dist/src/utils/errors.js +17 -0
- package/dist/src/utils/parameter-resolver.d.ts +15 -1
- package/dist/src/utils/parameter-resolver.js +89 -33
- package/dist/src/utils/string-utils.d.ts +1 -0
- package/dist/src/utils/string-utils.js +6 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.35.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3700f6a: Fix --json output
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [3700f6a]
|
|
12
|
+
- @zapier/zapier-sdk@0.34.0
|
|
13
|
+
- @zapier/zapier-sdk-mcp@0.9.22
|
|
14
|
+
|
|
15
|
+
## 0.34.12
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- d9e0f1d: Fix user properties being overwritten by context merge in telemetry events
|
|
20
|
+
- Updated dependencies [d9e0f1d]
|
|
21
|
+
- @zapier/zapier-sdk@0.33.4
|
|
22
|
+
- @zapier/zapier-sdk-mcp@0.9.21
|
|
23
|
+
|
|
3
24
|
## 0.34.11
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -226,18 +226,18 @@ Get the available choices for a dynamic dropdown input field
|
|
|
226
226
|
|
|
227
227
|
**Options:**
|
|
228
228
|
|
|
229
|
-
| Option | Type | Required | Default | Possible Values | Description
|
|
230
|
-
| ------------------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------------------------------- |
|
|
231
|
-
| `<app-key>` | `string` | ✅ | — | — | App key (e.g., 'SlackCLIAPI' or slug like 'github')
|
|
232
|
-
| `<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
|
|
233
|
-
| `<action-key>` | `string` | ✅ | — | — | Action key to execute
|
|
234
|
-
| `<input-field-key>` | `string` | ✅ | — | — | Input field key to get choices for.
|
|
235
|
-
| `--connection-id` | `string, number` | ❌ | — | — | Connection ID to use
|
|
236
|
-
| `--inputs` | `object` | ❌ | — | — | Current input values that may affect available choices
|
|
237
|
-
| `--page` | `number` | ❌ | — | — | Page number for paginated results
|
|
238
|
-
| `--page-size` | `number` | ❌ | — | — | Number of choices per page
|
|
239
|
-
| `--max-items` | `number` | ❌ | — | — | Maximum total items to return across all pages
|
|
240
|
-
| `--cursor` | `string` | ❌ | — | — | Cursor to start from
|
|
229
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
230
|
+
| ------------------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
231
|
+
| `<app-key>` | `string` | ✅ | — | — | App key (e.g., 'SlackCLIAPI' or slug like 'github') |
|
|
232
|
+
| `<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 |
|
|
233
|
+
| `<action-key>` | `string` | ✅ | — | — | Action key to execute |
|
|
234
|
+
| `<input-field-key>` | `string` | ✅ | — | — | Input field key to get choices for. |
|
|
235
|
+
| `--connection-id` | `string, number` | ❌ | — | — | Connection ID to use when listing available field choices. Required if the action needs a connection to populate dynamic dropdown options. |
|
|
236
|
+
| `--inputs` | `object` | ❌ | — | — | Current input values that may affect available choices |
|
|
237
|
+
| `--page` | `number` | ❌ | — | — | Page number for paginated results |
|
|
238
|
+
| `--page-size` | `number` | ❌ | — | — | Number of choices per page |
|
|
239
|
+
| `--max-items` | `number` | ❌ | — | — | Maximum total items to return across all pages |
|
|
240
|
+
| `--cursor` | `string` | ❌ | — | — | Cursor to start from |
|
|
241
241
|
|
|
242
242
|
**Usage:**
|
|
243
243
|
|
|
@@ -251,16 +251,16 @@ Get the input fields required for a specific action
|
|
|
251
251
|
|
|
252
252
|
**Options:**
|
|
253
253
|
|
|
254
|
-
| Option | Type | Required | Default | Possible Values | Description
|
|
255
|
-
| ----------------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------------------------------- |
|
|
256
|
-
| `<app-key>` | `string` | ✅ | — | — | App key (e.g., 'SlackCLIAPI' or slug like 'github')
|
|
257
|
-
| `<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
|
|
258
|
-
| `<action-key>` | `string` | ✅ | — | — | Action key to execute
|
|
259
|
-
| `--connection-id` | `string, number` | ❌ | — | — | Connection ID to use
|
|
260
|
-
| `--inputs` | `object` | ❌ | — | — | Current input values that may affect available fields
|
|
261
|
-
| `--page-size` | `number` | ❌ | — | — | Number of input fields per page
|
|
262
|
-
| `--max-items` | `number` | ❌ | — | — | Maximum total items to return across all pages
|
|
263
|
-
| `--cursor` | `string` | ❌ | — | — | Cursor to start from
|
|
254
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
255
|
+
| ----------------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
|
256
|
+
| `<app-key>` | `string` | ✅ | — | — | App key (e.g., 'SlackCLIAPI' or slug like 'github') |
|
|
257
|
+
| `<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 |
|
|
258
|
+
| `<action-key>` | `string` | ✅ | — | — | Action key to execute |
|
|
259
|
+
| `--connection-id` | `string, number` | ❌ | — | — | Connection ID to use when listing input fields. Required if the action needs a connection to determine available fields. |
|
|
260
|
+
| `--inputs` | `object` | ❌ | — | — | Current input values that may affect available fields |
|
|
261
|
+
| `--page-size` | `number` | ❌ | — | — | Number of input fields per page |
|
|
262
|
+
| `--max-items` | `number` | ❌ | — | — | Maximum total items to return across all pages |
|
|
263
|
+
| `--cursor` | `string` | ❌ | — | — | Cursor to start from |
|
|
264
264
|
|
|
265
265
|
**Usage:**
|
|
266
266
|
|
|
@@ -274,17 +274,17 @@ Execute an action with the given inputs
|
|
|
274
274
|
|
|
275
275
|
**Options:**
|
|
276
276
|
|
|
277
|
-
| Option | Type | Required | Default | Possible Values | Description
|
|
278
|
-
| ----------------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------------------------------- |
|
|
279
|
-
| `<app-key>` | `string` | ✅ | — | — | App key (e.g., 'SlackCLIAPI' or slug like 'github')
|
|
280
|
-
| `<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
|
|
281
|
-
| `<action-key>` | `string` | ✅ | — | — | Action key to execute
|
|
282
|
-
| `--connection-id` | `string, number` | ❌ | — | — | Connection ID to use
|
|
283
|
-
| `--inputs` | `object` | ❌ | — | — | Input parameters for the action
|
|
284
|
-
| `--timeout-ms` | `number` | ❌ | — | — | Maximum time to wait for action completion in milliseconds (default: 180000)
|
|
285
|
-
| `--page-size` | `number` | ❌ | — | — | Number of results per page
|
|
286
|
-
| `--max-items` | `number` | ❌ | — | — | Maximum total items to return across all pages
|
|
287
|
-
| `--cursor` | `string` | ❌ | — | — | Cursor to start from
|
|
277
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
278
|
+
| ----------------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
279
|
+
| `<app-key>` | `string` | ✅ | — | — | App key (e.g., 'SlackCLIAPI' or slug like 'github') |
|
|
280
|
+
| `<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 |
|
|
281
|
+
| `<action-key>` | `string` | ✅ | — | — | Action key to execute |
|
|
282
|
+
| `--connection-id` | `string, number` | ❌ | — | — | Connection ID to use when running the action. Required if the action needs a connection to authenticate and interact with the service. |
|
|
283
|
+
| `--inputs` | `object` | ❌ | — | — | Input parameters for the action |
|
|
284
|
+
| `--timeout-ms` | `number` | ❌ | — | — | Maximum time to wait for action completion in milliseconds (default: 180000) |
|
|
285
|
+
| `--page-size` | `number` | ❌ | — | — | Number of results per page |
|
|
286
|
+
| `--max-items` | `number` | ❌ | — | — | Maximum total items to return across all pages |
|
|
287
|
+
| `--cursor` | `string` | ❌ | — | — | Cursor to start from |
|
|
288
288
|
|
|
289
289
|
**Usage:**
|
|
290
290
|
|