@lokalise/ragnarok-api-contracts 2.5.0 → 3.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.
@@ -3,121 +3,76 @@ declare const GET_EVALUATION_PARAMS_SCHEMA: z.ZodObject<{
3
3
  evaluationId: z.ZodUUID;
4
4
  }, z.core.$strip>;
5
5
  export type GetEvaluationParams = z.infer<typeof GET_EVALUATION_PARAMS_SCHEMA>;
6
- export declare const getEvaluation: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
7
- id: z.ZodUUID;
8
- ownerId: z.ZodString;
9
- status: z.ZodEnum<{
10
- completed: "completed";
11
- failed: "failed";
12
- pending: "pending";
13
- }>;
14
- metricsMetadata: z.ZodObject<{
15
- exactMatch: z.ZodObject<{
16
- betterWhen: z.ZodEnum<{
17
- higher: "higher";
18
- lower: "lower";
19
- }>;
20
- }, z.core.$strip>;
21
- ter: z.ZodObject<{
22
- betterWhen: z.ZodEnum<{
23
- higher: "higher";
24
- lower: "lower";
25
- }>;
26
- }, z.core.$strip>;
27
- bleu: z.ZodObject<{
28
- betterWhen: z.ZodEnum<{
29
- higher: "higher";
30
- lower: "lower";
31
- }>;
32
- }, z.core.$strip>;
33
- meteor: z.ZodObject<{
34
- betterWhen: z.ZodEnum<{
35
- higher: "higher";
36
- lower: "lower";
37
- }>;
38
- }, z.core.$strip>;
6
+ export declare const getEvaluation: {
7
+ readonly method: "get";
8
+ readonly pathResolver: ({ evaluationId }: {
9
+ evaluationId: string;
10
+ }) => string;
11
+ readonly description: "Retrieve evaluation by id";
12
+ readonly requestPathParamsSchema: z.ZodObject<{
13
+ evaluationId: z.ZodUUID;
39
14
  }, z.core.$strip>;
40
- results: z.ZodNullable<z.ZodArray<z.ZodObject<{
41
- configurationName: z.ZodString;
42
- global: z.ZodObject<{
43
- exactMatch: z.ZodOptional<z.ZodNumber>;
44
- ter: z.ZodOptional<z.ZodNumber>;
45
- bleu: z.ZodOptional<z.ZodNumber>;
46
- meteor: z.ZodOptional<z.ZodNumber>;
47
- }, z.core.$strip>;
48
- resultsByLocalePair: z.ZodArray<z.ZodObject<{
49
- sourceLocale: z.ZodString;
50
- targetLocale: z.ZodString;
51
- metrics: z.ZodObject<{
52
- exactMatch: z.ZodOptional<z.ZodNumber>;
53
- ter: z.ZodOptional<z.ZodNumber>;
54
- bleu: z.ZodOptional<z.ZodNumber>;
55
- meteor: z.ZodOptional<z.ZodNumber>;
56
- }, z.core.$strip>;
57
- }, z.core.$strip>>;
58
- }, z.core.$strip>>>;
59
- metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
60
- }, z.core.$strip>, z.ZodObject<{
61
- evaluationId: z.ZodUUID;
62
- }, z.core.$strip>, undefined, z.ZodObject<{
63
- authorization: z.ZodString;
64
- }, z.core.$strip>, undefined, false, false, {
65
- 200: z.ZodObject<{
66
- id: z.ZodUUID;
67
- ownerId: z.ZodString;
68
- status: z.ZodEnum<{
69
- completed: "completed";
70
- failed: "failed";
71
- pending: "pending";
72
- }>;
73
- metricsMetadata: z.ZodObject<{
74
- exactMatch: z.ZodObject<{
75
- betterWhen: z.ZodEnum<{
76
- higher: "higher";
77
- lower: "lower";
78
- }>;
79
- }, z.core.$strip>;
80
- ter: z.ZodObject<{
81
- betterWhen: z.ZodEnum<{
82
- higher: "higher";
83
- lower: "lower";
84
- }>;
85
- }, z.core.$strip>;
86
- bleu: z.ZodObject<{
87
- betterWhen: z.ZodEnum<{
88
- higher: "higher";
89
- lower: "lower";
90
- }>;
91
- }, z.core.$strip>;
92
- meteor: z.ZodObject<{
93
- betterWhen: z.ZodEnum<{
94
- higher: "higher";
95
- lower: "lower";
96
- }>;
97
- }, z.core.$strip>;
98
- }, z.core.$strip>;
99
- results: z.ZodNullable<z.ZodArray<z.ZodObject<{
100
- configurationName: z.ZodString;
101
- global: z.ZodObject<{
102
- exactMatch: z.ZodOptional<z.ZodNumber>;
103
- ter: z.ZodOptional<z.ZodNumber>;
104
- bleu: z.ZodOptional<z.ZodNumber>;
105
- meteor: z.ZodOptional<z.ZodNumber>;
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>;
106
52
  }, z.core.$strip>;
107
- resultsByLocalePair: z.ZodArray<z.ZodObject<{
108
- sourceLocale: z.ZodString;
109
- targetLocale: z.ZodString;
110
- metrics: z.ZodObject<{
53
+ results: z.ZodNullable<z.ZodArray<z.ZodObject<{
54
+ configurationName: z.ZodString;
55
+ global: z.ZodObject<{
111
56
  exactMatch: z.ZodOptional<z.ZodNumber>;
112
57
  ter: z.ZodOptional<z.ZodNumber>;
113
58
  bleu: z.ZodOptional<z.ZodNumber>;
114
59
  meteor: z.ZodOptional<z.ZodNumber>;
115
60
  }, z.core.$strip>;
116
- }, z.core.$strip>>;
117
- }, z.core.$strip>>>;
118
- metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
119
- }, z.core.$strip>;
120
- }>;
61
+ resultsByLocalePair: z.ZodArray<z.ZodObject<{
62
+ sourceLocale: z.ZodString;
63
+ targetLocale: z.ZodString;
64
+ metrics: z.ZodObject<{
65
+ exactMatch: z.ZodOptional<z.ZodNumber>;
66
+ ter: z.ZodOptional<z.ZodNumber>;
67
+ bleu: z.ZodOptional<z.ZodNumber>;
68
+ meteor: z.ZodOptional<z.ZodNumber>;
69
+ }, z.core.$strip>;
70
+ }, z.core.$strip>>;
71
+ }, z.core.$strip>>>;
72
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
73
+ }, z.core.$strip>;
74
+ };
75
+ };
121
76
  export declare const DATASET_INPUT_SCHEMA: z.ZodObject<{
122
77
  fileUrl: z.ZodURL;
123
78
  }, z.core.$strip>;
