@zapier/zapier-sdk-cli 0.13.6 → 0.13.7
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 +12 -0
- package/dist/cli.cjs +10 -15
- package/dist/cli.mjs +5 -10
- package/dist/index.cjs +9 -14
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +4 -9
- package/dist/package.json +1 -1
- package/dist/src/plugins/buildManifest/index.js +2 -2
- package/dist/src/plugins/buildManifest/schemas.d.ts +1 -2
- package/dist/src/sdk.d.ts +2 -1
- package/dist/src/utils/constants.d.ts +1 -3
- package/dist/src/utils/constants.js +3 -4
- package/dist/src/utils/manifest-helpers.d.ts +2 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/plugins/buildManifest/index.ts +2 -2
- package/src/plugins/buildManifest/schemas.ts +2 -4
- package/src/sdk.ts +2 -1
- package/src/utils/constants.ts +7 -6
- package/src/utils/manifest-helpers.ts +2 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zapier/zapier-sdk-cli",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.7",
|
|
4
4
|
"description": "Command line interface for Zapier SDK",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"pkce-challenge": "^5.0.0",
|
|
44
44
|
"typescript": "^5.8.3",
|
|
45
45
|
"zod": "^3.25.67",
|
|
46
|
-
"@zapier/zapier-sdk
|
|
47
|
-
"@zapier/zapier-sdk": "0.
|
|
48
|
-
"@zapier/zapier-sdk-mcp": "0.3.
|
|
46
|
+
"@zapier/zapier-sdk": "0.13.6",
|
|
47
|
+
"@zapier/zapier-sdk-cli-login": "0.3.3",
|
|
48
|
+
"@zapier/zapier-sdk-mcp": "0.3.19"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/express": "^5.0.3",
|
|
@@ -73,7 +73,7 @@ export const buildManifestPlugin: Plugin<
|
|
|
73
73
|
type: "manifest_entry_built",
|
|
74
74
|
appKey: app.key,
|
|
75
75
|
manifestKey: manifestEntry.implementationName,
|
|
76
|
-
version: manifestEntry.version,
|
|
76
|
+
version: manifestEntry.version || "",
|
|
77
77
|
});
|
|
78
78
|
|
|
79
79
|
const [updatedManifestKey, , manifest] =
|
|
@@ -91,7 +91,7 @@ export const buildManifestPlugin: Plugin<
|
|
|
91
91
|
type: "manifest_updated",
|
|
92
92
|
appKey: app.key,
|
|
93
93
|
manifestKey: updatedManifestKey,
|
|
94
|
-
version: manifestEntry.version,
|
|
94
|
+
version: manifestEntry.version || "",
|
|
95
95
|
});
|
|
96
96
|
|
|
97
97
|
onProgress?.({ type: "app_processing_complete", appKey: app.key });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { AppItem,
|
|
2
|
+
import type { AppItem, Manifest } from "@zapier/zapier-sdk";
|
|
3
3
|
|
|
4
4
|
export const BuildManifestSchema = z
|
|
5
5
|
.object({
|
|
@@ -51,11 +51,9 @@ export type ManifestBuildProgressEvent =
|
|
|
51
51
|
| { type: "app_processing_error"; appKey: string; error: string };
|
|
52
52
|
|
|
53
53
|
export interface BuildManifestResult {
|
|
54
|
-
manifest?: Manifest;
|
|
54
|
+
manifest?: Manifest;
|
|
55
55
|
errors: Array<{
|
|
56
56
|
appKey: string;
|
|
57
57
|
error: string;
|
|
58
58
|
}>;
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
export type { ManifestEntry };
|
package/src/sdk.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createZapierSdkWithoutRegistry,
|
|
3
3
|
registryPlugin,
|
|
4
|
+
type ZapierSdkOptions,
|
|
4
5
|
} from "@zapier/zapier-sdk";
|
|
5
6
|
import {
|
|
6
7
|
loginPlugin,
|
|
@@ -14,7 +15,7 @@ import {
|
|
|
14
15
|
} from "./plugins/index";
|
|
15
16
|
import type { ZapierSdkCli } from "./types/sdk";
|
|
16
17
|
|
|
17
|
-
export interface ZapierCliSdkOptions {
|
|
18
|
+
export interface ZapierCliSdkOptions extends ZapierSdkOptions {
|
|
18
19
|
debug?: boolean;
|
|
19
20
|
eventEmission?: {
|
|
20
21
|
enabled?: boolean;
|
package/src/utils/constants.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
// Import shared OAuth constants from login package
|
|
2
|
+
export {
|
|
3
|
+
ZAPIER_BASE,
|
|
4
|
+
LOGIN_CLIENT_ID,
|
|
5
|
+
AUTH_MODE_HEADER,
|
|
6
|
+
} from "@zapier/zapier-sdk-cli-login";
|
|
5
7
|
|
|
8
|
+
// CLI-specific constants
|
|
6
9
|
export const LOGIN_PORTS = [49505, 50575, 52804, 55981, 61010, 63851];
|
|
7
10
|
export const LOGIN_TIMEOUT_MS = 300000; // 5 minutes
|
|
8
|
-
|
|
9
|
-
export const AUTH_MODE_HEADER = "X-Auth";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppItem } from "@zapier/zapier-sdk";
|
|
1
|
+
import type { AppItem, ManifestEntry } from "@zapier/zapier-sdk";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Get the preferred key for a manifest entry
|
|
@@ -11,10 +11,7 @@ export function getManifestKey(app: AppItem): string {
|
|
|
11
11
|
/**
|
|
12
12
|
* Create a manifest entry from an app
|
|
13
13
|
*/
|
|
14
|
-
export function createManifestEntry(app: AppItem): {
|
|
15
|
-
implementationName: string;
|
|
16
|
-
version: string;
|
|
17
|
-
} {
|
|
14
|
+
export function createManifestEntry(app: AppItem): ManifestEntry {
|
|
18
15
|
if (!app.version) {
|
|
19
16
|
throw new Error(
|
|
20
17
|
`App ${app.key} does not have a version. Implementation ID: ${app.implementation_id}`,
|