@xemahq/contracts 0.75.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/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/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/package.json +4 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"distribution.js","sourceRoot":"","sources":["../../../src/distribution/lib/distribution.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"distribution.js","sourceRoot":"","sources":["../../../src/distribution/lib/distribution.ts"],"names":[],"mappings":";;;AAqXA,8CAUC;AA/XD,6BAAwB;AACxB,uCAQqB;AACrB,6DAGgC;AAChC,mEAGiC;AACjC,qEAGkC;AAClC,qEAKkC;AAClC,iDAGwB;AACxB,6DAK8B;AAYjB,QAAA,yBAAyB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC/C,OAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IAClB,uBAAe;IACf,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;CAClB,CAAmC,CAAC;AAyBxB,QAAA,0BAA0B,GAEnC;IACF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C,CAAC;YACL,CAAC;QACH,CAAC;QACD,OAAO;IACT,CAAC;IACD,IAAI,QAAQ,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;QACjC,OAAO,CAAC,QAAQ,CAAC;YACf,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,OAAO,CAAC;YACf,OAAO,EACL,yGAAyG;SAC5G,CAAC,CAAC;IACL,CAAC;IACD,IAAI,QAAQ,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QACnC,OAAO,CAAC,QAAQ,CAAC;YACf,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,SAAS,CAAC;YACjB,OAAO,EACL,kGAAkG;SACrG,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAuC,CAAC;AAMzC,SAAgB,iBAAiB,CAAC,GAAY;IAC5C,MAAM,MAAM,GAAG,0BAAkB,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IACjD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CACb,mCAAmC,MAAM,CAAC,KAAK,CAAC,MAAM;aACnD,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC;aAChD,IAAI,CAAC,IAAI,CAAC,EAAE,CAChB,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAAC;AACrB,CAAC"}
|
|
@@ -38,7 +38,7 @@ export declare const RuntimeImageSubjectSchema: z.ZodObject<{
|
|
|
38
38
|
repo: z.ZodString;
|
|
39
39
|
path: z.ZodString;
|
|
40
40
|
sourceCommit: z.ZodString;
|
|
41
|
-
sourceManifestHash: z.ZodString
|
|
41
|
+
sourceManifestHash: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").BiomeSourceManifestHash, string>>;
|
|
42
42
|
requiredPlatforms: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
43
43
|
os: z.ZodString;
|
|
44
44
|
architecture: z.ZodString;
|
|
@@ -51,7 +51,7 @@ export declare const RuntimeImageSubjectSchema: z.ZodObject<{
|
|
|
51
51
|
kind: z.ZodLiteral<RuntimeImageOwnerKind.PlatformService>;
|
|
52
52
|
platformService: z.ZodString;
|
|
53
53
|
}, z.core.$strict>], "kind">>>;
|
|
54
|
-
imageDigest: z.ZodOptional<z.ZodString
|
|
54
|
+
imageDigest: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>>;
|
|
55
55
|
}, z.core.$strict>;
|
|
56
56
|
export type RuntimeImageSubject = z.infer<typeof RuntimeImageSubjectSchema>;
|
|
57
57
|
export declare const PlatformServiceImageBindingSchema: z.ZodObject<{
|
|
@@ -65,7 +65,7 @@ export declare const LockedWebBiomeSchema: z.ZodObject<{
|
|
|
65
65
|
repo: z.ZodString;
|
|
66
66
|
path: z.ZodString;
|
|
67
67
|
sourceCommit: z.ZodString;
|
|
68
|
-
sourceManifestHash: z.ZodString
|
|
68
|
+
sourceManifestHash: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").BiomeSourceManifestHash, string>>;
|
|
69
69
|
}, z.core.$strict>;
|
|
70
70
|
export type LockedWebBiome = z.infer<typeof LockedWebBiomeSchema>;
|
|
71
71
|
export declare const MetadataV3ImageLockSchema: z.ZodObject<{
|
|
@@ -77,7 +77,7 @@ export declare const MetadataV3ImageLockSchema: z.ZodObject<{
|
|
|
77
77
|
generatorIdentity: z.ZodLiteral<"xema-distributions/build-runtime-image-source-index.mjs@v1">;
|
|
78
78
|
repositoryUrl: z.ZodLiteral<"https://github.com/xema-dev/xema-kernel-contracts.git">;
|
|
79
79
|
sourceCommit: z.ZodString;
|
|
80
|
-
sourcePaths: z.ZodReadonly<z.
|
|
80
|
+
sourcePaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
81
81
|
contentHashAlgorithm: z.ZodLiteral<import("./kernel-contract-authority").KernelContractContentHashAlgorithm>;
|
|
82
82
|
contentDigest: z.ZodString;
|
|
83
83
|
}, z.core.$strict>;
|
|
@@ -89,7 +89,7 @@ export declare const MetadataV3ImageLockSchema: z.ZodObject<{
|
|
|
89
89
|
repo: z.ZodString;
|
|
90
90
|
path: z.ZodString;
|
|
91
91
|
sourceCommit: z.ZodString;
|
|
92
|
-
sourceManifestHash: z.ZodString
|
|
92
|
+
sourceManifestHash: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").BiomeSourceManifestHash, string>>;
|
|
93
93
|
requiredPlatforms: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
94
94
|
os: z.ZodString;
|
|
95
95
|
architecture: z.ZodString;
|
|
@@ -102,7 +102,7 @@ export declare const MetadataV3ImageLockSchema: z.ZodObject<{
|
|
|
102
102
|
kind: z.ZodLiteral<RuntimeImageOwnerKind.PlatformService>;
|
|
103
103
|
platformService: z.ZodString;
|
|
104
104
|
}, z.core.$strict>], "kind">>>;
|
|
105
|
-
imageDigest: z.ZodOptional<z.ZodString
|
|
105
|
+
imageDigest: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>>;
|
|
106
106
|
}, z.core.$strict>>>;
|
|
107
107
|
platformServiceBindings: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
108
108
|
platformService: z.ZodString;
|
|
@@ -114,7 +114,7 @@ export declare const MetadataV3ImageLockSchema: z.ZodObject<{
|
|
|
114
114
|
repo: z.ZodString;
|
|
115
115
|
path: z.ZodString;
|
|
116
116
|
sourceCommit: z.ZodString;
|
|
117
|
-
sourceManifestHash: z.ZodString
|
|
117
|
+
sourceManifestHash: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").BiomeSourceManifestHash, string>>;
|
|
118
118
|
}, z.core.$strict>>>;
|
|
119
119
|
}, z.core.$strict>;
|
|
120
120
|
export type ImageLock = z.infer<typeof MetadataV3ImageLockSchema>;
|
|
@@ -127,7 +127,7 @@ export declare const ImageLockSchema: z.ZodObject<{
|
|
|
127
127
|
generatorIdentity: z.ZodLiteral<"xema-distributions/build-runtime-image-source-index.mjs@v1">;
|
|
128
128
|
repositoryUrl: z.ZodLiteral<"https://github.com/xema-dev/xema-kernel-contracts.git">;
|
|
129
129
|
sourceCommit: z.ZodString;
|
|
130
|
-
sourcePaths: z.ZodReadonly<z.
|
|
130
|
+
sourcePaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
131
131
|
contentHashAlgorithm: z.ZodLiteral<import("./kernel-contract-authority").KernelContractContentHashAlgorithm>;
|
|
132
132
|
contentDigest: z.ZodString;
|
|
133
133
|
}, z.core.$strict>;
|
|
@@ -139,7 +139,7 @@ export declare const ImageLockSchema: z.ZodObject<{
|
|
|
139
139
|
repo: z.ZodString;
|
|
140
140
|
path: z.ZodString;
|
|
141
141
|
sourceCommit: z.ZodString;
|
|
142
|
-
sourceManifestHash: z.ZodString
|
|
142
|
+
sourceManifestHash: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").BiomeSourceManifestHash, string>>;
|
|
143
143
|
requiredPlatforms: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
144
144
|
os: z.ZodString;
|
|
145
145
|
architecture: z.ZodString;
|
|
@@ -152,7 +152,7 @@ export declare const ImageLockSchema: z.ZodObject<{
|
|
|
152
152
|
kind: z.ZodLiteral<RuntimeImageOwnerKind.PlatformService>;
|
|
153
153
|
platformService: z.ZodString;
|
|
154
154
|
}, z.core.$strict>], "kind">>>;
|
|
155
|
-
imageDigest: z.ZodOptional<z.ZodString
|
|
155
|
+
imageDigest: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>>;
|
|
156
156
|
}, z.core.$strict>>>;
|
|
157
157
|
platformServiceBindings: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
158
158
|
platformService: z.ZodString;
|
|
@@ -164,7 +164,7 @@ export declare const ImageLockSchema: z.ZodObject<{
|
|
|
164
164
|
repo: z.ZodString;
|
|
165
165
|
path: z.ZodString;
|
|
166
166
|
sourceCommit: z.ZodString;
|
|
167
|
-
sourceManifestHash: z.ZodString
|
|
167
|
+
sourceManifestHash: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").BiomeSourceManifestHash, string>>;
|
|
168
168
|
}, z.core.$strict>>>;
|
|
169
169
|
}, z.core.$strict>;
|
|
170
170
|
export declare function parseImageLock(raw: unknown): ImageLock;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-lock.d.ts","sourceRoot":"","sources":["../../../src/distribution/lib/image-lock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"image-lock.d.ts","sourceRoot":"","sources":["../../../src/distribution/lib/image-lock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuDxB,oBAAY,wBAAwB;IAClC,UAAU,+BAA+B;IACzC,YAAY,+BAA+B;IAC3C,YAAY,+BAA+B;IAC3C,YAAY,+BAA+B;CAC5C;AAqCD,oBAAY,uBAAuB;IACjC,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,gBAAgB,sBAAsB;IACtC,eAAe,qBAAqB;CACrC;AAED,oBAAY,qBAAqB;IAC/B,KAAK,UAAU;IACf,eAAe,qBAAqB;CACrC;AAED,eAAO,MAAM,0BAA0B;;;;kBAS5B,CAAC;AAEZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,uBAAuB;;;;;;4BAalC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAOxE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;kBAkD3B,CAAC;AAEZ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAO5E,eAAO,MAAM,iCAAiC;;;;kBAMnC,CAAC;AAEZ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAMF,eAAO,MAAM,oBAAoB;;;;;;kBAQtB,CAAC;AAEZ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA4JlC,CAAC;AAEL,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAClE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAA4B,CAAC;AAEzD,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,SAAS,CAUtD"}
|
|
@@ -4,8 +4,7 @@ exports.ImageLockSchema = exports.MetadataV3ImageLockSchema = exports.LockedWebB
|
|
|
4
4
|
exports.parseImageLock = parseImageLock;
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const kernel_contract_authority_1 = require("./kernel-contract-authority");
|
|
7
|
-
const
|
|
8
|
-
const Sha256DigestSchema = zod_1.z.string().regex(/^sha256:[a-f0-9]{64}$/);
|
|
7
|
+
const content_address_1 = require("../../content-address");
|
|
9
8
|
const GitCommitSchema = zod_1.z.string().regex(/^[a-f0-9]{40}$/);
|
|
10
9
|
const RuntimeIdentitySchema = zod_1.z
|
|
11
10
|
.string()
|
|
@@ -68,14 +67,14 @@ exports.RuntimeImageSubjectSchema = zod_1.z
|
|
|
68
67
|
kind: zod_1.z.nativeEnum(RuntimeImageSubjectKind),
|
|
69
68
|
id: RuntimeIdentitySchema,
|
|
70
69
|
imageRef: zod_1.z.string().min(1),
|
|
71
|
-
contentHash: Sha256HexSchema,
|
|
70
|
+
contentHash: content_address_1.Sha256HexSchema,
|
|
72
71
|
repo: CanonicalRelativePathSchema,
|
|
73
72
|
path: CanonicalRelativePathSchema,
|
|
74
73
|
sourceCommit: GitCommitSchema,
|
|
75
|
-
sourceManifestHash:
|
|
74
|
+
sourceManifestHash: kernel_contract_authority_1.BiomeSourceManifestHashSchema,
|
|
76
75
|
requiredPlatforms: zod_1.z.array(exports.RuntimeImagePlatformSchema).min(1).readonly(),
|
|
77
76
|
owners: zod_1.z.array(exports.RuntimeImageOwnerSchema).min(1).readonly(),
|
|
78
|
-
imageDigest:
|
|
77
|
+
imageDigest: kernel_contract_authority_1.OciDigestSchema.optional(),
|
|
79
78
|
})
|
|
80
79
|
.strict();
|
|
81
80
|
exports.PlatformServiceImageBindingSchema = zod_1.z
|
|
@@ -91,7 +90,7 @@ exports.LockedWebBiomeSchema = zod_1.z
|
|
|
91
90
|
repo: CanonicalRelativePathSchema,
|
|
92
91
|
path: CanonicalRelativePathSchema,
|
|
93
92
|
sourceCommit: GitCommitSchema,
|
|
94
|
-
sourceManifestHash:
|
|
93
|
+
sourceManifestHash: kernel_contract_authority_1.BiomeSourceManifestHashSchema,
|
|
95
94
|
})
|
|
96
95
|
.strict();
|
|
97
96
|
exports.MetadataV3ImageLockSchema = zod_1.z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-lock.js","sourceRoot":"","sources":["../../../src/distribution/lib/image-lock.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"image-lock.js","sourceRoot":"","sources":["../../../src/distribution/lib/image-lock.ts"],"names":[],"mappings":";;;AAyYA,wCAUC;AAnZD,6BAAwB;AACxB,2EAIqC;AACrC,2DAAwD;AAExD,MAAM,eAAe,GAAG,OAA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;QACL,CAAC;IACH,CAAC;IACD,KAAK,MAAM,CAAC,eAAe,EAAE,UAAU,CAAC,IAAI,cAAc,EAAE,CAAC;QAC3D,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,eAAe,CAAC,EAAE,CAAC;YAC3C,MAAM,YAAY,GAAG,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;YAC9C,OAAO,CAAC,QAAQ,CAAC;gBACf,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;gBAC3B,IAAI,EAAE,CAAC,UAAU,EAAE,YAAY,IAAI,CAAC,EAAE,QAAQ,CAAC;gBAC/C,OAAO,EAAE,2BAA2B,eAAe,wCAAwC;aAC5F,CAAC,CAAC;QACL,CAAC;IACH,CAAC;AACH,CAAC,CAAC,CAAC;AAGQ,QAAA,eAAe,GAAG,iCAAyB,CAAC;AAEzD,SAAgB,cAAc,CAAC,GAAY;IACzC,MAAM,MAAM,GAAG,uBAAe,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC9C,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CACb,6BAA6B,MAAM,CAAC,KAAK,CAAC,MAAM;aAC7C,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC;aAC5D,IAAI,CAAC,IAAI,CAAC,EAAE,CAChB,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAAC;AACrB,CAAC"}
|
|
@@ -7,7 +7,7 @@ export declare const InTotoSubjectSchema: z.ZodObject<{
|
|
|
7
7
|
}, z.core.$strict>;
|
|
8
8
|
}, z.core.$strict>;
|
|
9
9
|
export declare const ImageProducerPlatformSchema: z.ZodObject<{
|
|
10
|
-
manifestDigest: z.ZodString
|
|
10
|
+
manifestDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
11
11
|
os: z.ZodString;
|
|
12
12
|
architecture: z.ZodString;
|
|
13
13
|
variant: z.ZodOptional<z.ZodString>;
|
|
@@ -19,17 +19,17 @@ export declare const ImageProducerSourceSchema: z.ZodObject<{
|
|
|
19
19
|
repo: z.ZodString;
|
|
20
20
|
path: z.ZodString;
|
|
21
21
|
sourceCommit: z.ZodString;
|
|
22
|
-
sourceManifestHash: z.ZodString
|
|
22
|
+
sourceManifestHash: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").BiomeSourceManifestHash, string>>;
|
|
23
23
|
sourceHashAlgorithm: z.ZodUnion<readonly [z.ZodLiteral<ImageSourceHashAlgorithm.ImageInputV1>, z.ZodLiteral<ImageSourceHashAlgorithm.ImageInputV2>, z.ZodLiteral<ImageSourceHashAlgorithm.ImageInputV3>]>;
|
|
24
24
|
sourceTreeHash: z.ZodString;
|
|
25
25
|
}, z.core.$strict>;
|
|
26
26
|
export declare const ImageProducerBuildSchema: z.ZodObject<{
|
|
27
27
|
builderId: z.ZodString;
|
|
28
28
|
buildType: z.ZodString;
|
|
29
|
-
buildDefinitionDigest: z.ZodString
|
|
30
|
-
parametersDigest: z.ZodString
|
|
29
|
+
buildDefinitionDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
30
|
+
parametersDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
31
31
|
platforms: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
32
|
-
manifestDigest: z.ZodString
|
|
32
|
+
manifestDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
33
33
|
os: z.ZodString;
|
|
34
34
|
architecture: z.ZodString;
|
|
35
35
|
variant: z.ZodOptional<z.ZodString>;
|
|
@@ -37,15 +37,15 @@ export declare const ImageProducerBuildSchema: z.ZodObject<{
|
|
|
37
37
|
}, z.core.$strict>;
|
|
38
38
|
export declare const ImageProducerArtifactSchema: z.ZodObject<{
|
|
39
39
|
imageRepository: z.ZodString;
|
|
40
|
-
manifestDigest: z.ZodString
|
|
40
|
+
manifestDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
41
41
|
manifestMediaType: z.ZodString;
|
|
42
42
|
sbom: z.ZodObject<{
|
|
43
43
|
predicateType: z.ZodLiteral<"https://spdx.dev/Document">;
|
|
44
|
-
digest: z.ZodString
|
|
44
|
+
digest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
45
45
|
}, z.core.$strict>;
|
|
46
46
|
provenance: z.ZodObject<{
|
|
47
47
|
predicateType: z.ZodLiteral<"https://slsa.dev/provenance/v1">;
|
|
48
|
-
digest: z.ZodString
|
|
48
|
+
digest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
49
49
|
}, z.core.$strict>;
|
|
50
50
|
}, z.core.$strict>;
|
|
51
51
|
export declare const ImageProducerRunSchema: z.ZodObject<{
|
|
@@ -63,7 +63,7 @@ export declare const ImageProducerPredicateSchema: z.ZodObject<{
|
|
|
63
63
|
generatorIdentity: z.ZodLiteral<"xema-distributions/build-runtime-image-source-index.mjs@v1">;
|
|
64
64
|
repositoryUrl: z.ZodLiteral<"https://github.com/xema-dev/xema-kernel-contracts.git">;
|
|
65
65
|
sourceCommit: z.ZodString;
|
|
66
|
-
sourcePaths: z.ZodReadonly<z.
|
|
66
|
+
sourcePaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
67
67
|
contentHashAlgorithm: z.ZodLiteral<import("./kernel-contract-authority").KernelContractContentHashAlgorithm>;
|
|
68
68
|
contentDigest: z.ZodString;
|
|
69
69
|
}, z.core.$strict>;
|
|
@@ -74,17 +74,17 @@ export declare const ImageProducerPredicateSchema: z.ZodObject<{
|
|
|
74
74
|
repo: z.ZodString;
|
|
75
75
|
path: z.ZodString;
|
|
76
76
|
sourceCommit: z.ZodString;
|
|
77
|
-
sourceManifestHash: z.ZodString
|
|
77
|
+
sourceManifestHash: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").BiomeSourceManifestHash, string>>;
|
|
78
78
|
sourceHashAlgorithm: z.ZodUnion<readonly [z.ZodLiteral<ImageSourceHashAlgorithm.ImageInputV1>, z.ZodLiteral<ImageSourceHashAlgorithm.ImageInputV2>, z.ZodLiteral<ImageSourceHashAlgorithm.ImageInputV3>]>;
|
|
79
79
|
sourceTreeHash: z.ZodString;
|
|
80
80
|
}, z.core.$strict>;
|
|
81
81
|
build: z.ZodObject<{
|
|
82
82
|
builderId: z.ZodString;
|
|
83
83
|
buildType: z.ZodString;
|
|
84
|
-
buildDefinitionDigest: z.ZodString
|
|
85
|
-
parametersDigest: z.ZodString
|
|
84
|
+
buildDefinitionDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
85
|
+
parametersDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
86
86
|
platforms: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
87
|
-
manifestDigest: z.ZodString
|
|
87
|
+
manifestDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
88
88
|
os: z.ZodString;
|
|
89
89
|
architecture: z.ZodString;
|
|
90
90
|
variant: z.ZodOptional<z.ZodString>;
|
|
@@ -92,15 +92,15 @@ export declare const ImageProducerPredicateSchema: z.ZodObject<{
|
|
|
92
92
|
}, z.core.$strict>;
|
|
93
93
|
artifact: z.ZodObject<{
|
|
94
94
|
imageRepository: z.ZodString;
|
|
95
|
-
manifestDigest: z.ZodString
|
|
95
|
+
manifestDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
96
96
|
manifestMediaType: z.ZodString;
|
|
97
97
|
sbom: z.ZodObject<{
|
|
98
98
|
predicateType: z.ZodLiteral<"https://spdx.dev/Document">;
|
|
99
|
-
digest: z.ZodString
|
|
99
|
+
digest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
100
100
|
}, z.core.$strict>;
|
|
101
101
|
provenance: z.ZodObject<{
|
|
102
102
|
predicateType: z.ZodLiteral<"https://slsa.dev/provenance/v1">;
|
|
103
|
-
digest: z.ZodString
|
|
103
|
+
digest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
104
104
|
}, z.core.$strict>;
|
|
105
105
|
}, z.core.$strict>;
|
|
106
106
|
producerRun: z.ZodObject<{
|
|
@@ -129,7 +129,7 @@ export declare const ImageProducerStatementSchema: z.ZodObject<{
|
|
|
129
129
|
generatorIdentity: z.ZodLiteral<"xema-distributions/build-runtime-image-source-index.mjs@v1">;
|
|
130
130
|
repositoryUrl: z.ZodLiteral<"https://github.com/xema-dev/xema-kernel-contracts.git">;
|
|
131
131
|
sourceCommit: z.ZodString;
|
|
132
|
-
sourcePaths: z.ZodReadonly<z.
|
|
132
|
+
sourcePaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
133
133
|
contentHashAlgorithm: z.ZodLiteral<import("./kernel-contract-authority").KernelContractContentHashAlgorithm>;
|
|
134
134
|
contentDigest: z.ZodString;
|
|
135
135
|
}, z.core.$strict>;
|
|
@@ -140,17 +140,17 @@ export declare const ImageProducerStatementSchema: z.ZodObject<{
|
|
|
140
140
|
repo: z.ZodString;
|
|
141
141
|
path: z.ZodString;
|
|
142
142
|
sourceCommit: z.ZodString;
|
|
143
|
-
sourceManifestHash: z.ZodString
|
|
143
|
+
sourceManifestHash: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").BiomeSourceManifestHash, string>>;
|
|
144
144
|
sourceHashAlgorithm: z.ZodUnion<readonly [z.ZodLiteral<ImageSourceHashAlgorithm.ImageInputV1>, z.ZodLiteral<ImageSourceHashAlgorithm.ImageInputV2>, z.ZodLiteral<ImageSourceHashAlgorithm.ImageInputV3>]>;
|
|
145
145
|
sourceTreeHash: z.ZodString;
|
|
146
146
|
}, z.core.$strict>;
|
|
147
147
|
build: z.ZodObject<{
|
|
148
148
|
builderId: z.ZodString;
|
|
149
149
|
buildType: z.ZodString;
|
|
150
|
-
buildDefinitionDigest: z.ZodString
|
|
151
|
-
parametersDigest: z.ZodString
|
|
150
|
+
buildDefinitionDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
151
|
+
parametersDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
152
152
|
platforms: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
153
|
-
manifestDigest: z.ZodString
|
|
153
|
+
manifestDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
154
154
|
os: z.ZodString;
|
|
155
155
|
architecture: z.ZodString;
|
|
156
156
|
variant: z.ZodOptional<z.ZodString>;
|
|
@@ -158,15 +158,15 @@ export declare const ImageProducerStatementSchema: z.ZodObject<{
|
|
|
158
158
|
}, z.core.$strict>;
|
|
159
159
|
artifact: z.ZodObject<{
|
|
160
160
|
imageRepository: z.ZodString;
|
|
161
|
-
manifestDigest: z.ZodString
|
|
161
|
+
manifestDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
162
162
|
manifestMediaType: z.ZodString;
|
|
163
163
|
sbom: z.ZodObject<{
|
|
164
164
|
predicateType: z.ZodLiteral<"https://spdx.dev/Document">;
|
|
165
|
-
digest: z.ZodString
|
|
165
|
+
digest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
166
166
|
}, z.core.$strict>;
|
|
167
167
|
provenance: z.ZodObject<{
|
|
168
168
|
predicateType: z.ZodLiteral<"https://slsa.dev/provenance/v1">;
|
|
169
|
-
digest: z.ZodString
|
|
169
|
+
digest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
170
170
|
}, z.core.$strict>;
|
|
171
171
|
}, z.core.$strict>;
|
|
172
172
|
producerRun: z.ZodObject<{
|
|
@@ -185,7 +185,7 @@ export declare const DistributionImagesPredicateSchema: z.ZodObject<{
|
|
|
185
185
|
schemaVersion: z.ZodLiteral<1>;
|
|
186
186
|
distributionId: z.ZodString;
|
|
187
187
|
distributionInputHash: z.ZodString;
|
|
188
|
-
normalizedImageLockDigest: z.ZodString
|
|
188
|
+
normalizedImageLockDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
189
189
|
releaseSequence: z.ZodNumber;
|
|
190
190
|
releaseSourceCommit: z.ZodString;
|
|
191
191
|
runId: z.ZodString;
|
|
@@ -197,9 +197,9 @@ export declare const DistributionImagesPredicateSchema: z.ZodObject<{
|
|
|
197
197
|
subjectKind: z.ZodEnum<typeof RuntimeImageSubjectKind>;
|
|
198
198
|
subjectId: z.ZodString;
|
|
199
199
|
imageRepository: z.ZodString;
|
|
200
|
-
manifestDigest: z.ZodString
|
|
201
|
-
producerStatementDigest: z.ZodString
|
|
202
|
-
producerBundleDigest: z.ZodString
|
|
200
|
+
manifestDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
201
|
+
producerStatementDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
202
|
+
producerBundleDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
203
203
|
}, z.core.$strict>>>;
|
|
204
204
|
}, z.core.$strict>;
|
|
205
205
|
export declare const DistributionImagesStatementSchema: z.ZodObject<{
|
|
@@ -215,7 +215,7 @@ export declare const DistributionImagesStatementSchema: z.ZodObject<{
|
|
|
215
215
|
schemaVersion: z.ZodLiteral<1>;
|
|
216
216
|
distributionId: z.ZodString;
|
|
217
217
|
distributionInputHash: z.ZodString;
|
|
218
|
-
normalizedImageLockDigest: z.ZodString
|
|
218
|
+
normalizedImageLockDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
219
219
|
releaseSequence: z.ZodNumber;
|
|
220
220
|
releaseSourceCommit: z.ZodString;
|
|
221
221
|
runId: z.ZodString;
|
|
@@ -227,9 +227,9 @@ export declare const DistributionImagesStatementSchema: z.ZodObject<{
|
|
|
227
227
|
subjectKind: z.ZodEnum<typeof RuntimeImageSubjectKind>;
|
|
228
228
|
subjectId: z.ZodString;
|
|
229
229
|
imageRepository: z.ZodString;
|
|
230
|
-
manifestDigest: z.ZodString
|
|
231
|
-
producerStatementDigest: z.ZodString
|
|
232
|
-
producerBundleDigest: z.ZodString
|
|
230
|
+
manifestDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
231
|
+
producerStatementDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
232
|
+
producerBundleDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
233
233
|
}, z.core.$strict>>>;
|
|
234
234
|
}, z.core.$strict>;
|
|
235
235
|
}, z.core.$strict>;
|
|
@@ -244,7 +244,7 @@ export declare const ImageDeliveryEntitlementPredicateSchema: z.ZodObject<{
|
|
|
244
244
|
schemaVersion: z.ZodLiteral<1>;
|
|
245
245
|
customerId: z.ZodString;
|
|
246
246
|
distributionId: z.ZodString;
|
|
247
|
-
distributionStatementDigest: z.ZodString
|
|
247
|
+
distributionStatementDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
248
248
|
mode: z.ZodEnum<typeof ImageDeliveryMode>;
|
|
249
249
|
targetRegistry: z.ZodNullable<z.ZodString>;
|
|
250
250
|
nonce: z.ZodString;
|
|
@@ -265,7 +265,7 @@ export declare const ImageDeliveryEntitlementStatementSchema: z.ZodObject<{
|
|
|
265
265
|
schemaVersion: z.ZodLiteral<1>;
|
|
266
266
|
customerId: z.ZodString;
|
|
267
267
|
distributionId: z.ZodString;
|
|
268
|
-
distributionStatementDigest: z.ZodString
|
|
268
|
+
distributionStatementDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
269
269
|
mode: z.ZodEnum<typeof ImageDeliveryMode>;
|
|
270
270
|
targetRegistry: z.ZodNullable<z.ZodString>;
|
|
271
271
|
nonce: z.ZodString;
|
|
@@ -277,9 +277,9 @@ export declare const ImageDeliveryEntitlementStatementSchema: z.ZodObject<{
|
|
|
277
277
|
export type ImageDeliveryEntitlementStatement = z.infer<typeof ImageDeliveryEntitlementStatementSchema>;
|
|
278
278
|
export declare const SigstoreEvidenceDescriptorSchema: z.ZodObject<{
|
|
279
279
|
statementPath: z.ZodString;
|
|
280
|
-
statementDigest: z.ZodString
|
|
280
|
+
statementDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
281
281
|
bundlePath: z.ZodString;
|
|
282
|
-
bundleDigest: z.ZodString
|
|
282
|
+
bundleDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
283
283
|
bundleMediaType: z.ZodLiteral<"application/vnd.dev.sigstore.bundle.v0.3+json">;
|
|
284
284
|
}, z.core.$strict>;
|
|
285
285
|
export declare const DistributionImageEvidenceSetSchema: z.ZodObject<{
|
|
@@ -290,83 +290,97 @@ export declare const DistributionImageEvidenceSetSchema: z.ZodObject<{
|
|
|
290
290
|
subjectId: z.ZodString;
|
|
291
291
|
evidence: z.ZodObject<{
|
|
292
292
|
statementPath: z.ZodString;
|
|
293
|
-
statementDigest: z.ZodString
|
|
293
|
+
statementDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
294
294
|
bundlePath: z.ZodString;
|
|
295
|
-
bundleDigest: z.ZodString
|
|
295
|
+
bundleDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
296
296
|
bundleMediaType: z.ZodLiteral<"application/vnd.dev.sigstore.bundle.v0.3+json">;
|
|
297
297
|
}, z.core.$strict>;
|
|
298
298
|
}, z.core.$strict>>>;
|
|
299
299
|
completeness: z.ZodObject<{
|
|
300
300
|
statementPath: z.ZodString;
|
|
301
|
-
statementDigest: z.ZodString
|
|
301
|
+
statementDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
302
302
|
bundlePath: z.ZodString;
|
|
303
|
-
bundleDigest: z.ZodString
|
|
303
|
+
bundleDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
304
304
|
bundleMediaType: z.ZodLiteral<"application/vnd.dev.sigstore.bundle.v0.3+json">;
|
|
305
305
|
}, z.core.$strict>;
|
|
306
306
|
}, z.core.$strict>;
|
|
307
307
|
export type DistributionImageEvidenceSet = z.infer<typeof DistributionImageEvidenceSetSchema>;
|
|
308
|
+
export declare const EVIDENCE_CHANNELS: readonly ["release", "develop"];
|
|
309
|
+
export type EvidenceChannel = (typeof EVIDENCE_CHANNELS)[number];
|
|
310
|
+
export declare const EVIDENCE_CHANNEL_REFS: {
|
|
311
|
+
readonly release: "refs/heads/main";
|
|
312
|
+
readonly develop: "refs/heads/develop";
|
|
313
|
+
};
|
|
308
314
|
export declare const SigstoreIdentityPolicySchema: z.ZodObject<{
|
|
309
315
|
policyId: z.ZodString;
|
|
316
|
+
channel: z.ZodEnum<{
|
|
317
|
+
release: "release";
|
|
318
|
+
develop: "develop";
|
|
319
|
+
}>;
|
|
310
320
|
predicateTypes: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
311
321
|
certificateIdentity: z.ZodString;
|
|
312
322
|
oidcIssuer: z.ZodString;
|
|
313
|
-
githubWorkflow: z.
|
|
323
|
+
githubWorkflow: z.ZodObject<{
|
|
314
324
|
repository: z.ZodString;
|
|
315
325
|
ref: z.ZodString;
|
|
316
326
|
path: z.ZodString;
|
|
317
|
-
}, z.core.$strict
|
|
327
|
+
}, z.core.$strict>;
|
|
318
328
|
imageProducer: z.ZodOptional<z.ZodObject<{
|
|
319
329
|
builderIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
320
330
|
buildTypes: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
321
|
-
buildDefinitionDigests: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString
|
|
322
|
-
parametersDigests: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString
|
|
331
|
+
buildDefinitionDigests: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>>>>;
|
|
332
|
+
parametersDigests: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>>>>;
|
|
323
333
|
manifestMediaTypes: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
324
334
|
"application/vnd.oci.image.index.v1+json": "application/vnd.oci.image.index.v1+json";
|
|
325
335
|
"application/vnd.oci.image.manifest.v1+json": "application/vnd.oci.image.manifest.v1+json";
|
|
326
336
|
}>>>;
|
|
327
337
|
}, z.core.$strict>>;
|
|
328
|
-
|
|
338
|
+
imageRepositories: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
329
339
|
}, z.core.$strict>;
|
|
330
340
|
export declare const SigstoreOfflineTrustPolicySchema: z.ZodObject<{
|
|
331
341
|
schemaVersion: z.ZodLiteral<1>;
|
|
332
342
|
trustedRootPath: z.ZodString;
|
|
333
|
-
trustedRootDigest: z.ZodString
|
|
343
|
+
trustedRootDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
334
344
|
cosignVersion: z.ZodString;
|
|
335
|
-
trustedCosignBinaryDigests: z.ZodReadonly<z.ZodArray<z.ZodString
|
|
345
|
+
trustedCosignBinaryDigests: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>>>;
|
|
336
346
|
gitVersion: z.ZodString;
|
|
337
|
-
trustedGitBinaryDigests: z.ZodReadonly<z.ZodArray<z.ZodString
|
|
347
|
+
trustedGitBinaryDigests: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>>>;
|
|
338
348
|
maxProducerTtlSeconds: z.ZodNumber;
|
|
339
349
|
maxCompletenessTtlSeconds: z.ZodNumber;
|
|
340
350
|
maxEntitlementTtlSeconds: z.ZodNumber;
|
|
341
351
|
policies: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
342
352
|
policyId: z.ZodString;
|
|
353
|
+
channel: z.ZodEnum<{
|
|
354
|
+
release: "release";
|
|
355
|
+
develop: "develop";
|
|
356
|
+
}>;
|
|
343
357
|
predicateTypes: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
344
358
|
certificateIdentity: z.ZodString;
|
|
345
359
|
oidcIssuer: z.ZodString;
|
|
346
|
-
githubWorkflow: z.
|
|
360
|
+
githubWorkflow: z.ZodObject<{
|
|
347
361
|
repository: z.ZodString;
|
|
348
362
|
ref: z.ZodString;
|
|
349
363
|
path: z.ZodString;
|
|
350
|
-
}, z.core.$strict
|
|
364
|
+
}, z.core.$strict>;
|
|
351
365
|
imageProducer: z.ZodOptional<z.ZodObject<{
|
|
352
366
|
builderIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
353
367
|
buildTypes: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
354
|
-
buildDefinitionDigests: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString
|
|
355
|
-
parametersDigests: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString
|
|
368
|
+
buildDefinitionDigests: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>>>>;
|
|
369
|
+
parametersDigests: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>>>>;
|
|
356
370
|
manifestMediaTypes: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
357
371
|
"application/vnd.oci.image.index.v1+json": "application/vnd.oci.image.index.v1+json";
|
|
358
372
|
"application/vnd.oci.image.manifest.v1+json": "application/vnd.oci.image.manifest.v1+json";
|
|
359
373
|
}>>>;
|
|
360
374
|
}, z.core.$strict>>;
|
|
361
|
-
|
|
375
|
+
imageRepositories: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
362
376
|
}, z.core.$strict>>>;
|
|
363
377
|
}, z.core.$strict>;
|
|
364
378
|
export declare const DistributionImageReplayStateSchema: z.ZodObject<{
|
|
365
379
|
schemaVersion: z.ZodLiteral<1>;
|
|
366
380
|
distributionId: z.ZodString;
|
|
367
|
-
trustPolicyDigest: z.ZodString
|
|
381
|
+
trustPolicyDigest: z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>;
|
|
368
382
|
lastReleaseSequence: z.ZodNumber;
|
|
369
|
-
lastCompletenessStatementDigest: z.ZodNullable<z.ZodString
|
|
383
|
+
lastCompletenessStatementDigest: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("./kernel-contract-authority").OciDigest, string>>>;
|
|
370
384
|
lastCompletenessNonce: z.ZodNullable<z.ZodString>;
|
|
371
385
|
}, z.core.$strict>;
|
|
372
386
|
export type DistributionImageReplayState = z.infer<typeof DistributionImageReplayStateSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-producer-evidence.d.ts","sourceRoot":"","sources":["../../../src/distribution/lib/image-producer-evidence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,wBAAwB,EAExB,uBAAuB,EACxB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"image-producer-evidence.d.ts","sourceRoot":"","sources":["../../../src/distribution/lib/image-producer-evidence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,wBAAwB,EAExB,uBAAuB,EACxB,MAAM,cAAc,CAAC;AA6BtB,eAAO,MAAM,mBAAmB;;;;;kBASrB,CAAC;AAEZ,eAAO,MAAM,2BAA2B;;;;;kBAK7B,CAAC;AAEZ,eAAO,MAAM,yBAAyB;;;;;;;;;;kBA8B3B,CAAC;AAEZ,eAAO,MAAM,wBAAwB;;;;;;;;;;;kBAQ1B,CAAC;AAEZ,eAAO,MAAM,2BAA2B;;;;;;;;;;;;kBAkB7B,CAAC;AAEZ,eAAO,MAAM,sBAAsB;;;;;;;kBASxB,CAAC;AAEZ,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAS9B,CAAC;AAEZ,eAAO,MAAM,6BAA6B,EACxC,+CAAwD,CAAC;AAE3D,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAO9B,CAAC;AAEZ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC;AA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