@labeleer/api 1.0.0 → 1.0.1

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 (92) hide show
  1. package/bin/import-spec.ts +18 -0
  2. package/openapi-ts.config.ts +35 -0
  3. package/openapi.yaml +2181 -0
  4. package/package.json +5 -7
  5. package/pnpm-workspace.yaml +3 -0
  6. package/prettier.config.ts +13 -0
  7. package/src/generated/client/client.gen.ts +300 -0
  8. package/{dist/client/index.d.ts → src/generated/client/index.ts} +19 -2
  9. package/src/generated/client/types.gen.ts +238 -0
  10. package/src/generated/client/utils.gen.ts +337 -0
  11. package/{dist/client.gen.d.ts → src/generated/client.gen.ts} +17 -3
  12. package/src/generated/core/auth.gen.ts +49 -0
  13. package/src/generated/core/bodySerializer.gen.ts +96 -0
  14. package/src/generated/core/params.gen.ts +188 -0
  15. package/src/generated/core/pathSerializer.gen.ts +186 -0
  16. package/src/generated/core/queryKeySerializer.gen.ts +134 -0
  17. package/src/generated/core/serverSentEvents.gen.ts +265 -0
  18. package/src/generated/core/types.gen.ts +126 -0
  19. package/src/generated/core/utils.gen.ts +146 -0
  20. package/{dist/generated/index.js → src/generated/index.ts} +1 -0
  21. package/src/generated/sdk.gen.ts +890 -0
  22. package/src/generated/types/index.ts +1611 -0
  23. package/src/generated/zod.gen.ts +733 -0
  24. package/src/wrapper.ts +73 -0
  25. package/tsconfig.json +25 -0
  26. package/dist/client/client.gen.d.ts +0 -2
  27. package/dist/client/client.gen.js +0 -217
  28. package/dist/client/index.js +0 -6
  29. package/dist/client/types.gen.d.ts +0 -120
  30. package/dist/client/types.gen.js +0 -2
  31. package/dist/client/utils.gen.d.ts +0 -37
  32. package/dist/client/utils.gen.js +0 -231
  33. package/dist/client.gen.js +0 -3
  34. package/dist/core/auth.gen.d.ts +0 -25
  35. package/dist/core/auth.gen.js +0 -14
  36. package/dist/core/bodySerializer.gen.d.ts +0 -25
  37. package/dist/core/bodySerializer.gen.js +0 -57
  38. package/dist/core/params.gen.d.ts +0 -43
  39. package/dist/core/params.gen.js +0 -112
  40. package/dist/core/pathSerializer.gen.d.ts +0 -33
  41. package/dist/core/pathSerializer.gen.js +0 -114
  42. package/dist/core/queryKeySerializer.gen.d.ts +0 -18
  43. package/dist/core/queryKeySerializer.gen.js +0 -99
  44. package/dist/core/serverSentEvents.gen.d.ts +0 -71
  45. package/dist/core/serverSentEvents.gen.js +0 -136
  46. package/dist/core/types.gen.d.ts +0 -83
  47. package/dist/core/types.gen.js +0 -2
  48. package/dist/core/utils.gen.d.ts +0 -19
  49. package/dist/core/utils.gen.js +0 -87
  50. package/dist/generated/client/client.gen.d.ts +0 -2
  51. package/dist/generated/client/client.gen.js +0 -217
  52. package/dist/generated/client/index.d.ts +0 -10
  53. package/dist/generated/client/index.js +0 -6
  54. package/dist/generated/client/types.gen.d.ts +0 -120
  55. package/dist/generated/client/types.gen.js +0 -2
  56. package/dist/generated/client/utils.gen.d.ts +0 -37
  57. package/dist/generated/client/utils.gen.js +0 -231
  58. package/dist/generated/client.gen.d.ts +0 -12
  59. package/dist/generated/client.gen.js +0 -3
  60. package/dist/generated/core/auth.gen.d.ts +0 -25
  61. package/dist/generated/core/auth.gen.js +0 -14
  62. package/dist/generated/core/bodySerializer.gen.d.ts +0 -25
  63. package/dist/generated/core/bodySerializer.gen.js +0 -57
  64. package/dist/generated/core/params.gen.d.ts +0 -43
  65. package/dist/generated/core/params.gen.js +0 -112
  66. package/dist/generated/core/pathSerializer.gen.d.ts +0 -33
  67. package/dist/generated/core/pathSerializer.gen.js +0 -114
  68. package/dist/generated/core/queryKeySerializer.gen.d.ts +0 -18
  69. package/dist/generated/core/queryKeySerializer.gen.js +0 -99
  70. package/dist/generated/core/serverSentEvents.gen.d.ts +0 -71
  71. package/dist/generated/core/serverSentEvents.gen.js +0 -136
  72. package/dist/generated/core/types.gen.d.ts +0 -83
  73. package/dist/generated/core/types.gen.js +0 -2
  74. package/dist/generated/core/utils.gen.d.ts +0 -19
  75. package/dist/generated/core/utils.gen.js +0 -87
  76. package/dist/generated/index.d.ts +0 -2
  77. package/dist/generated/sdk.gen.d.ts +0 -42
  78. package/dist/generated/sdk.gen.js +0 -190
  79. package/dist/generated/types/index.d.ts +0 -1366
  80. package/dist/generated/types/index.js +0 -181
  81. package/dist/generated/zod.gen.d.ts +0 -3149
  82. package/dist/generated/zod.gen.js +0 -621
  83. package/dist/index.js +0 -2
  84. package/dist/sdk.gen.d.ts +0 -42
  85. package/dist/sdk.gen.js +0 -190
  86. package/dist/types/index.d.ts +0 -1366
  87. package/dist/types/index.js +0 -181
  88. package/dist/wrapper.d.ts +0 -51
  89. package/dist/wrapper.js +0 -49
  90. package/dist/zod.gen.d.ts +0 -3149
  91. package/dist/zod.gen.js +0 -621
  92. /package/{dist/index.d.ts → src/index.ts} +0 -0
