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