@@ -170,149 +125,174 @@ declare const SCHEDULE_EVALUATION_BODY_SCHEMA: z.ZodObject<{
170
125
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
171
126
  }, z.core.$strip>;
172
127
  export type ScheduleEvaluationInput = z.infer<typeof SCHEDULE_EVALUATION_BODY_SCHEMA>;
173
- export declare const postScheduleEvaluation: import("@lokalise/api-contracts").PayloadRouteDefinition<z.ZodObject<{
174
- ownerId: z.ZodString;
175
- datasets: z.ZodArray<z.ZodObject<{
176
- fileUrl: z.ZodURL;
177
- }, z.core.$strip>>;
178
- webhook: z.ZodObject<{
179
- url: z.ZodURL;
180
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
128
+ export declare const postScheduleEvaluation: {
129
+ readonly method: "post";
130
+ readonly pathResolver: () => string;
131
+ readonly description: "Schedule evaluation";
132
+ readonly requestHeaderSchema: z.ZodObject<{
133
+ authorization: z.ZodString;
134
+ 'idempotency-key': z.ZodOptional<z.ZodString>;
181
135
  }, z.core.$strip>;
182
- runConfigurations: z.ZodArray<z.ZodObject<{
183
- name: z.ZodString;
184
- integration: z.ZodOptional<z.ZodObject<{
185
- engine: z.ZodOptional<z.ZodEnum<{
186
- readonly CLAUDE: "Claude";
187
- readonly CLAUDE_BEDROCK: "Claude-Bedrock";
188
- readonly GPT: "GPT";
189
- readonly GEMINI: "Gemini";
190
- readonly DEEPL: "DeepL";
191
- readonly GOOGLE_TRANSLATE: "GoogleTranslate";
192
- }>>;
193
- isForced: z.ZodDefault<z.ZodBoolean>;
136
+ readonly requestBodySchema: z.ZodObject<{
137
+ ownerId: z.ZodString;
138
+ datasets: z.ZodArray<z.ZodObject<{
139
+ fileUrl: z.ZodURL;
194
140
  }, z.core.$strip>>;
195
- useExamples: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
196
- useStyleguide: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
197
- useGlossary: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
198
- useDescriptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
199
- }, z.core.$strip>>;
200
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
201
- }, z.core.$strip>, z.ZodObject<{
202
- evaluationId: z.ZodUUID;
203
- }, z.core.$strip>, undefined, undefined, z.ZodObject<{
204
- authorization: z.ZodString;
205
- 'idempotency-key': z.ZodOptional<z.ZodString>;
206
- }, z.core.$strip>, undefined, false, false, {
207
- 202: z.ZodObject<{
208
- evaluationId: z.ZodUUID;
141
+ webhook: z.ZodObject<{
142
+ url: z.ZodURL;
143
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
144
+ }, z.core.$strip>;
145
+ runConfigurations: z.ZodArray<z.ZodObject<{
146
+ name: z.ZodString;
147
+ integration: z.ZodOptional<z.ZodObject<{
148
+ engine: z.ZodOptional<z.ZodEnum<{
149
+ readonly CLAUDE: "Claude";
150
+ readonly CLAUDE_BEDROCK: "Claude-Bedrock";
151
+ readonly GPT: "GPT";
152
+ readonly GEMINI: "Gemini";
153
+ readonly DEEPL: "DeepL";
154
+ readonly GOOGLE_TRANSLATE: "GoogleTranslate";
155
+ }>>;
156
+ isForced: z.ZodDefault<z.ZodBoolean>;
157
+ }, z.core.$strip>>;
158
+ useExamples: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
159
+ useStyleguide: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
160
+ useGlossary: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
161
+ useDescriptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
162
+ }, z.core.$strip>>;
163
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
209
164
  }, z.core.$strip>;
210
- }>;
165
+ readonly responsesByStatusCode: {
166
+ readonly 202: z.ZodObject<{
167
+ evaluationId: z.ZodUUID;
168
+ }, z.core.$strip>;
169
+ };
170
+ };
171
+ declare const PaginationCursorSchema: z.ZodObject<{
172
+ id: z.ZodString;
173
+ exactMatch: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
174
+ ter: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
175
+ meteor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
176
+ }, z.core.$strip>;
177
+ export type PaginationCursor = z.infer<typeof PaginationCursorSchema>;
178
+ export declare const PaginationCursorCodec: z.ZodCodec<z.ZodString, z.ZodObject<{
179
+ id: z.ZodString;
180
+ exactMatch: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
181
+ ter: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
182
+ meteor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
183
+ }, z.core.$strip>>;
211
184
  declare const GET_EVALUATION_ITEMS_PARAMS_SCHEMA: z.ZodObject<{
212
185
  evaluationId: z.ZodUUID;
213
186
  }, z.core.$strip>;
214
187
  export type GetEvaluationItemsParams = z.infer<typeof GET_EVALUATION_ITEMS_PARAMS_SCHEMA>;
188
+ declare const SORT_FIELDS: readonly ["id", "exactMatch", "ter", "meteor"];
189
+ export type ItemSortBy = (typeof SORT_FIELDS)[number];
190
+ export type ItemSort = {
191
+ by: ItemSortBy;
192
+ order: 'asc' | 'desc';
193
+ };
215
194
  declare const GET_EVALUATION_ITEMS_QUERY_SCHEMA: z.ZodObject<{
216
- before: z.ZodOptional<z.ZodString>;
217
- after: z.ZodOptional<z.ZodString>;
218
- 'filter-target-locale': z.ZodOptional<z.ZodString>;
219
195
  limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
196
+ before: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodObject<{
197
+ id: z.ZodString;
198
+ exactMatch: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
199
+ ter: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
200
+ meteor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
201
+ }, z.core.$strip>>>;
202
+ after: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodObject<{
203
+ id: z.ZodString;
204
+ exactMatch: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
205
+ ter: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
206
+ meteor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
207
+ }, z.core.$strip>>>;
208
+ sort: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
209
+ [x: string]: string;
210
+ }>>>, z.ZodTransform<ItemSort, string>>;
211
+ 'sort-config-name': z.ZodOptional<z.ZodString>;
212
+ 'filter-target-locale': z.ZodOptional<z.ZodString>;
220
213
  }, z.core.$strip>;
221
214
  export type GetEvaluationItemsQuery = z.infer<typeof GET_EVALUATION_ITEMS_QUERY_SCHEMA>;
222
- export declare const getEvaluationItems: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
223
- data: z.ZodArray<z.ZodObject<{
224
- itemId: z.ZodUUID;
225
- externalId: z.ZodString;
226
- sourceLocale: z.ZodString;
227
- targetLocale: z.ZodString;
228
- sourceValue: z.ZodString;
229
- referenceTranslation: z.ZodString;
230
- description: z.ZodNullable<z.ZodString>;
231
- translationExamples: z.ZodArray<z.ZodObject<{
232
- sourceValue: z.ZodString;
233
- translatedValue: z.ZodString;
234
- }, z.core.$strip>>;
235
- translations: z.ZodArray<z.ZodObject<{
236
- configurationName: z.ZodString;
237
- status: z.ZodEnum<{
238
- translating: "translating";
239
- translated: "translated";
240
- scoring: "scoring";
241
- scored: "scored";
242
- completed: "completed";
243
- failed: "failed";
244
- }>;
245
- actualTranslation: z.ZodNullable<z.ZodString>;
246
- actualScore: z.ZodNullable<z.ZodNumber>;
247
- metrics: z.ZodNullable<z.ZodObject<{
248
- exactMatch: z.ZodOptional<z.ZodNumber>;
249
- ter: z.ZodOptional<z.ZodNumber>;
250
- meteor: z.ZodOptional<z.ZodNumber>;
251
- }, z.core.$strip>>;
252
- error: z.ZodNullable<z.ZodObject<{
253
- message: z.ZodString;
254
- errorCode: z.ZodString;
255
- details: z.ZodOptional<z.ZodAny>;
256
- }, z.core.$strip>>;
257
- }, z.core.$strip>>;
258
- }, z.core.$strip>>;
259
- meta: z.ZodObject<{
260
- count: z.ZodNumber;
261
- cursor: z.ZodOptional<z.ZodString>;
262
- hasMore: z.ZodOptional<z.ZodBoolean>;
215
+ export type EvaluationItemsSort = {
216
+ by: ItemSortBy;
217
+ order: 'asc' | 'desc';
218
+ configName?: string;
219
+ };
220
+ export declare const getEvaluationItems: {
221
+ readonly method: "get";
222
+ readonly pathResolver: ({ evaluationId }: {
223
+ evaluationId: string;
224
+ }) => string;
225
+ readonly description: "Retrieve evaluation items with translations and per-item metrics";
226
+ readonly requestPathParamsSchema: z.ZodObject<{
227
+ evaluationId: z.ZodUUID;
263
228
  }, z.core.$strip>;
264
- }, z.core.$strip>, z.ZodObject<{
265
- evaluationId: z.ZodUUID;
266
- }, z.core.$strip>, z.ZodObject<{
267
- before: z.ZodOptional<z.ZodString>;
268
- after: z.ZodOptional<z.ZodString>;
269
- 'filter-target-locale': z.ZodOptional<z.ZodString>;
270
- limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
271
- }, z.core.$strip>, z.ZodObject<{
272
- authorization: z.ZodString;
273
- }, z.core.$strip>, undefined, false, false, {
274
- 200: z.ZodObject<{
275
- data: z.ZodArray<z.ZodObject<{
276
- itemId: z.ZodUUID;
277
- externalId: z.ZodString;
278
- sourceLocale: z.ZodString;
279
- targetLocale: z.ZodString;
280
- sourceValue: z.ZodString;
281
- referenceTranslation: z.ZodString;
282
- description: z.ZodNullable<z.ZodString>;
283
- translationExamples: z.ZodArray<z.ZodObject<{
229
+ readonly requestQuerySchema: z.ZodObject<{
230
+ limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
231
+ before: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodObject<{
232
+ id: z.ZodString;
233
+ exactMatch: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
234
+ ter: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
235
+ meteor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
236
+ }, z.core.$strip>>>;
237
+ after: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodObject<{
238
+ id: z.ZodString;
239
+ exactMatch: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
240
+ ter: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
241
+ meteor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
242
+ }, z.core.$strip>>>;
243
+ sort: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
244
+ [x: string]: string;
245
+ }>>>, z.ZodTransform<ItemSort, string>>;
246
+ 'sort-config-name': z.ZodOptional<z.ZodString>;
247
+ 'filter-target-locale': z.ZodOptional<z.ZodString>;
248
+ }, z.core.$strip>;
249
+ readonly requestHeaderSchema: z.ZodObject<{
250
+ authorization: z.ZodString;
251
+ }, z.core.$strip>;
252
+ readonly responsesByStatusCode: {
253
+ readonly 200: z.ZodObject<{
254
+ data: z.ZodArray<z.ZodObject<{
255
+ itemId: z.ZodUUID;
256
+ externalId: z.ZodString;
257
+ sourceLocale: z.ZodString;
258
+ targetLocale: z.ZodString;
284
259
  sourceValue: z.ZodString;
285
- translatedValue: z.ZodString;
286
- }, z.core.$strip>>;
287
- translations: z.ZodArray<z.ZodObject<{
288
- configurationName: z.ZodString;
289
- status: z.ZodEnum<{
290
- translating: "translating";
291
- translated: "translated";
292
- scoring: "scoring";
293
- scored: "scored";
294
- completed: "completed";
295
- failed: "failed";
296
- }>;
297
- actualTranslation: z.ZodNullable<z.ZodString>;
298
- actualScore: z.ZodNullable<z.ZodNumber>;
299
- metrics: z.ZodNullable<z.ZodObject<{
300
- exactMatch: z.ZodOptional<z.ZodNumber>;
301
- ter: z.ZodOptional<z.ZodNumber>;
302
- meteor: z.ZodOptional<z.ZodNumber>;
260
+ referenceTranslation: z.ZodString;
261
+ description: z.ZodNullable<z.ZodString>;
262
+ translationExamples: z.ZodArray<z.ZodObject<{
263
+ sourceValue: z.ZodString;
264
+ translatedValue: z.ZodString;
303
265
  }, z.core.$strip>>;
304
- error: z.ZodNullable<z.ZodObject<{
305
- message: z.ZodString;
306
- errorCode: z.ZodString;
307
- details: z.ZodOptional<z.ZodAny>;
266
+ translations: z.ZodArray<z.ZodObject<{
267
+ configurationName: z.ZodString;
268
+ status: z.ZodEnum<{
269
+ translating: "translating";
270
+ translated: "translated";
271
+ scoring: "scoring";
272
+ scored: "scored";
273
+ completed: "completed";
274
+ failed: "failed";
275
+ }>;
276
+ actualTranslation: z.ZodNullable<z.ZodString>;
277
+ actualScore: z.ZodNullable<z.ZodNumber>;
278
+ metrics: z.ZodNullable<z.ZodObject<{
279
+ exactMatch: z.ZodOptional<z.ZodNumber>;
280
+ ter: z.ZodOptional<z.ZodNumber>;
281
+ meteor: z.ZodOptional<z.ZodNumber>;
282
+ }, z.core.$strip>>;
283
+ error: z.ZodNullable<z.ZodObject<{
284
+ message: z.ZodString;
285
+ errorCode: z.ZodString;
286
+ details: z.ZodOptional<z.ZodAny>;
287
+ }, z.core.$strip>>;
308
288
  }, z.core.$strip>>;
309
289
  }, z.core.$strip>>;
310
- }, z.core.$strip>>;
311
- meta: z.ZodObject<{
312
- count: z.ZodNumber;
313
- cursor: z.ZodOptional<z.ZodString>;
314
- hasMore: z.ZodOptional<z.ZodBoolean>;
290
+ meta: z.ZodObject<{
291
+ resultCount: z.ZodNumber;
292
+ cursor: z.ZodOptional<z.ZodString>;
293
+ hasMore: z.ZodBoolean;
294
+ }, z.core.$strip>;
315
295
  }, z.core.$strip>;
316
- }, z.core.$strip>;
317
- }>;
296
+ };
297
+ };
318
298
  export {};
@@ -1,19 +1,17 @@
1
- import { OPTIONAL_PAGINATION_CONFIG_SCHEMA, paginatedResponseSchema } from '@lokalise/api-common';
2
- import { buildRestContract } from '@lokalise/api-contracts';
1
+ import { defineApiContract } from '@lokalise/api-contracts';
3
2
  import { z } from 'zod';
4
3
  import { AUTH_HEADERS, INTEGRATION_INPUT_SCHEMA, LOCALE_SCHEMA, METADATA_SCHEMA, WEBHOOK_SCHEMA, } from "./common.js";
5
4
  import { EVALUATION_ITEM_DETAIL_SCHEMA, EVALUATION_SCHEMA } from "./objects.js";
6
5
  const GET_EVALUATION_PARAMS_SCHEMA = z.object({
7
6
  evaluationId: z.uuid().describe('The unique identifier of the evaluation to retrieve.'),
8
7
  });
9
- export const getEvaluation = buildRestContract({
8
+ export const getEvaluation = defineApiContract({
10
9
  method: 'get',
11
10
  pathResolver: ({ evaluationId }) => `/v1/evaluations/${evaluationId}`,
12
11
  description: 'Retrieve evaluation by id',
13
12
  requestPathParamsSchema: GET_EVALUATION_PARAMS_SCHEMA,
14
13
  requestHeaderSchema: AUTH_HEADERS,
15
- successResponseBodySchema: EVALUATION_SCHEMA,
16
- responseSchemasByStatusCode: {
14
+ responsesByStatusCode: {
17
15
  200: EVALUATION_SCHEMA,
18
16
  },
19
17
  });
@@ -81,35 +79,84 @@ const SCHEDULE_EVALUATION_RESPONSE_SCHEMA = z.object({
81
79
  .uuid()
82
80
  .describe('The unique identifier of the scheduled evaluation. Use it to retrieve the evaluation results later.'),
83
81
  });
84
- export const postScheduleEvaluation = buildRestContract({
82
+ export const postScheduleEvaluation = defineApiContract({
85
83
  method: 'post',
86
84
  pathResolver: () => '/v1/evaluations',
87
85
  description: 'Schedule evaluation',
88
86
  requestHeaderSchema: SCHEDULE_EVALUATION_HEADERS,
89
87
  requestBodySchema: SCHEDULE_EVALUATION_BODY_SCHEMA,
90
- successResponseBodySchema: SCHEDULE_EVALUATION_RESPONSE_SCHEMA,
91
- responseSchemasByStatusCode: {
88
+ responsesByStatusCode: {
92
89
  202: SCHEDULE_EVALUATION_RESPONSE_SCHEMA,
93
90
  },
94
91
  });
92
+ const PaginationCursorSchema = z.object({
93
+ id: z.string(),
94
+ exactMatch: z.number().nullable().optional(),
95
+ ter: z.number().nullable().optional(),
96
+ meteor: z.number().nullable().optional(),
97
+ });
98
+ export const PaginationCursorCodec = z.codec(z.string(), PaginationCursorSchema, {
99
+ decode: (token) => JSON.parse(Buffer.from(token, 'base64url').toString()),
100
+ encode: (cursor) => Buffer.from(JSON.stringify(cursor)).toString('base64url'),
101
+ });
95
102
  // === Get Evaluation Items ===
96
103
  const GET_EVALUATION_ITEMS_PARAMS_SCHEMA = z.object({
97
104
  evaluationId: z.uuid().describe('The unique identifier of the evaluation'),
98
105
  });
99
- const GET_EVALUATION_ITEMS_QUERY_SCHEMA = OPTIONAL_PAGINATION_CONFIG_SCHEMA.extend({
100
- 'filter-target-locale': LOCALE_SCHEMA.optional().describe('Filter by target locale (BCP-47)'),
106
+ const SORT_FIELDS = ['id', 'exactMatch', 'ter', 'meteor'];
107
+ const SORT_ENUM_VALUES = SORT_FIELDS.flatMap((field) => [field, `-${field}`]);
108
+ const GET_EVALUATION_ITEMS_QUERY_SCHEMA = z
109
+ .object({
101
110
  limit: z.coerce.number().int().min(1).max(200).optional().default(50).describe('Page size'),
111
+ before: PaginationCursorCodec.optional(),
112
+ after: PaginationCursorCodec.optional(),
113
+ sort: z
114
+ .enum(SORT_ENUM_VALUES)
115
+ .optional()
116
+ .default('id')
117
+ .transform((value) => ({
118
+ by: (value.startsWith('-') ? value.slice(1) : value),
119
+ order: value.startsWith('-') ? 'desc' : 'asc',
120
+ }))
121
+ .describe('Sort field and direction. Prefix with `-` for descending, e.g. `-ter`. Valid fields: id, exactMatch, ter, meteor'),
122
+ 'sort-config-name': z
123
+ .string()
124
+ .optional()
125
+ .describe('Configuration name whose metrics are used for sorting'),
126
+ 'filter-target-locale': LOCALE_SCHEMA.optional().describe('Filter by target locale (BCP-47)'),
127
+ })
128
+ .refine((data) => data.sort.by === 'id' || data['sort-config-name'] !== undefined, {
129
+ message: 'sort-config-name is required when sort-by is a metric field',
130
+ path: ['sort-config-name'],
131
+ })
132
+ .refine((data) => {
133
+ if (data.sort.by === 'id') {
134
+ return true;
135
+ }
136
+ return [data.after, data.before]
137
+ .filter((c) => c !== undefined)
138
+ .every((cursor) => data.sort.by in cursor);
139
+ }, { message: 'cursor must contain the sort field' });
140
+ const EVALUATION_ITEMS_RESPONSE_SCHEMA = z.object({
141
+ data: z.array(EVALUATION_ITEM_DETAIL_SCHEMA),
142
+ meta: z.object({
143
+ resultCount: z.number().describe('Number of items returned in this page'),
144
+ cursor: z
145
+ .string()
146
+ .optional()
147
+ .describe('Opaque cursor pointing at the last item on the current page. Pass as `after` or `before` to navigate to the next or previous page.'),
148
+ hasMore: z.boolean().describe('Whether there are more items to fetch'),
149
+ }),
102
150
  });
103
- export const getEvaluationItems = buildRestContract({
151
+ export const getEvaluationItems = defineApiContract({
104
152
  method: 'get',
105
153
  pathResolver: ({ evaluationId }) => `/v1/evaluations/${evaluationId}/items`,
106
154
  description: 'Retrieve evaluation items with translations and per-item metrics',
107
155
  requestPathParamsSchema: GET_EVALUATION_ITEMS_PARAMS_SCHEMA,
108
156
  requestQuerySchema: GET_EVALUATION_ITEMS_QUERY_SCHEMA,
109
157
  requestHeaderSchema: AUTH_HEADERS,
110
- successResponseBodySchema: paginatedResponseSchema(EVALUATION_ITEM_DETAIL_SCHEMA),
111
- responseSchemasByStatusCode: {
112
- 200: paginatedResponseSchema(EVALUATION_ITEM_DETAIL_SCHEMA),
158
+ responsesByStatusCode: {
159
+ 200: EVALUATION_ITEMS_RESPONSE_SCHEMA,
113
160
  },
114
161
  });
115
162
  //# 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,iCAAiC,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AACjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,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,aAAa,GAAG,iBAAiB,CAAC;IAC7C,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,yBAAyB,EAAE,iBAAiB;IAC5C,2BAA2B,EAAE;QAC3B,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,C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AAE,EAAE,EAAE,CAAC,mBAAmB,YAAY,QAAQ;IAC3E,WAAW,EAAE,kEAAkE;IAC/E,uBAAuB,EAAE,kCAAkC;IAC3D,kBAAkB,EAAE,iCAAiC;IACrD,mBAAmB,EAAE,YAAY;IACjC,qBAAqB,EAAE;QACrB,GAAG,EAAE,gCAAgC;KACtC;CACF,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokalise/ragnarok-api-contracts",
3
- "version": "2.5.0",
3
+ "version": "3.0.0",
4
4
  "author": {
5
5
  "name": "Lokalise",
6
6
  "url": "https://lokalise.com"
@@ -35,7 +35,7 @@
35
35
  "postversion": "biome check --write package.json"
36
36
  },
37
37
  "devDependencies": {
38
- "@biomejs/biome": "^2.4.10",
38
+ "@biomejs/biome": "^2.4.13",
39
39
  "@lokalise/api-common": "^6.1.2",
40
40
  "@lokalise/biome-config": "^3.1.0",
41
41
  "@lokalise/tsconfig": "^3.0.0",
@@ -46,7 +46,7 @@
46
46
  "zod": "^4.0.0"
47
47
  },
48
48
  "dependencies": {
49
- "@lokalise/api-contracts": "^6.7.0",
49
+ "@lokalise/api-contracts": "^6.9.0",
50
50
  "@lokalise/supported-languages": "^3.2.0"
51
51
  }
52
52
  }