@labeleer/api 1.0.1 → 1.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.
Files changed (60) hide show
  1. package/dist/generated/client/client.gen.d.ts +2 -0
  2. package/dist/generated/client/client.gen.js +217 -0
  3. package/{src/generated/client/index.ts → dist/generated/client/index.d.ts} +2 -19
  4. package/dist/generated/client/index.js +6 -0
  5. package/dist/generated/client/types.gen.d.ts +120 -0
  6. package/dist/generated/client/types.gen.js +2 -0
  7. package/dist/generated/client/utils.gen.d.ts +37 -0
  8. package/dist/generated/client/utils.gen.js +231 -0
  9. package/{src/generated/client.gen.ts → dist/generated/client.gen.d.ts} +3 -17
  10. package/dist/generated/client.gen.js +3 -0
  11. package/dist/generated/core/auth.gen.d.ts +25 -0
  12. package/dist/generated/core/auth.gen.js +14 -0
  13. package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
  14. package/dist/generated/core/bodySerializer.gen.js +57 -0
  15. package/dist/generated/core/params.gen.d.ts +43 -0
  16. package/dist/generated/core/params.gen.js +112 -0
  17. package/dist/generated/core/pathSerializer.gen.d.ts +33 -0
  18. package/dist/generated/core/pathSerializer.gen.js +114 -0
  19. package/dist/generated/core/queryKeySerializer.gen.d.ts +18 -0
  20. package/dist/generated/core/queryKeySerializer.gen.js +99 -0
  21. package/dist/generated/core/serverSentEvents.gen.d.ts +71 -0
  22. package/dist/generated/core/serverSentEvents.gen.js +136 -0
  23. package/dist/generated/core/types.gen.d.ts +83 -0
  24. package/dist/generated/core/types.gen.js +2 -0
  25. package/dist/generated/core/utils.gen.d.ts +19 -0
  26. package/dist/generated/core/utils.gen.js +87 -0
  27. package/dist/generated/index.d.ts +2 -0
  28. package/{src/generated/index.ts → dist/generated/index.js} +0 -1
  29. package/dist/generated/sdk.gen.d.ts +42 -0
  30. package/dist/generated/sdk.gen.js +380 -0
  31. package/dist/generated/types/index.d.ts +1413 -0
  32. package/dist/generated/types/index.js +181 -0
  33. package/dist/generated/zod.gen.d.ts +3615 -0
  34. package/dist/generated/zod.gen.js +650 -0
  35. package/dist/index.js +2 -0
  36. package/dist/wrapper.d.ts +51 -0
  37. package/dist/wrapper.js +49 -0
  38. package/package.json +5 -4
  39. package/bin/import-spec.ts +0 -18
  40. package/openapi-ts.config.ts +0 -35
  41. package/openapi.yaml +0 -2181
  42. package/pnpm-workspace.yaml +0 -3
  43. package/prettier.config.ts +0 -13
  44. package/src/generated/client/client.gen.ts +0 -300
  45. package/src/generated/client/types.gen.ts +0 -238
  46. package/src/generated/client/utils.gen.ts +0 -337
  47. package/src/generated/core/auth.gen.ts +0 -49
  48. package/src/generated/core/bodySerializer.gen.ts +0 -96
  49. package/src/generated/core/params.gen.ts +0 -188
  50. package/src/generated/core/pathSerializer.gen.ts +0 -186
  51. package/src/generated/core/queryKeySerializer.gen.ts +0 -134
  52. package/src/generated/core/serverSentEvents.gen.ts +0 -265
  53. package/src/generated/core/types.gen.ts +0 -126
  54. package/src/generated/core/utils.gen.ts +0 -146
  55. package/src/generated/sdk.gen.ts +0 -890
  56. package/src/generated/types/index.ts +0 -1611
  57. package/src/generated/zod.gen.ts +0 -733
  58. package/src/wrapper.ts +0 -73
  59. package/tsconfig.json +0 -25
  60. /package/{src/index.ts → dist/index.d.ts} +0 -0
