@lokalise/ragnarok-api-contracts 4.0.1 → 4.0.3
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 +2 -2
- 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 +39 -1
- package/dist/evaluation-contracts.js +19 -4
- 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
package/dist/common.js
CHANGED
|
@@ -7,11 +7,11 @@ export const LOCALE_SCHEMA = z
|
|
|
7
7
|
.describe('Language locale tag, e.g. `en-US`')
|
|
8
8
|
.refine(isSupportedLocale, { message: 'Invalid locale' });
|
|
9
9
|
export const AUTH_HEADERS = z.object({
|
|
10
|
-
authorization: z.string(),
|
|
10
|
+
authorization: z.string().describe('Bearer authorization token'),
|
|
11
11
|
});
|
|
12
12
|
export const METADATA_SCHEMA = z
|
|
13
13
|
.record(z.string(), z.unknown())
|
|
14
|
-
.describe('A free-form object that can be used to provide
|
|
14
|
+
.describe('A free-form object that can be used to provide additional metadata');
|
|
15
15
|
export const INTEGRATION_INPUT_SCHEMA = z
|
|
16
16
|
.object({
|
|
17
17
|
engine: z.enum(RealIntegrationEngineEnum).optional().describe('Preferred translation engine'),
|
package/dist/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAClE,O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AC,IAAI,CAAC,yBAAyB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC7F,QAAQ,EAAE,CAAC;SACR,OAAO,EAAE;SACT,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CACP,qFAAqF,CACtF;CACJ,CAAC;KACD,QAAQ,CAAC,oDAAoD,CAAC,CAAA;AAIjE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,MAAM,CAAC;IACN,GAAG,EAAE,CAAC;SACH,GAAG,EAAE;SACL,GAAG,CAAC,IAAI,CAAC;SACT,QAAQ,CACP,2FAA2F,CAC5F;IACH,OAAO,EAAE,CAAC;SACP,MAAM,CACL,CAAC;SACE,MAAM,EAAE;SACR,KAAK,CAAC,iBAAiB,EAAE;QACxB,OAAO,EAAE,6DAA6D;KACvE,CAAC;SACD,GAAG,CAAC,GAAG,CAAC;SACR,QAAQ,CAAC,yDAAyD,CAAC,EACtE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,mDAAmD,CAAC,CAC1F;SACA,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;CACrE,CAAC;KACD,QAAQ,CAAC,sEAAsE,CAAC,CAAA"}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const GET_EVALUATION_V2_PARAMS_SCHEMA: z.ZodObject<{
|
|
3
|
+
evaluationId: z.ZodUUID;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export type GetEvaluationV2Params = z.infer<typeof GET_EVALUATION_V2_PARAMS_SCHEMA>;
|
|
6
|
+
export declare const getEvaluationV2Contract: {
|
|
7
|
+
readonly method: "get";
|
|
8
|
+
readonly pathResolver: ({ evaluationId }: {
|
|
9
|
+
evaluationId: string;
|
|
10
|
+
}) => string;
|
|
11
|
+
readonly description: "Retrieve evaluation by id (V2, with coverage and reliability metadata)";
|
|
12
|
+
readonly requestPathParamsSchema: z.ZodObject<{
|
|
13
|
+
evaluationId: z.ZodUUID;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
readonly requestHeaderSchema: z.ZodObject<{
|
|
16
|
+
authorization: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
readonly responsesByStatusCode: {
|
|
19
|
+
readonly 200: z.ZodObject<{
|
|
20
|
+
id: z.ZodUUID;
|
|
21
|
+
ownerId: z.ZodString;
|
|
22
|
+
status: z.ZodEnum<{
|
|
23
|
+
completed: "completed";
|
|
24
|
+
failed: "failed";
|
|
25
|
+
pending: "pending";
|
|
26
|
+
}>;
|
|
27
|
+
metricsMetadata: z.ZodObject<{
|
|
28
|
+
exactMatch: z.ZodObject<{
|
|
29
|
+
betterWhen: z.ZodEnum<{
|
|
30
|
+
higher: "higher";
|
|
31
|
+
lower: "lower";
|
|
32
|
+
}>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
ter: z.ZodObject<{
|
|
35
|
+
betterWhen: z.ZodEnum<{
|
|
36
|
+
higher: "higher";
|
|
37
|
+
lower: "lower";
|
|
38
|
+
}>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
bleu: z.ZodObject<{
|
|
41
|
+
betterWhen: z.ZodEnum<{
|
|
42
|
+
higher: "higher";
|
|
43
|
+
lower: "lower";
|
|
44
|
+
}>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
meteor: z.ZodObject<{
|
|
47
|
+
betterWhen: z.ZodEnum<{
|
|
48
|
+
higher: "higher";
|
|
49
|
+
lower: "lower";
|
|
50
|
+
}>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
chrf: z.ZodObject<{
|
|
53
|
+
betterWhen: z.ZodEnum<{
|
|
54
|
+
higher: "higher";
|
|
55
|
+
lower: "lower";
|
|
56
|
+
}>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
results: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
60
|
+
configurationName: z.ZodString;
|
|
61
|
+
global: z.ZodObject<{
|
|
62
|
+
exactMatch: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
value: z.ZodNumber;
|
|
64
|
+
computedSegments: z.ZodNumber;
|
|
65
|
+
comparableSegments: z.ZodNumber;
|
|
66
|
+
status: z.ZodEnum<{
|
|
67
|
+
failed: "failed";
|
|
68
|
+
perfect: "perfect";
|
|
69
|
+
degraded: "degraded";
|
|
70
|
+
}>;
|
|
71
|
+
excludedLocalePairs: z.ZodArray<z.ZodObject<{
|
|
72
|
+
sourceLocale: z.ZodString;
|
|
73
|
+
targetLocale: z.ZodString;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
}, z.core.$strip>>;
|
|
76
|
+
ter: z.ZodOptional<z.ZodObject<{
|
|
77
|
+
value: z.ZodNumber;
|
|
78
|
+
computedSegments: z.ZodNumber;
|
|
79
|
+
comparableSegments: z.ZodNumber;
|
|
80
|
+
status: z.ZodEnum<{
|
|
81
|
+
failed: "failed";
|
|
82
|
+
perfect: "perfect";
|
|
83
|
+
degraded: "degraded";
|
|
84
|
+
}>;
|
|
85
|
+
excludedLocalePairs: z.ZodArray<z.ZodObject<{
|
|
86
|
+
sourceLocale: z.ZodString;
|
|
87
|
+
targetLocale: z.ZodString;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
bleu: z.ZodOptional<z.ZodObject<{
|
|
91
|
+
value: z.ZodNumber;
|
|
92
|
+
computedSegments: z.ZodNumber;
|
|
93
|
+
comparableSegments: z.ZodNumber;
|
|
94
|
+
status: z.ZodEnum<{
|
|
95
|
+
failed: "failed";
|
|
96
|
+
perfect: "perfect";
|
|
97
|
+
degraded: "degraded";
|
|
98
|
+
}>;
|
|
99
|
+
excludedLocalePairs: z.ZodArray<z.ZodObject<{
|
|
100
|
+
sourceLocale: z.ZodString;
|
|
101
|
+
targetLocale: z.ZodString;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
|
+
meteor: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
value: z.ZodNumber;
|
|
106
|
+
computedSegments: z.ZodNumber;
|
|
107
|
+
comparableSegments: z.ZodNumber;
|
|
108
|
+
status: z.ZodEnum<{
|
|
109
|
+
failed: "failed";
|
|
110
|
+
perfect: "perfect";
|
|
111
|
+
degraded: "degraded";
|
|
112
|
+
}>;
|
|
113
|
+
excludedLocalePairs: z.ZodArray<z.ZodObject<{
|
|
114
|
+
sourceLocale: z.ZodString;
|
|
115
|
+
targetLocale: z.ZodString;
|
|
116
|
+
}, z.core.$strip>>;
|
|
117
|
+
}, z.core.$strip>>;
|
|
118
|
+
chrf: z.ZodOptional<z.ZodObject<{
|
|
119
|
+
value: z.ZodNumber;
|
|
120
|
+
computedSegments: z.ZodNumber;
|
|
121
|
+
comparableSegments: z.ZodNumber;
|
|
122
|
+
status: z.ZodEnum<{
|
|
123
|
+
failed: "failed";
|
|
124
|
+
perfect: "perfect";
|
|
125
|
+
degraded: "degraded";
|
|
126
|
+
}>;
|
|
127
|
+
excludedLocalePairs: z.ZodArray<z.ZodObject<{
|
|
128
|
+
sourceLocale: z.ZodString;
|
|
129
|
+
targetLocale: z.ZodString;
|
|
130
|
+
}, z.core.$strip>>;
|
|
131
|
+
}, z.core.$strip>>;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
resultsByLocalePair: z.ZodArray<z.ZodObject<{
|
|
134
|
+
sourceLocale: z.ZodString;
|
|
135
|
+
targetLocale: z.ZodString;
|
|
136
|
+
totalSegments: z.ZodNumber;
|
|
137
|
+
translatedSegments: z.ZodNumber;
|
|
138
|
+
translationStatus: z.ZodEnum<{
|
|
139
|
+
success: "success";
|
|
140
|
+
partial_success: "partial_success";
|
|
141
|
+
unsupported_locale_pair: "unsupported_locale_pair";
|
|
142
|
+
integration_failure: "integration_failure";
|
|
143
|
+
}>;
|
|
144
|
+
metrics: z.ZodNullable<z.ZodObject<{
|
|
145
|
+
exactMatch: z.ZodOptional<z.ZodObject<{
|
|
146
|
+
value: z.ZodNumber;
|
|
147
|
+
computedSegments: z.ZodNumber;
|
|
148
|
+
comparableSegments: z.ZodNumber;
|
|
149
|
+
status: z.ZodEnum<{
|
|
150
|
+
failed: "failed";
|
|
151
|
+
perfect: "perfect";
|
|
152
|
+
degraded: "degraded";
|
|
153
|
+
}>;
|
|
154
|
+
}, z.core.$strip>>;
|
|
155
|
+
ter: z.ZodOptional<z.ZodObject<{
|
|
156
|
+
value: z.ZodNumber;
|
|
157
|
+
computedSegments: z.ZodNumber;
|
|
158
|
+
comparableSegments: z.ZodNumber;
|
|
159
|
+
status: z.ZodEnum<{
|
|
160
|
+
failed: "failed";
|
|
161
|
+
perfect: "perfect";
|
|
162
|
+
degraded: "degraded";
|
|
163
|
+
}>;
|
|
164
|
+
}, z.core.$strip>>;
|
|
165
|
+
bleu: z.ZodOptional<z.ZodObject<{
|
|
166
|
+
value: z.ZodNumber;
|
|
167
|
+
computedSegments: z.ZodNumber;
|
|
168
|
+
comparableSegments: z.ZodNumber;
|
|
169
|
+
status: z.ZodEnum<{
|
|
170
|
+
failed: "failed";
|
|
171
|
+
perfect: "perfect";
|
|
172
|
+
degraded: "degraded";
|
|
173
|
+
}>;
|
|
174
|
+
}, z.core.$strip>>;
|
|
175
|
+
meteor: z.ZodOptional<z.ZodObject<{
|
|
176
|
+
value: z.ZodNumber;
|
|
177
|
+
computedSegments: z.ZodNumber;
|
|
178
|
+
comparableSegments: z.ZodNumber;
|
|
179
|
+
status: z.ZodEnum<{
|
|
180
|
+
failed: "failed";
|
|
181
|
+
perfect: "perfect";
|
|
182
|
+
degraded: "degraded";
|
|
183
|
+
}>;
|
|
184
|
+
}, z.core.$strip>>;
|
|
185
|
+
chrf: z.ZodOptional<z.ZodObject<{
|
|
186
|
+
value: z.ZodNumber;
|
|
187
|
+
computedSegments: z.ZodNumber;
|
|
188
|
+
comparableSegments: z.ZodNumber;
|
|
189
|
+
status: z.ZodEnum<{
|
|
190
|
+
failed: "failed";
|
|
191
|
+
perfect: "perfect";
|
|
192
|
+
degraded: "degraded";
|
|
193
|
+
}>;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
}, z.core.$strip>>;
|
|
196
|
+
}, z.core.$strip>>;
|
|
197
|
+
}, z.core.$strip>>>;
|
|
198
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
199
|
+
}, z.core.$strip>;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* V2 scheduling shares the V1 request body; the version only changes the shape of the results
|
|
204
|
+
* delivered by the `evaluation.completed` webhook and returned by `GET /v2/evaluations/{id}`.
|
|
205
|
+
*/
|
|
206
|
+
export declare const postScheduleEvaluationV2Contract: {
|
|
207
|
+
readonly method: "post";
|
|
208
|
+
readonly pathResolver: () => string;
|
|
209
|
+
readonly description: "Schedule evaluation (V2 result shape)";
|
|
210
|
+
readonly requestHeaderSchema: z.ZodObject<{
|
|
211
|
+
authorization: z.ZodString;
|
|
212
|
+
'idempotency-key': z.ZodOptional<z.ZodString>;
|
|
213
|
+
}, z.core.$strip>;
|
|
214
|
+
readonly requestBodySchema: z.ZodObject<{
|
|
215
|
+
ownerId: z.ZodString;
|
|
216
|
+
datasets: z.ZodArray<z.ZodObject<{
|
|
217
|
+
fileUrl: z.ZodURL;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
webhook: z.ZodObject<{
|
|
220
|
+
url: z.ZodURL;
|
|
221
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
runConfigurations: z.ZodArray<z.ZodObject<{
|
|
224
|
+
name: z.ZodString;
|
|
225
|
+
integration: z.ZodOptional<z.ZodObject<{
|
|
226
|
+
engine: z.ZodOptional<z.ZodEnum<{
|
|
227
|
+
readonly CLAUDE: "Claude";
|
|
228
|
+
readonly CLAUDE_BEDROCK: "Claude-Bedrock";
|
|
229
|
+
readonly GPT: "GPT";
|
|
230
|
+
readonly GEMINI: "Gemini";
|
|
231
|
+
readonly DEEPL: "DeepL";
|
|
232
|
+
readonly GOOGLE_TRANSLATE: "GoogleTranslate";
|
|
233
|
+
}>>;
|
|
234
|
+
isForced: z.ZodDefault<z.ZodBoolean>;
|
|
235
|
+
}, z.core.$strip>>;
|
|
236
|
+
useExamples: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
237
|
+
useStyleguide: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
238
|
+
useGlossary: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
239
|
+
useDescriptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
240
|
+
}, z.core.$strip>>;
|
|
241
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
242
|
+
}, z.core.$strip>;
|
|
243
|
+
readonly responsesByStatusCode: {
|
|
244
|
+
readonly 202: z.ZodObject<{
|
|
245
|
+
evaluationId: z.ZodUUID;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineApiContract } from '@lokalise/api-contracts';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { AUTH_HEADERS } from "./common.js";
|
|
4
|
+
import { SCHEDULE_EVALUATION_BODY_SCHEMA, SCHEDULE_EVALUATION_HEADERS, SCHEDULE_EVALUATION_RESPONSE_SCHEMA, } from "./evaluation-contracts.js";
|
|
5
|
+
import { EVALUATION_V2_SCHEMA } from "./objects-v2.js";
|
|
6
|
+
const GET_EVALUATION_V2_PARAMS_SCHEMA = z.object({
|
|
7
|
+
evaluationId: z.uuid().describe('The unique identifier of the evaluation to retrieve.'),
|
|
8
|
+
});
|
|
9
|
+
export const getEvaluationV2Contract = defineApiContract({
|
|
10
|
+
method: 'get',
|
|
11
|
+
pathResolver: ({ evaluationId }) => `/v2/evaluations/${evaluationId}`,
|
|
12
|
+
description: 'Retrieve evaluation by id (V2, with coverage and reliability metadata)',
|
|
13
|
+
requestPathParamsSchema: GET_EVALUATION_V2_PARAMS_SCHEMA,
|
|
14
|
+
requestHeaderSchema: AUTH_HEADERS,
|
|
15
|
+
responsesByStatusCode: {
|
|
16
|
+
200: EVALUATION_V2_SCHEMA,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
/**
|
|
20
|
+
* V2 scheduling shares the V1 request body; the version only changes the shape of the results
|
|
21
|
+
* delivered by the `evaluation.completed` webhook and returned by `GET /v2/evaluations/{id}`.
|
|
22
|
+
*/
|
|
23
|
+
export const postScheduleEvaluationV2Contract = defineApiContract({
|
|
24
|
+
method: 'post',
|
|
25
|
+
pathResolver: () => '/v2/evaluations',
|
|
26
|
+
description: 'Schedule evaluation (V2 result shape)',
|
|
27
|
+
requestHeaderSchema: SCHEDULE_EVALUATION_HEADERS,
|
|
28
|
+
requestBodySchema: SCHEDULE_EVALUATION_BODY_SCHEMA,
|
|
29
|
+
responsesByStatusCode: {
|
|
30
|
+
202: SCHEDULE_EVALUATION_RESPONSE_SCHEMA,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=evaluation-contracts-v2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluation-contracts-v2.js","sourceRoot":"","sources":["../src/evaluation-contracts-v2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EACL,+BAA+B,EAC/B,2BAA2B,EAC3B,mCAAmC,GACpC,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAEtD,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,YAAY,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,sDAAsD,CAAC;CACxF,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;IACvD,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,mBAAmB,YAAY,EAAE;IACrE,WAAW,EAAE,wEAAwE;IACrF,uBAAuB,EAAE,+BAA+B;IACxD,mBAAmB,EAAE,YAAY;IACjC,qBAAqB,EAAE;QACrB,GAAG,EAAE,oBAAoB;KAC1B;CACF,CAAC,CAAA;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;IAChE,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,GAAG,EAAE,CAAC,iBAAiB;IACrC,WAAW,EAAE,uCAAuC;IACpD,mBAAmB,EAAE,2BAA2B;IAChD,iBAAiB,EAAE,+BAA+B;IAClD,qBAAqB,EAAE;QACrB,GAAG,EAAE,mCAAmC;KACzC;CACF,CAAC,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ContractNoBody } from '@lokalise/api-contracts';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
declare const GET_EVALUATION_PARAMS_SCHEMA: z.ZodObject<{
|
|
3
4
|
evaluationId: z.ZodUUID;
|
|
@@ -49,6 +50,12 @@ export declare const getEvaluationContract: {
|
|
|
49
50
|
lower: "lower";
|
|
50
51
|
}>;
|
|
51
52
|
}, z.core.$strip>;
|
|
53
|
+
chrf: z.ZodObject<{
|
|
54
|
+
betterWhen: z.ZodEnum<{
|
|
55
|
+
higher: "higher";
|
|
56
|
+
lower: "lower";
|
|
57
|
+
}>;
|
|
58
|
+
}, z.core.$strip>;
|
|
52
59
|
}, z.core.$strip>;
|
|
53
60
|
results: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
54
61
|
configurationName: z.ZodString;
|
|
@@ -57,6 +64,7 @@ export declare const getEvaluationContract: {
|
|
|
57
64
|
ter: z.ZodOptional<z.ZodNumber>;
|
|
58
65
|
bleu: z.ZodOptional<z.ZodNumber>;
|
|
59
66
|
meteor: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
chrf: z.ZodOptional<z.ZodNumber>;
|
|
60
68
|
}, z.core.$strip>;
|
|
61
69
|
resultsByLocalePair: z.ZodArray<z.ZodObject<{
|
|
62
70
|
sourceLocale: z.ZodString;
|
|
@@ -66,6 +74,7 @@ export declare const getEvaluationContract: {
|
|
|
66
74
|
ter: z.ZodOptional<z.ZodNumber>;
|
|
67
75
|
bleu: z.ZodOptional<z.ZodNumber>;
|
|
68
76
|
meteor: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
chrf: z.ZodOptional<z.ZodNumber>;
|
|
69
78
|
}, z.core.$strip>;
|
|
70
79
|
}, z.core.$strip>>;
|
|
71
80
|
}, z.core.$strip>>>;
|
|
@@ -95,7 +104,7 @@ export declare const RUN_CONFIGURATION_INPUT_SCHEMA: z.ZodObject<{
|
|
|
95
104
|
useDescriptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
96
105
|
}, z.core.$strip>;
|
|
97
106
|
export type RunConfigurationInput = z.infer<typeof RUN_CONFIGURATION_INPUT_SCHEMA>;
|
|
98
|
-
declare const SCHEDULE_EVALUATION_BODY_SCHEMA: z.ZodObject<{
|
|
107
|
+
export declare const SCHEDULE_EVALUATION_BODY_SCHEMA: z.ZodObject<{
|
|
99
108
|
ownerId: z.ZodString;
|
|
100
109
|
datasets: z.ZodArray<z.ZodObject<{
|
|
101
110
|
fileUrl: z.ZodURL;
|
|
@@ -125,6 +134,13 @@ declare const SCHEDULE_EVALUATION_BODY_SCHEMA: z.ZodObject<{
|
|
|
125
134
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
126
135
|
}, z.core.$strip>;
|
|
127
136
|
export type ScheduleEvaluationInput = z.infer<typeof SCHEDULE_EVALUATION_BODY_SCHEMA>;
|
|
137
|
+
export declare const SCHEDULE_EVALUATION_HEADERS: z.ZodObject<{
|
|
138
|
+
authorization: z.ZodString;
|
|
139
|
+
'idempotency-key': z.ZodOptional<z.ZodString>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
export declare const SCHEDULE_EVALUATION_RESPONSE_SCHEMA: z.ZodObject<{
|
|
142
|
+
evaluationId: z.ZodUUID;
|
|
143
|
+
}, z.core.$strip>;
|
|
128
144
|
export declare const postScheduleEvaluationContract: {
|
|
129
145
|
readonly method: "post";
|
|
130
146
|
readonly pathResolver: () => string;
|
|
@@ -279,6 +295,7 @@ export declare const getEvaluationItemsContract: {
|
|
|
279
295
|
exactMatch: z.ZodOptional<z.ZodNumber>;
|
|
280
296
|
ter: z.ZodOptional<z.ZodNumber>;
|
|
281
297
|
meteor: z.ZodOptional<z.ZodNumber>;
|
|
298
|
+
chrf: z.ZodOptional<z.ZodNumber>;
|
|
282
299
|
}, z.core.$strip>>;
|
|
283
300
|
error: z.ZodNullable<z.ZodObject<{
|
|
284
301
|
message: z.ZodString;
|
|
@@ -295,4 +312,25 @@ export declare const getEvaluationItemsContract: {
|
|
|
295
312
|
}, z.core.$strip>;
|
|
296
313
|
};
|
|
297
314
|
};
|
|
315
|
+
declare const DELETE_OWNER_EVALUATIONS_PARAMS_SCHEMA: z.ZodObject<{
|
|
316
|
+
ownerId: z.ZodString;
|
|
317
|
+
}, z.core.$strip>;
|
|
318
|
+
export type DeleteOwnerEvaluationsParams = z.infer<typeof DELETE_OWNER_EVALUATIONS_PARAMS_SCHEMA>;
|
|
319
|
+
export declare const deleteOwnerEvaluationsContract: {
|
|
320
|
+
readonly method: "delete";
|
|
321
|
+
readonly pathResolver: ({ ownerId }: {
|
|
322
|
+
ownerId: string;
|
|
323
|
+
}) => string;
|
|
324
|
+
readonly description: "Schedule deletion of all evaluation runs and related data for an owner. Returns 202 when a deletion job was enqueued, 204 when the owner had no data.";
|
|
325
|
+
readonly requestPathParamsSchema: z.ZodObject<{
|
|
326
|
+
ownerId: z.ZodString;
|
|
327
|
+
}, z.core.$strip>;
|
|
328
|
+
readonly requestHeaderSchema: z.ZodObject<{
|
|
329
|
+
authorization: z.ZodString;
|
|
330
|
+
}, z.core.$strip>;
|
|
331
|
+
readonly responsesByStatusCode: {
|
|
332
|
+
readonly 202: typeof ContractNoBody;
|
|
333
|
+
readonly 204: typeof ContractNoBody;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
298
336
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineApiContract } from '@lokalise/api-contracts';
|
|
1
|
+
import { ContractNoBody, defineApiContract } from '@lokalise/api-contracts';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { AUTH_HEADERS, INTEGRATION_INPUT_SCHEMA, LOCALE_SCHEMA, METADATA_SCHEMA, WEBHOOK_SCHEMA, } from "./common.js";
|
|
4
4
|
import { EVALUATION_ITEM_DETAIL_SCHEMA, EVALUATION_SCHEMA } from "./objects.js";
|
|
@@ -47,7 +47,7 @@ export const RUN_CONFIGURATION_INPUT_SCHEMA = z.object({
|
|
|
47
47
|
.default(true)
|
|
48
48
|
.describe('If false, will not send neither global nor per-item descriptions with Translation calls.'),
|
|
49
49
|
});
|
|
50
|
-
const SCHEDULE_EVALUATION_BODY_SCHEMA = z
|
|
50
|
+
export const SCHEDULE_EVALUATION_BODY_SCHEMA = z
|
|
51
51
|
.object({
|
|
52
52
|
ownerId: z
|
|
53
53
|
.string()
|
|
@@ -66,7 +66,7 @@ const SCHEDULE_EVALUATION_BODY_SCHEMA = z
|
|
|
66
66
|
const names = data.runConfigurations.map((c) => c.name);
|
|
67
67
|
return new Set(names).size === names.length;
|
|
68
68
|
}, { message: 'Run configuration names must be unique within the request' });
|
|
69
|
-
const SCHEDULE_EVALUATION_HEADERS = AUTH_HEADERS.extend({
|
|
69
|
+
export const SCHEDULE_EVALUATION_HEADERS = AUTH_HEADERS.extend({
|
|
70
70
|
'idempotency-key': z
|
|
71
71
|
.string()
|
|
72
72
|
.min(1, 'Idempotency-Key must not be empty')
|
|
@@ -74,7 +74,7 @@ const SCHEDULE_EVALUATION_HEADERS = AUTH_HEADERS.extend({
|
|
|
74
74
|
.optional()
|
|
75
75
|
.describe('Globally unique key to prevent duplicate evaluation scheduling'),
|
|
76
76
|
});
|
|
77
|
-
const SCHEDULE_EVALUATION_RESPONSE_SCHEMA = z.object({
|
|
77
|
+
export const SCHEDULE_EVALUATION_RESPONSE_SCHEMA = z.object({
|
|
78
78
|
evaluationId: z
|
|
79
79
|
.uuid()
|
|
80
80
|
.describe('The unique identifier of the scheduled evaluation. Use it to retrieve the evaluation results later.'),
|
|
@@ -159,4 +159,19 @@ export const getEvaluationItemsContract = defineApiContract({
|
|
|
159
159
|
200: EVALUATION_ITEMS_RESPONSE_SCHEMA,
|
|
160
160
|
},
|
|
161
161
|
});
|
|
162
|
+
// === Delete Owner Evaluations ===
|
|
163
|
+
const DELETE_OWNER_EVALUATIONS_PARAMS_SCHEMA = z.object({
|
|
164
|
+
ownerId: z.string().min(1).describe('The owner identifier whose evaluations should be deleted'),
|
|
165
|
+
});
|
|
166
|
+
export const deleteOwnerEvaluationsContract = defineApiContract({
|
|
167
|
+
method: 'delete',
|
|
168
|
+
pathResolver: ({ ownerId }) => `/v1/owners/${ownerId}/evaluations`,
|
|
169
|
+
description: 'Schedule deletion of all evaluation runs and related data for an owner. Returns 202 when a deletion job was enqueued, 204 when the owner had no data.',
|
|
170
|
+
requestPathParamsSchema: DELETE_OWNER_EVALUATIONS_PARAMS_SCHEMA,
|
|
171
|
+
requestHeaderSchema: AUTH_HEADERS,
|
|
172
|
+
responsesByStatusCode: {
|
|
173
|
+
202: ContractNoBody,
|
|
174
|
+
204: ContractNoBody,
|
|
175
|
+
},
|
|
176
|
+
});
|
|
162
177
|
//# sourceMappingURL=evaluation-contracts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evaluation-contracts.js","sourceRoot":"","sources":["../src/evaluation-contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"evaluation-contracts.js","sourceRoot":"","sources":["../src/evaluation-contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EACL,YAAY,EACZ,wBAAwB,EACxB,aAAa,EACb,eAAe,EACf,cAAc,GACf,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,6BAA6B,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAE/E,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,YAAY,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,sDAAsD,CAAC;CACxF,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;IACrD,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,mBAAmB,YAAY,EAAE;IACrE,WAAW,EAAE,2BAA2B;IACxC,uBAAuB,EAAE,4BAA4B;IACrD,mBAAmB,EAAE,YAAY;IACjC,qBAAqB,EAAE;QACrB,GAAG,EAAE,iBAAiB;KACvB;CACF,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,OAAO,EAAE,CAAC;SACP,GAAG,EAAE;SACL,QAAQ,CACP,qKAAqK,CACtK;CACJ,CAAC,CAAA;AAEF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AAE,QAAQ;IAChB,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,cAAc,OAAO,cAAc;IAClE,WAAW,EACT,uJAAuJ;IACzJ,uBAAuB,EAAE,sCAAsC;IAC/D,mBAAmB,EAAE,YAAY;IACjC,qBAAqB,EAAE;QACrB,GAAG,EAAE,cAAc;QACnB,GAAG,EAAE,cAAc;KACpB;CACF,CAAC,CAAA"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,2BAA2B,CAAA;AACzC,cAAc,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,2BAA2B,CAAA;AACzC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA"}
|