@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
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @nakafa/aksara-contracts
|
|
2
2
|
|
|
3
3
|
This package defines exact runtime contracts for the Aksara compiler and
|
|
4
|
-
publisher. Nakafa runtime
|
|
4
|
+
publisher. Nakafa runtime consumes the exact published contract: a proven npm
|
|
5
5
|
package, its immutable release archive, and compatible renderer support.
|
|
6
6
|
|
|
7
7
|
This package contains schemas, branded identifiers, canonical wire encodings,
|
|
@@ -27,11 +27,7 @@ export declare function finalizeProjectionDigest(releaseId: typeof ReleaseIdSche
|
|
|
27
27
|
/** Digests a projection stream without retaining its content bodies. */
|
|
28
28
|
export declare const digestProjections: <E, R>(releaseId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">, projections: Stream.Stream<{
|
|
29
29
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
30
|
-
readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
31
|
-
readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
|
|
32
30
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
33
|
-
readonly category: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleCategory">;
|
|
34
|
-
readonly categoryRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
35
31
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
36
32
|
readonly graph: {
|
|
37
33
|
readonly alignmentId: string;
|
|
@@ -40,9 +36,11 @@ export declare const digestProjections: <E, R>(releaseId: string & import("effec
|
|
|
40
36
|
readonly learningObjectId: string;
|
|
41
37
|
readonly lensId: string;
|
|
42
38
|
};
|
|
39
|
+
readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
|
|
40
|
+
readonly order: number;
|
|
43
41
|
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
44
|
-
readonly
|
|
45
|
-
readonly kind: "
|
|
42
|
+
readonly sectionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialSection">;
|
|
43
|
+
readonly kind: "subject-lesson";
|
|
46
44
|
readonly metadata: {
|
|
47
45
|
readonly dateModified?: string;
|
|
48
46
|
readonly datePublished: string;
|
|
@@ -50,23 +48,19 @@ export declare const digestProjections: <E, R>(releaseId: string & import("effec
|
|
|
50
48
|
readonly name: string;
|
|
51
49
|
}[];
|
|
52
50
|
readonly description?: string | undefined;
|
|
51
|
+
readonly subject?: string | undefined;
|
|
53
52
|
readonly title: string;
|
|
54
53
|
};
|
|
55
|
-
readonly official: boolean;
|
|
56
54
|
readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
57
|
-
readonly references: readonly {
|
|
58
|
-
readonly authors: string;
|
|
59
|
-
readonly citation?: string | undefined;
|
|
60
|
-
readonly details?: string | undefined;
|
|
61
|
-
readonly publication?: string | undefined;
|
|
62
|
-
readonly title: string;
|
|
63
|
-
readonly url?: string | undefined;
|
|
64
|
-
readonly year: number;
|
|
65
|
-
}[];
|
|
66
55
|
readonly sitemap: true;
|
|
56
|
+
readonly topicTitle: string;
|
|
67
57
|
} | {
|
|
68
58
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
59
|
+
readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
60
|
+
readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
|
|
69
61
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
62
|
+
readonly category: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleCategory">;
|
|
63
|
+
readonly categoryRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
70
64
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
71
65
|
readonly graph: {
|
|
72
66
|
readonly alignmentId: string;
|
|
@@ -75,11 +69,9 @@ export declare const digestProjections: <E, R>(releaseId: string & import("effec
|
|
|
75
69
|
readonly learningObjectId: string;
|
|
76
70
|
readonly lensId: string;
|
|
77
71
|
};
|
|
78
|
-
readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
|
|
79
|
-
readonly order: number;
|
|
80
72
|
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
81
|
-
readonly
|
|
82
|
-
readonly kind: "
|
|
73
|
+
readonly categoryTitle: string;
|
|
74
|
+
readonly kind: "article";
|
|
83
75
|
readonly metadata: {
|
|
84
76
|
readonly dateModified?: string;
|
|
85
77
|
readonly datePublished: string;
|
|
@@ -87,12 +79,20 @@ export declare const digestProjections: <E, R>(releaseId: string & import("effec
|
|
|
87
79
|
readonly name: string;
|
|
88
80
|
}[];
|
|
89
81
|
readonly description?: string | undefined;
|
|
90
|
-
readonly subject?: string | undefined;
|
|
91
82
|
readonly title: string;
|
|
92
83
|
};
|
|
84
|
+
readonly official: boolean;
|
|
93
85
|
readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
86
|
+
readonly references: readonly {
|
|
87
|
+
readonly authors: string;
|
|
88
|
+
readonly citation?: string | undefined;
|
|
89
|
+
readonly details?: string | undefined;
|
|
90
|
+
readonly publication?: string | undefined;
|
|
91
|
+
readonly title: string;
|
|
92
|
+
readonly url?: string | undefined;
|
|
93
|
+
readonly year: number;
|
|
94
|
+
}[];
|
|
94
95
|
readonly sitemap: true;
|
|
95
|
-
readonly topicTitle: string;
|
|
96
96
|
} | {
|
|
97
97
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
98
98
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
@@ -132,17 +132,12 @@ export declare const digestProjections: <E, R>(releaseId: string & import("effec
|
|
|
132
132
|
};
|
|
133
133
|
readonly stimulusKey?: string;
|
|
134
134
|
readonly response: {
|
|
135
|
-
readonly
|
|
136
|
-
|
|
137
|
-
readonly
|
|
138
|
-
readonly order: number;
|
|
139
|
-
}[];
|
|
140
|
-
readonly kind: "category";
|
|
141
|
-
readonly statements: readonly {
|
|
142
|
-
readonly correctCategoryKey: string;
|
|
135
|
+
readonly kind: "single-choice";
|
|
136
|
+
readonly options: readonly {
|
|
137
|
+
readonly isCorrect: boolean;
|
|
143
138
|
readonly label: string;
|
|
139
|
+
readonly optionKey: string;
|
|
144
140
|
readonly order: number;
|
|
145
|
-
readonly statementKey: string;
|
|
146
141
|
}[];
|
|
147
142
|
} | {
|
|
148
143
|
readonly kind: "multiple-choice";
|
|
@@ -153,12 +148,17 @@ export declare const digestProjections: <E, R>(releaseId: string & import("effec
|
|
|
153
148
|
readonly order: number;
|
|
154
149
|
}[];
|
|
155
150
|
} | {
|
|
156
|
-
readonly
|
|
157
|
-
|
|
158
|
-
readonly
|
|
151
|
+
readonly categories: readonly {
|
|
152
|
+
readonly categoryKey: string;
|
|
153
|
+
readonly label: string;
|
|
154
|
+
readonly order: number;
|
|
155
|
+
}[];
|
|
156
|
+
readonly kind: "category";
|
|
157
|
+
readonly statements: readonly {
|
|
158
|
+
readonly correctCategoryKey: string;
|
|
159
159
|
readonly label: string;
|
|
160
|
-
readonly optionKey: string;
|
|
161
160
|
readonly order: number;
|
|
161
|
+
readonly statementKey: string;
|
|
162
162
|
}[];
|
|
163
163
|
};
|
|
164
164
|
} | {
|
|
@@ -42,34 +42,81 @@ export interface VerifiedContentProjections {
|
|
|
42
42
|
}
|
|
43
43
|
/** Strictly decodes a replayable canonical content projection stream. */
|
|
44
44
|
export declare function decodeContentProjections<E, R>(projections: Stream.Stream<unknown, E, R>): Stream.Stream<{
|
|
45
|
-
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
46
45
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
47
46
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
48
|
-
readonly
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
readonly peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
48
|
+
readonly questionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionKey">;
|
|
49
|
+
readonly questionNumber: number;
|
|
50
|
+
readonly setKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionSetKey">;
|
|
51
|
+
readonly bodyKind: "question";
|
|
52
|
+
readonly blueprint?: {
|
|
53
|
+
readonly cognitiveLevel: string;
|
|
54
|
+
readonly contentDomain: string;
|
|
55
|
+
readonly topic: string;
|
|
54
56
|
};
|
|
55
|
-
readonly
|
|
56
|
-
readonly order: number;
|
|
57
|
-
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
58
|
-
readonly sectionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialSection">;
|
|
59
|
-
readonly kind: "subject-lesson";
|
|
57
|
+
readonly kind: "question-body";
|
|
60
58
|
readonly metadata: {
|
|
61
59
|
readonly dateModified?: string;
|
|
62
60
|
readonly datePublished: string;
|
|
63
61
|
readonly authors: readonly {
|
|
64
62
|
readonly name: string;
|
|
65
63
|
}[];
|
|
66
|
-
readonly description?: string | undefined;
|
|
67
|
-
readonly subject?: string | undefined;
|
|
68
64
|
readonly title: string;
|
|
69
65
|
};
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
|
|
66
|
+
readonly stimulusKey?: string;
|
|
67
|
+
readonly response: {
|
|
68
|
+
readonly categories: readonly {
|
|
69
|
+
readonly categoryKey: string;
|
|
70
|
+
readonly label: string;
|
|
71
|
+
readonly order: number;
|
|
72
|
+
}[];
|
|
73
|
+
readonly kind: "category";
|
|
74
|
+
readonly statements: readonly {
|
|
75
|
+
readonly correctCategoryKey: string;
|
|
76
|
+
readonly label: string;
|
|
77
|
+
readonly order: number;
|
|
78
|
+
readonly statementKey: string;
|
|
79
|
+
}[];
|
|
80
|
+
} | {
|
|
81
|
+
readonly kind: "multiple-choice";
|
|
82
|
+
readonly options: readonly {
|
|
83
|
+
readonly isCorrect: boolean;
|
|
84
|
+
readonly label: string;
|
|
85
|
+
readonly optionKey: string;
|
|
86
|
+
readonly order: number;
|
|
87
|
+
}[];
|
|
88
|
+
} | {
|
|
89
|
+
readonly kind: "single-choice";
|
|
90
|
+
readonly options: readonly {
|
|
91
|
+
readonly isCorrect: boolean;
|
|
92
|
+
readonly label: string;
|
|
93
|
+
readonly optionKey: string;
|
|
94
|
+
readonly order: number;
|
|
95
|
+
}[];
|
|
96
|
+
};
|
|
97
|
+
} | {
|
|
98
|
+
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
99
|
+
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
100
|
+
readonly peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
101
|
+
readonly questionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionKey">;
|
|
102
|
+
readonly questionNumber: number;
|
|
103
|
+
readonly setKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionSetKey">;
|
|
104
|
+
readonly bodyKind: "answer";
|
|
105
|
+
readonly blueprint?: {
|
|
106
|
+
readonly cognitiveLevel: string;
|
|
107
|
+
readonly contentDomain: string;
|
|
108
|
+
readonly topic: string;
|
|
109
|
+
};
|
|
110
|
+
readonly kind: "question-body";
|
|
111
|
+
readonly metadata: {
|
|
112
|
+
readonly dateModified?: string;
|
|
113
|
+
readonly datePublished: string;
|
|
114
|
+
readonly authors: readonly {
|
|
115
|
+
readonly name: string;
|
|
116
|
+
}[];
|
|
117
|
+
readonly title: string;
|
|
118
|
+
};
|
|
119
|
+
readonly stimulusKey?: string;
|
|
73
120
|
} | {
|
|
74
121
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
75
122
|
readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
|
|
@@ -113,93 +160,46 @@ export declare function decodeContentProjections<E, R>(projections: Stream.Strea
|
|
|
113
160
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
114
161
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
115
162
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
116
|
-
readonly
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
readonly
|
|
121
|
-
readonly
|
|
122
|
-
readonly description: string;
|
|
123
|
-
readonly title: string;
|
|
124
|
-
};
|
|
125
|
-
readonly sitemap: true;
|
|
126
|
-
readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
127
|
-
} | {
|
|
128
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
129
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
130
|
-
readonly peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
131
|
-
readonly questionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionKey">;
|
|
132
|
-
readonly questionNumber: number;
|
|
133
|
-
readonly setKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionSetKey">;
|
|
134
|
-
readonly bodyKind: "question";
|
|
135
|
-
readonly blueprint?: {
|
|
136
|
-
readonly cognitiveLevel: string;
|
|
137
|
-
readonly contentDomain: string;
|
|
138
|
-
readonly topic: string;
|
|
163
|
+
readonly graph: {
|
|
164
|
+
readonly alignmentId: string;
|
|
165
|
+
readonly assetId: string;
|
|
166
|
+
readonly conceptId: string;
|
|
167
|
+
readonly learningObjectId: string;
|
|
168
|
+
readonly lensId: string;
|
|
139
169
|
};
|
|
140
|
-
readonly
|
|
170
|
+
readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
|
|
171
|
+
readonly order: number;
|
|
172
|
+
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
173
|
+
readonly sectionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialSection">;
|
|
174
|
+
readonly kind: "subject-lesson";
|
|
141
175
|
readonly metadata: {
|
|
142
176
|
readonly dateModified?: string;
|
|
143
177
|
readonly datePublished: string;
|
|
144
178
|
readonly authors: readonly {
|
|
145
179
|
readonly name: string;
|
|
146
180
|
}[];
|
|
181
|
+
readonly description?: string | undefined;
|
|
182
|
+
readonly subject?: string | undefined;
|
|
147
183
|
readonly title: string;
|
|
148
184
|
};
|
|
149
|
-
readonly
|
|
150
|
-
readonly
|
|
151
|
-
|
|
152
|
-
readonly options: readonly {
|
|
153
|
-
readonly isCorrect: boolean;
|
|
154
|
-
readonly label: string;
|
|
155
|
-
readonly optionKey: string;
|
|
156
|
-
readonly order: number;
|
|
157
|
-
}[];
|
|
158
|
-
} | {
|
|
159
|
-
readonly kind: "multiple-choice";
|
|
160
|
-
readonly options: readonly {
|
|
161
|
-
readonly isCorrect: boolean;
|
|
162
|
-
readonly label: string;
|
|
163
|
-
readonly optionKey: string;
|
|
164
|
-
readonly order: number;
|
|
165
|
-
}[];
|
|
166
|
-
} | {
|
|
167
|
-
readonly categories: readonly {
|
|
168
|
-
readonly categoryKey: string;
|
|
169
|
-
readonly label: string;
|
|
170
|
-
readonly order: number;
|
|
171
|
-
}[];
|
|
172
|
-
readonly kind: "category";
|
|
173
|
-
readonly statements: readonly {
|
|
174
|
-
readonly correctCategoryKey: string;
|
|
175
|
-
readonly label: string;
|
|
176
|
-
readonly order: number;
|
|
177
|
-
readonly statementKey: string;
|
|
178
|
-
}[];
|
|
179
|
-
};
|
|
185
|
+
readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
186
|
+
readonly sitemap: true;
|
|
187
|
+
readonly topicTitle: string;
|
|
180
188
|
} | {
|
|
189
|
+
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
181
190
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
182
191
|
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
183
|
-
readonly
|
|
184
|
-
readonly
|
|
185
|
-
readonly
|
|
186
|
-
readonly setKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionSetKey">;
|
|
187
|
-
readonly bodyKind: "answer";
|
|
188
|
-
readonly blueprint?: {
|
|
189
|
-
readonly cognitiveLevel: string;
|
|
190
|
-
readonly contentDomain: string;
|
|
191
|
-
readonly topic: string;
|
|
192
|
-
};
|
|
193
|
-
readonly kind: "question-body";
|
|
192
|
+
readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
|
|
193
|
+
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
194
|
+
readonly kind: "public-page";
|
|
194
195
|
readonly metadata: {
|
|
195
196
|
readonly dateModified?: string;
|
|
196
197
|
readonly datePublished: string;
|
|
197
|
-
readonly
|
|
198
|
-
readonly name: string;
|
|
199
|
-
}[];
|
|
198
|
+
readonly description: string;
|
|
200
199
|
readonly title: string;
|
|
201
200
|
};
|
|
202
|
-
readonly
|
|
201
|
+
readonly sitemap: true;
|
|
202
|
+
readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
203
203
|
}, E | ProjectionDecodeError | ProjectionOrderError | ProjectionRouteError, R>;
|
|
204
204
|
/** Authenticates a replayable projection stream against its signed manifest. */
|
|
205
205
|
export declare const verifyContentProjections: <E, R>(input: {
|
|
@@ -10,23 +10,6 @@ export declare class QuranRowHashError extends QuranRowHashError_base {
|
|
|
10
10
|
export declare function canonicalizeQuranRow(payload: QuranRowPayload): string;
|
|
11
11
|
/** Computes one current row's domain-separated identity. */
|
|
12
12
|
export declare const hashQuranRow: (payload: {
|
|
13
|
-
readonly name: {
|
|
14
|
-
readonly arabic: string;
|
|
15
|
-
readonly meaning: {
|
|
16
|
-
readonly de: string;
|
|
17
|
-
readonly en: string;
|
|
18
|
-
readonly id: string;
|
|
19
|
-
};
|
|
20
|
-
readonly transliteration: string;
|
|
21
|
-
};
|
|
22
|
-
readonly number: number;
|
|
23
|
-
readonly numberOfVerses: number;
|
|
24
|
-
readonly revelation: {
|
|
25
|
-
readonly order: number;
|
|
26
|
-
readonly place: "Meccan" | "Medinan";
|
|
27
|
-
};
|
|
28
|
-
readonly kind: "quran-surah";
|
|
29
|
-
} | {
|
|
30
13
|
readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
|
|
31
14
|
readonly kind: "quran-attribution";
|
|
32
15
|
readonly sources: readonly [{
|
|
@@ -239,22 +222,6 @@ export declare const hashQuranRow: (payload: {
|
|
|
239
222
|
}[]];
|
|
240
223
|
}[]];
|
|
241
224
|
} | {
|
|
242
|
-
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
243
|
-
readonly graph: {
|
|
244
|
-
readonly alignmentId: string;
|
|
245
|
-
readonly assetId: string;
|
|
246
|
-
readonly conceptId: string;
|
|
247
|
-
readonly learningObjectId: string;
|
|
248
|
-
readonly lensId: string;
|
|
249
|
-
};
|
|
250
|
-
readonly kind: "quran-search";
|
|
251
|
-
readonly route: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
252
|
-
readonly surahNumber: number;
|
|
253
|
-
readonly text: string;
|
|
254
|
-
readonly title: string;
|
|
255
|
-
}) => Effect.Effect<string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">, QuranRowHashError, never>;
|
|
256
|
-
/** Creates one snapshot-bound current row. */
|
|
257
|
-
export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">, payload: {
|
|
258
225
|
readonly name: {
|
|
259
226
|
readonly arabic: string;
|
|
260
227
|
readonly meaning: {
|
|
@@ -272,6 +239,22 @@ export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").
|
|
|
272
239
|
};
|
|
273
240
|
readonly kind: "quran-surah";
|
|
274
241
|
} | {
|
|
242
|
+
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
243
|
+
readonly graph: {
|
|
244
|
+
readonly alignmentId: string;
|
|
245
|
+
readonly assetId: string;
|
|
246
|
+
readonly conceptId: string;
|
|
247
|
+
readonly learningObjectId: string;
|
|
248
|
+
readonly lensId: string;
|
|
249
|
+
};
|
|
250
|
+
readonly kind: "quran-search";
|
|
251
|
+
readonly route: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
252
|
+
readonly surahNumber: number;
|
|
253
|
+
readonly text: string;
|
|
254
|
+
readonly title: string;
|
|
255
|
+
}) => Effect.Effect<string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">, QuranRowHashError, never>;
|
|
256
|
+
/** Creates one snapshot-bound current row. */
|
|
257
|
+
export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">, payload: {
|
|
275
258
|
readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
|
|
276
259
|
readonly kind: "quran-attribution";
|
|
277
260
|
readonly sources: readonly [{
|
|
@@ -483,6 +466,23 @@ export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").
|
|
|
483
466
|
};
|
|
484
467
|
}[]];
|
|
485
468
|
}[]];
|
|
469
|
+
} | {
|
|
470
|
+
readonly name: {
|
|
471
|
+
readonly arabic: string;
|
|
472
|
+
readonly meaning: {
|
|
473
|
+
readonly de: string;
|
|
474
|
+
readonly en: string;
|
|
475
|
+
readonly id: string;
|
|
476
|
+
};
|
|
477
|
+
readonly transliteration: string;
|
|
478
|
+
};
|
|
479
|
+
readonly number: number;
|
|
480
|
+
readonly numberOfVerses: number;
|
|
481
|
+
readonly revelation: {
|
|
482
|
+
readonly order: number;
|
|
483
|
+
readonly place: "Meccan" | "Medinan";
|
|
484
|
+
};
|
|
485
|
+
readonly kind: "quran-surah";
|
|
486
486
|
} | {
|
|
487
487
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
488
488
|
readonly graph: {
|
|
@@ -499,23 +499,6 @@ export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").
|
|
|
499
499
|
readonly title: string;
|
|
500
500
|
}) => Effect.Effect<{
|
|
501
501
|
readonly payload: {
|
|
502
|
-
readonly name: {
|
|
503
|
-
readonly arabic: string;
|
|
504
|
-
readonly meaning: {
|
|
505
|
-
readonly de: string;
|
|
506
|
-
readonly en: string;
|
|
507
|
-
readonly id: string;
|
|
508
|
-
};
|
|
509
|
-
readonly transliteration: string;
|
|
510
|
-
};
|
|
511
|
-
readonly number: number;
|
|
512
|
-
readonly numberOfVerses: number;
|
|
513
|
-
readonly revelation: {
|
|
514
|
-
readonly order: number;
|
|
515
|
-
readonly place: "Meccan" | "Medinan";
|
|
516
|
-
};
|
|
517
|
-
readonly kind: "quran-surah";
|
|
518
|
-
} | {
|
|
519
502
|
readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
|
|
520
503
|
readonly kind: "quran-attribution";
|
|
521
504
|
readonly sources: readonly [{
|
|
@@ -727,6 +710,23 @@ export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").
|
|
|
727
710
|
};
|
|
728
711
|
}[]];
|
|
729
712
|
}[]];
|
|
713
|
+
} | {
|
|
714
|
+
readonly name: {
|
|
715
|
+
readonly arabic: string;
|
|
716
|
+
readonly meaning: {
|
|
717
|
+
readonly de: string;
|
|
718
|
+
readonly en: string;
|
|
719
|
+
readonly id: string;
|
|
720
|
+
};
|
|
721
|
+
readonly transliteration: string;
|
|
722
|
+
};
|
|
723
|
+
readonly number: number;
|
|
724
|
+
readonly numberOfVerses: number;
|
|
725
|
+
readonly revelation: {
|
|
726
|
+
readonly order: number;
|
|
727
|
+
readonly place: "Meccan" | "Medinan";
|
|
728
|
+
};
|
|
729
|
+
readonly kind: "quran-surah";
|
|
730
730
|
} | {
|
|
731
731
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
732
732
|
readonly graph: {
|
|
@@ -73,7 +73,7 @@ export declare const digestResultCatalog: <E, R>(releaseId: string & import("eff
|
|
|
73
73
|
readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
74
74
|
readonly sourceHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
75
75
|
readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
76
|
-
readonly family: "
|
|
76
|
+
readonly family: "page";
|
|
77
77
|
} | {
|
|
78
78
|
readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
79
79
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
@@ -85,7 +85,7 @@ export declare const digestResultCatalog: <E, R>(releaseId: string & import("eff
|
|
|
85
85
|
readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
86
86
|
readonly sourceHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
87
87
|
readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
88
|
-
readonly family: "
|
|
88
|
+
readonly family: "question";
|
|
89
89
|
} | {
|
|
90
90
|
readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
91
91
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
@@ -97,7 +97,7 @@ export declare const digestResultCatalog: <E, R>(releaseId: string & import("eff
|
|
|
97
97
|
readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
98
98
|
readonly sourceHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
99
99
|
readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
100
|
-
readonly family: "
|
|
100
|
+
readonly family: "article";
|
|
101
101
|
} | {
|
|
102
102
|
readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
103
103
|
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
@@ -109,7 +109,7 @@ export declare const digestResultCatalog: <E, R>(releaseId: string & import("eff
|
|
|
109
109
|
readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
|
|
110
110
|
readonly sourceHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
111
111
|
readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
112
|
-
readonly family: "
|
|
112
|
+
readonly family: "material";
|
|
113
113
|
}, E, R>) => Effect.Effect<{
|
|
114
114
|
count: number;
|
|
115
115
|
digest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
@@ -445,11 +445,18 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
|
|
|
445
445
|
};
|
|
446
446
|
readonly sourceRevision: string;
|
|
447
447
|
readonly title: string;
|
|
448
|
-
readonly countryCode: string;
|
|
449
448
|
readonly countryKey: string;
|
|
450
|
-
readonly
|
|
449
|
+
readonly examKey: string;
|
|
450
|
+
readonly kind: "section";
|
|
451
451
|
readonly order: number;
|
|
452
|
-
readonly publicPath
|
|
452
|
+
readonly publicPath?: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">) | undefined;
|
|
453
|
+
readonly questionCount: number;
|
|
454
|
+
readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
455
|
+
readonly sectionKey: string;
|
|
456
|
+
readonly setKey: string;
|
|
457
|
+
readonly timeLimitSeconds: number;
|
|
458
|
+
readonly trackKey: string;
|
|
459
|
+
readonly visibility: "internal-entry" | "visible";
|
|
453
460
|
} | {
|
|
454
461
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
455
462
|
readonly description?: string | undefined;
|
|
@@ -464,10 +471,16 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
|
|
|
464
471
|
readonly title: string;
|
|
465
472
|
readonly countryKey: string;
|
|
466
473
|
readonly examKey: string;
|
|
467
|
-
readonly
|
|
474
|
+
readonly internalEntrySectionKey?: string | undefined;
|
|
475
|
+
readonly kind: "set";
|
|
468
476
|
readonly order: number;
|
|
469
477
|
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
478
|
+
readonly questionCount: number;
|
|
470
479
|
readonly scoringStrategy: "irt" | "raw";
|
|
480
|
+
readonly sectionCount: number;
|
|
481
|
+
readonly setKey: string;
|
|
482
|
+
readonly trackKey: string;
|
|
483
|
+
readonly visibleSectionCount: number;
|
|
471
484
|
} | {
|
|
472
485
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
473
486
|
readonly description?: string | undefined;
|
|
@@ -505,16 +518,10 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
|
|
|
505
518
|
readonly title: string;
|
|
506
519
|
readonly countryKey: string;
|
|
507
520
|
readonly examKey: string;
|
|
508
|
-
readonly
|
|
509
|
-
readonly kind: "set";
|
|
521
|
+
readonly kind: "exam";
|
|
510
522
|
readonly order: number;
|
|
511
523
|
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
512
|
-
readonly questionCount: number;
|
|
513
524
|
readonly scoringStrategy: "irt" | "raw";
|
|
514
|
-
readonly sectionCount: number;
|
|
515
|
-
readonly setKey: string;
|
|
516
|
-
readonly trackKey: string;
|
|
517
|
-
readonly visibleSectionCount: number;
|
|
518
525
|
} | {
|
|
519
526
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
520
527
|
readonly description?: string | undefined;
|
|
@@ -527,18 +534,11 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
|
|
|
527
534
|
};
|
|
528
535
|
readonly sourceRevision: string;
|
|
529
536
|
readonly title: string;
|
|
537
|
+
readonly countryCode: string;
|
|
530
538
|
readonly countryKey: string;
|
|
531
|
-
readonly
|
|
532
|
-
readonly kind: "section";
|
|
539
|
+
readonly kind: "country";
|
|
533
540
|
readonly order: number;
|
|
534
|
-
readonly publicPath
|
|
535
|
-
readonly questionCount: number;
|
|
536
|
-
readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
537
|
-
readonly sectionKey: string;
|
|
538
|
-
readonly setKey: string;
|
|
539
|
-
readonly timeLimitSeconds: number;
|
|
540
|
-
readonly trackKey: string;
|
|
541
|
-
readonly visibility: "internal-entry" | "visible";
|
|
541
|
+
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
542
542
|
};
|
|
543
543
|
readonly rowHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
544
544
|
};
|