@zapier/zapier-sdk-cli 0.49.0 โ†’ 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 CHANGED
@@ -1,5 +1,14 @@
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
+
3
12
  ## 0.49.0
4
13
 
5
14
  ### Minor 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 with an auto-generated name. Always creates; use ensureTriggerInbox for get-or-create on a stable name.
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
- | `--connection` | `string, number` | โŒ | โ€” | โ€” | Connection alias or connection ID. Optional for triggers that don't require auth. |
809
- | `--inputs` | `object` | โŒ | โ€” | โ€” | Input parameters for the trigger subscription |
810
- | `--notification-url` | `string` | โŒ | โ€” | โ€” | Webhook URL to POST to when new messages arrive |
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_
package/dist/cli.cjs CHANGED
@@ -213,14 +213,8 @@ var SchemaParameterResolver = class {
213
213
  const hasValue = this.getNestedValue(providedParams, param.path) !== void 0;
214
214
  return !hasValue;
215
215
  });
216
- const required = missingResolvable.filter((param) => {
217
- if (param.isRequired) return true;
218
- if (param.name === "inputs") return interactiveMode;
219
- return false;
220
- });
221
- const optional = missingResolvable.filter(
222
- (param) => !required.includes(param)
223
- );
216
+ const required = missingResolvable.filter((param) => param.isRequired);
217
+ const optional = missingResolvable.filter((param) => !param.isRequired);
224
218
  if (parseResult.success && required.length === 0 && optional.length === 0) {
225
219
  return parseResult.data;
226
220
  }
@@ -1561,7 +1555,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
1561
1555
 
1562
1556
  // package.json
1563
1557
  var package_default = {
1564
- version: "0.49.0"};
1558
+ version: "0.49.1"};
1565
1559
 
1566
1560
  // src/telemetry/builders.ts
1567
1561
  function createCliBaseEvent(context = {}) {
@@ -6592,7 +6586,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.definePlugin(
6592
6586
  // package.json with { type: 'json' }
6593
6587
  var package_default2 = {
6594
6588
  name: "@zapier/zapier-sdk-cli",
6595
- version: "0.49.0"};
6589
+ version: "0.49.1"};
6596
6590
 
6597
6591
  // src/sdk.ts
6598
6592
  zapierSdk.injectCliLogin(login_exports);
package/dist/cli.mjs CHANGED
@@ -171,14 +171,8 @@ var SchemaParameterResolver = class {
171
171
  const hasValue = this.getNestedValue(providedParams, param.path) !== void 0;
172
172
  return !hasValue;
173
173
  });
174
- const required = missingResolvable.filter((param) => {
175
- if (param.isRequired) return true;
176
- if (param.name === "inputs") return interactiveMode;
177
- return false;
178
- });
179
- const optional = missingResolvable.filter(
180
- (param) => !required.includes(param)
181
- );
174
+ const required = missingResolvable.filter((param) => param.isRequired);
175
+ const optional = missingResolvable.filter((param) => !param.isRequired);
182
176
  if (parseResult.success && required.length === 0 && optional.length === 0) {
183
177
  return parseResult.data;
184
178
  }
@@ -1519,7 +1513,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
1519
1513
 
1520
1514
  // package.json
1521
1515
  var package_default = {
1522
- version: "0.49.0"};
1516
+ version: "0.49.1"};
1523
1517
 
1524
1518
  // src/telemetry/builders.ts
