@nakafa/aksara-contracts 0.48.7 → 0.48.8

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.
@@ -32,11 +32,23 @@ export declare const digestTryoutCatalog: <E, R>(records: Stream.Stream<{
32
32
  };
33
33
  readonly sourceRevision: string;
34
34
  readonly title: string;
35
- readonly countryCode: string;
36
35
  readonly countryKey: string;
37
- readonly kind: "country";
36
+ readonly examKey: string;
37
+ readonly kind: "section";
38
+ readonly marks?: {
39
+ readonly blank: number;
40
+ readonly correct: number;
41
+ readonly wrong: number;
42
+ };
38
43
  readonly order: number;
39
- readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
44
+ readonly publicPath?: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">) | undefined;
45
+ readonly questionCount: number;
46
+ readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
47
+ readonly sectionKey: string;
48
+ readonly setKey: string;
49
+ readonly timeLimitSeconds: number;
50
+ readonly trackKey: string;
51
+ readonly visibility: "internal-entry" | "visible";
40
52
  } | {
41
53
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
42
54
  readonly description?: string | undefined;
@@ -51,10 +63,16 @@ export declare const digestTryoutCatalog: <E, R>(records: Stream.Stream<{
51
63
  readonly title: string;
52
64
  readonly countryKey: string;
53
65
  readonly examKey: string;
54
- readonly kind: "exam";
66
+ readonly internalEntrySectionKey?: string | undefined;
67
+ readonly kind: "set";
55
68
  readonly order: number;
56
69
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
70
+ readonly questionCount: number;
57
71
  readonly scoringStrategy: "irt" | "penalized" | "raw";
72
+ readonly sectionCount: number;
73
+ readonly setKey: string;
74
+ readonly trackKey: string;
75
+ readonly visibleSectionCount: number;
58
76
  } | {
59
77
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
60
78
  readonly description?: string | undefined;
@@ -92,16 +110,10 @@ export declare const digestTryoutCatalog: <E, R>(records: Stream.Stream<{
92
110
  readonly title: string;
93
111
  readonly countryKey: string;
94
112
  readonly examKey: string;
95
- readonly internalEntrySectionKey?: string | undefined;
96
- readonly kind: "set";
113
+ readonly kind: "exam";
97
114
  readonly order: number;
98
115
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
99
- readonly questionCount: number;
100
116
  readonly scoringStrategy: "irt" | "penalized" | "raw";
101
- readonly sectionCount: number;
102
- readonly setKey: string;
103
- readonly trackKey: string;
104
- readonly visibleSectionCount: number;
105
117
  } | {
106
118
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
107
119
  readonly description?: string | undefined;
@@ -114,23 +126,11 @@ export declare const digestTryoutCatalog: <E, R>(records: Stream.Stream<{
114
126
  };
115
127
  readonly sourceRevision: string;
116
128
  readonly title: string;
129
+ readonly countryCode: string;
117
130
  readonly countryKey: string;
118
- readonly examKey: string;
119
- readonly kind: "section";
120
- readonly marks?: {
121
- readonly blank: number;
122
- readonly correct: number;
123
- readonly wrong: number;
124
- };
131
+ readonly kind: "country";
125
132
  readonly order: number;
126
- readonly publicPath?: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">) | undefined;
127
- readonly questionCount: number;
128
- readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
129
- readonly sectionKey: string;
130
- readonly setKey: string;
131
- readonly timeLimitSeconds: number;
132
- readonly trackKey: string;
133
- readonly visibility: "internal-entry" | "visible";
133
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
134
134
  };
135
135
  readonly rowHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
136
136
  }, E, R>) => Effect.Effect<{
@@ -57,5 +57,5 @@ export declare const verifySignedTryoutRuntimeBundle: (input: {
57
57
  readonly sourceReleaseId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">;
58
58
  };
59
59
  readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
60
- }, import("../../errors.js").ContractDecodeError | import("../../signature/spec.js").PublicKeyParseError | import("../../signature/spec.js").PublicKeyTypeError | import("../../renderer/contract.js").RendererManifestHashComputeError | 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("#contracts/tryout/runtime/hash").TryoutRuntimeBundleHashComputationError | TryoutRuntimeBundleHashMismatchError | TryoutRuntimeBundleRendererMismatchError | TryoutRuntimeBundleSnapshotMismatchError | TryoutRuntimeBundleVerificationDecodeError, import("../../signature/spec.js").ContentVerificationKeyResolver>;
60
+ }, import("#contracts/errors").ContractDecodeError | import("../../signature/spec.js").PublicKeyParseError | import("../../signature/spec.js").PublicKeyTypeError | import("../../renderer/contract.js").RendererManifestHashComputeError | 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("#contracts/tryout/runtime/hash").TryoutRuntimeBundleHashComputationError | TryoutRuntimeBundleHashMismatchError | TryoutRuntimeBundleRendererMismatchError | TryoutRuntimeBundleSnapshotMismatchError | TryoutRuntimeBundleVerificationDecodeError, import("../../signature/spec.js").ContentVerificationKeyResolver>;
61
61
  export {};
@@ -1,4 +1,5 @@
1
1
  import { Effect, Schema } from "effect";
2
+ import { Sha256MismatchFields } from "#contracts/errors";
2
3
  import { Sha256HashSchema } from "#contracts/ids";
3
4
  import { validateRendererManifestHash } from "#contracts/renderer/manifest";
4
5
  import { verifyEd25519Signature } from "#contracts/signature/verify";
@@ -12,10 +13,7 @@ export class TryoutRuntimeBundleVerificationDecodeError extends Schema.TaggedErr
12
13
  }) {
13
14
  }
14
15
  /** The envelope hash does not identify its complete canonical payload. */
15
- export class TryoutRuntimeBundleHashMismatchError extends Schema.TaggedError()("TryoutRuntimeBundleHashMismatchError", {
16
- actualHash: Sha256HashSchema,
17
- expectedHash: Sha256HashSchema,
18
- }) {
16
+ export class TryoutRuntimeBundleHashMismatchError extends Schema.TaggedError()("TryoutRuntimeBundleHashMismatchError", { ...Sha256MismatchFields }) {
19
17
  }
20
18
  /** The embedded snapshot identity does not match its semantic facts. */
21
19
  export class TryoutRuntimeBundleSnapshotMismatchError extends Schema.TaggedError()("TryoutRuntimeBundleSnapshotMismatchError", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nakafa/aksara-contracts",
3
- "version": "0.48.7",
3
+ "version": "0.48.8",
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",