@nakafa/aksara-contracts 0.48.7 → 0.48.9
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/dist/errors.d.ts +5 -0
- package/dist/errors.js +6 -0
- package/dist/preview/target.d.ts +5 -0
- package/dist/preview/target.js +5 -3
- package/dist/projection/verify.d.ts +114 -114
- package/dist/projection/verify.js +1 -1
- package/dist/release/count.d.ts +3 -0
- package/dist/release/count.js +3 -0
- package/dist/release/identity.js +1 -1
- package/dist/release/items.js +2 -1
- package/dist/release/mismatch.js +3 -3
- package/dist/release/result/digest.d.ts +4 -4
- package/dist/release/route/verify.d.ts +1 -1
- package/dist/release/route/verify.js +1 -1
- package/dist/release/snapshot/verify.d.ts +114 -114
- package/dist/release/spec.d.ts +0 -2
- package/dist/release/spec.js +14 -14
- package/dist/renderer/contract.js +2 -4
- package/dist/runtime/verify.d.ts +46 -46
- package/dist/transport/request.d.ts +965 -965
- package/dist/transport/response.d.ts +185 -185
- package/dist/tryout/hash/catalog.d.ts +26 -26
- package/dist/tryout/runtime/verify.d.ts +1 -1
- package/dist/tryout/runtime/verify.js +2 -4
- package/package.json +1 -1
|
@@ -207,81 +207,6 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
|
|
|
207
207
|
readonly family: "quran";
|
|
208
208
|
readonly record: {
|
|
209
209
|
readonly payload: {
|
|
210
|
-
readonly firstQuranNumber: number;
|
|
211
|
-
readonly firstVerse: number;
|
|
212
|
-
readonly kind: "quran-chunk";
|
|
213
|
-
readonly lastVerse: number;
|
|
214
|
-
readonly surahNumber: number;
|
|
215
|
-
readonly verses: readonly [{
|
|
216
|
-
readonly meta: {
|
|
217
|
-
readonly hizbQuarter: number;
|
|
218
|
-
readonly juz: number;
|
|
219
|
-
readonly manzil: number;
|
|
220
|
-
readonly page: number;
|
|
221
|
-
readonly ruku: number;
|
|
222
|
-
readonly sajda: "obligatory" | "recommended" | null;
|
|
223
|
-
};
|
|
224
|
-
readonly number: {
|
|
225
|
-
readonly inQuran: number;
|
|
226
|
-
readonly inSurah: number;
|
|
227
|
-
};
|
|
228
|
-
readonly tafsir: readonly {
|
|
229
|
-
readonly appLocale: "id";
|
|
230
|
-
readonly footnotes: string | null;
|
|
231
|
-
readonly text: string;
|
|
232
|
-
}[];
|
|
233
|
-
readonly text: {
|
|
234
|
-
readonly arabic: string;
|
|
235
|
-
};
|
|
236
|
-
readonly translations: readonly [{
|
|
237
|
-
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
238
|
-
readonly value: {
|
|
239
|
-
readonly footnotes: string;
|
|
240
|
-
readonly text: string;
|
|
241
|
-
};
|
|
242
|
-
}, ...{
|
|
243
|
-
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
244
|
-
readonly value: {
|
|
245
|
-
readonly footnotes: string;
|
|
246
|
-
readonly text: string;
|
|
247
|
-
};
|
|
248
|
-
}[]];
|
|
249
|
-
}, ...{
|
|
250
|
-
readonly meta: {
|
|
251
|
-
readonly hizbQuarter: number;
|
|
252
|
-
readonly juz: number;
|
|
253
|
-
readonly manzil: number;
|
|
254
|
-
readonly page: number;
|
|
255
|
-
readonly ruku: number;
|
|
256
|
-
readonly sajda: "obligatory" | "recommended" | null;
|
|
257
|
-
};
|
|
258
|
-
readonly number: {
|
|
259
|
-
readonly inQuran: number;
|
|
260
|
-
readonly inSurah: number;
|
|
261
|
-
};
|
|
262
|
-
readonly tafsir: readonly {
|
|
263
|
-
readonly appLocale: "id";
|
|
264
|
-
readonly footnotes: string | null;
|
|
265
|
-
readonly text: string;
|
|
266
|
-
}[];
|
|
267
|
-
readonly text: {
|
|
268
|
-
readonly arabic: string;
|
|
269
|
-
};
|
|
270
|
-
readonly translations: readonly [{
|
|
271
|
-
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
272
|
-
readonly value: {
|
|
273
|
-
readonly footnotes: string;
|
|
274
|
-
readonly text: string;
|
|
275
|
-
};
|
|
276
|
-
}, ...{
|
|
277
|
-
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
278
|
-
readonly value: {
|
|
279
|
-
readonly footnotes: string;
|
|
280
|
-
readonly text: string;
|
|
281
|
-
};
|
|
282
|
-
}[]];
|
|
283
|
-
}[]];
|
|
284
|
-
} | {
|
|
285
210
|
readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
|
|
286
211
|
readonly kind: "quran-attribution";
|
|
287
212
|
readonly sources: readonly [{
|
|
@@ -418,6 +343,81 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
|
|
|
418
343
|
readonly notice: string;
|
|
419
344
|
readonly sourceId: "mokhtasar-german";
|
|
420
345
|
})[]];
|
|
346
|
+
} | {
|
|
347
|
+
readonly firstQuranNumber: number;
|
|
348
|
+
readonly firstVerse: number;
|
|
349
|
+
readonly kind: "quran-chunk";
|
|
350
|
+
readonly lastVerse: number;
|
|
351
|
+
readonly surahNumber: number;
|
|
352
|
+
readonly verses: readonly [{
|
|
353
|
+
readonly meta: {
|
|
354
|
+
readonly hizbQuarter: number;
|
|
355
|
+
readonly juz: number;
|
|
356
|
+
readonly manzil: number;
|
|
357
|
+
readonly page: number;
|
|
358
|
+
readonly ruku: number;
|
|
359
|
+
readonly sajda: "obligatory" | "recommended" | null;
|
|
360
|
+
};
|
|
361
|
+
readonly number: {
|
|
362
|
+
readonly inQuran: number;
|
|
363
|
+
readonly inSurah: number;
|
|
364
|
+
};
|
|
365
|
+
readonly tafsir: readonly {
|
|
366
|
+
readonly appLocale: "id";
|
|
367
|
+
readonly footnotes: string | null;
|
|
368
|
+
readonly text: string;
|
|
369
|
+
}[];
|
|
370
|
+
readonly text: {
|
|
371
|
+
readonly arabic: string;
|
|
372
|
+
};
|
|
373
|
+
readonly translations: readonly [{
|
|
374
|
+
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
375
|
+
readonly value: {
|
|
376
|
+
readonly footnotes: string;
|
|
377
|
+
readonly text: string;
|
|
378
|
+
};
|
|
379
|
+
}, ...{
|
|
380
|
+
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
381
|
+
readonly value: {
|
|
382
|
+
readonly footnotes: string;
|
|
383
|
+
readonly text: string;
|
|
384
|
+
};
|
|
385
|
+
}[]];
|
|
386
|
+
}, ...{
|
|
387
|
+
readonly meta: {
|
|
388
|
+
readonly hizbQuarter: number;
|
|
389
|
+
readonly juz: number;
|
|
390
|
+
readonly manzil: number;
|
|
391
|
+
readonly page: number;
|
|
392
|
+
readonly ruku: number;
|
|
393
|
+
readonly sajda: "obligatory" | "recommended" | null;
|
|
394
|
+
};
|
|
395
|
+
readonly number: {
|
|
396
|
+
readonly inQuran: number;
|
|
397
|
+
readonly inSurah: number;
|
|
398
|
+
};
|
|
399
|
+
readonly tafsir: readonly {
|
|
400
|
+
readonly appLocale: "id";
|
|
401
|
+
readonly footnotes: string | null;
|
|
402
|
+
readonly text: string;
|
|
403
|
+
}[];
|
|
404
|
+
readonly text: {
|
|
405
|
+
readonly arabic: string;
|
|
406
|
+
};
|
|
407
|
+
readonly translations: readonly [{
|
|
408
|
+
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
409
|
+
readonly value: {
|
|
410
|
+
readonly footnotes: string;
|
|
411
|
+
readonly text: string;
|
|
412
|
+
};
|
|
413
|
+
}, ...{
|
|
414
|
+
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
415
|
+
readonly value: {
|
|
416
|
+
readonly footnotes: string;
|
|
417
|
+
readonly text: string;
|
|
418
|
+
};
|
|
419
|
+
}[]];
|
|
420
|
+
}[]];
|
|
421
421
|
} | {
|
|
422
422
|
readonly name: {
|
|
423
423
|
readonly arabic: string;
|
|
@@ -468,11 +468,23 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
|
|
|
468
468
|
};
|
|
469
469
|
readonly sourceRevision: string;
|
|
470
470
|
readonly title: string;
|
|
471
|
-
readonly countryCode: string;
|
|
472
471
|
readonly countryKey: string;
|
|
473
|
-
readonly
|
|
472
|
+
readonly examKey: string;
|
|
473
|
+
readonly kind: "section";
|
|
474
|
+
readonly marks?: {
|
|
475
|
+
readonly blank: number;
|
|
476
|
+
readonly correct: number;
|
|
477
|
+
readonly wrong: number;
|
|
478
|
+
};
|
|
474
479
|
readonly order: number;
|
|
475
|
-
readonly publicPath
|
|
480
|
+
readonly publicPath?: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">) | undefined;
|
|
481
|
+
readonly questionCount: number;
|
|
482
|
+
readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
483
|
+
readonly sectionKey: string;
|
|
484
|
+
readonly setKey: string;
|
|
485
|
+
readonly timeLimitSeconds: number;
|
|
486
|
+
readonly trackKey: string;
|
|
487
|
+
readonly visibility: "internal-entry" | "visible";
|
|
476
488
|
} | {
|
|
477
489
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
478
490
|
readonly description?: string | undefined;
|
|
@@ -487,10 +499,16 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
|
|
|
487
499
|
readonly title: string;
|
|
488
500
|
readonly countryKey: string;
|
|
489
501
|
readonly examKey: string;
|
|
490
|
-
readonly
|
|
502
|
+
readonly internalEntrySectionKey?: string | undefined;
|
|
503
|
+
readonly kind: "set";
|
|
491
504
|
readonly order: number;
|
|
492
505
|
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
506
|
+
readonly questionCount: number;
|
|
493
507
|
readonly scoringStrategy: "irt" | "penalized" | "raw";
|
|
508
|
+
readonly sectionCount: number;
|
|
509
|
+
readonly setKey: string;
|
|
510
|
+
readonly trackKey: string;
|
|
511
|
+
readonly visibleSectionCount: number;
|
|
494
512
|
} | {
|
|
495
513
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
496
514
|
readonly description?: string | undefined;
|
|
@@ -528,16 +546,10 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
|
|
|
528
546
|
readonly title: string;
|
|
529
547
|
readonly countryKey: string;
|
|
530
548
|
readonly examKey: string;
|
|
531
|
-
readonly
|
|
532
|
-
readonly kind: "set";
|
|
549
|
+
readonly kind: "exam";
|
|
533
550
|
readonly order: number;
|
|
534
551
|
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
535
|
-
readonly questionCount: number;
|
|
536
552
|
readonly scoringStrategy: "irt" | "penalized" | "raw";
|
|
537
|
-
readonly sectionCount: number;
|
|
538
|
-
readonly setKey: string;
|
|
539
|
-
readonly trackKey: string;
|
|
540
|
-
readonly visibleSectionCount: number;
|
|
541
553
|
} | {
|
|
542
554
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
543
555
|
readonly description?: string | undefined;
|
|
@@ -550,23 +562,11 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
|
|
|
550
562
|
};
|
|
551
563
|
readonly sourceRevision: string;
|
|
552
564
|
readonly title: string;
|
|
565
|
+
readonly countryCode: string;
|
|
553
566
|
readonly countryKey: string;
|
|
554
|
-
readonly
|
|
555
|
-
readonly kind: "section";
|
|
556
|
-
readonly marks?: {
|
|
557
|
-
readonly blank: number;
|
|
558
|
-
readonly correct: number;
|
|
559
|
-
readonly wrong: number;
|
|
560
|
-
};
|
|
567
|
+
readonly kind: "country";
|
|
561
568
|
readonly order: number;
|
|
562
|
-
readonly publicPath
|
|
563
|
-
readonly questionCount: number;
|
|
564
|
-
readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
565
|
-
readonly sectionKey: string;
|
|
566
|
-
readonly setKey: string;
|
|
567
|
-
readonly timeLimitSeconds: number;
|
|
568
|
-
readonly trackKey: string;
|
|
569
|
-
readonly visibility: "internal-entry" | "visible";
|
|
569
|
+
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
570
570
|
};
|
|
571
571
|
readonly rowHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
572
572
|
};
|
|
@@ -599,12 +599,17 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
|
|
|
599
599
|
readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
600
600
|
readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
601
601
|
readonly response: {
|
|
602
|
-
readonly
|
|
603
|
-
|
|
604
|
-
readonly
|
|
602
|
+
readonly categories: readonly {
|
|
603
|
+
readonly categoryKey: string;
|
|
604
|
+
readonly label: string;
|
|
605
|
+
readonly order: number;
|
|
606
|
+
}[];
|
|
607
|
+
readonly kind: "category";
|
|
608
|
+
readonly statements: readonly {
|
|
609
|
+
readonly correctCategoryKey: string;
|
|
605
610
|
readonly label: string;
|
|
606
|
-
readonly optionKey: string;
|
|
607
611
|
readonly order: number;
|
|
612
|
+
readonly statementKey: string;
|
|
608
613
|
}[];
|
|
609
614
|
} | {
|
|
610
615
|
readonly kind: "multiple-choice";
|
|
@@ -615,17 +620,12 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
|
|
|
615
620
|
readonly order: number;
|
|
616
621
|
}[];
|
|
617
622
|
} | {
|
|
618
|
-
readonly
|
|
619
|
-
|
|
620
|
-
readonly
|
|
621
|
-
readonly order: number;
|
|
622
|
-
}[];
|
|
623
|
-
readonly kind: "category";
|
|
624
|
-
readonly statements: readonly {
|
|
625
|
-
readonly correctCategoryKey: string;
|
|
623
|
+
readonly kind: "single-choice";
|
|
624
|
+
readonly options: readonly {
|
|
625
|
+
readonly isCorrect: boolean;
|
|
626
626
|
readonly label: string;
|
|
627
|
+
readonly optionKey: string;
|
|
627
628
|
readonly order: number;
|
|
628
|
-
readonly statementKey: string;
|
|
629
629
|
}[];
|
|
630
630
|
} | {
|
|
631
631
|
readonly criteria: readonly {
|
package/dist/release/spec.d.ts
CHANGED
|
@@ -2,8 +2,6 @@ import { Schema } from "effect";
|
|
|
2
2
|
import { type AppLocale } from "#contracts/locale";
|
|
3
3
|
/** Semantic wire identity of the current localized content release. */
|
|
4
4
|
export declare const CONTENT_RELEASE_FORMAT = "localized-content-release";
|
|
5
|
-
/** Nonnegative release inventory count authenticated by one manifest. */
|
|
6
|
-
export declare const ReleaseCountSchema: Schema.Finite;
|
|
7
5
|
/** One immutable artifact selected for a locale-specific content head. */
|
|
8
6
|
export declare const ContentUpsertSchema: Schema.Struct<{
|
|
9
7
|
readonly artifactHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
package/dist/release/spec.js
CHANGED
|
@@ -3,6 +3,8 @@ import { ContentFamilySchema } from "#contracts/content";
|
|
|
3
3
|
import { ContentDeliveryClassSchema } from "#contracts/delivery";
|
|
4
4
|
import { ContentKeySchema, CorpusSourcePathSchema, Ed25519SignatureSchema, ReleaseIdSchema, Sha256HashSchema, SigningKeyIdSchema, } from "#contracts/ids";
|
|
5
5
|
import { ActiveAppLocaleListSchema, ArtifactLocaleSchema, } from "#contracts/locale";
|
|
6
|
+
import { ReleaseCountSchema } from "#contracts/release/count";
|
|
7
|
+
import { ActiveCatalogIdentitySchema } from "#contracts/release/identity";
|
|
6
8
|
import { ReleaseOriginSchema, RollbackReleaseOriginSchema, } from "#contracts/release/origin";
|
|
7
9
|
import { EMPTY_RESULT_CATALOG_DIGEST } from "#contracts/release/result/spec";
|
|
8
10
|
import { PublicationScopeSchema } from "#contracts/release/snapshot/scope";
|
|
@@ -10,8 +12,6 @@ import { ContentSnapshotSetSchema, hasEmptySnapshotBases, hasGitSnapshotModes, h
|
|
|
10
12
|
import { RendererDomainSchema } from "#contracts/renderer/domain";
|
|
11
13
|
/** Semantic wire identity of the current localized content release. */
|
|
12
14
|
export const CONTENT_RELEASE_FORMAT = "localized-content-release";
|
|
13
|
-
/** Nonnegative release inventory count authenticated by one manifest. */
|
|
14
|
-
export const ReleaseCountSchema = Schema.Finite.pipe(Schema.check(Schema.isInt()), Schema.check(Schema.isGreaterThanOrEqualTo(0)));
|
|
15
15
|
/** Stable inventory and provenance fields owned by the current release. */
|
|
16
16
|
const ContentReleaseManifestFields = {
|
|
17
17
|
baseActiveAppLocales: Schema.NullOr(ActiveAppLocaleListSchema),
|
|
@@ -133,7 +133,7 @@ function hasCoherentVerificationCounts(input) {
|
|
|
133
133
|
}
|
|
134
134
|
/** Pre-activation evidence proving the fully staged release is coherent. */
|
|
135
135
|
export const ReleaseVerificationEvidenceSchema = Schema.Struct({
|
|
136
|
-
activeAppLocales:
|
|
136
|
+
activeAppLocales: ActiveCatalogIdentitySchema.fields.activeAppLocales,
|
|
137
137
|
baseActiveAppLocales: Schema.NullOr(ActiveAppLocaleListSchema),
|
|
138
138
|
baseManifestHash: Schema.NullOr(Sha256HashSchema),
|
|
139
139
|
baseReleaseId: Schema.NullOr(ReleaseIdSchema),
|
|
@@ -142,18 +142,18 @@ export const ReleaseVerificationEvidenceSchema = Schema.Struct({
|
|
|
142
142
|
deleteHeads: ReleaseCountSchema,
|
|
143
143
|
itemCount: ReleaseCountSchema,
|
|
144
144
|
itemsDigest: Sha256HashSchema,
|
|
145
|
-
manifestHash:
|
|
145
|
+
manifestHash: ActiveCatalogIdentitySchema.fields.manifestHash,
|
|
146
146
|
projectionCount: ReleaseCountSchema,
|
|
147
147
|
projectionDigest: Sha256HashSchema,
|
|
148
|
-
releaseId:
|
|
148
|
+
releaseId: ActiveCatalogIdentitySchema.fields.releaseId,
|
|
149
149
|
rendererManifestHash: Sha256HashSchema,
|
|
150
|
-
resultCount:
|
|
151
|
-
resultDigest:
|
|
150
|
+
resultCount: ActiveCatalogIdentitySchema.fields.resultCount,
|
|
151
|
+
resultDigest: ActiveCatalogIdentitySchema.fields.resultDigest,
|
|
152
152
|
rollbackCount: ReleaseCountSchema,
|
|
153
153
|
rollbackDigest: Sha256HashSchema,
|
|
154
154
|
routeCount: ReleaseCountSchema,
|
|
155
155
|
routeDigest: Sha256HashSchema,
|
|
156
|
-
snapshots:
|
|
156
|
+
snapshots: ActiveCatalogIdentitySchema.fields.snapshots,
|
|
157
157
|
stagedArtifacts: ReleaseCountSchema,
|
|
158
158
|
stagedRoutes: ReleaseCountSchema,
|
|
159
159
|
stagedSnapshotRows: ReleaseCountSchema,
|
|
@@ -180,15 +180,15 @@ export const ReleaseVerificationStatusSchema = Schema.Union([
|
|
|
180
180
|
/** Delta evidence returned after a release is staged and activated. */
|
|
181
181
|
export const PublicationReceiptSchema = Schema.Struct({
|
|
182
182
|
activatedHeads: ReleaseCountSchema,
|
|
183
|
-
activeAppLocales:
|
|
183
|
+
activeAppLocales: ActiveCatalogIdentitySchema.fields.activeAppLocales,
|
|
184
184
|
deletedHeads: ReleaseCountSchema,
|
|
185
|
-
manifestHash:
|
|
185
|
+
manifestHash: ActiveCatalogIdentitySchema.fields.manifestHash,
|
|
186
186
|
projectionDigest: Sha256HashSchema,
|
|
187
|
-
releaseId:
|
|
188
|
-
resultCount:
|
|
189
|
-
resultDigest:
|
|
187
|
+
releaseId: ActiveCatalogIdentitySchema.fields.releaseId,
|
|
188
|
+
resultCount: ActiveCatalogIdentitySchema.fields.resultCount,
|
|
189
|
+
resultDigest: ActiveCatalogIdentitySchema.fields.resultDigest,
|
|
190
190
|
routeDigest: Sha256HashSchema,
|
|
191
|
-
snapshots:
|
|
191
|
+
snapshots: ActiveCatalogIdentitySchema.fields.snapshots,
|
|
192
192
|
stagedArtifacts: ReleaseCountSchema,
|
|
193
193
|
stagedItems: ReleaseCountSchema,
|
|
194
194
|
stagedProjections: ReleaseCountSchema,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Array as Arr, Effect, HashSet, Option, Order, Schema } from "effect";
|
|
2
|
+
import { Sha256MismatchFields } from "#contracts/errors";
|
|
2
3
|
import { Sha256HashSchema } from "#contracts/ids";
|
|
3
4
|
import { RendererComponentsSchema, } from "#contracts/renderer/component";
|
|
4
5
|
import { RENDERER_DOMAINS, RendererDomainSchema, } from "#contracts/renderer/domain";
|
|
@@ -65,10 +66,7 @@ export const selectRendererDomainCapability = Effect.fn("AksaraContracts.selectR
|
|
|
65
66
|
export class RendererManifestHashComputeError extends Schema.TaggedError()("RendererManifestHashComputeError", { cause: Schema.Unknown }) {
|
|
66
67
|
}
|
|
67
68
|
/** The renderer envelope hash does not authenticate its canonical tuple. */
|
|
68
|
-
export class RendererManifestHashMismatchError extends Schema.TaggedError()("RendererManifestHashMismatchError", {
|
|
69
|
-
actualHash: Sha256HashSchema,
|
|
70
|
-
expectedHash: Sha256HashSchema,
|
|
71
|
-
}) {
|
|
69
|
+
export class RendererManifestHashMismatchError extends Schema.TaggedError()("RendererManifestHashMismatchError", { ...Sha256MismatchFields }) {
|
|
72
70
|
}
|
|
73
71
|
/** Serializes the exact domain-scoped renderer tuple covered by SHA-256. */
|
|
74
72
|
export function canonicalizeRendererManifestContract(input) {
|
package/dist/runtime/verify.d.ts
CHANGED
|
@@ -109,11 +109,7 @@ export declare const verifyContentRuntimeEvidenceExchange: (input: {
|
|
|
109
109
|
readonly delivery: "public";
|
|
110
110
|
readonly projection: {
|
|
111
111
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
112
|
-
readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
113
|
-
readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
|
|
114
112
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
115
|
-
readonly category: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleCategory">;
|
|
116
|
-
readonly categoryRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
117
113
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
118
114
|
readonly graph: {
|
|
119
115
|
readonly alignmentId: string;
|
|
@@ -122,9 +118,11 @@ export declare const verifyContentRuntimeEvidenceExchange: (input: {
|
|
|
122
118
|
readonly learningObjectId: string;
|
|
123
119
|
readonly lensId: string;
|
|
124
120
|
};
|
|
121
|
+
readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
|
|
122
|
+
readonly order: number;
|
|
125
123
|
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
126
|
-
readonly
|
|
127
|
-
readonly kind: "
|
|
124
|
+
readonly sectionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialSection">;
|
|
125
|
+
readonly kind: "subject-lesson";
|
|
128
126
|
readonly metadata: {
|
|
129
127
|
readonly dateModified?: string;
|
|
130
128
|
readonly datePublished: string;
|
|
@@ -132,23 +130,20 @@ export declare const verifyContentRuntimeEvidenceExchange: (input: {
|
|
|
132
130
|
readonly name: string;
|
|
133
131
|
}[];
|
|
134
132
|
readonly description?: string | undefined;
|
|
133
|
+
readonly searchTitle?: string;
|
|
134
|
+
readonly subject?: string | undefined;
|
|
135
135
|
readonly title: string;
|
|
136
136
|
};
|
|
137
|
-
readonly official: boolean;
|
|
138
137
|
readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
139
|
-
readonly references: readonly {
|
|
140
|
-
readonly authors: string;
|
|
141
|
-
readonly citation?: string | undefined;
|
|
142
|
-
readonly details?: string | undefined;
|
|
143
|
-
readonly publication?: string | undefined;
|
|
144
|
-
readonly title: string;
|
|
145
|
-
readonly url?: string | undefined;
|
|
146
|
-
readonly year: number;
|
|
147
|
-
}[];
|
|
148
138
|
readonly sitemap: true;
|
|
139
|
+
readonly topicTitle: string;
|
|
149
140
|
} | {
|
|
150
141
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
142
|
+
readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
143
|
+
readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
|
|
151
144
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
145
|
+
readonly category: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleCategory">;
|
|
146
|
+
readonly categoryRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
152
147
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
153
148
|
readonly graph: {
|
|
154
149
|
readonly alignmentId: string;
|
|
@@ -157,11 +152,9 @@ export declare const verifyContentRuntimeEvidenceExchange: (input: {
|
|
|
157
152
|
readonly learningObjectId: string;
|
|
158
153
|
readonly lensId: string;
|
|
159
154
|
};
|
|
160
|
-
readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
|
|
161
|
-
readonly order: number;
|
|
162
155
|
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
163
|
-
readonly
|
|
164
|
-
readonly kind: "
|
|
156
|
+
readonly categoryTitle: string;
|
|
157
|
+
readonly kind: "article";
|
|
165
158
|
readonly metadata: {
|
|
166
159
|
readonly dateModified?: string;
|
|
167
160
|
readonly datePublished: string;
|
|
@@ -169,13 +162,20 @@ export declare const verifyContentRuntimeEvidenceExchange: (input: {
|
|
|
169
162
|
readonly name: string;
|
|
170
163
|
}[];
|
|
171
164
|
readonly description?: string | undefined;
|
|
172
|
-
readonly searchTitle?: string;
|
|
173
|
-
readonly subject?: string | undefined;
|
|
174
165
|
readonly title: string;
|
|
175
166
|
};
|
|
167
|
+
readonly official: boolean;
|
|
176
168
|
readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
169
|
+
readonly references: readonly {
|
|
170
|
+
readonly authors: string;
|
|
171
|
+
readonly citation?: string | undefined;
|
|
172
|
+
readonly details?: string | undefined;
|
|
173
|
+
readonly publication?: string | undefined;
|
|
174
|
+
readonly title: string;
|
|
175
|
+
readonly url?: string | undefined;
|
|
176
|
+
readonly year: number;
|
|
177
|
+
}[];
|
|
177
178
|
readonly sitemap: true;
|
|
178
|
-
readonly topicTitle: string;
|
|
179
179
|
} | {
|
|
180
180
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
181
181
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
@@ -309,11 +309,7 @@ export declare const verifyContentRuntimeExchange: (input: {
|
|
|
309
309
|
readonly delivery: "public";
|
|
310
310
|
readonly projection: {
|
|
311
311
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
312
|
-
readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
313
|
-
readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
|
|
314
312
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
315
|
-
readonly category: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleCategory">;
|
|
316
|
-
readonly categoryRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
317
313
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
318
314
|
readonly graph: {
|
|
319
315
|
readonly alignmentId: string;
|
|
@@ -322,9 +318,11 @@ export declare const verifyContentRuntimeExchange: (input: {
|
|
|
322
318
|
readonly learningObjectId: string;
|
|
323
319
|
readonly lensId: string;
|
|
324
320
|
};
|
|
321
|
+
readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
|
|
322
|
+
readonly order: number;
|
|
325
323
|
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
326
|
-
readonly
|
|
327
|
-
readonly kind: "
|
|
324
|
+
readonly sectionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialSection">;
|
|
325
|
+
readonly kind: "subject-lesson";
|
|
328
326
|
readonly metadata: {
|
|
329
327
|
readonly dateModified?: string;
|
|
330
328
|
readonly datePublished: string;
|
|
@@ -332,23 +330,20 @@ export declare const verifyContentRuntimeExchange: (input: {
|
|
|
332
330
|
readonly name: string;
|
|
333
331
|
}[];
|
|
334
332
|
readonly description?: string | undefined;
|
|
333
|
+
readonly searchTitle?: string;
|
|
334
|
+
readonly subject?: string | undefined;
|
|
335
335
|
readonly title: string;
|
|
336
336
|
};
|
|
337
|
-
readonly official: boolean;
|
|
338
337
|
readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
339
|
-
readonly references: readonly {
|
|
340
|
-
readonly authors: string;
|
|
341
|
-
readonly citation?: string | undefined;
|
|
342
|
-
readonly details?: string | undefined;
|
|
343
|
-
readonly publication?: string | undefined;
|
|
344
|
-
readonly title: string;
|
|
345
|
-
readonly url?: string | undefined;
|
|
346
|
-
readonly year: number;
|
|
347
|
-
}[];
|
|
348
338
|
readonly sitemap: true;
|
|
339
|
+
readonly topicTitle: string;
|
|
349
340
|
} | {
|
|
350
341
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
342
|
+
readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
343
|
+
readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
|
|
351
344
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
345
|
+
readonly category: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleCategory">;
|
|
346
|
+
readonly categoryRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
352
347
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
353
348
|
readonly graph: {
|
|
354
349
|
readonly alignmentId: string;
|
|
@@ -357,11 +352,9 @@ export declare const verifyContentRuntimeExchange: (input: {
|
|
|
357
352
|
readonly learningObjectId: string;
|
|
358
353
|
readonly lensId: string;
|
|
359
354
|
};
|
|
360
|
-
readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
|
|
361
|
-
readonly order: number;
|
|
362
355
|
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
363
|
-
readonly
|
|
364
|
-
readonly kind: "
|
|
356
|
+
readonly categoryTitle: string;
|
|
357
|
+
readonly kind: "article";
|
|
365
358
|
readonly metadata: {
|
|
366
359
|
readonly dateModified?: string;
|
|
367
360
|
readonly datePublished: string;
|
|
@@ -369,13 +362,20 @@ export declare const verifyContentRuntimeExchange: (input: {
|
|
|
369
362
|
readonly name: string;
|
|
370
363
|
}[];
|
|
371
364
|
readonly description?: string | undefined;
|
|
372
|
-
readonly searchTitle?: string;
|
|
373
|
-
readonly subject?: string | undefined;
|
|
374
365
|
readonly title: string;
|
|
375
366
|
};
|
|
367
|
+
readonly official: boolean;
|
|
376
368
|
readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
369
|
+
readonly references: readonly {
|
|
370
|
+
readonly authors: string;
|
|
371
|
+
readonly citation?: string | undefined;
|
|
372
|
+
readonly details?: string | undefined;
|
|
373
|
+
readonly publication?: string | undefined;
|
|
374
|
+
readonly title: string;
|
|
375
|
+
readonly url?: string | undefined;
|
|
376
|
+
readonly year: number;
|
|
377
|
+
}[];
|
|
377
378
|
readonly sitemap: true;
|
|
378
|
-
readonly topicTitle: string;
|
|
379
379
|
} | {
|
|
380
380
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
381
381
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|