@lokalise/ragnarok-api-contracts 4.0.3 → 5.0.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/dist/evaluation-contracts.d.ts +117 -36
- package/dist/evaluation-contracts.js +7 -8
- package/dist/evaluation-contracts.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/objects.d.ts +454 -69
- package/dist/objects.js +124 -29
- package/dist/objects.js.map +1 -1
- package/package.json +5 -5
- package/dist/evaluation-contracts-v2.d.ts +0 -249
- package/dist/evaluation-contracts-v2.js +0 -33
- package/dist/evaluation-contracts-v2.js.map +0 -1
- package/dist/objects-v2.d.ts +0 -598
- package/dist/objects-v2.js +0 -144
- package/dist/objects-v2.js.map +0 -1
package/dist/objects.d.ts
CHANGED
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const METRICS_SCHEMA: z.ZodObject<{
|
|
3
|
-
exactMatch: z.ZodOptional<z.ZodNumber>;
|
|
4
|
-
ter: z.ZodOptional<z.ZodNumber>;
|
|
5
|
-
bleu: z.ZodOptional<z.ZodNumber>;
|
|
6
|
-
meteor: z.ZodOptional<z.ZodNumber>;
|
|
7
|
-
chrf: z.ZodOptional<z.ZodNumber>;
|
|
8
|
-
}, z.core.$strip>;
|
|
9
|
-
export type Metrics = z.infer<typeof METRICS_SCHEMA>;
|
|
10
2
|
/**
|
|
11
|
-
* Per-item metrics:
|
|
12
|
-
*
|
|
3
|
+
* Per-item metrics: flat per-metric scores for a single translated segment. BLEU is excluded — it is
|
|
4
|
+
* a corpus-level metric and not meaningful for individual sentence pairs.
|
|
13
5
|
*/
|
|
14
6
|
export declare const ITEM_METRICS_SCHEMA: z.ZodObject<{
|
|
15
7
|
exactMatch: z.ZodOptional<z.ZodNumber>;
|
|
16
8
|
ter: z.ZodOptional<z.ZodNumber>;
|
|
17
|
-
meteor: z.ZodOptional<z.ZodNumber>;
|
|
18
9
|
chrf: z.ZodOptional<z.ZodNumber>;
|
|
19
10
|
}, z.core.$strip>;
|
|
20
11
|
export type ItemMetrics = z.infer<typeof ITEM_METRICS_SCHEMA>;
|
|
@@ -37,12 +28,6 @@ export declare const METRICS_METADATA_SCHEMA: z.ZodObject<{
|
|
|
37
28
|
lower: "lower";
|
|
38
29
|
}>;
|
|
39
30
|
}, z.core.$strip>;
|
|
40
|
-
meteor: z.ZodObject<{
|
|
41
|
-
betterWhen: z.ZodEnum<{
|
|
42
|
-
higher: "higher";
|
|
43
|
-
lower: "lower";
|
|
44
|
-
}>;
|
|
45
|
-
}, z.core.$strip>;
|
|
46
31
|
chrf: z.ZodObject<{
|
|
47
32
|
betterWhen: z.ZodEnum<{
|
|
48
33
|
higher: "higher";
|
|
@@ -52,18 +37,6 @@ export declare const METRICS_METADATA_SCHEMA: z.ZodObject<{
|
|
|
52
37
|
}, z.core.$strip>;
|
|
53
38
|
export type MetricsMetadata = z.infer<typeof METRICS_METADATA_SCHEMA>;
|
|
54
39
|
export declare const METRICS_METADATA: MetricsMetadata;
|
|
55
|
-
export declare const LOCALE_PAIR_RESULT_SCHEMA: z.ZodObject<{
|
|
56
|
-
sourceLocale: z.ZodString;
|
|
57
|
-
targetLocale: z.ZodString;
|
|
58
|
-
metrics: z.ZodObject<{
|
|
59
|
-
exactMatch: z.ZodOptional<z.ZodNumber>;
|
|
60
|
-
ter: z.ZodOptional<z.ZodNumber>;
|
|
61
|
-
bleu: z.ZodOptional<z.ZodNumber>;
|
|
62
|
-
meteor: z.ZodOptional<z.ZodNumber>;
|
|
63
|
-
chrf: z.ZodOptional<z.ZodNumber>;
|
|
64
|
-
}, z.core.$strip>;
|
|
65
|
-
}, z.core.$strip>;
|
|
66
|
-
export type LocalePairResult = z.infer<typeof LOCALE_PAIR_RESULT_SCHEMA>;
|
|
67
40
|
export declare const TRANSLATION_EXAMPLE_SCHEMA: z.ZodObject<{
|
|
68
41
|
sourceValue: z.ZodString;
|
|
69
42
|
translatedValue: z.ZodString;
|
|
@@ -72,19 +45,18 @@ export type TranslationExample = z.infer<typeof TRANSLATION_EXAMPLE_SCHEMA>;
|
|
|
72
45
|
export declare const ITEM_TRANSLATION_BY_CONFIG_SCHEMA: z.ZodObject<{
|
|
73
46
|
configurationName: z.ZodString;
|
|
74
47
|
status: z.ZodEnum<{
|
|
75
|
-
translating: "translating";
|
|
76
|
-
translated: "translated";
|
|
77
|
-
scoring: "scoring";
|
|
78
|
-
scored: "scored";
|
|
79
48
|
completed: "completed";
|
|
80
49
|
failed: "failed";
|
|
50
|
+
scored: "scored";
|
|
51
|
+
scoring: "scoring";
|
|
52
|
+
translated: "translated";
|
|
53
|
+
translating: "translating";
|
|
81
54
|
}>;
|
|
82
55
|
actualTranslation: z.ZodNullable<z.ZodString>;
|
|
83
56
|
actualScore: z.ZodNullable<z.ZodNumber>;
|
|
84
57
|
metrics: z.ZodNullable<z.ZodObject<{
|
|
85
58
|
exactMatch: z.ZodOptional<z.ZodNumber>;
|
|
86
59
|
ter: z.ZodOptional<z.ZodNumber>;
|
|
87
|
-
meteor: z.ZodOptional<z.ZodNumber>;
|
|
88
60
|
chrf: z.ZodOptional<z.ZodNumber>;
|
|
89
61
|
}, z.core.$strip>>;
|
|
90
62
|
error: z.ZodNullable<z.ZodObject<{
|
|
@@ -109,19 +81,18 @@ export declare const EVALUATION_ITEM_DETAIL_SCHEMA: z.ZodObject<{
|
|
|
109
81
|
translations: z.ZodArray<z.ZodObject<{
|
|
110
82
|
configurationName: z.ZodString;
|
|
111
83
|
status: z.ZodEnum<{
|
|
112
|
-
translating: "translating";
|
|
113
|
-
translated: "translated";
|
|
114
|
-
scoring: "scoring";
|
|
115
|
-
scored: "scored";
|
|
116
84
|
completed: "completed";
|
|
117
85
|
failed: "failed";
|
|
86
|
+
scored: "scored";
|
|
87
|
+
scoring: "scoring";
|
|
88
|
+
translated: "translated";
|
|
89
|
+
translating: "translating";
|
|
118
90
|
}>;
|
|
119
91
|
actualTranslation: z.ZodNullable<z.ZodString>;
|
|
120
92
|
actualScore: z.ZodNullable<z.ZodNumber>;
|
|
121
93
|
metrics: z.ZodNullable<z.ZodObject<{
|
|
122
94
|
exactMatch: z.ZodOptional<z.ZodNumber>;
|
|
123
95
|
ter: z.ZodOptional<z.ZodNumber>;
|
|
124
|
-
meteor: z.ZodOptional<z.ZodNumber>;
|
|
125
96
|
chrf: z.ZodOptional<z.ZodNumber>;
|
|
126
97
|
}, z.core.$strip>>;
|
|
127
98
|
error: z.ZodNullable<z.ZodObject<{
|
|
@@ -132,25 +103,351 @@ export declare const EVALUATION_ITEM_DETAIL_SCHEMA: z.ZodObject<{
|
|
|
132
103
|
}, z.core.$strip>>;
|
|
133
104
|
}, z.core.$strip>;
|
|
134
105
|
export type EvaluationItemDetail = z.infer<typeof EVALUATION_ITEM_DETAIL_SCHEMA>;
|
|
106
|
+
/**
|
|
107
|
+
* Reliability classification of a single computed metric:
|
|
108
|
+
* - `perfect` — computed over the full comparable segment set (`computedSegments === comparableSegments`).
|
|
109
|
+
* - `degraded` — some segments were excluded, but the surviving set still meets the reliability threshold.
|
|
110
|
+
* - `failed` — too few comparable segments to be trustworthy (below the reliability threshold).
|
|
111
|
+
*/
|
|
112
|
+
export declare const METRIC_STATUS_SCHEMA: z.ZodEnum<{
|
|
113
|
+
degraded: "degraded";
|
|
114
|
+
failed: "failed";
|
|
115
|
+
perfect: "perfect";
|
|
116
|
+
}>;
|
|
117
|
+
export type MetricStatus = z.infer<typeof METRIC_STATUS_SCHEMA>;
|
|
118
|
+
/**
|
|
119
|
+
* A single metric value paired with the coverage it was computed over and a reliability status.
|
|
120
|
+
*/
|
|
121
|
+
export declare const METRIC_RESULT_SCHEMA: z.ZodObject<{
|
|
122
|
+
value: z.ZodNumber;
|
|
123
|
+
computedSegments: z.ZodNumber;
|
|
124
|
+
comparableSegments: z.ZodNumber;
|
|
125
|
+
status: z.ZodEnum<{
|
|
126
|
+
degraded: "degraded";
|
|
127
|
+
failed: "failed";
|
|
128
|
+
perfect: "perfect";
|
|
129
|
+
}>;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
export type MetricResult = z.infer<typeof METRIC_RESULT_SCHEMA>;
|
|
132
|
+
/**
|
|
133
|
+
* Per-locale-pair metrics. Each metric is optional (a metric is omitted when it does not apply,
|
|
134
|
+
* e.g. BLEU for a pair with no corpus-level computation). The whole object is `null` on the
|
|
135
|
+
* locale-pair result when no metrics could be produced (see `LOCALE_PAIR_RESULT_SCHEMA`).
|
|
136
|
+
*/
|
|
137
|
+
export declare const METRICS_SCHEMA: z.ZodObject<{
|
|
138
|
+
exactMatch: z.ZodOptional<z.ZodObject<{
|
|
139
|
+
value: z.ZodNumber;
|
|
140
|
+
computedSegments: z.ZodNumber;
|
|
141
|
+
comparableSegments: z.ZodNumber;
|
|
142
|
+
status: z.ZodEnum<{
|
|
143
|
+
degraded: "degraded";
|
|
144
|
+
failed: "failed";
|
|
145
|
+
perfect: "perfect";
|
|
146
|
+
}>;
|
|
147
|
+
}, z.core.$strip>>;
|
|
148
|
+
ter: z.ZodOptional<z.ZodObject<{
|
|
149
|
+
value: z.ZodNumber;
|
|
150
|
+
computedSegments: z.ZodNumber;
|
|
151
|
+
comparableSegments: z.ZodNumber;
|
|
152
|
+
status: z.ZodEnum<{
|
|
153
|
+
degraded: "degraded";
|
|
154
|
+
failed: "failed";
|
|
155
|
+
perfect: "perfect";
|
|
156
|
+
}>;
|
|
157
|
+
}, z.core.$strip>>;
|
|
158
|
+
bleu: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
value: z.ZodNumber;
|
|
160
|
+
computedSegments: z.ZodNumber;
|
|
161
|
+
comparableSegments: z.ZodNumber;
|
|
162
|
+
status: z.ZodEnum<{
|
|
163
|
+
degraded: "degraded";
|
|
164
|
+
failed: "failed";
|
|
165
|
+
perfect: "perfect";
|
|
166
|
+
}>;
|
|
167
|
+
}, z.core.$strip>>;
|
|
168
|
+
chrf: z.ZodOptional<z.ZodObject<{
|
|
169
|
+
value: z.ZodNumber;
|
|
170
|
+
computedSegments: z.ZodNumber;
|
|
171
|
+
comparableSegments: z.ZodNumber;
|
|
172
|
+
status: z.ZodEnum<{
|
|
173
|
+
degraded: "degraded";
|
|
174
|
+
failed: "failed";
|
|
175
|
+
perfect: "perfect";
|
|
176
|
+
}>;
|
|
177
|
+
}, z.core.$strip>>;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
export type Metrics = z.infer<typeof METRICS_SCHEMA>;
|
|
180
|
+
/**
|
|
181
|
+
* Outcome of translating a locale pair within a run configuration:
|
|
182
|
+
* - `success` — all in-scope segments translated.
|
|
183
|
+
* - `partial_success` — some segments translated, some failed (metrics computed on the survivors).
|
|
184
|
+
* - `unsupported_locale_pair` — the integration does not support this pair; metrics are `null`. Does
|
|
185
|
+
* NOT cause cross-configuration exclusion (other configs are unaffected).
|
|
186
|
+
* - `integration_failure` — the integration failed to translate the pair (e.g. provider outage);
|
|
187
|
+
* metrics are `null` and the pair is excluded from all configs' comparable sets.
|
|
188
|
+
*/
|
|
189
|
+
export declare const TRANSLATION_STATUS_SCHEMA: z.ZodEnum<{
|
|
190
|
+
integration_failure: "integration_failure";
|
|
191
|
+
partial_success: "partial_success";
|
|
192
|
+
success: "success";
|
|
193
|
+
unsupported_locale_pair: "unsupported_locale_pair";
|
|
194
|
+
}>;
|
|
195
|
+
export type TranslationStatus = z.infer<typeof TRANSLATION_STATUS_SCHEMA>;
|
|
196
|
+
export declare const LOCALE_PAIR_RESULT_SCHEMA: z.ZodObject<{
|
|
197
|
+
sourceLocale: z.ZodString;
|
|
198
|
+
targetLocale: z.ZodString;
|
|
199
|
+
totalSegments: z.ZodNumber;
|
|
200
|
+
translatedSegments: z.ZodNumber;
|
|
201
|
+
translationStatus: z.ZodEnum<{
|
|
202
|
+
integration_failure: "integration_failure";
|
|
203
|
+
partial_success: "partial_success";
|
|
204
|
+
success: "success";
|
|
205
|
+
unsupported_locale_pair: "unsupported_locale_pair";
|
|
206
|
+
}>;
|
|
207
|
+
metrics: z.ZodNullable<z.ZodObject<{
|
|
208
|
+
exactMatch: z.ZodOptional<z.ZodObject<{
|
|
209
|
+
value: z.ZodNumber;
|
|
210
|
+
computedSegments: z.ZodNumber;
|
|
211
|
+
comparableSegments: z.ZodNumber;
|
|
212
|
+
status: z.ZodEnum<{
|
|
213
|
+
degraded: "degraded";
|
|
214
|
+
failed: "failed";
|
|
215
|
+
perfect: "perfect";
|
|
216
|
+
}>;
|
|
217
|
+
}, z.core.$strip>>;
|
|
218
|
+
ter: z.ZodOptional<z.ZodObject<{
|
|
219
|
+
value: z.ZodNumber;
|
|
220
|
+
computedSegments: z.ZodNumber;
|
|
221
|
+
comparableSegments: z.ZodNumber;
|
|
222
|
+
status: z.ZodEnum<{
|
|
223
|
+
degraded: "degraded";
|
|
224
|
+
failed: "failed";
|
|
225
|
+
perfect: "perfect";
|
|
226
|
+
}>;
|
|
227
|
+
}, z.core.$strip>>;
|
|
228
|
+
bleu: z.ZodOptional<z.ZodObject<{
|
|
229
|
+
value: z.ZodNumber;
|
|
230
|
+
computedSegments: z.ZodNumber;
|
|
231
|
+
comparableSegments: z.ZodNumber;
|
|
232
|
+
status: z.ZodEnum<{
|
|
233
|
+
degraded: "degraded";
|
|
234
|
+
failed: "failed";
|
|
235
|
+
perfect: "perfect";
|
|
236
|
+
}>;
|
|
237
|
+
}, z.core.$strip>>;
|
|
238
|
+
chrf: z.ZodOptional<z.ZodObject<{
|
|
239
|
+
value: z.ZodNumber;
|
|
240
|
+
computedSegments: z.ZodNumber;
|
|
241
|
+
comparableSegments: z.ZodNumber;
|
|
242
|
+
status: z.ZodEnum<{
|
|
243
|
+
degraded: "degraded";
|
|
244
|
+
failed: "failed";
|
|
245
|
+
perfect: "perfect";
|
|
246
|
+
}>;
|
|
247
|
+
}, z.core.$strip>>;
|
|
248
|
+
}, z.core.$strip>>;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
export type LocalePairResult = z.infer<typeof LOCALE_PAIR_RESULT_SCHEMA>;
|
|
251
|
+
/**
|
|
252
|
+
* A reference to a locale pair, used to list pairs excluded from a global metric aggregate.
|
|
253
|
+
* Intentionally flat (no `reason`): the per-pair `translationStatus` already carries the cause.
|
|
254
|
+
*/
|
|
255
|
+
export declare const LOCALE_PAIR_REF_SCHEMA: z.ZodObject<{
|
|
256
|
+
sourceLocale: z.ZodString;
|
|
257
|
+
targetLocale: z.ZodString;
|
|
258
|
+
}, z.core.$strip>;
|
|
259
|
+
export type LocalePairRef = z.infer<typeof LOCALE_PAIR_REF_SCHEMA>;
|
|
260
|
+
/**
|
|
261
|
+
* A global (cross-locale-pair) aggregate for a single metric. Weighted by comparable segments and
|
|
262
|
+
* annotated with the locale pairs that were excluded from this metric's aggregation.
|
|
263
|
+
*/
|
|
264
|
+
export declare const GLOBAL_METRIC_RESULT_SCHEMA: z.ZodObject<{
|
|
265
|
+
value: z.ZodNumber;
|
|
266
|
+
computedSegments: z.ZodNumber;
|
|
267
|
+
comparableSegments: z.ZodNumber;
|
|
268
|
+
status: z.ZodEnum<{
|
|
269
|
+
degraded: "degraded";
|
|
270
|
+
failed: "failed";
|
|
271
|
+
perfect: "perfect";
|
|
272
|
+
}>;
|
|
273
|
+
excludedLocalePairs: z.ZodArray<z.ZodObject<{
|
|
274
|
+
sourceLocale: z.ZodString;
|
|
275
|
+
targetLocale: z.ZodString;
|
|
276
|
+
}, z.core.$strip>>;
|
|
277
|
+
}, z.core.$strip>;
|
|
278
|
+
export type GlobalMetricResult = z.infer<typeof GLOBAL_METRIC_RESULT_SCHEMA>;
|
|
279
|
+
export declare const GLOBAL_METRICS_SCHEMA: z.ZodObject<{
|
|
280
|
+
exactMatch: z.ZodOptional<z.ZodObject<{
|
|
281
|
+
value: z.ZodNumber;
|
|
282
|
+
computedSegments: z.ZodNumber;
|
|
283
|
+
comparableSegments: z.ZodNumber;
|
|
284
|
+
status: z.ZodEnum<{
|
|
285
|
+
degraded: "degraded";
|
|
286
|
+
failed: "failed";
|
|
287
|
+
perfect: "perfect";
|
|
288
|
+
}>;
|
|
289
|
+
excludedLocalePairs: z.ZodArray<z.ZodObject<{
|
|
290
|
+
sourceLocale: z.ZodString;
|
|
291
|
+
targetLocale: z.ZodString;
|
|
292
|
+
}, z.core.$strip>>;
|
|
293
|
+
}, z.core.$strip>>;
|
|
294
|
+
ter: z.ZodOptional<z.ZodObject<{
|
|
295
|
+
value: z.ZodNumber;
|
|
296
|
+
computedSegments: z.ZodNumber;
|
|
297
|
+
comparableSegments: z.ZodNumber;
|
|
298
|
+
status: z.ZodEnum<{
|
|
299
|
+
degraded: "degraded";
|
|
300
|
+
failed: "failed";
|
|
301
|
+
perfect: "perfect";
|
|
302
|
+
}>;
|
|
303
|
+
excludedLocalePairs: z.ZodArray<z.ZodObject<{
|
|
304
|
+
sourceLocale: z.ZodString;
|
|
305
|
+
targetLocale: z.ZodString;
|
|
306
|
+
}, z.core.$strip>>;
|
|
307
|
+
}, z.core.$strip>>;
|
|
308
|
+
bleu: z.ZodOptional<z.ZodObject<{
|
|
309
|
+
value: z.ZodNumber;
|
|
310
|
+
computedSegments: z.ZodNumber;
|
|
311
|
+
comparableSegments: z.ZodNumber;
|
|
312
|
+
status: z.ZodEnum<{
|
|
313
|
+
degraded: "degraded";
|
|
314
|
+
failed: "failed";
|
|
315
|
+
perfect: "perfect";
|
|
316
|
+
}>;
|
|
317
|
+
excludedLocalePairs: z.ZodArray<z.ZodObject<{
|
|
318
|
+
sourceLocale: z.ZodString;
|
|
319
|
+
targetLocale: z.ZodString;
|
|
320
|
+
}, z.core.$strip>>;
|
|
321
|
+
}, z.core.$strip>>;
|
|
322
|
+
chrf: z.ZodOptional<z.ZodObject<{
|
|
323
|
+
value: z.ZodNumber;
|
|
324
|
+
computedSegments: z.ZodNumber;
|
|
325
|
+
comparableSegments: z.ZodNumber;
|
|
326
|
+
status: z.ZodEnum<{
|
|
327
|
+
degraded: "degraded";
|
|
328
|
+
failed: "failed";
|
|
329
|
+
perfect: "perfect";
|
|
330
|
+
}>;
|
|
331
|
+
excludedLocalePairs: z.ZodArray<z.ZodObject<{
|
|
332
|
+
sourceLocale: z.ZodString;
|
|
333
|
+
targetLocale: z.ZodString;
|
|
334
|
+
}, z.core.$strip>>;
|
|
335
|
+
}, z.core.$strip>>;
|
|
336
|
+
}, z.core.$strip>;
|
|
337
|
+
export type GlobalMetrics = z.infer<typeof GLOBAL_METRICS_SCHEMA>;
|
|
135
338
|
export declare const CONFIGURATION_RESULT_SCHEMA: z.ZodObject<{
|
|
136
339
|
configurationName: z.ZodString;
|
|
137
340
|
global: z.ZodObject<{
|
|
138
|
-
exactMatch: z.ZodOptional<z.
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
341
|
+
exactMatch: z.ZodOptional<z.ZodObject<{
|
|
342
|
+
value: z.ZodNumber;
|
|
343
|
+
computedSegments: z.ZodNumber;
|
|
344
|
+
comparableSegments: z.ZodNumber;
|
|
345
|
+
status: z.ZodEnum<{
|
|
346
|
+
degraded: "degraded";
|
|
347
|
+
failed: "failed";
|
|
348
|
+
perfect: "perfect";
|
|
349
|
+
}>;
|
|
350
|
+
excludedLocalePairs: z.ZodArray<z.ZodObject<{
|
|
351
|
+
sourceLocale: z.ZodString;
|
|
352
|
+
targetLocale: z.ZodString;
|
|
353
|
+
}, z.core.$strip>>;
|
|
354
|
+
}, z.core.$strip>>;
|
|
355
|
+
ter: z.ZodOptional<z.ZodObject<{
|
|
356
|
+
value: z.ZodNumber;
|
|
357
|
+
computedSegments: z.ZodNumber;
|
|
358
|
+
comparableSegments: z.ZodNumber;
|
|
359
|
+
status: z.ZodEnum<{
|
|
360
|
+
degraded: "degraded";
|
|
361
|
+
failed: "failed";
|
|
362
|
+
perfect: "perfect";
|
|
363
|
+
}>;
|
|
364
|
+
excludedLocalePairs: z.ZodArray<z.ZodObject<{
|
|
365
|
+
sourceLocale: z.ZodString;
|
|
366
|
+
targetLocale: z.ZodString;
|
|
367
|
+
}, z.core.$strip>>;
|
|
368
|
+
}, z.core.$strip>>;
|
|
369
|
+
bleu: z.ZodOptional<z.ZodObject<{
|
|
370
|
+
value: z.ZodNumber;
|
|
371
|
+
computedSegments: z.ZodNumber;
|
|
372
|
+
comparableSegments: z.ZodNumber;
|
|
373
|
+
status: z.ZodEnum<{
|
|
374
|
+
degraded: "degraded";
|
|
375
|
+
failed: "failed";
|
|
376
|
+
perfect: "perfect";
|
|
377
|
+
}>;
|
|
378
|
+
excludedLocalePairs: z.ZodArray<z.ZodObject<{
|
|
379
|
+
sourceLocale: z.ZodString;
|
|
380
|
+
targetLocale: z.ZodString;
|
|
381
|
+
}, z.core.$strip>>;
|
|
382
|
+
}, z.core.$strip>>;
|
|
383
|
+
chrf: z.ZodOptional<z.ZodObject<{
|
|
384
|
+
value: z.ZodNumber;
|
|
385
|
+
computedSegments: z.ZodNumber;
|
|
386
|
+
comparableSegments: z.ZodNumber;
|
|
387
|
+
status: z.ZodEnum<{
|
|
388
|
+
degraded: "degraded";
|
|
389
|
+
failed: "failed";
|
|
390
|
+
perfect: "perfect";
|
|
391
|
+
}>;
|
|
392
|
+
excludedLocalePairs: z.ZodArray<z.ZodObject<{
|
|
393
|
+
sourceLocale: z.ZodString;
|
|
394
|
+
targetLocale: z.ZodString;
|
|
395
|
+
}, z.core.$strip>>;
|
|
396
|
+
}, z.core.$strip>>;
|
|
143
397
|
}, z.core.$strip>;
|
|
144
398
|
resultsByLocalePair: z.ZodArray<z.ZodObject<{
|
|
145
399
|
sourceLocale: z.ZodString;
|
|
146
400
|
targetLocale: z.ZodString;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
401
|
+
totalSegments: z.ZodNumber;
|
|
402
|
+
translatedSegments: z.ZodNumber;
|
|
403
|
+
translationStatus: z.ZodEnum<{
|
|
404
|
+
integration_failure: "integration_failure";
|
|
405
|
+
partial_success: "partial_success";
|
|
406
|
+
success: "success";
|
|
407
|
+
unsupported_locale_pair: "unsupported_locale_pair";
|
|
408
|
+
}>;
|
|
409
|
+
metrics: z.ZodNullable<z.ZodObject<{
|
|
410
|
+
exactMatch: z.ZodOptional<z.ZodObject<{
|
|
411
|
+
value: z.ZodNumber;
|
|
412
|
+
computedSegments: z.ZodNumber;
|
|
413
|
+
comparableSegments: z.ZodNumber;
|
|
414
|
+
status: z.ZodEnum<{
|
|
415
|
+
degraded: "degraded";
|
|
416
|
+
failed: "failed";
|
|
417
|
+
perfect: "perfect";
|
|
418
|
+
}>;
|
|
419
|
+
}, z.core.$strip>>;
|
|
420
|
+
ter: z.ZodOptional<z.ZodObject<{
|
|
421
|
+
value: z.ZodNumber;
|
|
422
|
+
computedSegments: z.ZodNumber;
|
|
423
|
+
comparableSegments: z.ZodNumber;
|
|
424
|
+
status: z.ZodEnum<{
|
|
425
|
+
degraded: "degraded";
|
|
426
|
+
failed: "failed";
|
|
427
|
+
perfect: "perfect";
|
|
428
|
+
}>;
|
|
429
|
+
}, z.core.$strip>>;
|
|
430
|
+
bleu: z.ZodOptional<z.ZodObject<{
|
|
431
|
+
value: z.ZodNumber;
|
|
432
|
+
computedSegments: z.ZodNumber;
|
|
433
|
+
comparableSegments: z.ZodNumber;
|
|
434
|
+
status: z.ZodEnum<{
|
|
435
|
+
degraded: "degraded";
|
|
436
|
+
failed: "failed";
|
|
437
|
+
perfect: "perfect";
|
|
438
|
+
}>;
|
|
439
|
+
}, z.core.$strip>>;
|
|
440
|
+
chrf: z.ZodOptional<z.ZodObject<{
|
|
441
|
+
value: z.ZodNumber;
|
|
442
|
+
computedSegments: z.ZodNumber;
|
|
443
|
+
comparableSegments: z.ZodNumber;
|
|
444
|
+
status: z.ZodEnum<{
|
|
445
|
+
degraded: "degraded";
|
|
446
|
+
failed: "failed";
|
|
447
|
+
perfect: "perfect";
|
|
448
|
+
}>;
|
|
449
|
+
}, z.core.$strip>>;
|
|
450
|
+
}, z.core.$strip>>;
|
|
154
451
|
}, z.core.$strip>>;
|
|
155
452
|
}, z.core.$strip>;
|
|
156
453
|
export type ConfigurationResult = z.infer<typeof CONFIGURATION_RESULT_SCHEMA>;
|
|
@@ -181,12 +478,6 @@ export declare const EVALUATION_SCHEMA: z.ZodObject<{
|
|
|
181
478
|
lower: "lower";
|
|
182
479
|
}>;
|
|
183
480
|
}, z.core.$strip>;
|
|
184
|
-
meteor: z.ZodObject<{
|
|
185
|
-
betterWhen: z.ZodEnum<{
|
|
186
|
-
higher: "higher";
|
|
187
|
-
lower: "lower";
|
|
188
|
-
}>;
|
|
189
|
-
}, z.core.$strip>;
|
|
190
481
|
chrf: z.ZodObject<{
|
|
191
482
|
betterWhen: z.ZodEnum<{
|
|
192
483
|
higher: "higher";
|
|
@@ -197,22 +488,116 @@ export declare const EVALUATION_SCHEMA: z.ZodObject<{
|
|
|
197
488
|
results: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
198
489
|
configurationName: z.ZodString;
|
|
199
490
|
global: z.ZodObject<{
|
|
200
|
-
exactMatch: z.ZodOptional<z.
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
491
|
+
exactMatch: z.ZodOptional<z.ZodObject<{
|
|
492
|
+
value: z.ZodNumber;
|
|
493
|
+
computedSegments: z.ZodNumber;
|
|
494
|
+
comparableSegments: z.ZodNumber;
|
|
495
|
+
status: z.ZodEnum<{
|
|
496
|
+
degraded: "degraded";
|
|
497
|
+
failed: "failed";
|
|
498
|
+
perfect: "perfect";
|
|
499
|
+
}>;
|
|
500
|
+
excludedLocalePairs: z.ZodArray<z.ZodObject<{
|
|
501
|
+
sourceLocale: z.ZodString;
|
|
502
|
+
targetLocale: z.ZodString;
|
|
503
|
+
}, z.core.$strip>>;
|
|
504
|
+
}, z.core.$strip>>;
|
|
505
|
+
ter: z.ZodOptional<z.ZodObject<{
|
|
506
|
+
value: z.ZodNumber;
|
|
507
|
+
computedSegments: z.ZodNumber;
|
|
508
|
+
comparableSegments: z.ZodNumber;
|
|
509
|
+
status: z.ZodEnum<{
|
|
510
|
+
degraded: "degraded";
|
|
511
|
+
failed: "failed";
|
|
512
|
+
perfect: "perfect";
|
|
513
|
+
}>;
|
|
514
|
+
excludedLocalePairs: z.ZodArray<z.ZodObject<{
|
|
515
|
+
sourceLocale: z.ZodString;
|
|
516
|
+
targetLocale: z.ZodString;
|
|
517
|
+
}, z.core.$strip>>;
|
|
518
|
+
}, z.core.$strip>>;
|
|
519
|
+
bleu: z.ZodOptional<z.ZodObject<{
|
|
520
|
+
value: z.ZodNumber;
|
|
521
|
+
computedSegments: z.ZodNumber;
|
|
522
|
+
comparableSegments: z.ZodNumber;
|
|
523
|
+
status: z.ZodEnum<{
|
|
524
|
+
degraded: "degraded";
|
|
525
|
+
failed: "failed";
|
|
526
|
+
perfect: "perfect";
|
|
527
|
+
}>;
|
|
528
|
+
excludedLocalePairs: z.ZodArray<z.ZodObject<{
|
|
529
|
+
sourceLocale: z.ZodString;
|
|
530
|
+
targetLocale: z.ZodString;
|
|
531
|
+
}, z.core.$strip>>;
|
|
532
|
+
}, z.core.$strip>>;
|
|
533
|
+
chrf: z.ZodOptional<z.ZodObject<{
|
|
534
|
+
value: z.ZodNumber;
|
|
535
|
+
computedSegments: z.ZodNumber;
|
|
536
|
+
comparableSegments: z.ZodNumber;
|
|
537
|
+
status: z.ZodEnum<{
|
|
538
|
+
degraded: "degraded";
|
|
539
|
+
failed: "failed";
|
|
540
|
+
perfect: "perfect";
|
|
541
|
+
}>;
|
|
542
|
+
excludedLocalePairs: z.ZodArray<z.ZodObject<{
|
|
543
|
+
sourceLocale: z.ZodString;
|
|
544
|
+
targetLocale: z.ZodString;
|
|
545
|
+
}, z.core.$strip>>;
|
|
546
|
+
}, z.core.$strip>>;
|
|
205
547
|
}, z.core.$strip>;
|
|
206
548
|
resultsByLocalePair: z.ZodArray<z.ZodObject<{
|
|
207
549
|
sourceLocale: z.ZodString;
|
|
208
550
|
targetLocale: z.ZodString;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
551
|
+
totalSegments: z.ZodNumber;
|
|
552
|
+
translatedSegments: z.ZodNumber;
|
|
553
|
+
translationStatus: z.ZodEnum<{
|
|
554
|
+
integration_failure: "integration_failure";
|
|
555
|
+
partial_success: "partial_success";
|
|
556
|
+
success: "success";
|
|
557
|
+
unsupported_locale_pair: "unsupported_locale_pair";
|
|
558
|
+
}>;
|
|
559
|
+
metrics: z.ZodNullable<z.ZodObject<{
|
|
560
|
+
exactMatch: z.ZodOptional<z.ZodObject<{
|
|
561
|
+
value: z.ZodNumber;
|
|
562
|
+
computedSegments: z.ZodNumber;
|
|
563
|
+
comparableSegments: z.ZodNumber;
|
|
564
|
+
status: z.ZodEnum<{
|
|
565
|
+
degraded: "degraded";
|
|
566
|
+
failed: "failed";
|
|
567
|
+
perfect: "perfect";
|
|
568
|
+
}>;
|
|
569
|
+
}, z.core.$strip>>;
|
|
570
|
+
ter: z.ZodOptional<z.ZodObject<{
|
|
571
|
+
value: z.ZodNumber;
|
|
572
|
+
computedSegments: z.ZodNumber;
|
|
573
|
+
comparableSegments: z.ZodNumber;
|
|
574
|
+
status: z.ZodEnum<{
|
|
575
|
+
degraded: "degraded";
|
|
576
|
+
failed: "failed";
|
|
577
|
+
perfect: "perfect";
|
|
578
|
+
}>;
|
|
579
|
+
}, z.core.$strip>>;
|
|
580
|
+
bleu: z.ZodOptional<z.ZodObject<{
|
|
581
|
+
value: z.ZodNumber;
|
|
582
|
+
computedSegments: z.ZodNumber;
|
|
583
|
+
comparableSegments: z.ZodNumber;
|
|
584
|
+
status: z.ZodEnum<{
|
|
585
|
+
degraded: "degraded";
|
|
586
|
+
failed: "failed";
|
|
587
|
+
perfect: "perfect";
|
|
588
|
+
}>;
|
|
589
|
+
}, z.core.$strip>>;
|
|
590
|
+
chrf: z.ZodOptional<z.ZodObject<{
|
|
591
|
+
value: z.ZodNumber;
|
|
592
|
+
computedSegments: z.ZodNumber;
|
|
593
|
+
comparableSegments: z.ZodNumber;
|
|
594
|
+
status: z.ZodEnum<{
|
|
595
|
+
degraded: "degraded";
|
|
596
|
+
failed: "failed";
|
|
597
|
+
perfect: "perfect";
|
|
598
|
+
}>;
|
|
599
|
+
}, z.core.$strip>>;
|
|
600
|
+
}, z.core.$strip>>;
|
|
216
601
|
}, z.core.$strip>>;
|
|
217
602
|
}, z.core.$strip>>>;
|
|
218
603
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|