@azx-pbc/axiom-builder 0.0.0-stage → 0.0.6

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.
Files changed (231) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +648 -2
  3. package/dist/cards/selectors.d.ts +70 -0
  4. package/dist/cards/selectors.d.ts.map +1 -0
  5. package/dist/cards/selectors.js +194 -0
  6. package/dist/cards/selectors.js.map +1 -0
  7. package/dist/definition.d.ts +36 -0
  8. package/dist/definition.d.ts.map +1 -0
  9. package/dist/definition.js +48 -0
  10. package/dist/definition.js.map +1 -0
  11. package/dist/evidence/cases.d.ts +44 -0
  12. package/dist/evidence/cases.d.ts.map +1 -0
  13. package/dist/evidence/cases.js +578 -0
  14. package/dist/evidence/cases.js.map +1 -0
  15. package/dist/evidence/repairs.d.ts +99 -0
  16. package/dist/evidence/repairs.d.ts.map +1 -0
  17. package/dist/evidence/repairs.js +181 -0
  18. package/dist/evidence/repairs.js.map +1 -0
  19. package/dist/evidence/summary.d.ts +35 -0
  20. package/dist/evidence/summary.d.ts.map +1 -0
  21. package/dist/evidence/summary.js +38 -0
  22. package/dist/evidence/summary.js.map +1 -0
  23. package/dist/i18n/gaps.d.ts +3 -0
  24. package/dist/i18n/gaps.d.ts.map +1 -0
  25. package/dist/i18n/gaps.js +2 -0
  26. package/dist/i18n/gaps.js.map +1 -0
  27. package/dist/i18n/message-slots.d.ts +19 -0
  28. package/dist/i18n/message-slots.d.ts.map +1 -0
  29. package/dist/i18n/message-slots.js +101 -0
  30. package/dist/i18n/message-slots.js.map +1 -0
  31. package/dist/i18n/text-locale.d.ts +13 -0
  32. package/dist/i18n/text-locale.d.ts.map +1 -0
  33. package/dist/i18n/text-locale.js +14 -0
  34. package/dist/i18n/text-locale.js.map +1 -0
  35. package/dist/i18n/translations.d.ts +56 -0
  36. package/dist/i18n/translations.d.ts.map +1 -0
  37. package/dist/i18n/translations.js +103 -0
  38. package/dist/i18n/translations.js.map +1 -0
  39. package/dist/impact/references.d.ts +143 -0
  40. package/dist/impact/references.d.ts.map +1 -0
  41. package/dist/impact/references.js +429 -0
  42. package/dist/impact/references.js.map +1 -0
  43. package/dist/index.d.ts +86 -0
  44. package/dist/index.d.ts.map +1 -0
  45. package/dist/index.js +58 -0
  46. package/dist/index.js.map +1 -0
  47. package/dist/preview/compile-preview.d.ts +67 -0
  48. package/dist/preview/compile-preview.d.ts.map +1 -0
  49. package/dist/preview/compile-preview.js +286 -0
  50. package/dist/preview/compile-preview.js.map +1 -0
  51. package/dist/preview/handle.d.ts +119 -0
  52. package/dist/preview/handle.d.ts.map +1 -0
  53. package/dist/preview/handle.js +2 -0
  54. package/dist/preview/handle.js.map +1 -0
  55. package/dist/preview/held.d.ts +39 -0
  56. package/dist/preview/held.d.ts.map +1 -0
  57. package/dist/preview/held.js +15 -0
  58. package/dist/preview/held.js.map +1 -0
  59. package/dist/preview/measurement.d.ts +5 -0
  60. package/dist/preview/measurement.d.ts.map +1 -0
  61. package/dist/preview/measurement.js +18 -0
  62. package/dist/preview/measurement.js.map +1 -0
  63. package/dist/publish/build.d.ts +33 -0
  64. package/dist/publish/build.d.ts.map +1 -0
  65. package/dist/publish/build.js +15 -0
  66. package/dist/publish/build.js.map +1 -0
  67. package/dist/publish/diff.d.ts +208 -0
  68. package/dist/publish/diff.d.ts.map +1 -0
  69. package/dist/publish/diff.js +227 -0
  70. package/dist/publish/diff.js.map +1 -0
  71. package/dist/publish/review.d.ts +41 -0
  72. package/dist/publish/review.d.ts.map +1 -0
  73. package/dist/publish/review.js +22 -0
  74. package/dist/publish/review.js.map +1 -0
  75. package/dist/schema/dataset-input.d.ts +30 -0
  76. package/dist/schema/dataset-input.d.ts.map +1 -0
  77. package/dist/schema/dataset-input.js +58 -0
  78. package/dist/schema/dataset-input.js.map +1 -0
  79. package/dist/schema/dataset.d.ts +166 -0
  80. package/dist/schema/dataset.d.ts.map +1 -0
  81. package/dist/schema/dataset.js +281 -0
  82. package/dist/schema/dataset.js.map +1 -0
  83. package/dist/schema/declarations.d.ts +15 -0
  84. package/dist/schema/declarations.d.ts.map +1 -0
  85. package/dist/schema/declarations.js +47 -0
  86. package/dist/schema/declarations.js.map +1 -0
  87. package/dist/schema/document.d.ts +504 -0
  88. package/dist/schema/document.d.ts.map +1 -0
  89. package/dist/schema/document.js +337 -0
  90. package/dist/schema/document.js.map +1 -0
  91. package/dist/schema/error.d.ts +15 -0
  92. package/dist/schema/error.d.ts.map +1 -0
  93. package/dist/schema/error.js +18 -0
  94. package/dist/schema/error.js.map +1 -0
  95. package/dist/schema/field-id.d.ts +8 -0
  96. package/dist/schema/field-id.d.ts.map +1 -0
  97. package/dist/schema/field-id.js +47 -0
  98. package/dist/schema/field-id.js.map +1 -0
  99. package/dist/schema/layout.d.ts +118 -0
  100. package/dist/schema/layout.d.ts.map +1 -0
  101. package/dist/schema/layout.js +101 -0
  102. package/dist/schema/layout.js.map +1 -0
  103. package/dist/schema/palette.d.ts +103 -0
  104. package/dist/schema/palette.d.ts.map +1 -0
  105. package/dist/schema/palette.js +140 -0
  106. package/dist/schema/palette.js.map +1 -0
  107. package/dist/schema/read.d.ts +49 -0
  108. package/dist/schema/read.d.ts.map +1 -0
  109. package/dist/schema/read.js +942 -0
  110. package/dist/schema/read.js.map +1 -0
  111. package/dist/store/apply-dataset.d.ts +14 -0
  112. package/dist/store/apply-dataset.d.ts.map +1 -0
  113. package/dist/store/apply-dataset.js +513 -0
  114. package/dist/store/apply-dataset.js.map +1 -0
  115. package/dist/store/apply.d.ts +37 -0
  116. package/dist/store/apply.d.ts.map +1 -0
  117. package/dist/store/apply.js +2269 -0
  118. package/dist/store/apply.js.map +1 -0
  119. package/dist/store/candidate.d.ts +37 -0
  120. package/dist/store/candidate.d.ts.map +1 -0
  121. package/dist/store/candidate.js +178 -0
  122. package/dist/store/candidate.js.map +1 -0
  123. package/dist/store/commands/coverage.d.ts +58 -0
  124. package/dist/store/commands/coverage.d.ts.map +1 -0
  125. package/dist/store/commands/coverage.js +354 -0
  126. package/dist/store/commands/coverage.js.map +1 -0
  127. package/dist/store/commands/dataset.d.ts +26 -0
  128. package/dist/store/commands/dataset.d.ts.map +1 -0
  129. package/dist/store/commands/dataset.js +368 -0
  130. package/dist/store/commands/dataset.js.map +1 -0
  131. package/dist/store/commands/document.d.ts +21 -0
  132. package/dist/store/commands/document.d.ts.map +1 -0
  133. package/dist/store/commands/document.js +160 -0
  134. package/dist/store/commands/document.js.map +1 -0
  135. package/dist/store/commands/field.d.ts +32 -0
  136. package/dist/store/commands/field.d.ts.map +1 -0
  137. package/dist/store/commands/field.js +572 -0
  138. package/dist/store/commands/field.js.map +1 -0
  139. package/dist/store/commands/layout.d.ts +16 -0
  140. package/dist/store/commands/layout.d.ts.map +1 -0
  141. package/dist/store/commands/layout.js +70 -0
  142. package/dist/store/commands/layout.js.map +1 -0
  143. package/dist/store/commands/parse.d.ts +19 -0
  144. package/dist/store/commands/parse.d.ts.map +1 -0
  145. package/dist/store/commands/parse.js +328 -0
  146. package/dist/store/commands/parse.js.map +1 -0
  147. package/dist/store/commands/readers.d.ts +198 -0
  148. package/dist/store/commands/readers.d.ts.map +1 -0
  149. package/dist/store/commands/readers.js +711 -0
  150. package/dist/store/commands/readers.js.map +1 -0
  151. package/dist/store/commands/rule.d.ts +24 -0
  152. package/dist/store/commands/rule.d.ts.map +1 -0
  153. package/dist/store/commands/rule.js +379 -0
  154. package/dist/store/commands/rule.js.map +1 -0
  155. package/dist/store/commands/shapes.d.ts +900 -0
  156. package/dist/store/commands/shapes.d.ts.map +1 -0
  157. package/dist/store/commands/shapes.js +166 -0
  158. package/dist/store/commands/shapes.js.map +1 -0
  159. package/dist/store/commands/suggestions.d.ts +37 -0
  160. package/dist/store/commands/suggestions.d.ts.map +1 -0
  161. package/dist/store/commands/suggestions.js +177 -0
  162. package/dist/store/commands/suggestions.js.map +1 -0
  163. package/dist/store/commands.d.ts +16 -0
  164. package/dist/store/commands.d.ts.map +1 -0
  165. package/dist/store/commands.js +13 -0
  166. package/dist/store/commands.js.map +1 -0
  167. package/dist/store/dataset-candidate.d.ts +33 -0
  168. package/dist/store/dataset-candidate.d.ts.map +1 -0
  169. package/dist/store/dataset-candidate.js +31 -0
  170. package/dist/store/dataset-candidate.js.map +1 -0
  171. package/dist/store/dataset-pin.d.ts +93 -0
  172. package/dist/store/dataset-pin.d.ts.map +1 -0
  173. package/dist/store/dataset-pin.js +86 -0
  174. package/dist/store/dataset-pin.js.map +1 -0
  175. package/dist/store/dataset-store.d.ts +96 -0
  176. package/dist/store/dataset-store.d.ts.map +1 -0
  177. package/dist/store/dataset-store.js +112 -0
  178. package/dist/store/dataset-store.js.map +1 -0
  179. package/dist/store/history.d.ts +149 -0
  180. package/dist/store/history.d.ts.map +1 -0
  181. package/dist/store/history.js +173 -0
  182. package/dist/store/history.js.map +1 -0
  183. package/dist/store/measurement.d.ts +5 -0
  184. package/dist/store/measurement.d.ts.map +1 -0
  185. package/dist/store/measurement.js +20 -0
  186. package/dist/store/measurement.js.map +1 -0
  187. package/dist/store/notify.d.ts +11 -0
  188. package/dist/store/notify.d.ts.map +1 -0
  189. package/dist/store/notify.js +26 -0
  190. package/dist/store/notify.js.map +1 -0
  191. package/dist/store/published.d.ts +50 -0
  192. package/dist/store/published.d.ts.map +1 -0
  193. package/dist/store/published.js +27 -0
  194. package/dist/store/published.js.map +1 -0
  195. package/dist/store/refusals.d.ts +175 -0
  196. package/dist/store/refusals.d.ts.map +1 -0
  197. package/dist/store/refusals.js +160 -0
  198. package/dist/store/refusals.js.map +1 -0
  199. package/dist/store/steps.d.ts +14 -0
  200. package/dist/store/steps.d.ts.map +1 -0
  201. package/dist/store/steps.js +124 -0
  202. package/dist/store/steps.js.map +1 -0
  203. package/dist/store/store.d.ts +142 -0
  204. package/dist/store/store.d.ts.map +1 -0
  205. package/dist/store/store.js +136 -0
  206. package/dist/store/store.js.map +1 -0
  207. package/dist/store/unchanged.d.ts +12 -0
  208. package/dist/store/unchanged.d.ts.map +1 -0
  209. package/dist/store/unchanged.js +35 -0
  210. package/dist/store/unchanged.js.map +1 -0
  211. package/dist/visual/emit.d.ts +21 -0
  212. package/dist/visual/emit.d.ts.map +1 -0
  213. package/dist/visual/emit.js +133 -0
  214. package/dist/visual/emit.js.map +1 -0
  215. package/dist/visual/parse.d.ts +32 -0
  216. package/dist/visual/parse.d.ts.map +1 -0
  217. package/dist/visual/parse.js +330 -0
  218. package/dist/visual/parse.js.map +1 -0
  219. package/dist/visual/project.d.ts +40 -0
  220. package/dist/visual/project.d.ts.map +1 -0
  221. package/dist/visual/project.js +349 -0
  222. package/dist/visual/project.js.map +1 -0
  223. package/dist/visual/represent.d.ts +50 -0
  224. package/dist/visual/represent.d.ts.map +1 -0
  225. package/dist/visual/represent.js +66 -0
  226. package/dist/visual/represent.js.map +1 -0
  227. package/dist/visual/vocabulary.d.ts +121 -0
  228. package/dist/visual/vocabulary.d.ts.map +1 -0
  229. package/dist/visual/vocabulary.js +32 -0
  230. package/dist/visual/vocabulary.js.map +1 -0
  231. package/package.json +52 -3
