@nakafa/aksara-contracts 4.1.1 → 4.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/assessment/hash.d.ts +327 -327
- package/dist/assessment/paper.d.ts +139 -139
- package/dist/assessment/snapshot.d.ts +332 -332
- package/dist/locale.d.ts +1 -1
- package/dist/math/visual.d.ts +202 -202
- package/dist/quran/snapshot/row/hash.d.ts +80 -80
- package/dist/release/snapshot/verify.d.ts +209 -209
- package/dist/runtime/spec.d.ts +28 -28
- package/dist/runtime/verify.d.ts +40 -40
- package/dist/transport/request.d.ts +2423 -2423
- package/dist/transport/response.d.ts +571 -571
- package/package.json +1 -1
package/dist/runtime/spec.d.ts
CHANGED
|
@@ -423,6 +423,11 @@ export declare const decodePublicContentRuntimeRequest: (input: unknown) => Effe
|
|
|
423
423
|
}, import("../errors.js").ContractDecodeError, never>;
|
|
424
424
|
/** Strictly decodes one unknown public server-runtime response. */
|
|
425
425
|
export declare const decodePublicContentRuntimeResponse: (input: unknown) => Effect.Effect<{
|
|
426
|
+
readonly kind: "missing";
|
|
427
|
+
} | {
|
|
428
|
+
readonly code: "CONTENT_RUNTIME_INTERNAL" | "CONTENT_RUNTIME_INVALID" | "CONTENT_RUNTIME_RESPONSE_TOO_LARGE" | "CONTENT_RUNTIME_UNAUTHORIZED";
|
|
429
|
+
readonly kind: "failure";
|
|
430
|
+
} | {
|
|
426
431
|
readonly artifact: {
|
|
427
432
|
readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
428
433
|
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
@@ -528,7 +533,11 @@ export declare const decodePublicContentRuntimeResponse: (input: unknown) => Eff
|
|
|
528
533
|
readonly delivery: "public";
|
|
529
534
|
readonly projection: {
|
|
530
535
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
536
|
+
readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
537
|
+
readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
|
|
531
538
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
539
|
+
readonly category: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleCategory">;
|
|
540
|
+
readonly categoryRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
532
541
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
533
542
|
readonly graph: {
|
|
534
543
|
readonly alignmentId: string;
|
|
@@ -537,11 +546,9 @@ export declare const decodePublicContentRuntimeResponse: (input: unknown) => Eff
|
|
|
537
546
|
readonly learningObjectId: string;
|
|
538
547
|
readonly lensId: string;
|
|
539
548
|
};
|
|
540
|
-
readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
|
|
541
|
-
readonly order: number;
|
|
542
549
|
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
543
|
-
readonly
|
|
544
|
-
readonly kind: "
|
|
550
|
+
readonly categoryTitle: string;
|
|
551
|
+
readonly kind: "article";
|
|
545
552
|
readonly metadata: {
|
|
546
553
|
readonly dateModified?: string;
|
|
547
554
|
readonly datePublished: string;
|
|
@@ -549,20 +556,23 @@ export declare const decodePublicContentRuntimeResponse: (input: unknown) => Eff
|
|
|
549
556
|
readonly name: string;
|
|
550
557
|
}[];
|
|
551
558
|
readonly description?: string | undefined;
|
|
552
|
-
readonly searchTitle?: string;
|
|
553
|
-
readonly subject?: string | undefined;
|
|
554
559
|
readonly title: string;
|
|
555
560
|
};
|
|
561
|
+
readonly official: boolean;
|
|
556
562
|
readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
563
|
+
readonly references: readonly {
|
|
564
|
+
readonly authors: string;
|
|
565
|
+
readonly citation?: string | undefined;
|
|
566
|
+
readonly details?: string | undefined;
|
|
567
|
+
readonly publication?: string | undefined;
|
|
568
|
+
readonly title: string;
|
|
569
|
+
readonly url?: string | undefined;
|
|
570
|
+
readonly year: number;
|
|
571
|
+
}[];
|
|
557
572
|
readonly sitemap: true;
|
|
558
|
-
readonly topicTitle: string;
|
|
559
573
|
} | {
|
|
560
574
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
561
|
-
readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
562
|
-
readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
|
|
563
575
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
564
|
-
readonly category: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleCategory">;
|
|
565
|
-
readonly categoryRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
566
576
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
567
577
|
readonly graph: {
|
|
568
578
|
readonly alignmentId: string;
|
|
@@ -571,9 +581,11 @@ export declare const decodePublicContentRuntimeResponse: (input: unknown) => Eff
|
|
|
571
581
|
readonly learningObjectId: string;
|
|
572
582
|
readonly lensId: string;
|
|
573
583
|
};
|
|
584
|
+
readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
|
|
585
|
+
readonly order: number;
|
|
574
586
|
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
575
|
-
readonly
|
|
576
|
-
readonly kind: "
|
|
587
|
+
readonly sectionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialSection">;
|
|
588
|
+
readonly kind: "subject-lesson";
|
|
577
589
|
readonly metadata: {
|
|
578
590
|
readonly dateModified?: string;
|
|
579
591
|
readonly datePublished: string;
|
|
@@ -581,20 +593,13 @@ export declare const decodePublicContentRuntimeResponse: (input: unknown) => Eff
|
|
|
581
593
|
readonly name: string;
|
|
582
594
|
}[];
|
|
583
595
|
readonly description?: string | undefined;
|
|
596
|
+
readonly searchTitle?: string;
|
|
597
|
+
readonly subject?: string | undefined;
|
|
584
598
|
readonly title: string;
|
|
585
599
|
};
|
|
586
|
-
readonly official: boolean;
|
|
587
600
|
readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
588
|
-
readonly references: readonly {
|
|
589
|
-
readonly authors: string;
|
|
590
|
-
readonly citation?: string | undefined;
|
|
591
|
-
readonly details?: string | undefined;
|
|
592
|
-
readonly publication?: string | undefined;
|
|
593
|
-
readonly title: string;
|
|
594
|
-
readonly url?: string | undefined;
|
|
595
|
-
readonly year: number;
|
|
596
|
-
}[];
|
|
597
601
|
readonly sitemap: true;
|
|
602
|
+
readonly topicTitle: string;
|
|
598
603
|
} | {
|
|
599
604
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
600
605
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
@@ -612,9 +617,4 @@ export declare const decodePublicContentRuntimeResponse: (input: unknown) => Eff
|
|
|
612
617
|
readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
613
618
|
};
|
|
614
619
|
readonly projectionHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
615
|
-
} | {
|
|
616
|
-
readonly kind: "missing";
|
|
617
|
-
} | {
|
|
618
|
-
readonly code: "CONTENT_RUNTIME_INTERNAL" | "CONTENT_RUNTIME_INVALID" | "CONTENT_RUNTIME_RESPONSE_TOO_LARGE" | "CONTENT_RUNTIME_UNAUTHORIZED";
|
|
619
|
-
readonly kind: "failure";
|
|
620
620
|
}, import("../errors.js").ContractDecodeError, never>;
|
package/dist/runtime/verify.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ export declare const verifyContentRuntimeEvidenceExchange: (input: {
|
|
|
10
10
|
readonly request: unknown;
|
|
11
11
|
readonly response: unknown;
|
|
12
12
|
}) => Effect.Effect<{
|
|
13
|
+
readonly kind: "missing";
|
|
14
|
+
} | {
|
|
15
|
+
readonly code: "CONTENT_RUNTIME_INTERNAL" | "CONTENT_RUNTIME_INVALID" | "CONTENT_RUNTIME_RESPONSE_TOO_LARGE" | "CONTENT_RUNTIME_UNAUTHORIZED";
|
|
16
|
+
readonly kind: "failure";
|
|
17
|
+
} | {
|
|
13
18
|
readonly artifact: {
|
|
14
19
|
readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
15
20
|
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
@@ -114,21 +119,6 @@ export declare const verifyContentRuntimeEvidenceExchange: (input: {
|
|
|
114
119
|
readonly activeReleaseId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">;
|
|
115
120
|
readonly delivery: "public";
|
|
116
121
|
readonly projection: {
|
|
117
|
-
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
118
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
119
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
120
|
-
readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
|
|
121
|
-
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
122
|
-
readonly kind: "public-page";
|
|
123
|
-
readonly metadata: {
|
|
124
|
-
readonly dateModified?: string;
|
|
125
|
-
readonly datePublished: string;
|
|
126
|
-
readonly description: string;
|
|
127
|
-
readonly title: string;
|
|
128
|
-
};
|
|
129
|
-
readonly sitemap: true;
|
|
130
|
-
readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
131
|
-
} | {
|
|
132
122
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
133
123
|
readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
134
124
|
readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
|
|
@@ -197,13 +187,23 @@ export declare const verifyContentRuntimeEvidenceExchange: (input: {
|
|
|
197
187
|
readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
198
188
|
readonly sitemap: true;
|
|
199
189
|
readonly topicTitle: string;
|
|
190
|
+
} | {
|
|
191
|
+
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
192
|
+
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
193
|
+
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
194
|
+
readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
|
|
195
|
+
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
196
|
+
readonly kind: "public-page";
|
|
197
|
+
readonly metadata: {
|
|
198
|
+
readonly dateModified?: string;
|
|
199
|
+
readonly datePublished: string;
|
|
200
|
+
readonly description: string;
|
|
201
|
+
readonly title: string;
|
|
202
|
+
};
|
|
203
|
+
readonly sitemap: true;
|
|
204
|
+
readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
200
205
|
};
|
|
201
206
|
readonly projectionHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
202
|
-
} | {
|
|
203
|
-
readonly kind: "missing";
|
|
204
|
-
} | {
|
|
205
|
-
readonly code: "CONTENT_RUNTIME_INTERNAL" | "CONTENT_RUNTIME_INVALID" | "CONTENT_RUNTIME_RESPONSE_TOO_LARGE" | "CONTENT_RUNTIME_UNAUTHORIZED";
|
|
206
|
-
readonly kind: "failure";
|
|
207
207
|
}, import("../artifact/spec.js").ArtifactHashMismatchError | import("../artifact/spec.js").ArtifactPayloadFieldByteLimitError | import("../artifact/spec.js").ArtifactRendererComponentMissingError | import("../artifact/spec.js").ArtifactRendererDomainUnpublishedError | import("../artifact/spec.js").ArtifactSourceHashMismatchError | import("../artifact/spec.js").ArtifactTreeComponentUnlistedError | import("../artifact/spec.js").ArtifactVerificationByteLimitError | import("../artifact/spec.js").ArtifactVerificationDecodeError | ContentRuntimeMismatchError | import("../errors.js").ContractDecodeError | import("../signature/spec.js").PublicKeyParseError | import("../signature/spec.js").PublicKeyTypeError | import("#contracts/release/verify").ReleaseBundleVerificationDecodeError | import("#contracts/release/verify").ReleaseManifestHashMismatchError | import("#contracts/release/verify").ReleaseVerificationDecodeError | import("../renderer/contract.js").RendererDomainCapabilityMissingError | import("../renderer/contract.js").RendererManifestHashMismatchError | import("../signature/spec.js").SignatureCheckError | import("../signature/spec.js").SignatureInvalidError | import("../signature/spec.js").SigningKeyNotFoundError | import("../signature/spec.js").SigningKeyResolutionError, import("../signature/spec.js").ContentVerificationKeyResolver>;
|
|
208
208
|
/**
|
|
209
209
|
* Verifies independently signed runtime values selected for one exact request.
|
|
@@ -216,6 +216,11 @@ export declare const verifyContentRuntimeExchange: (input: {
|
|
|
216
216
|
readonly request: unknown;
|
|
217
217
|
readonly response: unknown;
|
|
218
218
|
}) => Effect.Effect<{
|
|
219
|
+
readonly kind: "missing";
|
|
220
|
+
} | {
|
|
221
|
+
readonly code: "CONTENT_RUNTIME_INTERNAL" | "CONTENT_RUNTIME_INVALID" | "CONTENT_RUNTIME_RESPONSE_TOO_LARGE" | "CONTENT_RUNTIME_UNAUTHORIZED";
|
|
222
|
+
readonly kind: "failure";
|
|
223
|
+
} | {
|
|
219
224
|
readonly artifact: {
|
|
220
225
|
readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
221
226
|
readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
|
|
@@ -320,21 +325,6 @@ export declare const verifyContentRuntimeExchange: (input: {
|
|
|
320
325
|
readonly activeReleaseId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">;
|
|
321
326
|
readonly delivery: "public";
|
|
322
327
|
readonly projection: {
|
|
323
|
-
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
324
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
325
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
326
|
-
readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
|
|
327
|
-
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
328
|
-
readonly kind: "public-page";
|
|
329
|
-
readonly metadata: {
|
|
330
|
-
readonly dateModified?: string;
|
|
331
|
-
readonly datePublished: string;
|
|
332
|
-
readonly description: string;
|
|
333
|
-
readonly title: string;
|
|
334
|
-
};
|
|
335
|
-
readonly sitemap: true;
|
|
336
|
-
readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
337
|
-
} | {
|
|
338
328
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
339
329
|
readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
340
330
|
readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
|
|
@@ -403,11 +393,21 @@ export declare const verifyContentRuntimeExchange: (input: {
|
|
|
403
393
|
readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
404
394
|
readonly sitemap: true;
|
|
405
395
|
readonly topicTitle: string;
|
|
396
|
+
} | {
|
|
397
|
+
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
398
|
+
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
399
|
+
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
400
|
+
readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
|
|
401
|
+
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
402
|
+
readonly kind: "public-page";
|
|
403
|
+
readonly metadata: {
|
|
404
|
+
readonly dateModified?: string;
|
|
405
|
+
readonly datePublished: string;
|
|
406
|
+
readonly description: string;
|
|
407
|
+
readonly title: string;
|
|
408
|
+
};
|
|
409
|
+
readonly sitemap: true;
|
|
410
|
+
readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
406
411
|
};
|
|
407
412
|
readonly projectionHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
408
|
-
} | {
|
|
409
|
-
readonly kind: "missing";
|
|
410
|
-
} | {
|
|
411
|
-
readonly code: "CONTENT_RUNTIME_INTERNAL" | "CONTENT_RUNTIME_INVALID" | "CONTENT_RUNTIME_RESPONSE_TOO_LARGE" | "CONTENT_RUNTIME_UNAUTHORIZED";
|
|
412
|
-
readonly kind: "failure";
|
|
413
413
|
}, import("../artifact/spec.js").ArtifactHashMismatchError | import("../artifact/spec.js").ArtifactPayloadFieldByteLimitError | import("../artifact/spec.js").ArtifactRendererComponentMissingError | import("../artifact/spec.js").ArtifactRendererDomainUnpublishedError | import("../artifact/spec.js").ArtifactSourceHashMismatchError | import("../artifact/spec.js").ArtifactTreeComponentUnlistedError | import("../artifact/spec.js").ArtifactVerificationByteLimitError | import("../artifact/spec.js").ArtifactVerificationDecodeError | ContentRuntimeMismatchError | import("../errors.js").ContractDecodeError | import("../signature/spec.js").PublicKeyParseError | import("../signature/spec.js").PublicKeyTypeError | import("#contracts/release/verify").ReleaseBundleVerificationDecodeError | import("#contracts/release/verify").ReleaseManifestHashMismatchError | import("#contracts/release/verify").ReleaseVerificationDecodeError | import("../renderer/contract.js").RendererDomainCapabilityMissingError | import("../renderer/contract.js").RendererManifestHashMismatchError | import("../signature/spec.js").SignatureCheckError | import("../signature/spec.js").SignatureInvalidError | import("../signature/spec.js").SigningKeyNotFoundError | import("../signature/spec.js").SigningKeyResolutionError, import("../signature/spec.js").ContentVerificationKeyResolver>;
|