@zapier/zapier-sdk-cli 0.48.2 โ 0.49.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 +25 -0
- package/README.md +10 -9
- package/dist/cli.cjs +543 -198
- package/dist/cli.mjs +541 -197
- 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 +570 -129
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.49.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 22a1727: Add optional `name` parameter to `createTriggerInbox` method
|
|
8
|
+
- Updated dependencies [22a1727]
|
|
9
|
+
- @zapier/zapier-sdk-mcp@0.13.6
|
|
10
|
+
- @zapier/zapier-sdk@0.54.1
|
|
11
|
+
|
|
12
|
+
## 0.49.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- 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.
|
|
17
|
+
|
|
18
|
+
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).
|
|
19
|
+
|
|
20
|
+
`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.
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [ecfb727]
|
|
25
|
+
- @zapier/zapier-sdk@0.54.0
|
|
26
|
+
- @zapier/zapier-sdk-mcp@0.13.5
|
|
27
|
+
|
|
3
28
|
## 0.48.2
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -797,22 +797,23 @@ npx zapier-sdk ack-trigger-inbox-messages <inbox> <lease> [--messages]
|
|
|
797
797
|
|
|
798
798
|
#### `create-trigger-inbox` ๐งช _experimental_
|
|
799
799
|
|
|
800
|
-
Create a new trigger inbox subscription
|
|
800
|
+
Create a new trigger inbox subscription. Always creates a new inbox; use ensureTriggerInbox for get-or-create on a stable name.
|
|
801
801
|
|
|
802
802
|
**Options:**
|
|
803
803
|
|
|
804
|
-
| Option | Type | Required | Default | Possible Values | Description
|
|
805
|
-
| -------------------- | ---------------- | -------- | ------- | --------------- |
|
|
806
|
-
| `<app>` | `string` | โ
| โ | โ | App slug (e.g., 'github'), implementation name (e.g., 'SlackCLIAPI'), or versioned ID (e.g., 'github@1.2.3')
|
|
807
|
-
| `<action>` | `string` | โ
| โ | โ | Action key (e.g., 'send_message' or 'find_row')
|
|
808
|
-
| `--
|
|
809
|
-
| `--
|
|
810
|
-
| `--
|
|
804
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
805
|
+
| -------------------- | ---------------- | -------- | ------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------- |
|
|
806
|
+
| `<app>` | `string` | โ
| โ | โ | App slug (e.g., 'github'), implementation name (e.g., 'SlackCLIAPI'), or versioned ID (e.g., 'github@1.2.3') |
|
|
807
|
+
| `<action>` | `string` | โ
| โ | โ | Action key (e.g., 'send_message' or 'find_row') |
|
|
808
|
+
| `--name` | `string` | โ | โ | โ | Optional inbox name. Auto-generated when omitted. Throws a conflict error if the name is already in use by another subscription. |
|
|
809
|
+
| `--connection` | `string, number` | โ | โ | โ | Connection alias or connection ID. Optional for triggers that don't require auth. |
|
|
810
|
+
| `--inputs` | `object` | โ | โ | โ | Input parameters for the trigger subscription |
|
|
811
|
+
| `--notification-url` | `string` | โ | โ | โ | Webhook URL to POST to when new messages arrive |
|
|
811
812
|
|
|
812
813
|
**Usage:**
|
|
813
814
|
|
|
814
815
|
```bash
|
|
815
|
-
npx zapier-sdk create-trigger-inbox <app> <action> [--connection] [--inputs] [--notification-url]
|
|
816
|
+
npx zapier-sdk create-trigger-inbox <app> <action> [--name] [--connection] [--inputs] [--notification-url]
|
|
816
817
|
```
|
|
817
818
|
|
|
818
819
|
#### `delete-trigger-inbox` ๐งช _experimental_
|