@xemahq/contracts 0.74.0 → 0.76.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/README.md +19 -0
- package/dist/.source-stamp.json +2 -2
- package/dist/agent-composition/lib/delegate-aperture.d.ts.map +1 -1
- package/dist/agent-composition/lib/delegate-aperture.js +10 -9
- package/dist/agent-composition/lib/delegate-aperture.js.map +1 -1
- package/dist/agent-session/lib/resolved-session-composition.d.ts.map +1 -1
- package/dist/agent-session/lib/resolved-session-composition.js +46 -45
- package/dist/agent-session/lib/resolved-session-composition.js.map +1 -1
- package/dist/audit/lib/authority.d.ts +2 -0
- package/dist/audit/lib/authority.d.ts.map +1 -1
- package/dist/audit/lib/authority.js +2 -0
- package/dist/audit/lib/authority.js.map +1 -1
- package/dist/authorization-module/index.d.ts +1 -0
- package/dist/authorization-module/index.d.ts.map +1 -1
- package/dist/authorization-module/index.js +1 -0
- package/dist/authorization-module/index.js.map +1 -1
- package/dist/authorization-module/lib/authorization-composition-error.d.ts +2 -0
- package/dist/authorization-module/lib/authorization-composition-error.d.ts.map +1 -1
- package/dist/authorization-module/lib/authorization-composition-error.js +2 -0
- package/dist/authorization-module/lib/authorization-composition-error.js.map +1 -1
- package/dist/authorization-module/lib/authorization-interface-requirements.d.ts +21 -0
- package/dist/authorization-module/lib/authorization-interface-requirements.d.ts.map +1 -0
- package/dist/authorization-module/lib/authorization-interface-requirements.js +14 -0
- package/dist/authorization-module/lib/authorization-interface-requirements.js.map +1 -0
- package/dist/authorization-module/lib/platform-authorization-modules.d.ts +6 -2
- package/dist/authorization-module/lib/platform-authorization-modules.d.ts.map +1 -1
- package/dist/authorization-module/lib/platform-authorization-modules.js +39 -2
- package/dist/authorization-module/lib/platform-authorization-modules.js.map +1 -1
- package/dist/authorization-module/server/authorization-interface-conformance.d.ts +14 -0
- package/dist/authorization-module/server/authorization-interface-conformance.d.ts.map +1 -0
- package/dist/authorization-module/server/authorization-interface-conformance.js +97 -0
- package/dist/authorization-module/server/authorization-interface-conformance.js.map +1 -0
- package/dist/authorization-module/server/compose-authorization-base.d.ts.map +1 -1
- package/dist/authorization-module/server/compose-authorization-base.js +8 -3
- package/dist/authorization-module/server/compose-authorization-base.js.map +1 -1
- package/dist/authzen/lib/durable-delegation-model.d.ts +8 -0
- package/dist/authzen/lib/durable-delegation-model.d.ts.map +1 -1
- package/dist/authzen/lib/durable-delegation-model.js +10 -1
- package/dist/authzen/lib/durable-delegation-model.js.map +1 -1
- package/dist/authzen/lib/org-authority-contextual-tuple.d.ts +4 -1
- package/dist/authzen/lib/org-authority-contextual-tuple.d.ts.map +1 -1
- package/dist/authzen/lib/org-authority-contextual-tuple.js +74 -6
- package/dist/authzen/lib/org-authority-contextual-tuple.js.map +1 -1
- package/dist/biome/component-vocabulary/index.d.ts +2 -0
- package/dist/biome/component-vocabulary/index.d.ts.map +1 -0
- package/dist/biome/component-vocabulary/index.js +6 -0
- package/dist/biome/component-vocabulary/index.js.map +1 -0
- package/dist/biome/lib/biome-generated-index.d.ts.map +1 -1
- package/dist/biome/lib/biome-generated-index.js +2 -1
- package/dist/biome/lib/biome-generated-index.js.map +1 -1
- package/dist/biome/lib/biome-manifest.d.ts.map +1 -1
- package/dist/biome/lib/biome-manifest.js +2 -1
- package/dist/biome/lib/biome-manifest.js.map +1 -1
- package/dist/biome-dependency/lib/biome-dependency-contract.d.ts.map +1 -1
- package/dist/biome-dependency/lib/biome-dependency-contract.js +2 -1
- package/dist/biome-dependency/lib/biome-dependency-contract.js.map +1 -1
- package/dist/biome-mount/lib/adapter-host-mount.js +1 -1
- package/dist/biome-mount/lib/adapter-host-mount.js.map +1 -1
- package/dist/capability/lib/capability-aperture.d.ts.map +1 -1
- package/dist/capability/lib/capability-aperture.js.map +1 -1
- package/dist/capability/lib/capability-ref-pattern.d.ts.map +1 -1
- package/dist/capability/lib/capability-ref-pattern.js.map +1 -1
- package/dist/capability/lib/required-resource-role-binding.d.ts.map +1 -1
- package/dist/capability/lib/required-resource-role-binding.js.map +1 -1
- package/dist/content-address/lib/content-address.d.ts +2 -0
- package/dist/content-address/lib/content-address.d.ts.map +1 -1
- package/dist/content-address/lib/content-address.js +4 -2
- package/dist/content-address/lib/content-address.js.map +1 -1
- package/dist/contribution/lib/contribution-kind-descriptor.d.ts.map +1 -1
- package/dist/contribution/lib/contribution-kind-descriptor.js.map +1 -1
- package/dist/deployment/lib/resolved-deployment.d.ts +3 -0
- package/dist/deployment/lib/resolved-deployment.d.ts.map +1 -1
- package/dist/deployment/lib/resolved-deployment.js +11 -6
- package/dist/deployment/lib/resolved-deployment.js.map +1 -1
- package/dist/distribution/index.d.ts +3 -1
- package/dist/distribution/index.d.ts.map +1 -1
- package/dist/distribution/index.js +2 -0
- package/dist/distribution/index.js.map +1 -1
- package/dist/distribution/lib/biome-source.d.ts +6 -0
- package/dist/distribution/lib/biome-source.d.ts.map +1 -1
- package/dist/distribution/lib/biome-source.js +23 -2
- package/dist/distribution/lib/biome-source.js.map +1 -1
- package/dist/distribution/lib/customer-edition-definition.d.ts +45 -0
- package/dist/distribution/lib/customer-edition-definition.d.ts.map +1 -0
- package/dist/distribution/lib/customer-edition-definition.js +110 -0
- package/dist/distribution/lib/customer-edition-definition.js.map +1 -0
- package/dist/distribution/lib/delivered-biome.d.ts +11 -0
- package/dist/distribution/lib/delivered-biome.d.ts.map +1 -0
- package/dist/distribution/lib/delivered-biome.js +24 -0
- package/dist/distribution/lib/delivered-biome.js.map +1 -0
- package/dist/distribution/lib/distribution-lock.d.ts +36 -42
- package/dist/distribution/lib/distribution-lock.d.ts.map +1 -1
- package/dist/distribution/lib/distribution-lock.js +125 -102
- package/dist/distribution/lib/distribution-lock.js.map +1 -1
- package/dist/distribution/lib/distribution-selector.d.ts +7 -0
- package/dist/distribution/lib/distribution-selector.d.ts.map +1 -1
- package/dist/distribution/lib/distribution-selector.js +10 -9
- package/dist/distribution/lib/distribution-selector.js.map +1 -1
- package/dist/distribution/lib/distribution.d.ts +0 -1
- package/dist/distribution/lib/distribution.d.ts.map +1 -1
- package/dist/distribution/lib/distribution.js +1 -2
- package/dist/distribution/lib/distribution.js.map +1 -1
- package/dist/distribution/lib/image-lock.d.ts +11 -11
- package/dist/distribution/lib/image-lock.d.ts.map +1 -1
- package/dist/distribution/lib/image-lock.js +5 -6
- package/dist/distribution/lib/image-lock.js.map +1 -1
- package/dist/distribution/lib/image-producer-evidence.d.ts +69 -55
- package/dist/distribution/lib/image-producer-evidence.d.ts.map +1 -1
- package/dist/distribution/lib/image-producer-evidence.js +71 -47
- package/dist/distribution/lib/image-producer-evidence.js.map +1 -1
- package/dist/distribution/lib/kernel-contract-authority.d.ts +53 -3
- package/dist/distribution/lib/kernel-contract-authority.d.ts.map +1 -1
- package/dist/distribution/lib/kernel-contract-authority.js +120 -26
- package/dist/distribution/lib/kernel-contract-authority.js.map +1 -1
- package/dist/distribution/lib/kernel-contract-source-paths.d.ts +2 -0
- package/dist/distribution/lib/kernel-contract-source-paths.d.ts.map +1 -0
- package/dist/distribution/lib/kernel-contract-source-paths.js +390 -0
- package/dist/distribution/lib/kernel-contract-source-paths.js.map +1 -0
- package/dist/distribution/lib/nexus-endpoint-specs.d.ts +2 -5
- package/dist/distribution/lib/nexus-endpoint-specs.d.ts.map +1 -1
- package/dist/distribution/lib/nexus-endpoint-specs.js +7 -7
- package/dist/distribution/lib/nexus-endpoint-specs.js.map +1 -1
- package/dist/distribution/lib/platform-service-source-index.d.ts.map +1 -1
- package/dist/distribution/lib/platform-service-source-index.js +2 -2
- package/dist/distribution/lib/platform-service-source-index.js.map +1 -1
- package/dist/distribution/lib/runtime-image-source-index.d.ts +3 -3
- package/dist/distribution/lib/runtime-image-source-index.d.ts.map +1 -1
- package/dist/distribution/lib/runtime-image-source-index.js +1 -1
- package/dist/distribution/lib/runtime-image-source-index.js.map +1 -1
- package/dist/distribution/lib/verified-resolved-deployment.d.ts +8 -1
- package/dist/distribution/lib/verified-resolved-deployment.d.ts.map +1 -1
- package/dist/distribution/lib/verify-resolved-deployment.d.ts +3 -8
- package/dist/distribution/lib/verify-resolved-deployment.d.ts.map +1 -1
- package/dist/distribution/lib/verify-resolved-deployment.js +11 -7
- package/dist/distribution/lib/verify-resolved-deployment.js.map +1 -1
- package/dist/edition-protocol/edition-contract.schema.json +1 -0
- package/dist/edition-protocol/edition-protocol.json +1 -0
- package/dist/edition-protocol/index.d.ts +2 -0
- package/dist/edition-protocol/index.d.ts.map +1 -0
- package/dist/edition-protocol/index.js +18 -0
- package/dist/edition-protocol/index.js.map +1 -0
- package/dist/edition-protocol/lib/edition-protocol.d.ts +9 -0
- package/dist/edition-protocol/lib/edition-protocol.d.ts.map +1 -0
- package/dist/edition-protocol/lib/edition-protocol.js +19 -0
- package/dist/edition-protocol/lib/edition-protocol.js.map +1 -0
- package/dist/http/lib/problem-definition.js.map +1 -1
- package/dist/resolved-deployment-fixture/index.d.ts +2 -0
- package/dist/resolved-deployment-fixture/index.d.ts.map +1 -0
- package/dist/resolved-deployment-fixture/index.js +18 -0
- package/dist/resolved-deployment-fixture/index.js.map +1 -0
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.d.ts +14 -0
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.d.ts.map +1 -0
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.js +114 -0
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.js.map +1 -0
- package/dist/resource-role/lib/resource-role-binding.d.ts.map +1 -1
- package/dist/resource-role/lib/resource-role-binding.js.map +1 -1
- package/dist/resource-role/lib/resource-role-contribution.d.ts.map +1 -1
- package/dist/resource-role/lib/resource-role-contribution.js.map +1 -1
- package/dist/resource-role/lib/resource-role-default-binding.d.ts.map +1 -1
- package/dist/resource-role/lib/resource-role-default-binding.js.map +1 -1
- package/dist/workflow/nexus-endpoint/index.d.ts +2 -0
- package/dist/workflow/nexus-endpoint/index.d.ts.map +1 -0
- package/dist/workflow/nexus-endpoint/index.js +8 -0
- package/dist/workflow/nexus-endpoint/index.js.map +1 -0
- package/package.json +4 -2
|
@@ -11,6 +11,7 @@ import { BiomeSourceKind } from './biome-source';
|
|
|
11
11
|
import { type DistributionOwner, type DistributionVisibility } from './distribution-ownership';
|
|
12
12
|
import { type LockedNexusBinding } from './nexus-binding';
|
|
13
13
|
import { type NexusServiceProvision, type NexusServiceRequirement } from './resolve-nexus-bindings';
|
|
14
|
+
import { type BiomeContentHash, type BiomeSourceManifestHash, type OciDigest } from './kernel-contract-authority';
|
|
14
15
|
export interface BiomeServiceOwnerIdentity {
|
|
15
16
|
kind: 'biome';
|
|
16
17
|
biomeId: string;
|
|
@@ -18,7 +19,7 @@ export interface BiomeServiceOwnerIdentity {
|
|
|
18
19
|
repo: string;
|
|
19
20
|
path: string;
|
|
20
21
|
version: string;
|
|
21
|
-
sourceManifestHash:
|
|
22
|
+
sourceManifestHash: BiomeSourceManifestHash;
|
|
22
23
|
}
|
|
23
24
|
export declare const BiomeServiceOwnerIdentitySchema: z.ZodType<BiomeServiceOwnerIdentity>;
|
|
24
25
|
export interface PlatformServiceOwnerIdentity {
|
|
@@ -72,8 +73,6 @@ export interface LockedBiomeSource {
|
|
|
72
73
|
imageRegistry?: string;
|
|
73
74
|
imageNamePrefix?: string;
|
|
74
75
|
}
|
|
75
|
-
export type LockedBiomeSourceV2 = Omit<LockedBiomeSource, 'imageNamePrefix'>;
|
|
76
|
-
export declare const LockedBiomeSourceV2Schema: z.ZodType<LockedBiomeSourceV2>;
|
|
77
76
|
export declare const LockedBiomeSourceSchema: z.ZodType<LockedBiomeSource>;
|
|
78
77
|
export interface LockedBiome {
|
|
79
78
|
id: string;
|
|
@@ -102,7 +101,6 @@ export interface LockedBiome {
|
|
|
102
101
|
workflowSubjects?: readonly LockedWorkflowSubject[];
|
|
103
102
|
trustCeiling?: string;
|
|
104
103
|
workerImages: Readonly<Record<string, LockedWorkerImage>>;
|
|
105
|
-
imageDigest?: string;
|
|
106
104
|
displayName: string;
|
|
107
105
|
packageName: string | null;
|
|
108
106
|
requiresServerBiomes: readonly string[];
|
|
@@ -110,7 +108,8 @@ export interface LockedBiome {
|
|
|
110
108
|
audience: BiomeAudience;
|
|
111
109
|
storeListed: boolean;
|
|
112
110
|
systemSurface: boolean;
|
|
113
|
-
sourceManifestHash:
|
|
111
|
+
sourceManifestHash: BiomeSourceManifestHash;
|
|
112
|
+
biomeContentHash: BiomeContentHash;
|
|
114
113
|
display?: LockedBiomeDisplay;
|
|
115
114
|
source?: LockedBiomeSource;
|
|
116
115
|
}
|
|
@@ -177,10 +176,6 @@ export interface LockedBiomeDisplay {
|
|
|
177
176
|
summary?: string;
|
|
178
177
|
accent?: string;
|
|
179
178
|
}
|
|
180
|
-
export type LockedBiomeV3 = Omit<LockedBiome, 'bundleSource' | 'serviceResources' | 'serviceProcessFacts' | 'nexusProvides' | 'nexusRequires' | 'workerTaskQueues' | 'workflowClients' | 'workflowSubjects' | 'trustCeiling' | 'workerImages'>;
|
|
181
|
-
export type LockedBiomeV2 = Omit<LockedBiomeV3, 'serviceDatabaseExtensions' | 'source'> & {
|
|
182
|
-
source?: LockedBiomeSourceV2;
|
|
183
|
-
};
|
|
184
179
|
export interface LockedServiceProcessFacts {
|
|
185
180
|
componentKind: BiomeComponentKind.Service | BiomeComponentKind.Worker;
|
|
186
181
|
scalingMode: BiomeScalingMode;
|
|
@@ -204,9 +199,8 @@ export declare const LockedServiceProcessFactsSchema: z.ZodObject<{
|
|
|
204
199
|
export declare function lockedVersionedWorkers(biome: {
|
|
205
200
|
readonly workerTaskQueues?: Readonly<Record<string, readonly LockedWorkerTaskQueue[]>> | undefined;
|
|
206
201
|
}): readonly string[];
|
|
207
|
-
export declare const LockedBiomeV2Schema: z.ZodType<LockedBiomeV2>;
|
|
208
|
-
export declare const LockedBiomeV3Schema: z.ZodType<LockedBiomeV3>;
|
|
209
202
|
export declare const LockedBiomeSchema: z.ZodType<LockedBiome>;
|
|
203
|
+
export type UnsealedLockedBiome = Omit<LockedBiome, 'biomeContentHash'>;
|
|
210
204
|
export interface LockedPlatformService {
|
|
211
205
|
name: string;
|
|
212
206
|
tier: PlatformServiceTier;
|
|
@@ -218,12 +212,9 @@ export interface CapabilityDomainOwner {
|
|
|
218
212
|
biomeId: string;
|
|
219
213
|
}
|
|
220
214
|
export declare const CapabilityDomainOwnerSchema: z.ZodType<CapabilityDomainOwner>;
|
|
221
|
-
export declare const DISTRIBUTION_LOCK_SCHEMA_VERSIONS: readonly [
|
|
215
|
+
export declare const DISTRIBUTION_LOCK_SCHEMA_VERSIONS: readonly [5];
|
|
222
216
|
export type DistributionLockSchemaVersion = (typeof DISTRIBUTION_LOCK_SCHEMA_VERSIONS)[number];
|
|
223
|
-
export declare const
|
|
224
|
-
export declare const DISTRIBUTION_LOCK_SCHEMA_VERSION: 2;
|
|
225
|
-
export declare const DISTRIBUTION_LOCK_SCHEMA_VERSION_V3: 3;
|
|
226
|
-
export declare const DISTRIBUTION_LOCK_SCHEMA_VERSION_LATEST: 4;
|
|
217
|
+
export declare const DISTRIBUTION_LOCK_SCHEMA_VERSION: 5;
|
|
227
218
|
export interface DistributionLockBody {
|
|
228
219
|
distributionId: string;
|
|
229
220
|
capabilityDomainOwners: readonly CapabilityDomainOwner[];
|
|
@@ -232,48 +223,51 @@ export interface DistributionLockBody {
|
|
|
232
223
|
inputHash: string;
|
|
233
224
|
owner?: DistributionOwner;
|
|
234
225
|
visibility?: DistributionVisibility;
|
|
226
|
+
catalogueDigest?: OciDigest;
|
|
235
227
|
}
|
|
236
|
-
export interface
|
|
237
|
-
schemaVersion: typeof
|
|
238
|
-
biomes: readonly LockedBiomeV2[];
|
|
239
|
-
}
|
|
240
|
-
export interface DistributionLockV3 extends DistributionLockBody {
|
|
241
|
-
schemaVersion: typeof DISTRIBUTION_LOCK_SCHEMA_VERSION_V3;
|
|
242
|
-
biomes: readonly LockedBiomeV3[];
|
|
243
|
-
}
|
|
244
|
-
export interface DistributionLockV4 extends DistributionLockBody {
|
|
245
|
-
schemaVersion: typeof DISTRIBUTION_LOCK_SCHEMA_VERSION_LATEST;
|
|
228
|
+
export interface DistributionLock extends DistributionLockBody {
|
|
229
|
+
schemaVersion: typeof DISTRIBUTION_LOCK_SCHEMA_VERSION;
|
|
246
230
|
biomes: readonly LockedBiome[];
|
|
247
231
|
resolution?: DistributionLockResolution;
|
|
248
232
|
nexusBindings?: readonly LockedNexusBinding[];
|
|
249
233
|
}
|
|
234
|
+
export declare const UNSEALED_DISTRIBUTION_LOCK_SCHEMA: "xema.distribution-lock.unsealed/v1";
|
|
235
|
+
export interface UnsealedDistributionLock extends DistributionLockBody {
|
|
236
|
+
unsealedSchema: typeof UNSEALED_DISTRIBUTION_LOCK_SCHEMA;
|
|
237
|
+
biomes: readonly UnsealedLockedBiome[];
|
|
238
|
+
resolution?: DistributionLockResolution;
|
|
239
|
+
nexusBindings?: readonly LockedNexusBinding[];
|
|
240
|
+
}
|
|
250
241
|
export interface DistributionLockResolution {
|
|
251
242
|
mode: DistributionResolutionMode;
|
|
252
243
|
entries: readonly ClosureEntry[];
|
|
253
244
|
}
|
|
254
245
|
export declare const DistributionLockResolutionSchema: z.ZodType<DistributionLockResolution>;
|
|
255
|
-
export type DistributionLock = DistributionLockV2 | DistributionLockV3 | DistributionLockV4;
|
|
256
246
|
declare const distributionLockReadView: unique symbol;
|
|
257
247
|
export type DistributionLockReadView = DistributionLock & {
|
|
258
248
|
readonly [distributionLockReadView]: true;
|
|
259
249
|
};
|
|
260
|
-
export
|
|
261
|
-
readonly biomes: readonly LockedBiome[];
|
|
262
|
-
readonly resolution?: DistributionLockResolution;
|
|
263
|
-
readonly nexusBindings?: readonly LockedNexusBinding[];
|
|
264
|
-
readonly [distributionLockReadView]?: never;
|
|
265
|
-
};
|
|
266
|
-
export declare const DistributionLockV2Schema: z.ZodType<DistributionLockV2>;
|
|
267
|
-
export declare const DistributionLockV3Schema: z.ZodType<DistributionLockV3>;
|
|
268
|
-
export declare const DistributionLockV4Schema: z.ZodType<DistributionLockV4>;
|
|
250
|
+
export declare const UnsealedDistributionLockSchema: z.ZodType<UnsealedDistributionLock>;
|
|
269
251
|
export declare const DistributionLockSchema: z.ZodType<DistributionLock>;
|
|
270
252
|
export declare const DistributionLockReaderSchema: z.ZodType<DistributionLock>;
|
|
271
|
-
export
|
|
272
|
-
|
|
273
|
-
readonly
|
|
274
|
-
readonly
|
|
275
|
-
|
|
276
|
-
|
|
253
|
+
export type DistributionLockShape = 'sealed' | 'unsealed';
|
|
254
|
+
export declare class DistributionLockShapeError extends Error {
|
|
255
|
+
readonly expected: DistributionLockShape;
|
|
256
|
+
readonly actual: DistributionLockShape;
|
|
257
|
+
constructor(expected: DistributionLockShape, actual: DistributionLockShape);
|
|
258
|
+
}
|
|
259
|
+
export declare enum DistributionLockVersionErrorCode {
|
|
260
|
+
UnsupportedSchemaVersion = "unsupported-schema-version"
|
|
261
|
+
}
|
|
262
|
+
export declare class DistributionLockVersionError extends Error {
|
|
263
|
+
readonly code: DistributionLockVersionErrorCode;
|
|
264
|
+
constructor(message: string);
|
|
265
|
+
}
|
|
266
|
+
export declare function sealDistributionLock(unsealed: UnsealedDistributionLock, contentHashes: ReadonlyMap<string, BiomeContentHash>): DistributionLock;
|
|
267
|
+
export declare function unsealedProjection(lock: DistributionLock & {
|
|
268
|
+
readonly [distributionLockReadView]?: never;
|
|
269
|
+
}): UnsealedDistributionLock;
|
|
270
|
+
export declare function parseUnsealedDistributionLock(raw: unknown): UnsealedDistributionLock;
|
|
277
271
|
export declare function parseDistributionLock(raw: unknown): DistributionLock;
|
|
278
272
|
export declare function parseDistributionLockForReading(raw: unknown): DistributionLockReadView;
|
|
279
273
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"distribution-lock.d.ts","sourceRoot":"","sources":["../../../src/distribution/lib/distribution-lock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAML,kBAAkB,EAIlB,gBAAgB,EAEhB,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AAUrB,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EAKL,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EACnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,eAAe,EAKhB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAKL,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC7B,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"distribution-lock.d.ts","sourceRoot":"","sources":["../../../src/distribution/lib/distribution-lock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAML,kBAAkB,EAIlB,gBAAgB,EAEhB,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,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AO,EAAE,MAAM;CAK5B;AAaD,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,wBAAwB,EAClC,aAAa,EAAE,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,GACnD,gBAAgB,CA0BlB;AAOD,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,gBAAgB,GAAG;IAAE,QAAQ,CAAC,CAAC,wBAAwB,CAAC,CAAC,EAAE,KAAK,CAAA;CAAE,GACvE,wBAAwB,CAU1B;AAGD,wBAAgB,6BAA6B,CAC3C,GAAG,EAAE,OAAO,GACX,wBAAwB,CAa1B;AAiDD,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,gBAAgB,CAEpE;AASD,wBAAgB,+BAA+B,CAC7C,GAAG,EAAE,OAAO,GACX,wBAAwB,CAK1B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DistributionLockVersionError = exports.DistributionLockVersionErrorCode = exports.DistributionLockShapeError = exports.DistributionLockReaderSchema = exports.DistributionLockSchema = exports.UnsealedDistributionLockSchema = exports.DistributionLockResolutionSchema = exports.UNSEALED_DISTRIBUTION_LOCK_SCHEMA = exports.DISTRIBUTION_LOCK_SCHEMA_VERSION = exports.DISTRIBUTION_LOCK_SCHEMA_VERSIONS = exports.CapabilityDomainOwnerSchema = exports.LockedPlatformServiceSchema = exports.LockedBiomeSchema = exports.LockedServiceProcessFactsSchema = exports.LockedWorkerTaskQueueSchema = exports.LockedWorkflowSubjectSchema = exports.WorkflowSubjectPermission = exports.LockedWorkflowClientSchema = exports.LockedWorkerImageSchema = exports.LockedBiomeSourceSchema = exports.LockedHostModuleSchema = exports.LockedServiceResourcesSchema = exports.LockedServiceResourceSchema = exports.LockedResourceProviderSchema = exports.LockedServiceDependencySchema = exports.ServiceOwnerIdentitySchema = exports.PlatformServiceOwnerIdentitySchema = exports.BiomeServiceOwnerIdentitySchema = void 0;
|
|
4
4
|
exports.compareLockedServiceResources = compareLockedServiceResources;
|
|
5
5
|
exports.parseLockedServiceResources = parseLockedServiceResources;
|
|
6
6
|
exports.controllerTokenServiceAccount = controllerTokenServiceAccount;
|
|
@@ -8,8 +8,9 @@ exports.deriveWorkflowSubjects = deriveWorkflowSubjects;
|
|
|
8
8
|
exports.resolveWorkflowSubjects = resolveWorkflowSubjects;
|
|
9
9
|
exports.lockedWorkerTaskQueueName = lockedWorkerTaskQueueName;
|
|
10
10
|
exports.lockedVersionedWorkers = lockedVersionedWorkers;
|
|
11
|
-
exports.distributionLockSchemaVersionFor = distributionLockSchemaVersionFor;
|
|
12
11
|
exports.sealDistributionLock = sealDistributionLock;
|
|
12
|
+
exports.unsealedProjection = unsealedProjection;
|
|
13
|
+
exports.parseUnsealedDistributionLock = parseUnsealedDistributionLock;
|
|
13
14
|
exports.parseDistributionLock = parseDistributionLock;
|
|
14
15
|
exports.parseDistributionLockForReading = parseDistributionLockForReading;
|
|
15
16
|
const zod_1 = require("zod");
|
|
@@ -28,6 +29,8 @@ const biome_source_1 = require("./biome-source");
|
|
|
28
29
|
const distribution_ownership_1 = require("./distribution-ownership");
|
|
29
30
|
const nexus_binding_1 = require("./nexus-binding");
|
|
30
31
|
const resolve_nexus_bindings_1 = require("./resolve-nexus-bindings");
|
|
32
|
+
const kernel_contract_authority_1 = require("./kernel-contract-authority");
|
|
33
|
+
const content_address_1 = require("../../content-address");
|
|
31
34
|
exports.BiomeServiceOwnerIdentitySchema = zod_1.z
|
|
32
35
|
.object({
|
|
33
36
|
kind: zod_1.z.literal('biome'),
|
|
@@ -36,7 +39,7 @@ exports.BiomeServiceOwnerIdentitySchema = zod_1.z
|
|
|
36
39
|
repo: zod_1.z.string().min(1),
|
|
37
40
|
path: zod_1.z.string().min(1),
|
|
38
41
|
version: zod_1.z.string().min(1),
|
|
39
|
-
sourceManifestHash:
|
|
42
|
+
sourceManifestHash: kernel_contract_authority_1.BiomeSourceManifestHashSchema,
|
|
40
43
|
})
|
|
41
44
|
.strict();
|
|
42
45
|
exports.PlatformServiceOwnerIdentitySchema = zod_1.z
|
|
@@ -145,16 +148,12 @@ const lockedBiomeSourceBaseShape = {
|
|
|
145
148
|
commit: zod_1.z.string().regex(/^[a-f0-9]{40}$/),
|
|
146
149
|
imageRegistry: biome_source_1.CredentialFreeOciRegistrySchema.optional(),
|
|
147
150
|
};
|
|
148
|
-
exports.
|
|
149
|
-
.object(lockedBiomeSourceBaseShape)
|
|
150
|
-
.strict();
|
|
151
|
-
const lockedBiomeSourceV3Object = zod_1.z
|
|
151
|
+
exports.LockedBiomeSourceSchema = zod_1.z
|
|
152
152
|
.object({
|
|
153
153
|
...lockedBiomeSourceBaseShape,
|
|
154
154
|
imageNamePrefix: biome_source_1.ImageArtifactNamePrefixSchema.optional(),
|
|
155
155
|
})
|
|
156
156
|
.strict();
|
|
157
|
-
exports.LockedBiomeSourceSchema = lockedBiomeSourceV3Object;
|
|
158
157
|
exports.LockedWorkerImageSchema = zod_1.z
|
|
159
158
|
.object({
|
|
160
159
|
imageOf: zod_1.z.string().min(1),
|
|
@@ -287,7 +286,6 @@ const lockedBiomeBaseShape = {
|
|
|
287
286
|
runtimeComponents: zod_1.z.array(zod_1.z.string().min(1)).readonly(),
|
|
288
287
|
hostModules: zod_1.z.array(exports.LockedHostModuleSchema).readonly(),
|
|
289
288
|
serviceDependencies: zod_1.z.array(exports.LockedServiceDependencySchema).readonly(),
|
|
290
|
-
imageDigest: zod_1.z.string().min(1).optional(),
|
|
291
289
|
displayName: zod_1.z.string().min(1),
|
|
292
290
|
packageName: zod_1.z.string().min(1).nullable(),
|
|
293
291
|
requiresServerBiomes: zod_1.z.array(zod_1.z.string().min(1)).readonly(),
|
|
@@ -295,7 +293,7 @@ const lockedBiomeBaseShape = {
|
|
|
295
293
|
audience: biome_1.BiomeAudienceSchema,
|
|
296
294
|
storeListed: zod_1.z.boolean(),
|
|
297
295
|
systemSurface: zod_1.z.boolean(),
|
|
298
|
-
sourceManifestHash:
|
|
296
|
+
sourceManifestHash: kernel_contract_authority_1.BiomeSourceManifestHashSchema,
|
|
299
297
|
display: LockedBiomeDisplaySchema.optional(),
|
|
300
298
|
};
|
|
301
299
|
const refineLockedBiome = (value, context) => {
|
|
@@ -571,15 +569,7 @@ const refineLockedTrustCeiling = (value, context) => {
|
|
|
571
569
|
function lockedVersionedWorkers(biome) {
|
|
572
570
|
return Object.keys(biome.workerTaskQueues ?? {}).sort();
|
|
573
571
|
}
|
|
574
|
-
const
|
|
575
|
-
.object({
|
|
576
|
-
...lockedBiomeBaseShape,
|
|
577
|
-
source: exports.LockedBiomeSourceV2Schema.optional(),
|
|
578
|
-
})
|
|
579
|
-
.strict()
|
|
580
|
-
.superRefine(refineLockedBiome);
|
|
581
|
-
exports.LockedBiomeV2Schema = lockedBiomeV2Object;
|
|
582
|
-
const lockedBiomeV3Shape = {
|
|
572
|
+
const unsealedLockedBiomeShape = {
|
|
583
573
|
...lockedBiomeBaseShape,
|
|
584
574
|
serviceDatabaseExtensions: zod_1.z
|
|
585
575
|
.record(zod_1.z.string().min(1), zod_1.z
|
|
@@ -591,14 +581,6 @@ const lockedBiomeV3Shape = {
|
|
|
591
581
|
.readonly()
|
|
592
582
|
.optional(),
|
|
593
583
|
source: exports.LockedBiomeSourceSchema.optional(),
|
|
594
|
-
};
|
|
595
|
-
const lockedBiomeV3Object = zod_1.z
|
|
596
|
-
.object(lockedBiomeV3Shape)
|
|
597
|
-
.strict()
|
|
598
|
-
.superRefine(refineLockedBiome);
|
|
599
|
-
exports.LockedBiomeV3Schema = lockedBiomeV3Object;
|
|
600
|
-
const lockedBiomeV4Shape = {
|
|
601
|
-
...lockedBiomeV3Shape,
|
|
602
584
|
bundleSource: biome_1.BiomeBundleSourceSpecSchema.optional(),
|
|
603
585
|
serviceResources: zod_1.z.array(exports.LockedServiceResourceSchema).readonly().optional(),
|
|
604
586
|
serviceProcessFacts: zod_1.z
|
|
@@ -621,29 +603,29 @@ const lockedBiomeV4Shape = {
|
|
|
621
603
|
.record(zod_1.z.string().min(1), exports.LockedWorkerImageSchema)
|
|
622
604
|
.readonly(),
|
|
623
605
|
};
|
|
624
|
-
const
|
|
625
|
-
|
|
606
|
+
const lockedBiomeShape = {
|
|
607
|
+
...unsealedLockedBiomeShape,
|
|
608
|
+
biomeContentHash: kernel_contract_authority_1.BiomeContentHashSchema,
|
|
609
|
+
};
|
|
610
|
+
const unsealedLockedBiomeObject = zod_1.z
|
|
611
|
+
.object(unsealedLockedBiomeShape)
|
|
626
612
|
.strict()
|
|
627
613
|
.superRefine(refineLockedBiome)
|
|
628
614
|
.superRefine(refineLockedBiomeResources);
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
.
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
const readerLockedBiomeV3Object = zod_1.z
|
|
637
|
-
.looseObject(lockedBiomeV3Shape)
|
|
638
|
-
.superRefine(refineLockedBiome);
|
|
639
|
-
const readerLockedBiomeV4Object = zod_1.z
|
|
615
|
+
const lockedBiomeObject = zod_1.z
|
|
616
|
+
.object(lockedBiomeShape)
|
|
617
|
+
.strict()
|
|
618
|
+
.superRefine(refineLockedBiome)
|
|
619
|
+
.superRefine(refineLockedBiomeResources);
|
|
620
|
+
exports.LockedBiomeSchema = lockedBiomeObject;
|
|
621
|
+
const readerLockedBiomeObject = zod_1.z
|
|
640
622
|
.looseObject({
|
|
641
|
-
...
|
|
623
|
+
...lockedBiomeShape,
|
|
642
624
|
serviceResources: zod_1.z
|
|
643
625
|
.array(ReaderLockedServiceResourceSchema)
|
|
644
626
|
.readonly()
|
|
645
627
|
.optional(),
|
|
646
|
-
workerImages:
|
|
628
|
+
workerImages: lockedBiomeShape.workerImages.optional(),
|
|
647
629
|
})
|
|
648
630
|
.superRefine(refineLockedBiome);
|
|
649
631
|
exports.LockedPlatformServiceSchema = zod_1.z
|
|
@@ -675,11 +657,9 @@ exports.CapabilityDomainOwnerSchema = zod_1.z
|
|
|
675
657
|
biomeId: zod_1.z.string().min(1),
|
|
676
658
|
})
|
|
677
659
|
.strict();
|
|
678
|
-
exports.DISTRIBUTION_LOCK_SCHEMA_VERSIONS = [
|
|
679
|
-
exports.
|
|
680
|
-
exports.
|
|
681
|
-
exports.DISTRIBUTION_LOCK_SCHEMA_VERSION_V3 = 3;
|
|
682
|
-
exports.DISTRIBUTION_LOCK_SCHEMA_VERSION_LATEST = 4;
|
|
660
|
+
exports.DISTRIBUTION_LOCK_SCHEMA_VERSIONS = [5];
|
|
661
|
+
exports.DISTRIBUTION_LOCK_SCHEMA_VERSION = 5;
|
|
662
|
+
exports.UNSEALED_DISTRIBUTION_LOCK_SCHEMA = 'xema.distribution-lock.unsealed/v1';
|
|
683
663
|
exports.DistributionLockResolutionSchema = zod_1.z
|
|
684
664
|
.object({
|
|
685
665
|
mode: distribution_roots_1.DistributionResolutionModeSchema,
|
|
@@ -737,24 +717,11 @@ const distributionLockBodyShape = {
|
|
|
737
717
|
capabilityDomainOwners: zod_1.z.array(exports.CapabilityDomainOwnerSchema).readonly(),
|
|
738
718
|
platformServices: zod_1.z.array(exports.LockedPlatformServiceSchema).readonly(),
|
|
739
719
|
resolvedAt: zod_1.z.string().datetime({ offset: true }),
|
|
740
|
-
inputHash:
|
|
720
|
+
inputHash: content_address_1.Sha256HexSchema,
|
|
741
721
|
owner: distribution_ownership_1.DistributionOwnerSchema.optional(),
|
|
742
722
|
visibility: distribution_ownership_1.DistributionVisibilitySchema.optional(),
|
|
723
|
+
catalogueDigest: kernel_contract_authority_1.OciDigestSchema.optional(),
|
|
743
724
|
};
|
|
744
|
-
const distributionLockV2Object = zod_1.z
|
|
745
|
-
.object({
|
|
746
|
-
schemaVersion: zod_1.z.literal(exports.DISTRIBUTION_LOCK_SCHEMA_VERSION_BASELINE),
|
|
747
|
-
biomes: zod_1.z.array(exports.LockedBiomeV2Schema).readonly(),
|
|
748
|
-
...distributionLockBodyShape,
|
|
749
|
-
})
|
|
750
|
-
.strict();
|
|
751
|
-
const distributionLockV3Object = zod_1.z
|
|
752
|
-
.object({
|
|
753
|
-
schemaVersion: zod_1.z.literal(exports.DISTRIBUTION_LOCK_SCHEMA_VERSION_V3),
|
|
754
|
-
biomes: zod_1.z.array(exports.LockedBiomeV3Schema).readonly(),
|
|
755
|
-
...distributionLockBodyShape,
|
|
756
|
-
})
|
|
757
|
-
.strict();
|
|
758
725
|
const refineResourceProviders = (lock, context) => {
|
|
759
726
|
const shipped = new Map();
|
|
760
727
|
for (const biome of lock.biomes) {
|
|
@@ -818,9 +785,9 @@ const refineCrossBiomeWorkflowClients = (lock, context) => {
|
|
|
818
785
|
}
|
|
819
786
|
});
|
|
820
787
|
};
|
|
821
|
-
const
|
|
788
|
+
const distributionLockObject = zod_1.z
|
|
822
789
|
.object({
|
|
823
|
-
schemaVersion: zod_1.z.literal(exports.
|
|
790
|
+
schemaVersion: zod_1.z.literal(exports.DISTRIBUTION_LOCK_SCHEMA_VERSION),
|
|
824
791
|
biomes: zod_1.z.array(exports.LockedBiomeSchema).readonly(),
|
|
825
792
|
...distributionLockBodyShape,
|
|
826
793
|
resolution: exports.DistributionLockResolutionSchema.optional(),
|
|
@@ -832,61 +799,117 @@ const distributionLockV4Object = zod_1.z
|
|
|
832
799
|
.superRefine(nexus_binding_1.refineNexusBindings)
|
|
833
800
|
.superRefine(resolve_nexus_bindings_1.refineNexusBindingsAgreeWithFacts)
|
|
834
801
|
.superRefine(refineCrossBiomeWorkflowClients);
|
|
835
|
-
const
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
});
|
|
840
|
-
const readerDistributionLockV3Object = zod_1.z.looseObject({
|
|
841
|
-
schemaVersion: zod_1.z.literal(exports.DISTRIBUTION_LOCK_SCHEMA_VERSION_V3),
|
|
842
|
-
biomes: zod_1.z.array(readerLockedBiomeV3Object).readonly(),
|
|
802
|
+
const unsealedDistributionLockObject = zod_1.z
|
|
803
|
+
.object({
|
|
804
|
+
unsealedSchema: zod_1.z.literal(exports.UNSEALED_DISTRIBUTION_LOCK_SCHEMA),
|
|
805
|
+
biomes: zod_1.z.array(unsealedLockedBiomeObject).readonly(),
|
|
843
806
|
...distributionLockBodyShape,
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
807
|
+
resolution: exports.DistributionLockResolutionSchema.optional(),
|
|
808
|
+
nexusBindings: zod_1.z.array(nexus_binding_1.LockedNexusBindingSchema).readonly().optional(),
|
|
809
|
+
})
|
|
810
|
+
.strict()
|
|
811
|
+
.superRefine(refineResourceProviders)
|
|
812
|
+
.superRefine(refineResolutionCoverage)
|
|
813
|
+
.superRefine(nexus_binding_1.refineNexusBindings)
|
|
814
|
+
.superRefine(resolve_nexus_bindings_1.refineNexusBindingsAgreeWithFacts)
|
|
815
|
+
.superRefine(refineCrossBiomeWorkflowClients);
|
|
816
|
+
exports.UnsealedDistributionLockSchema = unsealedDistributionLockObject;
|
|
817
|
+
const readerDistributionLockObject = zod_1.z.looseObject({
|
|
818
|
+
schemaVersion: zod_1.z.literal(exports.DISTRIBUTION_LOCK_SCHEMA_VERSION),
|
|
819
|
+
biomes: zod_1.z.array(readerLockedBiomeObject).readonly(),
|
|
848
820
|
...distributionLockBodyShape,
|
|
849
821
|
resolution: exports.DistributionLockResolutionSchema.optional(),
|
|
850
822
|
nexusBindings: zod_1.z.array(nexus_binding_1.LockedNexusBindingSchema).readonly().optional(),
|
|
851
823
|
});
|
|
852
|
-
exports.
|
|
853
|
-
exports.
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
exports.
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
824
|
+
exports.DistributionLockSchema = distributionLockObject;
|
|
825
|
+
exports.DistributionLockReaderSchema = readerDistributionLockObject;
|
|
826
|
+
class DistributionLockShapeError extends Error {
|
|
827
|
+
expected;
|
|
828
|
+
actual;
|
|
829
|
+
constructor(expected, actual) {
|
|
830
|
+
super(expected === 'sealed'
|
|
831
|
+
? `Invalid distribution.lock.json: this is an UNSEALED lock (unsealedSchema ${exports.UNSEALED_DISTRIBUTION_LOCK_SCHEMA}); only a sealed schemaVersion ${exports.DISTRIBUTION_LOCK_SCHEMA_VERSION} lock is accepted here. Seal it with sealDistributionLock, or parse it with parseUnsealedDistributionLock.`
|
|
832
|
+
: `Invalid unsealed distribution lock: this is a SEALED lock (schemaVersion ${exports.DISTRIBUTION_LOCK_SCHEMA_VERSION}); parse it with parseDistributionLock, or project it with unsealedProjection.`);
|
|
833
|
+
this.name = 'DistributionLockShapeError';
|
|
834
|
+
this.expected = expected;
|
|
835
|
+
this.actual = actual;
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
exports.DistributionLockShapeError = DistributionLockShapeError;
|
|
839
|
+
var DistributionLockVersionErrorCode;
|
|
840
|
+
(function (DistributionLockVersionErrorCode) {
|
|
841
|
+
DistributionLockVersionErrorCode["UnsupportedSchemaVersion"] = "unsupported-schema-version";
|
|
842
|
+
})(DistributionLockVersionErrorCode || (exports.DistributionLockVersionErrorCode = DistributionLockVersionErrorCode = {}));
|
|
843
|
+
class DistributionLockVersionError extends Error {
|
|
844
|
+
code;
|
|
845
|
+
constructor(message) {
|
|
846
|
+
super(message);
|
|
847
|
+
this.name = 'DistributionLockVersionError';
|
|
848
|
+
this.code = DistributionLockVersionErrorCode.UnsupportedSchemaVersion;
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
exports.DistributionLockVersionError = DistributionLockVersionError;
|
|
852
|
+
const isSealedShape = (raw) => typeof raw === 'object' && raw !== null && 'schemaVersion' in raw;
|
|
853
|
+
const isUnsealedShape = (raw) => typeof raw === 'object' && raw !== null && 'unsealedSchema' in raw;
|
|
854
|
+
function sealDistributionLock(unsealed, contentHashes) {
|
|
855
|
+
parseUnsealedDistributionLock(unsealed);
|
|
856
|
+
const ids = new Set(unsealed.biomes.map((biome) => biome.id));
|
|
857
|
+
const unknown = [...contentHashes.keys()].filter((id) => !ids.has(id));
|
|
858
|
+
if (unknown.length > 0) {
|
|
859
|
+
throw new Error(`sealDistributionLock: content hash for biome(s) ${unknown.join(', ')}, which the lock does not ship`);
|
|
860
|
+
}
|
|
861
|
+
const missing = unsealed.biomes
|
|
862
|
+
.filter((biome) => !contentHashes.has(biome.id))
|
|
868
863
|
.map((biome) => biome.id);
|
|
869
|
-
if (
|
|
870
|
-
throw new Error(`
|
|
871
|
-
`producer states every biome's shared-image workers, {} when it has none, ` +
|
|
872
|
-
`so that an absent field can never read as "no workers"`);
|
|
864
|
+
if (missing.length > 0) {
|
|
865
|
+
throw new Error(`sealDistributionLock: no content hash for biome(s) ${missing.join(', ')}`);
|
|
873
866
|
}
|
|
874
|
-
|
|
867
|
+
const { unsealedSchema: _unsealedSchema, ...rest } = unsealed;
|
|
868
|
+
return parseDistributionLock({
|
|
869
|
+
...rest,
|
|
870
|
+
schemaVersion: exports.DISTRIBUTION_LOCK_SCHEMA_VERSION,
|
|
871
|
+
biomes: unsealed.biomes.map((biome) => ({
|
|
872
|
+
...biome,
|
|
873
|
+
biomeContentHash: contentHashes.get(biome.id),
|
|
874
|
+
})),
|
|
875
|
+
});
|
|
875
876
|
}
|
|
876
|
-
function
|
|
877
|
-
const schemaVersion =
|
|
878
|
-
return
|
|
877
|
+
function unsealedProjection(lock) {
|
|
878
|
+
const { schemaVersion: _schemaVersion, ...rest } = lock;
|
|
879
|
+
return {
|
|
880
|
+
unsealedSchema: exports.UNSEALED_DISTRIBUTION_LOCK_SCHEMA,
|
|
881
|
+
...rest,
|
|
882
|
+
biomes: lock.biomes.map((biome) => {
|
|
883
|
+
const { biomeContentHash: _hash, ...unsealedBiome } = biome;
|
|
884
|
+
return unsealedBiome;
|
|
885
|
+
}),
|
|
886
|
+
};
|
|
887
|
+
}
|
|
888
|
+
function parseUnsealedDistributionLock(raw) {
|
|
889
|
+
if (isSealedShape(raw)) {
|
|
890
|
+
throw new DistributionLockShapeError('unsealed', 'sealed');
|
|
891
|
+
}
|
|
892
|
+
const result = exports.UnsealedDistributionLockSchema.safeParse(raw);
|
|
893
|
+
if (!result.success) {
|
|
894
|
+
throw new Error(`Invalid unsealed distribution lock: ${result.error.issues
|
|
895
|
+
.map((i) => `[${i.path.join('.')}] ${i.message}`)
|
|
896
|
+
.join('; ')}`);
|
|
897
|
+
}
|
|
898
|
+
return result.data;
|
|
879
899
|
}
|
|
880
900
|
function parseDistributionLockWith(schema, raw) {
|
|
901
|
+
if (isUnsealedShape(raw)) {
|
|
902
|
+
throw new DistributionLockShapeError('sealed', 'unsealed');
|
|
903
|
+
}
|
|
881
904
|
const version = typeof raw === 'object' && raw !== null && 'schemaVersion' in raw
|
|
882
905
|
? raw.schemaVersion
|
|
883
906
|
: undefined;
|
|
884
907
|
const supported = exports.DISTRIBUTION_LOCK_SCHEMA_VERSIONS.join(', ');
|
|
885
908
|
if (version === undefined) {
|
|
886
|
-
throw new
|
|
909
|
+
throw new DistributionLockVersionError(`Invalid distribution.lock.json: missing required schemaVersion; this runtime supports schemaVersion ${supported}. Regenerate the lock with the current distribution builder.`);
|
|
887
910
|
}
|
|
888
911
|
if (!exports.DISTRIBUTION_LOCK_SCHEMA_VERSIONS.includes(version)) {
|
|
889
|
-
throw new
|
|
912
|
+
throw new DistributionLockVersionError(`Invalid distribution.lock.json: unsupported schemaVersion ${JSON.stringify(version)}; this runtime supports schemaVersion ${supported}. Regenerate the lock with the current distribution builder, or upgrade this runtime's @xemahq/contracts.`);
|
|
890
913
|
}
|
|
891
914
|
const result = schema.safeParse(raw);
|
|
892
915
|
if (!result.success) {
|