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