@ue-shed/game-text 0.1.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.
@@ -0,0 +1,531 @@
1
+ import { Effect, Schema } from "effect";
2
+ export declare const TextRoleId: Schema.brand<Schema.Trim, "TextRoleId">;
3
+ export type TextRoleId = Schema.Schema.Type<typeof TextRoleId>;
4
+ export declare const TextQualityRuleId: Schema.brand<Schema.Trim, "TextQualityRuleId">;
5
+ export type TextQualityRuleId = Schema.Schema.Type<typeof TextQualityRuleId>;
6
+ export declare const TextRoleMatcher: Schema.Union<readonly [Schema.Struct<{
7
+ readonly kind: Schema.Literal<"location_kind">;
8
+ readonly value: Schema.Literals<readonly ["data_table_cell", "string_table_entry", "asset_property"]>;
9
+ }>, Schema.Struct<{
10
+ readonly kind: Schema.Literal<"object_path">;
11
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
12
+ readonly value: Schema.Trim;
13
+ }>, Schema.Struct<{
14
+ readonly kind: Schema.Literal<"row">;
15
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
16
+ readonly value: Schema.Trim;
17
+ }>, Schema.Struct<{
18
+ readonly kind: Schema.Literal<"property_path">;
19
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
20
+ readonly value: Schema.Trim;
21
+ }>, Schema.Struct<{
22
+ readonly kind: Schema.Literal<"string_table_entry">;
23
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
24
+ readonly value: Schema.Trim;
25
+ }>, Schema.Struct<{
26
+ readonly kind: Schema.Literal<"class_path">;
27
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
28
+ readonly value: Schema.Trim;
29
+ }>]>;
30
+ export type TextRoleMatcher = Schema.Schema.Type<typeof TextRoleMatcher>;
31
+ export declare const TextRoleScope: Schema.Struct<{
32
+ readonly matchers: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
33
+ readonly kind: Schema.Literal<"location_kind">;
34
+ readonly value: Schema.Literals<readonly ["data_table_cell", "string_table_entry", "asset_property"]>;
35
+ }>, Schema.Struct<{
36
+ readonly kind: Schema.Literal<"object_path">;
37
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
38
+ readonly value: Schema.Trim;
39
+ }>, Schema.Struct<{
40
+ readonly kind: Schema.Literal<"row">;
41
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
42
+ readonly value: Schema.Trim;
43
+ }>, Schema.Struct<{
44
+ readonly kind: Schema.Literal<"property_path">;
45
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
46
+ readonly value: Schema.Trim;
47
+ }>, Schema.Struct<{
48
+ readonly kind: Schema.Literal<"string_table_entry">;
49
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
50
+ readonly value: Schema.Trim;
51
+ }>, Schema.Struct<{
52
+ readonly kind: Schema.Literal<"class_path">;
53
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
54
+ readonly value: Schema.Trim;
55
+ }>]>>;
56
+ }>;
57
+ export type TextRoleScope = Schema.Schema.Type<typeof TextRoleScope>;
58
+ export declare const TextRole: Schema.Struct<{
59
+ readonly id: Schema.brand<Schema.Trim, "TextRoleId">;
60
+ readonly description: Schema.optionalKey<Schema.Trim>;
61
+ readonly scopes: Schema.$Array<Schema.Struct<{
62
+ readonly matchers: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
63
+ readonly kind: Schema.Literal<"location_kind">;
64
+ readonly value: Schema.Literals<readonly ["data_table_cell", "string_table_entry", "asset_property"]>;
65
+ }>, Schema.Struct<{
66
+ readonly kind: Schema.Literal<"object_path">;
67
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
68
+ readonly value: Schema.Trim;
69
+ }>, Schema.Struct<{
70
+ readonly kind: Schema.Literal<"row">;
71
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
72
+ readonly value: Schema.Trim;
73
+ }>, Schema.Struct<{
74
+ readonly kind: Schema.Literal<"property_path">;
75
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
76
+ readonly value: Schema.Trim;
77
+ }>, Schema.Struct<{
78
+ readonly kind: Schema.Literal<"string_table_entry">;
79
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
80
+ readonly value: Schema.Trim;
81
+ }>, Schema.Struct<{
82
+ readonly kind: Schema.Literal<"class_path">;
83
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
84
+ readonly value: Schema.Trim;
85
+ }>]>>;
86
+ }>>;
87
+ }>;
88
+ export type TextRole = Schema.Schema.Type<typeof TextRole>;
89
+ export declare const TextTerminologyEntry: Schema.Union<readonly [Schema.Struct<{
90
+ readonly kind: Schema.Literal<"forbidden">;
91
+ readonly term: Schema.Trim;
92
+ }>, Schema.Struct<{
93
+ readonly kind: Schema.Literal<"preferred">;
94
+ readonly alternatives: Schema.$Array<Schema.Trim>;
95
+ readonly term: Schema.Trim;
96
+ }>]>;
97
+ export type TextTerminologyEntry = Schema.Schema.Type<typeof TextTerminologyEntry>;
98
+ export declare const TextQualityRule: Schema.Union<readonly [Schema.Struct<{
99
+ readonly kind: Schema.Literal<"character_budget">;
100
+ readonly id: Schema.brand<Schema.Trim, "TextQualityRuleId">;
101
+ readonly maximumCharacters: Schema.Int;
102
+ readonly recovery: Schema.Trim;
103
+ readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
104
+ }>, Schema.Struct<{
105
+ readonly kind: Schema.Literal<"terminology">;
106
+ readonly caseSensitive: Schema.Boolean;
107
+ readonly id: Schema.brand<Schema.Trim, "TextQualityRuleId">;
108
+ readonly recovery: Schema.Trim;
109
+ readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
110
+ readonly terms: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
111
+ readonly kind: Schema.Literal<"forbidden">;
112
+ readonly term: Schema.Trim;
113
+ }>, Schema.Struct<{
114
+ readonly kind: Schema.Literal<"preferred">;
115
+ readonly alternatives: Schema.$Array<Schema.Trim>;
116
+ readonly term: Schema.Trim;
117
+ }>]>>;
118
+ }>]>;
119
+ export type TextQualityRule = Schema.Schema.Type<typeof TextQualityRule>;
120
+ export declare const TextQualityRuleDocument: Schema.Struct<{
121
+ readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
122
+ readonly kind: Schema.Literal<"character_budget">;
123
+ readonly id: Schema.brand<Schema.Trim, "TextQualityRuleId">;
124
+ readonly maximumCharacters: Schema.Int;
125
+ readonly recovery: Schema.Trim;
126
+ readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
127
+ }>, Schema.Struct<{
128
+ readonly kind: Schema.Literal<"terminology">;
129
+ readonly caseSensitive: Schema.Boolean;
130
+ readonly id: Schema.brand<Schema.Trim, "TextQualityRuleId">;
131
+ readonly recovery: Schema.Trim;
132
+ readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
133
+ readonly terms: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
134
+ readonly kind: Schema.Literal<"forbidden">;
135
+ readonly term: Schema.Trim;
136
+ }>, Schema.Struct<{
137
+ readonly kind: Schema.Literal<"preferred">;
138
+ readonly alternatives: Schema.$Array<Schema.Trim>;
139
+ readonly term: Schema.Trim;
140
+ }>]>>;
141
+ }>]>>;
142
+ readonly roles: Schema.$Array<Schema.Struct<{
143
+ readonly id: Schema.brand<Schema.Trim, "TextRoleId">;
144
+ readonly description: Schema.optionalKey<Schema.Trim>;
145
+ readonly scopes: Schema.$Array<Schema.Struct<{
146
+ readonly matchers: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
147
+ readonly kind: Schema.Literal<"location_kind">;
148
+ readonly value: Schema.Literals<readonly ["data_table_cell", "string_table_entry", "asset_property"]>;
149
+ }>, Schema.Struct<{
150
+ readonly kind: Schema.Literal<"object_path">;
151
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
152
+ readonly value: Schema.Trim;
153
+ }>, Schema.Struct<{
154
+ readonly kind: Schema.Literal<"row">;
155
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
156
+ readonly value: Schema.Trim;
157
+ }>, Schema.Struct<{
158
+ readonly kind: Schema.Literal<"property_path">;
159
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
160
+ readonly value: Schema.Trim;
161
+ }>, Schema.Struct<{
162
+ readonly kind: Schema.Literal<"string_table_entry">;
163
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
164
+ readonly value: Schema.Trim;
165
+ }>, Schema.Struct<{
166
+ readonly kind: Schema.Literal<"class_path">;
167
+ readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
168
+ readonly value: Schema.Trim;
169
+ }>]>>;
170
+ }>>;
171
+ }>>;
172
+ readonly schemaVersion: Schema.Literal<1>;
173
+ }>;
174
+ export type TextQualityRuleDocument = Schema.Schema.Type<typeof TextQualityRuleDocument>;
175
+ declare const TextQualityRuleDocumentError_base: Schema.Class<TextQualityRuleDocumentError, Schema.TaggedStruct<"TextQualityRuleDocumentError", {
176
+ readonly code: Schema.Literals<readonly ["invalid_json", "invalid_structure", "duplicate_role_id", "duplicate_rule_id", "unknown_role_id"]>;
177
+ readonly message: Schema.String;
178
+ readonly recovery: Schema.String;
179
+ }>, import("effect/Cause").YieldableError>;
180
+ export declare class TextQualityRuleDocumentError extends TextQualityRuleDocumentError_base {
181
+ }
182
+ export declare function decodeTextQualityRuleDocument(input: unknown): Effect.Effect<TextQualityRuleDocument, TextQualityRuleDocumentError>;
183
+ export declare function decodeTextQualityRuleDocumentJson(input: string): Effect.Effect<TextQualityRuleDocument, TextQualityRuleDocumentError>;
184
+ export declare const TextQualityAffectedOccurrence: Schema.Struct<{
185
+ readonly id: Schema.brand<Schema.String, "TextOccurrenceId">;
186
+ readonly location: Schema.Union<readonly [Schema.Struct<{
187
+ readonly kind: Schema.Literal<"data_table_cell">;
188
+ readonly objectPath: Schema.String;
189
+ readonly row: Schema.String;
190
+ readonly propertyPath: Schema.String;
191
+ }>, Schema.Struct<{
192
+ readonly kind: Schema.Literal<"string_table_entry">;
193
+ readonly objectPath: Schema.String;
194
+ readonly entryKey: Schema.String;
195
+ }>, Schema.Struct<{
196
+ readonly kind: Schema.Literal<"asset_property">;
197
+ readonly objectPath: Schema.String;
198
+ readonly classPath: Schema.String;
199
+ readonly propertyPath: Schema.String;
200
+ }>]>;
201
+ readonly packageFile: Schema.String;
202
+ }>;
203
+ export type TextQualityAffectedOccurrence = Schema.Schema.Type<typeof TextQualityAffectedOccurrence>;
204
+ export declare const CharacterBudgetActual: Schema.Struct<{
205
+ readonly characterCount: Schema.Int;
206
+ readonly kind: Schema.Literal<"character_count">;
207
+ readonly source: Schema.String;
208
+ }>;
209
+ export declare const CharacterBudgetExpectation: Schema.Struct<{
210
+ readonly kind: Schema.Literal<"maximum_characters">;
211
+ readonly maximumCharacters: Schema.Int;
212
+ }>;
213
+ export declare const TerminologyActual: Schema.Struct<{
214
+ readonly end: Schema.Int;
215
+ readonly kind: Schema.Literal<"terminology_match">;
216
+ readonly source: Schema.String;
217
+ readonly start: Schema.Int;
218
+ readonly term: Schema.Trim;
219
+ }>;
220
+ export declare const TerminologyExpectation: Schema.Union<readonly [Schema.Struct<{
221
+ readonly kind: Schema.Literal<"forbidden_term">;
222
+ readonly term: Schema.Trim;
223
+ }>, Schema.Struct<{
224
+ readonly discouragedTerm: Schema.Trim;
225
+ readonly kind: Schema.Literal<"preferred_term">;
226
+ readonly preferredTerm: Schema.Trim;
227
+ }>]>;
228
+ export declare const TextQualityFinding: Schema.Union<readonly [Schema.Struct<{
229
+ readonly actual: Schema.Struct<{
230
+ readonly characterCount: Schema.Int;
231
+ readonly kind: Schema.Literal<"character_count">;
232
+ readonly source: Schema.String;
233
+ }>;
234
+ readonly expectation: Schema.Struct<{
235
+ readonly kind: Schema.Literal<"maximum_characters">;
236
+ readonly maximumCharacters: Schema.Int;
237
+ }>;
238
+ readonly kind: Schema.Literal<"character_budget">;
239
+ readonly affectedOccurrences: Schema.$Array<Schema.Struct<{
240
+ readonly id: Schema.brand<Schema.String, "TextOccurrenceId">;
241
+ readonly location: Schema.Union<readonly [Schema.Struct<{
242
+ readonly kind: Schema.Literal<"data_table_cell">;
243
+ readonly objectPath: Schema.String;
244
+ readonly row: Schema.String;
245
+ readonly propertyPath: Schema.String;
246
+ }>, Schema.Struct<{
247
+ readonly kind: Schema.Literal<"string_table_entry">;
248
+ readonly objectPath: Schema.String;
249
+ readonly entryKey: Schema.String;
250
+ }>, Schema.Struct<{
251
+ readonly kind: Schema.Literal<"asset_property">;
252
+ readonly objectPath: Schema.String;
253
+ readonly classPath: Schema.String;
254
+ readonly propertyPath: Schema.String;
255
+ }>]>;
256
+ readonly packageFile: Schema.String;
257
+ }>>;
258
+ readonly recovery: Schema.Trim;
259
+ readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
260
+ readonly ruleId: Schema.brand<Schema.Trim, "TextQualityRuleId">;
261
+ readonly textUnitId: Schema.brand<Schema.String, "TextUnitId">;
262
+ }>, Schema.Struct<{
263
+ readonly actual: Schema.Struct<{
264
+ readonly end: Schema.Int;
265
+ readonly kind: Schema.Literal<"terminology_match">;
266
+ readonly source: Schema.String;
267
+ readonly start: Schema.Int;
268
+ readonly term: Schema.Trim;
269
+ }>;
270
+ readonly expectation: Schema.Union<readonly [Schema.Struct<{
271
+ readonly kind: Schema.Literal<"forbidden_term">;
272
+ readonly term: Schema.Trim;
273
+ }>, Schema.Struct<{
274
+ readonly discouragedTerm: Schema.Trim;
275
+ readonly kind: Schema.Literal<"preferred_term">;
276
+ readonly preferredTerm: Schema.Trim;
277
+ }>]>;
278
+ readonly kind: Schema.Literal<"terminology">;
279
+ readonly affectedOccurrences: Schema.$Array<Schema.Struct<{
280
+ readonly id: Schema.brand<Schema.String, "TextOccurrenceId">;
281
+ readonly location: Schema.Union<readonly [Schema.Struct<{
282
+ readonly kind: Schema.Literal<"data_table_cell">;
283
+ readonly objectPath: Schema.String;
284
+ readonly row: Schema.String;
285
+ readonly propertyPath: Schema.String;
286
+ }>, Schema.Struct<{
287
+ readonly kind: Schema.Literal<"string_table_entry">;
288
+ readonly objectPath: Schema.String;
289
+ readonly entryKey: Schema.String;
290
+ }>, Schema.Struct<{
291
+ readonly kind: Schema.Literal<"asset_property">;
292
+ readonly objectPath: Schema.String;
293
+ readonly classPath: Schema.String;
294
+ readonly propertyPath: Schema.String;
295
+ }>]>;
296
+ readonly packageFile: Schema.String;
297
+ }>>;
298
+ readonly recovery: Schema.Trim;
299
+ readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
300
+ readonly ruleId: Schema.brand<Schema.Trim, "TextQualityRuleId">;
301
+ readonly textUnitId: Schema.brand<Schema.String, "TextUnitId">;
302
+ }>]>;
303
+ export type TextQualityFinding = Schema.Schema.Type<typeof TextQualityFinding>;
304
+ export declare const TextQualityRoleSummary: Schema.Struct<{
305
+ readonly matchedOccurrences: Schema.Int;
306
+ readonly matchedTextUnits: Schema.Int;
307
+ readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
308
+ }>;
309
+ export type TextQualityRoleSummary = Schema.Schema.Type<typeof TextQualityRoleSummary>;
310
+ export declare const TextQualityRuleSummary: Schema.Struct<{
311
+ readonly findingCount: Schema.Int;
312
+ readonly ruleId: Schema.brand<Schema.Trim, "TextQualityRuleId">;
313
+ }>;
314
+ export type TextQualityRuleSummary = Schema.Schema.Type<typeof TextQualityRuleSummary>;
315
+ export declare const TextQualityReport: Schema.Struct<{
316
+ readonly coverage: Schema.Struct<{
317
+ readonly discoveredPackages: Schema.Int;
318
+ readonly inspectedPackages: Schema.Int;
319
+ readonly partialPackages: Schema.Int;
320
+ readonly failedPackages: Schema.Int;
321
+ readonly textUnits: Schema.Int;
322
+ readonly textOccurrences: Schema.Int;
323
+ readonly resolvedOccurrences: Schema.Int;
324
+ readonly unresolvedOccurrences: Schema.Int;
325
+ readonly unsupportedTextProperties: Schema.Int;
326
+ }>;
327
+ readonly diagnostics: Schema.$Array<Schema.Struct<{
328
+ readonly code: Schema.Literals<readonly ["package_inspection_failed", "package_partially_decoded", "unsupported_text_history"]>;
329
+ readonly message: Schema.String;
330
+ readonly packageFile: Schema.String;
331
+ readonly objectPath: Schema.optional<Schema.String>;
332
+ readonly propertyPath: Schema.optional<Schema.String>;
333
+ }>>;
334
+ readonly findings: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
335
+ readonly actual: Schema.Struct<{
336
+ readonly characterCount: Schema.Int;
337
+ readonly kind: Schema.Literal<"character_count">;
338
+ readonly source: Schema.String;
339
+ }>;
340
+ readonly expectation: Schema.Struct<{
341
+ readonly kind: Schema.Literal<"maximum_characters">;
342
+ readonly maximumCharacters: Schema.Int;
343
+ }>;
344
+ readonly kind: Schema.Literal<"character_budget">;
345
+ readonly affectedOccurrences: Schema.$Array<Schema.Struct<{
346
+ readonly id: Schema.brand<Schema.String, "TextOccurrenceId">;
347
+ readonly location: Schema.Union<readonly [Schema.Struct<{
348
+ readonly kind: Schema.Literal<"data_table_cell">;
349
+ readonly objectPath: Schema.String;
350
+ readonly row: Schema.String;
351
+ readonly propertyPath: Schema.String;
352
+ }>, Schema.Struct<{
353
+ readonly kind: Schema.Literal<"string_table_entry">;
354
+ readonly objectPath: Schema.String;
355
+ readonly entryKey: Schema.String;
356
+ }>, Schema.Struct<{
357
+ readonly kind: Schema.Literal<"asset_property">;
358
+ readonly objectPath: Schema.String;
359
+ readonly classPath: Schema.String;
360
+ readonly propertyPath: Schema.String;
361
+ }>]>;
362
+ readonly packageFile: Schema.String;
363
+ }>>;
364
+ readonly recovery: Schema.Trim;
365
+ readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
366
+ readonly ruleId: Schema.brand<Schema.Trim, "TextQualityRuleId">;
367
+ readonly textUnitId: Schema.brand<Schema.String, "TextUnitId">;
368
+ }>, Schema.Struct<{
369
+ readonly actual: Schema.Struct<{
370
+ readonly end: Schema.Int;
371
+ readonly kind: Schema.Literal<"terminology_match">;
372
+ readonly source: Schema.String;
373
+ readonly start: Schema.Int;
374
+ readonly term: Schema.Trim;
375
+ }>;
376
+ readonly expectation: Schema.Union<readonly [Schema.Struct<{
377
+ readonly kind: Schema.Literal<"forbidden_term">;
378
+ readonly term: Schema.Trim;
379
+ }>, Schema.Struct<{
380
+ readonly discouragedTerm: Schema.Trim;
381
+ readonly kind: Schema.Literal<"preferred_term">;
382
+ readonly preferredTerm: Schema.Trim;
383
+ }>]>;
384
+ readonly kind: Schema.Literal<"terminology">;
385
+ readonly affectedOccurrences: Schema.$Array<Schema.Struct<{
386
+ readonly id: Schema.brand<Schema.String, "TextOccurrenceId">;
387
+ readonly location: Schema.Union<readonly [Schema.Struct<{
388
+ readonly kind: Schema.Literal<"data_table_cell">;
389
+ readonly objectPath: Schema.String;
390
+ readonly row: Schema.String;
391
+ readonly propertyPath: Schema.String;
392
+ }>, Schema.Struct<{
393
+ readonly kind: Schema.Literal<"string_table_entry">;
394
+ readonly objectPath: Schema.String;
395
+ readonly entryKey: Schema.String;
396
+ }>, Schema.Struct<{
397
+ readonly kind: Schema.Literal<"asset_property">;
398
+ readonly objectPath: Schema.String;
399
+ readonly classPath: Schema.String;
400
+ readonly propertyPath: Schema.String;
401
+ }>]>;
402
+ readonly packageFile: Schema.String;
403
+ }>>;
404
+ readonly recovery: Schema.Trim;
405
+ readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
406
+ readonly ruleId: Schema.brand<Schema.Trim, "TextQualityRuleId">;
407
+ readonly textUnitId: Schema.brand<Schema.String, "TextUnitId">;
408
+ }>]>>;
409
+ readonly roles: Schema.$Array<Schema.Struct<{
410
+ readonly matchedOccurrences: Schema.Int;
411
+ readonly matchedTextUnits: Schema.Int;
412
+ readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
413
+ }>>;
414
+ readonly ruleDocumentVersion: Schema.Literal<1>;
415
+ readonly rules: Schema.$Array<Schema.Struct<{
416
+ readonly findingCount: Schema.Int;
417
+ readonly ruleId: Schema.brand<Schema.Trim, "TextQualityRuleId">;
418
+ }>>;
419
+ readonly schemaVersion: Schema.Literal<1>;
420
+ readonly status: Schema.Literals<readonly ["complete", "partial"]>;
421
+ }>;
422
+ export type TextQualityReport = Schema.Schema.Type<typeof TextQualityReport>;
423
+ export declare const decodeTextQualityReport: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<Schema.Struct.ReadonlySide<{
424
+ readonly coverage: Schema.Struct<{
425
+ readonly discoveredPackages: Schema.Int;
426
+ readonly inspectedPackages: Schema.Int;
427
+ readonly partialPackages: Schema.Int;
428
+ readonly failedPackages: Schema.Int;
429
+ readonly textUnits: Schema.Int;
430
+ readonly textOccurrences: Schema.Int;
431
+ readonly resolvedOccurrences: Schema.Int;
432
+ readonly unresolvedOccurrences: Schema.Int;
433
+ readonly unsupportedTextProperties: Schema.Int;
434
+ }>;
435
+ readonly diagnostics: Schema.$Array<Schema.Struct<{
436
+ readonly code: Schema.Literals<readonly ["package_inspection_failed", "package_partially_decoded", "unsupported_text_history"]>;
437
+ readonly message: Schema.String;
438
+ readonly packageFile: Schema.String;
439
+ readonly objectPath: Schema.optional<Schema.String>;
440
+ readonly propertyPath: Schema.optional<Schema.String>;
441
+ }>>;
442
+ readonly findings: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
443
+ readonly actual: Schema.Struct<{
444
+ readonly characterCount: Schema.Int;
445
+ readonly kind: Schema.Literal<"character_count">;
446
+ readonly source: Schema.String;
447
+ }>;
448
+ readonly expectation: Schema.Struct<{
449
+ readonly kind: Schema.Literal<"maximum_characters">;
450
+ readonly maximumCharacters: Schema.Int;
451
+ }>;
452
+ readonly kind: Schema.Literal<"character_budget">;
453
+ readonly affectedOccurrences: Schema.$Array<Schema.Struct<{
454
+ readonly id: Schema.brand<Schema.String, "TextOccurrenceId">;
455
+ readonly location: Schema.Union<readonly [Schema.Struct<{
456
+ readonly kind: Schema.Literal<"data_table_cell">;
457
+ readonly objectPath: Schema.String;
458
+ readonly row: Schema.String;
459
+ readonly propertyPath: Schema.String;
460
+ }>, Schema.Struct<{
461
+ readonly kind: Schema.Literal<"string_table_entry">;
462
+ readonly objectPath: Schema.String;
463
+ readonly entryKey: Schema.String;
464
+ }>, Schema.Struct<{
465
+ readonly kind: Schema.Literal<"asset_property">;
466
+ readonly objectPath: Schema.String;
467
+ readonly classPath: Schema.String;
468
+ readonly propertyPath: Schema.String;
469
+ }>]>;
470
+ readonly packageFile: Schema.String;
471
+ }>>;
472
+ readonly recovery: Schema.Trim;
473
+ readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
474
+ readonly ruleId: Schema.brand<Schema.Trim, "TextQualityRuleId">;
475
+ readonly textUnitId: Schema.brand<Schema.String, "TextUnitId">;
476
+ }>, Schema.Struct<{
477
+ readonly actual: Schema.Struct<{
478
+ readonly end: Schema.Int;
479
+ readonly kind: Schema.Literal<"terminology_match">;
480
+ readonly source: Schema.String;
481
+ readonly start: Schema.Int;
482
+ readonly term: Schema.Trim;
483
+ }>;
484
+ readonly expectation: Schema.Union<readonly [Schema.Struct<{
485
+ readonly kind: Schema.Literal<"forbidden_term">;
486
+ readonly term: Schema.Trim;
487
+ }>, Schema.Struct<{
488
+ readonly discouragedTerm: Schema.Trim;
489
+ readonly kind: Schema.Literal<"preferred_term">;
490
+ readonly preferredTerm: Schema.Trim;
491
+ }>]>;
492
+ readonly kind: Schema.Literal<"terminology">;
493
+ readonly affectedOccurrences: Schema.$Array<Schema.Struct<{
494
+ readonly id: Schema.brand<Schema.String, "TextOccurrenceId">;
495
+ readonly location: Schema.Union<readonly [Schema.Struct<{
496
+ readonly kind: Schema.Literal<"data_table_cell">;
497
+ readonly objectPath: Schema.String;
498
+ readonly row: Schema.String;
499
+ readonly propertyPath: Schema.String;
500
+ }>, Schema.Struct<{
501
+ readonly kind: Schema.Literal<"string_table_entry">;
502
+ readonly objectPath: Schema.String;
503
+ readonly entryKey: Schema.String;
504
+ }>, Schema.Struct<{
505
+ readonly kind: Schema.Literal<"asset_property">;
506
+ readonly objectPath: Schema.String;
507
+ readonly classPath: Schema.String;
508
+ readonly propertyPath: Schema.String;
509
+ }>]>;
510
+ readonly packageFile: Schema.String;
511
+ }>>;
512
+ readonly recovery: Schema.Trim;
513
+ readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
514
+ readonly ruleId: Schema.brand<Schema.Trim, "TextQualityRuleId">;
515
+ readonly textUnitId: Schema.brand<Schema.String, "TextUnitId">;
516
+ }>]>>;
517
+ readonly roles: Schema.$Array<Schema.Struct<{
518
+ readonly matchedOccurrences: Schema.Int;
519
+ readonly matchedTextUnits: Schema.Int;
520
+ readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
521
+ }>>;
522
+ readonly ruleDocumentVersion: Schema.Literal<1>;
523
+ readonly rules: Schema.$Array<Schema.Struct<{
524
+ readonly findingCount: Schema.Int;
525
+ readonly ruleId: Schema.brand<Schema.Trim, "TextQualityRuleId">;
526
+ }>>;
527
+ readonly schemaVersion: Schema.Literal<1>;
528
+ readonly status: Schema.Literals<readonly ["complete", "partial"]>;
529
+ }, "Type">, Schema.SchemaError, never>;
530
+ export {};
531
+ //# sourceMappingURL=quality-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quality-schema.d.ts","sourceRoot":"","sources":["../src/quality-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAexC,eAAO,MAAM,UAAU,yCAAkD,CAAC;AAC1E,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/D,eAAO,MAAM,iBAAiB,gDAAyD,CAAC;AACxF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE7E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;IA8B1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CA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