@zapier/zapier-sdk-cli 0.40.1 → 0.41.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @zapier/zapier-sdk-cli
2
2
 
3
+ ## 0.41.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 8df8761: Add an experimental interactive approval flow for policy-gated actions. When an action requires approval, the SDK detects the `approval_required` response, prompts for approval in interactive sessions, and automatically retries the original request once approved. Non-interactive sessions receive a clear error explaining that approval is required. This flow is experimental and its behavior may change in future releases.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [8df8761]
12
+ - @zapier/zapier-sdk-mcp@0.11.0
13
+ - @zapier/zapier-sdk@0.43.0
14
+
3
15
  ## 0.40.1
4
16
 
5
17
  ### Patch Changes
package/dist/cli.cjs CHANGED
@@ -1103,7 +1103,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
1103
1103
 
1104
1104
  // package.json
1105
1105
  var package_default = {
1106
- version: "0.40.1"};
1106
+ version: "0.41.0"};
1107
1107
 
1108
1108
  // src/telemetry/builders.ts
1109
1109
  function createCliBaseEvent(context = {}) {
@@ -4697,7 +4697,7 @@ function createZapierCliSdk(options = {}) {
4697
4697
  // package.json with { type: 'json' }
4698
4698
  var package_default2 = {
4699
4699
  name: "@zapier/zapier-sdk-cli",
4700
- version: "0.40.1"};
4700
+ version: "0.41.0"};
4701
4701
  var ONE_DAY_MS = 24 * 60 * 60 * 1e3;
4702
4702
  var CACHE_RESET_INTERVAL_MS = (() => {
4703
4703
  const { ZAPIER_SDK_UPDATE_CHECK_INTERVAL_MS = `${ONE_DAY_MS}` } = process.env;
@@ -4908,13 +4908,13 @@ function buildCredentialsFromFlags() {
4908
4908
  type: "client_credentials",
4909
4909
  clientId: credentialsClientId,
4910
4910
  clientSecret: credentialsClientSecret,
4911
- baseUrl: credentialsBaseUrl
4911
+ ...credentialsBaseUrl && { baseUrl: credentialsBaseUrl }
4912
4912
  };
4913
4913
  } else {
4914
4914
  return {
4915
4915
  type: "pkce",
4916
4916
  clientId: credentialsClientId,
4917
- baseUrl: credentialsBaseUrl
4917
+ ...credentialsBaseUrl && { baseUrl: credentialsBaseUrl }
4918
4918
  };
4919
4919
  }
4920
4920
  }
package/dist/cli.mjs CHANGED
@@ -1065,7 +1065,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
1065
1065
 
1066
1066
  // package.json
1067
1067
  var package_default = {
1068
- version: "0.40.1"};
1068
+ version: "0.41.0"};
1069
1069
 
1070
1070
  // src/telemetry/builders.ts
1071
1071
  function createCliBaseEvent(context = {}) {
@@ -4659,7 +4659,7 @@ function createZapierCliSdk(options = {}) {
4659
4659
  // package.json with { type: 'json' }
4660
4660
  var package_default2 = {
4661
4661
  name: "@zapier/zapier-sdk-cli",
4662
- version: "0.40.1"};
4662
+ version: "0.41.0"};
4663
4663
  var ONE_DAY_MS = 24 * 60 * 60 * 1e3;
4664
4664
  var CACHE_RESET_INTERVAL_MS = (() => {
4665
4665
  const { ZAPIER_SDK_UPDATE_CHECK_INTERVAL_MS = `${ONE_DAY_MS}` } = process.env;
@@ -4870,13 +4870,13 @@ function buildCredentialsFromFlags() {
4870
4870
  type: "client_credentials",
4871
4871
  clientId: credentialsClientId,
4872
4872
  clientSecret: credentialsClientSecret,
4873
- baseUrl: credentialsBaseUrl
4873
+ ...credentialsBaseUrl && { baseUrl: credentialsBaseUrl }
4874
4874
  };
4875
4875
  } else {
4876
4876
  return {
4877
4877
  type: "pkce",
4878
4878
  clientId: credentialsClientId,
4879
- baseUrl: credentialsBaseUrl
4879
+ ...credentialsBaseUrl && { baseUrl: credentialsBaseUrl }
4880
4880
  };
4881
4881
  }
4882
4882
  }
package/dist/index.cjs CHANGED
@@ -2510,7 +2510,7 @@ function createZapierCliSdk(options = {}) {
2510
2510
 
2511
2511
  // package.json
2512
2512
  var package_default = {
2513
- version: "0.40.1"};
2513
+ version: "0.41.0"};
2514
2514
 
2515
2515
  // src/telemetry/builders.ts
2516
2516
  function createCliBaseEvent(context = {}) {
package/dist/index.mjs CHANGED
@@ -2477,7 +2477,7 @@ function createZapierCliSdk(options = {}) {
2477
2477
 
2478
2478
  // package.json
2479
2479
  var package_default = {
2480
- version: "0.40.1"};
2480
+ version: "0.41.0"};
2481
2481
 
2482
2482
  // src/telemetry/builders.ts
2483
2483
  function createCliBaseEvent(context = {}) {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk-cli",
3
- "version": "0.40.1",
3
+ "version": "0.41.0",
4
4
  "description": "Command line interface for Zapier SDK",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
package/dist/src/cli.js CHANGED
@@ -79,7 +79,7 @@ function buildCredentialsFromFlags() {
79
79
  type: "client_credentials",
80
80
  clientId: credentialsClientId,
81
81
  clientSecret: credentialsClientSecret,
82
- baseUrl: credentialsBaseUrl,
82
+ ...(credentialsBaseUrl && { baseUrl: credentialsBaseUrl }),
83
83
  };
84
84
  }
85
85
  else {
@@ -87,7 +87,7 @@ function buildCredentialsFromFlags() {
87
87
  return {
88
88
  type: "pkce",
89
89
  clientId: credentialsClientId,
90
- baseUrl: credentialsBaseUrl,
90
+ ...(credentialsBaseUrl && { baseUrl: credentialsBaseUrl }),
91
91
  };
92
92
  }
93
93
  }