@globalscoutme/api-client 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/client.gen.ts +311 -0
- package/client/index.ts +25 -0
- package/client/types.gen.ts +242 -0
- package/client/utils.gen.ts +337 -0
- package/client.gen.ts +23 -0
- package/core/auth.gen.ts +42 -0
- package/core/bodySerializer.gen.ts +100 -0
- package/core/params.gen.ts +176 -0
- package/core/pathSerializer.gen.ts +180 -0
- package/core/queryKeySerializer.gen.ts +136 -0
- package/core/serverSentEvents.gen.ts +266 -0
- package/core/types.gen.ts +118 -0
- package/core/utils.gen.ts +143 -0
- package/index.ts +115 -0
- package/package.json +22 -0
- package/sdk.gen.ts +434 -0
- package/types.gen.ts +1294 -0
package/types.gen.ts
ADDED
|
@@ -0,0 +1,1294 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
|
|
3
|
+
export type ClientOptions = {
|
|
4
|
+
baseUrl: string;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export type PlayerResponseDto = {
|
|
8
|
+
/**
|
|
9
|
+
* Internal user_data id (UUID)
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* Email address
|
|
14
|
+
*/
|
|
15
|
+
email: string;
|
|
16
|
+
/**
|
|
17
|
+
* First name
|
|
18
|
+
*/
|
|
19
|
+
firstName?: {
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Last name
|
|
24
|
+
*/
|
|
25
|
+
lastName?: {
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Date of birth
|
|
30
|
+
*/
|
|
31
|
+
dateOfBirth?: {
|
|
32
|
+
[key: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Registration step code
|
|
36
|
+
*/
|
|
37
|
+
registrationStep?: {
|
|
38
|
+
[key: string]: unknown;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* User type code (player / scout / coach)
|
|
42
|
+
*/
|
|
43
|
+
userType?: {
|
|
44
|
+
[key: string]: unknown;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* KYC verified flag
|
|
48
|
+
*/
|
|
49
|
+
kycIsVerified: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Avatar URL
|
|
52
|
+
*/
|
|
53
|
+
avatarUrl?: {
|
|
54
|
+
[key: string]: unknown;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Created at
|
|
58
|
+
*/
|
|
59
|
+
createdAt?: {
|
|
60
|
+
[key: string]: unknown;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Updated at
|
|
64
|
+
*/
|
|
65
|
+
updatedAt?: {
|
|
66
|
+
[key: string]: unknown;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export type DashboardResponseDto = {
|
|
71
|
+
/**
|
|
72
|
+
* First name
|
|
73
|
+
*/
|
|
74
|
+
firstName?: {
|
|
75
|
+
[key: string]: unknown;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Last name
|
|
79
|
+
*/
|
|
80
|
+
lastName?: {
|
|
81
|
+
[key: string]: unknown;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Avatar URL
|
|
85
|
+
*/
|
|
86
|
+
avatarUrl?: {
|
|
87
|
+
[key: string]: unknown;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Profile completion 0–100
|
|
91
|
+
*/
|
|
92
|
+
profileCompletionPercent: number;
|
|
93
|
+
/**
|
|
94
|
+
* Total videos count
|
|
95
|
+
*/
|
|
96
|
+
videosCount: number;
|
|
97
|
+
/**
|
|
98
|
+
* Has at least one body measurement
|
|
99
|
+
*/
|
|
100
|
+
hasBodyMeasurement: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* KYC is verified
|
|
103
|
+
*/
|
|
104
|
+
hasKycVerified: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Has at least one earned achievement
|
|
107
|
+
*/
|
|
108
|
+
hasAchievement: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Has at least one KYC document
|
|
111
|
+
*/
|
|
112
|
+
hasDocument: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Has player sub-profile (height/weight/foot)
|
|
115
|
+
*/
|
|
116
|
+
hasPlayerProfile: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Has at least one language set
|
|
119
|
+
*/
|
|
120
|
+
hasLanguages: boolean;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
export type UpdatePlayerDto = {
|
|
124
|
+
/**
|
|
125
|
+
* Registration step code
|
|
126
|
+
*/
|
|
127
|
+
registrationStep?: string;
|
|
128
|
+
/**
|
|
129
|
+
* First name
|
|
130
|
+
*/
|
|
131
|
+
firstName?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Last name
|
|
134
|
+
*/
|
|
135
|
+
lastName?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Date of birth (ISO 8601 date)
|
|
138
|
+
*/
|
|
139
|
+
dateOfBirth?: {
|
|
140
|
+
[key: string]: unknown;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* User type code
|
|
144
|
+
*/
|
|
145
|
+
userType?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Avatar URL
|
|
148
|
+
*/
|
|
149
|
+
avatarUrl?: string;
|
|
150
|
+
/**
|
|
151
|
+
* City
|
|
152
|
+
*/
|
|
153
|
+
city?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Bio
|
|
156
|
+
*/
|
|
157
|
+
bio?: string;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export type PreviousClubDto = {
|
|
161
|
+
/**
|
|
162
|
+
* Club name
|
|
163
|
+
*/
|
|
164
|
+
clubName: string;
|
|
165
|
+
/**
|
|
166
|
+
* Join date (ISO 8601 date, e.g. "2018-01-01")
|
|
167
|
+
*/
|
|
168
|
+
joinedAt?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Leave date (ISO 8601 date, e.g. "2021-06-30")
|
|
171
|
+
*/
|
|
172
|
+
leftAt?: string;
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
export type CareerAchievementDto = {
|
|
176
|
+
/**
|
|
177
|
+
* Achievement title (e.g. "League Winner")
|
|
178
|
+
*/
|
|
179
|
+
title: string;
|
|
180
|
+
/**
|
|
181
|
+
* Year (e.g. 2021)
|
|
182
|
+
*/
|
|
183
|
+
year?: number;
|
|
184
|
+
/**
|
|
185
|
+
* Recurrence (e.g. "1 time", "3 times")
|
|
186
|
+
*/
|
|
187
|
+
recurrence?: string;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
export type ProfileResponseDto = {
|
|
191
|
+
/**
|
|
192
|
+
* Internal user_data id
|
|
193
|
+
*/
|
|
194
|
+
id: string;
|
|
195
|
+
/**
|
|
196
|
+
* First name
|
|
197
|
+
*/
|
|
198
|
+
firstName?: {
|
|
199
|
+
[key: string]: unknown;
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* Last name
|
|
203
|
+
*/
|
|
204
|
+
lastName?: {
|
|
205
|
+
[key: string]: unknown;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* Date of birth
|
|
209
|
+
*/
|
|
210
|
+
dateOfBirth?: {
|
|
211
|
+
[key: string]: unknown;
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* Phone number
|
|
215
|
+
*/
|
|
216
|
+
phone?: {
|
|
217
|
+
[key: string]: unknown;
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* Country of residence (2-letter code)
|
|
221
|
+
*/
|
|
222
|
+
country?: {
|
|
223
|
+
[key: string]: unknown;
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* Nationality (2-letter code)
|
|
227
|
+
*/
|
|
228
|
+
nationality?: {
|
|
229
|
+
[key: string]: unknown;
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Gender code
|
|
233
|
+
*/
|
|
234
|
+
gender?: {
|
|
235
|
+
[key: string]: unknown;
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* City
|
|
239
|
+
*/
|
|
240
|
+
city?: {
|
|
241
|
+
[key: string]: unknown;
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* Bio
|
|
245
|
+
*/
|
|
246
|
+
bio?: {
|
|
247
|
+
[key: string]: unknown;
|
|
248
|
+
};
|
|
249
|
+
/**
|
|
250
|
+
* Avatar URL
|
|
251
|
+
*/
|
|
252
|
+
avatarUrl?: {
|
|
253
|
+
[key: string]: unknown;
|
|
254
|
+
};
|
|
255
|
+
/**
|
|
256
|
+
* Cover image URL
|
|
257
|
+
*/
|
|
258
|
+
coverImageUrl?: {
|
|
259
|
+
[key: string]: unknown;
|
|
260
|
+
};
|
|
261
|
+
/**
|
|
262
|
+
* Is free agent
|
|
263
|
+
*/
|
|
264
|
+
isFreeAgent?: {
|
|
265
|
+
[key: string]: unknown;
|
|
266
|
+
};
|
|
267
|
+
/**
|
|
268
|
+
* Is EU visa holder
|
|
269
|
+
*/
|
|
270
|
+
isEuVisaHolder?: {
|
|
271
|
+
[key: string]: unknown;
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Visa expiration date
|
|
275
|
+
*/
|
|
276
|
+
visaExpirationDate?: {
|
|
277
|
+
[key: string]: unknown;
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* Marital status code
|
|
281
|
+
*/
|
|
282
|
+
maritalStatusCode?: {
|
|
283
|
+
[key: string]: unknown;
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* Languages spoken (codes)
|
|
287
|
+
*/
|
|
288
|
+
languages?: Array<string>;
|
|
289
|
+
/**
|
|
290
|
+
* Preferred foot code
|
|
291
|
+
*/
|
|
292
|
+
preferredFoot?: {
|
|
293
|
+
[key: string]: unknown;
|
|
294
|
+
};
|
|
295
|
+
/**
|
|
296
|
+
* Height in cm
|
|
297
|
+
*/
|
|
298
|
+
heightCm?: {
|
|
299
|
+
[key: string]: unknown;
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* Weight in kg
|
|
303
|
+
*/
|
|
304
|
+
weightKg?: {
|
|
305
|
+
[key: string]: unknown;
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* Current club name
|
|
309
|
+
*/
|
|
310
|
+
currentClub?: {
|
|
311
|
+
[key: string]: unknown;
|
|
312
|
+
};
|
|
313
|
+
/**
|
|
314
|
+
* Previous clubs
|
|
315
|
+
*/
|
|
316
|
+
previousClubs?: Array<PreviousClubDto>;
|
|
317
|
+
/**
|
|
318
|
+
* Main position code (e.g. "ST")
|
|
319
|
+
*/
|
|
320
|
+
mainPosition?: {
|
|
321
|
+
[key: string]: unknown;
|
|
322
|
+
};
|
|
323
|
+
/**
|
|
324
|
+
* Additional position codes (e.g. ["RW","LW"])
|
|
325
|
+
*/
|
|
326
|
+
additionalPositions?: Array<string>;
|
|
327
|
+
/**
|
|
328
|
+
* Career achievements (coach)
|
|
329
|
+
*/
|
|
330
|
+
careerAchievements?: Array<CareerAchievementDto>;
|
|
331
|
+
/**
|
|
332
|
+
* Agency name
|
|
333
|
+
*/
|
|
334
|
+
agencyName?: {
|
|
335
|
+
[key: string]: unknown;
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* Agency website URL
|
|
339
|
+
*/
|
|
340
|
+
agencyWebsite?: {
|
|
341
|
+
[key: string]: unknown;
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* Primary market region code
|
|
345
|
+
*/
|
|
346
|
+
primaryMarket?: {
|
|
347
|
+
[key: string]: unknown;
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* Players represented (e.g. "1-5", "6-10", "more_than_10")
|
|
351
|
+
*/
|
|
352
|
+
playersRepresented?: {
|
|
353
|
+
[key: string]: unknown;
|
|
354
|
+
};
|
|
355
|
+
/**
|
|
356
|
+
* About the agency
|
|
357
|
+
*/
|
|
358
|
+
aboutAgency?: {
|
|
359
|
+
[key: string]: unknown;
|
|
360
|
+
};
|
|
361
|
+
/**
|
|
362
|
+
* Updated at
|
|
363
|
+
*/
|
|
364
|
+
updatedAt?: {
|
|
365
|
+
[key: string]: unknown;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
export type UpdateProfileDto = {
|
|
370
|
+
/**
|
|
371
|
+
* First name
|
|
372
|
+
*/
|
|
373
|
+
firstName?: string;
|
|
374
|
+
/**
|
|
375
|
+
* Last name
|
|
376
|
+
*/
|
|
377
|
+
lastName?: string;
|
|
378
|
+
/**
|
|
379
|
+
* Date of birth (ISO 8601 date, e.g. "1999-06-15")
|
|
380
|
+
*/
|
|
381
|
+
dateOfBirth?: string;
|
|
382
|
+
/**
|
|
383
|
+
* Phone number
|
|
384
|
+
*/
|
|
385
|
+
phone?: string;
|
|
386
|
+
/**
|
|
387
|
+
* Country of residence (2-letter code)
|
|
388
|
+
*/
|
|
389
|
+
country?: string;
|
|
390
|
+
/**
|
|
391
|
+
* Nationality (2-letter code)
|
|
392
|
+
*/
|
|
393
|
+
nationality?: string;
|
|
394
|
+
/**
|
|
395
|
+
* Gender code
|
|
396
|
+
*/
|
|
397
|
+
gender?: string;
|
|
398
|
+
/**
|
|
399
|
+
* City
|
|
400
|
+
*/
|
|
401
|
+
city?: string;
|
|
402
|
+
/**
|
|
403
|
+
* Bio
|
|
404
|
+
*/
|
|
405
|
+
bio?: string;
|
|
406
|
+
/**
|
|
407
|
+
* Avatar URL
|
|
408
|
+
*/
|
|
409
|
+
avatarUrl?: string;
|
|
410
|
+
/**
|
|
411
|
+
* Cover image URL
|
|
412
|
+
*/
|
|
413
|
+
coverImageUrl?: string;
|
|
414
|
+
/**
|
|
415
|
+
* Is free agent
|
|
416
|
+
*/
|
|
417
|
+
isFreeAgent?: boolean;
|
|
418
|
+
/**
|
|
419
|
+
* Is EU visa holder
|
|
420
|
+
*/
|
|
421
|
+
isEuVisaHolder?: boolean;
|
|
422
|
+
/**
|
|
423
|
+
* Visa expiration date (ISO 8601)
|
|
424
|
+
*/
|
|
425
|
+
visaExpirationDate?: string;
|
|
426
|
+
/**
|
|
427
|
+
* Marital status code
|
|
428
|
+
*/
|
|
429
|
+
maritalStatusCode?: string;
|
|
430
|
+
/**
|
|
431
|
+
* Languages spoken (codes)
|
|
432
|
+
*/
|
|
433
|
+
languages?: Array<string>;
|
|
434
|
+
/**
|
|
435
|
+
* Preferred foot code
|
|
436
|
+
*/
|
|
437
|
+
preferredFoot?: string;
|
|
438
|
+
/**
|
|
439
|
+
* Height in cm
|
|
440
|
+
*/
|
|
441
|
+
heightCm?: number;
|
|
442
|
+
/**
|
|
443
|
+
* Weight in kg
|
|
444
|
+
*/
|
|
445
|
+
weightKg?: number;
|
|
446
|
+
/**
|
|
447
|
+
* Current club name (sets is_current=true)
|
|
448
|
+
*/
|
|
449
|
+
currentClub?: string;
|
|
450
|
+
/**
|
|
451
|
+
* Previous clubs (replaces all existing previous clubs)
|
|
452
|
+
*/
|
|
453
|
+
previousClubs?: Array<PreviousClubDto>;
|
|
454
|
+
/**
|
|
455
|
+
* Main position code (e.g. "ST"), null to clear
|
|
456
|
+
*/
|
|
457
|
+
mainPosition?: {
|
|
458
|
+
[key: string]: unknown;
|
|
459
|
+
};
|
|
460
|
+
/**
|
|
461
|
+
* Additional position codes (e.g. ["RW","LW"]), empty array to clear
|
|
462
|
+
*/
|
|
463
|
+
additionalPositions?: Array<string>;
|
|
464
|
+
/**
|
|
465
|
+
* Career achievements (coach, replaces all existing)
|
|
466
|
+
*/
|
|
467
|
+
careerAchievements?: Array<CareerAchievementDto>;
|
|
468
|
+
/**
|
|
469
|
+
* Agency name
|
|
470
|
+
*/
|
|
471
|
+
agencyName?: string;
|
|
472
|
+
/**
|
|
473
|
+
* Agency website URL
|
|
474
|
+
*/
|
|
475
|
+
agencyWebsite?: string;
|
|
476
|
+
/**
|
|
477
|
+
* Primary market region code
|
|
478
|
+
*/
|
|
479
|
+
primaryMarket?: string;
|
|
480
|
+
/**
|
|
481
|
+
* Players represented (e.g. "1-5", "6-10", "more_than_10")
|
|
482
|
+
*/
|
|
483
|
+
playersRepresented?: string;
|
|
484
|
+
/**
|
|
485
|
+
* About the agency
|
|
486
|
+
*/
|
|
487
|
+
aboutAgency?: string;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
export type AchievementCatalogDto = {
|
|
491
|
+
id: string;
|
|
492
|
+
code: string;
|
|
493
|
+
name: string;
|
|
494
|
+
description?: {
|
|
495
|
+
[key: string]: unknown;
|
|
496
|
+
};
|
|
497
|
+
iconUrl?: {
|
|
498
|
+
[key: string]: unknown;
|
|
499
|
+
};
|
|
500
|
+
pointsAwarded?: {
|
|
501
|
+
[key: string]: unknown;
|
|
502
|
+
};
|
|
503
|
+
category?: {
|
|
504
|
+
[key: string]: unknown;
|
|
505
|
+
};
|
|
506
|
+
rarity?: {
|
|
507
|
+
[key: string]: unknown;
|
|
508
|
+
};
|
|
509
|
+
isActive?: {
|
|
510
|
+
[key: string]: unknown;
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
export type UserAchievementResponseDto = {
|
|
515
|
+
id: string;
|
|
516
|
+
userId: string;
|
|
517
|
+
achievementId: string;
|
|
518
|
+
earnedAt?: {
|
|
519
|
+
[key: string]: unknown;
|
|
520
|
+
};
|
|
521
|
+
progress?: {
|
|
522
|
+
[key: string]: unknown;
|
|
523
|
+
};
|
|
524
|
+
isCompleted?: {
|
|
525
|
+
[key: string]: unknown;
|
|
526
|
+
};
|
|
527
|
+
achievement?: AchievementCatalogDto;
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
export type BodyMeasurementResponseDto = {
|
|
531
|
+
id: string;
|
|
532
|
+
userId: string;
|
|
533
|
+
measurementDate?: {
|
|
534
|
+
[key: string]: unknown;
|
|
535
|
+
};
|
|
536
|
+
imageUrl?: {
|
|
537
|
+
[key: string]: unknown;
|
|
538
|
+
};
|
|
539
|
+
shoulderWidthCm?: {
|
|
540
|
+
[key: string]: unknown;
|
|
541
|
+
};
|
|
542
|
+
chestCircumferenceCm?: {
|
|
543
|
+
[key: string]: unknown;
|
|
544
|
+
};
|
|
545
|
+
waistCircumferenceCm?: {
|
|
546
|
+
[key: string]: unknown;
|
|
547
|
+
};
|
|
548
|
+
hipCircumferenceCm?: {
|
|
549
|
+
[key: string]: unknown;
|
|
550
|
+
};
|
|
551
|
+
processingStatus?: {
|
|
552
|
+
[key: string]: unknown;
|
|
553
|
+
};
|
|
554
|
+
createdAt?: {
|
|
555
|
+
[key: string]: unknown;
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
export type CreateBodyMeasurementDto = {
|
|
560
|
+
/**
|
|
561
|
+
* Image URL or path
|
|
562
|
+
*/
|
|
563
|
+
imageUrl?: string;
|
|
564
|
+
};
|
|
565
|
+
|
|
566
|
+
export type DocumentResponseDto = {
|
|
567
|
+
id: string;
|
|
568
|
+
userId: string;
|
|
569
|
+
documentType?: {
|
|
570
|
+
[key: string]: unknown;
|
|
571
|
+
};
|
|
572
|
+
fileUrl?: {
|
|
573
|
+
[key: string]: unknown;
|
|
574
|
+
};
|
|
575
|
+
filePath?: {
|
|
576
|
+
[key: string]: unknown;
|
|
577
|
+
};
|
|
578
|
+
status?: {
|
|
579
|
+
[key: string]: unknown;
|
|
580
|
+
};
|
|
581
|
+
uploadedAt?: {
|
|
582
|
+
[key: string]: unknown;
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
export type CreateDocumentDto = {
|
|
587
|
+
/**
|
|
588
|
+
* Document type code (e.g. passport, license)
|
|
589
|
+
*/
|
|
590
|
+
documentType: string;
|
|
591
|
+
/**
|
|
592
|
+
* Public file URL
|
|
593
|
+
*/
|
|
594
|
+
fileUrl: string;
|
|
595
|
+
/**
|
|
596
|
+
* Storage path
|
|
597
|
+
*/
|
|
598
|
+
filePath: string;
|
|
599
|
+
/**
|
|
600
|
+
* KYC verification id this document belongs to
|
|
601
|
+
*/
|
|
602
|
+
kycVerificationId: string;
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
export type IndexItemDto = {
|
|
606
|
+
/**
|
|
607
|
+
* Stable machine-readable code
|
|
608
|
+
*/
|
|
609
|
+
code: string;
|
|
610
|
+
/**
|
|
611
|
+
* Display name
|
|
612
|
+
*/
|
|
613
|
+
name: string;
|
|
614
|
+
/**
|
|
615
|
+
* Display order for clients
|
|
616
|
+
*/
|
|
617
|
+
displayOrder: number | null;
|
|
618
|
+
};
|
|
619
|
+
|
|
620
|
+
export type RegisterClubDto = {
|
|
621
|
+
/**
|
|
622
|
+
* Club name
|
|
623
|
+
*/
|
|
624
|
+
clubName: string;
|
|
625
|
+
/**
|
|
626
|
+
* Representative first name
|
|
627
|
+
*/
|
|
628
|
+
firstName: string;
|
|
629
|
+
/**
|
|
630
|
+
* Representative last name
|
|
631
|
+
*/
|
|
632
|
+
lastName: string;
|
|
633
|
+
/**
|
|
634
|
+
* Representative email
|
|
635
|
+
*/
|
|
636
|
+
email: string;
|
|
637
|
+
/**
|
|
638
|
+
* Password (min 8 characters)
|
|
639
|
+
*/
|
|
640
|
+
password: string;
|
|
641
|
+
/**
|
|
642
|
+
* Representative phone number
|
|
643
|
+
*/
|
|
644
|
+
phone?: string;
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
export type RegisterClubResponseDto = {
|
|
648
|
+
/**
|
|
649
|
+
* Internal user_data id
|
|
650
|
+
*/
|
|
651
|
+
userId: string;
|
|
652
|
+
/**
|
|
653
|
+
* Organization id
|
|
654
|
+
*/
|
|
655
|
+
organizationId: string;
|
|
656
|
+
/**
|
|
657
|
+
* Club name
|
|
658
|
+
*/
|
|
659
|
+
clubName: string;
|
|
660
|
+
/**
|
|
661
|
+
* Club slug
|
|
662
|
+
*/
|
|
663
|
+
slug?: string;
|
|
664
|
+
};
|
|
665
|
+
|
|
666
|
+
export type OrganizationResponseDto = {
|
|
667
|
+
/**
|
|
668
|
+
* Organization id
|
|
669
|
+
*/
|
|
670
|
+
id: string;
|
|
671
|
+
/**
|
|
672
|
+
* Club name
|
|
673
|
+
*/
|
|
674
|
+
name: string;
|
|
675
|
+
/**
|
|
676
|
+
* Slug
|
|
677
|
+
*/
|
|
678
|
+
slug?: string;
|
|
679
|
+
/**
|
|
680
|
+
* Country code
|
|
681
|
+
*/
|
|
682
|
+
country?: {
|
|
683
|
+
[key: string]: unknown;
|
|
684
|
+
};
|
|
685
|
+
/**
|
|
686
|
+
* League tier code
|
|
687
|
+
*/
|
|
688
|
+
leagueTier?: {
|
|
689
|
+
[key: string]: unknown;
|
|
690
|
+
};
|
|
691
|
+
/**
|
|
692
|
+
* FIFA club category code
|
|
693
|
+
*/
|
|
694
|
+
fifaCategory?: {
|
|
695
|
+
[key: string]: unknown;
|
|
696
|
+
};
|
|
697
|
+
/**
|
|
698
|
+
* Stadium name
|
|
699
|
+
*/
|
|
700
|
+
stadiumName?: {
|
|
701
|
+
[key: string]: unknown;
|
|
702
|
+
};
|
|
703
|
+
/**
|
|
704
|
+
* Official club email
|
|
705
|
+
*/
|
|
706
|
+
email?: {
|
|
707
|
+
[key: string]: unknown;
|
|
708
|
+
};
|
|
709
|
+
/**
|
|
710
|
+
* Official website
|
|
711
|
+
*/
|
|
712
|
+
website?: {
|
|
713
|
+
[key: string]: unknown;
|
|
714
|
+
};
|
|
715
|
+
/**
|
|
716
|
+
* Club description
|
|
717
|
+
*/
|
|
718
|
+
description?: {
|
|
719
|
+
[key: string]: unknown;
|
|
720
|
+
};
|
|
721
|
+
/**
|
|
722
|
+
* Phone
|
|
723
|
+
*/
|
|
724
|
+
phone?: {
|
|
725
|
+
[key: string]: unknown;
|
|
726
|
+
};
|
|
727
|
+
/**
|
|
728
|
+
* Updated at
|
|
729
|
+
*/
|
|
730
|
+
updatedAt?: {
|
|
731
|
+
[key: string]: unknown;
|
|
732
|
+
};
|
|
733
|
+
};
|
|
734
|
+
|
|
735
|
+
export type UpdateOrganizationDto = {
|
|
736
|
+
/**
|
|
737
|
+
* Club name
|
|
738
|
+
*/
|
|
739
|
+
name?: string;
|
|
740
|
+
/**
|
|
741
|
+
* Country code (2-letter ISO)
|
|
742
|
+
*/
|
|
743
|
+
country?: string;
|
|
744
|
+
/**
|
|
745
|
+
* Division / league tier code
|
|
746
|
+
*/
|
|
747
|
+
leagueTier?: string;
|
|
748
|
+
/**
|
|
749
|
+
* FIFA club category code
|
|
750
|
+
*/
|
|
751
|
+
fifaCategory?: string;
|
|
752
|
+
/**
|
|
753
|
+
* Stadium / home ground name
|
|
754
|
+
*/
|
|
755
|
+
stadiumName?: string;
|
|
756
|
+
/**
|
|
757
|
+
* Official club email
|
|
758
|
+
*/
|
|
759
|
+
email?: string;
|
|
760
|
+
/**
|
|
761
|
+
* Official website URL
|
|
762
|
+
*/
|
|
763
|
+
website?: string;
|
|
764
|
+
/**
|
|
765
|
+
* Club description
|
|
766
|
+
*/
|
|
767
|
+
description?: string;
|
|
768
|
+
/**
|
|
769
|
+
* Representative phone number
|
|
770
|
+
*/
|
|
771
|
+
phone?: string;
|
|
772
|
+
};
|
|
773
|
+
|
|
774
|
+
export type VideoResponseDto = {
|
|
775
|
+
id: string;
|
|
776
|
+
userId: string;
|
|
777
|
+
title: string;
|
|
778
|
+
videoUrl: string;
|
|
779
|
+
videoType?: {
|
|
780
|
+
[key: string]: unknown;
|
|
781
|
+
};
|
|
782
|
+
durationSeconds?: {
|
|
783
|
+
[key: string]: unknown;
|
|
784
|
+
};
|
|
785
|
+
uploadStatus?: {
|
|
786
|
+
[key: string]: unknown;
|
|
787
|
+
};
|
|
788
|
+
processingStatus?: {
|
|
789
|
+
[key: string]: unknown;
|
|
790
|
+
};
|
|
791
|
+
isPublic?: {
|
|
792
|
+
[key: string]: unknown;
|
|
793
|
+
};
|
|
794
|
+
uploadDate?: {
|
|
795
|
+
[key: string]: unknown;
|
|
796
|
+
};
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
export type CreateVideoDto = {
|
|
800
|
+
/**
|
|
801
|
+
* Video URL (from upload)
|
|
802
|
+
*/
|
|
803
|
+
videoUrl: string;
|
|
804
|
+
/**
|
|
805
|
+
* Video path in storage
|
|
806
|
+
*/
|
|
807
|
+
videoPath: string;
|
|
808
|
+
/**
|
|
809
|
+
* Title
|
|
810
|
+
*/
|
|
811
|
+
title: string;
|
|
812
|
+
/**
|
|
813
|
+
* Video type code (e.g. best_moment, cmj)
|
|
814
|
+
*/
|
|
815
|
+
videoType?: string;
|
|
816
|
+
/**
|
|
817
|
+
* Duration in seconds
|
|
818
|
+
*/
|
|
819
|
+
durationSeconds?: number;
|
|
820
|
+
/**
|
|
821
|
+
* Make video public
|
|
822
|
+
*/
|
|
823
|
+
isPublic?: boolean;
|
|
824
|
+
};
|
|
825
|
+
|
|
826
|
+
export type GetAuthMeData = {
|
|
827
|
+
body?: never;
|
|
828
|
+
path?: never;
|
|
829
|
+
query?: never;
|
|
830
|
+
url: '/auth/me';
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
export type GetAuthMeResponses = {
|
|
834
|
+
200: unknown;
|
|
835
|
+
};
|
|
836
|
+
|
|
837
|
+
export type DeletePlayersMeData = {
|
|
838
|
+
body?: never;
|
|
839
|
+
path?: never;
|
|
840
|
+
query?: never;
|
|
841
|
+
url: '/players/me';
|
|
842
|
+
};
|
|
843
|
+
|
|
844
|
+
export type DeletePlayersMeErrors = {
|
|
845
|
+
/**
|
|
846
|
+
* Deletion not configured
|
|
847
|
+
*/
|
|
848
|
+
503: unknown;
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
export type DeletePlayersMeResponses = {
|
|
852
|
+
204: void;
|
|
853
|
+
};
|
|
854
|
+
|
|
855
|
+
export type DeletePlayersMeResponse =
|
|
856
|
+
DeletePlayersMeResponses[keyof DeletePlayersMeResponses];
|
|
857
|
+
|
|
858
|
+
export type GetPlayersMeData = {
|
|
859
|
+
body?: never;
|
|
860
|
+
path?: never;
|
|
861
|
+
query?: never;
|
|
862
|
+
url: '/players/me';
|
|
863
|
+
};
|
|
864
|
+
|
|
865
|
+
export type GetPlayersMeErrors = {
|
|
866
|
+
/**
|
|
867
|
+
* Unauthorized
|
|
868
|
+
*/
|
|
869
|
+
401: unknown;
|
|
870
|
+
};
|
|
871
|
+
|
|
872
|
+
export type GetPlayersMeResponses = {
|
|
873
|
+
200: PlayerResponseDto;
|
|
874
|
+
};
|
|
875
|
+
|
|
876
|
+
export type GetPlayersMeResponse =
|
|
877
|
+
GetPlayersMeResponses[keyof GetPlayersMeResponses];
|
|
878
|
+
|
|
879
|
+
export type PatchPlayersMeData = {
|
|
880
|
+
body: UpdatePlayerDto;
|
|
881
|
+
path?: never;
|
|
882
|
+
query?: never;
|
|
883
|
+
url: '/players/me';
|
|
884
|
+
};
|
|
885
|
+
|
|
886
|
+
export type PatchPlayersMeErrors = {
|
|
887
|
+
/**
|
|
888
|
+
* Unauthorized
|
|
889
|
+
*/
|
|
890
|
+
401: unknown;
|
|
891
|
+
};
|
|
892
|
+
|
|
893
|
+
export type PatchPlayersMeResponses = {
|
|
894
|
+
200: PlayerResponseDto;
|
|
895
|
+
};
|
|
896
|
+
|
|
897
|
+
export type PatchPlayersMeResponse =
|
|
898
|
+
PatchPlayersMeResponses[keyof PatchPlayersMeResponses];
|
|
899
|
+
|
|
900
|
+
export type GetPlayersMeDashboardData = {
|
|
901
|
+
body?: never;
|
|
902
|
+
path?: never;
|
|
903
|
+
query?: never;
|
|
904
|
+
url: '/players/me/dashboard';
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
export type GetPlayersMeDashboardErrors = {
|
|
908
|
+
/**
|
|
909
|
+
* Unauthorized
|
|
910
|
+
*/
|
|
911
|
+
401: unknown;
|
|
912
|
+
};
|
|
913
|
+
|
|
914
|
+
export type GetPlayersMeDashboardResponses = {
|
|
915
|
+
200: DashboardResponseDto;
|
|
916
|
+
};
|
|
917
|
+
|
|
918
|
+
export type GetPlayersMeDashboardResponse =
|
|
919
|
+
GetPlayersMeDashboardResponses[keyof GetPlayersMeDashboardResponses];
|
|
920
|
+
|
|
921
|
+
export type GetProfileMeData = {
|
|
922
|
+
body?: never;
|
|
923
|
+
path?: never;
|
|
924
|
+
query?: never;
|
|
925
|
+
url: '/profile/me';
|
|
926
|
+
};
|
|
927
|
+
|
|
928
|
+
export type GetProfileMeErrors = {
|
|
929
|
+
/**
|
|
930
|
+
* Unauthorized
|
|
931
|
+
*/
|
|
932
|
+
401: unknown;
|
|
933
|
+
/**
|
|
934
|
+
* Profile not found
|
|
935
|
+
*/
|
|
936
|
+
404: unknown;
|
|
937
|
+
};
|
|
938
|
+
|
|
939
|
+
export type GetProfileMeResponses = {
|
|
940
|
+
/**
|
|
941
|
+
* Current player profile
|
|
942
|
+
*/
|
|
943
|
+
200: ProfileResponseDto;
|
|
944
|
+
};
|
|
945
|
+
|
|
946
|
+
export type GetProfileMeResponse =
|
|
947
|
+
GetProfileMeResponses[keyof GetProfileMeResponses];
|
|
948
|
+
|
|
949
|
+
export type PutProfileMeData = {
|
|
950
|
+
body: UpdateProfileDto;
|
|
951
|
+
path?: never;
|
|
952
|
+
query?: never;
|
|
953
|
+
url: '/profile/me';
|
|
954
|
+
};
|
|
955
|
+
|
|
956
|
+
export type PutProfileMeErrors = {
|
|
957
|
+
/**
|
|
958
|
+
* Unauthorized
|
|
959
|
+
*/
|
|
960
|
+
401: unknown;
|
|
961
|
+
};
|
|
962
|
+
|
|
963
|
+
export type PutProfileMeResponses = {
|
|
964
|
+
/**
|
|
965
|
+
* Updated profile
|
|
966
|
+
*/
|
|
967
|
+
200: ProfileResponseDto;
|
|
968
|
+
};
|
|
969
|
+
|
|
970
|
+
export type PutProfileMeResponse =
|
|
971
|
+
PutProfileMeResponses[keyof PutProfileMeResponses];
|
|
972
|
+
|
|
973
|
+
export type GetAchievementsData = {
|
|
974
|
+
body?: never;
|
|
975
|
+
path?: never;
|
|
976
|
+
query?: never;
|
|
977
|
+
url: '/achievements';
|
|
978
|
+
};
|
|
979
|
+
|
|
980
|
+
export type GetAchievementsResponses = {
|
|
981
|
+
200: Array<AchievementCatalogDto>;
|
|
982
|
+
};
|
|
983
|
+
|
|
984
|
+
export type GetAchievementsResponse =
|
|
985
|
+
GetAchievementsResponses[keyof GetAchievementsResponses];
|
|
986
|
+
|
|
987
|
+
export type GetAchievementsMeData = {
|
|
988
|
+
body?: never;
|
|
989
|
+
path?: never;
|
|
990
|
+
query?: never;
|
|
991
|
+
url: '/achievements/me';
|
|
992
|
+
};
|
|
993
|
+
|
|
994
|
+
export type GetAchievementsMeErrors = {
|
|
995
|
+
/**
|
|
996
|
+
* Unauthorized
|
|
997
|
+
*/
|
|
998
|
+
401: unknown;
|
|
999
|
+
};
|
|
1000
|
+
|
|
1001
|
+
export type GetAchievementsMeResponses = {
|
|
1002
|
+
200: Array<UserAchievementResponseDto>;
|
|
1003
|
+
};
|
|
1004
|
+
|
|
1005
|
+
export type GetAchievementsMeResponse =
|
|
1006
|
+
GetAchievementsMeResponses[keyof GetAchievementsMeResponses];
|
|
1007
|
+
|
|
1008
|
+
export type GetBodyMeasurementsMeData = {
|
|
1009
|
+
body?: never;
|
|
1010
|
+
path?: never;
|
|
1011
|
+
query?: never;
|
|
1012
|
+
url: '/body/measurements/me';
|
|
1013
|
+
};
|
|
1014
|
+
|
|
1015
|
+
export type GetBodyMeasurementsMeErrors = {
|
|
1016
|
+
/**
|
|
1017
|
+
* Unauthorized
|
|
1018
|
+
*/
|
|
1019
|
+
401: unknown;
|
|
1020
|
+
/**
|
|
1021
|
+
* No measurement found
|
|
1022
|
+
*/
|
|
1023
|
+
404: unknown;
|
|
1024
|
+
};
|
|
1025
|
+
|
|
1026
|
+
export type GetBodyMeasurementsMeResponses = {
|
|
1027
|
+
/**
|
|
1028
|
+
* Latest body measurement
|
|
1029
|
+
*/
|
|
1030
|
+
200: BodyMeasurementResponseDto;
|
|
1031
|
+
};
|
|
1032
|
+
|
|
1033
|
+
export type GetBodyMeasurementsMeResponse =
|
|
1034
|
+
GetBodyMeasurementsMeResponses[keyof GetBodyMeasurementsMeResponses];
|
|
1035
|
+
|
|
1036
|
+
export type PostBodyMeasurementsData = {
|
|
1037
|
+
body: CreateBodyMeasurementDto;
|
|
1038
|
+
path?: never;
|
|
1039
|
+
query?: never;
|
|
1040
|
+
url: '/body/measurements';
|
|
1041
|
+
};
|
|
1042
|
+
|
|
1043
|
+
export type PostBodyMeasurementsErrors = {
|
|
1044
|
+
/**
|
|
1045
|
+
* Unauthorized
|
|
1046
|
+
*/
|
|
1047
|
+
401: unknown;
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
export type PostBodyMeasurementsResponses = {
|
|
1051
|
+
/**
|
|
1052
|
+
* Body measurement created
|
|
1053
|
+
*/
|
|
1054
|
+
201: BodyMeasurementResponseDto;
|
|
1055
|
+
};
|
|
1056
|
+
|
|
1057
|
+
export type PostBodyMeasurementsResponse =
|
|
1058
|
+
PostBodyMeasurementsResponses[keyof PostBodyMeasurementsResponses];
|
|
1059
|
+
|
|
1060
|
+
export type GetDocumentsMeData = {
|
|
1061
|
+
body?: never;
|
|
1062
|
+
path?: never;
|
|
1063
|
+
query?: never;
|
|
1064
|
+
url: '/documents/me';
|
|
1065
|
+
};
|
|
1066
|
+
|
|
1067
|
+
export type GetDocumentsMeErrors = {
|
|
1068
|
+
/**
|
|
1069
|
+
* Unauthorized
|
|
1070
|
+
*/
|
|
1071
|
+
401: unknown;
|
|
1072
|
+
};
|
|
1073
|
+
|
|
1074
|
+
export type GetDocumentsMeResponses = {
|
|
1075
|
+
/**
|
|
1076
|
+
* List of documents
|
|
1077
|
+
*/
|
|
1078
|
+
200: Array<DocumentResponseDto>;
|
|
1079
|
+
};
|
|
1080
|
+
|
|
1081
|
+
export type GetDocumentsMeResponse =
|
|
1082
|
+
GetDocumentsMeResponses[keyof GetDocumentsMeResponses];
|
|
1083
|
+
|
|
1084
|
+
export type PostDocumentsData = {
|
|
1085
|
+
body: CreateDocumentDto;
|
|
1086
|
+
path?: never;
|
|
1087
|
+
query?: never;
|
|
1088
|
+
url: '/documents';
|
|
1089
|
+
};
|
|
1090
|
+
|
|
1091
|
+
export type PostDocumentsErrors = {
|
|
1092
|
+
/**
|
|
1093
|
+
* Unauthorized
|
|
1094
|
+
*/
|
|
1095
|
+
401: unknown;
|
|
1096
|
+
};
|
|
1097
|
+
|
|
1098
|
+
export type PostDocumentsResponses = {
|
|
1099
|
+
/**
|
|
1100
|
+
* Document created
|
|
1101
|
+
*/
|
|
1102
|
+
201: DocumentResponseDto;
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
export type PostDocumentsResponse =
|
|
1106
|
+
PostDocumentsResponses[keyof PostDocumentsResponses];
|
|
1107
|
+
|
|
1108
|
+
export type GetIndexByTableNameData = {
|
|
1109
|
+
body?: never;
|
|
1110
|
+
path: {
|
|
1111
|
+
tableName: string;
|
|
1112
|
+
};
|
|
1113
|
+
query?: never;
|
|
1114
|
+
url: '/index/{tableName}';
|
|
1115
|
+
};
|
|
1116
|
+
|
|
1117
|
+
export type GetIndexByTableNameErrors = {
|
|
1118
|
+
/**
|
|
1119
|
+
* Invalid index table
|
|
1120
|
+
*/
|
|
1121
|
+
400: unknown;
|
|
1122
|
+
/**
|
|
1123
|
+
* Unauthorized
|
|
1124
|
+
*/
|
|
1125
|
+
401: unknown;
|
|
1126
|
+
};
|
|
1127
|
+
|
|
1128
|
+
export type GetIndexByTableNameResponses = {
|
|
1129
|
+
/**
|
|
1130
|
+
* Index table items
|
|
1131
|
+
*/
|
|
1132
|
+
200: Array<IndexItemDto>;
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
export type GetIndexByTableNameResponse =
|
|
1136
|
+
GetIndexByTableNameResponses[keyof GetIndexByTableNameResponses];
|
|
1137
|
+
|
|
1138
|
+
export type PostOrganizationsRegisterClubData = {
|
|
1139
|
+
body: RegisterClubDto;
|
|
1140
|
+
path?: never;
|
|
1141
|
+
query?: never;
|
|
1142
|
+
url: '/organizations/register-club';
|
|
1143
|
+
};
|
|
1144
|
+
|
|
1145
|
+
export type PostOrganizationsRegisterClubErrors = {
|
|
1146
|
+
/**
|
|
1147
|
+
* Bad request
|
|
1148
|
+
*/
|
|
1149
|
+
400: unknown;
|
|
1150
|
+
/**
|
|
1151
|
+
* Email already exists
|
|
1152
|
+
*/
|
|
1153
|
+
409: unknown;
|
|
1154
|
+
};
|
|
1155
|
+
|
|
1156
|
+
export type PostOrganizationsRegisterClubResponses = {
|
|
1157
|
+
201: RegisterClubResponseDto;
|
|
1158
|
+
};
|
|
1159
|
+
|
|
1160
|
+
export type PostOrganizationsRegisterClubResponse =
|
|
1161
|
+
PostOrganizationsRegisterClubResponses[keyof PostOrganizationsRegisterClubResponses];
|
|
1162
|
+
|
|
1163
|
+
export type GetOrganizationsMeData = {
|
|
1164
|
+
body?: never;
|
|
1165
|
+
path?: never;
|
|
1166
|
+
query?: never;
|
|
1167
|
+
url: '/organizations/me';
|
|
1168
|
+
};
|
|
1169
|
+
|
|
1170
|
+
export type GetOrganizationsMeErrors = {
|
|
1171
|
+
/**
|
|
1172
|
+
* Unauthorized
|
|
1173
|
+
*/
|
|
1174
|
+
401: unknown;
|
|
1175
|
+
/**
|
|
1176
|
+
* Organization not found
|
|
1177
|
+
*/
|
|
1178
|
+
404: unknown;
|
|
1179
|
+
};
|
|
1180
|
+
|
|
1181
|
+
export type GetOrganizationsMeResponses = {
|
|
1182
|
+
200: OrganizationResponseDto;
|
|
1183
|
+
};
|
|
1184
|
+
|
|
1185
|
+
export type GetOrganizationsMeResponse =
|
|
1186
|
+
GetOrganizationsMeResponses[keyof GetOrganizationsMeResponses];
|
|
1187
|
+
|
|
1188
|
+
export type PutOrganizationsMeData = {
|
|
1189
|
+
body: UpdateOrganizationDto;
|
|
1190
|
+
path?: never;
|
|
1191
|
+
query?: never;
|
|
1192
|
+
url: '/organizations/me';
|
|
1193
|
+
};
|
|
1194
|
+
|
|
1195
|
+
export type PutOrganizationsMeErrors = {
|
|
1196
|
+
/**
|
|
1197
|
+
* Unauthorized
|
|
1198
|
+
*/
|
|
1199
|
+
401: unknown;
|
|
1200
|
+
/**
|
|
1201
|
+
* Organization not found
|
|
1202
|
+
*/
|
|
1203
|
+
404: unknown;
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
export type PutOrganizationsMeResponses = {
|
|
1207
|
+
200: OrganizationResponseDto;
|
|
1208
|
+
};
|
|
1209
|
+
|
|
1210
|
+
export type PutOrganizationsMeResponse =
|
|
1211
|
+
PutOrganizationsMeResponses[keyof PutOrganizationsMeResponses];
|
|
1212
|
+
|
|
1213
|
+
export type GetVideosMeData = {
|
|
1214
|
+
body?: never;
|
|
1215
|
+
path?: never;
|
|
1216
|
+
query: {
|
|
1217
|
+
type: string;
|
|
1218
|
+
};
|
|
1219
|
+
url: '/videos/me';
|
|
1220
|
+
};
|
|
1221
|
+
|
|
1222
|
+
export type GetVideosMeErrors = {
|
|
1223
|
+
/**
|
|
1224
|
+
* Unauthorized
|
|
1225
|
+
*/
|
|
1226
|
+
401: unknown;
|
|
1227
|
+
};
|
|
1228
|
+
|
|
1229
|
+
export type GetVideosMeResponses = {
|
|
1230
|
+
/**
|
|
1231
|
+
* List of videos
|
|
1232
|
+
*/
|
|
1233
|
+
200: Array<VideoResponseDto>;
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1236
|
+
export type GetVideosMeResponse =
|
|
1237
|
+
GetVideosMeResponses[keyof GetVideosMeResponses];
|
|
1238
|
+
|
|
1239
|
+
export type PostVideosData = {
|
|
1240
|
+
body: CreateVideoDto;
|
|
1241
|
+
path?: never;
|
|
1242
|
+
query?: never;
|
|
1243
|
+
url: '/videos';
|
|
1244
|
+
};
|
|
1245
|
+
|
|
1246
|
+
export type PostVideosErrors = {
|
|
1247
|
+
/**
|
|
1248
|
+
* Invalid input or best_moment limit exceeded
|
|
1249
|
+
*/
|
|
1250
|
+
400: unknown;
|
|
1251
|
+
/**
|
|
1252
|
+
* Unauthorized
|
|
1253
|
+
*/
|
|
1254
|
+
401: unknown;
|
|
1255
|
+
};
|
|
1256
|
+
|
|
1257
|
+
export type PostVideosResponses = {
|
|
1258
|
+
/**
|
|
1259
|
+
* Video created
|
|
1260
|
+
*/
|
|
1261
|
+
201: VideoResponseDto;
|
|
1262
|
+
};
|
|
1263
|
+
|
|
1264
|
+
export type PostVideosResponse = PostVideosResponses[keyof PostVideosResponses];
|
|
1265
|
+
|
|
1266
|
+
export type DeleteVideosByIdData = {
|
|
1267
|
+
body?: never;
|
|
1268
|
+
path: {
|
|
1269
|
+
id: string;
|
|
1270
|
+
};
|
|
1271
|
+
query?: never;
|
|
1272
|
+
url: '/videos/{id}';
|
|
1273
|
+
};
|
|
1274
|
+
|
|
1275
|
+
export type DeleteVideosByIdErrors = {
|
|
1276
|
+
/**
|
|
1277
|
+
* Unauthorized
|
|
1278
|
+
*/
|
|
1279
|
+
401: unknown;
|
|
1280
|
+
/**
|
|
1281
|
+
* Video not found
|
|
1282
|
+
*/
|
|
1283
|
+
404: unknown;
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1286
|
+
export type DeleteVideosByIdResponses = {
|
|
1287
|
+
/**
|
|
1288
|
+
* Video deleted
|
|
1289
|
+
*/
|
|
1290
|
+
204: void;
|
|
1291
|
+
};
|
|
1292
|
+
|
|
1293
|
+
export type DeleteVideosByIdResponse =
|
|
1294
|
+
DeleteVideosByIdResponses[keyof DeleteVideosByIdResponses];
|