@nakafa/aksara-contracts 0.40.0 → 0.41.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 +1 -1
- package/dist/projection/digest.d.ts +35 -35
- package/dist/projection/verify.d.ts +87 -87
- package/dist/quran/snapshot/row/hash.d.ts +50 -50
- package/dist/release/result/digest.d.ts +4 -4
- package/dist/release/snapshot/verify.d.ts +21 -21
- package/dist/runtime/verify.d.ts +54 -54
- package/dist/transport/request.d.ts +90 -90
- package/dist/transport/response.d.ts +138 -138
- package/dist/tryout/catalog-hash.d.ts +18 -18
- package/package.json +1 -28
- package/dist/adoption/protected.d.ts +0 -125
- package/dist/adoption/protected.js +0 -70
- package/dist/adoption/public.d.ts +0 -619
- package/dist/adoption/public.js +0 -121
- package/dist/adoption/runtime.d.ts +0 -1297
- package/dist/adoption/runtime.js +0 -40
- package/dist/adoption/schema.d.ts +0 -3794
- package/dist/adoption/schema.js +0 -125
- package/dist/adoption/transport.d.ts +0 -23257
- package/dist/adoption/transport.js +0 -74
- package/dist/adoption/verify.d.ts +0 -457
- package/dist/adoption/verify.js +0 -167
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { RollbackSignedContentReleaseSchema as RetainedRollbackSignedContentReleaseSchema } from "@nakafa/aksara-retained/release";
|
|
2
|
-
import { Effect, Schema } from "effect";
|
|
3
|
-
import { ContentReleaseCurrentSchema, RecoveryLookupSchema, ReleaseVerificationStatusSchema, RollbackPageSchema, SignedContentArtifactSchema, } from "#contracts/adoption/schema";
|
|
4
|
-
import { decodeContract } from "#contracts/decode";
|
|
5
|
-
import { RollbackSignedContentReleaseSchema as CurrentRollbackSignedContentReleaseSchema } from "#contracts/release/spec";
|
|
6
|
-
import { StageArtifactBatchInputSchema as CurrentStageArtifactBatchInputSchema } from "#contracts/transport/batch";
|
|
7
|
-
import { StageGroupInputSchema as CurrentStageGroupInputSchema, StageGroupRequestSchema as CurrentStageGroupRequestSchema, StageOperationSchema as CurrentStageOperationSchema, } from "#contracts/transport/group";
|
|
8
|
-
import { MAX_ARTIFACT_BATCH_COUNT, MAX_STAGE_GROUP_COUNT, } from "#contracts/transport/limits";
|
|
9
|
-
import { ActivateRecoveryRequestSchema as CurrentActivateRecoveryRequestSchema, PublicationRequestSchema as CurrentPublicationRequestSchema, } from "#contracts/transport/request";
|
|
10
|
-
import { PublicationCurrentSuccessSchema as CurrentPublicationCurrentSuccessSchema, PublicationFailureResponseSchema as CurrentPublicationFailureResponseSchema, PublicationRecoverySuccessSchema as CurrentPublicationRecoverySuccessSchema, PublicationRollbackSuccessSchema as CurrentPublicationRollbackSuccessSchema, PublicationSuccessSchema as CurrentPublicationSuccessSchema, VerifyReleaseSuccessSchema as CurrentVerifyReleaseSuccessSchema, } from "#contracts/transport/response";
|
|
11
|
-
/** Only artifact staging expands; new release writes remain current-only. */
|
|
12
|
-
export const StageArtifactBatchInputSchema = CurrentStageArtifactBatchInputSchema.mapFields((fields) => ({
|
|
13
|
-
...fields,
|
|
14
|
-
artifacts: Schema.NonEmptyArray(SignedContentArtifactSchema).check(Schema.isMaxLength(MAX_ARTIFACT_BATCH_COUNT)),
|
|
15
|
-
}));
|
|
16
|
-
export const StageArtifactBatchRequestSchema = StageArtifactBatchInputSchema.mapFields((fields) => ({
|
|
17
|
-
...fields,
|
|
18
|
-
operation: Schema.Literal("stageArtifactBatch"),
|
|
19
|
-
}));
|
|
20
|
-
export const StageOperationSchema = Schema.Union([
|
|
21
|
-
StageArtifactBatchRequestSchema,
|
|
22
|
-
CurrentStageOperationSchema,
|
|
23
|
-
]);
|
|
24
|
-
export const StageGroupInputSchema = CurrentStageGroupInputSchema.mapFields((fields) => ({
|
|
25
|
-
...fields,
|
|
26
|
-
requests: Schema.NonEmptyArray(StageOperationSchema).check(Schema.isMaxLength(MAX_STAGE_GROUP_COUNT)),
|
|
27
|
-
}), { unsafePreserveChecks: true });
|
|
28
|
-
export const StageGroupRequestSchema = CurrentStageGroupRequestSchema.mapFields((fields) => ({ ...fields, requests: StageGroupInputSchema.fields.requests }), { unsafePreserveChecks: true });
|
|
29
|
-
/** Signed inverse in either the current or the retained 0.39.0 encoding. */
|
|
30
|
-
export const RollbackSignedContentReleaseSchema = Schema.Union([
|
|
31
|
-
CurrentRollbackSignedContentReleaseSchema,
|
|
32
|
-
RetainedRollbackSignedContentReleaseSchema,
|
|
33
|
-
]);
|
|
34
|
-
export const ActivateRecoveryRequestSchema = CurrentActivateRecoveryRequestSchema.mapFields((fields) => ({
|
|
35
|
-
...fields,
|
|
36
|
-
release: RollbackSignedContentReleaseSchema,
|
|
37
|
-
}));
|
|
38
|
-
export const PublicationRequestSchema = Schema.Union([
|
|
39
|
-
ActivateRecoveryRequestSchema,
|
|
40
|
-
CurrentPublicationRequestSchema,
|
|
41
|
-
StageArtifactBatchRequestSchema,
|
|
42
|
-
StageGroupRequestSchema,
|
|
43
|
-
]);
|
|
44
|
-
export const PublicationCurrentSuccessSchema = CurrentPublicationCurrentSuccessSchema.mapFields((fields) => ({
|
|
45
|
-
...fields,
|
|
46
|
-
value: ContentReleaseCurrentSchema,
|
|
47
|
-
}));
|
|
48
|
-
export const PublicationRecoverySuccessSchema = CurrentPublicationRecoverySuccessSchema.mapFields((fields) => ({
|
|
49
|
-
...fields,
|
|
50
|
-
value: RecoveryLookupSchema,
|
|
51
|
-
}));
|
|
52
|
-
export const PublicationRollbackSuccessSchema = CurrentPublicationRollbackSuccessSchema.mapFields((fields) => ({
|
|
53
|
-
...fields,
|
|
54
|
-
value: RollbackPageSchema,
|
|
55
|
-
}));
|
|
56
|
-
export const VerifyReleaseSuccessSchema = CurrentVerifyReleaseSuccessSchema.mapFields((fields) => ({
|
|
57
|
-
...fields,
|
|
58
|
-
value: ReleaseVerificationStatusSchema,
|
|
59
|
-
}));
|
|
60
|
-
export const PublicationSuccessSchema = Schema.Union([
|
|
61
|
-
CurrentPublicationSuccessSchema,
|
|
62
|
-
PublicationCurrentSuccessSchema,
|
|
63
|
-
PublicationRecoverySuccessSchema,
|
|
64
|
-
PublicationRollbackSuccessSchema,
|
|
65
|
-
VerifyReleaseSuccessSchema,
|
|
66
|
-
]);
|
|
67
|
-
export const PublicationResponseSchema = Schema.Union([
|
|
68
|
-
PublicationSuccessSchema,
|
|
69
|
-
CurrentPublicationFailureResponseSchema,
|
|
70
|
-
]);
|
|
71
|
-
/** Strictly decodes migration ingress without erasing signed legacy fields. */
|
|
72
|
-
export const decodePublicationRequest = Effect.fn("AksaraContracts.adoption.decodePublicationRequest")((input) => decodeContract(PublicationRequestSchema, "PublicationRequest", input));
|
|
73
|
-
/** Strictly decodes mixed authoritative release state before transport use. */
|
|
74
|
-
export const decodePublicationResponse = Effect.fn("AksaraContracts.adoption.decodePublicationResponse")((input) => decodeContract(PublicationResponseSchema, "PublicationResponse", input));
|
|
@@ -1,457 +0,0 @@
|
|
|
1
|
-
import { Effect } from "effect";
|
|
2
|
-
import { RetainedRendererComponentUnsupportedError } from "#contracts/adoption/schema";
|
|
3
|
-
import { ArtifactCompiledByteLengthMismatchError as CurrentArtifactCompiledByteLengthMismatchError, ArtifactHashComputationError as CurrentArtifactHashComputationError, ArtifactHashMismatchError as CurrentArtifactHashMismatchError, ArtifactPayloadFieldByteLimitError as CurrentArtifactPayloadFieldByteLimitError, ArtifactRendererComponentMissingError as CurrentArtifactRendererComponentMissingError, ArtifactRendererDomainUnpublishedError as CurrentArtifactRendererDomainUnpublishedError, ArtifactSourceHashComputationError as CurrentArtifactSourceHashComputationError, ArtifactSourceHashMismatchError as CurrentArtifactSourceHashMismatchError, ArtifactVerificationByteLimitError as CurrentArtifactVerificationByteLimitError, ArtifactVerificationDecodeError as CurrentArtifactVerificationDecodeError } from "#contracts/artifact/spec";
|
|
4
|
-
import { ContractDecodeError } from "#contracts/errors";
|
|
5
|
-
import { ReleaseHashComputationError } from "#contracts/release/hash";
|
|
6
|
-
import { ReleaseBundleVerificationDecodeError as CurrentReleaseBundleVerificationDecodeError, ReleaseManifestHashMismatchError as CurrentReleaseManifestHashMismatchError, ReleaseVerificationDecodeError as CurrentReleaseVerificationDecodeError } from "#contracts/release/verify";
|
|
7
|
-
import { RendererManifestHashComputeError as CurrentRendererManifestHashComputeError, RendererManifestHashMismatchError as CurrentRendererManifestHashMismatchError } from "#contracts/renderer/contract";
|
|
8
|
-
import { ContentVerificationKeyResolver as CurrentContentVerificationKeyResolver, PublicKeyParseError as CurrentPublicKeyParseError, PublicKeyTypeError as CurrentPublicKeyTypeError, SignatureCheckError as CurrentSignatureCheckError, SignatureInvalidError as CurrentSignatureInvalidError, SigningKeyNotFoundError as CurrentSigningKeyNotFoundError, SigningKeyResolutionError as CurrentSigningKeyResolutionError } from "#contracts/signature/spec";
|
|
9
|
-
import { TryoutRuntimeBundleHashComputationError } from "#contracts/tryout/runtime/hash";
|
|
10
|
-
import { TryoutRuntimeBundleHashMismatchError as CurrentTryoutRuntimeBundleHashMismatchError, TryoutRuntimeBundleRendererMismatchError as CurrentTryoutRuntimeBundleRendererMismatchError, TryoutRuntimeBundleSnapshotMismatchError as CurrentTryoutRuntimeBundleSnapshotMismatchError, TryoutRuntimeBundleVerificationDecodeError as CurrentTryoutRuntimeBundleVerificationDecodeError } from "#contracts/tryout/runtime/verify";
|
|
11
|
-
/** Authenticates original bytes before inspecting any execution capability. */
|
|
12
|
-
export declare const verifySignedContentArtifactIntegrity: (input: unknown) => Effect.Effect<{
|
|
13
|
-
readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
14
|
-
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
15
|
-
readonly payload: {
|
|
16
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
17
|
-
readonly byteLength: number;
|
|
18
|
-
readonly compiledCode: string;
|
|
19
|
-
readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
20
|
-
readonly compilerVersion: "0.1.0";
|
|
21
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
22
|
-
readonly format: "mdx-function-body";
|
|
23
|
-
readonly mdxCompilerVersion: "3.1.1";
|
|
24
|
-
readonly plainText: string;
|
|
25
|
-
readonly rawMdx: string;
|
|
26
|
-
readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
27
|
-
readonly requiredComponents: readonly string[];
|
|
28
|
-
readonly sourceHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
29
|
-
};
|
|
30
|
-
readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
|
|
31
|
-
} | {
|
|
32
|
-
readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
33
|
-
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
34
|
-
readonly payload: {
|
|
35
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
36
|
-
readonly byteLength: number;
|
|
37
|
-
readonly compiledCode: string;
|
|
38
|
-
readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
39
|
-
readonly compilerVersion: "0.1.0";
|
|
40
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
41
|
-
readonly format: "mdx-function-body";
|
|
42
|
-
readonly mdxCompilerVersion: "3.1.1";
|
|
43
|
-
readonly plainText: string;
|
|
44
|
-
readonly rawMdx: string;
|
|
45
|
-
readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
46
|
-
readonly requiredComponents: readonly {
|
|
47
|
-
readonly name: string;
|
|
48
|
-
readonly version: number;
|
|
49
|
-
}[];
|
|
50
|
-
readonly sourceHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
51
|
-
};
|
|
52
|
-
readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
|
|
53
|
-
}, CurrentArtifactCompiledByteLengthMismatchError | CurrentArtifactHashComputationError | CurrentArtifactHashMismatchError | CurrentArtifactPayloadFieldByteLimitError | CurrentArtifactSourceHashComputationError | CurrentArtifactSourceHashMismatchError | CurrentArtifactVerificationByteLimitError | CurrentArtifactVerificationDecodeError | ContractDecodeError | CurrentPublicKeyParseError | CurrentPublicKeyTypeError | ReleaseHashComputationError | CurrentReleaseManifestHashMismatchError | CurrentReleaseVerificationDecodeError | CurrentRendererManifestHashComputeError | CurrentRendererManifestHashMismatchError | CurrentSignatureCheckError | CurrentSignatureInvalidError | CurrentSigningKeyNotFoundError | CurrentSigningKeyResolutionError | TryoutRuntimeBundleHashComputationError | CurrentTryoutRuntimeBundleHashMismatchError | CurrentTryoutRuntimeBundleRendererMismatchError | CurrentTryoutRuntimeBundleSnapshotMismatchError | CurrentTryoutRuntimeBundleVerificationDecodeError, CurrentContentVerificationKeyResolver>;
|
|
54
|
-
/** Selects unsigned execution names only after the caller authenticates bytes. */
|
|
55
|
-
export declare const selectVerifiedArtifactRenderer: (artifact: {
|
|
56
|
-
readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
57
|
-
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
58
|
-
readonly payload: {
|
|
59
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
60
|
-
readonly byteLength: number;
|
|
61
|
-
readonly compiledCode: string;
|
|
62
|
-
readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
63
|
-
readonly compilerVersion: "0.1.0";
|
|
64
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
65
|
-
readonly format: "mdx-function-body";
|
|
66
|
-
readonly mdxCompilerVersion: "3.1.1";
|
|
67
|
-
readonly plainText: string;
|
|
68
|
-
readonly rawMdx: string;
|
|
69
|
-
readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
70
|
-
readonly requiredComponents: readonly string[];
|
|
71
|
-
readonly sourceHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
72
|
-
};
|
|
73
|
-
readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
|
|
74
|
-
} | {
|
|
75
|
-
readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
76
|
-
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
77
|
-
readonly payload: {
|
|
78
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
79
|
-
readonly byteLength: number;
|
|
80
|
-
readonly compiledCode: string;
|
|
81
|
-
readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
82
|
-
readonly compilerVersion: "0.1.0";
|
|
83
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
84
|
-
readonly format: "mdx-function-body";
|
|
85
|
-
readonly mdxCompilerVersion: "3.1.1";
|
|
86
|
-
readonly plainText: string;
|
|
87
|
-
readonly rawMdx: string;
|
|
88
|
-
readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
89
|
-
readonly requiredComponents: readonly {
|
|
90
|
-
readonly name: string;
|
|
91
|
-
readonly version: number;
|
|
92
|
-
}[];
|
|
93
|
-
readonly sourceHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
94
|
-
};
|
|
95
|
-
readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
|
|
96
|
-
}) => Effect.Effect<{
|
|
97
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
98
|
-
readonly byteLength: number;
|
|
99
|
-
readonly compiledCode: string;
|
|
100
|
-
readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
101
|
-
readonly compilerVersion: "0.1.0";
|
|
102
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
103
|
-
readonly format: "mdx-function-body";
|
|
104
|
-
readonly mdxCompilerVersion: "3.1.1";
|
|
105
|
-
readonly plainText: string;
|
|
106
|
-
readonly rawMdx: string;
|
|
107
|
-
readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
108
|
-
readonly requiredComponents: readonly string[];
|
|
109
|
-
readonly sourceHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
110
|
-
} | {
|
|
111
|
-
contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
112
|
-
rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
113
|
-
requiredComponents: string[];
|
|
114
|
-
}, RetainedRendererComponentUnsupportedError, never>;
|
|
115
|
-
/** Verifies each renderer with its exact published canonicalizer. */
|
|
116
|
-
export declare const validateRendererManifestHash: (input: unknown) => Effect.Effect<{
|
|
117
|
-
readonly base: readonly string[];
|
|
118
|
-
readonly domains: readonly {
|
|
119
|
-
readonly components: readonly string[];
|
|
120
|
-
readonly name: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
121
|
-
}[];
|
|
122
|
-
readonly format: "nakafa-mdx-renderer";
|
|
123
|
-
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
124
|
-
readonly publishedDomains: readonly ("ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math")[];
|
|
125
|
-
} | {
|
|
126
|
-
readonly base: {
|
|
127
|
-
readonly authoringComponents: readonly {
|
|
128
|
-
readonly name: string;
|
|
129
|
-
readonly version: number;
|
|
130
|
-
}[];
|
|
131
|
-
readonly supportedComponents: readonly {
|
|
132
|
-
readonly name: string;
|
|
133
|
-
readonly version: number;
|
|
134
|
-
}[];
|
|
135
|
-
};
|
|
136
|
-
readonly domains: readonly {
|
|
137
|
-
readonly authoringComponents: readonly {
|
|
138
|
-
readonly name: string;
|
|
139
|
-
readonly version: number;
|
|
140
|
-
}[];
|
|
141
|
-
readonly name: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
142
|
-
readonly supportedComponents: readonly {
|
|
143
|
-
readonly name: string;
|
|
144
|
-
readonly version: number;
|
|
145
|
-
}[];
|
|
146
|
-
}[];
|
|
147
|
-
readonly format: "nakafa-mdx-renderer-v1";
|
|
148
|
-
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
149
|
-
readonly publishedDomains: readonly ("ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math")[];
|
|
150
|
-
readonly rendererContractVersion: "1.0.0";
|
|
151
|
-
}, CurrentArtifactCompiledByteLengthMismatchError | CurrentArtifactHashComputationError | CurrentArtifactHashMismatchError | CurrentArtifactPayloadFieldByteLimitError | CurrentArtifactSourceHashComputationError | CurrentArtifactSourceHashMismatchError | CurrentArtifactVerificationByteLimitError | CurrentArtifactVerificationDecodeError | ContractDecodeError | CurrentPublicKeyParseError | CurrentPublicKeyTypeError | ReleaseHashComputationError | CurrentReleaseManifestHashMismatchError | CurrentReleaseVerificationDecodeError | CurrentRendererManifestHashComputeError | CurrentRendererManifestHashMismatchError | CurrentSignatureCheckError | CurrentSignatureInvalidError | CurrentSigningKeyNotFoundError | CurrentSigningKeyResolutionError | TryoutRuntimeBundleHashComputationError | CurrentTryoutRuntimeBundleHashMismatchError | CurrentTryoutRuntimeBundleRendererMismatchError | CurrentTryoutRuntimeBundleSnapshotMismatchError | CurrentTryoutRuntimeBundleVerificationDecodeError, never>;
|
|
152
|
-
/** Verifies an independently signed artifact against an authenticated renderer. */
|
|
153
|
-
export declare const verifySignedContentArtifact: (input: unknown) => Effect.Effect<{
|
|
154
|
-
readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
155
|
-
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
156
|
-
readonly payload: {
|
|
157
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
158
|
-
readonly byteLength: number;
|
|
159
|
-
readonly compiledCode: string;
|
|
160
|
-
readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
161
|
-
readonly compilerVersion: "0.1.0";
|
|
162
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
163
|
-
readonly format: "mdx-function-body";
|
|
164
|
-
readonly mdxCompilerVersion: "3.1.1";
|
|
165
|
-
readonly plainText: string;
|
|
166
|
-
readonly rawMdx: string;
|
|
167
|
-
readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
168
|
-
readonly requiredComponents: readonly string[];
|
|
169
|
-
readonly sourceHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
170
|
-
};
|
|
171
|
-
readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
|
|
172
|
-
} | {
|
|
173
|
-
readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
174
|
-
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
175
|
-
readonly payload: {
|
|
176
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
177
|
-
readonly byteLength: number;
|
|
178
|
-
readonly compiledCode: string;
|
|
179
|
-
readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
180
|
-
readonly compilerVersion: "0.1.0";
|
|
181
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
182
|
-
readonly format: "mdx-function-body";
|
|
183
|
-
readonly mdxCompilerVersion: "3.1.1";
|
|
184
|
-
readonly plainText: string;
|
|
185
|
-
readonly rawMdx: string;
|
|
186
|
-
readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
187
|
-
readonly requiredComponents: readonly {
|
|
188
|
-
readonly name: string;
|
|
189
|
-
readonly version: number;
|
|
190
|
-
}[];
|
|
191
|
-
readonly sourceHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
192
|
-
};
|
|
193
|
-
readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
|
|
194
|
-
}, CurrentArtifactCompiledByteLengthMismatchError | CurrentArtifactHashComputationError | CurrentArtifactHashMismatchError | CurrentArtifactPayloadFieldByteLimitError | CurrentArtifactRendererComponentMissingError | CurrentArtifactRendererDomainUnpublishedError | CurrentArtifactSourceHashComputationError | CurrentArtifactSourceHashMismatchError | CurrentArtifactVerificationByteLimitError | CurrentArtifactVerificationDecodeError | ContractDecodeError | CurrentPublicKeyParseError | CurrentPublicKeyTypeError | ReleaseHashComputationError | CurrentReleaseManifestHashMismatchError | CurrentReleaseVerificationDecodeError | CurrentRendererManifestHashComputeError | CurrentRendererManifestHashMismatchError | RetainedRendererComponentUnsupportedError | CurrentSignatureCheckError | CurrentSignatureInvalidError | CurrentSigningKeyNotFoundError | CurrentSigningKeyResolutionError | TryoutRuntimeBundleHashComputationError | CurrentTryoutRuntimeBundleHashMismatchError | CurrentTryoutRuntimeBundleRendererMismatchError | CurrentTryoutRuntimeBundleSnapshotMismatchError | CurrentTryoutRuntimeBundleVerificationDecodeError, CurrentContentVerificationKeyResolver>;
|
|
195
|
-
/** Authenticates old and current release envelopes without rewriting manifests. */
|
|
196
|
-
export declare const verifySignedContentRelease: (input: unknown) => Effect.Effect<{
|
|
197
|
-
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
198
|
-
readonly manifest: {
|
|
199
|
-
readonly baseActiveAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]] | null;
|
|
200
|
-
readonly baseManifestHash: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
201
|
-
readonly baseReleaseId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">) | null;
|
|
202
|
-
readonly baseResultCount: number;
|
|
203
|
-
readonly baseResultDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
204
|
-
readonly deleteCount: number;
|
|
205
|
-
readonly itemCount: number;
|
|
206
|
-
readonly itemsDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
207
|
-
readonly origin: {
|
|
208
|
-
readonly kind: "git";
|
|
209
|
-
readonly sha: string & import("effect/Brand").Brand<"@NakafaAI/AksaraGitCommitSha">;
|
|
210
|
-
} | {
|
|
211
|
-
readonly kind: "rollback";
|
|
212
|
-
readonly releaseId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">;
|
|
213
|
-
};
|
|
214
|
-
readonly projectionCount: number;
|
|
215
|
-
readonly projectionDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
216
|
-
readonly releaseId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">;
|
|
217
|
-
readonly rendererManifestHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
218
|
-
readonly resultCount: number;
|
|
219
|
-
readonly resultDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
220
|
-
readonly rollbackCount: number;
|
|
221
|
-
readonly rollbackDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
222
|
-
readonly routeCount: number;
|
|
223
|
-
readonly routeDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
224
|
-
readonly scope: {
|
|
225
|
-
readonly families: readonly ("article" | "material" | "page" | "question")[];
|
|
226
|
-
readonly snapshots: readonly ("program" | "quran" | "tryout")[];
|
|
227
|
-
};
|
|
228
|
-
readonly snapshots: {
|
|
229
|
-
readonly program: {
|
|
230
|
-
readonly baseSnapshotId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
231
|
-
readonly mode: "inherit" | "replace" | "restore";
|
|
232
|
-
readonly resultSnapshotId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
233
|
-
readonly rowCount: number;
|
|
234
|
-
readonly rowDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
235
|
-
};
|
|
236
|
-
readonly quran: {
|
|
237
|
-
readonly baseSnapshotId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
238
|
-
readonly mode: "inherit" | "replace" | "restore";
|
|
239
|
-
readonly resultSnapshotId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
240
|
-
readonly rowCount: number;
|
|
241
|
-
readonly rowDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
242
|
-
};
|
|
243
|
-
readonly tryout: {
|
|
244
|
-
readonly baseSnapshotId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
245
|
-
readonly mode: "inherit" | "replace" | "restore";
|
|
246
|
-
readonly resultSnapshotId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
247
|
-
readonly rowCount: number;
|
|
248
|
-
readonly rowDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
249
|
-
};
|
|
250
|
-
};
|
|
251
|
-
readonly upsertCount: number;
|
|
252
|
-
readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
|
|
253
|
-
readonly format: "localized-content-release";
|
|
254
|
-
};
|
|
255
|
-
readonly manifestHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
256
|
-
readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
|
|
257
|
-
}, CurrentArtifactCompiledByteLengthMismatchError | CurrentArtifactHashComputationError | CurrentArtifactHashMismatchError | CurrentArtifactPayloadFieldByteLimitError | CurrentArtifactSourceHashComputationError | CurrentArtifactSourceHashMismatchError | CurrentArtifactVerificationByteLimitError | CurrentArtifactVerificationDecodeError | ContractDecodeError | CurrentPublicKeyParseError | CurrentPublicKeyTypeError | ReleaseHashComputationError | CurrentReleaseManifestHashMismatchError | CurrentReleaseVerificationDecodeError | CurrentRendererManifestHashComputeError | CurrentRendererManifestHashMismatchError | CurrentSignatureCheckError | CurrentSignatureInvalidError | CurrentSigningKeyNotFoundError | CurrentSigningKeyResolutionError | TryoutRuntimeBundleHashComputationError | CurrentTryoutRuntimeBundleHashMismatchError | CurrentTryoutRuntimeBundleRendererMismatchError | CurrentTryoutRuntimeBundleSnapshotMismatchError | CurrentTryoutRuntimeBundleVerificationDecodeError, CurrentContentVerificationKeyResolver>;
|
|
258
|
-
/** Authenticates release and renderer independently, retaining exact hash binding. */
|
|
259
|
-
export declare const verifyContentReleaseBundle: (input: unknown) => Effect.Effect<{
|
|
260
|
-
readonly release: {
|
|
261
|
-
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
262
|
-
readonly manifest: {
|
|
263
|
-
readonly baseActiveAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]] | null;
|
|
264
|
-
readonly baseManifestHash: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
265
|
-
readonly baseReleaseId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">) | null;
|
|
266
|
-
readonly baseResultCount: number;
|
|
267
|
-
readonly baseResultDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
268
|
-
readonly deleteCount: number;
|
|
269
|
-
readonly itemCount: number;
|
|
270
|
-
readonly itemsDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
271
|
-
readonly origin: {
|
|
272
|
-
readonly kind: "git";
|
|
273
|
-
readonly sha: string & import("effect/Brand").Brand<"@NakafaAI/AksaraGitCommitSha">;
|
|
274
|
-
} | {
|
|
275
|
-
readonly kind: "rollback";
|
|
276
|
-
readonly releaseId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">;
|
|
277
|
-
};
|
|
278
|
-
readonly projectionCount: number;
|
|
279
|
-
readonly projectionDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
280
|
-
readonly releaseId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">;
|
|
281
|
-
readonly rendererManifestHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
282
|
-
readonly resultCount: number;
|
|
283
|
-
readonly resultDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
284
|
-
readonly rollbackCount: number;
|
|
285
|
-
readonly rollbackDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
286
|
-
readonly routeCount: number;
|
|
287
|
-
readonly routeDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
288
|
-
readonly scope: {
|
|
289
|
-
readonly families: readonly ("article" | "material" | "page" | "question")[];
|
|
290
|
-
readonly snapshots: readonly ("program" | "quran" | "tryout")[];
|
|
291
|
-
};
|
|
292
|
-
readonly snapshots: {
|
|
293
|
-
readonly program: {
|
|
294
|
-
readonly baseSnapshotId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
295
|
-
readonly mode: "inherit" | "replace" | "restore";
|
|
296
|
-
readonly resultSnapshotId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
297
|
-
readonly rowCount: number;
|
|
298
|
-
readonly rowDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
299
|
-
};
|
|
300
|
-
readonly quran: {
|
|
301
|
-
readonly baseSnapshotId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
302
|
-
readonly mode: "inherit" | "replace" | "restore";
|
|
303
|
-
readonly resultSnapshotId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
304
|
-
readonly rowCount: number;
|
|
305
|
-
readonly rowDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
306
|
-
};
|
|
307
|
-
readonly tryout: {
|
|
308
|
-
readonly baseSnapshotId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
309
|
-
readonly mode: "inherit" | "replace" | "restore";
|
|
310
|
-
readonly resultSnapshotId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
311
|
-
readonly rowCount: number;
|
|
312
|
-
readonly rowDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
|
-
readonly upsertCount: number;
|
|
316
|
-
readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
|
|
317
|
-
readonly format: "localized-content-release";
|
|
318
|
-
};
|
|
319
|
-
readonly manifestHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
320
|
-
readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
|
|
321
|
-
};
|
|
322
|
-
readonly rendererManifest: {
|
|
323
|
-
readonly base: readonly string[];
|
|
324
|
-
readonly domains: readonly {
|
|
325
|
-
readonly components: readonly string[];
|
|
326
|
-
readonly name: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
327
|
-
}[];
|
|
328
|
-
readonly format: "nakafa-mdx-renderer";
|
|
329
|
-
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
330
|
-
readonly publishedDomains: readonly ("ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math")[];
|
|
331
|
-
};
|
|
332
|
-
} | {
|
|
333
|
-
readonly release: {
|
|
334
|
-
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
335
|
-
readonly manifest: {
|
|
336
|
-
readonly baseActiveAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]] | null;
|
|
337
|
-
readonly baseManifestHash: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
338
|
-
readonly baseReleaseId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">) | null;
|
|
339
|
-
readonly baseResultCount: number;
|
|
340
|
-
readonly baseResultDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
341
|
-
readonly deleteCount: number;
|
|
342
|
-
readonly itemCount: number;
|
|
343
|
-
readonly itemsDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
344
|
-
readonly origin: {
|
|
345
|
-
readonly kind: "git";
|
|
346
|
-
readonly sha: string & import("effect/Brand").Brand<"@NakafaAI/AksaraGitCommitSha">;
|
|
347
|
-
} | {
|
|
348
|
-
readonly kind: "rollback";
|
|
349
|
-
readonly releaseId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">;
|
|
350
|
-
};
|
|
351
|
-
readonly projectionCount: number;
|
|
352
|
-
readonly projectionDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
353
|
-
readonly releaseId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">;
|
|
354
|
-
readonly rendererContractVersion: "1.0.0";
|
|
355
|
-
readonly rendererManifestHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
356
|
-
readonly resultCount: number;
|
|
357
|
-
readonly resultDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
358
|
-
readonly rollbackCount: number;
|
|
359
|
-
readonly rollbackDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
360
|
-
readonly routeCount: number;
|
|
361
|
-
readonly routeDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
362
|
-
readonly scope: {
|
|
363
|
-
readonly families: readonly ("article" | "material" | "page" | "question")[];
|
|
364
|
-
readonly snapshots: readonly ("program" | "quran" | "tryout")[];
|
|
365
|
-
};
|
|
366
|
-
readonly snapshots: {
|
|
367
|
-
readonly program: {
|
|
368
|
-
readonly baseSnapshotId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
369
|
-
readonly mode: "inherit" | "replace" | "restore";
|
|
370
|
-
readonly resultSnapshotId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
371
|
-
readonly rowCount: number;
|
|
372
|
-
readonly rowDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
373
|
-
};
|
|
374
|
-
readonly quran: {
|
|
375
|
-
readonly baseSnapshotId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
376
|
-
readonly mode: "inherit" | "replace" | "restore";
|
|
377
|
-
readonly resultSnapshotId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
378
|
-
readonly rowCount: number;
|
|
379
|
-
readonly rowDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
380
|
-
};
|
|
381
|
-
readonly tryout: {
|
|
382
|
-
readonly baseSnapshotId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
383
|
-
readonly mode: "inherit" | "replace" | "restore";
|
|
384
|
-
readonly resultSnapshotId: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">) | null;
|
|
385
|
-
readonly rowCount: number;
|
|
386
|
-
readonly rowDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
387
|
-
};
|
|
388
|
-
};
|
|
389
|
-
readonly upsertCount: number;
|
|
390
|
-
readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
|
|
391
|
-
readonly format: "localized-content-release";
|
|
392
|
-
};
|
|
393
|
-
readonly manifestHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
394
|
-
readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
|
|
395
|
-
};
|
|
396
|
-
readonly rendererManifest: {
|
|
397
|
-
readonly base: {
|
|
398
|
-
readonly authoringComponents: readonly {
|
|
399
|
-
readonly name: string;
|
|
400
|
-
readonly version: number;
|
|
401
|
-
}[];
|
|
402
|
-
readonly supportedComponents: readonly {
|
|
403
|
-
readonly name: string;
|
|
404
|
-
readonly version: number;
|
|
405
|
-
}[];
|
|
406
|
-
};
|
|
407
|
-
readonly domains: readonly {
|
|
408
|
-
readonly authoringComponents: readonly {
|
|
409
|
-
readonly name: string;
|
|
410
|
-
readonly version: number;
|
|
411
|
-
}[];
|
|
412
|
-
readonly name: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
413
|
-
readonly supportedComponents: readonly {
|
|
414
|
-
readonly name: string;
|
|
415
|
-
readonly version: number;
|
|
416
|
-
}[];
|
|
417
|
-
}[];
|
|
418
|
-
readonly format: "nakafa-mdx-renderer-v1";
|
|
419
|
-
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
420
|
-
readonly publishedDomains: readonly ("ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math")[];
|
|
421
|
-
readonly rendererContractVersion: "1.0.0";
|
|
422
|
-
};
|
|
423
|
-
}, CurrentArtifactCompiledByteLengthMismatchError | CurrentArtifactHashComputationError | CurrentArtifactHashMismatchError | CurrentArtifactPayloadFieldByteLimitError | CurrentArtifactSourceHashComputationError | CurrentArtifactSourceHashMismatchError | CurrentArtifactVerificationByteLimitError | CurrentArtifactVerificationDecodeError | ContractDecodeError | CurrentPublicKeyParseError | CurrentPublicKeyTypeError | CurrentReleaseBundleVerificationDecodeError | ReleaseHashComputationError | CurrentReleaseManifestHashMismatchError | CurrentReleaseVerificationDecodeError | CurrentRendererManifestHashComputeError | CurrentRendererManifestHashMismatchError | CurrentSignatureCheckError | CurrentSignatureInvalidError | CurrentSigningKeyNotFoundError | CurrentSigningKeyResolutionError | TryoutRuntimeBundleHashComputationError | CurrentTryoutRuntimeBundleHashMismatchError | CurrentTryoutRuntimeBundleRendererMismatchError | CurrentTryoutRuntimeBundleSnapshotMismatchError | CurrentTryoutRuntimeBundleVerificationDecodeError, CurrentContentVerificationKeyResolver>;
|
|
424
|
-
/** Authenticates a renderer-bound inverse from either encoding before recovery. */
|
|
425
|
-
export declare const verifyRollbackContentReleaseBundle: (input: unknown) => Effect.Effect<import("../release/lifecycle.js").RollbackContentReleaseBundle | import("@nakafa/aksara-retained/release/lifecycle").RollbackContentReleaseBundle, CurrentArtifactCompiledByteLengthMismatchError | CurrentArtifactHashComputationError | CurrentArtifactHashMismatchError | CurrentArtifactPayloadFieldByteLimitError | CurrentArtifactSourceHashComputationError | CurrentArtifactSourceHashMismatchError | CurrentArtifactVerificationByteLimitError | CurrentArtifactVerificationDecodeError | ContractDecodeError | CurrentPublicKeyParseError | CurrentPublicKeyTypeError | CurrentReleaseBundleVerificationDecodeError | ReleaseHashComputationError | CurrentReleaseManifestHashMismatchError | CurrentReleaseVerificationDecodeError | CurrentRendererManifestHashComputeError | CurrentRendererManifestHashMismatchError | CurrentSignatureCheckError | CurrentSignatureInvalidError | CurrentSigningKeyNotFoundError | CurrentSigningKeyResolutionError | TryoutRuntimeBundleHashComputationError | CurrentTryoutRuntimeBundleHashMismatchError | CurrentTryoutRuntimeBundleRendererMismatchError | CurrentTryoutRuntimeBundleSnapshotMismatchError | CurrentTryoutRuntimeBundleVerificationDecodeError, CurrentContentVerificationKeyResolver>;
|
|
426
|
-
/** Keeps permanent runtime bundles bound to their exact frozen renderer hash. */
|
|
427
|
-
export declare const verifySignedTryoutRuntimeBundle: (input: {
|
|
428
|
-
readonly bundle: unknown;
|
|
429
|
-
readonly rendererManifest: unknown;
|
|
430
|
-
}) => Effect.Effect<{
|
|
431
|
-
readonly bundleHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
432
|
-
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
433
|
-
readonly payload: {
|
|
434
|
-
readonly format: "signed-tryout-runtime-bundle";
|
|
435
|
-
readonly rendererManifestHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
436
|
-
readonly snapshot: {
|
|
437
|
-
readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
|
|
438
|
-
readonly catalogDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
439
|
-
readonly counts: {
|
|
440
|
-
readonly country: number;
|
|
441
|
-
readonly exam: number;
|
|
442
|
-
readonly section: number;
|
|
443
|
-
readonly set: number;
|
|
444
|
-
readonly track: number;
|
|
445
|
-
};
|
|
446
|
-
readonly placementCount: number;
|
|
447
|
-
readonly placementDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
448
|
-
readonly routeCount: number;
|
|
449
|
-
readonly format: "localized-tryout-snapshot";
|
|
450
|
-
readonly snapshotId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
451
|
-
};
|
|
452
|
-
readonly sourceGitSha: string & import("effect/Brand").Brand<"@NakafaAI/AksaraGitCommitSha">;
|
|
453
|
-
readonly sourceManifestHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
454
|
-
readonly sourceReleaseId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">;
|
|
455
|
-
};
|
|
456
|
-
readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
|
|
457
|
-
}, CurrentArtifactCompiledByteLengthMismatchError | CurrentArtifactHashComputationError | CurrentArtifactHashMismatchError | CurrentArtifactPayloadFieldByteLimitError | CurrentArtifactSourceHashComputationError | CurrentArtifactSourceHashMismatchError | CurrentArtifactVerificationByteLimitError | CurrentArtifactVerificationDecodeError | ContractDecodeError | CurrentPublicKeyParseError | CurrentPublicKeyTypeError | ReleaseHashComputationError | CurrentReleaseManifestHashMismatchError | CurrentReleaseVerificationDecodeError | CurrentRendererManifestHashComputeError | CurrentRendererManifestHashMismatchError | CurrentSignatureCheckError | CurrentSignatureInvalidError | CurrentSigningKeyNotFoundError | CurrentSigningKeyResolutionError | TryoutRuntimeBundleHashComputationError | CurrentTryoutRuntimeBundleHashMismatchError | CurrentTryoutRuntimeBundleRendererMismatchError | CurrentTryoutRuntimeBundleSnapshotMismatchError | CurrentTryoutRuntimeBundleVerificationDecodeError, CurrentContentVerificationKeyResolver>;
|