@xemahq/contracts 0.75.0 → 0.77.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.
Files changed (177) hide show
  1. package/README.md +19 -0
  2. package/dist/.source-stamp.json +2 -2
  3. package/dist/agent-composition/lib/delegate-aperture.d.ts.map +1 -1
  4. package/dist/agent-composition/lib/delegate-aperture.js +10 -9
  5. package/dist/agent-composition/lib/delegate-aperture.js.map +1 -1
  6. package/dist/agent-session/lib/resolved-session-composition.d.ts.map +1 -1
  7. package/dist/agent-session/lib/resolved-session-composition.js +46 -45
  8. package/dist/agent-session/lib/resolved-session-composition.js.map +1 -1
  9. package/dist/authorization-module/index.d.ts +1 -0
  10. package/dist/authorization-module/index.d.ts.map +1 -1
  11. package/dist/authorization-module/index.js +1 -0
  12. package/dist/authorization-module/index.js.map +1 -1
  13. package/dist/authorization-module/lib/authorization-composition-error.d.ts +2 -0
  14. package/dist/authorization-module/lib/authorization-composition-error.d.ts.map +1 -1
  15. package/dist/authorization-module/lib/authorization-composition-error.js +2 -0
  16. package/dist/authorization-module/lib/authorization-composition-error.js.map +1 -1
  17. package/dist/authorization-module/lib/authorization-interface-requirements.d.ts +21 -0
  18. package/dist/authorization-module/lib/authorization-interface-requirements.d.ts.map +1 -0
  19. package/dist/authorization-module/lib/authorization-interface-requirements.js +14 -0
  20. package/dist/authorization-module/lib/authorization-interface-requirements.js.map +1 -0
  21. package/dist/authorization-module/lib/platform-authorization-modules.d.ts +6 -2
  22. package/dist/authorization-module/lib/platform-authorization-modules.d.ts.map +1 -1
  23. package/dist/authorization-module/lib/platform-authorization-modules.js +39 -2
  24. package/dist/authorization-module/lib/platform-authorization-modules.js.map +1 -1
  25. package/dist/authorization-module/server/authorization-interface-conformance.d.ts +14 -0
  26. package/dist/authorization-module/server/authorization-interface-conformance.d.ts.map +1 -0
  27. package/dist/authorization-module/server/authorization-interface-conformance.js +97 -0
  28. package/dist/authorization-module/server/authorization-interface-conformance.js.map +1 -0
  29. package/dist/authorization-module/server/compose-authorization-base.d.ts.map +1 -1
  30. package/dist/authorization-module/server/compose-authorization-base.js +8 -3
  31. package/dist/authorization-module/server/compose-authorization-base.js.map +1 -1
  32. package/dist/authzen/lib/durable-delegation-model.d.ts +8 -0
  33. package/dist/authzen/lib/durable-delegation-model.d.ts.map +1 -1
  34. package/dist/authzen/lib/durable-delegation-model.js +10 -1
  35. package/dist/authzen/lib/durable-delegation-model.js.map +1 -1
  36. package/dist/biome/lib/biome-generated-index.d.ts.map +1 -1
  37. package/dist/biome/lib/biome-generated-index.js +2 -1
  38. package/dist/biome/lib/biome-generated-index.js.map +1 -1
  39. package/dist/biome/lib/biome-manifest.d.ts.map +1 -1
  40. package/dist/biome/lib/biome-manifest.js +2 -1
  41. package/dist/biome/lib/biome-manifest.js.map +1 -1
  42. package/dist/biome-dependency/lib/biome-dependency-contract.d.ts.map +1 -1
  43. package/dist/biome-dependency/lib/biome-dependency-contract.js +2 -1
  44. package/dist/biome-dependency/lib/biome-dependency-contract.js.map +1 -1
  45. package/dist/biome-dependency/lib/peer-seam-table.d.ts +1 -0
  46. package/dist/biome-dependency/lib/peer-seam-table.d.ts.map +1 -1
  47. package/dist/biome-dependency/lib/peer-seam-table.js +2 -1
  48. package/dist/biome-dependency/lib/peer-seam-table.js.map +1 -1
  49. package/dist/biome-mount/lib/adapter-host-mount.js +1 -1
  50. package/dist/biome-mount/lib/adapter-host-mount.js.map +1 -1
  51. package/dist/capability/lib/capability-aperture.d.ts.map +1 -1
  52. package/dist/capability/lib/capability-aperture.js.map +1 -1
  53. package/dist/capability/lib/capability-ref-pattern.d.ts.map +1 -1
  54. package/dist/capability/lib/capability-ref-pattern.js.map +1 -1
  55. package/dist/capability/lib/required-resource-role-binding.d.ts.map +1 -1
  56. package/dist/capability/lib/required-resource-role-binding.js.map +1 -1
  57. package/dist/content-address/lib/content-address.d.ts +2 -0
  58. package/dist/content-address/lib/content-address.d.ts.map +1 -1
  59. package/dist/content-address/lib/content-address.js +4 -2
  60. package/dist/content-address/lib/content-address.js.map +1 -1
  61. package/dist/contribution/lib/contribution-kind-descriptor.d.ts.map +1 -1
  62. package/dist/contribution/lib/contribution-kind-descriptor.js.map +1 -1
  63. package/dist/deployment/lib/resolved-deployment.d.ts +27 -2
  64. package/dist/deployment/lib/resolved-deployment.d.ts.map +1 -1
  65. package/dist/deployment/lib/resolved-deployment.js +60 -18
  66. package/dist/deployment/lib/resolved-deployment.js.map +1 -1
  67. package/dist/distribution/index.d.ts +5 -1
  68. package/dist/distribution/index.d.ts.map +1 -1
  69. package/dist/distribution/index.js +6 -0
  70. package/dist/distribution/index.js.map +1 -1
  71. package/dist/distribution/lib/biome-source.d.ts +6 -0
  72. package/dist/distribution/lib/biome-source.d.ts.map +1 -1
  73. package/dist/distribution/lib/biome-source.js +23 -2
  74. package/dist/distribution/lib/biome-source.js.map +1 -1
  75. package/dist/distribution/lib/customer-edition-definition.d.ts +45 -0
  76. package/dist/distribution/lib/customer-edition-definition.d.ts.map +1 -0
  77. package/dist/distribution/lib/customer-edition-definition.js +110 -0
  78. package/dist/distribution/lib/customer-edition-definition.js.map +1 -0
  79. package/dist/distribution/lib/delivered-biome.d.ts +11 -0
  80. package/dist/distribution/lib/delivered-biome.d.ts.map +1 -0
  81. package/dist/distribution/lib/delivered-biome.js +24 -0
  82. package/dist/distribution/lib/delivered-biome.js.map +1 -0
  83. package/dist/distribution/lib/distribution-lock.d.ts +36 -42
  84. package/dist/distribution/lib/distribution-lock.d.ts.map +1 -1
  85. package/dist/distribution/lib/distribution-lock.js +129 -102
  86. package/dist/distribution/lib/distribution-lock.js.map +1 -1
  87. package/dist/distribution/lib/distribution-selector.d.ts +7 -0
  88. package/dist/distribution/lib/distribution-selector.d.ts.map +1 -1
  89. package/dist/distribution/lib/distribution-selector.js +10 -9
  90. package/dist/distribution/lib/distribution-selector.js.map +1 -1
  91. package/dist/distribution/lib/distribution.d.ts +0 -1
  92. package/dist/distribution/lib/distribution.d.ts.map +1 -1
  93. package/dist/distribution/lib/distribution.js +1 -2
  94. package/dist/distribution/lib/distribution.js.map +1 -1
  95. package/dist/distribution/lib/image-lock.d.ts +11 -11
  96. package/dist/distribution/lib/image-lock.d.ts.map +1 -1
  97. package/dist/distribution/lib/image-lock.js +5 -6
  98. package/dist/distribution/lib/image-lock.js.map +1 -1
  99. package/dist/distribution/lib/image-producer-evidence.d.ts +69 -55
  100. package/dist/distribution/lib/image-producer-evidence.d.ts.map +1 -1
  101. package/dist/distribution/lib/image-producer-evidence.js +71 -47
  102. package/dist/distribution/lib/image-producer-evidence.js.map +1 -1
  103. package/dist/distribution/lib/kernel-contract-authority.d.ts +53 -3
  104. package/dist/distribution/lib/kernel-contract-authority.d.ts.map +1 -1
  105. package/dist/distribution/lib/kernel-contract-authority.js +120 -26
  106. package/dist/distribution/lib/kernel-contract-authority.js.map +1 -1
  107. package/dist/distribution/lib/kernel-contract-source-paths.d.ts +2 -0
  108. package/dist/distribution/lib/kernel-contract-source-paths.d.ts.map +1 -0
  109. package/dist/distribution/lib/kernel-contract-source-paths.js +391 -0
  110. package/dist/distribution/lib/kernel-contract-source-paths.js.map +1 -0
  111. package/dist/distribution/lib/nexus-endpoint-specs.d.ts +2 -5
  112. package/dist/distribution/lib/nexus-endpoint-specs.d.ts.map +1 -1
  113. package/dist/distribution/lib/nexus-endpoint-specs.js +7 -7
  114. package/dist/distribution/lib/nexus-endpoint-specs.js.map +1 -1
  115. package/dist/distribution/lib/platform-service-source-index.d.ts.map +1 -1
  116. package/dist/distribution/lib/platform-service-source-index.js +2 -2
  117. package/dist/distribution/lib/platform-service-source-index.js.map +1 -1
  118. package/dist/distribution/lib/resolve-unsplit-deployment.d.ts +14 -0
  119. package/dist/distribution/lib/resolve-unsplit-deployment.d.ts.map +1 -0
  120. package/dist/distribution/lib/resolve-unsplit-deployment.js +34 -0
  121. package/dist/distribution/lib/resolve-unsplit-deployment.js.map +1 -0
  122. package/dist/distribution/lib/runtime-image-source-index.d.ts +3 -3
  123. package/dist/distribution/lib/runtime-image-source-index.d.ts.map +1 -1
  124. package/dist/distribution/lib/runtime-image-source-index.js +1 -1
  125. package/dist/distribution/lib/runtime-image-source-index.js.map +1 -1
  126. package/dist/distribution/lib/verified-resolved-deployment.d.ts +19 -2
  127. package/dist/distribution/lib/verified-resolved-deployment.d.ts.map +1 -1
  128. package/dist/distribution/lib/verify-resolved-deployment.d.ts +25 -11
  129. package/dist/distribution/lib/verify-resolved-deployment.d.ts.map +1 -1
  130. package/dist/distribution/lib/verify-resolved-deployment.js +64 -11
  131. package/dist/distribution/lib/verify-resolved-deployment.js.map +1 -1
  132. package/dist/edition-protocol/edition-contract.schema.json +1 -0
  133. package/dist/edition-protocol/edition-protocol.json +1 -0
  134. package/dist/edition-protocol/index.d.ts +2 -0
  135. package/dist/edition-protocol/index.d.ts.map +1 -0
  136. package/dist/edition-protocol/index.js +18 -0
  137. package/dist/edition-protocol/index.js.map +1 -0
  138. package/dist/edition-protocol/lib/edition-protocol.d.ts +9 -0
  139. package/dist/edition-protocol/lib/edition-protocol.d.ts.map +1 -0
  140. package/dist/edition-protocol/lib/edition-protocol.js +19 -0
  141. package/dist/edition-protocol/lib/edition-protocol.js.map +1 -0
  142. package/dist/http/lib/problem-definition.js.map +1 -1
  143. package/dist/redis-key/index.d.ts +1 -0
  144. package/dist/redis-key/index.d.ts.map +1 -1
  145. package/dist/redis-key/index.js +1 -0
  146. package/dist/redis-key/index.js.map +1 -1
  147. package/dist/redis-key/lib/deployment-acl-policy.d.ts.map +1 -1
  148. package/dist/redis-key/lib/deployment-acl-policy.js +1 -0
  149. package/dist/redis-key/lib/deployment-acl-policy.js.map +1 -1
  150. package/dist/redis-key/lib/erasure-request.d.ts +6 -0
  151. package/dist/redis-key/lib/erasure-request.d.ts.map +1 -0
  152. package/dist/redis-key/lib/erasure-request.js +75 -0
  153. package/dist/redis-key/lib/erasure-request.js.map +1 -0
  154. package/dist/redis-key/lib/lease-acl-policy.d.ts.map +1 -1
  155. package/dist/redis-key/lib/lease-acl-policy.js +2 -0
  156. package/dist/redis-key/lib/lease-acl-policy.js.map +1 -1
  157. package/dist/resolved-deployment-fixture/index.d.ts +2 -0
  158. package/dist/resolved-deployment-fixture/index.d.ts.map +1 -0
  159. package/dist/resolved-deployment-fixture/index.js +18 -0
  160. package/dist/resolved-deployment-fixture/index.js.map +1 -0
  161. package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.d.ts +15 -0
  162. package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.d.ts.map +1 -0
  163. package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.js +128 -0
  164. package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.js.map +1 -0
  165. package/dist/resource-role/lib/resource-role-binding.d.ts.map +1 -1
  166. package/dist/resource-role/lib/resource-role-binding.js.map +1 -1
  167. package/dist/resource-role/lib/resource-role-contribution.d.ts.map +1 -1
  168. package/dist/resource-role/lib/resource-role-contribution.js.map +1 -1
  169. package/dist/resource-role/lib/resource-role-default-binding.d.ts.map +1 -1
  170. package/dist/resource-role/lib/resource-role-default-binding.js.map +1 -1
  171. package/dist/service-registry/lib/on-behalf-descriptor.d.ts.map +1 -1
  172. package/dist/service-registry/lib/on-behalf-descriptor.js.map +1 -1
  173. package/dist/service-registry/lib/service-descriptor.d.ts +6 -0
  174. package/dist/service-registry/lib/service-descriptor.d.ts.map +1 -1
  175. package/dist/service-registry/lib/service-descriptor.js +16 -1
  176. package/dist/service-registry/lib/service-descriptor.js.map +1 -1
  177. 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: string;
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: string;
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 [2, 3, 4];
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 DISTRIBUTION_LOCK_SCHEMA_VERSION_BASELINE: 2;
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 DistributionLockV2 extends DistributionLockBody {
237
- schemaVersion: typeof DISTRIBUTION_LOCK_SCHEMA_VERSION_BASELINE;
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 type DistributionLockWriterInput = DistributionLockBody & {
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 declare function distributionLockSchemaVersionFor(body: Pick<DistributionLockBody, never> & {
272
- readonly biomes: readonly LockedBiome[];
273
- readonly resolution?: DistributionLockResolution | undefined;
274
- readonly nexusBindings?: readonly LockedNexusBinding[] | undefined;
275
- }): DistributionLockSchemaVersion;
276
- export declare function sealDistributionLock(body: DistributionLockWriterInput): DistributionLock;
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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,CAY/B;AASD,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,2BAA2B,GAChC,gBAAgB,CAGlB;AA8CD,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,gBAAgB,CAEpE;AASD,wBAAgB,+BAA+B,CAC7C,GAAG,EAAE,OAAO,GACX,wBAAwB,CAK1B"}
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,CAA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EACI,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;AA2BnE,eAAO,MAAM,4BAA4B,EACI,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAGzE,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,UAAU,CAAC;AAQ1D,qBAAa,0BAA2B,SAAQ,KAAK;IACnD,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC;IACzC,QAAQ,CAAC,MAAM,EAAE,qBAAqB,CAAC;gBAC3B,QAAQ,EAAE,qBAAqB,EAAE,MAAM,EAAE,qBAAqB;CAU3E;AAGD,oBAAY,gCAAgC;IAE1C,wBAAwB,+BAA+B;CACxD;AAGD,qBAAa,4BAA6B,SAAQ,KAAK;IACrD,QAAQ,CAAC,IAAI,EAAE,gCAAgC,CAAC;gBACpC,OAAO,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.DistributionLockReaderSchema = exports.DistributionLockSchema = exports.DistributionLockV4Schema = exports.DistributionLockV3Schema = exports.DistributionLockV2Schema = exports.DistributionLockResolutionSchema = exports.DISTRIBUTION_LOCK_SCHEMA_VERSION_LATEST = exports.DISTRIBUTION_LOCK_SCHEMA_VERSION_V3 = exports.DISTRIBUTION_LOCK_SCHEMA_VERSION = exports.DISTRIBUTION_LOCK_SCHEMA_VERSION_BASELINE = exports.DISTRIBUTION_LOCK_SCHEMA_VERSIONS = exports.CapabilityDomainOwnerSchema = exports.LockedPlatformServiceSchema = exports.LockedBiomeSchema = exports.LockedBiomeV3Schema = exports.LockedBiomeV2Schema = exports.LockedServiceProcessFactsSchema = exports.LockedWorkerTaskQueueSchema = exports.LockedWorkflowSubjectSchema = exports.WorkflowSubjectPermission = exports.LockedWorkflowClientSchema = exports.LockedWorkerImageSchema = exports.LockedBiomeSourceSchema = exports.LockedBiomeSourceV2Schema = exports.LockedHostModuleSchema = exports.LockedServiceResourcesSchema = exports.LockedServiceResourceSchema = exports.LockedResourceProviderSchema = exports.LockedServiceDependencySchema = exports.ServiceOwnerIdentitySchema = exports.PlatformServiceOwnerIdentitySchema = exports.BiomeServiceOwnerIdentitySchema = void 0;
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: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
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.LockedBiomeSourceV2Schema = zod_1.z
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),
@@ -198,6 +197,10 @@ function deriveWorkflowSubjects(biome) {
198
197
  }));
