simpler-forms 0.1.0-alpha.1 → 0.2.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.
Files changed (89) hide show
  1. package/README.md +300 -76
  2. package/dist/src/casing.d.ts +43 -0
  3. package/dist/src/casing.js +146 -0
  4. package/dist/src/casing.js.map +1 -0
  5. package/dist/src/decorators/index.d.ts +1 -0
  6. package/dist/src/decorators/index.js +1 -0
  7. package/dist/src/decorators/index.js.map +1 -1
  8. package/dist/src/decorators/mapping.d.ts +17 -0
  9. package/dist/src/decorators/mapping.js +122 -0
  10. package/dist/src/decorators/mapping.js.map +1 -0
  11. package/dist/src/decorators/meta.d.ts +15 -5
  12. package/dist/src/decorators/meta.js +31 -4
  13. package/dist/src/decorators/meta.js.map +1 -1
  14. package/dist/src/decorators/shared.d.ts +2 -2
  15. package/dist/src/decorators/shared.js.map +1 -1
  16. package/dist/src/decorators/ui.d.ts +14 -12
  17. package/dist/src/decorators/ui.js +20 -43
  18. package/dist/src/decorators/ui.js.map +1 -1
  19. package/dist/src/emitter.d.ts +8 -0
  20. package/dist/src/emitter.js +55 -16
  21. package/dist/src/emitter.js.map +1 -1
  22. package/dist/src/emitters/block-ui.d.ts +14 -3
  23. package/dist/src/emitters/block-ui.js +81 -119
  24. package/dist/src/emitters/block-ui.js.map +1 -1
  25. package/dist/src/emitters/layout-ui.d.ts +12 -0
  26. package/dist/src/emitters/layout-ui.js +225 -0
  27. package/dist/src/emitters/layout-ui.js.map +1 -0
  28. package/dist/src/emitters/overlay.d.ts +10 -8
  29. package/dist/src/emitters/overlay.js +30 -105
  30. package/dist/src/emitters/overlay.js.map +1 -1
  31. package/dist/src/forms.d.ts +23 -0
  32. package/dist/src/forms.js +54 -0
  33. package/dist/src/forms.js.map +1 -0
  34. package/dist/src/index.d.ts +22 -8
  35. package/dist/src/index.js +17 -3
  36. package/dist/src/index.js.map +1 -1
  37. package/dist/src/layout.d.ts +50 -0
  38. package/dist/src/layout.js +397 -0
  39. package/dist/src/layout.js.map +1 -0
  40. package/dist/src/lib.d.ts +585 -39
  41. package/dist/src/lib.js +258 -15
  42. package/dist/src/lib.js.map +1 -1
  43. package/dist/src/linter.js +8 -43
  44. package/dist/src/linter.js.map +1 -1
  45. package/dist/src/mapping-from.d.ts +21 -0
  46. package/dist/src/mapping-from.js +169 -0
  47. package/dist/src/mapping-from.js.map +1 -0
  48. package/dist/src/mapping.d.ts +65 -0
  49. package/dist/src/mapping.js +209 -0
  50. package/dist/src/mapping.js.map +1 -0
  51. package/dist/src/model.d.ts +143 -23
  52. package/dist/src/model.js +108 -21
  53. package/dist/src/model.js.map +1 -1
  54. package/dist/src/public.d.ts +20 -4
  55. package/dist/src/public.js +28 -4
  56. package/dist/src/public.js.map +1 -1
  57. package/dist/src/validate.d.ts +2 -1
  58. package/dist/src/validate.js +208 -58
  59. package/dist/src/validate.js.map +1 -1
  60. package/lib/main.tsp +1 -0
  61. package/lib/mapping.tsp +173 -0
  62. package/lib/meta.tsp +25 -6
  63. package/lib/types.tsp +24 -63
  64. package/lib/ui.tsp +34 -17
  65. package/package.json +17 -11
  66. package/src/casing.ts +172 -0
  67. package/src/decorators/index.ts +1 -0
  68. package/src/decorators/mapping.ts +200 -0
  69. package/src/decorators/meta.ts +56 -13
  70. package/src/decorators/shared.ts +6 -1
  71. package/src/decorators/ui.ts +43 -59
  72. package/src/emitter.ts +76 -16
  73. package/src/emitters/block-ui.ts +83 -135
  74. package/src/emitters/layout-ui.ts +280 -0
  75. package/src/emitters/overlay.ts +43 -116
  76. package/src/forms.ts +82 -0
  77. package/src/index.ts +17 -3
  78. package/src/layout.ts +592 -0
  79. package/src/lib.ts +264 -15
  80. package/src/linter.ts +17 -49
  81. package/src/mapping-from.ts +216 -0
  82. package/src/mapping.ts +358 -0
  83. package/src/model.ts +287 -46
  84. package/src/public.ts +60 -6
  85. package/src/validate.ts +221 -60
  86. package/dist/src/emitters/override-condition.d.ts +0 -12
  87. package/dist/src/emitters/override-condition.js +0 -25
  88. package/dist/src/emitters/override-condition.js.map +0 -1
  89. package/src/emitters/override-condition.ts +0 -37
