zephyr-edge-contract 0.1.0-next.1 → 0.1.1-next.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/dist/lib/api-contract-negotiation/get-api-contract.d.ts +2 -1
- package/dist/lib/api-contract-negotiation/get-api-contract.js +2 -1
- package/dist/lib/api-contract-negotiation/get-api-contract.js.map +1 -1
- package/dist/lib/edge-api/publish-request.d.ts +6 -0
- package/dist/lib/snapshot.d.ts +9 -0
- package/dist/lib/zephyr-build-stats.d.ts +4 -0
- package/dist/lib/zephyr-build-stats.js.map +1 -1
- package/dist/lib/zephyr-manifest.d.ts +2 -2
- package/dist/lib/zephyr-manifest.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -18,8 +18,9 @@ exports.ZE_IS_PREVIEW = ZE_IS_PREVIEW;
|
|
|
18
18
|
exports.ze_api_gateway = {
|
|
19
19
|
logs: '/logs',
|
|
20
20
|
build_stats: '/build-stats',
|
|
21
|
-
|
|
21
|
+
authorize_link: '/authorize-link',
|
|
22
22
|
resolve: '/resolve',
|
|
23
23
|
application_config: '/application-config',
|
|
24
|
+
websocket: '/websocket',
|
|
24
25
|
};
|
|
25
26
|
//# sourceMappingURL=get-api-contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-api-contract.js","sourceRoot":"","sources":["../../../src/lib/api-contract-negotiation/get-api-contract.ts"],"names":[],"mappings":";;;AAAA,0BAA0B;AACnB,MAAM,mBAAmB,GAAG,GAAG,EAAE,WACtC,OAAA,CAAA,MAAA,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,0CAAE,MAAM,EAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,6BAA6B,CAAA,EAAA,CAAC;AAD3E,QAAA,mBAAmB,uBACwD;AAEjF,MAAM,eAAe,GAAG,GAAG,EAAE;;IAClC,OAAA,CAAA,MAAA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AAA,oBAAoB,wBAAyC;AAEnE,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,KAAK,MAAM,CAAC;AAA9D,QAAA,aAAa,iBAAiD;AAE9D,QAAA,cAAc,GAAG;IAC5B,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,cAAc;IAC3B,cAAc,EAAE,iBAAiB;IACjC,OAAO,EAAE,UAAU;IACnB,kBAAkB,EAAE,qBAAqB;IACzC,SAAS,EAAE,YAAY;CACxB,CAAC"}
|
|
@@ -25,11 +25,15 @@ export interface GatewayPublishRequest {
|
|
|
25
25
|
targets: PublishTargets;
|
|
26
26
|
/** Previously `can_write_jwt` */
|
|
27
27
|
jwt: string;
|
|
28
|
+
/** Per-environment variables - map of hostname to variables for all deploys */
|
|
29
|
+
envVarSetEnvMap?: Record<string, Record<string, string>>;
|
|
28
30
|
}
|
|
29
31
|
export interface StageZeroPublishRequest {
|
|
30
32
|
application_uid: string;
|
|
31
33
|
snapshot_id: string;
|
|
32
34
|
targets: PublishTarget[];
|
|
35
|
+
/** Per-environment variables - map of hostname to variables for all deploys */
|
|
36
|
+
environmentVariables?: Record<string, Record<string, string>>;
|
|
33
37
|
}
|
|
34
38
|
export interface PublishRequest {
|
|
35
39
|
EDGE_URL: string;
|
|
@@ -47,5 +51,7 @@ export interface PublishRequest {
|
|
|
47
51
|
envs: PublishTarget[];
|
|
48
52
|
cnames: PublishTarget[];
|
|
49
53
|
};
|
|
54
|
+
envVarsHash?: string;
|
|
55
|
+
environmentVariables?: Record<string, Record<string, string>>;
|
|
50
56
|
jwt: string;
|
|
51
57
|
}
|
package/dist/lib/snapshot.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ export interface Snapshot {
|
|
|
31
31
|
shared?: Record<string, unknown>;
|
|
32
32
|
};
|
|
33
33
|
assets: Record<string, SnapshotAsset>;
|
|
34
|
+
ze_envs?: Record<string, string>;
|
|
35
|
+
ze_envs_hash?: string;
|
|
34
36
|
}
|
|
35
37
|
export interface SnapshotAsset {
|
|
36
38
|
path: string;
|
|
@@ -40,4 +42,11 @@ export interface SnapshotAsset {
|
|
|
40
42
|
}
|
|
41
43
|
export interface SnapshotMetadata {
|
|
42
44
|
pages_url?: string;
|
|
45
|
+
public_envs?: Record<string, string>;
|
|
46
|
+
version?: string;
|
|
47
|
+
build_id?: string;
|
|
48
|
+
etag?: string;
|
|
49
|
+
env?: {
|
|
50
|
+
public?: Record<string, string>;
|
|
51
|
+
};
|
|
43
52
|
}
|
|
@@ -117,6 +117,10 @@ export interface ZephyrBuildStats {
|
|
|
117
117
|
build_target?: string;
|
|
118
118
|
/** @deprecated */
|
|
119
119
|
type: unknown;
|
|
120
|
+
/** Public environment variables captured at build time (ZE_PUBLIC_* only) */
|
|
121
|
+
ze_envs?: Record<string, string>;
|
|
122
|
+
/** Content-addressable hash of ze_envs for deduplication */
|
|
123
|
+
ze_envs_hash?: string;
|
|
120
124
|
/** Resolved zephyr dependencies */
|
|
121
125
|
zephyrDependencies?: Record<string, ZephyrDependency>;
|
|
122
126
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zephyr-build-stats.js","sourceRoot":"","sources":["../../src/lib/zephyr-build-stats.ts"],"names":[],"mappings":";AAAA,0BAA0B;;
|
|
1
|
+
{"version":3,"file":"zephyr-build-stats.js","sourceRoot":"","sources":["../../src/lib/zephyr-build-stats.ts"],"names":[],"mappings":";AAAA,0BAA0B;;AAuI1B,IAAK,6BAMJ;AAND,WAAK,6BAA6B;IAChC,0DAAyB,CAAA;IACzB,4CAAW,CAAA;IACX,oDAAmB,CAAA;IACnB,gDAAe,CAAA;IACf,4CAAW,CAAA;AACb,CAAC,EANI,6BAA6B,KAA7B,6BAA6B,QAMjC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ZephyrDependency } from './zephyr-build-stats';
|
|
2
2
|
export declare const ZEPHYR_MANIFEST_VERSION = "1.0.0";
|
|
3
3
|
export declare const ZEPHYR_MANIFEST_FILENAME = "zephyr-manifest.json";
|
|
4
|
-
/** Changes to this interface should be semanticaly reflect on the const above; */
|
|
5
4
|
export interface ZephyrManifest {
|
|
6
|
-
version:
|
|
5
|
+
version: string;
|
|
7
6
|
timestamp: string;
|
|
8
7
|
dependencies: Record<string, ZephyrDependency>;
|
|
8
|
+
zeVars: Record<string, string>;
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zephyr-manifest.js","sourceRoot":"","sources":["../../src/lib/zephyr-manifest.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"zephyr-manifest.js","sourceRoot":"","sources":["../../src/lib/zephyr-manifest.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAG,OAAO,CAAC;AAClC,QAAA,wBAAwB,GAAG,sBAAsB,CAAC"}
|
package/dist/package.json
CHANGED