@@ -1,1366 +0,0 @@
1
- export type ClientOptions = {
2
- baseUrl: `${string}://${string}` | (string & {});
3
- };
4
- export type ErrorResponse = {
5
- error: string;
6
- details?: string;
7
- };
8
- export type SuccessResponse = {
9
- success: boolean;
10
- };
11
- export declare const enum PermissionCategory {
12
- TRANSLATIONS = "translations",
13
- LANGUAGES = "languages",
14
- COLLABORATORS = "collaborators",
15
- PROJECT = "project"
16
- }
17
- export declare const enum PermissionRole {
18
- VIEWER = "viewer",
19
- EDITOR = "editor"
20
- }
21
- export type ProjectPermissions = {
22
- [key in PermissionCategory]?: PermissionRole;
23
- };
24
- export declare const enum Role {
25
- OWNER = "owner",
26
- COLLABORATOR = "collaborator"
27
- }
28
- export declare const enum ProjectFeature {
29
- AUTO_TRANSLATE = "auto-translate",
30
- SUGGESTIONS = "suggestions"
31
- }
32
- export declare const enum Locale {
33
- AF_ZA = "af_ZA",
34
- AM_ET = "am_ET",
35
- AR_SA = "ar_SA",
36
- AR_EG = "ar_EG",
37
- AR_AE = "ar_AE",
38
- AR_MA = "ar_MA",
39
- HA_NG = "ha_NG",
40
- IG_NG = "ig_NG",
41
- OM_ET = "om_ET",
42
- PS_AF = "ps_AF",
43
- SO_SO = "so_SO",
44
- SW_KE = "sw_KE",
45
- SW_TZ = "sw_TZ",
46
- WO_SN = "wo_SN",
47
- XH_ZA = "xh_ZA",
48
- YO_NG = "yo_NG",
49
- YO_BJ = "yo_BJ",
50
- ZU_ZA = "zu_ZA",
51
- AZ_AZ = "az_AZ",
52
- HY_AM = "hy_AM",
53
- KA_GE = "ka_GE",
54
- KK_KZ = "kk_KZ",
55
- KY_KG = "ky_KG",
56
- TK_TM = "tk_TM",
57
- UG_CN = "ug_CN",
58
- UZ_UZ = "uz_UZ",
59
- KS_IN = "ks_IN",
60
- KS_PK = "ks_PK",
61
- BE_BY = "be_BY",
62
- BG_BG = "bg_BG",
63
- BS_BA = "bs_BA",
64
- CS_CZ = "cs_CZ",
65
- HR_HR = "hr_HR",
66
- LT_LT = "lt_LT",
67
- LV_LV = "lv_LV",
68
- MK_MK = "mk_MK",
69
- PL_PL = "pl_PL",
70
- RU_RU = "ru_RU",
71
- SK_SK = "sk_SK",
72
- SL_SI = "sl_SI",
73
- SQ_AL = "sq_AL",
74
- SR_RS = "sr_RS",
75
- SR_BA = "sr_BA",
76
- SR_ME = "sr_ME",
77
- UK_UA = "uk_UA",
78
- CA_ES = "ca_ES",
79
- CY_GB = "cy_GB",
80
- DA_DK = "da_DK",
81
- DE_DE = "de_DE",
82
- DE_AT = "de_AT",
83
- DE_CH = "de_CH",
84
- EL_GR = "el_GR",
85
- ET_EE = "et_EE",
86
- EU_ES = "eu_ES",
87
- FI_FI = "fi_FI",
88
- GA_IE = "ga_IE",
89
- GL_ES = "gl_ES",
90
- HU_HU = "hu_HU",
91
- IS_IS = "is_IS",
92
- IT_IT = "it_IT",
93
- IT_CH = "it_CH",
94
- MT_MT = "mt_MT",
95
- NL_NL = "nl_NL",
96
- NL_BE = "nl_BE",
97
- NO_NO = "no_NO",
98
- NN_NO = "nn_NO",
99
- RO_RO = "ro_RO",
100
- SV_SE = "sv_SE",
101
- EN_US = "en_US",
102
- EN_GB = "en_GB",
103
- EN_AU = "en_AU",
104
- EN_CA = "en_CA",
105
- EN_NZ = "en_NZ",
106
- EN_IN = "en_IN",
107
- EN_IE = "en_IE",
108
- EN_ZA = "en_ZA",
109
- EN_SG = "en_SG",
110
- FR_FR = "fr_FR",
111
- FR_CA = "fr_CA",
112
- FR_BE = "fr_BE",
113
- FR_CH = "fr_CH",
114
- FR_MA = "fr_MA",
115
- ES_ES = "es_ES",
116
- ES_MX = "es_MX",
117
- ES_AR = "es_AR",
118
- ES_CO = "es_CO",
119
- ES_CL = "es_CL",
120
- ES_PE = "es_PE",
121
- ES_VE = "es_VE",
122
- ES_US = "es_US",
123
- PT_PT = "pt_PT",
124
- PT_BR = "pt_BR",
125
- AS_IN = "as_IN",
126
- BHO_IN = "bho_IN",
127
- BN_BD = "bn_BD",
128
- BN_IN = "bn_IN",
129
- DV_MV = "dv_MV",
130
- FA_IR = "fa_IR",
131
- FA_AF = "fa_AF",
132
- GU_IN = "gu_IN",
133
- HE_IL = "he_IL",
134
- HI_IN = "hi_IN",
135
- KN_IN = "kn_IN",
136
- KU_TR = "ku_TR",
137
- KU_IR = "ku_IR",
138
- KU_IQ = "ku_IQ",
139
- KU_SY = "ku_SY",
140
- MAI_IN = "mai_IN",
141
- ML_IN = "ml_IN",
142
- MR_IN = "mr_IN",
143
- NE_NP = "ne_NP",
144
- PA_IN = "pa_IN",
145
- PA_PK = "pa_PK",
146
- SD_IN = "sd_IN",
147
- SD_PK = "sd_PK",
148
- SI_LK = "si_LK",
149
- TA_IN = "ta_IN",
150
- TE_IN = "te_IN",
151
- UR_PK = "ur_PK",
152
- UR_IN = "ur_IN",
153
- BO_CN = "bo_CN",
154
- BO_IN = "bo_IN",
155
- DZ_BT = "dz_BT",
156
- ID_ID = "id_ID",
157
- JA_JP = "ja_JP",
158
- JV_ID = "jv_ID",
159
- KM_KH = "km_KH",
160
- KO_KR = "ko_KR",
161
- LO_LA = "lo_LA",
162
- MN_MN = "mn_MN",
163
- MS_MY = "ms_MY",
164
- MS_BN = "ms_BN",
165
- MY_MM = "my_MM",
166
- SU_ID = "su_ID",
167
- TH_TH = "th_TH",
168
- TL_PH = "tl_PH",
169
- VI_VN = "vi_VN",
170
- ZH_CN = "zh_CN",
171
- ZH_TW = "zh_TW",
172
- ZH_HK = "zh_HK",
173
- ZH_SG = "zh_SG",
174
- GUG_PY = "gug_PY",
175
- YI_US = "yi_US",
176
- YI_IL = "yi_IL",
177
- YI_DE = "yi_DE",
178
- TR_TR = "tr_TR"
179
- }
180
- export type Timestamp = string;
181
- export declare const enum Plurality {
182
- ZERO = "zero",
183
- ONE = "one",
184
- TWO = "two",
185
- FEW = "few",
186
- MANY = "many",
187
- OTHER = "other"
188
- }
189
- export type Pagination = {
190
- offset: number;
191
- count: number;
192
- totalCount: number;
193
- };
194
- export type User = {
195
- id: string;
196
- name: string;
197
- email: string;
198
- thumbnail_url?: string;
199
- };
200
- export type Collaborator = {
201
- id: string;
202
- name: string;
203
- email: string;
204
- thumbnail_url?: string;
205
- role: Role;
206
- };
207
- export type Project = {
208
- id: string;
209
- description?: string;
210
- name: string;
211
- created_on: Timestamp;
212
- features: Array<ProjectFeature>;
213
- updated_on?: Timestamp;
214
- owner_user_id: string;
215
- created_by: Collaborator;
216
- users: Array<Collaborator>;
217
- };
218
- export type InvitationProject = {
219
- id: string;
220
- name: string;
221
- description?: string;
222
- };
223
- export type InvitedBy = {
224
- user_id: string;
225
- name: string;
226
- thumbnail_url?: string;
227
- email: string;
228
- };
229
- export type Invitation = {
230
- id: string;
231
- role: Role;
232
- invited_on: Timestamp;
233
- project: InvitationProject;
234
- invited_by: InvitedBy;
235
- };
236
- export type TranslationTags = Array<string>;
237
- export type TranslationItem = {
238
- key: string;
239
- key_id: string;
240
- translations: {
241
- [key in Locale]?: string;
242
- };
243
- plurals: {
244
- [key in Locale]?: {
245
- [key in Plurality]?: string;
246
- };
247
- };
248
- comment_count: number;
249
- description?: string;
250
- tags: TranslationTags;
251
- };
252
- export type ExtendedTranslationItem = {
253
- key: string;
254
- key_id: string;
255
- translations: {
256
- [key in Locale]?: string;
257
- };
258
- plurals: {
259
- [key in Locale]?: {
260
- [key in Plurality]?: string;
261
- };
262
- };
263
- comment_count: number;
264
- description?: string;
265
- tags: TranslationTags;
266
- created_at: Timestamp;
267
- updated_at?: Timestamp;
268
- created_by?: {
269
- id: string;
270
- name: string;
271
- email: string;
272
- thumbnail?: string;
273
- };
274
- };
275
- export type TranslationExportItem = {
276
- key: string;
277
- tags: TranslationTags;
278
- description?: string;
279
- translations: {
280
- [key in Locale]?: string;
281
- };
282
- plurals: {
283
- [key in Locale]?: {
284
- [key in Plurality]?: string;
285
- };
286
- };
287
- };
288
- export type LanguageItem = {
289
- id: string;
290
- locale: Locale;
291
- is_reference: boolean;
292
- };
293
- export type Comment = {
294
- id: string;
295
- key_id: string;
296
- project_id: string;
297
- created_on: Timestamp;
298
- edited_on?: Timestamp;
299
- user: {
300
- id: string;
301
- name: string;
302
- email: string;
303
- thumbnail_url?: string;
304
- };
305
- content: string;
306
- };
307
- export type ProjectApiKeyDetails = {
308
- id: string;
309
- name?: string;
310
- start: string;
311
- enabled: boolean;
312
- permissions: ProjectPermissions;
313
- created_on: Timestamp;
314
- last_request?: Timestamp;
315
- request_count: number;
316
- expires_on?: Timestamp;
317
- };
318
- export type Booleanish = boolean;
319
- export type GetInvitationsResponse = {
320
- data: Array<Invitation>;
321
- };
322
- export type CreateAccessTokenResponse = {
323
- key: string;
324
- details: ProjectApiKeyDetails;
325
- };
326
- export type UpdateAccessTokenResponse = {
327
- details: ProjectApiKeyDetails;
328
- };
329
- export type UpdateProjectResponse = {
330
- name: string;
331
- description?: string;
332
- };
333
- export type GetUserPermissionsResponse = {
334
- data: ProjectPermissions;
335
- };
336
- export type UpdateUserPermissionsRequestBody = {
337
- permissions: {
338
- translations?: 'viewer' | 'editor';
339
- languages?: 'viewer' | 'editor';
340
- collaborators?: 'viewer' | 'editor';
341
- project?: 'viewer' | 'editor';
342
- };
343
- };
344
- export type CreateProjectRequest = {
345
- name: string;
346
- description?: string;
347
- locales?: Array<Locale>;
348
- };
349
- export type CreateProjectResponse = {
350
- data: Project;
351
- };
352
- export type GetProjectsResponse = {
353
- data: Array<Project>;
354
- };
355
- export type GetTranslationDataResponse = {
356
- data: ExtendedTranslationItem;
357
- };
358
- export type GetTranslationTagsRequest = {
359
- projectId: string;
360
- keyId: string;
361
- };
362
- export type GetTranslationTagsResponse = {
363
- data: TranslationTags;
364
- };
365
- export type UpdateTranslationTagsRequestBody = {
366
- projectId: string;
367
- keyId: string;
368
- tags: Array<string>;
369
- };
370
- export type UpdateTranslationTagsResponse = {
371
- data: TranslationTags;
372
- };
373
- export type TranslationsExportRequestQuery = {
374
- projectId: string;
375
- format: 'json' | 'yaml' | 'ts' | 'po' | 'android_strings' | 'apple_strings' | 'xliff' | 'xcstrings';
376
- file_name?: string;
377
- include_tags?: Booleanish;
378
- include_untranslated?: Booleanish;
379
- include_description?: Booleanish;
380
- };
381
- export type GetLocaleResponse = {
382
- data: Array<LanguageItem>;
383
- };
384
- export type CreateLocaleRequestBody = {
385
- projectId: string;
386
- locale: Locale;
387
- };
388
- export type CreateLocaleResponse = {
389
- data: Array<LanguageItem>;
390
- };
391
- export type UpdateReferenceLocaleRequestBody = {
392
- projectId: string;
393
- locale: Locale;
394
- };
395
- export type GetTranslationsResponse = {
396
- data: Array<TranslationItem>;
397
- pagination: Pagination;
398
- };
399
- export type UpdateTranslationsRequestBody = {
400
- projectId: string;
401
- entries: {
402
- [key: string]: {
403
- tags?: Array<string>;
404
- description?: string;
405
- translations: {
406
- [key in Locale]?: string;
407
- };
408
- plurals?: {
409
- [key in Locale]?: {
410
- [key in Plurality]?: string;
411
- };
412
- };
413
- };
414
- };
415
- };
416
- export type DeleteTranslationsRequestBody = {
417
- projectId: string;
418
- keys: Array<string>;
419
- };
420
- export type GetInvitationsData = {
421
- body?: never;
422
- path?: never;
423
- query?: never;
424
- url: '/api/invitations';
425
- };
426
- export type GetInvitationsErrors = {
427
- /**
428
- * Unauthorized
429
- */
430
- 401: ErrorResponse;
431
- /**
432
- * Internal Server Error
433
- */
434
- 500: ErrorResponse;
435
- };
436
- export type GetInvitationsError = GetInvitationsErrors[keyof GetInvitationsErrors];
437
- export type GetInvitationsResponses = {
438
- /**
439
- * Ok
440
- */
441
- 200: GetInvitationsResponse;
442
- };
443
- export type GetInvitationsResponse2 = GetInvitationsResponses[keyof GetInvitationsResponses];
444
- export type RespondToInvitationData = {
445
- body: {
446
- invitationId: string;
447
- status: 'accepted' | 'declined';
448
- };
449
- path?: never;
450
- query?: never;
451
- url: '/api/invitations';
452
- };
453
- export type RespondToInvitationErrors = {
454
- /**
455
- * Bad Request
456
- */
457
- 400: ErrorResponse;
458
- /**
459
- * Unauthorized
460
- */
461
- 401: ErrorResponse;
462
- /**
463
- * Forbidden
464
- */
465
- 403: ErrorResponse;
466
- /**
467
- * Internal Server Error
468
- */
469
- 500: ErrorResponse;
470
- };
471
- export type RespondToInvitationError = RespondToInvitationErrors[keyof RespondToInvitationErrors];
472
- export type RespondToInvitationResponses = {
473
- /**
474
- * Resource Created
475
- */
476
- 201: SuccessResponse;
477
- };
478
- export type RespondToInvitationResponse = RespondToInvitationResponses[keyof RespondToInvitationResponses];
479
- export type RevokeAccessTokenData = {
480
- body?: never;
481
- path: {
482
- projectId: string;
483
- };
484
- query?: never;
485
- url: '/api/project/{projectId}/access-token';
486
- };
487
- export type RevokeAccessTokenErrors = {
488
- /**
489
- * Bad Request
490
- */
491
- 400: ErrorResponse;
492
- /**
493
- * Unauthorized
494
- */
495
- 401: ErrorResponse;
496
- /**
497
- * Forbidden
498
- */
499
- 403: ErrorResponse;
500
- /**
501
- * Internal Server Error
502
- */
503
- 500: ErrorResponse;
504
- };
505
- export type RevokeAccessTokenError = RevokeAccessTokenErrors[keyof RevokeAccessTokenErrors];
506
- export type RevokeAccessTokenResponses = {
507
- /**
508
- * Ok
509
- */
510
- 200: SuccessResponse;
511
- };
512
- export type RevokeAccessTokenResponse = RevokeAccessTokenResponses[keyof RevokeAccessTokenResponses];
513
- export type UpdateAccessTokenData = {
514
- body: {
515
- permissions: {
516
- translations?: 'viewer' | 'editor';
517
- languages?: 'viewer' | 'editor';
518
- collaborators?: 'viewer' | 'editor';
519
- project?: 'viewer' | 'editor';
520
- };
521
- };
522
- path: {
523
- projectId: string;
524
- };
525
- query?: never;
526
- url: '/api/project/{projectId}/access-token';
527
- };
528
- export type UpdateAccessTokenErrors = {
529
- /**
530
- * Bad Request
531
- */
532
- 400: ErrorResponse;
533
- /**
534
- * Unauthorized
535
- */
536
- 401: ErrorResponse;
537
- /**
538
- * Forbidden
539
- */
540
- 403: ErrorResponse;
541
- /**
542
- * Not Found
543
- */
544
- 404: ErrorResponse;
545
- /**
546
- * Internal Server Error
547
- */
548
- 500: ErrorResponse;
549
- };
550
- export type UpdateAccessTokenError = UpdateAccessTokenErrors[keyof UpdateAccessTokenErrors];
551
- export type UpdateAccessTokenResponses = {
552
- /**
553
- * Ok
554
- */
555
- 200: UpdateAccessTokenResponse;
556
- };
557
- export type UpdateAccessTokenResponse2 = UpdateAccessTokenResponses[keyof UpdateAccessTokenResponses];
558
- export type CreateAccessTokenData = {
559
- body: {
560
- permissions: {
561
- translations?: 'viewer' | 'editor';
562
- languages?: 'viewer' | 'editor';
563
- collaborators?: 'viewer' | 'editor';
564
- project?: 'viewer' | 'editor';
565
- };
566
- };
567
- path: {
568
- projectId: string;
569
- };
570
- query?: never;
571
- url: '/api/project/{projectId}/access-token';
572
- };
573
- export type CreateAccessTokenErrors = {
574
- /**
575
- * Bad Request
576
- */
577
- 400: ErrorResponse;
578
- /**
579
- * Unauthorized
580
- */
581
- 401: ErrorResponse;
582
- /**
583
- * Forbidden
584
- */
585
- 403: ErrorResponse;
586
- /**
587
- * Internal Server Error
588
- */
589
- 500: ErrorResponse;
590
- };
591
- export type CreateAccessTokenError = CreateAccessTokenErrors[keyof CreateAccessTokenErrors];
592
- export type CreateAccessTokenResponses = {
593
- /**
594
- * Resource Created
595
- */
596
- 201: CreateAccessTokenResponse;
597
- };
598
- export type CreateAccessTokenResponse2 = CreateAccessTokenResponses[keyof CreateAccessTokenResponses];
599
- export type InviteUserToProjectData = {
600
- body: {
601
- email: string;
602
- };
603
- path: {
604
- projectId: string;
605
- };
606
- query?: never;
607
- url: '/api/project/{projectId}/invite';
608
- };
609
- export type InviteUserToProjectErrors = {
610
- /**
611
- * Bad Request
612
- */
613
- 400: ErrorResponse;
614
- /**
615
- * Unauthorized
616
- */
617
- 401: ErrorResponse;
618
- /**
619
- * Forbidden
620
- */
621
- 403: ErrorResponse;
622
- /**
623
- * Internal Server Error
624
- */
625
- 500: ErrorResponse;
626
- };
627
- export type InviteUserToProjectError = InviteUserToProjectErrors[keyof InviteUserToProjectErrors];
628
- export type InviteUserToProjectResponses = {
629
- /**
630
- * Resource Created
631
- */
632
- 201: SuccessResponse;
633
- };
634
- export type InviteUserToProjectResponse = InviteUserToProjectResponses[keyof InviteUserToProjectResponses];
635
- export type DeleteProjectData = {
636
- body?: never;
637
- path: {
638
- projectId: string;
639
- };
640
- query?: never;
641
- url: '/api/project/{projectId}';
642
- };
643
- export type DeleteProjectErrors = {
644
- /**
645
- * Bad Request
646
- */
647
- 400: ErrorResponse;
648
- /**
649
- * Unauthorized
650
- */
651
- 401: ErrorResponse;
652
- /**
653
- * Forbidden
654
- */
655
- 403: ErrorResponse;
656
- /**
657
- * Internal Server Error
658
- */
659
- 500: ErrorResponse;
660
- };
661
- export type DeleteProjectError = DeleteProjectErrors[keyof DeleteProjectErrors];
662
- export type DeleteProjectResponses = {
663
- /**
664
- * Ok
665
- */
666
- 200: SuccessResponse;
667
- };
668
- export type DeleteProjectResponse = DeleteProjectResponses[keyof DeleteProjectResponses];
669
- export type UpdateProjectData = {
670
- body: UpdateProjectResponse;
671
- path: {
672
- projectId: string;
673
- };
674
- query?: never;
675
- url: '/api/project/{projectId}';
676
- };
677
- export type UpdateProjectErrors = {
678
- /**
679
- * Bad Request
680
- */
681
- 400: ErrorResponse;
682
- /**
683
- * Unauthorized
684
- */
685
- 401: ErrorResponse;
686
- /**
687
- * Forbidden
688
- */
689
- 403: ErrorResponse;
690
- /**
691
- * Internal Server Error
692
- */
693
- 500: ErrorResponse;
694
- };
695
- export type UpdateProjectError = UpdateProjectErrors[keyof UpdateProjectErrors];
696
- export type UpdateProjectResponses = {
697
- /**
698
- * Ok
699
- */
700
- 200: SuccessResponse;
701
- };
702
- export type UpdateProjectResponse2 = UpdateProjectResponses[keyof UpdateProjectResponses];
703
- export type RemoveUserFromProjectData = {
704
- body?: never;
705
- path: {
706
- projectId: string;
707
- userId: string;
708
- };
709
- query?: never;
710
- url: '/api/project/{projectId}/users/{userId}';
711
- };
712
- export type RemoveUserFromProjectErrors = {
713
- /**
714
- * Bad Request
715
- */
716
- 400: ErrorResponse;
717
- /**
718
- * Unauthorized
719
- */
720
- 401: ErrorResponse;
721
- /**
722
- * Forbidden
723
- */
724
- 403: ErrorResponse;
725
- /**
726
- * Internal Server Error
727
- */
728
- 500: ErrorResponse;
729
- };
730
- export type RemoveUserFromProjectError = RemoveUserFromProjectErrors[keyof RemoveUserFromProjectErrors];
731
- export type RemoveUserFromProjectResponses = {
732
- /**
733
- * Ok
734
- */
735
- 200: SuccessResponse;
736
- };
737
- export type RemoveUserFromProjectResponse = RemoveUserFromProjectResponses[keyof RemoveUserFromProjectResponses];
738
- export type GetUserProjectPermissionsData = {
739
- body?: never;
740
- path: {
741
- projectId: string;
742
- userId: string;
743
- };
744
- query?: never;
745
- url: '/api/project/{projectId}/users/{userId}';
746
- };
747
- export type GetUserProjectPermissionsErrors = {
748
- /**
749
- * Bad Request
750
- */
751
- 400: ErrorResponse;
752
- /**
753
- * Unauthorized
754
- */
755
- 401: ErrorResponse;
756
- /**
757
- * Forbidden
758
- */
759
- 403: ErrorResponse;
760
- /**
761
- * Internal Server Error
762
- */
763
- 500: ErrorResponse;
764
- };
765
- export type GetUserProjectPermissionsError = GetUserProjectPermissionsErrors[keyof GetUserProjectPermissionsErrors];
766
- export type GetUserProjectPermissionsResponses = {
767
- /**
768
- * Ok
769
- */
770
- 200: GetUserPermissionsResponse;
771
- };
772
- export type GetUserProjectPermissionsResponse = GetUserProjectPermissionsResponses[keyof GetUserProjectPermissionsResponses];
773
- export type UpdateUserPermissionsData = {
774
- body: UpdateUserPermissionsRequestBody;
775
- path: {
776
- projectId: string;
777
- userId: string;
778
- };
779
- query?: never;
780
- url: '/api/project/{projectId}/users/{userId}';
781
- };
782
- export type UpdateUserPermissionsErrors = {
783
- /**
784
- * Bad Request
785
- */
786
- 400: ErrorResponse;
787
- /**
788
- * Unauthorized
789
- */
790
- 401: ErrorResponse;
791
- /**
792
- * Forbidden
793
- */
794
- 403: ErrorResponse;
795
- /**
796
- * Internal Server Error
797
- */
798
- 500: ErrorResponse;
799
- };
800
- export type UpdateUserPermissionsError = UpdateUserPermissionsErrors[keyof UpdateUserPermissionsErrors];
801
- export type UpdateUserPermissionsResponses = {
802
- /**
803
- * Ok
804
- */
805
- 200: SuccessResponse;
806
- };
807
- export type UpdateUserPermissionsResponse = UpdateUserPermissionsResponses[keyof UpdateUserPermissionsResponses];
808
- export type GetProjectsData = {
809
- body?: never;
810
- path?: never;
811
- query?: never;
812
- url: '/api/project';
813
- };
814
- export type GetProjectsErrors = {
815
- /**
816
- * Unauthorized
817
- */
818
- 401: ErrorResponse;
819
- /**
820
- * Forbidden
821
- */
822
- 403: ErrorResponse;
823
- /**
824
- * Internal Server Error
825
- */
826
- 500: ErrorResponse;
827
- };
828
- export type GetProjectsError = GetProjectsErrors[keyof GetProjectsErrors];
829
- export type GetProjectsResponses = {
830
- /**
831
- * Ok
832
- */
833
- 200: GetProjectsResponse;
834
- };
835
- export type GetProjectsResponse2 = GetProjectsResponses[keyof GetProjectsResponses];
836
- export type CreateProjectData = {
837
- body: CreateProjectRequest;
838
- path?: never;
839
- query?: never;
840
- url: '/api/project';
841
- };
842
- export type CreateProjectErrors = {
843
- /**
844
- * Bad Request
845
- */
846
- 400: ErrorResponse;
847
- /**
848
- * Unauthorized
849
- */
850
- 401: ErrorResponse;
851
- /**
852
- * Forbidden
853
- */
854
- 403: ErrorResponse;
855
- /**
856
- * Internal Server Error
857
- */
858
- 500: ErrorResponse;
859
- };
860
- export type CreateProjectError = CreateProjectErrors[keyof CreateProjectErrors];
861
- export type CreateProjectResponses = {
862
- /**
863
- * Resource Created
864
- */
865
- 201: CreateProjectResponse;
866
- };
867
- export type CreateProjectResponse2 = CreateProjectResponses[keyof CreateProjectResponses];
868
- export type GenerateTranslationsData = {
869
- body?: never;
870
- path?: never;
871
- query: {
872
- project_id: string;
873
- key: string;
874
- from_locale: Locale;
875
- to_locale: Locale;
876
- };
877
- url: '/api/translation/generate';
878
- };
879
- export type GenerateTranslationsErrors = {
880
- /**
881
- * Bad Request
882
- */
883
- 400: ErrorResponse;
884
- /**
885
- * Unauthorized
886
- */
887
- 401: ErrorResponse;
888
- /**
889
- * Forbidden
890
- */
891
- 403: ErrorResponse;
892
- /**
893
- * Not Found
894
- */
895
- 404: ErrorResponse;
896
- /**
897
- * Internal Server Error
898
- */
899
- 500: ErrorResponse;
900
- };
901
- export type GenerateTranslationsError = GenerateTranslationsErrors[keyof GenerateTranslationsErrors];
902
- export type GenerateTranslationsResponses = {
903
- /**
904
- * Ok
905
- */
906
- 200: string;
907
- };
908
- export type GenerateTranslationsResponse = GenerateTranslationsResponses[keyof GenerateTranslationsResponses];
909
- export type DeleteTranslationData = {
910
- body?: never;
911
- path?: never;
912
- query: {
913
- projectId: string;
914
- keyId: string;
915
- };
916
- url: '/api/translation';
917
- };
918
- export type DeleteTranslationErrors = {
919
- /**
920
- * Bad Request
921
- */
922
- 400: ErrorResponse;
923
- /**
924
- * Unauthorized
925
- */
926
- 401: ErrorResponse;
927
- /**
928
- * Forbidden
929
- */
930
- 403: ErrorResponse;
931
- /**
932
- * Internal Server Error
933
- */
934
- 500: ErrorResponse;
935
- };
936
- export type DeleteTranslationError = DeleteTranslationErrors[keyof DeleteTranslationErrors];
937
- export type DeleteTranslationResponses = {
938
- /**
939
- * Ok
940
- */
941
- 200: SuccessResponse;
942
- };
943
- export type DeleteTranslationResponse = DeleteTranslationResponses[keyof DeleteTranslationResponses];
944
- export type GetTranslationData = {
945
- body?: never;
946
- path?: never;
947
- query: {
948
- projectId: string;
949
- keyId: string;
950
- };
951
- url: '/api/translation';
952
- };
953
- export type GetTranslationErrors = {
954
- /**
955
- * Bad Request
956
- */
957
- 400: ErrorResponse;
958
- /**
959
- * Unauthorized
960
- */
961
- 401: ErrorResponse;
962
- /**
963
- * Forbidden
964
- */
965
- 403: ErrorResponse;
966
- /**
967
- * Not Found
968
- */
969
- 404: ErrorResponse;
970
- /**
971
- * Internal Server Error
972
- */
973
- 500: ErrorResponse;
974
- };
975
- export type GetTranslationError = GetTranslationErrors[keyof GetTranslationErrors];
976
- export type GetTranslationResponses = {
977
- /**
978
- * Ok
979
- */
980
- 200: GetTranslationDataResponse;
981
- };
982
- export type GetTranslationResponse = GetTranslationResponses[keyof GetTranslationResponses];
983
- export type RenameTranslationKeyData = {
984
- body: {
985
- projectId: string;
986
- keyId: string;
987
- newKeyName: string;
988
- };
989
- path?: never;
990
- query?: never;
991
- url: '/api/translation';
992
- };
993
- export type RenameTranslationKeyErrors = {
994
- /**
995
- * Bad Request
996
- */
997
- 400: ErrorResponse;
998
- /**
999
- * Unauthorized
1000
- */
1001
- 401: ErrorResponse;
1002
- /**
1003
- * Forbidden
1004
- */
1005
- 403: ErrorResponse;
1006
- /**
1007
- * Internal Server Error
1008
- */
1009
- 500: ErrorResponse;
1010
- };
1011
- export type RenameTranslationKeyError = RenameTranslationKeyErrors[keyof RenameTranslationKeyErrors];
1012
- export type RenameTranslationKeyResponses = {
1013
- /**
1014
- * Ok
1015
- */
1016
- 200: SuccessResponse;
1017
- };
1018
- export type RenameTranslationKeyResponse = RenameTranslationKeyResponses[keyof RenameTranslationKeyResponses];
1019
- export type GetTranslationTagsData = {
1020
- body?: never;
1021
- path?: never;
1022
- query: {
1023
- projectId: string;
1024
- keyId: string;
1025
- };
1026
- url: '/api/translation/tags';
1027
- };
1028
- export type GetTranslationTagsErrors = {
1029
- /**
1030
- * Bad Request
1031
- */
1032
- 400: ErrorResponse;
1033
- /**
1034
- * Unauthorized
1035
- */
1036
- 401: ErrorResponse;
1037
- /**
1038
- * Forbidden
1039
- */
1040
- 403: ErrorResponse;
1041
- /**
1042
- * Internal Server Error
1043
- */
1044
- 500: ErrorResponse;
1045
- };
1046
- export type GetTranslationTagsError = GetTranslationTagsErrors[keyof GetTranslationTagsErrors];
1047
- export type GetTranslationTagsResponses = {
1048
- /**
1049
- * Ok
1050
- */
1051
- 200: GetTranslationTagsResponse;
1052
- };
1053
- export type GetTranslationTagsResponse2 = GetTranslationTagsResponses[keyof GetTranslationTagsResponses];
1054
- export type UpdateTranslationTagsData = {
1055
- body: UpdateTranslationTagsRequestBody;
1056
- path?: never;
1057
- query?: never;
1058
- url: '/api/translation/tags';
1059
- };
1060
- export type UpdateTranslationTagsErrors = {
1061
- /**
1062
- * Bad Request
1063
- */
1064
- 400: ErrorResponse;
1065
- /**
1066
- * Unauthorized
1067
- */
1068
- 401: ErrorResponse;
1069
- /**
1070
- * Forbidden
1071
- */
1072
- 403: ErrorResponse;
1073
- /**
1074
- * Internal Server Error
1075
- */
1076
- 500: ErrorResponse;
1077
- };
1078
- export type UpdateTranslationTagsError = UpdateTranslationTagsErrors[keyof UpdateTranslationTagsErrors];
1079
- export type UpdateTranslationTagsResponses = {
1080
- /**
1081
- * Ok
1082
- */
1083
- 200: UpdateTranslationTagsResponse;
1084
- };
1085
- export type UpdateTranslationTagsResponse2 = UpdateTranslationTagsResponses[keyof UpdateTranslationTagsResponses];
1086
- export type ExportTranslationsData = {
1087
- body?: never;
1088
- path?: never;
1089
- query: {
1090
- projectId: string;
1091
- format: 'json' | 'yaml' | 'ts' | 'po' | 'android_strings' | 'apple_strings' | 'xliff' | 'xcstrings';
1092
- file_name?: string;
1093
- include_tags?: Booleanish;
1094
- include_untranslated?: Booleanish;
1095
- include_description?: Booleanish;
1096
- };
1097
- url: '/api/translations/export';
1098
- };
1099
- export type ExportTranslationsErrors = {
1100
- /**
1101
- * Bad Request
1102
- */
1103
- 400: ErrorResponse;
1104
- /**
1105
- * Unauthorized
1106
- */
1107
- 401: ErrorResponse;
1108
- /**
1109
- * Forbidden
1110
- */
1111
- 403: ErrorResponse;
1112
- /**
1113
- * Internal Server Error
1114
- */
1115
- 500: ErrorResponse;
1116
- };
1117
- export type ExportTranslationsError = ExportTranslationsErrors[keyof ExportTranslationsErrors];
1118
- export type ExportTranslationsResponses = {
1119
- /**
1120
- * Ok
1121
- */
1122
- 200: string;
1123
- /**
1124
- * No Content
1125
- */
1126
- 204: void;
1127
- };
1128
- export type ExportTranslationsResponse = ExportTranslationsResponses[keyof ExportTranslationsResponses];
1129
- export type DeleteLocaleData = {
1130
- body?: never;
1131
- path?: never;
1132
- query: {
1133
- projectId: string;
1134
- locale: Locale;
1135
- };
1136
- url: '/api/translations/locales';
1137
- };
1138
- export type DeleteLocaleErrors = {
1139
- /**
1140
- * Bad Request
1141
- */
1142
- 400: ErrorResponse;
1143
- /**
1144
- * Unauthorized
1145
- */
1146
- 401: ErrorResponse;
1147
- /**
1148
- * Forbidden
1149
- */
1150
- 403: ErrorResponse;
1151
- /**
1152
- * Internal Server Error
1153
- */
1154
- 500: ErrorResponse;
1155
- };
1156
- export type DeleteLocaleError = DeleteLocaleErrors[keyof DeleteLocaleErrors];
1157
- export type DeleteLocaleResponses = {
1158
- /**
1159
- * Ok
1160
- */
1161
- 200: SuccessResponse;
1162
- };
1163
- export type DeleteLocaleResponse = DeleteLocaleResponses[keyof DeleteLocaleResponses];
1164
- export type GetLocalesData = {
1165
- body?: never;
1166
- path?: never;
1167
- query: {
1168
- projectId: string;
1169
- };
1170
- url: '/api/translations/locales';
1171
- };
1172
- export type GetLocalesErrors = {
1173
- /**
1174
- * Bad Request
1175
- */
1176
- 400: ErrorResponse;
1177
- /**
1178
- * Unauthorized
1179
- */
1180
- 401: ErrorResponse;
1181
- /**
1182
- * Forbidden
1183
- */
1184
- 403: ErrorResponse;
1185
- /**
1186
- * Internal Server Error
1187
- */
1188
- 500: ErrorResponse;
1189
- };
1190
- export type GetLocalesError = GetLocalesErrors[keyof GetLocalesErrors];
1191
- export type GetLocalesResponses = {
1192
- /**
1193
- * Ok
1194
- */
1195
- 200: GetLocaleResponse;
1196
- };
1197
- export type GetLocalesResponse = GetLocalesResponses[keyof GetLocalesResponses];
1198
- export type AddLocaleData = {
1199
- body: CreateLocaleRequestBody;
1200
- path?: never;
1201
- query?: never;
1202
- url: '/api/translations/locales';
1203
- };
1204
- export type AddLocaleErrors = {
1205
- /**
1206
- * Bad Request
1207
- */
1208
- 400: ErrorResponse;
1209
- /**
1210
- * Unauthorized
1211
- */
1212
- 401: ErrorResponse;
1213
- /**
1214
- * Forbidden
1215
- */
1216
- 403: ErrorResponse;
1217
- /**
1218
- * Internal Server Error
1219
- */
1220
- 500: ErrorResponse;
1221
- };
1222
- export type AddLocaleError = AddLocaleErrors[keyof AddLocaleErrors];
1223
- export type AddLocaleResponses = {
1224
- /**
1225
- * Resource Created
1226
- */
1227
- 201: CreateLocaleResponse;
1228
- };
1229
- export type AddLocaleResponse = AddLocaleResponses[keyof AddLocaleResponses];
1230
- export type UpdateReferenceLocaleData = {
1231
- body: UpdateReferenceLocaleRequestBody;
1232
- path?: never;
1233
- query?: never;
1234
- url: '/api/translations/locales';
1235
- };
1236
- export type UpdateReferenceLocaleErrors = {
1237
- /**
1238
- * Bad Request
1239
- */
1240
- 400: ErrorResponse;
1241
- /**
1242
- * Unauthorized
1243
- */
1244
- 401: ErrorResponse;
1245
- /**
1246
- * Forbidden
1247
- */
1248
- 403: ErrorResponse;
1249
- /**
1250
- * Internal Server Error
1251
- */
1252
- 500: ErrorResponse;
1253
- };
1254
- export type UpdateReferenceLocaleError = UpdateReferenceLocaleErrors[keyof UpdateReferenceLocaleErrors];
1255
- export type UpdateReferenceLocaleResponses = {
1256
- /**
1257
- * Ok
1258
- */
1259
- 200: SuccessResponse;
1260
- };
1261
- export type UpdateReferenceLocaleResponse = UpdateReferenceLocaleResponses[keyof UpdateReferenceLocaleResponses];
1262
- export type DeleteTranslationsData = {
1263
- body: DeleteTranslationsRequestBody;
1264
- path?: never;
1265
- query?: never;
1266
- url: '/api/translations';
1267
- };
1268
- export type DeleteTranslationsErrors = {
1269
- /**
1270
- * Bad Request
1271
- */
1272
- 400: ErrorResponse;
1273
- /**
1274
- * Unauthorized
1275
- */
1276
- 401: ErrorResponse;
1277
- /**
1278
- * Forbidden
1279
- */
1280
- 403: ErrorResponse;
1281
- /**
1282
- * Internal Server Error
1283
- */
1284
- 500: ErrorResponse;
1285
- };
1286
- export type DeleteTranslationsError = DeleteTranslationsErrors[keyof DeleteTranslationsErrors];
1287
- export type DeleteTranslationsResponses = {
1288
- /**
1289
- * Ok
1290
- */
1291
- 200: SuccessResponse;
1292
- };
1293
- export type DeleteTranslationsResponse = DeleteTranslationsResponses[keyof DeleteTranslationsResponses];
1294
- export type GetTranslationsData = {
1295
- body?: never;
1296
- path?: never;
1297
- query: {
1298
- projectId: string;
1299
- limit?: string;
1300
- offset?: string;
1301
- q?: string;
1302
- tags?: string;
1303
- lang?: string;
1304
- case_sensitive?: Booleanish;
1305
- untranslated_only?: Booleanish;
1306
- };
1307
- url: '/api/translations';
1308
- };
1309
- export type GetTranslationsErrors = {
1310
- /**
1311
- * Bad Request
1312
- */
1313
- 400: ErrorResponse;
1314
- /**
1315
- * Unauthorized
1316
- */
1317
- 401: ErrorResponse;
1318
- /**
1319
- * Forbidden
1320
- */
1321
- 403: ErrorResponse;
1322
- /**
1323
- * Internal Server Error
1324
- */
1325
- 500: ErrorResponse;
1326
- };
1327
- export type GetTranslationsError = GetTranslationsErrors[keyof GetTranslationsErrors];
1328
- export type GetTranslationsResponses = {
1329
- /**
1330
- * Ok
1331
- */
1332
- 200: GetTranslationsResponse;
1333
- };
1334
- export type GetTranslationsResponse2 = GetTranslationsResponses[keyof GetTranslationsResponses];
1335
- export type UpdateTranslationsData = {
1336
- body: UpdateTranslationsRequestBody;
1337
- path?: never;
1338
- query?: never;
1339
- url: '/api/translations';
1340
- };
1341
- export type UpdateTranslationsErrors = {
1342
- /**
1343
- * Bad Request
1344
- */
1345
- 400: ErrorResponse;
1346
- /**
1347
- * Unauthorized
1348
- */
1349
- 401: ErrorResponse;
1350
- /**
1351
- * Forbidden
1352
- */
1353
- 403: ErrorResponse;
1354
- /**
1355
- * Internal Server Error
1356
- */
1357
- 500: ErrorResponse;
1358
- };
1359
- export type UpdateTranslationsError = UpdateTranslationsErrors[keyof UpdateTranslationsErrors];
1360
- export type UpdateTranslationsResponses = {
1361
- /**
1362
- * Resource Created
1363
- */
1364
- 201: SuccessResponse;
1365
- };
1366
- export type UpdateTranslationsResponse = UpdateTranslationsResponses[keyof UpdateTranslationsResponses];