199
198
  }
200
199
  function resolveWorkflowSubjects(lock, resolved) {
200
+ if ((0, deployment_1.isUnsplitResolvedDeployment)(resolved)) {
201
+ throw new Error('resolveWorkflowSubjects: the resolved deployment is the unsplit variant, which states no ServiceAccount; ' +
202
+ 'workflow subjects are resolved only from an engine deployment');
203
+ }
201
204
  const domainOf = new Map(resolved.biomes.map((biome) => [biome.id, biome.trustDomain]));
202
205
  const accountsOf = new Map();
203
206
  for (const account of resolved.serviceAccounts) {
@@ -287,7 +290,6 @@ const lockedBiomeBaseShape = {
287
290
  runtimeComponents: zod_1.z.array(zod_1.z.string().min(1)).readonly(),
288
291
  hostModules: zod_1.z.array(exports.LockedHostModuleSchema).readonly(),
289
292
  serviceDependencies: zod_1.z.array(exports.LockedServiceDependencySchema).readonly(),
290
- imageDigest: zod_1.z.string().min(1).optional(),
291
293
  displayName: zod_1.z.string().min(1),
292
294
  packageName: zod_1.z.string().min(1).nullable(),
293
295
  requiresServerBiomes: zod_1.z.array(zod_1.z.string().min(1)).readonly(),
@@ -295,7 +297,7 @@ const lockedBiomeBaseShape = {
295
297
  audience: biome_1.BiomeAudienceSchema,
296
298
  storeListed: zod_1.z.boolean(),
297
299
  systemSurface: zod_1.z.boolean(),
298
- sourceManifestHash: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
300
+ sourceManifestHash: kernel_contract_authority_1.BiomeSourceManifestHashSchema,
299
301
  display: LockedBiomeDisplaySchema.optional(),
300
302
  };
301
303
  const refineLockedBiome = (value, context) => {
@@ -571,15 +573,7 @@ const refineLockedTrustCeiling = (value, context) => {
571
573
  function lockedVersionedWorkers(biome) {
572
574
  return Object.keys(biome.workerTaskQueues ?? {}).sort();
573
575
  }
574
- const lockedBiomeV2Object = zod_1.z
575
- .object({
576
- ...lockedBiomeBaseShape,
577
- source: exports.LockedBiomeSourceV2Schema.optional(),
578
- })
579
- .strict()
580
- .superRefine(refineLockedBiome);
581
- exports.LockedBiomeV2Schema = lockedBiomeV2Object;
582
- const lockedBiomeV3Shape = {
576
+ const unsealedLockedBiomeShape = {
583
577
  ...lockedBiomeBaseShape,
584
578
  serviceDatabaseExtensions: zod_1.z
585
579
  .record(zod_1.z.string().min(1), zod_1.z
@@ -591,14 +585,6 @@ const lockedBiomeV3Shape = {
591
585
  .readonly()
592
586
  .optional(),
593
587
  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
588
  bundleSource: biome_1.BiomeBundleSourceSpecSchema.optional(),
603
589
  serviceResources: zod_1.z.array(exports.LockedServiceResourceSchema).readonly().optional(),
604
590
  serviceProcessFacts: zod_1.z
@@ -621,29 +607,29 @@ const lockedBiomeV4Shape = {
621
607
  .record(zod_1.z.string().min(1), exports.LockedWorkerImageSchema)
622
608
  .readonly(),
623
609
  };
624
- const lockedBiomeV4Object = zod_1.z
625
- .object(lockedBiomeV4Shape)
610
+ const lockedBiomeShape = {
611
+ ...unsealedLockedBiomeShape,
612
+ biomeContentHash: kernel_contract_authority_1.BiomeContentHashSchema,
613
+ };
614
+ const unsealedLockedBiomeObject = zod_1.z
615
+ .object(unsealedLockedBiomeShape)
626
616
  .strict()
627
617
  .superRefine(refineLockedBiome)
628
618
  .superRefine(refineLockedBiomeResources);
629
- exports.LockedBiomeSchema = lockedBiomeV4Object;
630
- const readerLockedBiomeV2Object = zod_1.z
631
- .looseObject({
632
- ...lockedBiomeBaseShape,
633
- source: exports.LockedBiomeSourceV2Schema.optional(),
634
- })
635
- .superRefine(refineLockedBiome);
636
- const readerLockedBiomeV3Object = zod_1.z
637
- .looseObject(lockedBiomeV3Shape)
638
- .superRefine(refineLockedBiome);
639
- const readerLockedBiomeV4Object = zod_1.z
619
+ const lockedBiomeObject = zod_1.z
620
+ .object(lockedBiomeShape)
621
+ .strict()
622
+ .superRefine(refineLockedBiome)
623
+ .superRefine(refineLockedBiomeResources);
624
+ exports.LockedBiomeSchema = lockedBiomeObject;
625
+ const readerLockedBiomeObject = zod_1.z
640
626
  .looseObject({
641
- ...lockedBiomeV4Shape,
627
+ ...lockedBiomeShape,
642
628
  serviceResources: zod_1.z
643
629
  .array(ReaderLockedServiceResourceSchema)
644
630
  .readonly()
645
631
  .optional(),
646
- workerImages: lockedBiomeV4Shape.workerImages.optional(),
632
+ workerImages: lockedBiomeShape.workerImages.optional(),
647
633
  })
648
634
  .superRefine(refineLockedBiome);
649
635
  exports.LockedPlatformServiceSchema = zod_1.z
@@ -675,11 +661,9 @@ exports.CapabilityDomainOwnerSchema = zod_1.z
675
661
  biomeId: zod_1.z.string().min(1),
676
662
  })
677
663
  .strict();
678
- exports.DISTRIBUTION_LOCK_SCHEMA_VERSIONS = [2, 3, 4];
679
- exports.DISTRIBUTION_LOCK_SCHEMA_VERSION_BASELINE = 2;
680
- exports.DISTRIBUTION_LOCK_SCHEMA_VERSION = exports.DISTRIBUTION_LOCK_SCHEMA_VERSION_BASELINE;
681
- exports.DISTRIBUTION_LOCK_SCHEMA_VERSION_V3 = 3;
682
- exports.DISTRIBUTION_LOCK_SCHEMA_VERSION_LATEST = 4;
664
+ exports.DISTRIBUTION_LOCK_SCHEMA_VERSIONS = [5];
665
+ exports.DISTRIBUTION_LOCK_SCHEMA_VERSION = 5;
666
+ exports.UNSEALED_DISTRIBUTION_LOCK_SCHEMA = 'xema.distribution-lock.unsealed/v1';
683
667
  exports.DistributionLockResolutionSchema = zod_1.z
684
668
  .object({
685
669
  mode: distribution_roots_1.DistributionResolutionModeSchema,
@@ -737,24 +721,11 @@ const distributionLockBodyShape = {
737
721
  capabilityDomainOwners: zod_1.z.array(exports.CapabilityDomainOwnerSchema).readonly(),
738
722
  platformServices: zod_1.z.array(exports.LockedPlatformServiceSchema).readonly(),
739
723
  resolvedAt: zod_1.z.string().datetime({ offset: true }),
740
- inputHash: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
724
+ inputHash: content_address_1.Sha256HexSchema,
741
725
  owner: distribution_ownership_1.DistributionOwnerSchema.optional(),
742
726
  visibility: distribution_ownership_1.DistributionVisibilitySchema.optional(),
727
+ catalogueDigest: kernel_contract_authority_1.OciDigestSchema.optional(),
743
728
  };
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
729
  const refineResourceProviders = (lock, context) => {
759
730
  const shipped = new Map();
760
731
  for (const biome of lock.biomes) {
@@ -818,9 +789,9 @@ const refineCrossBiomeWorkflowClients = (lock, context) => {
818
789
  }
819
790
  });
820
791
  };
821
- const distributionLockV4Object = zod_1.z
792
+ const distributionLockObject = zod_1.z
822
793
  .object({
823
- schemaVersion: zod_1.z.literal(exports.DISTRIBUTION_LOCK_SCHEMA_VERSION_LATEST),
794
+ schemaVersion: zod_1.z.literal(exports.DISTRIBUTION_LOCK_SCHEMA_VERSION),
824
795
  biomes: zod_1.z.array(exports.LockedBiomeSchema).readonly(),
825
796
  ...distributionLockBodyShape,
826
797
  resolution: exports.DistributionLockResolutionSchema.optional(),
@@ -832,61 +803,117 @@ const distributionLockV4Object = zod_1.z
832
803
  .superRefine(nexus_binding_1.refineNexusBindings)
833
804
  .superRefine(resolve_nexus_bindings_1.refineNexusBindingsAgreeWithFacts)
834
805
  .superRefine(refineCrossBiomeWorkflowClients);
835
- const readerDistributionLockV2Object = zod_1.z.looseObject({
836
- schemaVersion: zod_1.z.literal(exports.DISTRIBUTION_LOCK_SCHEMA_VERSION_BASELINE),
837
- biomes: zod_1.z.array(readerLockedBiomeV2Object).readonly(),
838
- ...distributionLockBodyShape,
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(),
806
+ const unsealedDistributionLockObject = zod_1.z
807
+ .object({
808
+ unsealedSchema: zod_1.z.literal(exports.UNSEALED_DISTRIBUTION_LOCK_SCHEMA),
809
+ biomes: zod_1.z.array(unsealedLockedBiomeObject).readonly(),
843
810
  ...distributionLockBodyShape,
844
- });
845
- const readerDistributionLockV4Object = zod_1.z.looseObject({
846
- schemaVersion: zod_1.z.literal(exports.DISTRIBUTION_LOCK_SCHEMA_VERSION_LATEST),
847
- biomes: zod_1.z.array(readerLockedBiomeV4Object).readonly(),
811
+ resolution: exports.DistributionLockResolutionSchema.optional(),
812
+ nexusBindings: zod_1.z.array(nexus_binding_1.LockedNexusBindingSchema).readonly().optional(),
813
+ })
814
+ .strict()
815
+ .superRefine(refineResourceProviders)
816
+ .superRefine(refineResolutionCoverage)
817
+ .superRefine(nexus_binding_1.refineNexusBindings)
818
+ .superRefine(resolve_nexus_bindings_1.refineNexusBindingsAgreeWithFacts)
819
+ .superRefine(refineCrossBiomeWorkflowClients);
820
+ exports.UnsealedDistributionLockSchema = unsealedDistributionLockObject;
821
+ const readerDistributionLockObject = zod_1.z.looseObject({
822
+ schemaVersion: zod_1.z.literal(exports.DISTRIBUTION_LOCK_SCHEMA_VERSION),
823
+ biomes: zod_1.z.array(readerLockedBiomeObject).readonly(),
848
824
  ...distributionLockBodyShape,
849
825
  resolution: exports.DistributionLockResolutionSchema.optional(),
850
826
  nexusBindings: zod_1.z.array(nexus_binding_1.LockedNexusBindingSchema).readonly().optional(),
851
827
  });
852
- exports.DistributionLockV2Schema = distributionLockV2Object;
853
- exports.DistributionLockV3Schema = distributionLockV3Object;
854
- exports.DistributionLockV4Schema = distributionLockV4Object;
855
- exports.DistributionLockSchema = zod_1.z.discriminatedUnion('schemaVersion', [
856
- distributionLockV2Object,
857
- distributionLockV3Object,
858
- distributionLockV4Object,
859
- ]);
860
- exports.DistributionLockReaderSchema = zod_1.z.discriminatedUnion('schemaVersion', [
861
- readerDistributionLockV2Object,
862
- readerDistributionLockV3Object,
863
- readerDistributionLockV4Object,
864
- ]);
865
- function distributionLockSchemaVersionFor(body) {
866
- const silent = body.biomes
867
- .filter((biome) => biome.workerImages === undefined)
828
+ exports.DistributionLockSchema = distributionLockObject;
829
+ exports.DistributionLockReaderSchema = readerDistributionLockObject;
830
+ class DistributionLockShapeError extends Error {
831
+ expected;
832
+ actual;
833
+ constructor(expected, actual) {
834
+ super(expected === 'sealed'
835
+ ? `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.`
836
+ : `Invalid unsealed distribution lock: this is a SEALED lock (schemaVersion ${exports.DISTRIBUTION_LOCK_SCHEMA_VERSION}); parse it with parseDistributionLock, or project it with unsealedProjection.`);
837
+ this.name = 'DistributionLockShapeError';
838
+ this.expected = expected;
839
+ this.actual = actual;
840
+ }
841
+ }
842
+ exports.DistributionLockShapeError = DistributionLockShapeError;
843
+ var DistributionLockVersionErrorCode;
844
+ (function (DistributionLockVersionErrorCode) {
845
+ DistributionLockVersionErrorCode["UnsupportedSchemaVersion"] = "unsupported-schema-version";
846
+ })(DistributionLockVersionErrorCode || (exports.DistributionLockVersionErrorCode = DistributionLockVersionErrorCode = {}));
847
+ class DistributionLockVersionError extends Error {
848
+ code;
849
+ constructor(message) {
850
+ super(message);
851
+ this.name = 'DistributionLockVersionError';
852
+ this.code = DistributionLockVersionErrorCode.UnsupportedSchemaVersion;
853
+ }
854
+ }
855
+ exports.DistributionLockVersionError = DistributionLockVersionError;
856
+ const isSealedShape = (raw) => typeof raw === 'object' && raw !== null && 'schemaVersion' in raw;
857
+ const isUnsealedShape = (raw) => typeof raw === 'object' && raw !== null && 'unsealedSchema' in raw;
858
+ function sealDistributionLock(unsealed, contentHashes) {
859
+ parseUnsealedDistributionLock(unsealed);
860
+ const ids = new Set(unsealed.biomes.map((biome) => biome.id));
861
+ const unknown = [...contentHashes.keys()].filter((id) => !ids.has(id));
862
+ if (unknown.length > 0) {
863
+ throw new Error(`sealDistributionLock: content hash for biome(s) ${unknown.join(', ')}, which the lock does not ship`);
864
+ }
865
+ const missing = unsealed.biomes
866
+ .filter((biome) => !contentHashes.has(biome.id))
868
867
  .map((biome) => biome.id);
869
- if (silent.length > 0) {
870
- throw new Error(`distribution lock biome(s) ${silent.join(', ')} state no workerImages: a ` +
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"`);
868
+ if (missing.length > 0) {
869
+ throw new Error(`sealDistributionLock: no content hash for biome(s) ${missing.join(', ')}`);
873
870
  }
874
- return exports.DISTRIBUTION_LOCK_SCHEMA_VERSION_LATEST;
871
+ const { unsealedSchema: _unsealedSchema, ...rest } = unsealed;
872
+ return parseDistributionLock({
873
+ ...rest,
874
+ schemaVersion: exports.DISTRIBUTION_LOCK_SCHEMA_VERSION,
875
+ biomes: unsealed.biomes.map((biome) => ({
876
+ ...biome,
877
+ biomeContentHash: contentHashes.get(biome.id),
878
+ })),
879
+ });
880
+ }
881
+ function unsealedProjection(lock) {
882
+ const { schemaVersion: _schemaVersion, ...rest } = lock;
883
+ return {
884
+ unsealedSchema: exports.UNSEALED_DISTRIBUTION_LOCK_SCHEMA,
885
+ ...rest,
886
+ biomes: lock.biomes.map((biome) => {
887
+ const { biomeContentHash: _hash, ...unsealedBiome } = biome;
888
+ return unsealedBiome;
889
+ }),
890
+ };
875
891
  }
876
- function sealDistributionLock(body) {
877
- const schemaVersion = distributionLockSchemaVersionFor(body);
878
- return parseDistributionLock({ ...body, schemaVersion });
892
+ function parseUnsealedDistributionLock(raw) {
893
+ if (isSealedShape(raw)) {
894
+ throw new DistributionLockShapeError('unsealed', 'sealed');
895
+ }
896
+ const result = exports.UnsealedDistributionLockSchema.safeParse(raw);
897
+ if (!result.success) {
898
+ throw new Error(`Invalid unsealed distribution lock: ${result.error.issues
899
+ .map((i) => `[${i.path.join('.')}] ${i.message}`)
900
+ .join('; ')}`);
901
+ }
902
+ return result.data;
879
903
  }
880
904
  function parseDistributionLockWith(schema, raw) {
905
+ if (isUnsealedShape(raw)) {
906
+ throw new DistributionLockShapeError('sealed', 'unsealed');
907
+ }
881
908
  const version = typeof raw === 'object' && raw !== null && 'schemaVersion' in raw
882
909
  ? raw.schemaVersion
883
910
  : undefined;
884
911
  const supported = exports.DISTRIBUTION_LOCK_SCHEMA_VERSIONS.join(', ');
885
912
  if (version === undefined) {
886
- throw new Error(`Invalid distribution.lock.json: missing required schemaVersion; this runtime supports schemaVersion ${supported}. Regenerate the lock with the current distribution builder.`);
913
+ throw new DistributionLockVersionError(`Invalid distribution.lock.json: missing required schemaVersion; this runtime supports schemaVersion ${supported}. Regenerate the lock with the current distribution builder.`);
887
914
  }
888
915
  if (!exports.DISTRIBUTION_LOCK_SCHEMA_VERSIONS.includes(version)) {
889
- throw new Error(`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.`);
916
+ 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
917
  }
891
918
  const result = schema.safeParse(raw);
892
919
  if (!result.success) {