@zapier/zapier-sdk-cli 0.40.1 → 0.41.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 +20 -0
- package/README.md +43 -43
- package/dist/cli.cjs +4 -4
- package/dist/cli.mjs +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/package.json +1 -1
- package/dist/src/cli.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.41.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [fd8660c]
|
|
8
|
+
- @zapier/zapier-sdk@0.44.0
|
|
9
|
+
- @zapier/zapier-sdk-mcp@0.11.1
|
|
10
|
+
|
|
11
|
+
## 0.41.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 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.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [8df8761]
|
|
20
|
+
- @zapier/zapier-sdk-mcp@0.11.0
|
|
21
|
+
- @zapier/zapier-sdk@0.43.0
|
|
22
|
+
|
|
3
23
|
## 0.40.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -201,13 +201,13 @@ Get the JSON Schema representation of input fields for an action. Returns a JSON
|
|
|
201
201
|
|
|
202
202
|
**Options:**
|
|
203
203
|
|
|
204
|
-
| Option | Type | Required | Default | Possible Values | Description
|
|
205
|
-
| --------------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------------------------------- |
|
|
206
|
-
| `<app>` | `string` | ✅ | — | — | App key (e.g., 'SlackCLIAPI' or slug like 'github') to get the input schema for
|
|
207
|
-
| `<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
|
|
208
|
-
| `<action>` | `string` | ✅ | — | — | Action key to get the input schema for
|
|
209
|
-
| `--connection` | `string, number` | ❌ | — | — | Connection alias (
|
|
210
|
-
| `--inputs` | `object` | ❌ | — | — | Current input values that may affect the schema (e.g., when fields depend on other field values)
|
|
204
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
205
|
+
| --------------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
206
|
+
| `<app>` | `string` | ✅ | — | — | App key (e.g., 'SlackCLIAPI' or slug like 'github') to get the input schema for |
|
|
207
|
+
| `<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 |
|
|
208
|
+
| `<action>` | `string` | ✅ | — | — | Action key to get the input schema for |
|
|
209
|
+
| `--connection` | `string, number` | ❌ | — | — | Connection alias or connection ID (UUID or positive integer). Strings that match a key in the connections map are resolved against it; otherwise the value is used as a connection ID directly. Mutually exclusive with connectionId. |
|
|
210
|
+
| `--inputs` | `object` | ❌ | — | — | Current input values that may affect the schema (e.g., when fields depend on other field values) |
|
|
211
211
|
|
|
212
212
|
**Usage:**
|
|
213
213
|
|
|
@@ -241,18 +241,18 @@ Get the available choices for a dynamic dropdown input field
|
|
|
241
241
|
|
|
242
242
|
**Options:**
|
|
243
243
|
|
|
244
|
-
| Option | Type | Required | Default | Possible Values | Description
|
|
245
|
-
| --------------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------------------------------- |
|
|
246
|
-
| `<app>` | `string` | ✅ | — | — | App slug (e.g., 'github'), implementation name (e.g., 'SlackCLIAPI'), or versioned ID (e.g., 'github@1.2.3')
|
|
247
|
-
| `<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
|
|
248
|
-
| `<action>` | `string` | ✅ | — | — | Action key (e.g., 'send_message' or 'find_row')
|
|
249
|
-
| `<input-field>` | `string` | ✅ | — | — | Input field key to get choices for
|
|
250
|
-
| `--connection` | `string, number` | ❌ | — | — | Connection alias (
|
|
251
|
-
| `--inputs` | `object` | ❌ | — | — | Current input values that may affect available choices
|
|
252
|
-
| `--page` | `number` | ❌ | — | — | Page number for paginated results
|
|
253
|
-
| `--page-size` | `number` | ❌ | — | — | Number of choices per page
|
|
254
|
-
| `--max-items` | `number` | ❌ | — | — | Maximum total items to return across all pages
|
|
255
|
-
| `--cursor` | `string` | ❌ | — | — | Cursor to start from
|
|
244
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
245
|
+
| --------------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
246
|
+
| `<app>` | `string` | ✅ | — | — | App slug (e.g., 'github'), implementation name (e.g., 'SlackCLIAPI'), or versioned ID (e.g., 'github@1.2.3') |
|
|
247
|
+
| `<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 |
|
|
248
|
+
| `<action>` | `string` | ✅ | — | — | Action key (e.g., 'send_message' or 'find_row') |
|
|
249
|
+
| `<input-field>` | `string` | ✅ | — | — | Input field key to get choices for |
|
|
250
|
+
| `--connection` | `string, number` | ❌ | — | — | Connection alias or connection ID (UUID or positive integer). Strings that match a key in the connections map are resolved against it; otherwise the value is used as a connection ID directly. Mutually exclusive with connectionId. |
|
|
251
|
+
| `--inputs` | `object` | ❌ | — | — | Current input values that may affect available choices |
|
|
252
|
+
| `--page` | `number` | ❌ | — | — | Page number for paginated results |
|
|
253
|
+
| `--page-size` | `number` | ❌ | — | — | Number of choices per page |
|
|
254
|
+
| `--max-items` | `number` | ❌ | — | — | Maximum total items to return across all pages |
|
|
255
|
+
| `--cursor` | `string` | ❌ | — | — | Cursor to start from |
|
|
256
256
|
|
|
257
257
|
**Usage:**
|
|
258
258
|
|
|
@@ -266,16 +266,16 @@ Get the input fields required for a specific action
|
|
|
266
266
|
|
|
267
267
|
**Options:**
|
|
268
268
|
|
|
269
|
-
| Option | Type | Required | Default | Possible Values | Description
|
|
270
|
-
| --------------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------------------------------- |
|
|
271
|
-
| `<app>` | `string` | ✅ | — | — | App slug (e.g., 'github'), implementation name (e.g., 'SlackCLIAPI'), or versioned ID (e.g., 'github@1.2.3')
|
|
272
|
-
| `<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
|
|
273
|
-
| `<action>` | `string` | ✅ | — | — | Action key (e.g., 'send_message' or 'find_row')
|
|
274
|
-
| `--connection` | `string, number` | ❌ | — | — | Connection alias (
|
|
275
|
-
| `--inputs` | `object` | ❌ | — | — | Current input values that may affect available fields
|
|
276
|
-
| `--page-size` | `number` | ❌ | — | — | Number of input fields per page
|
|
277
|
-
| `--max-items` | `number` | ❌ | — | — | Maximum total items to return across all pages
|
|
278
|
-
| `--cursor` | `string` | ❌ | — | — | Cursor to start from
|
|
269
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
270
|
+
| --------------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
271
|
+
| `<app>` | `string` | ✅ | — | — | App slug (e.g., 'github'), implementation name (e.g., 'SlackCLIAPI'), or versioned ID (e.g., 'github@1.2.3') |
|
|
272
|
+
| `<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 |
|
|
273
|
+
| `<action>` | `string` | ✅ | — | — | Action key (e.g., 'send_message' or 'find_row') |
|
|
274
|
+
| `--connection` | `string, number` | ❌ | — | — | Connection alias or connection ID (UUID or positive integer). Strings that match a key in the connections map are resolved against it; otherwise the value is used as a connection ID directly. Mutually exclusive with connectionId. |
|
|
275
|
+
| `--inputs` | `object` | ❌ | — | — | Current input values that may affect available fields |
|
|
276
|
+
| `--page-size` | `number` | ❌ | — | — | Number of input fields per page |
|
|
277
|
+
| `--max-items` | `number` | ❌ | — | — | Maximum total items to return across all pages |
|
|
278
|
+
| `--cursor` | `string` | ❌ | — | — | Cursor to start from |
|
|
279
279
|
|
|
280
280
|
**Usage:**
|
|
281
281
|
|
|
@@ -289,17 +289,17 @@ Execute an action with the given inputs
|
|
|
289
289
|
|
|
290
290
|
**Options:**
|
|
291
291
|
|
|
292
|
-
| Option | Type | Required | Default | Possible Values | Description
|
|
293
|
-
| --------------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------------------------------- |
|
|
294
|
-
| `<app>` | `string` | ✅ | — | — | App slug (e.g., 'github'), implementation name (e.g., 'SlackCLIAPI'), or versioned ID (e.g., 'github@1.2.3')
|
|
295
|
-
| `<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
|
|
296
|
-
| `<action>` | `string` | ✅ | — | — | Action key (e.g., 'send_message' or 'find_row')
|
|
297
|
-
| `--connection` | `string, number` | ❌ | — | — | Connection alias (
|
|
298
|
-
| `--inputs` | `object` | ❌ | — | — | Input parameters for the action
|
|
299
|
-
| `--timeout-ms` | `number` | ❌ | — | — | Maximum time to wait for action completion in milliseconds (default: 180000)
|
|
300
|
-
| `--page-size` | `number` | ❌ | — | — | Number of results per page
|
|
301
|
-
| `--max-items` | `number` | ❌ | — | — | Maximum total items to return across all pages
|
|
302
|
-
| `--cursor` | `string` | ❌ | — | — | Cursor to start from
|
|
292
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
293
|
+
| --------------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
294
|
+
| `<app>` | `string` | ✅ | — | — | App slug (e.g., 'github'), implementation name (e.g., 'SlackCLIAPI'), or versioned ID (e.g., 'github@1.2.3') |
|
|
295
|
+
| `<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 |
|
|
296
|
+
| `<action>` | `string` | ✅ | — | — | Action key (e.g., 'send_message' or 'find_row') |
|
|
297
|
+
| `--connection` | `string, number` | ❌ | — | — | Connection alias or connection ID (UUID or positive integer). Strings that match a key in the connections map are resolved against it; otherwise the value is used as a connection ID directly. Mutually exclusive with connectionId. |
|
|
298
|
+
| `--inputs` | `object` | ❌ | — | — | Input parameters for the action |
|
|
299
|
+
| `--timeout-ms` | `number` | ❌ | — | — | Maximum time to wait for action completion in milliseconds (default: 180000) |
|
|
300
|
+
| `--page-size` | `number` | ❌ | — | — | Number of results per page |
|
|
301
|
+
| `--max-items` | `number` | ❌ | — | — | Maximum total items to return across all pages |
|
|
302
|
+
| `--cursor` | `string` | ❌ | — | — | Cursor to start from |
|
|
303
303
|
|
|
304
304
|
**Usage:**
|
|
305
305
|
|
|
@@ -450,9 +450,9 @@ Execute getConnection
|
|
|
450
450
|
|
|
451
451
|
**Options:**
|
|
452
452
|
|
|
453
|
-
| Option | Type | Required | Default | Possible Values | Description
|
|
454
|
-
| -------------- | ---------------- | -------- | ------- | --------------- |
|
|
455
|
-
| `--connection` | `string, number` | ❌ | — | — | Connection alias (
|
|
453
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
454
|
+
| -------------- | ---------------- | -------- | ------- | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
455
|
+
| `--connection` | `string, number` | ❌ | — | — | Connection alias or connection ID (UUID or positive integer). Strings that match a key in the connections map are resolved against it; otherwise the value is used as a connection ID directly. |
|
|
456
456
|
|
|
457
457
|
**Usage:**
|
|
458
458
|
|
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.
|
|
1106
|
+
version: "0.41.1"};
|
|
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.
|
|
4700
|
+
version: "0.41.1"};
|
|
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.
|
|
1068
|
+
version: "0.41.1"};
|
|
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.
|
|
4662
|
+
version: "0.41.1"};
|
|
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
package/dist/index.mjs
CHANGED
package/dist/package.json
CHANGED
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
|
}
|