@@ -1,733 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
-
3
- import * as z from 'zod';
4
-
5
- export const zErrorResponse = z.object({
6
- error: z.string(),
7
- details: z.string().optional(),
8
- });
9
-
10
- export const zSuccessResponse = z.object({
11
- success: z.boolean(),
12
- });
13
-
14
- export const zPermissionCategory = z.enum([
15
- 'translations',
16
- 'languages',
17
- 'collaborators',
18
- 'project',
19
- ]);
20
-
21
- export const zPermissionRole = z.enum(['viewer', 'editor']);
22
-
23
- export const zProjectPermissions = z.record(z.string(), zPermissionRole);
24
-
25
- export const zRole = z.enum(['owner', 'collaborator']);
26
-
27
- export const zProjectFeature = z.enum(['auto-translate', 'suggestions']);
28
-
29
- export const zLocale = z.enum([
30
- 'af_ZA',
31
- 'am_ET',
32
- 'ar_SA',
33
- 'ar_EG',
34
- 'ar_AE',
35
- 'ar_MA',
36
- 'ha_NG',
37
- 'ig_NG',
38
- 'om_ET',
39
- 'ps_AF',
40
- 'so_SO',
41
- 'sw_KE',
42
- 'sw_TZ',
43
- 'wo_SN',
44
- 'xh_ZA',
45
- 'yo_NG',
46
- 'yo_BJ',
47
- 'zu_ZA',
48
- 'az_AZ',
49
- 'hy_AM',
50
- 'ka_GE',
51
- 'kk_KZ',
52
- 'ky_KG',
53
- 'tk_TM',
54
- 'ug_CN',
55
- 'uz_UZ',
56
- 'ks_IN',
57
- 'ks_PK',
58
- 'be_BY',
59
- 'bg_BG',
60
- 'bs_BA',
61
- 'cs_CZ',
62
- 'hr_HR',
63
- 'lt_LT',
64
- 'lv_LV',
65
- 'mk_MK',
66
- 'pl_PL',
67
- 'ru_RU',
68
- 'sk_SK',
69
- 'sl_SI',
70
- 'sq_AL',
71
- 'sr_RS',
72
- 'sr_BA',
73
- 'sr_ME',
74
- 'uk_UA',
75
- 'ca_ES',
76
- 'cy_GB',
77
- 'da_DK',
78
- 'de_DE',
79
- 'de_AT',
80
- 'de_CH',
81
- 'el_GR',
82
- 'et_EE',
83
- 'eu_ES',
84
- 'fi_FI',
85
- 'ga_IE',
86
- 'gl_ES',
87
- 'hu_HU',
88
- 'is_IS',
89
- 'it_IT',
90
- 'it_CH',
91
- 'mt_MT',
92
- 'nl_NL',
93
- 'nl_BE',
94
- 'no_NO',
95
- 'nn_NO',
96
- 'ro_RO',
97
- 'sv_SE',
98
- 'en_US',
99
- 'en_GB',
100
- 'en_AU',
101
- 'en_CA',
102
- 'en_NZ',
103
- 'en_IN',
104
- 'en_IE',
105
- 'en_ZA',
106
- 'en_SG',
107
- 'fr_FR',
108
- 'fr_CA',
109
- 'fr_BE',
110
- 'fr_CH',
111
- 'fr_MA',
112
- 'es_ES',
113
- 'es_MX',
114
- 'es_AR',
115
- 'es_CO',
116
- 'es_CL',
117
- 'es_PE',
118
- 'es_VE',
119
- 'es_US',
120
- 'pt_PT',
121
- 'pt_BR',
122
- 'as_IN',
123
- 'bho_IN',
124
- 'bn_BD',
125
- 'bn_IN',
126
- 'dv_MV',
127
- 'fa_IR',
128
- 'fa_AF',
129
- 'gu_IN',
130
- 'he_IL',
131
- 'hi_IN',
132
- 'kn_IN',
133
- 'ku_TR',
134
- 'ku_IR',
135
- 'ku_IQ',
136
- 'ku_SY',
137
- 'mai_IN',
138
- 'ml_IN',
139
- 'mr_IN',
140
- 'ne_NP',
141
- 'pa_IN',
142
- 'pa_PK',
143
- 'sd_IN',
144
- 'sd_PK',
145
- 'si_LK',
146
- 'ta_IN',
147
- 'te_IN',
148
- 'ur_PK',
149
- 'ur_IN',
150
- 'bo_CN',
151
- 'bo_IN',
152
- 'dz_BT',
153
- 'id_ID',
154
- 'ja_JP',
155
- 'jv_ID',
156
- 'km_KH',
157
- 'ko_KR',
158
- 'lo_LA',
159
- 'mn_MN',
160
- 'ms_MY',
161
- 'ms_BN',
162
- 'my_MM',
163
- 'su_ID',
164
- 'th_TH',
165
- 'tl_PH',
166
- 'vi_VN',
167
- 'zh_CN',
168
- 'zh_TW',
169
- 'zh_HK',
170
- 'zh_SG',
171
- 'gug_PY',
172
- 'yi_US',
173
- 'yi_IL',
174
- 'yi_DE',
175
- 'tr_TR',
176
- ]);
177
-
178
- export const zTimestamp = z.iso
179
- .datetime()
180
- .regex(
181
- /^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
182
- );
183
-
184
- export const zPlurality = z.enum([
185
- 'zero',
186
- 'one',
187
- 'two',
188
- 'few',
189
- 'many',
190
- 'other',
191
- ]);
192
-
193
- export const zPagination = z.object({
194
- offset: z.number(),
195
- count: z.number(),
196
- totalCount: z.number(),
197
- });
198
-
199
- export const zUser = z.object({
200
- id: z.string(),
201
- name: z.string(),
202
- email: z.string(),
203
- thumbnail_url: z.url().optional(),
204
- });
205
-
206
- export const zCollaborator = z.object({
207
- id: z.string(),
208
- name: z.string(),
209
- email: z.string(),
210
- thumbnail_url: z.url().optional(),
211
- role: zRole,
212
- });
213
-
214
- export const zProject = z.object({
215
- id: z.string(),
216
- description: z.string().optional(),
217
- name: z.string(),
218
- created_on: zTimestamp,
219
- features: z.array(zProjectFeature),
220
- updated_on: zTimestamp.optional(),
221
- owner_user_id: z.string(),
222
- created_by: zCollaborator,
223
- users: z.array(zCollaborator),
224
- });
225
-
226
- export const zInvitationProject = z.object({
227
- id: z.string(),
228
- name: z.string(),
229
- description: z.string().optional(),
230
- });
231
-
232
- export const zInvitedBy = z.object({
233
- user_id: z.string(),
234
- name: z.string(),
235
- thumbnail_url: z.string().optional(),
236
- email: z.string(),
237
- });
238
-
239
- export const zInvitation = z.object({
240
- id: z.string(),
241
- role: zRole,
242
- invited_on: zTimestamp,
243
- project: zInvitationProject,
244
- invited_by: zInvitedBy,
245
- });
246
-
247
- export const zTranslationTags = z.array(z.string());
248
-
249
- export const zTranslationItem = z.object({
250
- key: z.string(),
251
- key_id: z.string(),
252
- translations: z.record(z.string(), z.string()),
253
- plurals: z.record(z.string(), z.record(z.string(), z.string())),
254
- comment_count: z.number(),
255
- description: z.string().optional(),
256
- tags: zTranslationTags,
257
- });
258
-
259
- export const zExtendedTranslationItem = z.object({
260
- key: z.string(),
261
- key_id: z.string(),
262
- translations: z.record(z.string(), z.string()),
263
- plurals: z.record(z.string(), z.record(z.string(), z.string())),
264
- comment_count: z.number(),
265
- description: z.string().optional(),
266
- tags: zTranslationTags,
267
- created_at: zTimestamp,
268
- updated_at: zTimestamp.optional(),
269
- created_by: z
270
- .object({
271
- id: z.string(),
272
- name: z.string(),
273
- email: z.string(),
274
- thumbnail: z.string().optional(),
275
- })
276
- .optional(),
277
- });
278
-
279
- export const zTranslationExportItem = z.object({
280
- key: z.string(),
281
- tags: zTranslationTags,
282
- description: z.string().optional(),
283
- translations: z.record(z.string(), z.string()),
284
- plurals: z.record(z.string(), z.record(z.string(), z.string())),
285
- });
286
-
287
- export const zLanguageItem = z.object({
288
- id: z.string(),
289
- locale: zLocale,
290
- is_reference: z.boolean(),
291
- });
292
-
293
- export const zComment = z.object({
294
- id: z.string(),
295
- key_id: z.string(),
296
- project_id: z.string(),
297
- created_on: zTimestamp,
298
- edited_on: zTimestamp.optional(),
299
- user: z.object({
300
- id: z.string(),
301
- name: z.string(),
302
- email: z.string(),
303
- thumbnail_url: z.string().optional(),
304
- }),
305
- content: z.string(),
306
- });
307
-
308
- export const zProjectApiKeyDetails = z.object({
309
- id: z.string(),
310
- name: z.string().optional(),
311
- start: z.string(),
312
- enabled: z.boolean(),
313
- permissions: zProjectPermissions,
314
- created_on: zTimestamp,
315
- last_request: zTimestamp.optional(),
316
- request_count: z.number(),
317
- expires_on: zTimestamp.optional(),
318
- });
319
-
320
- export const zBooleanish = z.boolean().default(false);
321
-
322
- export const zGetInvitationsResponse = z.object({
323
- data: z.array(zInvitation),
324
- });
325
-
326
- export const zCreateAccessTokenResponse = z.object({
327
- key: z.string(),
328
- details: zProjectApiKeyDetails,
329
- });
330
-
331
- export const zUpdateAccessTokenResponse = z.object({
332
- details: zProjectApiKeyDetails,
333
- });
334
-
335
- export const zUpdateProjectResponse = z.object({
336
- name: z.string().min(3).max(50),
337
- description: z.string().max(500).optional(),
338
- });
339
-
340
- export const zGetUserPermissionsResponse = z.object({
341
- data: zProjectPermissions,
342
- });
343
-
344
- export const zUpdateUserPermissionsRequestBody = z.object({
345
- permissions: z.object({
346
- translations: z.enum(['viewer', 'editor']).optional(),
347
- languages: z.enum(['viewer', 'editor']).optional(),
348
- collaborators: z.enum(['viewer', 'editor']).optional(),
349
- project: z.enum(['viewer', 'editor']).optional(),
350
- }),
351
- });
352
-
353
- export const zCreateProjectRequest = z.object({
354
- name: z.string().min(1).max(50),
355
- description: z.string().max(500).optional(),
356
- locales: z.array(zLocale).optional(),
357
- });
358
-
359
- export const zCreateProjectResponse = z.object({
360
- data: zProject,
361
- });
362
-
363
- export const zGetProjectsResponse = z.object({
364
- data: z.array(zProject),
365
- });
366
-
367
- export const zGetTranslationDataResponse = z.object({
368
- data: zExtendedTranslationItem,
369
- });
370
-
371
- export const zGetTranslationTagsRequest = z.object({
372
- projectId: z.string(),
373
- keyId: z.string(),
374
- });
375
-
376
- export const zGetTranslationTagsResponse = z.object({
377
- data: zTranslationTags,
378
- });
379
-
380
- export const zUpdateTranslationTagsRequestBody = z.object({
381
- projectId: z.string(),
382
- keyId: z.string(),
383
- tags: z.array(z.string().max(32)).min(1),
384
- });
385
-
386
- export const zUpdateTranslationTagsResponse = z.object({
387
- data: zTranslationTags,
388
- });
389
-
390
- export const zTranslationsExportRequestQuery = z.object({
391
- projectId: z.string(),
392
- format: z.enum([
393
- 'json',
394
- 'yaml',
395
- 'ts',
396
- 'po',
397
- 'android_strings',
398
- 'apple_strings',
399
- 'xliff',
400
- 'xcstrings',
401
- ]),
402
- file_name: z.string().optional(),
403
- include_tags: zBooleanish.optional(),
404
- include_untranslated: zBooleanish.optional(),
405
- include_description: zBooleanish.optional(),
406
- });
407
-
408
- export const zGetLocaleResponse = z.object({
409
- data: z.array(zLanguageItem),
410
- });
411
-
412
- export const zCreateLocaleRequestBody = z.object({
413
- projectId: z.string(),
414
- locale: zLocale,
415
- });
416
-
417
- export const zCreateLocaleResponse = z.object({
418
- data: z.array(zLanguageItem),
419
- });
420
-
421
- export const zUpdateReferenceLocaleRequestBody = z.object({
422
- projectId: z.string(),
423
- locale: zLocale,
424
- });
425
-
426
- export const zGetTranslationsResponse = z.object({
427
- data: z.array(zTranslationItem),
428
- pagination: zPagination,
429
- });
430
-
431
- export const zUpdateTranslationsRequestBody = z.object({
432
- projectId: z.string(),
433
- entries: z.record(
434
- z.string(),
435
- z.object({
436
- tags: z.array(z.string()).optional(),
437
- description: z.string().optional(),
438
- translations: z.record(z.string(), z.string()),
439
- plurals: z
440
- .record(z.string(), z.record(z.string(), z.string()))
441
- .optional(),
442
- })
443
- ),
444
- });
445
-
446
- export const zDeleteTranslationsRequestBody = z.object({
447
- projectId: z.string(),
448
- keys: z.array(z.string()).min(1),
449
- });
450
-
451
- /**
452
- * Ok
453
- */
454
- export const zGetInvitationsResponse2 = zGetInvitationsResponse;
455
-
456
- export const zRespondToInvitationBody = z.object({
457
- invitationId: z.string(),
458
- status: z.enum(['accepted', 'declined']),
459
- });
460
-
461
- /**
462
- * Resource Created
463
- */
464
- export const zRespondToInvitationResponse = zSuccessResponse;
465
-
466
- export const zRevokeAccessTokenPath = z.object({
467
- projectId: z.string(),
468
- });
469
-
470
- /**
471
- * Ok
472
- */
473
- export const zRevokeAccessTokenResponse = zSuccessResponse;
474
-
475
- export const zUpdateAccessTokenBody = z.object({
476
- permissions: z.object({
477
- translations: z.enum(['viewer', 'editor']).optional(),
478
- languages: z.enum(['viewer', 'editor']).optional(),
479
- collaborators: z.enum(['viewer', 'editor']).optional(),
480
- project: z.enum(['viewer', 'editor']).optional(),
481
- }),
482
- });
483
-
484
- export const zUpdateAccessTokenPath = z.object({
485
- projectId: z.string(),
486
- });
487
-
488
- /**
489
- * Ok
490
- */
491
- export const zUpdateAccessTokenResponse2 = zUpdateAccessTokenResponse;
492
-
493
- export const zCreateAccessTokenBody = z.object({
494
- permissions: z.object({
495
- translations: z.enum(['viewer', 'editor']).optional(),
496
- languages: z.enum(['viewer', 'editor']).optional(),
497
- collaborators: z.enum(['viewer', 'editor']).optional(),
498
- project: z.enum(['viewer', 'editor']).optional(),
499
- }),
500
- });
501
-
502
- export const zCreateAccessTokenPath = z.object({
503
- projectId: z.string(),
504
- });
505
-
506
- /**
507
- * Resource Created
508
- */
509
- export const zCreateAccessTokenResponse2 = zCreateAccessTokenResponse;
510
-
511
- export const zInviteUserToProjectBody = z.object({
512
- email: z
513
- .email()
514
- .regex(
515
- /^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/
516
- ),
517
- });
518
-
519
- export const zInviteUserToProjectPath = z.object({
520
- projectId: z.string(),
521
- });
522
-
523
- /**
524
- * Resource Created
525
- */
526
- export const zInviteUserToProjectResponse = zSuccessResponse;
527
-
528
- export const zDeleteProjectPath = z.object({
529
- projectId: z.string(),
530
- });
531
-
532
- /**
533
- * Ok
534
- */
535
- export const zDeleteProjectResponse = zSuccessResponse;
536
-
537
- export const zUpdateProjectBody = zUpdateProjectResponse;
538
-
539
- export const zUpdateProjectPath = z.object({
540
- projectId: z.string(),
541
- });
542
-
543
- /**
544
- * Ok
545
- */
546
- export const zUpdateProjectResponse2 = zSuccessResponse;
547
-
548
- export const zRemoveUserFromProjectPath = z.object({
549
- projectId: z.string(),
550
- userId: z.string(),
551
- });
552
-
553
- /**
554
- * Ok
555
- */
556
- export const zRemoveUserFromProjectResponse = zSuccessResponse;
557
-
558
- export const zGetUserProjectPermissionsPath = z.object({
559
- projectId: z.string(),
560
- userId: z.string(),
561
- });
562
-
563
- /**
564
- * Ok
565
- */
566
- export const zGetUserProjectPermissionsResponse = zGetUserPermissionsResponse;
567
-
568
- export const zUpdateUserPermissionsBody = zUpdateUserPermissionsRequestBody;
569
-
570
- export const zUpdateUserPermissionsPath = z.object({
571
- projectId: z.string(),
572
- userId: z.string(),
573
- });
574
-
575
- /**
576
- * Ok
577
- */
578
- export const zUpdateUserPermissionsResponse = zSuccessResponse;
579
-
580
- /**
581
- * Ok
582
- */
583
- export const zGetProjectsResponse2 = zGetProjectsResponse;
584
-
585
- export const zCreateProjectBody = zCreateProjectRequest;
586
-
587
- /**
588
- * Resource Created
589
- */
590
- export const zCreateProjectResponse2 = zCreateProjectResponse;
591
-
592
- export const zGenerateTranslationsQuery = z.object({
593
- project_id: z.string(),
594
- key: z.string(),
595
- from_locale: zLocale,
596
- to_locale: zLocale,
597
- });
598
-
599
- /**
600
- * Ok
601
- */
602
- export const zGenerateTranslationsResponse = z.string();
603
-
604
- export const zDeleteTranslationQuery = z.object({
605
- projectId: z.string(),
606
- keyId: z.string(),
607
- });
608
-
609
- /**
610
- * Ok
611
- */
612
- export const zDeleteTranslationResponse = zSuccessResponse;
613
-
614
- export const zGetTranslationQuery = z.object({
615
- projectId: z.string(),
616
- keyId: z.string(),
617
- });
618
-
619
- /**
620
- * Ok
621
- */
622
- export const zGetTranslationResponse = zGetTranslationDataResponse;
623
-
624
- export const zRenameTranslationKeyBody = z.object({
625
- projectId: z.string(),
626
- keyId: z.string(),
627
- newKeyName: z.string().min(4).max(512),
628
- });
629
-
630
- /**
631
- * Ok
632
- */
633
- export const zRenameTranslationKeyResponse = zSuccessResponse;
634
-
635
- export const zGetTranslationTagsQuery = z.object({
636
- projectId: z.string(),
637
- keyId: z.string(),
638
- });
639
-
640
- /**
641
- * Ok
642
- */
643
- export const zGetTranslationTagsResponse2 = zGetTranslationTagsResponse;
644
-
645
- export const zUpdateTranslationTagsBody = zUpdateTranslationTagsRequestBody;
646
-
647
- /**
648
- * Ok
649
- */
650
- export const zUpdateTranslationTagsResponse2 = zUpdateTranslationTagsResponse;
651
-
652
- export const zExportTranslationsQuery = z.object({
653
- projectId: z.string(),
654
- format: z.enum([
655
- 'json',
656
- 'yaml',
657
- 'ts',
658
- 'po',
659
- 'android_strings',
660
- 'apple_strings',
661
- 'xliff',
662
- 'xcstrings',
663
- ]),
664
- file_name: z.string().optional(),
665
- include_tags: zBooleanish.optional(),
666
- include_untranslated: zBooleanish.optional(),
667
- include_description: zBooleanish.optional(),
668
- });
669
-
670
- export const zExportTranslationsResponse = z.union([z.string(), z.void()]);
671
-
672
- export const zDeleteLocaleQuery = z.object({
673
- projectId: z.string(),
674
- locale: zLocale,
675
- });
676
-
677
- /**
678
- * Ok
679
- */
680
- export const zDeleteLocaleResponse = zSuccessResponse;
681
-
682
- export const zGetLocalesQuery = z.object({
683
- projectId: z.string(),
684
- });
685
-
686
- /**
687
- * Ok
688
- */
689
- export const zGetLocalesResponse = zGetLocaleResponse;
690
-
691
- export const zAddLocaleBody = zCreateLocaleRequestBody;
692
-
693
- /**
694
- * Resource Created
695
- */
696
- export const zAddLocaleResponse = zCreateLocaleResponse;
697
-
698
- export const zUpdateReferenceLocaleBody = zUpdateReferenceLocaleRequestBody;
699
-
700
- /**
701
- * Ok
702
- */
703
- export const zUpdateReferenceLocaleResponse = zSuccessResponse;
704
-
705
- export const zDeleteTranslationsBody = zDeleteTranslationsRequestBody;
706
-
707
- /**
708
- * Ok
709
- */
710
- export const zDeleteTranslationsResponse = zSuccessResponse;
711
-
712
- export const zGetTranslationsQuery = z.object({
713
- projectId: z.string(),
714
- limit: z.string().optional(),
715
- offset: z.string().optional(),
716
- q: z.string().optional(),
717
- tags: z.string().optional(),
718
- lang: z.string().optional(),
719
- case_sensitive: zBooleanish.optional(),
720
- untranslated_only: zBooleanish.optional(),
721
- });
722
-
723
- /**
724
- * Ok
725
- */
726
- export const zGetTranslationsResponse2 = zGetTranslationsResponse;
727
-
728
- export const zUpdateTranslationsBody = zUpdateTranslationsRequestBody;
729
-
730
- /**
731
- * Resource Created
732
- */
733
- export const zUpdateTranslationsResponse = zSuccessResponse;