@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
|
@@ -4275,13 +4275,6 @@ export declare const PublicationResponseSchema: Schema.Union<readonly [Schema.Un
|
|
|
4275
4275
|
export type PublicationResponse = typeof PublicationResponseSchema.Type;
|
|
4276
4276
|
/** Strictly decodes one unknown publication response without throwing. */
|
|
4277
4277
|
export declare const decodePublicationResponse: (input: unknown) => Effect.Effect<{
|
|
4278
|
-
readonly ok: true;
|
|
4279
|
-
readonly operation: "stageGroup";
|
|
4280
|
-
readonly value: {
|
|
4281
|
-
readonly releaseId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">;
|
|
4282
|
-
readonly requestCount: number;
|
|
4283
|
-
};
|
|
4284
|
-
} | {
|
|
4285
4278
|
readonly ok: true;
|
|
4286
4279
|
readonly operation: "accept";
|
|
4287
4280
|
readonly value: {
|
|
@@ -4755,6 +4748,13 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
|
|
|
4755
4748
|
readonly snapshotId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
4756
4749
|
readonly unchanged: 0 | 1;
|
|
4757
4750
|
};
|
|
4751
|
+
} | {
|
|
4752
|
+
readonly ok: true;
|
|
4753
|
+
readonly operation: "stageGroup";
|
|
4754
|
+
readonly value: {
|
|
4755
|
+
readonly releaseId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">;
|
|
4756
|
+
readonly requestCount: number;
|
|
4757
|
+
};
|
|
4758
4758
|
} | {
|
|
4759
4759
|
readonly ok: true;
|
|
4760
4760
|
readonly operation: "stageItemBatch";
|
|
@@ -5028,20 +5028,81 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
|
|
|
5028
5028
|
readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
5029
5029
|
};
|
|
5030
5030
|
readonly projection: {
|
|
5031
|
-
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
5032
5031
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
5033
5032
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
5034
|
-
readonly
|
|
5035
|
-
readonly
|
|
5036
|
-
readonly
|
|
5033
|
+
readonly peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
5034
|
+
readonly questionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionKey">;
|
|
5035
|
+
readonly questionNumber: number;
|
|
5036
|
+
readonly setKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionSetKey">;
|
|
5037
|
+
readonly bodyKind: "question";
|
|
5038
|
+
readonly blueprint?: {
|
|
5039
|
+
readonly cognitiveLevel: string;
|
|
5040
|
+
readonly contentDomain: string;
|
|
5041
|
+
readonly topic: string;
|
|
5042
|
+
};
|
|
5043
|
+
readonly kind: "question-body";
|
|
5037
5044
|
readonly metadata: {
|
|
5038
5045
|
readonly dateModified?: string;
|
|
5039
5046
|
readonly datePublished: string;
|
|
5040
|
-
readonly
|
|
5047
|
+
readonly authors: readonly {
|
|
5048
|
+
readonly name: string;
|
|
5049
|
+
}[];
|
|
5041
5050
|
readonly title: string;
|
|
5042
5051
|
};
|
|
5043
|
-
readonly
|
|
5044
|
-
readonly
|
|
5052
|
+
readonly stimulusKey?: string;
|
|
5053
|
+
readonly response: {
|
|
5054
|
+
readonly categories: readonly {
|
|
5055
|
+
readonly categoryKey: string;
|
|
5056
|
+
readonly label: string;
|
|
5057
|
+
readonly order: number;
|
|
5058
|
+
}[];
|
|
5059
|
+
readonly kind: "category";
|
|
5060
|
+
readonly statements: readonly {
|
|
5061
|
+
readonly correctCategoryKey: string;
|
|
5062
|
+
readonly label: string;
|
|
5063
|
+
readonly order: number;
|
|
5064
|
+
readonly statementKey: string;
|
|
5065
|
+
}[];
|
|
5066
|
+
} | {
|
|
5067
|
+
readonly kind: "multiple-choice";
|
|
5068
|
+
readonly options: readonly {
|
|
5069
|
+
readonly isCorrect: boolean;
|
|
5070
|
+
readonly label: string;
|
|
5071
|
+
readonly optionKey: string;
|
|
5072
|
+
readonly order: number;
|
|
5073
|
+
}[];
|
|
5074
|
+
} | {
|
|
5075
|
+
readonly kind: "single-choice";
|
|
5076
|
+
readonly options: readonly {
|
|
5077
|
+
readonly isCorrect: boolean;
|
|
5078
|
+
readonly label: string;
|
|
5079
|
+
readonly optionKey: string;
|
|
5080
|
+
readonly order: number;
|
|
5081
|
+
}[];
|
|
5082
|
+
};
|
|
5083
|
+
} | {
|
|
5084
|
+
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
5085
|
+
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
5086
|
+
readonly peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
5087
|
+
readonly questionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionKey">;
|
|
5088
|
+
readonly questionNumber: number;
|
|
5089
|
+
readonly setKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionSetKey">;
|
|
5090
|
+
readonly bodyKind: "answer";
|
|
5091
|
+
readonly blueprint?: {
|
|
5092
|
+
readonly cognitiveLevel: string;
|
|
5093
|
+
readonly contentDomain: string;
|
|
5094
|
+
readonly topic: string;
|
|
5095
|
+
};
|
|
5096
|
+
readonly kind: "question-body";
|
|
5097
|
+
readonly metadata: {
|
|
5098
|
+
readonly dateModified?: string;
|
|
5099
|
+
readonly datePublished: string;
|
|
5100
|
+
readonly authors: readonly {
|
|
5101
|
+
readonly name: string;
|
|
5102
|
+
}[];
|
|
5103
|
+
readonly title: string;
|
|
5104
|
+
};
|
|
5105
|
+
readonly stimulusKey?: string;
|
|
5045
5106
|
} | {
|
|
5046
5107
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
5047
5108
|
readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
@@ -5111,6 +5172,62 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
|
|
|
5111
5172
|
readonly sitemap: true;
|
|
5112
5173
|
readonly topicTitle: string;
|
|
5113
5174
|
} | {
|
|
5175
|
+
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
5176
|
+
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
5177
|
+
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
5178
|
+
readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
|
|
5179
|
+
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
5180
|
+
readonly kind: "public-page";
|
|
5181
|
+
readonly metadata: {
|
|
5182
|
+
readonly dateModified?: string;
|
|
5183
|
+
readonly datePublished: string;
|
|
5184
|
+
readonly description: string;
|
|
5185
|
+
readonly title: string;
|
|
5186
|
+
};
|
|
5187
|
+
readonly sitemap: true;
|
|
5188
|
+
readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
5189
|
+
};
|
|
5190
|
+
} | {
|
|
5191
|
+
readonly change: {
|
|
5192
|
+
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
5193
|
+
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
5194
|
+
readonly family: "article" | "material" | "page" | "question";
|
|
5195
|
+
readonly operation: "delete";
|
|
5196
|
+
};
|
|
5197
|
+
};
|
|
5198
|
+
readonly index: number;
|
|
5199
|
+
readonly prior: {
|
|
5200
|
+
readonly artifact: {
|
|
5201
|
+
readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
5202
|
+
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
5203
|
+
readonly payload: {
|
|
5204
|
+
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
5205
|
+
readonly byteLength: number;
|
|
5206
|
+
readonly compiledCode: string;
|
|
5207
|
+
readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
5208
|
+
readonly compilerVersion: "0.1.0";
|
|
5209
|
+
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
5210
|
+
readonly format: "mdx-function-body";
|
|
5211
|
+
readonly mdxCompilerVersion: "3.1.1";
|
|
5212
|
+
readonly plainText: string;
|
|
5213
|
+
readonly rawMdx: string;
|
|
5214
|
+
readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
5215
|
+
readonly requiredComponents: readonly string[];
|
|
5216
|
+
readonly sourceHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
5217
|
+
};
|
|
5218
|
+
readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
|
|
5219
|
+
};
|
|
5220
|
+
readonly change: {
|
|
5221
|
+
readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
5222
|
+
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
5223
|
+
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
5224
|
+
readonly delivery: "authenticated" | "entitled" | "public";
|
|
5225
|
+
readonly family: "article" | "material" | "page" | "question";
|
|
5226
|
+
readonly operation: "upsert";
|
|
5227
|
+
readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
5228
|
+
readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
5229
|
+
};
|
|
5230
|
+
readonly projection: {
|
|
5114
5231
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
5115
5232
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
5116
5233
|
readonly peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
@@ -5186,62 +5303,6 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
|
|
|
5186
5303
|
readonly title: string;
|
|
5187
5304
|
};
|
|
5188
5305
|
readonly stimulusKey?: string;
|
|
5189
|
-
};
|
|
5190
|
-
} | {
|
|
5191
|
-
readonly change: {
|
|
5192
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
5193
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
5194
|
-
readonly family: "article" | "material" | "page" | "question";
|
|
5195
|
-
readonly operation: "delete";
|
|
5196
|
-
};
|
|
5197
|
-
};
|
|
5198
|
-
readonly index: number;
|
|
5199
|
-
readonly prior: {
|
|
5200
|
-
readonly artifact: {
|
|
5201
|
-
readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
5202
|
-
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
5203
|
-
readonly payload: {
|
|
5204
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
5205
|
-
readonly byteLength: number;
|
|
5206
|
-
readonly compiledCode: string;
|
|
5207
|
-
readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
5208
|
-
readonly compilerVersion: "0.1.0";
|
|
5209
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
5210
|
-
readonly format: "mdx-function-body";
|
|
5211
|
-
readonly mdxCompilerVersion: "3.1.1";
|
|
5212
|
-
readonly plainText: string;
|
|
5213
|
-
readonly rawMdx: string;
|
|
5214
|
-
readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
5215
|
-
readonly requiredComponents: readonly string[];
|
|
5216
|
-
readonly sourceHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
5217
|
-
};
|
|
5218
|
-
readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
|
|
5219
|
-
};
|
|
5220
|
-
readonly change: {
|
|
5221
|
-
readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
5222
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
5223
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
5224
|
-
readonly delivery: "authenticated" | "entitled" | "public";
|
|
5225
|
-
readonly family: "article" | "material" | "page" | "question";
|
|
5226
|
-
readonly operation: "upsert";
|
|
5227
|
-
readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
5228
|
-
readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
5229
|
-
};
|
|
5230
|
-
readonly projection: {
|
|
5231
|
-
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
5232
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
5233
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
5234
|
-
readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
|
|
5235
|
-
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
5236
|
-
readonly kind: "public-page";
|
|
5237
|
-
readonly metadata: {
|
|
5238
|
-
readonly dateModified?: string;
|
|
5239
|
-
readonly datePublished: string;
|
|
5240
|
-
readonly description: string;
|
|
5241
|
-
readonly title: string;
|
|
5242
|
-
};
|
|
5243
|
-
readonly sitemap: true;
|
|
5244
|
-
readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
5245
5306
|
} | {
|
|
5246
5307
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
5247
5308
|
readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
@@ -5311,81 +5372,20 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
|
|
|
5311
5372
|
readonly sitemap: true;
|
|
5312
5373
|
readonly topicTitle: string;
|
|
5313
5374
|
} | {
|
|
5375
|
+
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
5314
5376
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
5315
5377
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
5316
|
-
readonly
|
|
5317
|
-
readonly
|
|
5318
|
-
readonly
|
|
5319
|
-
readonly setKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionSetKey">;
|
|
5320
|
-
readonly bodyKind: "question";
|
|
5321
|
-
readonly blueprint?: {
|
|
5322
|
-
readonly cognitiveLevel: string;
|
|
5323
|
-
readonly contentDomain: string;
|
|
5324
|
-
readonly topic: string;
|
|
5325
|
-
};
|
|
5326
|
-
readonly kind: "question-body";
|
|
5327
|
-
readonly metadata: {
|
|
5328
|
-
readonly dateModified?: string;
|
|
5329
|
-
readonly datePublished: string;
|
|
5330
|
-
readonly authors: readonly {
|
|
5331
|
-
readonly name: string;
|
|
5332
|
-
}[];
|
|
5333
|
-
readonly title: string;
|
|
5334
|
-
};
|
|
5335
|
-
readonly stimulusKey?: string;
|
|
5336
|
-
readonly response: {
|
|
5337
|
-
readonly categories: readonly {
|
|
5338
|
-
readonly categoryKey: string;
|
|
5339
|
-
readonly label: string;
|
|
5340
|
-
readonly order: number;
|
|
5341
|
-
}[];
|
|
5342
|
-
readonly kind: "category";
|
|
5343
|
-
readonly statements: readonly {
|
|
5344
|
-
readonly correctCategoryKey: string;
|
|
5345
|
-
readonly label: string;
|
|
5346
|
-
readonly order: number;
|
|
5347
|
-
readonly statementKey: string;
|
|
5348
|
-
}[];
|
|
5349
|
-
} | {
|
|
5350
|
-
readonly kind: "multiple-choice";
|
|
5351
|
-
readonly options: readonly {
|
|
5352
|
-
readonly isCorrect: boolean;
|
|
5353
|
-
readonly label: string;
|
|
5354
|
-
readonly optionKey: string;
|
|
5355
|
-
readonly order: number;
|
|
5356
|
-
}[];
|
|
5357
|
-
} | {
|
|
5358
|
-
readonly kind: "single-choice";
|
|
5359
|
-
readonly options: readonly {
|
|
5360
|
-
readonly isCorrect: boolean;
|
|
5361
|
-
readonly label: string;
|
|
5362
|
-
readonly optionKey: string;
|
|
5363
|
-
readonly order: number;
|
|
5364
|
-
}[];
|
|
5365
|
-
};
|
|
5366
|
-
} | {
|
|
5367
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
5368
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
5369
|
-
readonly peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
5370
|
-
readonly questionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionKey">;
|
|
5371
|
-
readonly questionNumber: number;
|
|
5372
|
-
readonly setKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionSetKey">;
|
|
5373
|
-
readonly bodyKind: "answer";
|
|
5374
|
-
readonly blueprint?: {
|
|
5375
|
-
readonly cognitiveLevel: string;
|
|
5376
|
-
readonly contentDomain: string;
|
|
5377
|
-
readonly topic: string;
|
|
5378
|
-
};
|
|
5379
|
-
readonly kind: "question-body";
|
|
5378
|
+
readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
|
|
5379
|
+
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
5380
|
+
readonly kind: "public-page";
|
|
5380
5381
|
readonly metadata: {
|
|
5381
5382
|
readonly dateModified?: string;
|
|
5382
5383
|
readonly datePublished: string;
|
|
5383
|
-
readonly
|
|
5384
|
-
readonly name: string;
|
|
5385
|
-
}[];
|
|
5384
|
+
readonly description: string;
|
|
5386
5385
|
readonly title: string;
|
|
5387
5386
|
};
|
|
5388
|
-
readonly
|
|
5387
|
+
readonly sitemap: true;
|
|
5388
|
+
readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
5389
5389
|
};
|
|
5390
5390
|
} | {
|
|
5391
5391
|
readonly change: {
|
|
@@ -34,15 +34,16 @@ export declare const digestTryoutCatalog: <E, R>(records: Stream.Stream<{
|
|
|
34
34
|
readonly title: string;
|
|
35
35
|
readonly countryKey: string;
|
|
36
36
|
readonly examKey: string;
|
|
37
|
-
readonly kind: "
|
|
37
|
+
readonly kind: "section";
|
|
38
38
|
readonly order: number;
|
|
39
|
-
readonly publicPath
|
|
39
|
+
readonly publicPath?: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">) | undefined;
|
|
40
40
|
readonly questionCount: number;
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
41
|
+
readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
42
|
+
readonly sectionKey: string;
|
|
43
|
+
readonly setKey: string;
|
|
44
|
+
readonly timeLimitSeconds: number;
|
|
43
45
|
readonly trackKey: string;
|
|
44
|
-
readonly
|
|
45
|
-
readonly visibleSectionCount: number;
|
|
46
|
+
readonly visibility: "internal-entry" | "visible";
|
|
46
47
|
} | {
|
|
47
48
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
48
49
|
readonly description?: string | undefined;
|
|
@@ -81,16 +82,15 @@ export declare const digestTryoutCatalog: <E, R>(records: Stream.Stream<{
|
|
|
81
82
|
readonly title: string;
|
|
82
83
|
readonly countryKey: string;
|
|
83
84
|
readonly examKey: string;
|
|
84
|
-
readonly kind: "
|
|
85
|
+
readonly kind: "track";
|
|
85
86
|
readonly order: number;
|
|
86
|
-
readonly publicPath
|
|
87
|
+
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
87
88
|
readonly questionCount: number;
|
|
88
|
-
readonly
|
|
89
|
-
readonly
|
|
90
|
-
readonly setKey: string;
|
|
91
|
-
readonly timeLimitSeconds: number;
|
|
89
|
+
readonly sectionCount: number;
|
|
90
|
+
readonly setCount: number;
|
|
92
91
|
readonly trackKey: string;
|
|
93
|
-
readonly
|
|
92
|
+
readonly trackKind: "subject" | "year";
|
|
93
|
+
readonly visibleSectionCount: number;
|
|
94
94
|
} | {
|
|
95
95
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
96
96
|
readonly description?: string | undefined;
|
|
@@ -103,11 +103,12 @@ export declare const digestTryoutCatalog: <E, R>(records: Stream.Stream<{
|
|
|
103
103
|
};
|
|
104
104
|
readonly sourceRevision: string;
|
|
105
105
|
readonly title: string;
|
|
106
|
-
readonly countryCode: string;
|
|
107
106
|
readonly countryKey: string;
|
|
108
|
-
readonly
|
|
107
|
+
readonly examKey: string;
|
|
108
|
+
readonly kind: "exam";
|
|
109
109
|
readonly order: number;
|
|
110
110
|
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
111
|
+
readonly scoringStrategy: "irt" | "raw";
|
|
111
112
|
} | {
|
|
112
113
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
113
114
|
readonly description?: string | undefined;
|
|
@@ -120,12 +121,11 @@ export declare const digestTryoutCatalog: <E, R>(records: Stream.Stream<{
|
|
|
120
121
|
};
|
|
121
122
|
readonly sourceRevision: string;
|
|
122
123
|
readonly title: string;
|
|
124
|
+
readonly countryCode: string;
|
|
123
125
|
readonly countryKey: string;
|
|
124
|
-
readonly
|
|
125
|
-
readonly kind: "exam";
|
|
126
|
+
readonly kind: "country";
|
|
126
127
|
readonly order: number;
|
|
127
128
|
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
128
|
-
readonly scoringStrategy: "irt" | "raw";
|
|
129
129
|
};
|
|
130
130
|
readonly rowHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
131
131
|
}, E, R>) => Effect.Effect<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nakafa/aksara-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.0",
|
|
4
4
|
"description": "Schemas and verification contracts for Nakafa content releases.",
|
|
5
5
|
"homepage": "https://github.com/nakafaai/aksara#readme",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -23,9 +23,6 @@
|
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"effect": "4.0.0-rc.115"
|
|
25
25
|
},
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"@nakafa/aksara-retained": "npm:@nakafa/aksara-contracts@0.39.0"
|
|
28
|
-
},
|
|
29
26
|
"exports": {
|
|
30
27
|
"./content": {
|
|
31
28
|
"types": "./dist/content.d.ts",
|
|
@@ -506,30 +503,6 @@
|
|
|
506
503
|
"./tryout/spec": {
|
|
507
504
|
"types": "./dist/tryout/spec.d.ts",
|
|
508
505
|
"import": "./dist/tryout/spec.js"
|
|
509
|
-
},
|
|
510
|
-
"./adoption/schema": {
|
|
511
|
-
"types": "./dist/adoption/schema.d.ts",
|
|
512
|
-
"import": "./dist/adoption/schema.js"
|
|
513
|
-
},
|
|
514
|
-
"./adoption/transport": {
|
|
515
|
-
"types": "./dist/adoption/transport.d.ts",
|
|
516
|
-
"import": "./dist/adoption/transport.js"
|
|
517
|
-
},
|
|
518
|
-
"./adoption/runtime": {
|
|
519
|
-
"types": "./dist/adoption/runtime.d.ts",
|
|
520
|
-
"import": "./dist/adoption/runtime.js"
|
|
521
|
-
},
|
|
522
|
-
"./adoption/verify": {
|
|
523
|
-
"types": "./dist/adoption/verify.d.ts",
|
|
524
|
-
"node": "./dist/adoption/verify.js"
|
|
525
|
-
},
|
|
526
|
-
"./adoption/public": {
|
|
527
|
-
"types": "./dist/adoption/public.d.ts",
|
|
528
|
-
"node": "./dist/adoption/public.js"
|
|
529
|
-
},
|
|
530
|
-
"./adoption/protected": {
|
|
531
|
-
"types": "./dist/adoption/protected.d.ts",
|
|
532
|
-
"node": "./dist/adoption/protected.js"
|
|
533
506
|
}
|
|
534
507
|
},
|
|
535
508
|
"imports": {
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { Effect } from "effect";
|
|
2
|
-
import { ContentRuntimeMismatchError } from "#contracts/runtime/error";
|
|
3
|
-
/** Verifies one retained-snapshot batch and every ordered signed artifact. */
|
|
4
|
-
export declare const verifyProtectedContentRuntimeExchange: (input: {
|
|
5
|
-
readonly rendererManifest: unknown;
|
|
6
|
-
readonly request: unknown;
|
|
7
|
-
readonly response: unknown;
|
|
8
|
-
}) => Effect.Effect<{
|
|
9
|
-
readonly bundle: {
|
|
10
|
-
readonly bundleHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
11
|
-
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
12
|
-
readonly payload: {
|
|
13
|
-
readonly format: "signed-tryout-runtime-bundle";
|
|
14
|
-
readonly rendererManifestHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
15
|
-
readonly snapshot: {
|
|
16
|
-
readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
|
|
17
|
-
readonly catalogDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
18
|
-
readonly counts: {
|
|
19
|
-
readonly country: number;
|
|
20
|
-
readonly exam: number;
|
|
21
|
-
readonly section: number;
|
|
22
|
-
readonly set: number;
|
|
23
|
-
readonly track: number;
|
|
24
|
-
};
|
|
25
|
-
readonly placementCount: number;
|
|
26
|
-
readonly placementDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
27
|
-
readonly routeCount: number;
|
|
28
|
-
readonly format: "localized-tryout-snapshot";
|
|
29
|
-
readonly snapshotId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
30
|
-
};
|
|
31
|
-
readonly sourceGitSha: string & import("effect/Brand").Brand<"@NakafaAI/AksaraGitCommitSha">;
|
|
32
|
-
readonly sourceManifestHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
33
|
-
readonly sourceReleaseId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">;
|
|
34
|
-
};
|
|
35
|
-
readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
|
|
36
|
-
};
|
|
37
|
-
readonly kind: "found";
|
|
38
|
-
readonly items: readonly {
|
|
39
|
-
readonly delivery: "authenticated" | "entitled";
|
|
40
|
-
readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
41
|
-
readonly artifact: {
|
|
42
|
-
readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
43
|
-
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
44
|
-
readonly payload: {
|
|
45
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
46
|
-
readonly byteLength: number;
|
|
47
|
-
readonly compiledCode: string;
|
|
48
|
-
readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
49
|
-
readonly compilerVersion: "0.1.0";
|
|
50
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
51
|
-
readonly format: "mdx-function-body";
|
|
52
|
-
readonly mdxCompilerVersion: "3.1.1";
|
|
53
|
-
readonly plainText: string;
|
|
54
|
-
readonly rawMdx: string;
|
|
55
|
-
readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
56
|
-
readonly requiredComponents: readonly string[];
|
|
57
|
-
readonly sourceHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
58
|
-
};
|
|
59
|
-
readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
|
|
60
|
-
} | {
|
|
61
|
-
readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
62
|
-
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
63
|
-
readonly payload: {
|
|
64
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
65
|
-
readonly byteLength: number;
|
|
66
|
-
readonly compiledCode: string;
|
|
67
|
-
readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
68
|
-
readonly compilerVersion: "0.1.0";
|
|
69
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
70
|
-
readonly format: "mdx-function-body";
|
|
71
|
-
readonly mdxCompilerVersion: "3.1.1";
|
|
72
|
-
readonly plainText: string;
|
|
73
|
-
readonly rawMdx: string;
|
|
74
|
-
readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
75
|
-
readonly requiredComponents: readonly {
|
|
76
|
-
readonly name: string;
|
|
77
|
-
readonly version: number;
|
|
78
|
-
}[];
|
|
79
|
-
readonly sourceHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
80
|
-
};
|
|
81
|
-
readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
|
|
82
|
-
};
|
|
83
|
-
}[];
|
|
84
|
-
readonly rendererManifest: {
|
|
85
|
-
readonly base: readonly string[];
|
|
86
|
-
readonly domains: readonly {
|
|
87
|
-
readonly components: readonly string[];
|
|
88
|
-
readonly name: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
89
|
-
}[];
|
|
90
|
-
readonly format: "nakafa-mdx-renderer";
|
|
91
|
-
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
92
|
-
readonly publishedDomains: readonly ("ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math")[];
|
|
93
|
-
} | {
|
|
94
|
-
readonly base: {
|
|
95
|
-
readonly authoringComponents: readonly {
|
|
96
|
-
readonly name: string;
|
|
97
|
-
readonly version: number;
|
|
98
|
-
}[];
|
|
99
|
-
readonly supportedComponents: readonly {
|
|
100
|
-
readonly name: string;
|
|
101
|
-
readonly version: number;
|
|
102
|
-
}[];
|
|
103
|
-
};
|
|
104
|
-
readonly domains: readonly {
|
|
105
|
-
readonly authoringComponents: readonly {
|
|
106
|
-
readonly name: string;
|
|
107
|
-
readonly version: number;
|
|
108
|
-
}[];
|
|
109
|
-
readonly name: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
110
|
-
readonly supportedComponents: readonly {
|
|
111
|
-
readonly name: string;
|
|
112
|
-
readonly version: number;
|
|
113
|
-
}[];
|
|
114
|
-
}[];
|
|
115
|
-
readonly format: "nakafa-mdx-renderer-v1";
|
|
116
|
-
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
117
|
-
readonly publishedDomains: readonly ("ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math")[];
|
|
118
|
-
readonly rendererContractVersion: "1.0.0";
|
|
119
|
-
};
|
|
120
|
-
} | {
|
|
121
|
-
readonly kind: "missing";
|
|
122
|
-
} | {
|
|
123
|
-
readonly code: "CONTENT_RUNTIME_INTERNAL" | "CONTENT_RUNTIME_INVALID" | "CONTENT_RUNTIME_RESPONSE_TOO_LARGE" | "CONTENT_RUNTIME_UNAUTHORIZED";
|
|
124
|
-
readonly kind: "failure";
|
|
125
|
-
}, import("../artifact/spec.js").ArtifactCompiledByteLengthMismatchError | 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").ArtifactVerificationByteLimitError | import("../artifact/spec.js").ArtifactVerificationDecodeError | ContentRuntimeMismatchError | import("../errors.js").ContractDecodeError | import("../signature/spec.js").PublicKeyParseError | import("../signature/spec.js").PublicKeyTypeError | import("../release/hash.js").ReleaseHashComputationError | import("../release/verify.js").ReleaseManifestHashMismatchError | import("../release/verify.js").ReleaseVerificationDecodeError | import("../renderer/contract.js").RendererDomainCapabilityMissingError | import("../renderer/contract.js").RendererManifestHashComputeError | import("../renderer/contract.js").RendererManifestHashMismatchError | import("#contracts/adoption/schema").RetainedRendererComponentUnsupportedError | import("../signature/spec.js").SignatureCheckError | import("../signature/spec.js").SignatureInvalidError | import("../signature/spec.js").SigningKeyNotFoundError | import("../signature/spec.js").SigningKeyResolutionError | import("../tryout/runtime/hash.js").TryoutRuntimeBundleHashComputationError | import("../tryout/runtime/verify.js").TryoutRuntimeBundleHashMismatchError | import("../tryout/runtime/verify.js").TryoutRuntimeBundleRendererMismatchError | import("../tryout/runtime/verify.js").TryoutRuntimeBundleSnapshotMismatchError | import("../tryout/runtime/verify.js").TryoutRuntimeBundleVerificationDecodeError, import("../signature/spec.js").ContentVerificationKeyResolver>;
|