@zuplo/cli 6.52.10 → 6.52.12
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/dist/__tests__/archive-utils.test.d.ts +1 -1
- package/dist/__tests__/engine.test.d.ts +1 -1
- package/dist/__tests__/import-openapi-utils.test.d.ts +1 -1
- package/dist/__tests__/import-openapi.test.d.ts +1 -1
- package/dist/__tests__/integration/delete.integration.test.d.ts +1 -1
- package/dist/__tests__/integration/deploy.integration.test.d.ts +1 -1
- package/dist/__tests__/integration/jest-mocks-setup.d.ts +1 -1
- package/dist/__tests__/integration/jest-setup.d.ts +1 -1
- package/dist/__tests__/integration/link.integration.test.d.ts +1 -1
- package/dist/__tests__/integration/list.integration.test.d.ts +1 -1
- package/dist/__tests__/integration/test-utils.d.ts +13 -13
- package/dist/__tests__/integration/tunnel.integration.test.d.ts +1 -1
- package/dist/__tests__/integration/variable.integration.test.d.ts +1 -1
- package/dist/__tests__/oas-test-data.d.ts +84 -84
- package/dist/__tests__/outdated.test.d.ts +1 -1
- package/dist/__tests__/tsconfig-upgrader.test.d.ts +1 -1
- package/dist/build/handler.d.ts +3 -3
- package/dist/cli.d.ts +1 -1
- package/dist/cmds/build.d.ts +5 -5
- package/dist/cmds/compile.d.ts +5 -5
- package/dist/cmds/convert.d.ts +5 -5
- package/dist/cmds/delete.d.ts +5 -5
- package/dist/cmds/deploy.d.ts +5 -5
- package/dist/cmds/dev.d.ts +5 -5
- package/dist/cmds/editor.d.ts +5 -5
- package/dist/cmds/link.d.ts +5 -5
- package/dist/cmds/list.d.ts +5 -5
- package/dist/cmds/login.d.ts +5 -5
- package/dist/cmds/project/import-openapi.d.ts +5 -5
- package/dist/cmds/project/index.d.ts +1 -1
- package/dist/cmds/project/update.d.ts +5 -5
- package/dist/cmds/source/import-openapi.d.ts +5 -5
- package/dist/cmds/source/index.d.ts +1 -1
- package/dist/cmds/source/upgrade.d.ts +5 -5
- package/dist/cmds/test.d.ts +5 -5
- package/dist/cmds/tunnel/create.d.ts +5 -5
- package/dist/cmds/tunnel/delete.d.ts +5 -5
- package/dist/cmds/tunnel/describe.d.ts +5 -5
- package/dist/cmds/tunnel/index.d.ts +1 -1
- package/dist/cmds/tunnel/list.d.ts +5 -5
- package/dist/cmds/tunnel/rotate-token.d.ts +5 -5
- package/dist/cmds/tunnel/services/describe.d.ts +5 -5
- package/dist/cmds/tunnel/services/index.d.ts +1 -1
- package/dist/cmds/tunnel/services/update.d.ts +5 -5
- package/dist/cmds/variable/create.d.ts +5 -5
- package/dist/cmds/variable/index.d.ts +1 -1
- package/dist/cmds/variable/update.d.ts +5 -5
- package/dist/common/alias.d.ts +1 -1
- package/dist/common/analytics/lib.d.ts +18 -10
- package/dist/common/api/lib.d.ts +11 -11
- package/dist/common/args.d.ts +2 -2
- package/dist/common/builders/authenticated-command-builder.d.ts +19 -12
- package/dist/common/builders/authenticated-command-builder.spec.d.ts +1 -1
- package/dist/common/constants.d.ts +5 -3
- package/dist/common/handler.d.ts +1 -1
- package/dist/common/logger.d.ts +5 -3
- package/dist/common/machine-id/lib.d.ts +1 -1
- package/dist/common/middleware/authentication.d.ts +2 -2
- package/dist/common/middleware/logging.d.ts +2 -4
- package/dist/common/middleware/user-configuration.d.ts +2 -2
- package/dist/common/middleware/user-identification.d.ts +2 -2
- package/dist/common/models.d.ts +5 -5
- package/dist/common/outdated.d.ts +8 -3
- package/dist/common/output.d.ts +21 -10
- package/dist/common/settings.d.ts +6 -6
- package/dist/common/upgraders/lib.d.ts +8 -8
- package/dist/common/upgraders/package-json-upgrader.d.ts +4 -4
- package/dist/common/upgraders/tsconfig-upgrader.d.ts +6 -6
- package/dist/common/upgraders/vscode-settings-json-upgrader.d.ts +3 -3
- package/dist/common/utils/box.d.ts +17 -6
- package/dist/common/utils/ports.d.ts +5 -2
- package/dist/common/utils/types.d.ts +3 -2
- package/dist/common/utils/urls.d.ts +1 -1
- package/dist/common/validators/file-system-validator.d.ts +55 -47
- package/dist/common/validators/lib.d.ts +17 -15
- package/dist/common/validators/project-name-validator.d.ts +9 -8
- package/dist/common/worker-output.d.ts +15 -4
- package/dist/common/xdg/lib.d.ts +1 -1
- package/dist/compile/handler.d.ts +6 -6
- package/dist/convert/engine.d.ts +9 -9
- package/dist/convert/handler.d.ts +2 -2
- package/dist/convert/routes.legacy.d.ts +74 -54
- package/dist/delete/handler.d.ts +7 -7
- package/dist/delete/poll-deployment.d.ts +1 -1
- package/dist/deploy/archive.d.ts +10 -10
- package/dist/deploy/environments.d.ts +14 -5
- package/dist/deploy/file-upload.d.ts +19 -10
- package/dist/deploy/handler.d.ts +13 -10
- package/dist/deploy/poll-deployment.d.ts +20 -9
- package/dist/dev/handler.d.ts +6 -6
- package/dist/editor/assets/index-7e947de6.d.ts +1 -1
- package/dist/editor/handler.d.ts +3 -3
- package/dist/editor/server/cors-plugin.d.ts +12 -3
- package/dist/editor/server/server.d.ts +18 -18
- package/dist/editor/server/xfs.d.ts +1 -1
- package/dist/link/handler.d.ts +6 -6
- package/dist/link/populate.d.ts +8 -3
- package/dist/list/handler.d.ts +8 -8
- package/dist/login/html.d.ts +3 -2
- package/dist/login/login.d.ts +4 -2
- package/dist/login/server.d.ts +4 -2
- package/dist/login/tokens.d.ts +10 -8
- package/dist/project/import-openapi/handler.d.ts +9 -8
- package/dist/project/import-openapi/interfaces.d.ts +43 -16
- package/dist/project/import-openapi/utils.d.ts +8 -3
- package/dist/project/update/handler.d.ts +2 -2
- package/dist/test/esbuild-config.d.ts +4 -2
- package/dist/test/esbuild-plugins/node-test-prep-plugin.d.ts +5 -2
- package/dist/test/handler.d.ts +4 -4
- package/dist/test/invoke-test.d.ts +4 -2
- package/dist/test/test-files.d.ts +1 -1
- package/dist/test/test-files.test.d.ts +1 -1
- package/dist/tunnel/create/handler.d.ts +4 -4
- package/dist/tunnel/delete/handler.d.ts +4 -4
- package/dist/tunnel/delete/poll-teardown-operation.d.ts +4 -4
- package/dist/tunnel/describe/handler.d.ts +4 -4
- package/dist/tunnel/list/handler.d.ts +3 -3
- package/dist/tunnel/models.d.ts +14 -14
- package/dist/tunnel/rotate-token/handler.d.ts +4 -4
- package/dist/tunnel/services/describe/handler.d.ts +4 -4
- package/dist/tunnel/services/update/handler.d.ts +5 -5
- package/dist/tunnel/services/update/poll-provisioning-operations.d.ts +4 -4
- package/dist/variable/create/handler.d.ts +1 -1
- package/dist/variable/models.d.ts +14 -14
- package/dist/variable/update/handler.d.ts +1 -1
- package/package.json +5 -5
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
export type Result<V = null, E = Error> =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export type Result<V = null, E = Error> =
|
|
2
|
+
| {
|
|
3
|
+
ok: true;
|
|
4
|
+
error?: V;
|
|
5
|
+
}
|
|
6
|
+
| {
|
|
7
|
+
ok: false;
|
|
8
|
+
error: E;
|
|
9
|
+
};
|
|
8
10
|
export interface ValidationRule<W, V = null, E = Error> {
|
|
9
|
-
|
|
11
|
+
validate(what: W): Promise<Result<V, E>> | Result<V, E>;
|
|
10
12
|
}
|
|
11
13
|
export declare class CompositeValidator<W> implements ValidationRule<W> {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
private readonly validators;
|
|
15
|
+
constructor(...validators: Array<ValidationRule<W>>);
|
|
16
|
+
validate(what: W): Promise<Result>;
|
|
15
17
|
}
|
|
16
18
|
export declare class YargsChecker<W> {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
private readonly validator;
|
|
20
|
+
constructor(validator: ValidationRule<W>);
|
|
21
|
+
check(what: W): Promise<string | true>;
|
|
20
22
|
}
|
|
21
|
-
//# sourceMappingURL=lib.d.ts.map
|
|
23
|
+
//# sourceMappingURL=lib.d.ts.map
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Result, ValidationRule } from "./lib.js";
|
|
2
2
|
export declare class ProjectIsNotSet extends Error {
|
|
3
|
-
|
|
3
|
+
constructor();
|
|
4
4
|
}
|
|
5
|
-
export declare class ProjectIsSetValidator
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
export declare class ProjectIsSetValidator
|
|
6
|
+
implements
|
|
7
|
+
ValidationRule<{
|
|
8
|
+
project: string | undefined;
|
|
9
|
+
}>
|
|
10
|
+
{
|
|
11
|
+
validate(argv: { project: string | undefined }): Promise<Result>;
|
|
11
12
|
}
|
|
12
|
-
//# sourceMappingURL=project-name-validator.d.ts.map
|
|
13
|
+
//# sourceMappingURL=project-name-validator.d.ts.map
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { Readable } from "node:stream";
|
|
2
2
|
import { LogLevel } from "@zuplo/core/cli";
|
|
3
|
-
export declare function handleRuntimeStdio(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
export declare function handleRuntimeStdio(
|
|
4
|
+
stdout: Readable,
|
|
5
|
+
stderr: Readable
|
|
6
|
+
): void;
|
|
7
|
+
export declare function logConsole(
|
|
8
|
+
level: LogLevel,
|
|
9
|
+
data: string,
|
|
10
|
+
callDepth?: number
|
|
11
|
+
): void;
|
|
12
|
+
export declare function logConsoleAsync(
|
|
13
|
+
level: LogLevel,
|
|
14
|
+
data: string,
|
|
15
|
+
callDepth?: number
|
|
16
|
+
): Promise<void>;
|
|
17
|
+
//# sourceMappingURL=worker-output.d.ts.map
|
package/dist/common/xdg/lib.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export declare const XDG_STATE_HOME: string;
|
|
|
4
4
|
export declare const ZUPLO_XDG_CONFIG_HOME: string;
|
|
5
5
|
export declare const ZUPLO_XDG_DATA_HOME: string;
|
|
6
6
|
export declare const ZUPLO_XDG_STATE_HOME: string;
|
|
7
|
-
//# sourceMappingURL=lib.d.ts.map
|
|
7
|
+
//# sourceMappingURL=lib.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export interface Arguments {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
dir: string;
|
|
3
|
+
"bundled-dir": string;
|
|
4
|
+
port: number;
|
|
5
|
+
"binary-name": string;
|
|
6
|
+
"build-id": string;
|
|
7
7
|
}
|
|
8
8
|
export declare function compile(argv: Arguments): Promise<void>;
|
|
9
|
-
//# sourceMappingURL=handler.d.ts.map
|
|
9
|
+
//# sourceMappingURL=handler.d.ts.map
|
package/dist/convert/engine.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { RouteConfigFile } from "./routes.legacy.js";
|
|
2
2
|
export declare function convertRoutes(routesConfig: RouteConfigFile): {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
openapi: string;
|
|
4
|
+
info: {
|
|
5
|
+
title: string;
|
|
6
|
+
version: string;
|
|
7
|
+
};
|
|
8
|
+
paths: {};
|
|
9
9
|
};
|
|
10
10
|
export declare function convertPolicies(routes: RouteConfigFile): {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
policies: import("./routes.legacy.js").PolicyConfigurationFragment[];
|
|
12
|
+
corsPolicies: import("./routes.legacy.js").CorsPolicyConfiguration[];
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=engine.d.ts.map
|
|
14
|
+
//# sourceMappingURL=engine.d.ts.map
|
|
@@ -1,68 +1,88 @@
|
|
|
1
1
|
export interface RouteConfigFile {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
$schema?: string;
|
|
3
|
+
versions: [VersionData, ...VersionData[]];
|
|
4
|
+
routes: RouteConfigurationFragment[];
|
|
5
|
+
policies?: PolicyConfigurationFragment[];
|
|
6
|
+
corsPolicies?: CorsPolicyConfiguration[];
|
|
7
7
|
}
|
|
8
8
|
export interface VersionData {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
name: string;
|
|
10
|
+
pathPrefix: string;
|
|
11
|
+
info?: Info;
|
|
12
|
+
openApiFile?: string;
|
|
13
|
+
excludeFromOpenApi?: boolean;
|
|
14
|
+
enforceOpenApi?: boolean;
|
|
15
15
|
}
|
|
16
16
|
export interface Info {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
title: string;
|
|
18
|
+
summary?: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
termsOfService?: string;
|
|
21
|
+
version: string;
|
|
22
|
+
[k: string]: unknown;
|
|
23
23
|
}
|
|
24
24
|
export interface RouteConfigurationFragment {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
25
|
+
operationId?: string;
|
|
26
|
+
path: string;
|
|
27
|
+
methods: (
|
|
28
|
+
| "GET"
|
|
29
|
+
| "HEAD"
|
|
30
|
+
| "POST"
|
|
31
|
+
| "PUT"
|
|
32
|
+
| "DELETE"
|
|
33
|
+
| "CONNECT"
|
|
34
|
+
| "OPTIONS"
|
|
35
|
+
| "TRACE"
|
|
36
|
+
| "PATCH"
|
|
37
|
+
)[];
|
|
38
|
+
label?: string;
|
|
39
|
+
enforceOpenApi?: boolean;
|
|
40
|
+
key?: string;
|
|
41
|
+
handler: HandlerDefinition;
|
|
42
|
+
corsPolicy?: string;
|
|
43
|
+
custom?: unknown;
|
|
44
|
+
version: string;
|
|
45
|
+
policies?: {
|
|
46
|
+
inbound?: string[];
|
|
47
|
+
outbound?: string[];
|
|
48
|
+
};
|
|
49
|
+
summary?: string;
|
|
50
|
+
description?: string;
|
|
51
|
+
excludeFromOpenApi?: boolean;
|
|
52
|
+
tags?: string[];
|
|
43
53
|
}
|
|
44
54
|
export interface HandlerDefinition {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
55
|
+
module: string;
|
|
56
|
+
export: string;
|
|
57
|
+
options?: {
|
|
58
|
+
[k: string]: unknown;
|
|
59
|
+
};
|
|
50
60
|
}
|
|
51
61
|
export interface PolicyConfigurationFragment {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
62
|
+
name: string;
|
|
63
|
+
policyType: string;
|
|
64
|
+
handler: HandlerDefinition;
|
|
65
|
+
options?: {
|
|
66
|
+
[k: string]: unknown;
|
|
67
|
+
};
|
|
58
68
|
}
|
|
59
69
|
export interface CorsPolicyConfiguration {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
70
|
+
name: string;
|
|
71
|
+
allowCredentials?: boolean;
|
|
72
|
+
maxAge?: number;
|
|
73
|
+
allowedOrigins: string[];
|
|
74
|
+
allowedMethods?: (
|
|
75
|
+
| "GET"
|
|
76
|
+
| "HEAD"
|
|
77
|
+
| "POST"
|
|
78
|
+
| "PUT"
|
|
79
|
+
| "DELETE"
|
|
80
|
+
| "CONNECT"
|
|
81
|
+
| "OPTIONS"
|
|
82
|
+
| "TRACE"
|
|
83
|
+
| "PATCH"
|
|
84
|
+
)[];
|
|
85
|
+
allowedHeaders?: string[];
|
|
86
|
+
exposeHeaders?: string[];
|
|
67
87
|
}
|
|
68
|
-
//# sourceMappingURL=routes.legacy.d.ts.map
|
|
88
|
+
//# sourceMappingURL=routes.legacy.d.ts.map
|
package/dist/delete/handler.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export interface Arguments {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
account: string;
|
|
3
|
+
project: string;
|
|
4
|
+
url: string;
|
|
5
|
+
authToken: string;
|
|
6
|
+
wait: boolean;
|
|
7
|
+
"self-hosted-endpoint"?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare function deleteZup(argv: Arguments): Promise<void>;
|
|
10
|
-
//# sourceMappingURL=handler.d.ts.map
|
|
10
|
+
//# sourceMappingURL=handler.d.ts.map
|
package/dist/deploy/archive.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Arguments } from "./handler.js";
|
|
2
2
|
export declare const ARCHIVE_EXTENSION = ".tar.gz";
|
|
3
3
|
export declare function archive(argv: Arguments): Promise<{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
branch: string;
|
|
7
|
-
repoUrl: string | undefined;
|
|
8
|
-
sha: string | undefined;
|
|
9
|
-
};
|
|
10
|
-
}>;
|
|
11
|
-
export declare function createIgnoreFunction(normalizedDir: string): any;
|
|
12
|
-
export declare function generateMetadata(argv: Arguments): Promise<{
|
|
4
|
+
tarball: string;
|
|
5
|
+
metadata: {
|
|
13
6
|
branch: string;
|
|
14
7
|
repoUrl: string | undefined;
|
|
15
8
|
sha: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
}>;
|
|
11
|
+
export declare function createIgnoreFunction(normalizedDir: string): any;
|
|
12
|
+
export declare function generateMetadata(argv: Arguments): Promise<{
|
|
13
|
+
branch: string;
|
|
14
|
+
repoUrl: string | undefined;
|
|
15
|
+
sha: string | undefined;
|
|
16
16
|
}>;
|
|
17
|
-
//# sourceMappingURL=archive.d.ts.map
|
|
17
|
+
//# sourceMappingURL=archive.d.ts.map
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { Environment } from "../common/api/lib.js";
|
|
2
2
|
import { SelfHostedArgs } from "./handler.js";
|
|
3
3
|
export declare class UnableToAutoLinkToExistingProject extends Error {
|
|
4
|
-
|
|
4
|
+
constructor(projectName: string);
|
|
5
5
|
}
|
|
6
|
-
export declare function retrieveOrCreateEnvironment(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
export declare function retrieveOrCreateEnvironment(
|
|
7
|
+
branch: string,
|
|
8
|
+
argv: SelfHostedArgs
|
|
9
|
+
): Promise<any>;
|
|
10
|
+
export declare function retrieveFirstEnvironment(
|
|
11
|
+
branch: string,
|
|
12
|
+
argv: SelfHostedArgs
|
|
13
|
+
): Promise<Environment | undefined>;
|
|
14
|
+
export declare function createEnvironment(
|
|
15
|
+
branch: string,
|
|
16
|
+
argv: SelfHostedArgs
|
|
17
|
+
): Promise<any>;
|
|
18
|
+
//# sourceMappingURL=environments.d.ts.map
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
export declare function upload({
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
export declare function upload({
|
|
2
|
+
tarballPath,
|
|
3
|
+
uploadUrl,
|
|
4
|
+
deploymentId,
|
|
5
|
+
accountName,
|
|
6
|
+
projectName,
|
|
7
|
+
environment,
|
|
8
|
+
repositoryUrl,
|
|
9
|
+
sha,
|
|
10
|
+
}: {
|
|
11
|
+
tarballPath: string;
|
|
12
|
+
uploadUrl: string;
|
|
13
|
+
deploymentId: string;
|
|
14
|
+
accountName: string;
|
|
15
|
+
projectName: string;
|
|
16
|
+
environment: string;
|
|
17
|
+
repositoryUrl: string | undefined;
|
|
18
|
+
sha: string | undefined;
|
|
10
19
|
}): Promise<Response>;
|
|
11
|
-
//# sourceMappingURL=file-upload.d.ts.map
|
|
20
|
+
//# sourceMappingURL=file-upload.d.ts.map
|
package/dist/deploy/handler.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { RequiredProperties } from "../common/utils/types.js";
|
|
2
2
|
export interface Arguments {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
account: string;
|
|
4
|
+
project: string;
|
|
5
|
+
dir: string;
|
|
6
|
+
environment?: string;
|
|
7
|
+
authToken: string;
|
|
8
|
+
"verify-remote"?: boolean;
|
|
9
|
+
"self-hosted-endpoint"?: string;
|
|
10
|
+
"override-repo-url"?: string;
|
|
11
11
|
}
|
|
12
|
-
export type SelfHostedArgs = RequiredProperties<
|
|
12
|
+
export type SelfHostedArgs = RequiredProperties<
|
|
13
|
+
Arguments,
|
|
14
|
+
"self-hosted-endpoint"
|
|
15
|
+
>;
|
|
13
16
|
export declare function deploy(argv: Arguments): Promise<void>;
|
|
14
|
-
//# sourceMappingURL=handler.d.ts.map
|
|
17
|
+
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import { Ora } from "ora";
|
|
2
2
|
import { Arguments } from "./handler.js";
|
|
3
|
-
export declare function pollDeployment(
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export declare function pollDeployment(
|
|
4
|
+
argv: Arguments,
|
|
5
|
+
fileId: string,
|
|
6
|
+
account: string,
|
|
7
|
+
project: string,
|
|
8
|
+
spinner: Ora
|
|
9
|
+
): Promise<{
|
|
10
|
+
url?: string;
|
|
11
|
+
logUrl: string;
|
|
6
12
|
}>;
|
|
7
|
-
export declare function pollBuild(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
export declare function pollBuild(
|
|
14
|
+
argv: Arguments,
|
|
15
|
+
endpoint: string,
|
|
16
|
+
buildName: string,
|
|
17
|
+
spinner: Ora
|
|
18
|
+
): Promise<{
|
|
19
|
+
conditionType?: string;
|
|
20
|
+
status?: string;
|
|
21
|
+
reason?: string;
|
|
22
|
+
message?: string;
|
|
12
23
|
}>;
|
|
13
|
-
//# sourceMappingURL=poll-deployment.d.ts.map
|
|
24
|
+
//# sourceMappingURL=poll-deployment.d.ts.map
|
package/dist/dev/handler.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export interface Arguments {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
dir: string;
|
|
3
|
+
"start-editor": boolean;
|
|
4
|
+
port: number;
|
|
5
|
+
editorPort: number;
|
|
6
|
+
debugPort?: number;
|
|
7
7
|
}
|
|
8
8
|
export declare function dev(argv: Arguments): Promise<void>;
|
|
9
|
-
//# sourceMappingURL=handler.d.ts.map
|
|
9
|
+
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=index-7e947de6.d.ts.map
|
|
2
|
+
//# sourceMappingURL=index-7e947de6.d.ts.map
|
package/dist/editor/handler.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
export declare const corsPlugin: (
|
|
1
|
+
export declare const corsPlugin: (
|
|
2
|
+
fastify: import("fastify").FastifyInstance<
|
|
3
|
+
import("fastify").RawServerDefault,
|
|
4
|
+
import("http").IncomingMessage,
|
|
5
|
+
import("http").ServerResponse<import("http").IncomingMessage>,
|
|
6
|
+
import("fastify").FastifyBaseLogger,
|
|
7
|
+
import("fastify").FastifyTypeProviderDefault
|
|
8
|
+
>,
|
|
9
|
+
opts: {
|
|
2
10
|
origin: boolean;
|
|
3
|
-
}
|
|
4
|
-
|
|
11
|
+
}
|
|
12
|
+
) => Promise<void>;
|
|
13
|
+
//# sourceMappingURL=cors-plugin.d.ts.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { FastifyInstance } from "fastify";
|
|
2
2
|
interface ServerOptions {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
cliArgs: unknown;
|
|
4
|
+
workingDir: string;
|
|
5
|
+
port: number;
|
|
6
|
+
isStandalone: boolean;
|
|
7
7
|
}
|
|
8
8
|
export declare class ApiServer {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
fastify: FastifyInstance;
|
|
10
|
+
private listenerHost;
|
|
11
|
+
private watcher;
|
|
12
|
+
private sseContext;
|
|
13
|
+
private cliArgs;
|
|
14
|
+
private workingDir;
|
|
15
|
+
private listenerPort;
|
|
16
|
+
private isStandalone;
|
|
17
|
+
constructor(options?: ServerOptions);
|
|
18
|
+
init: () => Promise<void>;
|
|
19
|
+
start: () => Promise<void>;
|
|
20
|
+
ready: () => Promise<void>;
|
|
21
|
+
close: () => Promise<void>;
|
|
22
22
|
}
|
|
23
23
|
export {};
|
|
24
|
-
//# sourceMappingURL=server.d.ts.map
|
|
24
|
+
//# sourceMappingURL=server.d.ts.map
|
package/dist/link/handler.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export interface Arguments {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
dir: string;
|
|
3
|
+
authToken: string;
|
|
4
|
+
account?: string;
|
|
5
|
+
project?: string;
|
|
6
|
+
environment?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare function link(argv: Arguments): Promise<void>;
|
|
9
|
-
//# sourceMappingURL=handler.d.ts.map
|
|
9
|
+
//# sourceMappingURL=handler.d.ts.map
|
package/dist/link/populate.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { Arguments } from "../link/handler.js";
|
|
2
|
-
export declare function safeMergeConfig(
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare function safeMergeConfig(
|
|
3
|
+
dir: string,
|
|
4
|
+
project: string
|
|
5
|
+
): Promise<void>;
|
|
6
|
+
export declare function pullSystemConfig(
|
|
7
|
+
argv: Pick<Arguments, "dir" | "environment" | "authToken">
|
|
8
|
+
): Promise<void>;
|
|
9
|
+
//# sourceMappingURL=populate.d.ts.map
|
package/dist/list/handler.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export interface Arguments {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
account: string;
|
|
3
|
+
project: string;
|
|
4
|
+
authToken: string;
|
|
5
|
+
"self-hosted-endpoint"?: string;
|
|
6
6
|
}
|
|
7
7
|
export declare function list(argv: Arguments): Promise<void>;
|
|
8
8
|
export interface SelfHostedDeployment {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
projectName: string;
|
|
10
|
+
deploymentName: string;
|
|
11
|
+
deploymentUrl: string;
|
|
12
12
|
}
|
|
13
|
-
//# sourceMappingURL=handler.d.ts.map
|
|
13
|
+
//# sourceMappingURL=handler.d.ts.map
|
package/dist/login/html.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export declare const html =
|
|
2
|
-
|
|
1
|
+
export declare const html =
|
|
2
|
+
'<html>\n <head>\n <title>Authorization Successful</title>\n <style>\n body {\n font-family:\n -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,\n Arial, sans-serif;\n background-color: #f9fafb;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100vh;\n margin: 0;\n }\n .container {\n max-width: 400px;\n padding: 2rem;\n background-color: white;\n border-radius: 0.5rem;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n text-align: center;\n border: 1px solid #e5e7eb;\n }\n .icon {\n background-color: #ffe0f7;\n color: #ff00bd;\n border-radius: 9999px;\n width: 48px;\n height: 48px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0 auto 1rem auto;\n }\n h1 {\n color: #111827;\n font-size: 1.5rem;\n margin-bottom: 0.5rem;\n }\n p {\n color: #6b7280;\n margin-bottom: 1.5rem;\n }\n button {\n background-color: #ff00bd;\n color: white;\n border: none;\n padding: 0.5rem 1rem;\n border-radius: 0.375rem;\n font-size: 0.875rem;\n cursor: pointer;\n }\n button:hover {\n background-color: #d600a0;\n }\n </style>\n </head>\n <body>\n <div class="container">\n <div class="icon">\n <svg\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M5 13L9 17L19 7"\n stroke="currentColor"\n strokeWidth="2"\n strokeLinecap="round"\n strokeLinejoin="round"\n />\n </svg>\n </div>\n <h1>Authorization successful</h1>\n <p>Close this tab and return to the Zuplo CLI.</p>\n <button onclick="window.close()">Close this tab</button>\n </div>\n </body>\n</html>';
|
|
3
|
+
//# sourceMappingURL=html.d.ts.map
|
package/dist/login/login.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ export declare const OAUTH_AUDIENCE = "https://dev.zuplo.com/";
|
|
|
7
7
|
export declare const encode: (value: string) => string;
|
|
8
8
|
export declare const decode: (value: string) => string;
|
|
9
9
|
export declare const createRandomString: () => string;
|
|
10
|
-
export declare const bufferToBase64UrlEncoded: (
|
|
10
|
+
export declare const bufferToBase64UrlEncoded: (
|
|
11
|
+
input: number[] | Uint8Array
|
|
12
|
+
) => string;
|
|
11
13
|
export declare const sha256: (s: string) => Promise<any>;
|
|
12
14
|
export declare function login(): Promise<void>;
|
|
13
|
-
//# sourceMappingURL=login.d.ts.map
|
|
15
|
+
//# sourceMappingURL=login.d.ts.map
|