@nakafa/aksara-contracts 0.51.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +207 -152
- package/README.md +13 -10
- package/dist/artifact/integrity.d.ts +22 -10
- package/dist/artifact/integrity.js +16 -2
- package/dist/artifact/limits.d.ts +13 -7
- package/dist/artifact/limits.js +5 -12
- package/dist/artifact/source.d.ts +10 -4
- package/dist/artifact/spec.d.ts +27 -15
- package/dist/artifact/spec.js +7 -8
- package/dist/artifact/verify.d.ts +11 -5
- package/dist/content.d.ts +37 -11
- package/dist/content.js +7 -21
- package/dist/limits.d.ts +2 -2
- package/dist/limits.js +2 -2
- package/dist/release/rollback/spec.d.ts +102 -24
- package/dist/runtime/protected/spec.d.ts +61 -16
- package/dist/runtime/protected/verify.d.ts +11 -5
- package/dist/runtime/spec.d.ts +44 -12
- package/dist/runtime/verify.d.ts +22 -10
- package/dist/signature/trusted.d.ts +4 -1
- package/dist/signature/trusted.js +4 -1
- package/dist/transport/batch.d.ts +34 -8
- package/dist/transport/group.d.ts +51 -12
- package/dist/transport/request.d.ts +94 -32
- package/dist/transport/response.d.ts +122 -32
- package/dist/tree.d.ts +52 -0
- package/dist/tree.js +162 -0
- package/package.json +5 -1
|
@@ -24,12 +24,25 @@ export declare const ProtectedContentRuntimeItemSchema: Schema.Struct<{
|
|
|
24
24
|
readonly keyId: Schema.brand<Schema.String, "@NakafaAI/AksaraSigningKeyId">;
|
|
25
25
|
readonly payload: Schema.Struct<{
|
|
26
26
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
27
|
-
readonly byteLength: Schema.Finite;
|
|
28
|
-
readonly compiledCode: Schema.String;
|
|
29
27
|
readonly compilerConfigHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
30
|
-
readonly compilerVersion: Schema.Literal<"0.
|
|
28
|
+
readonly compilerVersion: Schema.Literal<"0.2.0">;
|
|
31
29
|
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
32
|
-
readonly
|
|
30
|
+
readonly contentTree: Schema.Codec<{
|
|
31
|
+
readonly $node: "element";
|
|
32
|
+
readonly children: readonly import("../../tree.js").ContentTreeChild[];
|
|
33
|
+
readonly name: import("../../tree.js").ContentTreeElementName;
|
|
34
|
+
readonly props: {
|
|
35
|
+
readonly [key: string]: import("../../tree.js").ContentTreeValue;
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
readonly $node: "element";
|
|
39
|
+
readonly children: readonly import("../../tree.js").ContentTreeChild[];
|
|
40
|
+
readonly name: import("../../tree.js").ContentTreeElementName;
|
|
41
|
+
readonly props: {
|
|
42
|
+
readonly [key: string]: import("../../tree.js").ContentTreeValue;
|
|
43
|
+
};
|
|
44
|
+
}, never, never>;
|
|
45
|
+
readonly format: Schema.Literal<"content-tree">;
|
|
33
46
|
readonly mdxCompilerVersion: Schema.Literal<"3.1.1">;
|
|
34
47
|
readonly plainText: Schema.String;
|
|
35
48
|
readonly rawMdx: Schema.String;
|
|
@@ -79,12 +92,25 @@ export declare const ProtectedContentRuntimeFoundSchema: Schema.Struct<{
|
|
|
79
92
|
readonly keyId: Schema.brand<Schema.String, "@NakafaAI/AksaraSigningKeyId">;
|
|
80
93
|
readonly payload: Schema.Struct<{
|
|
81
94
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
82
|
-
readonly byteLength: Schema.Finite;
|
|
83
|
-
readonly compiledCode: Schema.String;
|
|
84
95
|
readonly compilerConfigHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
85
|
-
readonly compilerVersion: Schema.Literal<"0.
|
|
96
|
+
readonly compilerVersion: Schema.Literal<"0.2.0">;
|
|
86
97
|
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
87
|
-
readonly
|
|
98
|
+
readonly contentTree: Schema.Codec<{
|
|
99
|
+
readonly $node: "element";
|
|
100
|
+
readonly children: readonly import("../../tree.js").ContentTreeChild[];
|
|
101
|
+
readonly name: import("../../tree.js").ContentTreeElementName;
|
|
102
|
+
readonly props: {
|
|
103
|
+
readonly [key: string]: import("../../tree.js").ContentTreeValue;
|
|
104
|
+
};
|
|
105
|
+
}, {
|
|
106
|
+
readonly $node: "element";
|
|
107
|
+
readonly children: readonly import("../../tree.js").ContentTreeChild[];
|
|
108
|
+
readonly name: import("../../tree.js").ContentTreeElementName;
|
|
109
|
+
readonly props: {
|
|
110
|
+
readonly [key: string]: import("../../tree.js").ContentTreeValue;
|
|
111
|
+
};
|
|
112
|
+
}, never, never>;
|
|
113
|
+
readonly format: Schema.Literal<"content-tree">;
|
|
88
114
|
readonly mdxCompilerVersion: Schema.Literal<"3.1.1">;
|
|
89
115
|
readonly plainText: Schema.String;
|
|
90
116
|
readonly rawMdx: Schema.String;
|
|
@@ -146,12 +172,25 @@ export declare const ProtectedContentRuntimeResponseSchema: Schema.Union<readonl
|
|
|
146
172
|
readonly keyId: Schema.brand<Schema.String, "@NakafaAI/AksaraSigningKeyId">;
|
|
147
173
|
readonly payload: Schema.Struct<{
|
|
148
174
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
149
|
-
readonly byteLength: Schema.Finite;
|
|
150
|
-
readonly compiledCode: Schema.String;
|
|
151
175
|
readonly compilerConfigHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
152
|
-
readonly compilerVersion: Schema.Literal<"0.
|
|
176
|
+
readonly compilerVersion: Schema.Literal<"0.2.0">;
|
|
153
177
|
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
154
|
-
readonly
|
|
178
|
+
readonly contentTree: Schema.Codec<{
|
|
179
|
+
readonly $node: "element";
|
|
180
|
+
readonly children: readonly import("../../tree.js").ContentTreeChild[];
|
|
181
|
+
readonly name: import("../../tree.js").ContentTreeElementName;
|
|
182
|
+
readonly props: {
|
|
183
|
+
readonly [key: string]: import("../../tree.js").ContentTreeValue;
|
|
184
|
+
};
|
|
185
|
+
}, {
|
|
186
|
+
readonly $node: "element";
|
|
187
|
+
readonly children: readonly import("../../tree.js").ContentTreeChild[];
|
|
188
|
+
readonly name: import("../../tree.js").ContentTreeElementName;
|
|
189
|
+
readonly props: {
|
|
190
|
+
readonly [key: string]: import("../../tree.js").ContentTreeValue;
|
|
191
|
+
};
|
|
192
|
+
}, never, never>;
|
|
193
|
+
readonly format: Schema.Literal<"content-tree">;
|
|
155
194
|
readonly mdxCompilerVersion: Schema.Literal<"3.1.1">;
|
|
156
195
|
readonly plainText: Schema.String;
|
|
157
196
|
readonly rawMdx: Schema.String;
|
|
@@ -228,12 +267,18 @@ export declare const decodeProtectedContentRuntimeResponse: (input: unknown) =>
|
|
|
228
267
|
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
229
268
|
readonly payload: {
|
|
230
269
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
231
|
-
readonly byteLength: number;
|
|
232
|
-
readonly compiledCode: string;
|
|
233
270
|
readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
234
|
-
readonly compilerVersion: "0.
|
|
271
|
+
readonly compilerVersion: "0.2.0";
|
|
235
272
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
236
|
-
readonly
|
|
273
|
+
readonly contentTree: {
|
|
274
|
+
readonly $node: "element";
|
|
275
|
+
readonly children: readonly import("../../tree.js").ContentTreeChild[];
|
|
276
|
+
readonly name: import("../../tree.js").ContentTreeElementName;
|
|
277
|
+
readonly props: {
|
|
278
|
+
readonly [key: string]: import("../../tree.js").ContentTreeValue;
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
readonly format: "content-tree";
|
|
237
282
|
readonly mdxCompilerVersion: "3.1.1";
|
|
238
283
|
readonly plainText: string;
|
|
239
284
|
readonly rawMdx: string;
|
|
@@ -40,12 +40,18 @@ export declare const verifyProtectedContentRuntimeExchange: (input: {
|
|
|
40
40
|
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
41
41
|
readonly payload: {
|
|
42
42
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
43
|
-
readonly byteLength: number;
|
|
44
|
-
readonly compiledCode: string;
|
|
45
43
|
readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
46
|
-
readonly compilerVersion: "0.
|
|
44
|
+
readonly compilerVersion: "0.2.0";
|
|
47
45
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
48
|
-
readonly
|
|
46
|
+
readonly contentTree: {
|
|
47
|
+
readonly $node: "element";
|
|
48
|
+
readonly children: readonly import("../../tree.js").ContentTreeChild[];
|
|
49
|
+
readonly name: import("../../tree.js").ContentTreeElementName;
|
|
50
|
+
readonly props: {
|
|
51
|
+
readonly [key: string]: import("../../tree.js").ContentTreeValue;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
readonly format: "content-tree";
|
|
49
55
|
readonly mdxCompilerVersion: "3.1.1";
|
|
50
56
|
readonly plainText: string;
|
|
51
57
|
readonly rawMdx: string;
|
|
@@ -74,4 +80,4 @@ export declare const verifyProtectedContentRuntimeExchange: (input: {
|
|
|
74
80
|
} | {
|
|
75
81
|
readonly code: "CONTENT_RUNTIME_INTERNAL" | "CONTENT_RUNTIME_INVALID" | "CONTENT_RUNTIME_RESPONSE_TOO_LARGE" | "CONTENT_RUNTIME_UNAUTHORIZED";
|
|
76
82
|
readonly kind: "failure";
|
|
77
|
-
}, import("../../artifact/spec.js").
|
|
83
|
+
}, import("../../artifact/spec.js").ArtifactHashComputationError | import("../../artifact/spec.js").ArtifactHashMismatchError | import("../../artifact/spec.js").ArtifactPayloadFieldByteLimitError | import("../../artifact/spec.js").ArtifactRendererComponentMissingError | import("../../artifact/spec.js").ArtifactRendererDomainUnpublishedError | import("../../artifact/spec.js").ArtifactSourceHashComputationError | import("../../artifact/spec.js").ArtifactSourceHashMismatchError | import("../../artifact/spec.js").ArtifactTreeComponentUnlistedError | import("../../artifact/spec.js").ArtifactVerificationByteLimitError | import("../../artifact/spec.js").ArtifactVerificationDecodeError | ContentRuntimeMismatchError | import("../../errors.js").ContractDecodeError | import("../../signature/spec.js").PublicKeyParseError | import("../../signature/spec.js").PublicKeyTypeError | import("#contracts/renderer/contract").RendererDomainCapabilityMissingError | import("#contracts/renderer/contract").RendererManifestHashComputeError | import("#contracts/renderer/contract").RendererManifestHashMismatchError | import("../../signature/spec.js").SignatureCheckError | import("../../signature/spec.js").SignatureInvalidError | import("../../signature/spec.js").SigningKeyNotFoundError | import("../../signature/spec.js").SigningKeyResolutionError | import("../../tryout/canonical.js").TryoutCanonicalHashError | import("../../tryout/runtime/hash.js").TryoutRuntimeBundleHashComputationError | import("#contracts/tryout/runtime/verify").TryoutRuntimeBundleHashMismatchError | import("#contracts/tryout/runtime/verify").TryoutRuntimeBundleRendererMismatchError | import("#contracts/tryout/runtime/verify").TryoutRuntimeBundleSnapshotMismatchError | import("#contracts/tryout/runtime/verify").TryoutRuntimeBundleVerificationDecodeError, import("../../signature/spec.js").ContentVerificationKeyResolver>;
|
package/dist/runtime/spec.d.ts
CHANGED
|
@@ -17,12 +17,25 @@ export declare const PublicContentRuntimeFoundSchema: Schema.Struct<{
|
|
|
17
17
|
readonly keyId: Schema.brand<Schema.String, "@NakafaAI/AksaraSigningKeyId">;
|
|
18
18
|
readonly payload: Schema.Struct<{
|
|
19
19
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
20
|
-
readonly byteLength: Schema.Finite;
|
|
21
|
-
readonly compiledCode: Schema.String;
|
|
22
20
|
readonly compilerConfigHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
23
|
-
readonly compilerVersion: Schema.Literal<"0.
|
|
21
|
+
readonly compilerVersion: Schema.Literal<"0.2.0">;
|
|
24
22
|
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
25
|
-
readonly
|
|
23
|
+
readonly contentTree: Schema.Codec<{
|
|
24
|
+
readonly $node: "element";
|
|
25
|
+
readonly children: readonly import("../tree.js").ContentTreeChild[];
|
|
26
|
+
readonly name: import("../tree.js").ContentTreeElementName;
|
|
27
|
+
readonly props: {
|
|
28
|
+
readonly [key: string]: import("../tree.js").ContentTreeValue;
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
readonly $node: "element";
|
|
32
|
+
readonly children: readonly import("../tree.js").ContentTreeChild[];
|
|
33
|
+
readonly name: import("../tree.js").ContentTreeElementName;
|
|
34
|
+
readonly props: {
|
|
35
|
+
readonly [key: string]: import("../tree.js").ContentTreeValue;
|
|
36
|
+
};
|
|
37
|
+
}, never, never>;
|
|
38
|
+
readonly format: Schema.Literal<"content-tree">;
|
|
26
39
|
readonly mdxCompilerVersion: Schema.Literal<"3.1.1">;
|
|
27
40
|
readonly plainText: Schema.String;
|
|
28
41
|
readonly rawMdx: Schema.String;
|
|
@@ -204,12 +217,25 @@ export declare const PublicContentRuntimeResponseSchema: Schema.Union<readonly [
|
|
|
204
217
|
readonly keyId: Schema.brand<Schema.String, "@NakafaAI/AksaraSigningKeyId">;
|
|
205
218
|
readonly payload: Schema.Struct<{
|
|
206
219
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
207
|
-
readonly byteLength: Schema.Finite;
|
|
208
|
-
readonly compiledCode: Schema.String;
|
|
209
220
|
readonly compilerConfigHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
210
|
-
readonly compilerVersion: Schema.Literal<"0.
|
|
221
|
+
readonly compilerVersion: Schema.Literal<"0.2.0">;
|
|
211
222
|
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
212
|
-
readonly
|
|
223
|
+
readonly contentTree: Schema.Codec<{
|
|
224
|
+
readonly $node: "element";
|
|
225
|
+
readonly children: readonly import("../tree.js").ContentTreeChild[];
|
|
226
|
+
readonly name: import("../tree.js").ContentTreeElementName;
|
|
227
|
+
readonly props: {
|
|
228
|
+
readonly [key: string]: import("../tree.js").ContentTreeValue;
|
|
229
|
+
};
|
|
230
|
+
}, {
|
|
231
|
+
readonly $node: "element";
|
|
232
|
+
readonly children: readonly import("../tree.js").ContentTreeChild[];
|
|
233
|
+
readonly name: import("../tree.js").ContentTreeElementName;
|
|
234
|
+
readonly props: {
|
|
235
|
+
readonly [key: string]: import("../tree.js").ContentTreeValue;
|
|
236
|
+
};
|
|
237
|
+
}, never, never>;
|
|
238
|
+
readonly format: Schema.Literal<"content-tree">;
|
|
213
239
|
readonly mdxCompilerVersion: Schema.Literal<"3.1.1">;
|
|
214
240
|
readonly plainText: Schema.String;
|
|
215
241
|
readonly rawMdx: Schema.String;
|
|
@@ -402,12 +428,18 @@ export declare const decodePublicContentRuntimeResponse: (input: unknown) => Eff
|
|
|
402
428
|
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
403
429
|
readonly payload: {
|
|
404
430
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
405
|
-
readonly byteLength: number;
|
|
406
|
-
readonly compiledCode: string;
|
|
407
431
|
readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
408
|
-
readonly compilerVersion: "0.
|
|
432
|
+
readonly compilerVersion: "0.2.0";
|
|
409
433
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
410
|
-
readonly
|
|
434
|
+
readonly contentTree: {
|
|
435
|
+
readonly $node: "element";
|
|
436
|
+
readonly children: readonly import("../tree.js").ContentTreeChild[];
|
|
437
|
+
readonly name: import("../tree.js").ContentTreeElementName;
|
|
438
|
+
readonly props: {
|
|
439
|
+
readonly [key: string]: import("../tree.js").ContentTreeValue;
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
readonly format: "content-tree";
|
|
411
443
|
readonly mdxCompilerVersion: "3.1.1";
|
|
412
444
|
readonly plainText: string;
|
|
413
445
|
readonly rawMdx: string;
|
package/dist/runtime/verify.d.ts
CHANGED
|
@@ -15,12 +15,18 @@ export declare const verifyContentRuntimeEvidenceExchange: (input: {
|
|
|
15
15
|
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
16
16
|
readonly payload: {
|
|
17
17
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
18
|
-
readonly byteLength: number;
|
|
19
|
-
readonly compiledCode: string;
|
|
20
18
|
readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
21
|
-
readonly compilerVersion: "0.
|
|
19
|
+
readonly compilerVersion: "0.2.0";
|
|
22
20
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
23
|
-
readonly
|
|
21
|
+
readonly contentTree: {
|
|
22
|
+
readonly $node: "element";
|
|
23
|
+
readonly children: readonly import("../tree.js").ContentTreeChild[];
|
|
24
|
+
readonly name: import("../tree.js").ContentTreeElementName;
|
|
25
|
+
readonly props: {
|
|
26
|
+
readonly [key: string]: import("../tree.js").ContentTreeValue;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly format: "content-tree";
|
|
24
30
|
readonly mdxCompilerVersion: "3.1.1";
|
|
25
31
|
readonly plainText: string;
|
|
26
32
|
readonly rawMdx: string;
|
|
@@ -198,7 +204,7 @@ export declare const verifyContentRuntimeEvidenceExchange: (input: {
|
|
|
198
204
|
} | {
|
|
199
205
|
readonly code: "CONTENT_RUNTIME_INTERNAL" | "CONTENT_RUNTIME_INVALID" | "CONTENT_RUNTIME_RESPONSE_TOO_LARGE" | "CONTENT_RUNTIME_UNAUTHORIZED";
|
|
200
206
|
readonly kind: "failure";
|
|
201
|
-
}, import("../artifact/spec.js").
|
|
207
|
+
}, import("../artifact/spec.js").ArtifactHashComputationError | import("../artifact/spec.js").ArtifactHashMismatchError | import("../artifact/spec.js").ArtifactPayloadFieldByteLimitError | import("../artifact/spec.js").ArtifactRendererComponentMissingError | import("../artifact/spec.js").ArtifactRendererDomainUnpublishedError | import("../artifact/spec.js").ArtifactSourceHashComputationError | import("../artifact/spec.js").ArtifactSourceHashMismatchError | import("../artifact/spec.js").ArtifactTreeComponentUnlistedError | import("../artifact/spec.js").ArtifactVerificationByteLimitError | import("../artifact/spec.js").ArtifactVerificationDecodeError | import("#contracts/projection/hash").ContentProjectionHashError | ContentRuntimeMismatchError | import("../errors.js").ContractDecodeError | import("../signature/spec.js").PublicKeyParseError | import("../signature/spec.js").PublicKeyTypeError | import("#contracts/release/verify").ReleaseBundleVerificationDecodeError | import("../release/hash.js").ReleaseHashComputationError | import("#contracts/release/verify").ReleaseManifestHashMismatchError | import("#contracts/release/verify").ReleaseVerificationDecodeError | import("../renderer/contract.js").RendererDomainCapabilityMissingError | import("../renderer/contract.js").RendererManifestHashComputeError | import("../renderer/contract.js").RendererManifestHashMismatchError | import("../signature/spec.js").SignatureCheckError | import("../signature/spec.js").SignatureInvalidError | import("../signature/spec.js").SigningKeyNotFoundError | import("../signature/spec.js").SigningKeyResolutionError, import("../signature/spec.js").ContentVerificationKeyResolver>;
|
|
202
208
|
/**
|
|
203
209
|
* Verifies independently signed runtime values selected for one exact request.
|
|
204
210
|
*
|
|
@@ -215,12 +221,18 @@ export declare const verifyContentRuntimeExchange: (input: {
|
|
|
215
221
|
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
216
222
|
readonly payload: {
|
|
217
223
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
218
|
-
readonly byteLength: number;
|
|
219
|
-
readonly compiledCode: string;
|
|
220
224
|
readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
221
|
-
readonly compilerVersion: "0.
|
|
225
|
+
readonly compilerVersion: "0.2.0";
|
|
222
226
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
223
|
-
readonly
|
|
227
|
+
readonly contentTree: {
|
|
228
|
+
readonly $node: "element";
|
|
229
|
+
readonly children: readonly import("../tree.js").ContentTreeChild[];
|
|
230
|
+
readonly name: import("../tree.js").ContentTreeElementName;
|
|
231
|
+
readonly props: {
|
|
232
|
+
readonly [key: string]: import("../tree.js").ContentTreeValue;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
readonly format: "content-tree";
|
|
224
236
|
readonly mdxCompilerVersion: "3.1.1";
|
|
225
237
|
readonly plainText: string;
|
|
226
238
|
readonly rawMdx: string;
|
|
@@ -398,4 +410,4 @@ export declare const verifyContentRuntimeExchange: (input: {
|
|
|
398
410
|
} | {
|
|
399
411
|
readonly code: "CONTENT_RUNTIME_INTERNAL" | "CONTENT_RUNTIME_INVALID" | "CONTENT_RUNTIME_RESPONSE_TOO_LARGE" | "CONTENT_RUNTIME_UNAUTHORIZED";
|
|
400
412
|
readonly kind: "failure";
|
|
401
|
-
}, import("../artifact/spec.js").
|
|
413
|
+
}, import("../artifact/spec.js").ArtifactHashComputationError | import("../artifact/spec.js").ArtifactHashMismatchError | import("../artifact/spec.js").ArtifactPayloadFieldByteLimitError | import("../artifact/spec.js").ArtifactRendererComponentMissingError | import("../artifact/spec.js").ArtifactRendererDomainUnpublishedError | import("../artifact/spec.js").ArtifactSourceHashComputationError | import("../artifact/spec.js").ArtifactSourceHashMismatchError | import("../artifact/spec.js").ArtifactTreeComponentUnlistedError | import("../artifact/spec.js").ArtifactVerificationByteLimitError | import("../artifact/spec.js").ArtifactVerificationDecodeError | import("#contracts/projection/hash").ContentProjectionHashError | ContentRuntimeMismatchError | import("../errors.js").ContractDecodeError | import("../signature/spec.js").PublicKeyParseError | import("../signature/spec.js").PublicKeyTypeError | import("#contracts/release/verify").ReleaseBundleVerificationDecodeError | import("../release/hash.js").ReleaseHashComputationError | import("#contracts/release/verify").ReleaseManifestHashMismatchError | import("#contracts/release/verify").ReleaseVerificationDecodeError | import("../renderer/contract.js").RendererDomainCapabilityMissingError | import("../renderer/contract.js").RendererManifestHashComputeError | import("../renderer/contract.js").RendererManifestHashMismatchError | import("../signature/spec.js").SignatureCheckError | import("../signature/spec.js").SignatureInvalidError | import("../signature/spec.js").SigningKeyNotFoundError | import("../signature/spec.js").SigningKeyResolutionError, import("../signature/spec.js").ContentVerificationKeyResolver>;
|
|
@@ -8,7 +8,10 @@ export declare const TrustedKeySchema: Schema.Struct<{
|
|
|
8
8
|
export type TrustedKey = typeof TrustedKeySchema.Type;
|
|
9
9
|
/** Only this reviewed identity may sign newly published content. */
|
|
10
10
|
export declare const ACTIVE_SIGNING_KEY_ID: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* The one production key trusted to verify content. A retired key leaves this
|
|
13
|
+
* list in the change that rotates it.
|
|
14
|
+
*/
|
|
12
15
|
export declare const TRUSTED_CONTENT_KEYS: readonly Readonly<{
|
|
13
16
|
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
14
17
|
readonly publicKeyPem: string;
|
|
@@ -12,7 +12,10 @@ const ACTIVE_CONTENT_KEY = Object.freeze(TrustedKeySchema.make({
|
|
|
12
12
|
}));
|
|
13
13
|
/** Only this reviewed identity may sign newly published content. */
|
|
14
14
|
export const ACTIVE_SIGNING_KEY_ID = ACTIVE_CONTENT_KEY.keyId;
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The one production key trusted to verify content. A retired key leaves this
|
|
17
|
+
* list in the change that rotates it.
|
|
18
|
+
*/
|
|
16
19
|
export const TRUSTED_CONTENT_KEYS = Object.freeze([ACTIVE_CONTENT_KEY]);
|
|
17
20
|
/** Builds an immutable exact-ID resolver from code-owned retained entries. */
|
|
18
21
|
export function makeTrustedKeyResolver(entries) {
|
|
@@ -524,12 +524,25 @@ export declare const StageArtifactBatchInputSchema: Schema.Struct<{
|
|
|
524
524
|
readonly keyId: Schema.brand<Schema.String, "@NakafaAI/AksaraSigningKeyId">;
|
|
525
525
|
readonly payload: Schema.Struct<{
|
|
526
526
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
527
|
-
readonly byteLength: Schema.Finite;
|
|
528
|
-
readonly compiledCode: Schema.String;
|
|
529
527
|
readonly compilerConfigHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
530
|
-
readonly compilerVersion: Schema.Literal<"0.
|
|
528
|
+
readonly compilerVersion: Schema.Literal<"0.2.0">;
|
|
531
529
|
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
532
|
-
readonly
|
|
530
|
+
readonly contentTree: Schema.Codec<{
|
|
531
|
+
readonly $node: "element";
|
|
532
|
+
readonly children: readonly import("../tree.js").ContentTreeChild[];
|
|
533
|
+
readonly name: import("../tree.js").ContentTreeElementName;
|
|
534
|
+
readonly props: {
|
|
535
|
+
readonly [key: string]: import("../tree.js").ContentTreeValue;
|
|
536
|
+
};
|
|
537
|
+
}, {
|
|
538
|
+
readonly $node: "element";
|
|
539
|
+
readonly children: readonly import("../tree.js").ContentTreeChild[];
|
|
540
|
+
readonly name: import("../tree.js").ContentTreeElementName;
|
|
541
|
+
readonly props: {
|
|
542
|
+
readonly [key: string]: import("../tree.js").ContentTreeValue;
|
|
543
|
+
};
|
|
544
|
+
}, never, never>;
|
|
545
|
+
readonly format: Schema.Literal<"content-tree">;
|
|
533
546
|
readonly mdxCompilerVersion: Schema.Literal<"3.1.1">;
|
|
534
547
|
readonly plainText: Schema.String;
|
|
535
548
|
readonly rawMdx: Schema.String;
|
|
@@ -550,12 +563,25 @@ export declare const StageArtifactBatchRequestSchema: Schema.Struct<{
|
|
|
550
563
|
readonly keyId: Schema.brand<Schema.String, "@NakafaAI/AksaraSigningKeyId">;
|
|
551
564
|
readonly payload: Schema.Struct<{
|
|
552
565
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
553
|
-
readonly byteLength: Schema.Finite;
|
|
554
|
-
readonly compiledCode: Schema.String;
|
|
555
566
|
readonly compilerConfigHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
556
|
-
readonly compilerVersion: Schema.Literal<"0.
|
|
567
|
+
readonly compilerVersion: Schema.Literal<"0.2.0">;
|
|
557
568
|
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
558
|
-
readonly
|
|
569
|
+
readonly contentTree: Schema.Codec<{
|
|
570
|
+
readonly $node: "element";
|
|
571
|
+
readonly children: readonly import("../tree.js").ContentTreeChild[];
|
|
572
|
+
readonly name: import("../tree.js").ContentTreeElementName;
|
|
573
|
+
readonly props: {
|
|
574
|
+
readonly [key: string]: import("../tree.js").ContentTreeValue;
|
|
575
|
+
};
|
|
576
|
+
}, {
|
|
577
|
+
readonly $node: "element";
|
|
578
|
+
readonly children: readonly import("../tree.js").ContentTreeChild[];
|
|
579
|
+
readonly name: import("../tree.js").ContentTreeElementName;
|
|
580
|
+
readonly props: {
|
|
581
|
+
readonly [key: string]: import("../tree.js").ContentTreeValue;
|
|
582
|
+
};
|
|
583
|
+
}, never, never>;
|
|
584
|
+
readonly format: Schema.Literal<"content-tree">;
|
|
559
585
|
readonly mdxCompilerVersion: Schema.Literal<"3.1.1">;
|
|
560
586
|
readonly plainText: Schema.String;
|
|
561
587
|
readonly rawMdx: Schema.String;
|
|
@@ -6,12 +6,25 @@ export declare const StageOperationSchema: Schema.Union<readonly [Schema.Struct<
|
|
|
6
6
|
readonly keyId: Schema.brand<Schema.String, "@NakafaAI/AksaraSigningKeyId">;
|
|
7
7
|
readonly payload: Schema.Struct<{
|
|
8
8
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
9
|
-
readonly byteLength: Schema.Finite;
|
|
10
|
-
readonly compiledCode: Schema.String;
|
|
11
9
|
readonly compilerConfigHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
12
|
-
readonly compilerVersion: Schema.Literal<"0.
|
|
10
|
+
readonly compilerVersion: Schema.Literal<"0.2.0">;
|
|
13
11
|
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
14
|
-
readonly
|
|
12
|
+
readonly contentTree: Schema.Codec<{
|
|
13
|
+
readonly $node: "element";
|
|
14
|
+
readonly children: readonly import("../tree.js").ContentTreeChild[];
|
|
15
|
+
readonly name: import("../tree.js").ContentTreeElementName;
|
|
16
|
+
readonly props: {
|
|
17
|
+
readonly [key: string]: import("../tree.js").ContentTreeValue;
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
readonly $node: "element";
|
|
21
|
+
readonly children: readonly import("../tree.js").ContentTreeChild[];
|
|
22
|
+
readonly name: import("../tree.js").ContentTreeElementName;
|
|
23
|
+
readonly props: {
|
|
24
|
+
readonly [key: string]: import("../tree.js").ContentTreeValue;
|
|
25
|
+
};
|
|
26
|
+
}, never, never>;
|
|
27
|
+
readonly format: Schema.Literal<"content-tree">;
|
|
15
28
|
readonly mdxCompilerVersion: Schema.Literal<"3.1.1">;
|
|
16
29
|
readonly plainText: Schema.String;
|
|
17
30
|
readonly rawMdx: Schema.String;
|
|
@@ -810,12 +823,25 @@ export declare const StageGroupInputSchema: Schema.Struct<{
|
|
|
810
823
|
readonly keyId: Schema.brand<Schema.String, "@NakafaAI/AksaraSigningKeyId">;
|
|
811
824
|
readonly payload: Schema.Struct<{
|
|
812
825
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
813
|
-
readonly byteLength: Schema.Finite;
|
|
814
|
-
readonly compiledCode: Schema.String;
|
|
815
826
|
readonly compilerConfigHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
816
|
-
readonly compilerVersion: Schema.Literal<"0.
|
|
827
|
+
readonly compilerVersion: Schema.Literal<"0.2.0">;
|
|
817
828
|
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
818
|
-
readonly
|
|
829
|
+
readonly contentTree: Schema.Codec<{
|
|
830
|
+
readonly $node: "element";
|
|
831
|
+
readonly children: readonly import("../tree.js").ContentTreeChild[];
|
|
832
|
+
readonly name: import("../tree.js").ContentTreeElementName;
|
|
833
|
+
readonly props: {
|
|
834
|
+
readonly [key: string]: import("../tree.js").ContentTreeValue;
|
|
835
|
+
};
|
|
836
|
+
}, {
|
|
837
|
+
readonly $node: "element";
|
|
838
|
+
readonly children: readonly import("../tree.js").ContentTreeChild[];
|
|
839
|
+
readonly name: import("../tree.js").ContentTreeElementName;
|
|
840
|
+
readonly props: {
|
|
841
|
+
readonly [key: string]: import("../tree.js").ContentTreeValue;
|
|
842
|
+
};
|
|
843
|
+
}, never, never>;
|
|
844
|
+
readonly format: Schema.Literal<"content-tree">;
|
|
819
845
|
readonly mdxCompilerVersion: Schema.Literal<"3.1.1">;
|
|
820
846
|
readonly plainText: Schema.String;
|
|
821
847
|
readonly rawMdx: Schema.String;
|
|
@@ -1615,12 +1641,25 @@ export declare const StageGroupRequestSchema: Schema.Struct<{
|
|
|
1615
1641
|
readonly keyId: Schema.brand<Schema.String, "@NakafaAI/AksaraSigningKeyId">;
|
|
1616
1642
|
readonly payload: Schema.Struct<{
|
|
1617
1643
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
1618
|
-
readonly byteLength: Schema.Finite;
|
|
1619
|
-
readonly compiledCode: Schema.String;
|
|
1620
1644
|
readonly compilerConfigHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
1621
|
-
readonly compilerVersion: Schema.Literal<"0.
|
|
1645
|
+
readonly compilerVersion: Schema.Literal<"0.2.0">;
|
|
1622
1646
|
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
1623
|
-
readonly
|
|
1647
|
+
readonly contentTree: Schema.Codec<{
|
|
1648
|
+
readonly $node: "element";
|
|
1649
|
+
readonly children: readonly import("../tree.js").ContentTreeChild[];
|
|
1650
|
+
readonly name: import("../tree.js").ContentTreeElementName;
|
|
1651
|
+
readonly props: {
|
|
1652
|
+
readonly [key: string]: import("../tree.js").ContentTreeValue;
|
|
1653
|
+
};
|
|
1654
|
+
}, {
|
|
1655
|
+
readonly $node: "element";
|
|
1656
|
+
readonly children: readonly import("../tree.js").ContentTreeChild[];
|
|
1657
|
+
readonly name: import("../tree.js").ContentTreeElementName;
|
|
1658
|
+
readonly props: {
|
|
1659
|
+
readonly [key: string]: import("../tree.js").ContentTreeValue;
|
|
1660
|
+
};
|
|
1661
|
+
}, never, never>;
|
|
1662
|
+
readonly format: Schema.Literal<"content-tree">;
|
|
1624
1663
|
readonly mdxCompilerVersion: Schema.Literal<"3.1.1">;
|
|
1625
1664
|
readonly plainText: Schema.String;
|
|
1626
1665
|
readonly rawMdx: Schema.String;
|