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