@zapier/zapier-sdk-cli 0.41.0 → 0.42.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 +20 -0
- package/README.md +43 -43
- package/dist/cli.cjs +4 -4
- package/dist/cli.mjs +5 -5
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +4 -4
- package/dist/package.json +1 -1
- package/dist/src/sdk.js +3 -9
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.42.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 15dce25: `registryPlugin` is now deprecated, because `getRegistry` is built into the SDK and added after each plugin is added. Plugins will always be registered; there is no need to call `createZapierSdkWithoutRegistry`, add custom plugins, and then `.addPlugin(registryPlugin)`. Because of this, `createZapierSdkWithoutRegistry` is now deprecated, and calling it will still give you an SDK with `getRegistry` on it. Calling `addPlugin(registryPlugin)` on that SDK is a no-op.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [15dce25]
|
|
12
|
+
- @zapier/zapier-sdk@0.45.0
|
|
13
|
+
- @zapier/zapier-sdk-mcp@0.11.2
|
|
14
|
+
|
|
15
|
+
## 0.41.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [fd8660c]
|
|
20
|
+
- @zapier/zapier-sdk@0.44.0
|
|
21
|
+
- @zapier/zapier-sdk-mcp@0.11.1
|
|
22
|
+
|
|
3
23
|
## 0.41.0
|
|
4
24
|
|
|
5
25
|
### Minor 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.42.0"};
|
|
1107
1107
|
|
|
1108
1108
|
// src/telemetry/builders.ts
|
|
1109
1109
|
function createCliBaseEvent(context = {}) {
|
|
@@ -4688,16 +4688,16 @@ var initPlugin = () => {
|
|
|
4688
4688
|
// src/sdk.ts
|
|
4689
4689
|
zapierSdk.injectCliLogin(cliLogin__namespace);
|
|
4690
4690
|
function createZapierCliSdk(options = {}) {
|
|
4691
|
-
return zapierSdk.
|
|
4691
|
+
return zapierSdk.createZapierSdk({
|
|
4692
4692
|
...options,
|
|
4693
4693
|
eventEmission: { ...options.eventEmission, callContext: "cli" }
|
|
4694
|
-
}).addPlugin(generateAppTypesPlugin).addPlugin(buildManifestPlugin).addPlugin(bundleCodePlugin).addPlugin(getLoginConfigPathPlugin).addPlugin(addPlugin).addPlugin(feedbackPlugin).addPlugin(curlPlugin).addPlugin(initPlugin).addPlugin(mcpPlugin).addPlugin(loginPlugin).addPlugin(logoutPlugin).addPlugin(cliOverridesPlugin)
|
|
4694
|
+
}).addPlugin(generateAppTypesPlugin).addPlugin(buildManifestPlugin).addPlugin(bundleCodePlugin).addPlugin(getLoginConfigPathPlugin).addPlugin(addPlugin).addPlugin(feedbackPlugin).addPlugin(curlPlugin).addPlugin(initPlugin).addPlugin(mcpPlugin).addPlugin(loginPlugin).addPlugin(logoutPlugin).addPlugin(cliOverridesPlugin);
|
|
4695
4695
|
}
|
|
4696
4696
|
|
|
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.42.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;
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Command, CommanderError, Option } from 'commander';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { createFunction, OutputPropertySchema, DEFAULT_CONFIG_PATH, injectCliLogin, BaseSdkOptionsSchema,
|
|
4
|
+
import { createFunction, OutputPropertySchema, DEFAULT_CONFIG_PATH, injectCliLogin, BaseSdkOptionsSchema, createZapierSdk, ZapierError, ZapierValidationError, ZapierUnknownError, batch, toSnakeCase, buildApplicationLifecycleEvent, isCredentialsObject, isPositional, runWithTelemetryContext, buildCapabilityMessage, formatErrorMessage, getOsInfo, getPlatformVersions, getCiPlatform, isCi, getReleaseId, getCurrentTimestamp, generateEventId } from '@zapier/zapier-sdk';
|
|
5
5
|
import inquirer from 'inquirer';
|
|
6
6
|
import chalk7 from 'chalk';
|
|
7
7
|
import ora from 'ora';
|
|
@@ -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.42.0"};
|
|
1069
1069
|
|
|
1070
1070
|
// src/telemetry/builders.ts
|
|
1071
1071
|
function createCliBaseEvent(context = {}) {
|
|
@@ -4650,16 +4650,16 @@ var initPlugin = () => {
|
|
|
4650
4650
|
// src/sdk.ts
|
|
4651
4651
|
injectCliLogin(cliLogin);
|
|
4652
4652
|
function createZapierCliSdk(options = {}) {
|
|
4653
|
-
return
|
|
4653
|
+
return createZapierSdk({
|
|
4654
4654
|
...options,
|
|
4655
4655
|
eventEmission: { ...options.eventEmission, callContext: "cli" }
|
|
4656
|
-
}).addPlugin(generateAppTypesPlugin).addPlugin(buildManifestPlugin).addPlugin(bundleCodePlugin).addPlugin(getLoginConfigPathPlugin).addPlugin(addPlugin).addPlugin(feedbackPlugin).addPlugin(curlPlugin).addPlugin(initPlugin).addPlugin(mcpPlugin).addPlugin(loginPlugin).addPlugin(logoutPlugin).addPlugin(cliOverridesPlugin)
|
|
4656
|
+
}).addPlugin(generateAppTypesPlugin).addPlugin(buildManifestPlugin).addPlugin(bundleCodePlugin).addPlugin(getLoginConfigPathPlugin).addPlugin(addPlugin).addPlugin(feedbackPlugin).addPlugin(curlPlugin).addPlugin(initPlugin).addPlugin(mcpPlugin).addPlugin(loginPlugin).addPlugin(logoutPlugin).addPlugin(cliOverridesPlugin);
|
|
4657
4657
|
}
|
|
4658
4658
|
|
|
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.42.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;
|
package/dist/index.cjs
CHANGED
|
@@ -2502,15 +2502,15 @@ var initPlugin = () => {
|
|
|
2502
2502
|
// src/sdk.ts
|
|
2503
2503
|
zapierSdk.injectCliLogin(cliLogin__namespace);
|
|
2504
2504
|
function createZapierCliSdk(options = {}) {
|
|
2505
|
-
return zapierSdk.
|
|
2505
|
+
return zapierSdk.createZapierSdk({
|
|
2506
2506
|
...options,
|
|
2507
2507
|
eventEmission: { ...options.eventEmission, callContext: "cli" }
|
|
2508
|
-
}).addPlugin(generateAppTypesPlugin).addPlugin(buildManifestPlugin).addPlugin(bundleCodePlugin).addPlugin(getLoginConfigPathPlugin).addPlugin(addPlugin).addPlugin(feedbackPlugin).addPlugin(curlPlugin).addPlugin(initPlugin).addPlugin(mcpPlugin).addPlugin(loginPlugin).addPlugin(logoutPlugin).addPlugin(cliOverridesPlugin)
|
|
2508
|
+
}).addPlugin(generateAppTypesPlugin).addPlugin(buildManifestPlugin).addPlugin(bundleCodePlugin).addPlugin(getLoginConfigPathPlugin).addPlugin(addPlugin).addPlugin(feedbackPlugin).addPlugin(curlPlugin).addPlugin(initPlugin).addPlugin(mcpPlugin).addPlugin(loginPlugin).addPlugin(logoutPlugin).addPlugin(cliOverridesPlugin);
|
|
2509
2509
|
}
|
|
2510
2510
|
|
|
2511
2511
|
// package.json
|
|
2512
2512
|
var package_default = {
|
|
2513
|
-
version: "0.
|
|
2513
|
+
version: "0.42.0"};
|
|
2514
2514
|
|
|
2515
2515
|
// src/telemetry/builders.ts
|
|
2516
2516
|
function createCliBaseEvent(context = {}) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as cliLogin from '@zapier/zapier-sdk-cli-login';
|
|
2
2
|
import { logout, getConfigPath, getLoggedInUser, getPkceLoginConfig, AUTH_MODE_HEADER, getLoginStorageMode, updateLogin } from '@zapier/zapier-sdk-cli-login';
|
|
3
|
-
import { createFunction, OutputPropertySchema, DEFAULT_CONFIG_PATH, injectCliLogin,
|
|
3
|
+
import { createFunction, OutputPropertySchema, DEFAULT_CONFIG_PATH, injectCliLogin, createZapierSdk, getOsInfo, getPlatformVersions, getCiPlatform, isCi, ZapierValidationError, ZapierUnknownError, getReleaseId, getCurrentTimestamp, generateEventId, batch, toSnakeCase, buildApplicationLifecycleEvent, ZapierError, isCredentialsObject } from '@zapier/zapier-sdk';
|
|
4
4
|
import open from 'open';
|
|
5
5
|
import crypto, { createHash } from 'crypto';
|
|
6
6
|
import express from 'express';
|
|
@@ -2469,15 +2469,15 @@ var initPlugin = () => {
|
|
|
2469
2469
|
// src/sdk.ts
|
|
2470
2470
|
injectCliLogin(cliLogin);
|
|
2471
2471
|
function createZapierCliSdk(options = {}) {
|
|
2472
|
-
return
|
|
2472
|
+
return createZapierSdk({
|
|
2473
2473
|
...options,
|
|
2474
2474
|
eventEmission: { ...options.eventEmission, callContext: "cli" }
|
|
2475
|
-
}).addPlugin(generateAppTypesPlugin).addPlugin(buildManifestPlugin).addPlugin(bundleCodePlugin).addPlugin(getLoginConfigPathPlugin).addPlugin(addPlugin).addPlugin(feedbackPlugin).addPlugin(curlPlugin).addPlugin(initPlugin).addPlugin(mcpPlugin).addPlugin(loginPlugin).addPlugin(logoutPlugin).addPlugin(cliOverridesPlugin)
|
|
2475
|
+
}).addPlugin(generateAppTypesPlugin).addPlugin(buildManifestPlugin).addPlugin(bundleCodePlugin).addPlugin(getLoginConfigPathPlugin).addPlugin(addPlugin).addPlugin(feedbackPlugin).addPlugin(curlPlugin).addPlugin(initPlugin).addPlugin(mcpPlugin).addPlugin(loginPlugin).addPlugin(logoutPlugin).addPlugin(cliOverridesPlugin);
|
|
2476
2476
|
}
|
|
2477
2477
|
|
|
2478
2478
|
// package.json
|
|
2479
2479
|
var package_default = {
|
|
2480
|
-
version: "0.
|
|
2480
|
+
version: "0.42.0"};
|
|
2481
2481
|
|
|
2482
2482
|
// src/telemetry/builders.ts
|
|
2483
2483
|
function createCliBaseEvent(context = {}) {
|
package/dist/package.json
CHANGED
package/dist/src/sdk.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as cliLogin from "@zapier/zapier-sdk-cli-login";
|
|
2
|
-
import {
|
|
2
|
+
import { createZapierSdk, injectCliLogin, } from "@zapier/zapier-sdk";
|
|
3
3
|
import { loginPlugin, logoutPlugin, mcpPlugin, bundleCodePlugin, getLoginConfigPathPlugin, addPlugin, generateAppTypesPlugin, buildManifestPlugin, feedbackPlugin, curlPlugin, cliOverridesPlugin, initPlugin, } from "./plugins/index";
|
|
4
4
|
injectCliLogin(cliLogin);
|
|
5
5
|
/**
|
|
@@ -7,13 +7,10 @@ injectCliLogin(cliLogin);
|
|
|
7
7
|
* Includes all CLI-specific plugins in addition to the standard SDK functionality
|
|
8
8
|
*/
|
|
9
9
|
export function createZapierCliSdk(options = {}) {
|
|
10
|
-
|
|
11
|
-
// Chaining prevents type widening that occurs with let reassignment
|
|
12
|
-
return (createZapierSdkWithoutRegistry({
|
|
10
|
+
return createZapierSdk({
|
|
13
11
|
...options,
|
|
14
12
|
eventEmission: { ...options.eventEmission, callContext: "cli" },
|
|
15
13
|
})
|
|
16
|
-
// Add CLI-specific plugins before registry
|
|
17
14
|
.addPlugin(generateAppTypesPlugin)
|
|
18
15
|
.addPlugin(buildManifestPlugin)
|
|
19
16
|
.addPlugin(bundleCodePlugin)
|
|
@@ -25,8 +22,5 @@ export function createZapierCliSdk(options = {}) {
|
|
|
25
22
|
.addPlugin(mcpPlugin)
|
|
26
23
|
.addPlugin(loginPlugin)
|
|
27
24
|
.addPlugin(logoutPlugin)
|
|
28
|
-
|
|
29
|
-
.addPlugin(cliOverridesPlugin)
|
|
30
|
-
// Add registry plugin to finalize SDK
|
|
31
|
-
.addPlugin(registryPlugin));
|
|
25
|
+
.addPlugin(cliOverridesPlugin);
|
|
32
26
|
}
|