@zapier/zapier-sdk-cli 0.48.1 โ 0.49.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 +30 -0
- package/README.md +20 -0
- package/dist/cli.cjs +562 -191
- package/dist/cli.mjs +560 -190
- 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 +2 -1
- package/dist/src/utils/parameter-resolver.d.ts +91 -1
- package/dist/src/utils/parameter-resolver.js +593 -120
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.49.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ecfb727: Add type-to-filter to interactive single-select dropdowns: dynamic resolvers (apps, connections, tables, table records, etc.) and SELECT-format field choices. `(Load more...)` remains reachable even when a search yields zero matches, so users can pull the next page and try again.
|
|
8
|
+
|
|
9
|
+
Dynamic resolvers also gain an `inputType: "search"` mode: the CLI prompts for free-form text, hands it to `fetch` as `search`, and either short-circuits on a primitive return (exact match) or renders results as a search-filterable dropdown. Empty results expose `(Use "foo" as-is)` and `(Try a different search)` so a required parameter can never strand the user. The built-in `appKey` resolver now uses this mode (`getApp` for exact match, `listApps --search` for fallback).
|
|
10
|
+
|
|
11
|
+
`DynamicResolver` is now a discriminated union of `DynamicListResolver` and `DynamicSearchResolver`. Note for plugin authors: the `placeholder` field is now typed as `never` on the list variant, so a classic list resolver that was previously setting an unused `placeholder` will see a TypeScript error. Move it into a search-mode variant (`inputType: "search"`) or drop it โ the CLI never read it on list resolvers.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [ecfb727]
|
|
16
|
+
- @zapier/zapier-sdk@0.54.0
|
|
17
|
+
- @zapier/zapier-sdk-mcp@0.13.5
|
|
18
|
+
|
|
19
|
+
## 0.48.2
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 23352c8: Trigger inbox fixes and additions:
|
|
24
|
+
- Send `connection_id: null` for trigger inboxes without a connection so connection-less apps (e.g. tables) work correctly.
|
|
25
|
+
- Add `listTriggers`, a read variant of `listActions` that lists an app's triggers.
|
|
26
|
+
- Add interactive resolvers to trigger inbox message methods: `ackTriggerInboxMessages` and `releaseTriggerInboxMessages` prompt for `messages` with a multi-select of leased messages; `leaseTriggerInboxMessages` prompts for `leaseLimit` and `leaseSeconds`.
|
|
27
|
+
- CLI: coerce static prompt input to the schema's underlying type so numeric/boolean fields (e.g. `leaseLimit`, `leaseSeconds`) no longer fail Zod validation with "expected number, received string".
|
|
28
|
+
|
|
29
|
+
- Updated dependencies [23352c8]
|
|
30
|
+
- @zapier/zapier-sdk@0.53.0
|
|
31
|
+
- @zapier/zapier-sdk-mcp@0.13.4
|
|
32
|
+
|
|
3
33
|
## 0.48.1
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
- [`list-trigger-inboxes`](#list-trigger-inboxes--experimental)
|
|
59
59
|
- [`list-trigger-input-field-choices`](#list-trigger-input-field-choices--experimental)
|
|
60
60
|
- [`list-trigger-input-fields`](#list-trigger-input-fields--experimental)
|
|
61
|
+
- [`list-triggers`](#list-triggers--experimental)
|
|
61
62
|
- [`pause-trigger-inbox`](#pause-trigger-inbox--experimental)
|
|
62
63
|
- [`release-trigger-inbox-messages`](#release-trigger-inbox-messages--experimental)
|
|
63
64
|
- [`resume-trigger-inbox`](#resume-trigger-inbox--experimental)
|
|
@@ -1014,6 +1015,25 @@ Get the input fields required for a specific trigger
|
|
|
1014
1015
|
npx zapier-sdk list-trigger-input-fields <app> <action> [--connection] [--inputs] [--page-size] [--max-items] [--cursor]
|
|
1015
1016
|
```
|
|
1016
1017
|
|
|
1018
|
+
#### `list-triggers` ๐งช _experimental_
|
|
1019
|
+
|
|
1020
|
+
List all triggers for a specific app
|
|
1021
|
+
|
|
1022
|
+
**Options:**
|
|
1023
|
+
|
|
1024
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
1025
|
+
| ------------- | -------- | -------- | ------- | --------------- | ----------------------------------------------------------------------- |
|
|
1026
|
+
| `<app>` | `string` | โ
| โ | โ | App key of triggers to list (e.g., 'SlackCLIAPI' or slug like 'github') |
|
|
1027
|
+
| `--page-size` | `number` | โ | โ | โ | Number of triggers per page |
|
|
1028
|
+
| `--max-items` | `number` | โ | โ | โ | Maximum total items to return across all pages |
|
|
1029
|
+
| `--cursor` | `string` | โ | โ | โ | Cursor to start from |
|
|
1030
|
+
|
|
1031
|
+
**Usage:**
|
|
1032
|
+
|
|
1033
|
+
```bash
|
|
1034
|
+
npx zapier-sdk list-triggers <app> [--page-size] [--max-items] [--cursor]
|
|
1035
|
+
```
|
|
1036
|
+
|
|
1017
1037
|
#### `pause-trigger-inbox` ๐งช _experimental_
|
|
1018
1038
|
|
|
1019
1039
|
Pause a trigger inbox; events stop being collected
|