1525
1519
  function createCliBaseEvent(context = {}) {
@@ -6550,7 +6544,7 @@ var watchTriggerInboxCliPlugin = definePlugin(
6550
6544
  // package.json with { type: 'json' }
6551
6545
  var package_default2 = {
6552
6546
  name: "@zapier/zapier-sdk-cli",
6553
- version: "0.49.0"};
6547
+ version: "0.49.1"};
6554
6548
 
6555
6549
  // src/sdk.ts
6556
6550
  injectCliLogin(login_exports);
@@ -3963,7 +3963,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.definePlugin(
3963
3963
  // package.json with { type: 'json' }
3964
3964
  var package_default = {
3965
3965
  name: "@zapier/zapier-sdk-cli",
3966
- version: "0.49.0"};
3966
+ version: "0.49.1"};
3967
3967
 
3968
3968
  // src/experimental.ts
3969
3969
  experimental.injectCliLogin(login_exports);
@@ -3927,7 +3927,7 @@ var watchTriggerInboxCliPlugin = definePlugin(
3927
3927
  // package.json with { type: 'json' }
3928
3928
  var package_default = {
3929
3929
  name: "@zapier/zapier-sdk-cli",
3930
- version: "0.49.0"};
3930
+ version: "0.49.1"};
3931
3931
 
3932
3932
  // src/experimental.ts
3933
3933
  injectCliLogin(login_exports);
package/dist/index.cjs CHANGED
@@ -3962,7 +3962,7 @@ zapierSdk.definePlugin(
3962
3962
  // package.json with { type: 'json' }
3963
3963
  var package_default = {
3964
3964
  name: "@zapier/zapier-sdk-cli",
3965
- version: "0.49.0"};
3965
+ version: "0.49.1"};
3966
3966
 
3967
3967
  // src/sdk.ts
3968
3968
  zapierSdk.injectCliLogin(login_exports);
@@ -3990,7 +3990,7 @@ function createZapierCliSdk(options = {}) {
3990
3990
 
3991
3991
  // package.json
3992
3992
  var package_default2 = {
3993
- version: "0.49.0"};
3993
+ version: "0.49.1"};
3994
3994
 
3995
3995
  // src/telemetry/builders.ts
3996
3996
  function createCliBaseEvent(context = {}) {
package/dist/index.mjs CHANGED
@@ -3926,7 +3926,7 @@ definePlugin(
3926
3926
  // package.json with { type: 'json' }
3927
3927
  var package_default = {
3928
3928
  name: "@zapier/zapier-sdk-cli",
3929
- version: "0.49.0"};
3929
+ version: "0.49.1"};
3930
3930
 
3931
3931
  // src/sdk.ts
3932
3932
  injectCliLogin(login_exports);
@@ -3954,7 +3954,7 @@ function createZapierCliSdk(options = {}) {
3954
3954
 
3955
3955
  // package.json
3956
3956
  var package_default2 = {
3957
- version: "0.49.0"};
3957
+ version: "0.49.1"};
3958
3958
 
3959
3959
  // src/telemetry/builders.ts
3960
3960
  function createCliBaseEvent(context = {}) {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk-cli",
3
- "version": "0.49.0",
3
+ "version": "0.49.1",
4
4
  "description": "Command line interface for Zapier SDK",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -123,16 +123,12 @@ export class SchemaParameterResolver {
123
123
  const hasValue = this.getNestedValue(providedParams, param.path) !== undefined;
124
124
  return !hasValue;
125
125
  });
126
- // Split missing resolvable params into required vs optional.
127
- // "inputs" is treated as required in interactive mode.
128
- const required = missingResolvable.filter((param) => {
129
- if (param.isRequired)
130
- return true;
131
- if (param.name === "inputs")
132
- return interactiveMode;
133
- return false;
134
- });
135
- const optional = missingResolvable.filter((param) => !required.includes(param));
126
+ // Split missing resolvable params into required vs optional based on
127
+ // schema. Optional params still get prompted in interactive mode, but
128
+ // in a second pass after the schema-required ones (and their resolver
129
+ // dependencies) are settled.
130
+ const required = missingResolvable.filter((param) => param.isRequired);
131
+ const optional = missingResolvable.filter((param) => !param.isRequired);
136
132
  if (parseResult.success &&
137
133
  required.length === 0 &&
138
134
  optional.length === 0) {