package/dist/src/lib.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { FormSpecOptions } from "./emitter.js";
1
2
  /**
2
3
  * Named diagnostics for everything that makes an artifact wrong, and state keys for
3
4
  * everything the decorators record.
@@ -11,12 +12,124 @@ export declare const $lib: import("@typespec/compiler").TypeSpecLibrary<{
11
12
  "form-scoped-question-id": {
12
13
  readonly default: import("@typespec/compiler").CallableMessage<["id"]>;
13
14
  };
15
+ "layout-not-form": {
16
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "presented"]>;
17
+ };
18
+ "layout-duplicate": {
19
+ readonly default: import("@typespec/compiler").CallableMessage<["form", "first", "second"]>;
20
+ };
21
+ "layout-ref-root": {
22
+ readonly default: import("@typespec/compiler").CallableMessage<["ref", "root", "here", "start", "presented"]>;
23
+ readonly list: import("@typespec/compiler").CallableMessage<["ref", "list"]>;
24
+ };
25
+ "layout-entry-invalid": {
26
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "name", "name"]>;
27
+ };
28
+ "layout-unplaced": {
29
+ readonly default: import("@typespec/compiler").CallableMessage<["presented", "field", "layout"]>;
30
+ readonly partial: import("@typespec/compiler").CallableMessage<["parts", "presented", "field", "layout"]>;
31
+ };
32
+ "layout-placed-twice": {
33
+ readonly default: import("@typespec/compiler").CallableMessage<["path", "layout"]>;
34
+ };
35
+ "layout-section-not-group": {
36
+ readonly default: import("@typespec/compiler").CallableMessage<["layout", "name"]>;
37
+ };
38
+ "layout-validation": {
39
+ readonly default: import("@typespec/compiler").CallableMessage<["decorator", "name", "presented"]>;
40
+ };
41
+ "layout-condition-self": {
42
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "source"]>;
43
+ };
44
+ "layout-condition-count": {
45
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "count"]>;
46
+ };
47
+ "layout-duplicate-label": {
48
+ readonly default: import("@typespec/compiler").CallableMessage<["where", "label", "first", "second"]>;
49
+ };
50
+ "layout-entry-name": {
51
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "path", "field"]>;
52
+ };
53
+ "layout-flatten-leaf": {
54
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
55
+ };
56
+ "layout-condition-hides-required": {
57
+ readonly always: import("@typespec/compiler").CallableMessage<["name", "condition"]>;
58
+ readonly narrower: import("@typespec/compiler").CallableMessage<["name", "required", "condition"]>;
59
+ readonly inverted: import("@typespec/compiler").CallableMessage<["name", "condition"]>;
60
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
61
+ };
62
+ "layout-condition-source-omitted": {
63
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "source"]>;
64
+ };
65
+ "layout-condition-replaces": {
66
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "field"]>;
67
+ };
14
68
  "duplicate-block-id": {
15
69
  readonly default: import("@typespec/compiler").CallableMessage<["id", "first", "second"]>;
16
70
  };
17
71
  "condition-value-not-in-enum": {
18
72
  readonly default: import("@typespec/compiler").CallableMessage<["value", "enumName", "members"]>;
19
73
  };
74
+ "mapping-target-undeclared": {
75
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "mapping", "enumName", "enumName"]>;
76
+ };
77
+ "mapping-transform-undeclared": {
78
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "transform", "enumName", "enumName"]>;
79
+ };
80
+ "mapping-match-and-transform": {
81
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
82
+ };
83
+ "mapping-when-value": {
84
+ readonly exists: import("@typespec/compiler").CallableMessage<["name", "source"]>;
85
+ readonly in: import("@typespec/compiler").CallableMessage<["name", "source"]>;
86
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "source", "operator"]>;
87
+ };
88
+ "mapping-when-source": {
89
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
90
+ };
91
+ "mapping-duplicate": {
92
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "mapping"]>;
93
+ };
94
+ "mapping-path-unresolved": {
95
+ readonly default: import("@typespec/compiler").CallableMessage<["path", "name", "reason"]>;
96
+ };
97
+ "mapping-target-out-of-context": {
98
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "source", "target", "context"]>;
99
+ };
100
+ "mapping-type-mismatch": {
101
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "source", "target", "reason"]>;
102
+ };
103
+ "mapping-cardinality-mismatch": {
104
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "source", "sourceShape", "target", "targetShape"]>;
105
+ };
106
+ "mapping-target-duplicate": {
107
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "first", "second", "target"]>;
108
+ };
109
+ "mapping-from-unresolved": {
110
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "source", "context"]>;
111
+ };
112
+ "mapping-from-cardinality-mismatch": {
113
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "targetShape", "source", "sourceShape"]>;
114
+ };
115
+ "mapping-from-select-not-a-list": {
116
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "source", "source"]>;
117
+ };
118
+ "mapping-from-select-on-model": {
119
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target"]>;
120
+ };
121
+ "mapping-from-wrapper": {
122
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "context"]>;
123
+ };
124
+ "tag-not-declared": {
125
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "tag", "enumName", "enumName"]>;
126
+ };
127
+ "entity-not-declared": {
128
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "entity", "enumName", "enumName"]>;
129
+ };
130
+ "widget-not-declared": {
131
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "widget", "enumName", "enumName"]>;
132
+ };
20
133
  "condition-path-unresolved": {
21
134
  readonly default: import("@typespec/compiler").CallableMessage<["path", "model"]>;
22
135
  };
@@ -68,26 +181,135 @@ export declare const $lib: import("@typespec/compiler").TypeSpecLibrary<{
68
181
  "required-but-unreachable": {
69
182
  readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
70
183
  };
71
- "override-path-unresolved": {
72
- readonly default: import("@typespec/compiler").CallableMessage<["path", "reason"]>;
184
+ "property-casing-collision": {
185
+ readonly default: import("@typespec/compiler").CallableMessage<["model", "first", "model", "second", "name"]>;
73
186
  };
74
- "visible-read-only-without-read-only": {
75
- readonly default: import("@typespec/compiler").CallableMessage<["path"]>;
187
+ "property-casing-inconsistent": {
188
+ readonly default: import("@typespec/compiler").CallableMessage<["property", "name", "other", "otherName"]>;
76
189
  };
77
- "section-orphan": {
78
- readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
79
- };
80
- }, Record<string, any>, "entity" | "questionMeta" | "formMeta" | "tags" | "responseRole" | "label" | "helpText" | "widget" | "encodedCheckboxGroup" | "sections" | "section" | "order" | "overrides" | "readOnly" | "omit" | "visibleWhen" | "enabledWhen" | "readOnlyWhen" | "requiredWhen" | "notBefore" | "validationConstraints" | "exclusiveValues" | "validationConstraintsWhen" | "requiredPaths" | "requiredPathWhen" | "atLeastOnePathWhenPresent" | "requiredPathWhenPositiveDecimalString" | "positiveDecimalStringWhenPathPresent" | "atLeastOneOf" | "computed" | "computedFrom" | "calculationMaterialization" | "evaluationOrder" | "totals">;
81
- export declare const reportDiagnostic: <C extends "form-scoped-question-id" | "duplicate-block-id" | "condition-value-not-in-enum" | "condition-path-unresolved" | "condition-count-source-not-array" | "condition-count-minimum-invalid" | "condition-source-not-sibling" | "cardinality-path-unresolved" | "cardinality-model-not-emitted" | "block-not-emitted" | "entity-id-mismatch" | "at-least-one-invalid" | "conditional-at-least-one-path-invalid" | "positive-decimal-string-target-invalid" | "encoded-checkbox-contract-invalid" | "calculation-cycle" | "calculation-path-unresolved" | "calculation-materialization-without-calculation" | "date-order-source-invalid" | "required-but-unreachable" | "override-path-unresolved" | "visible-read-only-without-read-only" | "section-orphan", M extends keyof {
190
+ }, FormSpecOptions, "layout" | "label" | "entity" | "widget" | "questionMeta" | "formMeta" | "layoutField" | "flatten" | "tagSets" | "tags" | "tagMembers" | "entitySets" | "entityMember" | "responseRole" | "helpText" | "widgets" | "widgetMember" | "encodedCheckboxGroup" | "order" | "readOnly" | "omit" | "visibleWhen" | "enabledWhen" | "readOnlyWhen" | "requiredWhen" | "notBefore" | "validationConstraints" | "exclusiveValues" | "validationConstraintsWhen" | "requiredPaths" | "requiredPathWhen" | "atLeastOnePathWhenPresent" | "requiredPathWhenPositiveDecimalString" | "positiveDecimalStringWhenPathPresent" | "atLeastOneOf" | "computed" | "computedFrom" | "calculationMaterialization" | "evaluationOrder" | "totals" | "mappingTargets" | "mappedTo" | "mappingPaths" | "mappedFrom" | "mappingTransformSets" | "mappingTransform" | "mappingMatch" | "mappingRequired" | "mappingWhen">;
191
+ export declare const reportDiagnostic: <C extends "form-scoped-question-id" | "layout-not-form" | "layout-duplicate" | "layout-ref-root" | "layout-entry-invalid" | "layout-unplaced" | "layout-placed-twice" | "layout-section-not-group" | "layout-validation" | "layout-condition-self" | "layout-condition-count" | "layout-duplicate-label" | "layout-entry-name" | "layout-flatten-leaf" | "layout-condition-hides-required" | "layout-condition-source-omitted" | "layout-condition-replaces" | "duplicate-block-id" | "condition-value-not-in-enum" | "mapping-target-undeclared" | "mapping-transform-undeclared" | "mapping-match-and-transform" | "mapping-when-value" | "mapping-when-source" | "mapping-duplicate" | "mapping-path-unresolved" | "mapping-target-out-of-context" | "mapping-type-mismatch" | "mapping-cardinality-mismatch" | "mapping-target-duplicate" | "mapping-from-unresolved" | "mapping-from-cardinality-mismatch" | "mapping-from-select-not-a-list" | "mapping-from-select-on-model" | "mapping-from-wrapper" | "tag-not-declared" | "entity-not-declared" | "widget-not-declared" | "condition-path-unresolved" | "condition-count-source-not-array" | "condition-count-minimum-invalid" | "condition-source-not-sibling" | "cardinality-path-unresolved" | "cardinality-model-not-emitted" | "block-not-emitted" | "entity-id-mismatch" | "at-least-one-invalid" | "conditional-at-least-one-path-invalid" | "positive-decimal-string-target-invalid" | "encoded-checkbox-contract-invalid" | "calculation-cycle" | "calculation-path-unresolved" | "calculation-materialization-without-calculation" | "date-order-source-invalid" | "required-but-unreachable" | "property-casing-collision" | "property-casing-inconsistent", M extends keyof {
82
192
  "form-scoped-question-id": {
83
193
  readonly default: import("@typespec/compiler").CallableMessage<["id"]>;
84
194
  };
195
+ "layout-not-form": {
196
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "presented"]>;
197
+ };
198
+ "layout-duplicate": {
199
+ readonly default: import("@typespec/compiler").CallableMessage<["form", "first", "second"]>;
200
+ };
201
+ "layout-ref-root": {
202
+ readonly default: import("@typespec/compiler").CallableMessage<["ref", "root", "here", "start", "presented"]>;
203
+ readonly list: import("@typespec/compiler").CallableMessage<["ref", "list"]>;
204
+ };
205
+ "layout-entry-invalid": {
206
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "name", "name"]>;
207
+ };
208
+ "layout-unplaced": {
209
+ readonly default: import("@typespec/compiler").CallableMessage<["presented", "field", "layout"]>;
210
+ readonly partial: import("@typespec/compiler").CallableMessage<["parts", "presented", "field", "layout"]>;
211
+ };
212
+ "layout-placed-twice": {
213
+ readonly default: import("@typespec/compiler").CallableMessage<["path", "layout"]>;
214
+ };
215
+ "layout-section-not-group": {
216
+ readonly default: import("@typespec/compiler").CallableMessage<["layout", "name"]>;
217
+ };
218
+ "layout-validation": {
219
+ readonly default: import("@typespec/compiler").CallableMessage<["decorator", "name", "presented"]>;
220
+ };
221
+ "layout-condition-self": {
222
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "source"]>;
223
+ };
224
+ "layout-condition-count": {
225
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "count"]>;
226
+ };
227
+ "layout-duplicate-label": {
228
+ readonly default: import("@typespec/compiler").CallableMessage<["where", "label", "first", "second"]>;
229
+ };
230
+ "layout-entry-name": {
231
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "path", "field"]>;
232
+ };
233
+ "layout-flatten-leaf": {
234
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
235
+ };
236
+ "layout-condition-hides-required": {
237
+ readonly always: import("@typespec/compiler").CallableMessage<["name", "condition"]>;
238
+ readonly narrower: import("@typespec/compiler").CallableMessage<["name", "required", "condition"]>;
239
+ readonly inverted: import("@typespec/compiler").CallableMessage<["name", "condition"]>;
240
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
241
+ };
242
+ "layout-condition-source-omitted": {
243
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "source"]>;
244
+ };
245
+ "layout-condition-replaces": {
246
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "field"]>;
247
+ };
85
248
  "duplicate-block-id": {
86
249
  readonly default: import("@typespec/compiler").CallableMessage<["id", "first", "second"]>;
87
250
  };
88
251
  "condition-value-not-in-enum": {
89
252
  readonly default: import("@typespec/compiler").CallableMessage<["value", "enumName", "members"]>;
90
253
  };
254
+ "mapping-target-undeclared": {
255
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "mapping", "enumName", "enumName"]>;
256
+ };
257
+ "mapping-transform-undeclared": {
258
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "transform", "enumName", "enumName"]>;
259
+ };
260
+ "mapping-match-and-transform": {
261
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
262
+ };
263
+ "mapping-when-value": {
264
+ readonly exists: import("@typespec/compiler").CallableMessage<["name", "source"]>;
265
+ readonly in: import("@typespec/compiler").CallableMessage<["name", "source"]>;
266
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "source", "operator"]>;
267
+ };
268
+ "mapping-when-source": {
269
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
270
+ };
271
+ "mapping-duplicate": {
272
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "mapping"]>;
273
+ };
274
+ "mapping-path-unresolved": {
275
+ readonly default: import("@typespec/compiler").CallableMessage<["path", "name", "reason"]>;
276
+ };
277
+ "mapping-target-out-of-context": {
278
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "source", "target", "context"]>;
279
+ };
280
+ "mapping-type-mismatch": {
281
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "source", "target", "reason"]>;
282
+ };
283
+ "mapping-cardinality-mismatch": {
284
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "source", "sourceShape", "target", "targetShape"]>;
285
+ };
286
+ "mapping-target-duplicate": {
287
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "first", "second", "target"]>;
288
+ };
289
+ "mapping-from-unresolved": {
290
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "source", "context"]>;
291
+ };
292
+ "mapping-from-cardinality-mismatch": {
293
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "targetShape", "source", "sourceShape"]>;
294
+ };
295
+ "mapping-from-select-not-a-list": {
296
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "source", "source"]>;
297
+ };
298
+ "mapping-from-select-on-model": {
299
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target"]>;
300
+ };
301
+ "mapping-from-wrapper": {
302
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "context"]>;
303
+ };
304
+ "tag-not-declared": {
305
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "tag", "enumName", "enumName"]>;
306
+ };
307
+ "entity-not-declared": {
308
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "entity", "enumName", "enumName"]>;
309
+ };
310
+ "widget-not-declared": {
311
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "widget", "enumName", "enumName"]>;
312
+ };
91
313
  "condition-path-unresolved": {
92
314
  readonly default: import("@typespec/compiler").CallableMessage<["path", "model"]>;
93
315
  };
@@ -139,25 +361,134 @@ export declare const reportDiagnostic: <C extends "form-scoped-question-id" | "d
139
361
  "required-but-unreachable": {
140
362
  readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
141
363
  };
142
- "override-path-unresolved": {
143
- readonly default: import("@typespec/compiler").CallableMessage<["path", "reason"]>;
364
+ "property-casing-collision": {
365
+ readonly default: import("@typespec/compiler").CallableMessage<["model", "first", "model", "second", "name"]>;
144
366
  };
145
- "visible-read-only-without-read-only": {
146
- readonly default: import("@typespec/compiler").CallableMessage<["path"]>;
147
- };
148
- "section-orphan": {
149
- readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
367
+ "property-casing-inconsistent": {
368
+ readonly default: import("@typespec/compiler").CallableMessage<["property", "name", "other", "otherName"]>;
150
369
  };
151
370
  }[C]>(program: import("@typespec/compiler").Program, diag: import("@typespec/compiler").DiagnosticReport<{
152
371
  "form-scoped-question-id": {
153
372
  readonly default: import("@typespec/compiler").CallableMessage<["id"]>;
154
373
  };
374
+ "layout-not-form": {
375
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "presented"]>;
376
+ };
377
+ "layout-duplicate": {
378
+ readonly default: import("@typespec/compiler").CallableMessage<["form", "first", "second"]>;
379
+ };
380
+ "layout-ref-root": {
381
+ readonly default: import("@typespec/compiler").CallableMessage<["ref", "root", "here", "start", "presented"]>;
382
+ readonly list: import("@typespec/compiler").CallableMessage<["ref", "list"]>;
383
+ };
384
+ "layout-entry-invalid": {
385
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "name", "name"]>;
386
+ };
387
+ "layout-unplaced": {
388
+ readonly default: import("@typespec/compiler").CallableMessage<["presented", "field", "layout"]>;
389
+ readonly partial: import("@typespec/compiler").CallableMessage<["parts", "presented", "field", "layout"]>;
390
+ };
391
+ "layout-placed-twice": {
392
+ readonly default: import("@typespec/compiler").CallableMessage<["path", "layout"]>;
393
+ };
394
+ "layout-section-not-group": {
395
+ readonly default: import("@typespec/compiler").CallableMessage<["layout", "name"]>;
396
+ };
397
+ "layout-validation": {
398
+ readonly default: import("@typespec/compiler").CallableMessage<["decorator", "name", "presented"]>;
399
+ };
400
+ "layout-condition-self": {
401
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "source"]>;
402
+ };
403
+ "layout-condition-count": {
404
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "count"]>;
405
+ };
406
+ "layout-duplicate-label": {
407
+ readonly default: import("@typespec/compiler").CallableMessage<["where", "label", "first", "second"]>;
408
+ };
409
+ "layout-entry-name": {
410
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "path", "field"]>;
411
+ };
412
+ "layout-flatten-leaf": {
413
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
414
+ };
415
+ "layout-condition-hides-required": {
416
+ readonly always: import("@typespec/compiler").CallableMessage<["name", "condition"]>;
417
+ readonly narrower: import("@typespec/compiler").CallableMessage<["name", "required", "condition"]>;
418
+ readonly inverted: import("@typespec/compiler").CallableMessage<["name", "condition"]>;
419
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
420
+ };
421
+ "layout-condition-source-omitted": {
422
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "source"]>;
423
+ };
424
+ "layout-condition-replaces": {
425
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "field"]>;
426
+ };
155
427
  "duplicate-block-id": {
156
428
  readonly default: import("@typespec/compiler").CallableMessage<["id", "first", "second"]>;
157
429
  };
158
430
  "condition-value-not-in-enum": {
159
431
  readonly default: import("@typespec/compiler").CallableMessage<["value", "enumName", "members"]>;
160
432
  };
433
+ "mapping-target-undeclared": {
434
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "mapping", "enumName", "enumName"]>;
435
+ };
436
+ "mapping-transform-undeclared": {
437
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "transform", "enumName", "enumName"]>;
438
+ };
439
+ "mapping-match-and-transform": {
440
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
441
+ };
442
+ "mapping-when-value": {
443
+ readonly exists: import("@typespec/compiler").CallableMessage<["name", "source"]>;
444
+ readonly in: import("@typespec/compiler").CallableMessage<["name", "source"]>;
445
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "source", "operator"]>;
446
+ };
447
+ "mapping-when-source": {
448
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
449
+ };
450
+ "mapping-duplicate": {
451
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "mapping"]>;
452
+ };
453
+ "mapping-path-unresolved": {
454
+ readonly default: import("@typespec/compiler").CallableMessage<["path", "name", "reason"]>;
455
+ };
456
+ "mapping-target-out-of-context": {
457
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "source", "target", "context"]>;
458
+ };
459
+ "mapping-type-mismatch": {
460
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "source", "target", "reason"]>;
461
+ };
462
+ "mapping-cardinality-mismatch": {
463
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "source", "sourceShape", "target", "targetShape"]>;
464
+ };
465
+ "mapping-target-duplicate": {
466
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "first", "second", "target"]>;
467
+ };
468
+ "mapping-from-unresolved": {
469
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "source", "context"]>;
470
+ };
471
+ "mapping-from-cardinality-mismatch": {
472
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "targetShape", "source", "sourceShape"]>;
473
+ };
474
+ "mapping-from-select-not-a-list": {
475
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "source", "source"]>;
476
+ };
477
+ "mapping-from-select-on-model": {
478
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target"]>;
479
+ };
480
+ "mapping-from-wrapper": {
481
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "context"]>;
482
+ };
483
+ "tag-not-declared": {
484
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "tag", "enumName", "enumName"]>;
485
+ };
486
+ "entity-not-declared": {
487
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "entity", "enumName", "enumName"]>;
488
+ };
489
+ "widget-not-declared": {
490
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "widget", "enumName", "enumName"]>;
491
+ };
161
492
  "condition-path-unresolved": {
162
493
  readonly default: import("@typespec/compiler").CallableMessage<["path", "model"]>;
163
494
  };
@@ -209,25 +540,134 @@ export declare const reportDiagnostic: <C extends "form-scoped-question-id" | "d
209
540
  "required-but-unreachable": {
210
541
  readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
211
542
  };
212
- "override-path-unresolved": {
213
- readonly default: import("@typespec/compiler").CallableMessage<["path", "reason"]>;
214
- };
215
- "visible-read-only-without-read-only": {
216
- readonly default: import("@typespec/compiler").CallableMessage<["path"]>;
543
+ "property-casing-collision": {
544
+ readonly default: import("@typespec/compiler").CallableMessage<["model", "first", "model", "second", "name"]>;
217
545
  };
218
- "section-orphan": {
219
- readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
546
+ "property-casing-inconsistent": {
547
+ readonly default: import("@typespec/compiler").CallableMessage<["property", "name", "other", "otherName"]>;
220
548
  };
221
- }, C, M>) => void, createDiagnostic: <C extends "form-scoped-question-id" | "duplicate-block-id" | "condition-value-not-in-enum" | "condition-path-unresolved" | "condition-count-source-not-array" | "condition-count-minimum-invalid" | "condition-source-not-sibling" | "cardinality-path-unresolved" | "cardinality-model-not-emitted" | "block-not-emitted" | "entity-id-mismatch" | "at-least-one-invalid" | "conditional-at-least-one-path-invalid" | "positive-decimal-string-target-invalid" | "encoded-checkbox-contract-invalid" | "calculation-cycle" | "calculation-path-unresolved" | "calculation-materialization-without-calculation" | "date-order-source-invalid" | "required-but-unreachable" | "override-path-unresolved" | "visible-read-only-without-read-only" | "section-orphan", M extends keyof {
549
+ }, C, M>) => void, createDiagnostic: <C extends "form-scoped-question-id" | "layout-not-form" | "layout-duplicate" | "layout-ref-root" | "layout-entry-invalid" | "layout-unplaced" | "layout-placed-twice" | "layout-section-not-group" | "layout-validation" | "layout-condition-self" | "layout-condition-count" | "layout-duplicate-label" | "layout-entry-name" | "layout-flatten-leaf" | "layout-condition-hides-required" | "layout-condition-source-omitted" | "layout-condition-replaces" | "duplicate-block-id" | "condition-value-not-in-enum" | "mapping-target-undeclared" | "mapping-transform-undeclared" | "mapping-match-and-transform" | "mapping-when-value" | "mapping-when-source" | "mapping-duplicate" | "mapping-path-unresolved" | "mapping-target-out-of-context" | "mapping-type-mismatch" | "mapping-cardinality-mismatch" | "mapping-target-duplicate" | "mapping-from-unresolved" | "mapping-from-cardinality-mismatch" | "mapping-from-select-not-a-list" | "mapping-from-select-on-model" | "mapping-from-wrapper" | "tag-not-declared" | "entity-not-declared" | "widget-not-declared" | "condition-path-unresolved" | "condition-count-source-not-array" | "condition-count-minimum-invalid" | "condition-source-not-sibling" | "cardinality-path-unresolved" | "cardinality-model-not-emitted" | "block-not-emitted" | "entity-id-mismatch" | "at-least-one-invalid" | "conditional-at-least-one-path-invalid" | "positive-decimal-string-target-invalid" | "encoded-checkbox-contract-invalid" | "calculation-cycle" | "calculation-path-unresolved" | "calculation-materialization-without-calculation" | "date-order-source-invalid" | "required-but-unreachable" | "property-casing-collision" | "property-casing-inconsistent", M extends keyof {
222
550
  "form-scoped-question-id": {
223
551
  readonly default: import("@typespec/compiler").CallableMessage<["id"]>;
224
552
  };
553
+ "layout-not-form": {
554
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "presented"]>;
555
+ };
556
+ "layout-duplicate": {
557
+ readonly default: import("@typespec/compiler").CallableMessage<["form", "first", "second"]>;
558
+ };
559
+ "layout-ref-root": {
560
+ readonly default: import("@typespec/compiler").CallableMessage<["ref", "root", "here", "start", "presented"]>;
561
+ readonly list: import("@typespec/compiler").CallableMessage<["ref", "list"]>;
562
+ };
563
+ "layout-entry-invalid": {
564
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "name", "name"]>;
565
+ };
566
+ "layout-unplaced": {
567
+ readonly default: import("@typespec/compiler").CallableMessage<["presented", "field", "layout"]>;
568
+ readonly partial: import("@typespec/compiler").CallableMessage<["parts", "presented", "field", "layout"]>;
569
+ };
570
+ "layout-placed-twice": {
571
+ readonly default: import("@typespec/compiler").CallableMessage<["path", "layout"]>;
572
+ };
573
+ "layout-section-not-group": {
574
+ readonly default: import("@typespec/compiler").CallableMessage<["layout", "name"]>;
575
+ };
576
+ "layout-validation": {
577
+ readonly default: import("@typespec/compiler").CallableMessage<["decorator", "name", "presented"]>;
578
+ };
579
+ "layout-condition-self": {
580
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "source"]>;
581
+ };
582
+ "layout-condition-count": {
583
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "count"]>;
584
+ };
585
+ "layout-duplicate-label": {
586
+ readonly default: import("@typespec/compiler").CallableMessage<["where", "label", "first", "second"]>;
587
+ };
588
+ "layout-entry-name": {
589
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "path", "field"]>;
590
+ };
591
+ "layout-flatten-leaf": {
592
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
593
+ };
594
+ "layout-condition-hides-required": {
595
+ readonly always: import("@typespec/compiler").CallableMessage<["name", "condition"]>;
596
+ readonly narrower: import("@typespec/compiler").CallableMessage<["name", "required", "condition"]>;
597
+ readonly inverted: import("@typespec/compiler").CallableMessage<["name", "condition"]>;
598
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
599
+ };
600
+ "layout-condition-source-omitted": {
601
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "source"]>;
602
+ };
603
+ "layout-condition-replaces": {
604
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "field"]>;
605
+ };
225
606
  "duplicate-block-id": {
226
607
  readonly default: import("@typespec/compiler").CallableMessage<["id", "first", "second"]>;
227
608
  };
228
609
  "condition-value-not-in-enum": {
229
610
  readonly default: import("@typespec/compiler").CallableMessage<["value", "enumName", "members"]>;
230
611
  };
612
+ "mapping-target-undeclared": {
613
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "mapping", "enumName", "enumName"]>;
614
+ };
615
+ "mapping-transform-undeclared": {
616
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "transform", "enumName", "enumName"]>;
617
+ };
618
+ "mapping-match-and-transform": {
619
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
620
+ };
621
+ "mapping-when-value": {
622
+ readonly exists: import("@typespec/compiler").CallableMessage<["name", "source"]>;
623
+ readonly in: import("@typespec/compiler").CallableMessage<["name", "source"]>;
624
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "source", "operator"]>;
625
+ };
626
+ "mapping-when-source": {
627
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
628
+ };
629
+ "mapping-duplicate": {
630
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "mapping"]>;
631
+ };
632
+ "mapping-path-unresolved": {
633
+ readonly default: import("@typespec/compiler").CallableMessage<["path", "name", "reason"]>;
634
+ };
635
+ "mapping-target-out-of-context": {
636
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "source", "target", "context"]>;
637
+ };
638
+ "mapping-type-mismatch": {
639
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "source", "target", "reason"]>;
640
+ };
641
+ "mapping-cardinality-mismatch": {
642
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "source", "sourceShape", "target", "targetShape"]>;
643
+ };
644
+ "mapping-target-duplicate": {
645
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "first", "second", "target"]>;
646
+ };
647
+ "mapping-from-unresolved": {
648
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "source", "context"]>;
649
+ };
650
+ "mapping-from-cardinality-mismatch": {
651
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "targetShape", "source", "sourceShape"]>;
652
+ };
653
+ "mapping-from-select-not-a-list": {
654
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "source", "source"]>;
655
+ };
656
+ "mapping-from-select-on-model": {
657
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target"]>;
658
+ };
659
+ "mapping-from-wrapper": {
660
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "context"]>;
661
+ };
662
+ "tag-not-declared": {
663
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "tag", "enumName", "enumName"]>;
664
+ };
665
+ "entity-not-declared": {
666
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "entity", "enumName", "enumName"]>;
667
+ };
668
+ "widget-not-declared": {
669
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "widget", "enumName", "enumName"]>;
670
+ };
231
671
  "condition-path-unresolved": {
232
672
  readonly default: import("@typespec/compiler").CallableMessage<["path", "model"]>;
233
673
  };
@@ -279,25 +719,134 @@ export declare const reportDiagnostic: <C extends "form-scoped-question-id" | "d
279
719
  "required-but-unreachable": {
280
720
  readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
281
721
  };
282
- "override-path-unresolved": {
283
- readonly default: import("@typespec/compiler").CallableMessage<["path", "reason"]>;
284
- };
285
- "visible-read-only-without-read-only": {
286
- readonly default: import("@typespec/compiler").CallableMessage<["path"]>;
722
+ "property-casing-collision": {
723
+ readonly default: import("@typespec/compiler").CallableMessage<["model", "first", "model", "second", "name"]>;
287
724
  };
288
- "section-orphan": {
289
- readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
725
+ "property-casing-inconsistent": {
726
+ readonly default: import("@typespec/compiler").CallableMessage<["property", "name", "other", "otherName"]>;
290
727
  };
291
728
  }[C]>(diag: import("@typespec/compiler").DiagnosticReport<{
292
729
  "form-scoped-question-id": {
293
730
  readonly default: import("@typespec/compiler").CallableMessage<["id"]>;
294
731
  };
732
+ "layout-not-form": {
733
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "presented"]>;
734
+ };
735
+ "layout-duplicate": {
736
+ readonly default: import("@typespec/compiler").CallableMessage<["form", "first", "second"]>;
737
+ };
738
+ "layout-ref-root": {
739
+ readonly default: import("@typespec/compiler").CallableMessage<["ref", "root", "here", "start", "presented"]>;
740
+ readonly list: import("@typespec/compiler").CallableMessage<["ref", "list"]>;
741
+ };
742
+ "layout-entry-invalid": {
743
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "name", "name"]>;
744
+ };
745
+ "layout-unplaced": {
746
+ readonly default: import("@typespec/compiler").CallableMessage<["presented", "field", "layout"]>;
747
+ readonly partial: import("@typespec/compiler").CallableMessage<["parts", "presented", "field", "layout"]>;
748
+ };
749
+ "layout-placed-twice": {
750
+ readonly default: import("@typespec/compiler").CallableMessage<["path", "layout"]>;
751
+ };
752
+ "layout-section-not-group": {
753
+ readonly default: import("@typespec/compiler").CallableMessage<["layout", "name"]>;
754
+ };
755
+ "layout-validation": {
756
+ readonly default: import("@typespec/compiler").CallableMessage<["decorator", "name", "presented"]>;
757
+ };
758
+ "layout-condition-self": {
759
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "source"]>;
760
+ };
761
+ "layout-condition-count": {
762
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "count"]>;
763
+ };
764
+ "layout-duplicate-label": {
765
+ readonly default: import("@typespec/compiler").CallableMessage<["where", "label", "first", "second"]>;
766
+ };
767
+ "layout-entry-name": {
768
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "path", "field"]>;
769
+ };
770
+ "layout-flatten-leaf": {
771
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
772
+ };
773
+ "layout-condition-hides-required": {
774
+ readonly always: import("@typespec/compiler").CallableMessage<["name", "condition"]>;
775
+ readonly narrower: import("@typespec/compiler").CallableMessage<["name", "required", "condition"]>;
776
+ readonly inverted: import("@typespec/compiler").CallableMessage<["name", "condition"]>;
777
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
778
+ };
779
+ "layout-condition-source-omitted": {
780
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "source"]>;
781
+ };
782
+ "layout-condition-replaces": {
783
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "field"]>;
784
+ };
295
785
  "duplicate-block-id": {
296
786
  readonly default: import("@typespec/compiler").CallableMessage<["id", "first", "second"]>;
297
787
  };
298
788
  "condition-value-not-in-enum": {
299
789
  readonly default: import("@typespec/compiler").CallableMessage<["value", "enumName", "members"]>;
300
790
  };
791
+ "mapping-target-undeclared": {
792
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "mapping", "enumName", "enumName"]>;
793
+ };
794
+ "mapping-transform-undeclared": {
795
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "transform", "enumName", "enumName"]>;
796
+ };
797
+ "mapping-match-and-transform": {
798
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
799
+ };
800
+ "mapping-when-value": {
801
+ readonly exists: import("@typespec/compiler").CallableMessage<["name", "source"]>;
802
+ readonly in: import("@typespec/compiler").CallableMessage<["name", "source"]>;
803
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "source", "operator"]>;
804
+ };
805
+ "mapping-when-source": {
806
+ readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
807
+ };
808
+ "mapping-duplicate": {
809
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "mapping"]>;
810
+ };
811
+ "mapping-path-unresolved": {
812
+ readonly default: import("@typespec/compiler").CallableMessage<["path", "name", "reason"]>;
813
+ };
814
+ "mapping-target-out-of-context": {
815
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "source", "target", "context"]>;
816
+ };
817
+ "mapping-type-mismatch": {
818
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "source", "target", "reason"]>;
819
+ };
820
+ "mapping-cardinality-mismatch": {
821
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "source", "sourceShape", "target", "targetShape"]>;
822
+ };
823
+ "mapping-target-duplicate": {
824
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "first", "second", "target"]>;
825
+ };
826
+ "mapping-from-unresolved": {
827
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "source", "context"]>;
828
+ };
829
+ "mapping-from-cardinality-mismatch": {
830
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "targetShape", "source", "sourceShape"]>;
831
+ };
832
+ "mapping-from-select-not-a-list": {
833
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "source", "source"]>;
834
+ };
835
+ "mapping-from-select-on-model": {
836
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target"]>;
837
+ };
838
+ "mapping-from-wrapper": {
839
+ readonly default: import("@typespec/compiler").CallableMessage<["mapping", "target", "context"]>;
840
+ };
841
+ "tag-not-declared": {
842
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "tag", "enumName", "enumName"]>;
843
+ };
844
+ "entity-not-declared": {
845
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "entity", "enumName", "enumName"]>;
846
+ };
847
+ "widget-not-declared": {
848
+ readonly default: import("@typespec/compiler").CallableMessage<["name", "widget", "enumName", "enumName"]>;
849
+ };
301
850
  "condition-path-unresolved": {
302
851
  readonly default: import("@typespec/compiler").CallableMessage<["path", "model"]>;
303
852
  };
@@ -349,13 +898,10 @@ export declare const reportDiagnostic: <C extends "form-scoped-question-id" | "d
349
898
  "required-but-unreachable": {
350
899
  readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
351
900
  };
352
- "override-path-unresolved": {
353
- readonly default: import("@typespec/compiler").CallableMessage<["path", "reason"]>;
354
- };
355
- "visible-read-only-without-read-only": {
356
- readonly default: import("@typespec/compiler").CallableMessage<["path"]>;
901
+ "property-casing-collision": {
902
+ readonly default: import("@typespec/compiler").CallableMessage<["model", "first", "model", "second", "name"]>;
357
903
  };
358
- "section-orphan": {
359
- readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
904
+ "property-casing-inconsistent": {
905
+ readonly default: import("@typespec/compiler").CallableMessage<["property", "name", "other", "otherName"]>;
360
906
  };
361
- }, C, M>) => import("@typespec/compiler").Diagnostic, stateKeys: Record<"entity" | "questionMeta" | "formMeta" | "tags" | "responseRole" | "label" | "helpText" | "widget" | "encodedCheckboxGroup" | "sections" | "section" | "order" | "overrides" | "readOnly" | "omit" | "visibleWhen" | "enabledWhen" | "readOnlyWhen" | "requiredWhen" | "notBefore" | "validationConstraints" | "exclusiveValues" | "validationConstraintsWhen" | "requiredPaths" | "requiredPathWhen" | "atLeastOnePathWhenPresent" | "requiredPathWhenPositiveDecimalString" | "positiveDecimalStringWhenPathPresent" | "atLeastOneOf" | "computed" | "computedFrom" | "calculationMaterialization" | "evaluationOrder" | "totals", symbol>;
907
+ }, C, M>) => import("@typespec/compiler").Diagnostic, stateKeys: Record<"layout" | "label" | "entity" | "widget" | "questionMeta" | "formMeta" | "layoutField" | "flatten" | "tagSets" | "tags" | "tagMembers" | "entitySets" | "entityMember" | "responseRole" | "helpText" | "widgets" | "widgetMember" | "encodedCheckboxGroup" | "order" | "readOnly" | "omit" | "visibleWhen" | "enabledWhen" | "readOnlyWhen" | "requiredWhen" | "notBefore" | "validationConstraints" | "exclusiveValues" | "validationConstraintsWhen" | "requiredPaths" | "requiredPathWhen" | "atLeastOnePathWhenPresent" | "requiredPathWhenPositiveDecimalString" | "positiveDecimalStringWhenPathPresent" | "atLeastOneOf" | "computed" | "computedFrom" | "calculationMaterialization" | "evaluationOrder" | "totals" | "mappingTargets" | "mappedTo" | "mappingPaths" | "mappedFrom" | "mappingTransformSets" | "mappingTransform" | "mappingMatch" | "mappingRequired" | "mappingWhen", symbol>;