@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.
- package/ADOPTING.md +59 -0
- package/LICENSE +21 -0
- package/README.md +47 -0
- package/adoption.manifest.json +68 -0
- package/dist/browser.d.ts +7 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +7 -0
- package/dist/browser.js.map +1 -0
- package/dist/corpus.d.ts +70 -0
- package/dist/corpus.d.ts.map +1 -0
- package/dist/corpus.js +579 -0
- package/dist/corpus.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/quality-query.d.ts +787 -0
- package/dist/quality-query.d.ts.map +1 -0
- package/dist/quality-query.js +259 -0
- package/dist/quality-query.js.map +1 -0
- package/dist/quality-schema.d.ts +531 -0
- package/dist/quality-schema.d.ts.map +1 -0
- package/dist/quality-schema.js +220 -0
- package/dist/quality-schema.js.map +1 -0
- package/dist/quality.d.ts +7 -0
- package/dist/quality.d.ts.map +1 -0
- package/dist/quality.js +150 -0
- package/dist/quality.js.map +1 -0
- package/dist/query.d.ts +12 -0
- package/dist/query.d.ts.map +1 -0
- package/dist/query.js +155 -0
- package/dist/query.js.map +1 -0
- package/dist/schema.d.ts +994 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +195 -0
- package/dist/schema.js.map +1 -0
- package/dist/search.d.ts +10 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +24 -0
- package/dist/search.js.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1,787 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { type TextQualityReport } from "./quality-schema.js";
|
|
3
|
+
export declare const TextQualityFindingId: Schema.brand<Schema.String, "TextQualityFindingId">;
|
|
4
|
+
export type TextQualityFindingId = Schema.Schema.Type<typeof TextQualityFindingId>;
|
|
5
|
+
export declare const makeTextQualityFindingId: (input: string, options?: Schema.MakeOptions) => string & import("effect/Brand").Brand<"TextQualityFindingId">;
|
|
6
|
+
export declare const TextQualityFindingKind: Schema.Literals<readonly ["character_budget", "terminology"]>;
|
|
7
|
+
export type TextQualityFindingKind = Schema.Schema.Type<typeof TextQualityFindingKind>;
|
|
8
|
+
export declare const TextQualityFilter: Schema.Literals<readonly ["all", "character_budget", "terminology"]>;
|
|
9
|
+
export type TextQualityFilter = Schema.Schema.Type<typeof TextQualityFilter>;
|
|
10
|
+
export declare const TextQualityQuerySummary: Schema.Struct<{
|
|
11
|
+
readonly characterBudgetCount: Schema.Int;
|
|
12
|
+
readonly coverage: Schema.Struct<{
|
|
13
|
+
readonly discoveredPackages: Schema.Int;
|
|
14
|
+
readonly inspectedPackages: Schema.Int;
|
|
15
|
+
readonly partialPackages: Schema.Int;
|
|
16
|
+
readonly failedPackages: Schema.Int;
|
|
17
|
+
readonly textUnits: Schema.Int;
|
|
18
|
+
readonly textOccurrences: Schema.Int;
|
|
19
|
+
readonly resolvedOccurrences: Schema.Int;
|
|
20
|
+
readonly unresolvedOccurrences: Schema.Int;
|
|
21
|
+
readonly unsupportedTextProperties: Schema.Int;
|
|
22
|
+
}>;
|
|
23
|
+
readonly diagnosticCount: Schema.Int;
|
|
24
|
+
readonly findingCount: Schema.Int;
|
|
25
|
+
readonly roles: Schema.$Array<Schema.Struct<{
|
|
26
|
+
readonly matchedOccurrences: Schema.Int;
|
|
27
|
+
readonly matchedTextUnits: Schema.Int;
|
|
28
|
+
readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
|
|
29
|
+
}>>;
|
|
30
|
+
readonly rules: Schema.$Array<Schema.Struct<{
|
|
31
|
+
readonly findingCount: Schema.Int;
|
|
32
|
+
readonly ruleId: Schema.brand<Schema.Trim, "TextQualityRuleId">;
|
|
33
|
+
}>>;
|
|
34
|
+
readonly ruleDocumentVersion: Schema.Literal<1>;
|
|
35
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
36
|
+
readonly status: Schema.Literals<readonly ["complete", "partial"]>;
|
|
37
|
+
readonly terminologyCount: Schema.Int;
|
|
38
|
+
}>;
|
|
39
|
+
export type TextQualityQuerySummary = Schema.Schema.Type<typeof TextQualityQuerySummary>;
|
|
40
|
+
export declare const TextQualityQueryRunResult: Schema.Union<readonly [Schema.Struct<{
|
|
41
|
+
readonly document: Schema.Struct<{
|
|
42
|
+
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
43
|
+
readonly kind: Schema.Literal<"character_budget">;
|
|
44
|
+
readonly id: Schema.brand<Schema.Trim, "TextQualityRuleId">;
|
|
45
|
+
readonly maximumCharacters: Schema.Int;
|
|
46
|
+
readonly recovery: Schema.Trim;
|
|
47
|
+
readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
|
|
48
|
+
}>, Schema.Struct<{
|
|
49
|
+
readonly kind: Schema.Literal<"terminology">;
|
|
50
|
+
readonly caseSensitive: Schema.Boolean;
|
|
51
|
+
readonly id: Schema.brand<Schema.Trim, "TextQualityRuleId">;
|
|
52
|
+
readonly recovery: Schema.Trim;
|
|
53
|
+
readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
|
|
54
|
+
readonly terms: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
55
|
+
readonly kind: Schema.Literal<"forbidden">;
|
|
56
|
+
readonly term: Schema.Trim;
|
|
57
|
+
}>, Schema.Struct<{
|
|
58
|
+
readonly kind: Schema.Literal<"preferred">;
|
|
59
|
+
readonly alternatives: Schema.$Array<Schema.Trim>;
|
|
60
|
+
readonly term: Schema.Trim;
|
|
61
|
+
}>]>>;
|
|
62
|
+
}>]>>;
|
|
63
|
+
readonly roles: Schema.$Array<Schema.Struct<{
|
|
64
|
+
readonly id: Schema.brand<Schema.Trim, "TextRoleId">;
|
|
65
|
+
readonly description: Schema.optionalKey<Schema.Trim>;
|
|
66
|
+
readonly scopes: Schema.$Array<Schema.Struct<{
|
|
67
|
+
readonly matchers: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
68
|
+
readonly kind: Schema.Literal<"location_kind">;
|
|
69
|
+
readonly value: Schema.Literals<readonly ["data_table_cell", "string_table_entry", "asset_property"]>;
|
|
70
|
+
}>, Schema.Struct<{
|
|
71
|
+
readonly kind: Schema.Literal<"object_path">;
|
|
72
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
73
|
+
readonly value: Schema.Trim;
|
|
74
|
+
}>, Schema.Struct<{
|
|
75
|
+
readonly kind: Schema.Literal<"row">;
|
|
76
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
77
|
+
readonly value: Schema.Trim;
|
|
78
|
+
}>, Schema.Struct<{
|
|
79
|
+
readonly kind: Schema.Literal<"property_path">;
|
|
80
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
81
|
+
readonly value: Schema.Trim;
|
|
82
|
+
}>, Schema.Struct<{
|
|
83
|
+
readonly kind: Schema.Literal<"string_table_entry">;
|
|
84
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
85
|
+
readonly value: Schema.Trim;
|
|
86
|
+
}>, Schema.Struct<{
|
|
87
|
+
readonly kind: Schema.Literal<"class_path">;
|
|
88
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
89
|
+
readonly value: Schema.Trim;
|
|
90
|
+
}>]>>;
|
|
91
|
+
}>>;
|
|
92
|
+
}>>;
|
|
93
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
94
|
+
}>;
|
|
95
|
+
readonly status: Schema.Literal<"completed">;
|
|
96
|
+
readonly summary: Schema.Struct<{
|
|
97
|
+
readonly characterBudgetCount: Schema.Int;
|
|
98
|
+
readonly coverage: Schema.Struct<{
|
|
99
|
+
readonly discoveredPackages: Schema.Int;
|
|
100
|
+
readonly inspectedPackages: Schema.Int;
|
|
101
|
+
readonly partialPackages: Schema.Int;
|
|
102
|
+
readonly failedPackages: Schema.Int;
|
|
103
|
+
readonly textUnits: Schema.Int;
|
|
104
|
+
readonly textOccurrences: Schema.Int;
|
|
105
|
+
readonly resolvedOccurrences: Schema.Int;
|
|
106
|
+
readonly unresolvedOccurrences: Schema.Int;
|
|
107
|
+
readonly unsupportedTextProperties: Schema.Int;
|
|
108
|
+
}>;
|
|
109
|
+
readonly diagnosticCount: Schema.Int;
|
|
110
|
+
readonly findingCount: Schema.Int;
|
|
111
|
+
readonly roles: Schema.$Array<Schema.Struct<{
|
|
112
|
+
readonly matchedOccurrences: Schema.Int;
|
|
113
|
+
readonly matchedTextUnits: Schema.Int;
|
|
114
|
+
readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
|
|
115
|
+
}>>;
|
|
116
|
+
readonly rules: Schema.$Array<Schema.Struct<{
|
|
117
|
+
readonly findingCount: Schema.Int;
|
|
118
|
+
readonly ruleId: Schema.brand<Schema.Trim, "TextQualityRuleId">;
|
|
119
|
+
}>>;
|
|
120
|
+
readonly ruleDocumentVersion: Schema.Literal<1>;
|
|
121
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
122
|
+
readonly status: Schema.Literals<readonly ["complete", "partial"]>;
|
|
123
|
+
readonly terminologyCount: Schema.Int;
|
|
124
|
+
}>;
|
|
125
|
+
}>, Schema.Struct<{
|
|
126
|
+
readonly status: Schema.Literal<"cancelled">;
|
|
127
|
+
}>, Schema.Struct<{
|
|
128
|
+
readonly status: Schema.Literal<"not_ready">;
|
|
129
|
+
}>, Schema.Struct<{
|
|
130
|
+
readonly status: Schema.Literal<"failed">;
|
|
131
|
+
readonly error: Schema.Struct<{
|
|
132
|
+
readonly code: Schema.Literals<readonly ["invalid_rules", "read_failed", "contract_failure"]>;
|
|
133
|
+
readonly message: Schema.String;
|
|
134
|
+
readonly recovery: Schema.String;
|
|
135
|
+
readonly retrySafe: Schema.Boolean;
|
|
136
|
+
}>;
|
|
137
|
+
}>]>;
|
|
138
|
+
export type TextQualityQueryRunResult = Schema.Schema.Type<typeof TextQualityQueryRunResult>;
|
|
139
|
+
export declare const decodeTextQualityQueryRunResult: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<Schema.Struct.ReadonlySide<{
|
|
140
|
+
readonly document: Schema.Struct<{
|
|
141
|
+
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
142
|
+
readonly kind: Schema.Literal<"character_budget">;
|
|
143
|
+
readonly id: Schema.brand<Schema.Trim, "TextQualityRuleId">;
|
|
144
|
+
readonly maximumCharacters: Schema.Int;
|
|
145
|
+
readonly recovery: Schema.Trim;
|
|
146
|
+
readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
|
|
147
|
+
}>, Schema.Struct<{
|
|
148
|
+
readonly kind: Schema.Literal<"terminology">;
|
|
149
|
+
readonly caseSensitive: Schema.Boolean;
|
|
150
|
+
readonly id: Schema.brand<Schema.Trim, "TextQualityRuleId">;
|
|
151
|
+
readonly recovery: Schema.Trim;
|
|
152
|
+
readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
|
|
153
|
+
readonly terms: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
154
|
+
readonly kind: Schema.Literal<"forbidden">;
|
|
155
|
+
readonly term: Schema.Trim;
|
|
156
|
+
}>, Schema.Struct<{
|
|
157
|
+
readonly kind: Schema.Literal<"preferred">;
|
|
158
|
+
readonly alternatives: Schema.$Array<Schema.Trim>;
|
|
159
|
+
readonly term: Schema.Trim;
|
|
160
|
+
}>]>>;
|
|
161
|
+
}>]>>;
|
|
162
|
+
readonly roles: Schema.$Array<Schema.Struct<{
|
|
163
|
+
readonly id: Schema.brand<Schema.Trim, "TextRoleId">;
|
|
164
|
+
readonly description: Schema.optionalKey<Schema.Trim>;
|
|
165
|
+
readonly scopes: Schema.$Array<Schema.Struct<{
|
|
166
|
+
readonly matchers: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
167
|
+
readonly kind: Schema.Literal<"location_kind">;
|
|
168
|
+
readonly value: Schema.Literals<readonly ["data_table_cell", "string_table_entry", "asset_property"]>;
|
|
169
|
+
}>, Schema.Struct<{
|
|
170
|
+
readonly kind: Schema.Literal<"object_path">;
|
|
171
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
172
|
+
readonly value: Schema.Trim;
|
|
173
|
+
}>, Schema.Struct<{
|
|
174
|
+
readonly kind: Schema.Literal<"row">;
|
|
175
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
176
|
+
readonly value: Schema.Trim;
|
|
177
|
+
}>, Schema.Struct<{
|
|
178
|
+
readonly kind: Schema.Literal<"property_path">;
|
|
179
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
180
|
+
readonly value: Schema.Trim;
|
|
181
|
+
}>, Schema.Struct<{
|
|
182
|
+
readonly kind: Schema.Literal<"string_table_entry">;
|
|
183
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
184
|
+
readonly value: Schema.Trim;
|
|
185
|
+
}>, Schema.Struct<{
|
|
186
|
+
readonly kind: Schema.Literal<"class_path">;
|
|
187
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
188
|
+
readonly value: Schema.Trim;
|
|
189
|
+
}>]>>;
|
|
190
|
+
}>>;
|
|
191
|
+
}>>;
|
|
192
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
193
|
+
}>;
|
|
194
|
+
readonly status: Schema.Literal<"completed">;
|
|
195
|
+
readonly summary: Schema.Struct<{
|
|
196
|
+
readonly characterBudgetCount: Schema.Int;
|
|
197
|
+
readonly coverage: Schema.Struct<{
|
|
198
|
+
readonly discoveredPackages: Schema.Int;
|
|
199
|
+
readonly inspectedPackages: Schema.Int;
|
|
200
|
+
readonly partialPackages: Schema.Int;
|
|
201
|
+
readonly failedPackages: Schema.Int;
|
|
202
|
+
readonly textUnits: Schema.Int;
|
|
203
|
+
readonly textOccurrences: Schema.Int;
|
|
204
|
+
readonly resolvedOccurrences: Schema.Int;
|
|
205
|
+
readonly unresolvedOccurrences: Schema.Int;
|
|
206
|
+
readonly unsupportedTextProperties: Schema.Int;
|
|
207
|
+
}>;
|
|
208
|
+
readonly diagnosticCount: Schema.Int;
|
|
209
|
+
readonly findingCount: Schema.Int;
|
|
210
|
+
readonly roles: Schema.$Array<Schema.Struct<{
|
|
211
|
+
readonly matchedOccurrences: Schema.Int;
|
|
212
|
+
readonly matchedTextUnits: Schema.Int;
|
|
213
|
+
readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
|
|
214
|
+
}>>;
|
|
215
|
+
readonly rules: Schema.$Array<Schema.Struct<{
|
|
216
|
+
readonly findingCount: Schema.Int;
|
|
217
|
+
readonly ruleId: Schema.brand<Schema.Trim, "TextQualityRuleId">;
|
|
218
|
+
}>>;
|
|
219
|
+
readonly ruleDocumentVersion: Schema.Literal<1>;
|
|
220
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
221
|
+
readonly status: Schema.Literals<readonly ["complete", "partial"]>;
|
|
222
|
+
readonly terminologyCount: Schema.Int;
|
|
223
|
+
}>;
|
|
224
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
225
|
+
readonly status: Schema.Literal<"cancelled">;
|
|
226
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
227
|
+
readonly status: Schema.Literal<"not_ready">;
|
|
228
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
229
|
+
readonly status: Schema.Literal<"failed">;
|
|
230
|
+
readonly error: Schema.Struct<{
|
|
231
|
+
readonly code: Schema.Literals<readonly ["invalid_rules", "read_failed", "contract_failure"]>;
|
|
232
|
+
readonly message: Schema.String;
|
|
233
|
+
readonly recovery: Schema.String;
|
|
234
|
+
readonly retrySafe: Schema.Boolean;
|
|
235
|
+
}>;
|
|
236
|
+
}, "Type">, Schema.SchemaError, never>;
|
|
237
|
+
export declare const TextQualityRuleUpdateResult: Schema.Union<readonly [Schema.Struct<{
|
|
238
|
+
readonly document: Schema.Struct<{
|
|
239
|
+
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
240
|
+
readonly kind: Schema.Literal<"character_budget">;
|
|
241
|
+
readonly id: Schema.brand<Schema.Trim, "TextQualityRuleId">;
|
|
242
|
+
readonly maximumCharacters: Schema.Int;
|
|
243
|
+
readonly recovery: Schema.Trim;
|
|
244
|
+
readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
|
|
245
|
+
}>, Schema.Struct<{
|
|
246
|
+
readonly kind: Schema.Literal<"terminology">;
|
|
247
|
+
readonly caseSensitive: Schema.Boolean;
|
|
248
|
+
readonly id: Schema.brand<Schema.Trim, "TextQualityRuleId">;
|
|
249
|
+
readonly recovery: Schema.Trim;
|
|
250
|
+
readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
|
|
251
|
+
readonly terms: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
252
|
+
readonly kind: Schema.Literal<"forbidden">;
|
|
253
|
+
readonly term: Schema.Trim;
|
|
254
|
+
}>, Schema.Struct<{
|
|
255
|
+
readonly kind: Schema.Literal<"preferred">;
|
|
256
|
+
readonly alternatives: Schema.$Array<Schema.Trim>;
|
|
257
|
+
readonly term: Schema.Trim;
|
|
258
|
+
}>]>>;
|
|
259
|
+
}>]>>;
|
|
260
|
+
readonly roles: Schema.$Array<Schema.Struct<{
|
|
261
|
+
readonly id: Schema.brand<Schema.Trim, "TextRoleId">;
|
|
262
|
+
readonly description: Schema.optionalKey<Schema.Trim>;
|
|
263
|
+
readonly scopes: Schema.$Array<Schema.Struct<{
|
|
264
|
+
readonly matchers: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
265
|
+
readonly kind: Schema.Literal<"location_kind">;
|
|
266
|
+
readonly value: Schema.Literals<readonly ["data_table_cell", "string_table_entry", "asset_property"]>;
|
|
267
|
+
}>, Schema.Struct<{
|
|
268
|
+
readonly kind: Schema.Literal<"object_path">;
|
|
269
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
270
|
+
readonly value: Schema.Trim;
|
|
271
|
+
}>, Schema.Struct<{
|
|
272
|
+
readonly kind: Schema.Literal<"row">;
|
|
273
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
274
|
+
readonly value: Schema.Trim;
|
|
275
|
+
}>, Schema.Struct<{
|
|
276
|
+
readonly kind: Schema.Literal<"property_path">;
|
|
277
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
278
|
+
readonly value: Schema.Trim;
|
|
279
|
+
}>, Schema.Struct<{
|
|
280
|
+
readonly kind: Schema.Literal<"string_table_entry">;
|
|
281
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
282
|
+
readonly value: Schema.Trim;
|
|
283
|
+
}>, Schema.Struct<{
|
|
284
|
+
readonly kind: Schema.Literal<"class_path">;
|
|
285
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
286
|
+
readonly value: Schema.Trim;
|
|
287
|
+
}>]>>;
|
|
288
|
+
}>>;
|
|
289
|
+
}>>;
|
|
290
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
291
|
+
}>;
|
|
292
|
+
readonly status: Schema.Literal<"completed">;
|
|
293
|
+
readonly summary: Schema.Struct<{
|
|
294
|
+
readonly characterBudgetCount: Schema.Int;
|
|
295
|
+
readonly coverage: Schema.Struct<{
|
|
296
|
+
readonly discoveredPackages: Schema.Int;
|
|
297
|
+
readonly inspectedPackages: Schema.Int;
|
|
298
|
+
readonly partialPackages: Schema.Int;
|
|
299
|
+
readonly failedPackages: Schema.Int;
|
|
300
|
+
readonly textUnits: Schema.Int;
|
|
301
|
+
readonly textOccurrences: Schema.Int;
|
|
302
|
+
readonly resolvedOccurrences: Schema.Int;
|
|
303
|
+
readonly unresolvedOccurrences: Schema.Int;
|
|
304
|
+
readonly unsupportedTextProperties: Schema.Int;
|
|
305
|
+
}>;
|
|
306
|
+
readonly diagnosticCount: Schema.Int;
|
|
307
|
+
readonly findingCount: Schema.Int;
|
|
308
|
+
readonly roles: Schema.$Array<Schema.Struct<{
|
|
309
|
+
readonly matchedOccurrences: Schema.Int;
|
|
310
|
+
readonly matchedTextUnits: Schema.Int;
|
|
311
|
+
readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
|
|
312
|
+
}>>;
|
|
313
|
+
readonly rules: Schema.$Array<Schema.Struct<{
|
|
314
|
+
readonly findingCount: Schema.Int;
|
|
315
|
+
readonly ruleId: Schema.brand<Schema.Trim, "TextQualityRuleId">;
|
|
316
|
+
}>>;
|
|
317
|
+
readonly ruleDocumentVersion: Schema.Literal<1>;
|
|
318
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
319
|
+
readonly status: Schema.Literals<readonly ["complete", "partial"]>;
|
|
320
|
+
readonly terminologyCount: Schema.Int;
|
|
321
|
+
}>;
|
|
322
|
+
}>, Schema.Struct<{
|
|
323
|
+
readonly status: Schema.Literal<"not_ready">;
|
|
324
|
+
}>, Schema.Struct<{
|
|
325
|
+
readonly status: Schema.Literal<"failed">;
|
|
326
|
+
readonly error: Schema.Struct<{
|
|
327
|
+
readonly code: Schema.Literals<readonly ["invalid_rules", "write_failed", "contract_failure"]>;
|
|
328
|
+
readonly message: Schema.String;
|
|
329
|
+
readonly recovery: Schema.String;
|
|
330
|
+
readonly retrySafe: Schema.Boolean;
|
|
331
|
+
}>;
|
|
332
|
+
}>]>;
|
|
333
|
+
export type TextQualityRuleUpdateResult = Schema.Schema.Type<typeof TextQualityRuleUpdateResult>;
|
|
334
|
+
export declare const decodeTextQualityRuleUpdateResult: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<Schema.Struct.ReadonlySide<{
|
|
335
|
+
readonly document: Schema.Struct<{
|
|
336
|
+
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
337
|
+
readonly kind: Schema.Literal<"character_budget">;
|
|
338
|
+
readonly id: Schema.brand<Schema.Trim, "TextQualityRuleId">;
|
|
339
|
+
readonly maximumCharacters: Schema.Int;
|
|
340
|
+
readonly recovery: Schema.Trim;
|
|
341
|
+
readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
|
|
342
|
+
}>, Schema.Struct<{
|
|
343
|
+
readonly kind: Schema.Literal<"terminology">;
|
|
344
|
+
readonly caseSensitive: Schema.Boolean;
|
|
345
|
+
readonly id: Schema.brand<Schema.Trim, "TextQualityRuleId">;
|
|
346
|
+
readonly recovery: Schema.Trim;
|
|
347
|
+
readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
|
|
348
|
+
readonly terms: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
349
|
+
readonly kind: Schema.Literal<"forbidden">;
|
|
350
|
+
readonly term: Schema.Trim;
|
|
351
|
+
}>, Schema.Struct<{
|
|
352
|
+
readonly kind: Schema.Literal<"preferred">;
|
|
353
|
+
readonly alternatives: Schema.$Array<Schema.Trim>;
|
|
354
|
+
readonly term: Schema.Trim;
|
|
355
|
+
}>]>>;
|
|
356
|
+
}>]>>;
|
|
357
|
+
readonly roles: Schema.$Array<Schema.Struct<{
|
|
358
|
+
readonly id: Schema.brand<Schema.Trim, "TextRoleId">;
|
|
359
|
+
readonly description: Schema.optionalKey<Schema.Trim>;
|
|
360
|
+
readonly scopes: Schema.$Array<Schema.Struct<{
|
|
361
|
+
readonly matchers: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
362
|
+
readonly kind: Schema.Literal<"location_kind">;
|
|
363
|
+
readonly value: Schema.Literals<readonly ["data_table_cell", "string_table_entry", "asset_property"]>;
|
|
364
|
+
}>, Schema.Struct<{
|
|
365
|
+
readonly kind: Schema.Literal<"object_path">;
|
|
366
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
367
|
+
readonly value: Schema.Trim;
|
|
368
|
+
}>, Schema.Struct<{
|
|
369
|
+
readonly kind: Schema.Literal<"row">;
|
|
370
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
371
|
+
readonly value: Schema.Trim;
|
|
372
|
+
}>, Schema.Struct<{
|
|
373
|
+
readonly kind: Schema.Literal<"property_path">;
|
|
374
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
375
|
+
readonly value: Schema.Trim;
|
|
376
|
+
}>, Schema.Struct<{
|
|
377
|
+
readonly kind: Schema.Literal<"string_table_entry">;
|
|
378
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
379
|
+
readonly value: Schema.Trim;
|
|
380
|
+
}>, Schema.Struct<{
|
|
381
|
+
readonly kind: Schema.Literal<"class_path">;
|
|
382
|
+
readonly operator: Schema.Literals<readonly ["exact", "prefix"]>;
|
|
383
|
+
readonly value: Schema.Trim;
|
|
384
|
+
}>]>>;
|
|
385
|
+
}>>;
|
|
386
|
+
}>>;
|
|
387
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
388
|
+
}>;
|
|
389
|
+
readonly status: Schema.Literal<"completed">;
|
|
390
|
+
readonly summary: Schema.Struct<{
|
|
391
|
+
readonly characterBudgetCount: Schema.Int;
|
|
392
|
+
readonly coverage: Schema.Struct<{
|
|
393
|
+
readonly discoveredPackages: Schema.Int;
|
|
394
|
+
readonly inspectedPackages: Schema.Int;
|
|
395
|
+
readonly partialPackages: Schema.Int;
|
|
396
|
+
readonly failedPackages: Schema.Int;
|
|
397
|
+
readonly textUnits: Schema.Int;
|
|
398
|
+
readonly textOccurrences: Schema.Int;
|
|
399
|
+
readonly resolvedOccurrences: Schema.Int;
|
|
400
|
+
readonly unresolvedOccurrences: Schema.Int;
|
|
401
|
+
readonly unsupportedTextProperties: Schema.Int;
|
|
402
|
+
}>;
|
|
403
|
+
readonly diagnosticCount: Schema.Int;
|
|
404
|
+
readonly findingCount: Schema.Int;
|
|
405
|
+
readonly roles: Schema.$Array<Schema.Struct<{
|
|
406
|
+
readonly matchedOccurrences: Schema.Int;
|
|
407
|
+
readonly matchedTextUnits: Schema.Int;
|
|
408
|
+
readonly role: Schema.brand<Schema.Trim, "TextRoleId">;
|
|
409
|
+
}>>;
|
|
410
|
+
readonly rules: Schema.$Array<Schema.Struct<{
|
|
411
|
+
readonly findingCount: Schema.Int;
|
|
412
|
+
readonly ruleId: Schema.brand<Schema.Trim, "TextQualityRuleId">;
|
|
413
|
+
}>>;
|
|
414
|
+
readonly ruleDocumentVersion: Schema.Literal<1>;
|
|
415
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
416
|
+
readonly status: Schema.Literals<readonly ["complete", "partial"]>;
|
|
417
|
+
readonly terminologyCount: Schema.Int;
|
|
418
|
+
}>;
|
|
419
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
420
|
+
readonly status: Schema.Literal<"not_ready">;
|
|
421
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
422
|
+
readonly status: Schema.Literal<"failed">;
|
|
423
|
+
readonly error: Schema.Struct<{
|
|
424
|
+
readonly code: Schema.Literals<readonly ["invalid_rules", "write_failed", "contract_failure"]>;
|
|
425
|
+
readonly message: Schema.String;
|
|
426
|
+
readonly recovery: Schema.String;
|
|
427
|
+
readonly retrySafe: Schema.Boolean;
|
|
428
|
+
}>;
|
|
429
|
+
}, "Type">, Schema.SchemaError, never>;
|
|
430
|
+
export declare const TextQualityFindingSummary: Schema.Struct<{
|
|
431
|
+
readonly actual: Schema.String;
|
|
432
|
+
readonly expectation: Schema.String;
|
|
433
|
+
readonly id: Schema.brand<Schema.String, "TextQualityFindingId">;
|
|
434
|
+
readonly kind: Schema.Literals<readonly ["character_budget", "terminology"]>;
|
|
435
|
+
readonly occurrenceCount: Schema.Int;
|
|
436
|
+
readonly recovery: Schema.String;
|
|
437
|
+
readonly role: Schema.String;
|
|
438
|
+
readonly ruleId: Schema.String;
|
|
439
|
+
readonly sourceExcerpt: Schema.String;
|
|
440
|
+
readonly textUnitId: Schema.brand<Schema.String, "TextUnitId">;
|
|
441
|
+
}>;
|
|
442
|
+
export type TextQualityFindingSummary = Schema.Schema.Type<typeof TextQualityFindingSummary>;
|
|
443
|
+
export declare const TextQualitySearchRequest: Schema.Struct<{
|
|
444
|
+
readonly cursor: Schema.optional<Schema.brand<Schema.String, "TextQualityFindingId">>;
|
|
445
|
+
readonly filter: Schema.Literals<readonly ["all", "character_budget", "terminology"]>;
|
|
446
|
+
readonly pageSize: Schema.Int;
|
|
447
|
+
}>;
|
|
448
|
+
export type TextQualitySearchRequest = Schema.Schema.Type<typeof TextQualitySearchRequest>;
|
|
449
|
+
export declare const TextQualitySearchPage: Schema.Struct<{
|
|
450
|
+
readonly findings: Schema.$Array<Schema.Struct<{
|
|
451
|
+
readonly actual: Schema.String;
|
|
452
|
+
readonly expectation: Schema.String;
|
|
453
|
+
readonly id: Schema.brand<Schema.String, "TextQualityFindingId">;
|
|
454
|
+
readonly kind: Schema.Literals<readonly ["character_budget", "terminology"]>;
|
|
455
|
+
readonly occurrenceCount: Schema.Int;
|
|
456
|
+
readonly recovery: Schema.String;
|
|
457
|
+
readonly role: Schema.String;
|
|
458
|
+
readonly ruleId: Schema.String;
|
|
459
|
+
readonly sourceExcerpt: Schema.String;
|
|
460
|
+
readonly textUnitId: Schema.brand<Schema.String, "TextUnitId">;
|
|
461
|
+
}>>;
|
|
462
|
+
readonly nextCursor: Schema.optional<Schema.brand<Schema.String, "TextQualityFindingId">>;
|
|
463
|
+
readonly total: Schema.Int;
|
|
464
|
+
}>;
|
|
465
|
+
export type TextQualitySearchPage = Schema.Schema.Type<typeof TextQualitySearchPage>;
|
|
466
|
+
export declare const TextQualitySearchResult: Schema.Union<readonly [Schema.Struct<{
|
|
467
|
+
readonly status: Schema.Literal<"ready">;
|
|
468
|
+
readonly page: Schema.Struct<{
|
|
469
|
+
readonly findings: Schema.$Array<Schema.Struct<{
|
|
470
|
+
readonly actual: Schema.String;
|
|
471
|
+
readonly expectation: Schema.String;
|
|
472
|
+
readonly id: Schema.brand<Schema.String, "TextQualityFindingId">;
|
|
473
|
+
readonly kind: Schema.Literals<readonly ["character_budget", "terminology"]>;
|
|
474
|
+
readonly occurrenceCount: Schema.Int;
|
|
475
|
+
readonly recovery: Schema.String;
|
|
476
|
+
readonly role: Schema.String;
|
|
477
|
+
readonly ruleId: Schema.String;
|
|
478
|
+
readonly sourceExcerpt: Schema.String;
|
|
479
|
+
readonly textUnitId: Schema.brand<Schema.String, "TextUnitId">;
|
|
480
|
+
}>>;
|
|
481
|
+
readonly nextCursor: Schema.optional<Schema.brand<Schema.String, "TextQualityFindingId">>;
|
|
482
|
+
readonly total: Schema.Int;
|
|
483
|
+
}>;
|
|
484
|
+
}>, Schema.Struct<{
|
|
485
|
+
readonly status: Schema.Literal<"not_ready">;
|
|
486
|
+
}>]>;
|
|
487
|
+
export type TextQualitySearchResult = Schema.Schema.Type<typeof TextQualitySearchResult>;
|
|
488
|
+
export declare const decodeTextQualitySearchResult: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<Schema.Struct.ReadonlySide<{
|
|
489
|
+
readonly status: Schema.Literal<"ready">;
|
|
490
|
+
readonly page: Schema.Struct<{
|
|
491
|
+
readonly findings: Schema.$Array<Schema.Struct<{
|
|
492
|
+
readonly actual: Schema.String;
|
|
493
|
+
readonly expectation: Schema.String;
|
|
494
|
+
readonly id: Schema.brand<Schema.String, "TextQualityFindingId">;
|
|
495
|
+
readonly kind: Schema.Literals<readonly ["character_budget", "terminology"]>;
|
|
496
|
+
readonly occurrenceCount: Schema.Int;
|
|
497
|
+
readonly recovery: Schema.String;
|
|
498
|
+
readonly role: Schema.String;
|
|
499
|
+
readonly ruleId: Schema.String;
|
|
500
|
+
readonly sourceExcerpt: Schema.String;
|
|
501
|
+
readonly textUnitId: Schema.brand<Schema.String, "TextUnitId">;
|
|
502
|
+
}>>;
|
|
503
|
+
readonly nextCursor: Schema.optional<Schema.brand<Schema.String, "TextQualityFindingId">>;
|
|
504
|
+
readonly total: Schema.Int;
|
|
505
|
+
}>;
|
|
506
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
507
|
+
readonly status: Schema.Literal<"not_ready">;
|
|
508
|
+
}, "Type">, Schema.SchemaError, never>;
|
|
509
|
+
export declare const TextQualityFocusRequest: Schema.Struct<{
|
|
510
|
+
readonly id: Schema.brand<Schema.String, "TextQualityFindingId">;
|
|
511
|
+
readonly occurrenceCursor: Schema.optional<Schema.brand<Schema.String, "TextOccurrenceId">>;
|
|
512
|
+
readonly pageSize: Schema.Int;
|
|
513
|
+
}>;
|
|
514
|
+
export type TextQualityFocusRequest = Schema.Schema.Type<typeof TextQualityFocusRequest>;
|
|
515
|
+
export declare const TextQualityFocus: Schema.Union<readonly [Schema.Struct<{
|
|
516
|
+
readonly actual: Schema.Struct<{
|
|
517
|
+
readonly characterCount: Schema.Int;
|
|
518
|
+
readonly kind: Schema.Literal<"character_count">;
|
|
519
|
+
}>;
|
|
520
|
+
readonly expectation: Schema.Struct<{
|
|
521
|
+
readonly kind: Schema.Literal<"maximum_characters">;
|
|
522
|
+
readonly maximumCharacters: Schema.Int;
|
|
523
|
+
}>;
|
|
524
|
+
readonly kind: Schema.Literal<"character_budget">;
|
|
525
|
+
readonly affectedOccurrences: Schema.$Array<Schema.Struct<{
|
|
526
|
+
readonly id: Schema.brand<Schema.String, "TextOccurrenceId">;
|
|
527
|
+
readonly location: Schema.Union<readonly [Schema.Struct<{
|
|
528
|
+
readonly kind: Schema.Literal<"data_table_cell">;
|
|
529
|
+
readonly objectPath: Schema.String;
|
|
530
|
+
readonly row: Schema.String;
|
|
531
|
+
readonly propertyPath: Schema.String;
|
|
532
|
+
}>, Schema.Struct<{
|
|
533
|
+
readonly kind: Schema.Literal<"string_table_entry">;
|
|
534
|
+
readonly objectPath: Schema.String;
|
|
535
|
+
readonly entryKey: Schema.String;
|
|
536
|
+
}>, Schema.Struct<{
|
|
537
|
+
readonly kind: Schema.Literal<"asset_property">;
|
|
538
|
+
readonly objectPath: Schema.String;
|
|
539
|
+
readonly classPath: Schema.String;
|
|
540
|
+
readonly propertyPath: Schema.String;
|
|
541
|
+
}>]>;
|
|
542
|
+
readonly packageFile: Schema.String;
|
|
543
|
+
}>>;
|
|
544
|
+
readonly id: Schema.brand<Schema.String, "TextQualityFindingId">;
|
|
545
|
+
readonly nextOccurrenceCursor: Schema.optional<Schema.brand<Schema.String, "TextOccurrenceId">>;
|
|
546
|
+
readonly recovery: Schema.String;
|
|
547
|
+
readonly role: Schema.String;
|
|
548
|
+
readonly ruleId: Schema.String;
|
|
549
|
+
readonly sourceExcerpt: Schema.String;
|
|
550
|
+
readonly sourceTruncated: Schema.Boolean;
|
|
551
|
+
readonly textUnitId: Schema.brand<Schema.String, "TextUnitId">;
|
|
552
|
+
readonly totalOccurrences: Schema.Int;
|
|
553
|
+
}>, Schema.Struct<{
|
|
554
|
+
readonly actual: Schema.Struct<{
|
|
555
|
+
readonly end: Schema.Int;
|
|
556
|
+
readonly kind: Schema.Literal<"terminology_match">;
|
|
557
|
+
readonly start: Schema.Int;
|
|
558
|
+
readonly term: Schema.String;
|
|
559
|
+
}>;
|
|
560
|
+
readonly expectation: Schema.Union<readonly [Schema.Struct<{
|
|
561
|
+
readonly kind: Schema.Literal<"forbidden_term">;
|
|
562
|
+
readonly term: Schema.String;
|
|
563
|
+
}>, Schema.Struct<{
|
|
564
|
+
readonly discouragedTerm: Schema.String;
|
|
565
|
+
readonly kind: Schema.Literal<"preferred_term">;
|
|
566
|
+
readonly preferredTerm: Schema.String;
|
|
567
|
+
}>]>;
|
|
568
|
+
readonly kind: Schema.Literal<"terminology">;
|
|
569
|
+
readonly affectedOccurrences: Schema.$Array<Schema.Struct<{
|
|
570
|
+
readonly id: Schema.brand<Schema.String, "TextOccurrenceId">;
|
|
571
|
+
readonly location: Schema.Union<readonly [Schema.Struct<{
|
|
572
|
+
readonly kind: Schema.Literal<"data_table_cell">;
|
|
573
|
+
readonly objectPath: Schema.String;
|
|
574
|
+
readonly row: Schema.String;
|
|
575
|
+
readonly propertyPath: Schema.String;
|
|
576
|
+
}>, Schema.Struct<{
|
|
577
|
+
readonly kind: Schema.Literal<"string_table_entry">;
|
|
578
|
+
readonly objectPath: Schema.String;
|
|
579
|
+
readonly entryKey: Schema.String;
|
|
580
|
+
}>, Schema.Struct<{
|
|
581
|
+
readonly kind: Schema.Literal<"asset_property">;
|
|
582
|
+
readonly objectPath: Schema.String;
|
|
583
|
+
readonly classPath: Schema.String;
|
|
584
|
+
readonly propertyPath: Schema.String;
|
|
585
|
+
}>]>;
|
|
586
|
+
readonly packageFile: Schema.String;
|
|
587
|
+
}>>;
|
|
588
|
+
readonly id: Schema.brand<Schema.String, "TextQualityFindingId">;
|
|
589
|
+
readonly nextOccurrenceCursor: Schema.optional<Schema.brand<Schema.String, "TextOccurrenceId">>;
|
|
590
|
+
readonly recovery: Schema.String;
|
|
591
|
+
readonly role: Schema.String;
|
|
592
|
+
readonly ruleId: Schema.String;
|
|
593
|
+
readonly sourceExcerpt: Schema.String;
|
|
594
|
+
readonly sourceTruncated: Schema.Boolean;
|
|
595
|
+
readonly textUnitId: Schema.brand<Schema.String, "TextUnitId">;
|
|
596
|
+
readonly totalOccurrences: Schema.Int;
|
|
597
|
+
}>]>;
|
|
598
|
+
export type TextQualityFocus = Schema.Schema.Type<typeof TextQualityFocus>;
|
|
599
|
+
export declare const TextQualityFocusResult: Schema.Union<readonly [Schema.Struct<{
|
|
600
|
+
readonly status: Schema.Literal<"found">;
|
|
601
|
+
readonly focus: Schema.Union<readonly [Schema.Struct<{
|
|
602
|
+
readonly actual: Schema.Struct<{
|
|
603
|
+
readonly characterCount: Schema.Int;
|
|
604
|
+
readonly kind: Schema.Literal<"character_count">;
|
|
605
|
+
}>;
|
|
606
|
+
readonly expectation: Schema.Struct<{
|
|
607
|
+
readonly kind: Schema.Literal<"maximum_characters">;
|
|
608
|
+
readonly maximumCharacters: Schema.Int;
|
|
609
|
+
}>;
|
|
610
|
+
readonly kind: Schema.Literal<"character_budget">;
|
|
611
|
+
readonly affectedOccurrences: Schema.$Array<Schema.Struct<{
|
|
612
|
+
readonly id: Schema.brand<Schema.String, "TextOccurrenceId">;
|
|
613
|
+
readonly location: Schema.Union<readonly [Schema.Struct<{
|
|
614
|
+
readonly kind: Schema.Literal<"data_table_cell">;
|
|
615
|
+
readonly objectPath: Schema.String;
|
|
616
|
+
readonly row: Schema.String;
|
|
617
|
+
readonly propertyPath: Schema.String;
|
|
618
|
+
}>, Schema.Struct<{
|
|
619
|
+
readonly kind: Schema.Literal<"string_table_entry">;
|
|
620
|
+
readonly objectPath: Schema.String;
|
|
621
|
+
readonly entryKey: Schema.String;
|
|
622
|
+
}>, Schema.Struct<{
|
|
623
|
+
readonly kind: Schema.Literal<"asset_property">;
|
|
624
|
+
readonly objectPath: Schema.String;
|
|
625
|
+
readonly classPath: Schema.String;
|
|
626
|
+
readonly propertyPath: Schema.String;
|
|
627
|
+
}>]>;
|
|
628
|
+
readonly packageFile: Schema.String;
|
|
629
|
+
}>>;
|
|
630
|
+
readonly id: Schema.brand<Schema.String, "TextQualityFindingId">;
|
|
631
|
+
readonly nextOccurrenceCursor: Schema.optional<Schema.brand<Schema.String, "TextOccurrenceId">>;
|
|
632
|
+
readonly recovery: Schema.String;
|
|
633
|
+
readonly role: Schema.String;
|
|
634
|
+
readonly ruleId: Schema.String;
|
|
635
|
+
readonly sourceExcerpt: Schema.String;
|
|
636
|
+
readonly sourceTruncated: Schema.Boolean;
|
|
637
|
+
readonly textUnitId: Schema.brand<Schema.String, "TextUnitId">;
|
|
638
|
+
readonly totalOccurrences: Schema.Int;
|
|
639
|
+
}>, Schema.Struct<{
|
|
640
|
+
readonly actual: Schema.Struct<{
|
|
641
|
+
readonly end: Schema.Int;
|
|
642
|
+
readonly kind: Schema.Literal<"terminology_match">;
|
|
643
|
+
readonly start: Schema.Int;
|
|
644
|
+
readonly term: Schema.String;
|
|
645
|
+
}>;
|
|
646
|
+
readonly expectation: Schema.Union<readonly [Schema.Struct<{
|
|
647
|
+
readonly kind: Schema.Literal<"forbidden_term">;
|
|
648
|
+
readonly term: Schema.String;
|
|
649
|
+
}>, Schema.Struct<{
|
|
650
|
+
readonly discouragedTerm: Schema.String;
|
|
651
|
+
readonly kind: Schema.Literal<"preferred_term">;
|
|
652
|
+
readonly preferredTerm: Schema.String;
|
|
653
|
+
}>]>;
|
|
654
|
+
readonly kind: Schema.Literal<"terminology">;
|
|
655
|
+
readonly affectedOccurrences: Schema.$Array<Schema.Struct<{
|
|
656
|
+
readonly id: Schema.brand<Schema.String, "TextOccurrenceId">;
|
|
657
|
+
readonly location: Schema.Union<readonly [Schema.Struct<{
|
|
658
|
+
readonly kind: Schema.Literal<"data_table_cell">;
|
|
659
|
+
readonly objectPath: Schema.String;
|
|
660
|
+
readonly row: Schema.String;
|
|
661
|
+
readonly propertyPath: Schema.String;
|
|
662
|
+
}>, Schema.Struct<{
|
|
663
|
+
readonly kind: Schema.Literal<"string_table_entry">;
|
|
664
|
+
readonly objectPath: Schema.String;
|
|
665
|
+
readonly entryKey: Schema.String;
|
|
666
|
+
}>, Schema.Struct<{
|
|
667
|
+
readonly kind: Schema.Literal<"asset_property">;
|
|
668
|
+
readonly objectPath: Schema.String;
|
|
669
|
+
readonly classPath: Schema.String;
|
|
670
|
+
readonly propertyPath: Schema.String;
|
|
671
|
+
}>]>;
|
|
672
|
+
readonly packageFile: Schema.String;
|
|
673
|
+
}>>;
|
|
674
|
+
readonly id: Schema.brand<Schema.String, "TextQualityFindingId">;
|
|
675
|
+
readonly nextOccurrenceCursor: Schema.optional<Schema.brand<Schema.String, "TextOccurrenceId">>;
|
|
676
|
+
readonly recovery: Schema.String;
|
|
677
|
+
readonly role: Schema.String;
|
|
678
|
+
readonly ruleId: Schema.String;
|
|
679
|
+
readonly sourceExcerpt: Schema.String;
|
|
680
|
+
readonly sourceTruncated: Schema.Boolean;
|
|
681
|
+
readonly textUnitId: Schema.brand<Schema.String, "TextUnitId">;
|
|
682
|
+
readonly totalOccurrences: Schema.Int;
|
|
683
|
+
}>]>;
|
|
684
|
+
}>, Schema.Struct<{
|
|
685
|
+
readonly status: Schema.Literal<"not_found">;
|
|
686
|
+
}>, Schema.Struct<{
|
|
687
|
+
readonly status: Schema.Literal<"not_ready">;
|
|
688
|
+
}>]>;
|
|
689
|
+
export type TextQualityFocusResult = Schema.Schema.Type<typeof TextQualityFocusResult>;
|
|
690
|
+
export declare const decodeTextQualityFocusResult: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<Schema.Struct.ReadonlySide<{
|
|
691
|
+
readonly status: Schema.Literal<"found">;
|
|
692
|
+
readonly focus: Schema.Union<readonly [Schema.Struct<{
|
|
693
|
+
readonly actual: Schema.Struct<{
|
|
694
|
+
readonly characterCount: Schema.Int;
|
|
695
|
+
readonly kind: Schema.Literal<"character_count">;
|
|
696
|
+
}>;
|
|
697
|
+
readonly expectation: Schema.Struct<{
|
|
698
|
+
readonly kind: Schema.Literal<"maximum_characters">;
|
|
699
|
+
readonly maximumCharacters: Schema.Int;
|
|
700
|
+
}>;
|
|
701
|
+
readonly kind: Schema.Literal<"character_budget">;
|
|
702
|
+
readonly affectedOccurrences: Schema.$Array<Schema.Struct<{
|
|
703
|
+
readonly id: Schema.brand<Schema.String, "TextOccurrenceId">;
|
|
704
|
+
readonly location: Schema.Union<readonly [Schema.Struct<{
|
|
705
|
+
readonly kind: Schema.Literal<"data_table_cell">;
|
|
706
|
+
readonly objectPath: Schema.String;
|
|
707
|
+
readonly row: Schema.String;
|
|
708
|
+
readonly propertyPath: Schema.String;
|
|
709
|
+
}>, Schema.Struct<{
|
|
710
|
+
readonly kind: Schema.Literal<"string_table_entry">;
|
|
711
|
+
readonly objectPath: Schema.String;
|
|
712
|
+
readonly entryKey: Schema.String;
|
|
713
|
+
}>, Schema.Struct<{
|
|
714
|
+
readonly kind: Schema.Literal<"asset_property">;
|
|
715
|
+
readonly objectPath: Schema.String;
|
|
716
|
+
readonly classPath: Schema.String;
|
|
717
|
+
readonly propertyPath: Schema.String;
|
|
718
|
+
}>]>;
|
|
719
|
+
readonly packageFile: Schema.String;
|
|
720
|
+
}>>;
|
|
721
|
+
readonly id: Schema.brand<Schema.String, "TextQualityFindingId">;
|
|
722
|
+
readonly nextOccurrenceCursor: Schema.optional<Schema.brand<Schema.String, "TextOccurrenceId">>;
|
|
723
|
+
readonly recovery: Schema.String;
|
|
724
|
+
readonly role: Schema.String;
|
|
725
|
+
readonly ruleId: Schema.String;
|
|
726
|
+
readonly sourceExcerpt: Schema.String;
|
|
727
|
+
readonly sourceTruncated: Schema.Boolean;
|
|
728
|
+
readonly textUnitId: Schema.brand<Schema.String, "TextUnitId">;
|
|
729
|
+
readonly totalOccurrences: Schema.Int;
|
|
730
|
+
}>, Schema.Struct<{
|
|
731
|
+
readonly actual: Schema.Struct<{
|
|
732
|
+
readonly end: Schema.Int;
|
|
733
|
+
readonly kind: Schema.Literal<"terminology_match">;
|
|
734
|
+
readonly start: Schema.Int;
|
|
735
|
+
readonly term: Schema.String;
|
|
736
|
+
}>;
|
|
737
|
+
readonly expectation: Schema.Union<readonly [Schema.Struct<{
|
|
738
|
+
readonly kind: Schema.Literal<"forbidden_term">;
|
|
739
|
+
readonly term: Schema.String;
|
|
740
|
+
}>, Schema.Struct<{
|
|
741
|
+
readonly discouragedTerm: Schema.String;
|
|
742
|
+
readonly kind: Schema.Literal<"preferred_term">;
|
|
743
|
+
readonly preferredTerm: Schema.String;
|
|
744
|
+
}>]>;
|
|
745
|
+
readonly kind: Schema.Literal<"terminology">;
|
|
746
|
+
readonly affectedOccurrences: Schema.$Array<Schema.Struct<{
|
|
747
|
+
readonly id: Schema.brand<Schema.String, "TextOccurrenceId">;
|
|
748
|
+
readonly location: Schema.Union<readonly [Schema.Struct<{
|
|
749
|
+
readonly kind: Schema.Literal<"data_table_cell">;
|
|
750
|
+
readonly objectPath: Schema.String;
|
|
751
|
+
readonly row: Schema.String;
|
|
752
|
+
readonly propertyPath: Schema.String;
|
|
753
|
+
}>, Schema.Struct<{
|
|
754
|
+
readonly kind: Schema.Literal<"string_table_entry">;
|
|
755
|
+
readonly objectPath: Schema.String;
|
|
756
|
+
readonly entryKey: Schema.String;
|
|
757
|
+
}>, Schema.Struct<{
|
|
758
|
+
readonly kind: Schema.Literal<"asset_property">;
|
|
759
|
+
readonly objectPath: Schema.String;
|
|
760
|
+
readonly classPath: Schema.String;
|
|
761
|
+
readonly propertyPath: Schema.String;
|
|
762
|
+
}>]>;
|
|
763
|
+
readonly packageFile: Schema.String;
|
|
764
|
+
}>>;
|
|
765
|
+
readonly id: Schema.brand<Schema.String, "TextQualityFindingId">;
|
|
766
|
+
readonly nextOccurrenceCursor: Schema.optional<Schema.brand<Schema.String, "TextOccurrenceId">>;
|
|
767
|
+
readonly recovery: Schema.String;
|
|
768
|
+
readonly role: Schema.String;
|
|
769
|
+
readonly ruleId: Schema.String;
|
|
770
|
+
readonly sourceExcerpt: Schema.String;
|
|
771
|
+
readonly sourceTruncated: Schema.Boolean;
|
|
772
|
+
readonly textUnitId: Schema.brand<Schema.String, "TextUnitId">;
|
|
773
|
+
readonly totalOccurrences: Schema.Int;
|
|
774
|
+
}>]>;
|
|
775
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
776
|
+
readonly status: Schema.Literal<"not_found">;
|
|
777
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
778
|
+
readonly status: Schema.Literal<"not_ready">;
|
|
779
|
+
}, "Type">, Schema.SchemaError, never>;
|
|
780
|
+
/** Retained, bounded presentation query over a full quality report. */
|
|
781
|
+
export interface TextQualityQuery {
|
|
782
|
+
readonly focus: (request: TextQualityFocusRequest) => TextQualityFocus | undefined;
|
|
783
|
+
readonly search: (request: TextQualitySearchRequest) => TextQualitySearchPage;
|
|
784
|
+
readonly summary: () => TextQualityQuerySummary;
|
|
785
|
+
}
|
|
786
|
+
export declare function textQualityQuery(report: TextQualityReport): TextQualityQuery;
|
|
787
|
+
//# sourceMappingURL=quality-query.d.ts.map
|