@@ -0,0 +1,504 @@
1
+ import type { AccessOverlay, Control, ContextRoot, DurationUnit, FieldRef, ItemPrimitive, OnHidePolicy, OptionSource, Primitive, RuleKind, SuggestedRowKey, WireValue } from '@azx-pbc/axiom-runtime';
2
+ import type { AuthoredDatasetDocument } from './dataset.js';
3
+ /**
4
+ * The authored schema document, as an authoring store holds it.
5
+ *
6
+ * It is the closed metaschema's document in the author's own state: a field list, a layout tree,
7
+ * a message catalogue and the optional rule list, before any of it has been compiled. The store
8
+ * never invents a second schema format — every member below is a member
9
+ * `spec/metaschema/schema.v1.json` declares, and the store refuses a candidate the metaschema
10
+ * refuses.
11
+ *
12
+ * A layout node is wire JSON rather than a builder type because the closed ten-kind grammar and
13
+ * its structural rules are the compiler's, `LAYOUT_MEMBERS` and `layoutShapeErrors`. Re-declaring
14
+ * those ten shapes here would be a second authority that drifts; the store contributes placement
15
+ * and column arithmetic, not a grammar.
16
+ */
17
+ /** A primitive a field may declare: every member except the two container primitives. */
18
+ export type ScalarPrimitive = Exclude<Primitive, 'record' | 'array'>;
19
+ /** One declared option: a code and the message key its label renders from (`schema.v1.json`). */
20
+ export interface AuthoringOption {
21
+ readonly code: string | number;
22
+ readonly labelKey: string;
23
+ readonly deprecated?: boolean;
24
+ /**
25
+ * The condition under which this option may be chosen, `RULES-7.1.1`, as Expr v1 source.
26
+ *
27
+ * An authored draft stores the text an author writes; the compiler compiles it to the AST the
28
+ * artifact carries. Admitted only on a declared option: a host-loaded domain answers its own
29
+ * availability.
30
+ */
31
+ readonly availableWhen?: string;
32
+ /** The message key of the sentence an unavailable option states. */
33
+ readonly unavailableMessageKey?: string;
34
+ /** The message arguments of `unavailableMessageKey`, each as Expr v1 source. */
35
+ readonly unavailableParams?: Readonly<Record<string, string>>;
36
+ /** The alternatives offered while this option's held code is unavailable, `RULES-7.1.4`. */
37
+ readonly suggests?: readonly AuthoringSuggestion[];
38
+ }
39
+ /**
40
+ * The binding one suggestion operation writes, `schema.v1.json` `suggestedRef`.
41
+ *
42
+ * A binding names a declared field, and inside an array the row it writes: a wire key, or the
43
+ * reserved spelling `current` for the row an item-scoped rule judged. The reserved spelling is not
44
+ * a separate type, because a natural key is the record's own text and the two are the same bytes
45
+ * (`RULES-6.1.2`).
46
+ */
47
+ export interface AuthoringSuggestedRef {
48
+ readonly fieldId: string;
49
+ readonly rowKey?: SuggestedRowKey;
50
+ }
51
+ /**
52
+ * One write an alternative performs, `schema.v1.json` `suggestionOperation`.
53
+ *
54
+ * Every expression is the Expr v1 source an author writes, as a rule's own `expr` is.
55
+ */
56
+ export type AuthoringSuggestionOperation = {
57
+ readonly kind: 'value';
58
+ readonly ref: AuthoringSuggestedRef;
59
+ readonly value: string;
60
+ } | {
61
+ readonly kind: 'null';
62
+ readonly ref: AuthoringSuggestedRef;
63
+ } | {
64
+ readonly kind: 'remove';
65
+ readonly ref: AuthoringSuggestedRef;
66
+ } | {
67
+ readonly kind: 'append';
68
+ readonly fieldId: string;
69
+ readonly row: Readonly<Record<string, string>>;
70
+ } | {
71
+ readonly kind: 'removeRow';
72
+ readonly fieldId: string;
73
+ readonly rowKey: SuggestedRowKey;
74
+ };
75
+ /** One alternative a rule or an option declares, `schema.v1.json` `suggestion`. */
76
+ export interface AuthoringSuggestion {
77
+ readonly labelKey: string;
78
+ readonly operations: readonly AuthoringSuggestionOperation[];
79
+ }
80
+ /** How an array's rows are identified, `schema.v1.json` `rowKeyDeclaration`. */
81
+ export interface AuthoringRowKey {
82
+ readonly mode: 'natural' | 'assigned';
83
+ readonly fieldId?: string;
84
+ }
85
+ /** The item domain of a scalar or attachment array, `schema.v1.json` `itemDeclaration`. */
86
+ export interface AuthoringItem {
87
+ readonly primitive: ItemPrimitive;
88
+ readonly currency?: string;
89
+ readonly scale?: number;
90
+ readonly units?: readonly string[];
91
+ readonly unit?: DurationUnit;
92
+ }
93
+ /** The governed per-field annotations, `schema.v1.json` `annotation`. */
94
+ export type AuthoringAnnotations = Readonly<Record<string, boolean | string>>;
95
+ /** One declared field, at any nesting level of the document. */
96
+ export interface AuthoringField {
97
+ readonly fieldId: string;
98
+ readonly primitive: Primitive;
99
+ readonly control?: Control;
100
+ readonly labelKey?: string;
101
+ readonly descriptionKey?: string;
102
+ readonly placeholderKey?: string;
103
+ readonly currency?: string;
104
+ readonly scale?: number;
105
+ readonly units?: readonly string[];
106
+ readonly unit?: DurationUnit;
107
+ readonly step?: number | string;
108
+ readonly options?: readonly AuthoringOption[];
109
+ /**
110
+ * Where the option domain comes from when the field declares no `options`, `schema.v1.json`
111
+ * `optionSource`. A `host` source names a loader the host resolves, optionally keyed by other
112
+ * fields; a `field` source derives the domain from another field's scalar array.
113
+ */
114
+ readonly optionSource?: OptionSource;
115
+ readonly rowKey?: AuthoringRowKey;
116
+ readonly items?: AuthoringItem;
117
+ readonly fields?: readonly AuthoringField[];
118
+ readonly annotations?: AuthoringAnnotations;
119
+ readonly onHide?: OnHidePolicy;
120
+ /** A `signature_capture` field's bound targets, in the order the signature declares them. */
121
+ readonly covers?: readonly string[];
122
+ /**
123
+ * The media types a `media_ref` field — or an array whose `items.primitive` is `media_ref` —
124
+ * admits, `MODEL-2.1.20`, in the spelling the author wrote. The compiler stores the canonical
125
+ * lower-case form in the artifact; the draft keeps what the author typed.
126
+ */
127
+ readonly accept?: readonly string[];
128
+ /** The smallest and largest `byteSize` a captured `media_ref` may carry, `MODEL-2.1.20`. */
129
+ readonly minBytes?: number;
130
+ readonly maxBytes?: number;
131
+ /**
132
+ * The Expr v1 integer source whose value is this array's expected row count, `MODEL-2.1.22`.
133
+ *
134
+ * The authored draft carries the source text; the compiler compiles it to the artifact's
135
+ * `rowsFrom` AST and carries the text beside it as `rowsFromSource`.
136
+ */
137
+ readonly rowsFrom?: string;
138
+ /**
139
+ * The declaration members that compile into a rule, `MODEL-2.1.16`–`MODEL-2.1.19`.
140
+ *
141
+ * They stay on the authored document and never on the artifact's field: the compiler emits
142
+ * the `required`, `visible` or `validate` rule each names. The message keys are the compiled
143
+ * rule's own `messageKey`, so a declaration and the hand-written rule are one behaviour.
144
+ */
145
+ readonly required?: boolean;
146
+ readonly requiredMessageKey?: string;
147
+ readonly requiredWhen?: string;
148
+ readonly visibleWhen?: string;
149
+ readonly minLength?: number;
150
+ readonly maxLength?: number;
151
+ readonly minLengthMessageKey?: string;
152
+ readonly maxLengthMessageKey?: string;
153
+ readonly minItems?: number;
154
+ readonly maxItems?: number;
155
+ /**
156
+ * The largest number of fractional digits a `decimal` value may carry, `MODEL-2.1.27`.
157
+ * The bound is a decided fact readiness folds, not a rule, so it carries no evidence member.
158
+ */
159
+ readonly maxScale?: number;
160
+ /** The sentence an over-scale `decimal` value states, `MODEL-2.1.27`. */
161
+ readonly maxScaleMessageKey?: string;
162
+ /** A numeric bound, or a `date`/`instant` bound written as its canonical text. */
163
+ readonly minimum?: number | string;
164
+ readonly maximum?: number | string;
165
+ readonly minimumMessageKey?: string;
166
+ readonly maximumMessageKey?: string;
167
+ /**
168
+ * The evidence for the rule each declaration compiles to, `RULES-3.1.1`.
169
+ *
170
+ * The cases sit beside the member they evidence and are copied verbatim onto the synthesized
171
+ * rule, so the author never meets `r_<fieldId>_min_length` and the artifact keeps one evidence
172
+ * place. `minItems`/`maxItems` state a decided fact rather than a rule, so they carry no
173
+ * evidence member.
174
+ */
175
+ readonly requiredTestCases?: readonly AuthoringTestCase[];
176
+ readonly visibleWhenTestCases?: readonly AuthoringTestCase[];
177
+ readonly minimumTestCases?: readonly AuthoringTestCase[];
178
+ readonly maximumTestCases?: readonly AuthoringTestCase[];
179
+ readonly minLengthTestCases?: readonly AuthoringTestCase[];
180
+ readonly maxLengthTestCases?: readonly AuthoringTestCase[];
181
+ }
182
+ /** One gate item, `schema.v1.json` `gateItem`: a condition and the message it raises. */
183
+ export interface AuthoringGateItem {
184
+ readonly itemId: string;
185
+ readonly expr: string;
186
+ readonly messageKey: string;
187
+ readonly params?: Readonly<Record<string, string>>;
188
+ }
189
+ /** A gate rule's own payload, `schema.v1.json` `rule` `gate`. */
190
+ export interface AuthoringGate {
191
+ readonly items: readonly AuthoringGateItem[];
192
+ readonly hard: boolean;
193
+ readonly activeWhen?: string;
194
+ readonly onReadOnlyError?: 'defer' | 'warn' | 'block';
195
+ }
196
+ /** One reason a screen states, `schema.v1.json` `screenReasonDeclaration`. */
197
+ export interface AuthoringScreenReason {
198
+ readonly code: string;
199
+ readonly messageKey: string;
200
+ readonly when: string;
201
+ readonly params?: Readonly<Record<string, string>>;
202
+ }
203
+ /**
204
+ * One embedded vector, `schema.v1.json` `testCase`.
205
+ *
206
+ * The inputs are keyed by `fieldId`, so a case names the declarations it submits: a field that
207
+ * is retired while a case still supplies it is a reference the compiler reports as
208
+ * `INVALID_TEST_VALUE`, not one a host has to find itself.
209
+ */
210
+ export interface AuthoringTestCase {
211
+ readonly caseId: string;
212
+ /**
213
+ * The outcome or value the rule is expected to produce. `Outcome` is four strings that
214
+ * `WireValue` already admits, so the union is `WireValue` and the vocabulary is not restated
215
+ * in a form the type already contains.
216
+ */
217
+ readonly expected: WireValue;
218
+ /**
219
+ * The record the case submits, keyed by field id. The metaschema's `testCase` composes
220
+ * `recordInput`, whose `required` list names this member: a case without a value map states half
221
+ * a vector and is refused before it reaches a compile.
222
+ */
223
+ readonly values: Readonly<Record<string, WireValue>>;
224
+ /** Declared context values, keyed without the leading `context.` segment. */
225
+ readonly context?: Readonly<Record<string, WireValue>>;
226
+ /** Values the case's host withheld from the device. */
227
+ readonly redacted?: readonly FieldRef[];
228
+ /** Targets the case's session wrote, which a `write_only` field may read. */
229
+ readonly sessionWrites?: readonly FieldRef[];
230
+ /**
231
+ * The access overlay the case evaluates under. The authored wire may omit `defaultAccess`;
232
+ * the runtime resolves that omission as `read_only`.
233
+ */
234
+ readonly accessOverlay?: Omit<AccessOverlay, 'defaultAccess'> & {
235
+ readonly defaultAccess?: AccessOverlay['defaultAccess'];
236
+ };
237
+ readonly recordDate?: string;
238
+ readonly capabilities?: readonly string[];
239
+ readonly tier?: 'client' | 'server';
240
+ }
241
+ /** One authored rule, `schema.v1.json` `rule`. */
242
+ export interface AuthoringRule {
243
+ readonly ruleId: string;
244
+ /**
245
+ * Every rule kind the wire contract declares. A host loads a document carrying any of them,
246
+ * and the store previews, compiles and reports field impact for it; the command union authors
247
+ * all eight, with the gate, screen and `defaultCompute` payloads stated on `AddRuleSpec`.
248
+ */
249
+ readonly kind: RuleKind;
250
+ readonly scope: 'field' | 'record' | 'array' | 'item';
251
+ readonly evaluateOn: 'client' | 'server';
252
+ /** The rule's expression as Expr v1 source; a visual rule's source is the printer's output. */
253
+ readonly expr: string;
254
+ /**
255
+ * Author-facing documentation of why the rule exists, `schema.v1.json` `rule.note`.
256
+ *
257
+ * Plain text of 1 to 500 characters after trimming. It is never rendered and never
258
+ * translated, travels into the compiled artifact, and is outside `behaviorHash`. It is not a
259
+ * message key, so no catalogue entry and no locale carries it.
260
+ */
261
+ readonly note?: string;
262
+ readonly severity?: 'block' | 'warn' | 'info';
263
+ readonly fieldId?: string;
264
+ /** The fields a `visible` or `enabled` rule decides, when it decides more than one. */
265
+ readonly fieldIds?: readonly string[];
266
+ readonly targetFieldId?: string;
267
+ readonly messageKey?: string;
268
+ readonly params?: Readonly<Record<string, string>>;
269
+ /** A screen rule's referral condition, `schema.v1.json` `rule` `referWhen`. */
270
+ readonly referWhen?: string;
271
+ /** A screen rule's declared reasons, in the order the report lists them. */
272
+ readonly reasons?: readonly AuthoringScreenReason[];
273
+ /** A `defaultCompute` rule's companion override field, `schema.v1.json` `overrideFieldId`. */
274
+ readonly overrideFieldId?: string;
275
+ /** A gate rule's own items and policy. */
276
+ readonly gate?: AuthoringGate;
277
+ /** The alternatives this rule offers when it decides `FAIL`, `RULES-6.1.1`. */
278
+ readonly suggests?: readonly AuthoringSuggestion[];
279
+ /** The vectors embedded on this rule. */
280
+ readonly testCases?: readonly AuthoringTestCase[];
281
+ }
282
+ /** The authored ICU MessageFormat 1 source text, keyed by message key and then by locale. */
283
+ export type AuthoringCatalogue = Readonly<Record<string, Readonly<Record<string, string>>>>;
284
+ /** One presentation node as the author wrote it; the compiler's layout grammar reads it. */
285
+ export type AuthoringLayoutNode = Readonly<Record<string, unknown>>;
286
+ /** The declared read-only evaluation roots, `schema.v1.json` `context`. */
287
+ export interface AuthoringContext {
288
+ readonly roots: readonly ContextRoot[];
289
+ }
290
+ /** One table a document names, with the version it was compiled against. */
291
+ export interface AuthoringDatasetReference {
292
+ readonly tableId: string;
293
+ readonly tableVersion: number;
294
+ }
295
+ /**
296
+ * A schema document an author is editing.
297
+ *
298
+ * A type alias rather than an interface because the compiler's walkers read a document as
299
+ * `Record<string, unknown>`: an object type is assignable to that, and an interface is not, so
300
+ * the alias is what lets the store hand the compiler the very document it holds instead of a copy
301
+ * or a cast.
302
+ */
303
+ export type AuthoringDocument = {
304
+ readonly schemaId: string;
305
+ readonly schemaVersion: number;
306
+ readonly exprVersion: 1;
307
+ readonly titleKey?: string;
308
+ readonly context?: AuthoringContext;
309
+ readonly fields: readonly AuthoringField[];
310
+ readonly layout: readonly AuthoringLayoutNode[];
311
+ readonly rules?: readonly AuthoringRule[];
312
+ readonly primaryGateId?: string;
313
+ readonly primaryScreenId?: string;
314
+ readonly messages: AuthoringCatalogue;
315
+ readonly locales?: readonly string[];
316
+ readonly defaultLocale?: string;
317
+ readonly datasets?: readonly AuthoringDatasetReference[];
318
+ readonly onHide?: OnHidePolicy;
319
+ };
320
+ /** What a caller must state to start a document; the locale is explicit, never assumed. */
321
+ export interface CreateSchemaOptions {
322
+ /** The document's identity, `schema.v1.json` `identifier`. */
323
+ readonly schemaId: string;
324
+ /** The locale an added literal is written in and a renderer shows by default. */
325
+ readonly defaultLocale: string;
326
+ /** Every locale the catalogue must be complete in; defaults to the one locale. */
327
+ readonly locales?: readonly string[];
328
+ /** The version the document starts at; defaults to 1. */
329
+ readonly schemaVersion?: number;
330
+ }
331
+ /**
332
+ * The constructor arguments are not a document the contract admits.
333
+ *
334
+ * Starting a document is the one boundary where the store cannot answer with a refusal: there
335
+ * is no candidate document yet to carry the path of the offending member. A caller that reads a
336
+ * `schemaId` or a locale from a form asks `createEmptySchema` and reports this message, which
337
+ * names the member and the repair.
338
+ *
339
+ * The class lives in `./error.js` so a dataset table's constructor states the same error without
340
+ * this module and `./dataset.js` importing each other for one class.
341
+ */
342
+ export { AuthoringError } from './error.js';
343
+ /** One declared field, with the field ids from its top-level container down to it. */
344
+ export interface AuthoredField {
345
+ readonly field: AuthoringField;
346
+ /**
347
+ * The `fieldId` chain that reaches this declaration, outermost first and inclusive. It is what
348
+ * a minted message key is built from, so two members named alike in different containers get
349
+ * different keys.
350
+ */
351
+ readonly trail: readonly string[];
352
+ }
353
+ /**
354
+ * One way a document's locale policy is not the policy every authoring door states.
355
+ *
356
+ * The policy has four clauses: every tag is a locale tag, every tag is in canonical spelling, the
357
+ * set names each locale once, and `defaultLocale` is one of them. `createEmptySchema` starts a
358
+ * document under it and `readDocument` admits a stored one under it, so this is the one statement
359
+ * both doors read — a host cannot be refused a policy it started with, and a document cannot enter
360
+ * the store carrying a `defaultLocale` the catalogue does not own.
361
+ *
362
+ * Each door renders the same fact in its own vocabulary: `member`/`value`/`repair` are the
363
+ * constructor's argument refusal, `path`/`detail` are the reader's document refusal.
364
+ */
365
+ export interface LocalePolicyDefect {
366
+ /** The constructor argument the author repairs. */
367
+ readonly member: 'locales' | 'defaultLocale';
368
+ /** The value that argument stated, as the constructor's message quotes it. */
369
+ readonly value: string;
370
+ /** What to write instead, as the constructor's message states it. */
371
+ readonly repair: string;
372
+ /** The document location of the defect, as the reader reports it. */
373
+ readonly path: string;
374
+ /** The cause and repair, as the reader's refusal states them. */
375
+ readonly detail: string;
376
+ }
377
+ /**
378
+ * The first reason a locale policy is not the one authoring states, or `undefined` when it is.
379
+ *
380
+ * The order is the constructor's own — the default's spelling first, then the set entry by entry,
381
+ * then whether the default is in the set — so both doors name the same member for the same pair.
382
+ */
383
+ export declare function localePolicyDefect(defaultLocale: string, locales: readonly string[]): LocalePolicyDefect | undefined;
384
+ /**
385
+ * Whether the document's catalogue owns this locale: the declared set where it states one, and
386
+ * otherwise the locales its own entries already state, which is the set the compiler reads a
387
+ * single-locale catalogue as.
388
+ *
389
+ * A text filed under any other tag renders nowhere — the compile reports it as `MESSAGE_LOCALE`
390
+ * — so both write doors ask this before they file one.
391
+ */
392
+ export declare function admitsLocale(document: AuthoringDocument, locale: string): boolean;
393
+ /**
394
+ * Why the catalogue does not own `locale`, as the sentence a refusal states.
395
+ *
396
+ * `setMessageText` and `importTranslations` report the same fact in the same words, so a host that
397
+ * meets one door's refusal already knows what the other will say.
398
+ */
399
+ export declare function undeclaredLocaleDetail(document: AuthoringDocument, locale: string): string;
400
+ /**
401
+ * Starts an empty document in an explicit locale.
402
+ *
403
+ * There is no English default and no starter field: a literal the author types is written in
404
+ * `defaultLocale`, and a caller that has no locale yet asks for one instead of receiving a
405
+ * document whose text is in a language nobody chose. The document has no fields yet, so it is a
406
+ * starting point rather than a compilable schema — the first `addField` (or `addRecordArray`)
407
+ * commits one.
408
+ */
409
+ export declare function createEmptySchema(options: CreateSchemaOptions): AuthoringDocument;
410
+ /**
411
+ * The document as the JSON text a compiler check reads.
412
+ *
413
+ * The text is canonical restricted JSON, so it is a function of the document's value and not of
414
+ * the order a caller inserted its members in. That is what makes the stored form stable across a
415
+ * load and save: `serializeDocument(readDocument(serializeDocument(document)).document)` is the
416
+ * same bytes, and two documents that differ only in member order are one document with one
417
+ * serialisation.
418
+ *
419
+ * A dataset document states the same closed shape the dataset metaschema reads, so it answers the
420
+ * same door: the schema store and the dataset store have one save path, and an undo/redo comparison
421
+ * is the same assertion over either document.
422
+ */
423
+ export declare function serializeDocument(document: AuthoringDocument | AuthoredDatasetDocument): string;
424
+ /** Every declared member of a field list, at any nesting level, with its id chain. */
425
+ export declare function declaredMembers(fields: readonly AuthoringField[]): readonly AuthoredField[];
426
+ /** Every declared field at any nesting level, in declaration order, with its id chain. */
427
+ export declare function authoredFields(document: AuthoringDocument): readonly AuthoredField[];
428
+ /**
429
+ * A copy of a document under a new schema identity, at its first edition.
430
+ *
431
+ * A duplicate is a new document, not a new edition: it keeps every field, layout node, rule, pin
432
+ * and catalogue text, and starts at `schemaVersion: 1` so its editions are its own. Copying under
433
+ * the id it already states is refused, because that value is not a second document — it is the same
434
+ * one, and resetting its edition would make two different artifacts claim one identity.
435
+ */
436
+ export declare function duplicateDocument(document: AuthoringDocument, schemaId: string): AuthoringDocument;
437
+ /** One declared field by id, or `undefined` when the document declares none such. */
438
+ export declare function authoredField(document: AuthoringDocument, fieldId: string): AuthoredField | undefined;
439
+ /**
440
+ * The message key a declaration's label is filed under: the declaration's id chain under the
441
+ * `field` namespace, so `field.panel.measure` is the label of `measure` inside `panel`.
442
+ */
443
+ export declare function fieldMessageKey(trail: readonly string[]): string;
444
+ /**
445
+ * The message key an option's label is filed under, unique per field and code.
446
+ *
447
+ * A message key segment starts with a lower-case letter, so a numeric code — a rating's `1` — is
448
+ * spelled `code_1`; a code that slugs to nothing becomes `value`. The key is derived from the code
449
+ * rather than from its position, so reordering a domain never moves a label.
450
+ */
451
+ export declare function optionMessageKey(fieldTrail: readonly string[], code: string | number): string;
452
+ /**
453
+ * The message key an option's `unavailableMessageKey` is filed under.
454
+ *
455
+ * The reason belongs to the option's own slot, so it derives from the field trail and the code as
456
+ * the label does. The extra `unavailable` segment keeps it distinct from every option label,
457
+ * including a code that ends in `_unavailable`, and reordering a domain never moves one.
458
+ */
459
+ export declare function optionAvailabilityMessageKey(fieldTrail: readonly string[], code: string | number): string;
460
+ /**
461
+ * The message key one alternative's label is filed under, unique per owner and label text.
462
+ *
463
+ * An alternative states no id of its own, so its text is its identity: deriving the key from the
464
+ * text keeps a translated label attached to the alternative when a host reorders the list, and
465
+ * makes relabelling one alternative a rewrite of one sentence.
466
+ *
467
+ * `owner` is the key namespace the owner's own messages sit in: `rule.<ruleId>` for a rule's
468
+ * alternatives and the option's label key for an option's. A label with no ASCII slug keeps a
469
+ * digest of its text instead of collapsing every non-Latin alternative onto one fallback key.
470
+ */
471
+ export declare function suggestionMessageKey(owner: string, label: string): string;
472
+ /** The message key a rule's message is filed under. */
473
+ export declare function ruleMessageKey(ruleId: string): string;
474
+ /**
475
+ * Every message key a field's declaration members state.
476
+ *
477
+ * A bound's sentence and a requirement's sentence are the compiled rule's `messageKey`, so they
478
+ * belong to the declaration's own card and the catalogue's key index; both the card projection
479
+ * and `namedMessageKeys` read this list rather than restating five members each.
480
+ */
481
+ export declare function fieldDeclarationMessageKeys(field: AuthoringField): readonly string[];
482
+ /** The message key the document's title is filed under. */
483
+ export declare function titleMessageKey(): string;
484
+ /** The message key one gate item's text is filed under. */
485
+ export declare function gateItemMessageKey(ruleId: string, itemId: string): string;
486
+ /**
487
+ * The message key one screen reason's text is filed under.
488
+ *
489
+ * A reason code is the upper-case problem grammar, while a message key segment is lower-case, so
490
+ * the code is slugged and a slug that does not start a segment is prefixed the way
491
+ * `optionMessageKey` states it.
492
+ */
493
+ export declare function screenReasonMessageKey(ruleId: string, code: string): string;
494
+ /**
495
+ * Whether `value` is a canonical locale tag — the spelling a catalogue key and `locales` must use.
496
+ *
497
+ * One predicate for the three doors that accept a locale (starting a document, setting one
498
+ * message's text, importing a batch), so a host cannot write `PT-br` through one and be refused by
499
+ * another.
500
+ */
501
+ export declare function isCanonicalLocale(value: string): boolean;
502
+ /** The ASCII slug a message key segment and a suggested field id are both built from. */
503
+ export declare function slugOf(text: string): string;
504
+ //# sourceMappingURL=document.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../src/schema/document.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EACb,OAAO,EACP,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,eAAe,EACf,SAAS,EACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAG5D;;;;;;;;;;;;;GAaG;AAEH,yFAAyF;AACzF,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,SAAS,EAAE,QAAQ,GAAG,OAAO,CAAC,CAAC;AAErE,iGAAiG;AACjG,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;;OAMG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,oEAAoE;IACpE,QAAQ,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IACxC,gFAAgF;IAChF,QAAQ,CAAC,iBAAiB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC9D,4FAA4F;I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