@globalscoutme/api-client 1.0.5 → 1.0.7

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/README.md CHANGED
@@ -83,3 +83,7 @@ This package is auto-generated from the backend OpenAPI spec. Version increments
83
83
  - **patch** — no API shape changes
84
84
  - **minor** — new endpoints added
85
85
  - **major** — breaking changes (renamed/removed endpoints or fields)
86
+
87
+ ## Package format
88
+
89
+ The published package ships compiled JavaScript (`dist/`) alongside the raw TypeScript source. `main` points to `dist/index.js` so all bundlers work without extra configuration.
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export { Achievements, Auth, Body, Documents, GlobalScoutMeClient, Index, type Options, Organizations, Players, Profile, Videos, } from './sdk.gen.js';
2
- export type { AchievementCatalogDto, BodyMeasurementResponseDto, CareerAchievementDto, ClientOptions, CreateBodyMeasurementDto, CreateDocumentDto, CreateVideoDto, DashboardResponseDto, DeletePlayersMeData, DeletePlayersMeErrors, DeletePlayersMeResponse, DeletePlayersMeResponses, DeleteVideosByIdData, DeleteVideosByIdErrors, DeleteVideosByIdResponse, DeleteVideosByIdResponses, DocumentResponseDto, GetAchievementsData, GetAchievementsMeData, GetAchievementsMeErrors, GetAchievementsMeResponse, GetAchievementsMeResponses, GetAchievementsResponse, GetAchievementsResponses, GetAuthMeData, GetAuthMeResponses, GetBodyMeasurementsMeData, GetBodyMeasurementsMeErrors, GetBodyMeasurementsMeResponse, GetBodyMeasurementsMeResponses, GetDocumentsMeData, GetDocumentsMeErrors, GetDocumentsMeResponse, GetDocumentsMeResponses, GetIndexByTableNameData, GetIndexByTableNameErrors, GetIndexByTableNameResponse, GetIndexByTableNameResponses, GetOrganizationsMeData, GetOrganizationsMeErrors, GetOrganizationsMeResponse, GetOrganizationsMeResponses, GetPlayersMeDashboardData, GetPlayersMeDashboardErrors, GetPlayersMeDashboardResponse, GetPlayersMeDashboardResponses, GetPlayersMeData, GetPlayersMeErrors, GetPlayersMeResponse, GetPlayersMeResponses, GetProfileMeData, GetProfileMeErrors, GetProfileMeResponse, GetProfileMeResponses, GetVideosMeData, GetVideosMeErrors, GetVideosMeResponse, GetVideosMeResponses, IndexItemDto, OrganizationResponseDto, PatchPlayersMeData, PatchPlayersMeErrors, PatchPlayersMeResponse, PatchPlayersMeResponses, PlayerResponseDto, PostBodyMeasurementsData, PostBodyMeasurementsErrors, PostBodyMeasurementsResponse, PostBodyMeasurementsResponses, PostDocumentsData, PostDocumentsErrors, PostDocumentsResponse, PostDocumentsResponses, PostOrganizationsRegisterClubData, PostOrganizationsRegisterClubErrors, PostOrganizationsRegisterClubResponse, PostOrganizationsRegisterClubResponses, PostVideosData, PostVideosErrors, PostVideosResponse, PostVideosResponses, PreviousClubDto, ProfileResponseDto, PutOrganizationsMeData, PutOrganizationsMeErrors, PutOrganizationsMeResponse, PutOrganizationsMeResponses, PutProfileMeData, PutProfileMeErrors, PutProfileMeResponse, PutProfileMeResponses, RegisterClubDto, RegisterClubResponseDto, UpdateOrganizationDto, UpdatePlayerDto, UpdateProfileDto, UserAchievementResponseDto, VideoResponseDto, } from './types.gen.js';
2
+ export type { AchievementCatalogDto, AuthMeResponseDto, BodyMeasurementResponseDto, CareerAchievementDto, ClientOptions, CreateBodyMeasurementDto, CreateDocumentDto, CreateVideoDto, DashboardResponseDto, DeletePlayersMeData, DeletePlayersMeErrors, DeletePlayersMeResponse, DeletePlayersMeResponses, DeleteVideosByIdData, DeleteVideosByIdErrors, DeleteVideosByIdResponse, DeleteVideosByIdResponses, DocumentResponseDto, GetAchievementsData, GetAchievementsMeData, GetAchievementsMeErrors, GetAchievementsMeResponse, GetAchievementsMeResponses, GetAchievementsResponse, GetAchievementsResponses, GetAuthMeData, GetAuthMeErrors, GetAuthMeResponse, GetAuthMeResponses, GetBodyMeasurementsMeData, GetBodyMeasurementsMeErrors, GetBodyMeasurementsMeResponse, GetBodyMeasurementsMeResponses, GetDocumentsMeData, GetDocumentsMeErrors, GetDocumentsMeResponse, GetDocumentsMeResponses, GetIndexByTableNameData, GetIndexByTableNameErrors, GetIndexByTableNameResponse, GetIndexByTableNameResponses, GetOrganizationsMeData, GetOrganizationsMeErrors, GetOrganizationsMeResponse, GetOrganizationsMeResponses, GetPlayersMeDashboardData, GetPlayersMeDashboardErrors, GetPlayersMeDashboardResponse, GetPlayersMeDashboardResponses, GetPlayersMeData, GetPlayersMeErrors, GetPlayersMeResponse, GetPlayersMeResponses, GetProfileMeData, GetProfileMeErrors, GetProfileMeResponse, GetProfileMeResponses, GetVideosMeData, GetVideosMeErrors, GetVideosMeResponse, GetVideosMeResponses, IndexItemDto, OrganizationResponseDto, PatchPlayersMeData, PatchPlayersMeErrors, PatchPlayersMeResponse, PatchPlayersMeResponses, PlayerResponseDto, PostBodyMeasurementsData, PostBodyMeasurementsErrors, PostBodyMeasurementsResponse, PostBodyMeasurementsResponses, PostDocumentsData, PostDocumentsErrors, PostDocumentsResponse, PostDocumentsResponses, PostOrganizationsRegisterClubData, PostOrganizationsRegisterClubErrors, PostOrganizationsRegisterClubResponse, PostOrganizationsRegisterClubResponses, PostVideosData, PostVideosErrors, PostVideosResponse, PostVideosResponses, PreviousClubDto, ProfileResponseDto, PutOrganizationsMeData, PutOrganizationsMeErrors, PutOrganizationsMeResponse, PutOrganizationsMeResponses, PutProfileMeData, PutProfileMeErrors, PutProfileMeResponse, PutProfileMeResponses, RegisterClubDto, RegisterClubResponseDto, UpdateOrganizationDto, UpdatePlayerDto, UpdateProfileDto, UserAchievementResponseDto, VideoResponseDto, } from './types.gen.js';
3
+ export { client, type CreateClientConfig } from './client.gen.js';
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
  export { Achievements, Auth, Body, Documents, GlobalScoutMeClient, Index, Organizations, Players, Profile, Videos, } from './sdk.gen.js';
3
+ export { client } from './client.gen.js';
package/dist/sdk.gen.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Client, Options as Options2, TDataShape } from './client/index.js';
2
- import type { DeletePlayersMeData, DeletePlayersMeErrors, DeletePlayersMeResponses, DeleteVideosByIdData, DeleteVideosByIdErrors, DeleteVideosByIdResponses, GetAchievementsData, GetAchievementsMeData, GetAchievementsMeErrors, GetAchievementsMeResponses, GetAchievementsResponses, GetAuthMeData, GetAuthMeResponses, GetBodyMeasurementsMeData, GetBodyMeasurementsMeErrors, GetBodyMeasurementsMeResponses, GetDocumentsMeData, GetDocumentsMeErrors, GetDocumentsMeResponses, GetIndexByTableNameData, GetIndexByTableNameErrors, GetIndexByTableNameResponses, GetOrganizationsMeData, GetOrganizationsMeErrors, GetOrganizationsMeResponses, GetPlayersMeDashboardData, GetPlayersMeDashboardErrors, GetPlayersMeDashboardResponses, GetPlayersMeData, GetPlayersMeErrors, GetPlayersMeResponses, GetProfileMeData, GetProfileMeErrors, GetProfileMeResponses, GetVideosMeData, GetVideosMeErrors, GetVideosMeResponses, PatchPlayersMeData, PatchPlayersMeErrors, PatchPlayersMeResponses, PostBodyMeasurementsData, PostBodyMeasurementsErrors, PostBodyMeasurementsResponses, PostDocumentsData, PostDocumentsErrors, PostDocumentsResponses, PostOrganizationsRegisterClubData, PostOrganizationsRegisterClubErrors, PostOrganizationsRegisterClubResponses, PostVideosData, PostVideosErrors, PostVideosResponses, PutOrganizationsMeData, PutOrganizationsMeErrors, PutOrganizationsMeResponses, PutProfileMeData, PutProfileMeErrors, PutProfileMeResponses } from './types.gen.js';
2
+ import type { DeletePlayersMeData, DeletePlayersMeErrors, DeletePlayersMeResponses, DeleteVideosByIdData, DeleteVideosByIdErrors, DeleteVideosByIdResponses, GetAchievementsData, GetAchievementsMeData, GetAchievementsMeErrors, GetAchievementsMeResponses, GetAchievementsResponses, GetAuthMeData, GetAuthMeErrors, GetAuthMeResponses, GetBodyMeasurementsMeData, GetBodyMeasurementsMeErrors, GetBodyMeasurementsMeResponses, GetDocumentsMeData, GetDocumentsMeErrors, GetDocumentsMeResponses, GetIndexByTableNameData, GetIndexByTableNameErrors, GetIndexByTableNameResponses, GetOrganizationsMeData, GetOrganizationsMeErrors, GetOrganizationsMeResponses, GetPlayersMeDashboardData, GetPlayersMeDashboardErrors, GetPlayersMeDashboardResponses, GetPlayersMeData, GetPlayersMeErrors, GetPlayersMeResponses, GetProfileMeData, GetProfileMeErrors, GetProfileMeResponses, GetVideosMeData, GetVideosMeErrors, GetVideosMeResponses, PatchPlayersMeData, PatchPlayersMeErrors, PatchPlayersMeResponses, PostBodyMeasurementsData, PostBodyMeasurementsErrors, PostBodyMeasurementsResponses, PostDocumentsData, PostDocumentsErrors, PostDocumentsResponses, PostOrganizationsRegisterClubData, PostOrganizationsRegisterClubErrors, PostOrganizationsRegisterClubResponses, PostVideosData, PostVideosErrors, PostVideosResponses, PutOrganizationsMeData, PutOrganizationsMeErrors, PutOrganizationsMeResponses, PutProfileMeData, PutProfileMeErrors, PutProfileMeResponses } from './types.gen.js';
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -26,7 +26,7 @@ declare class HeyApiRegistry<T> {
26
26
  set(value: T, key?: string): void;
27
27
  }
28
28
  export declare class Auth extends HeyApiClient {
29
- authControllerMe<ThrowOnError extends boolean = false>(options?: Options<GetAuthMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetAuthMeResponses, unknown, ThrowOnError, "fields">;
29
+ getAuthMe<ThrowOnError extends boolean = false>(options?: Options<GetAuthMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetAuthMeResponses, GetAuthMeErrors, ThrowOnError, "fields">;
30
30
  }
31
31
  export declare class Players extends HeyApiClient {
32
32
  deleteMe<ThrowOnError extends boolean = false>(options?: Options<DeletePlayersMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<DeletePlayersMeResponses, DeletePlayersMeErrors, ThrowOnError, "fields">;
package/dist/sdk.gen.js CHANGED
@@ -22,7 +22,7 @@ class HeyApiRegistry {
22
22
  }
23
23
  }
24
24
  export class Auth extends HeyApiClient {
25
- authControllerMe(options) {
25
+ getAuthMe(options) {
26
26
  return (options?.client ?? this.client).get({ url: '/auth/me', ...options });
27
27
  }
28
28
  }
@@ -1,6 +1,16 @@
1
1
  export type ClientOptions = {
2
2
  baseUrl: string;
3
3
  };
4
+ export type AuthMeResponseDto = {
5
+ /**
6
+ * Supabase auth user id (JWT sub)
7
+ */
8
+ id: string;
9
+ /**
10
+ * user_types.code the user is registered as (e.g. "player", "coach", "club_admin", "scouter"). Null when not yet set.
11
+ */
12
+ userType?: string | null;
13
+ };
4
14
  export type PlayerResponseDto = {
5
15
  /**
6
16
  * Internal user_data id (UUID)
@@ -13,33 +23,23 @@ export type PlayerResponseDto = {
13
23
  /**
14
24
  * First name
15
25
  */
16
- firstName?: {
17
- [key: string]: unknown;
18
- };
26
+ firstName?: string | null;
19
27
  /**
20
28
  * Last name
21
29
  */
22
- lastName?: {
23
- [key: string]: unknown;
24
- };
30
+ lastName?: string | null;
25
31
  /**
26
32
  * Date of birth
27
33
  */
28
- dateOfBirth?: {
29
- [key: string]: unknown;
30
- };
34
+ dateOfBirth?: string | null;
31
35
  /**
32
36
  * Registration step code
33
37
  */
34
- registrationStep?: {
35
- [key: string]: unknown;
36
- };
38
+ registrationStep?: string | null;
37
39
  /**
38
40
  * User type code (player / scout / coach)
39
41
  */
40
- userType?: {
41
- [key: string]: unknown;
42
- };
42
+ userType?: string | null;
43
43
  /**
44
44
  * KYC verified flag
45
45
  */
@@ -47,41 +47,29 @@ export type PlayerResponseDto = {
47
47
  /**
48
48
  * Avatar URL
49
49
  */
50
- avatarUrl?: {
51
- [key: string]: unknown;
52
- };
50
+ avatarUrl?: string | null;
53
51
  /**
54
52
  * Created at
55
53
  */
56
- createdAt?: {
57
- [key: string]: unknown;
58
- };
54
+ createdAt?: string | null;
59
55
  /**
60
56
  * Updated at
61
57
  */
62
- updatedAt?: {
63
- [key: string]: unknown;
64
- };
58
+ updatedAt?: string | null;
65
59
  };
66
60
  export type DashboardResponseDto = {
67
61
  /**
68
62
  * First name
69
63
  */
70
- firstName?: {
71
- [key: string]: unknown;
72
- };
64
+ firstName?: string | null;
73
65
  /**
74
66
  * Last name
75
67
  */
76
- lastName?: {
77
- [key: string]: unknown;
78
- };
68
+ lastName?: string | null;
79
69
  /**
80
70
  * Avatar URL
81
71
  */
82
- avatarUrl?: {
83
- [key: string]: unknown;
84
- };
72
+ avatarUrl?: string | null;
85
73
  /**
86
74
  * Profile completion 0–100
87
75
  */
@@ -117,9 +105,9 @@ export type DashboardResponseDto = {
117
105
  };
118
106
  export type UpdatePlayerDto = {
119
107
  /**
120
- * Registration step code
108
+ * Registration step code (Part C onboarding).
121
109
  */
122
- registrationStep?: string;
110
+ registrationStep?: 'signup' | 'kyc_pending' | 'kyc_submitted' | 'profile_filling' | 'ai_measurements' | 'complete';
123
111
  /**
124
112
  * First name
125
113
  */
@@ -131,9 +119,7 @@ export type UpdatePlayerDto = {
131
119
  /**
132
120
  * Date of birth (ISO 8601 date)
133
121
  */
134
- dateOfBirth?: {
135
- [key: string]: unknown;
136
- };
122
+ dateOfBirth?: string | null;
137
123
  /**
138
124
  * User type code
139
125
  */
@@ -187,93 +173,63 @@ export type ProfileResponseDto = {
187
173
  /**
188
174
  * First name
189
175
  */
190
- firstName?: {
191
- [key: string]: unknown;
192
- };
176
+ firstName?: string | null;
193
177
  /**
194
178
  * Last name
195
179
  */
196
- lastName?: {
197
- [key: string]: unknown;
198
- };
180
+ lastName?: string | null;
199
181
  /**
200
182
  * Date of birth
201
183
  */
202
- dateOfBirth?: {
203
- [key: string]: unknown;
204
- };
184
+ dateOfBirth?: string | null;
205
185
  /**
206
186
  * Phone number
207
187
  */
208
- phone?: {
209
- [key: string]: unknown;
210
- };
188
+ phone?: string | null;
211
189
  /**
212
190
  * Country of residence (2-letter code)
213
191
  */
214
- country?: {
215
- [key: string]: unknown;
216
- };
192
+ country?: string | null;
217
193
  /**
218
194
  * Nationality (2-letter code)
219
195
  */
220
- nationality?: {
221
- [key: string]: unknown;
222
- };
196
+ nationality?: string | null;
223
197
  /**
224
198
  * Gender code
225
199
  */
226
- gender?: {
227
- [key: string]: unknown;
228
- };
200
+ gender?: string | null;
229
201
  /**
230
202
  * City
231
203
  */
232
- city?: {
233
- [key: string]: unknown;
234
- };
204
+ city?: string | null;
235
205
  /**
236
206
  * Bio
237
207
  */
238
- bio?: {
239
- [key: string]: unknown;
240
- };
208
+ bio?: string | null;
241
209
  /**
242
210
  * Avatar URL
243
211
  */
244
- avatarUrl?: {
245
- [key: string]: unknown;
246
- };
212
+ avatarUrl?: string | null;
247
213
  /**
248
214
  * Cover image URL
249
215
  */
250
- coverImageUrl?: {
251
- [key: string]: unknown;
252
- };
216
+ coverImageUrl?: string | null;
253
217
  /**
254
218
  * Is free agent
255
219
  */
256
- isFreeAgent?: {
257
- [key: string]: unknown;
258
- };
220
+ isFreeAgent?: boolean | null;
259
221
  /**
260
222
  * Is EU visa holder
261
223
  */
262
- isEuVisaHolder?: {
263
- [key: string]: unknown;
264
- };
224
+ isEuVisaHolder?: boolean | null;
265
225
  /**
266
226
  * Visa expiration date
267
227
  */
268
- visaExpirationDate?: {
269
- [key: string]: unknown;
270
- };
228
+ visaExpirationDate?: string | null;
271
229
  /**
272
230
  * Marital status code
273
231
  */
274
- maritalStatusCode?: {
275
- [key: string]: unknown;
276
- };
232
+ maritalStatusCode?: string | null;
277
233
  /**
278
234
  * Languages spoken (codes)
279
235
  */
@@ -281,27 +237,19 @@ export type ProfileResponseDto = {
281
237
  /**
282
238
  * Preferred foot code
283
239
  */
284
- preferredFoot?: {
285
- [key: string]: unknown;
286
- };
240
+ preferredFoot?: string | null;
287
241
  /**
288
242
  * Height in cm
289
243
  */
290
- heightCm?: {
291
- [key: string]: unknown;
292
- };
244
+ heightCm?: number | null;
293
245
  /**
294
246
  * Weight in kg
295
247
  */
296
- weightKg?: {
297
- [key: string]: unknown;
298
- };
248
+ weightKg?: number | null;
299
249
  /**
300
250
  * Current club name
301
251
  */
302
- currentClub?: {
303
- [key: string]: unknown;
304
- };
252
+ currentClub?: string | null;
305
253
  /**
306
254
  * Previous clubs
307
255
  */
@@ -309,9 +257,7 @@ export type ProfileResponseDto = {
309
257
  /**
310
258
  * Main position code (e.g. "ST")
311
259
  */
312
- mainPosition?: {
313
- [key: string]: unknown;
314
- };
260
+ mainPosition?: string | null;
315
261
  /**
316
262
  * Additional position codes (e.g. ["RW","LW"])
317
263
  */
@@ -323,39 +269,27 @@ export type ProfileResponseDto = {
323
269
  /**
324
270
  * Agency name
325
271
  */
326
- agencyName?: {
327
- [key: string]: unknown;
328
- };
272
+ agencyName?: string | null;
329
273
  /**
330
274
  * Agency website URL
331
275
  */
332
- agencyWebsite?: {
333
- [key: string]: unknown;
334
- };
276
+ agencyWebsite?: string | null;
335
277
  /**
336
278
  * Primary market region code
337
279
  */
338
- primaryMarket?: {
339
- [key: string]: unknown;
340
- };
280
+ primaryMarket?: string | null;
341
281
  /**
342
282
  * Players represented (e.g. "1-5", "6-10", "more_than_10")
343
283
  */
344
- playersRepresented?: {
345
- [key: string]: unknown;
346
- };
284
+ playersRepresented?: string | null;
347
285
  /**
348
286
  * About the agency
349
287
  */
350
- aboutAgency?: {
351
- [key: string]: unknown;
352
- };
288
+ aboutAgency?: string | null;
353
289
  /**
354
290
  * Updated at
355
291
  */
356
- updatedAt?: {
357
- [key: string]: unknown;
358
- };
292
+ updatedAt?: string | null;
359
293
  };
360
294
  export type UpdateProfileDto = {
361
295
  /**
@@ -445,9 +379,7 @@ export type UpdateProfileDto = {
445
379
  /**
446
380
  * Main position code (e.g. "ST"), null to clear
447
381
  */
448
- mainPosition?: {
449
- [key: string]: unknown;
450
- };
382
+ mainPosition?: string | null;
451
383
  /**
452
384
  * Additional position codes (e.g. ["RW","LW"]), empty array to clear
453
385
  */
@@ -481,67 +413,33 @@ export type AchievementCatalogDto = {
481
413
  id: string;
482
414
  code: string;
483
415
  name: string;
484
- description?: {
485
- [key: string]: unknown;
486
- };
487
- iconUrl?: {
488
- [key: string]: unknown;
489
- };
490
- pointsAwarded?: {
491
- [key: string]: unknown;
492
- };
493
- category?: {
494
- [key: string]: unknown;
495
- };
496
- rarity?: {
497
- [key: string]: unknown;
498
- };
499
- isActive?: {
500
- [key: string]: unknown;
501
- };
416
+ description?: string | null;
417
+ iconUrl?: string | null;
418
+ pointsAwarded?: number | null;
419
+ category?: string | null;
420
+ rarity?: string | null;
421
+ isActive?: boolean | null;
502
422
  };
503
423
  export type UserAchievementResponseDto = {
504
424
  id: string;
505
425
  userId: string;
506
426
  achievementId: string;
507
- earnedAt?: {
508
- [key: string]: unknown;
509
- };
510
- progress?: {
511
- [key: string]: unknown;
512
- };
513
- isCompleted?: {
514
- [key: string]: unknown;
515
- };
427
+ earnedAt?: string | null;
428
+ progress?: number | null;
429
+ isCompleted?: boolean | null;
516
430
  achievement?: AchievementCatalogDto;
517
431
  };
518
432
  export type BodyMeasurementResponseDto = {
519
433
  id: string;
520
434
  userId: string;
521
- measurementDate?: {
522
- [key: string]: unknown;
523
- };
524
- imageUrl?: {
525
- [key: string]: unknown;
526
- };
527
- shoulderWidthCm?: {
528
- [key: string]: unknown;
529
- };
530
- chestCircumferenceCm?: {
531
- [key: string]: unknown;
532
- };
533
- waistCircumferenceCm?: {
534
- [key: string]: unknown;
535
- };
536
- hipCircumferenceCm?: {
537
- [key: string]: unknown;
538
- };
539
- processingStatus?: {
540
- [key: string]: unknown;
541
- };
542
- createdAt?: {
543
- [key: string]: unknown;
544
- };
435
+ measurementDate?: string | null;
436
+ imageUrl?: string | null;
437
+ shoulderWidthCm?: number | null;
438
+ chestCircumferenceCm?: number | null;
439
+ waistCircumferenceCm?: number | null;
440
+ hipCircumferenceCm?: number | null;
441
+ processingStatus?: string | null;
442
+ createdAt?: string | null;
545
443
  };
546
444
  export type CreateBodyMeasurementDto = {
547
445
  /**
@@ -552,21 +450,11 @@ export type CreateBodyMeasurementDto = {
552
450
  export type DocumentResponseDto = {
553
451
  id: string;
554
452
  userId: string;
555
- documentType?: {
556
- [key: string]: unknown;
557
- };
558
- fileUrl?: {
559
- [key: string]: unknown;
560
- };
561
- filePath?: {
562
- [key: string]: unknown;
563
- };
564
- status?: {
565
- [key: string]: unknown;
566
- };
567
- uploadedAt?: {
568
- [key: string]: unknown;
569
- };
453
+ documentType?: string | null;
454
+ fileUrl?: string | null;
455
+ filePath?: string | null;
456
+ status?: string | null;
457
+ uploadedAt?: string | null;
570
458
  };
571
459
  export type CreateDocumentDto = {
572
460
  /**
@@ -584,7 +472,7 @@ export type CreateDocumentDto = {
584
472
  /**
585
473
  * KYC verification id this document belongs to
586
474
  */
587
- kycVerificationId: string;
475
+ kycVerificationId?: string;
588
476
  };
589
477
  export type IndexItemDto = {
590
478
  /**
@@ -660,57 +548,39 @@ export type OrganizationResponseDto = {
660
548
  /**
661
549
  * Country code
662
550
  */
663
- country?: {
664
- [key: string]: unknown;
665
- };
551
+ country?: string | null;
666
552
  /**
667
553
  * League tier code
668
554
  */
669
- leagueTier?: {
670
- [key: string]: unknown;
671
- };
555
+ leagueTier?: string | null;
672
556
  /**
673
557
  * FIFA club category code
674
558
  */
675
- fifaCategory?: {
676
- [key: string]: unknown;
677
- };
559
+ fifaCategory?: string | null;
678
560
  /**
679
561
  * Stadium name
680
562
  */
681
- stadiumName?: {
682
- [key: string]: unknown;
683
- };
563
+ stadiumName?: string | null;
684
564
  /**
685
565
  * Official club email
686
566
  */
687
- email?: {
688
- [key: string]: unknown;
689
- };
567
+ email?: string | null;
690
568
  /**
691
569
  * Official website
692
570
  */
693
- website?: {
694
- [key: string]: unknown;
695
- };
571
+ website?: string | null;
696
572
  /**
697
573
  * Club description
698
574
  */
699
- description?: {
700
- [key: string]: unknown;
701
- };
575
+ description?: string | null;
702
576
  /**
703
577
  * Phone
704
578
  */
705
- phone?: {
706
- [key: string]: unknown;
707
- };
579
+ phone?: string | null;
708
580
  /**
709
581
  * Updated at
710
582
  */
711
- updatedAt?: {
712
- [key: string]: unknown;
713
- };
583
+ updatedAt?: string | null;
714
584
  };
715
585
  export type UpdateOrganizationDto = {
716
586
  /**
@@ -755,24 +625,12 @@ export type VideoResponseDto = {
755
625
  userId: string;
756
626
  title: string;
757
627
  videoUrl: string;
758
- videoType?: {
759
- [key: string]: unknown;
760
- };
761
- durationSeconds?: {
762
- [key: string]: unknown;
763
- };
764
- uploadStatus?: {
765
- [key: string]: unknown;
766
- };
767
- processingStatus?: {
768
- [key: string]: unknown;
769
- };
770
- isPublic?: {
771
- [key: string]: unknown;
772
- };
773
- uploadDate?: {
774
- [key: string]: unknown;
775
- };
628
+ videoType?: string | null;
629
+ durationSeconds?: number | null;
630
+ uploadStatus?: string | null;
631
+ processingStatus?: string | null;
632
+ isPublic?: boolean | null;
633
+ uploadDate?: string | null;
776
634
  };
777
635
  export type CreateVideoDto = {
778
636
  /**
@@ -806,9 +664,16 @@ export type GetAuthMeData = {
806
664
  query?: never;
807
665
  url: '/auth/me';
808
666
  };
667
+ export type GetAuthMeErrors = {
668
+ /**
669
+ * Unauthorized
670
+ */
671
+ 401: unknown;
672
+ };
809
673
  export type GetAuthMeResponses = {
810
- 200: unknown;
674
+ 200: AuthMeResponseDto;
811
675
  };
676
+ export type GetAuthMeResponse = GetAuthMeResponses[keyof GetAuthMeResponses];
812
677
  export type DeletePlayersMeData = {
813
678
  body?: never;
814
679
  path?: never;
package/index.ts CHANGED
@@ -15,6 +15,7 @@ export {
15
15
  } from './sdk.gen.js';
16
16
  export type {
17
17
  AchievementCatalogDto,
18
+ AuthMeResponseDto,
18
19
  BodyMeasurementResponseDto,
19
20
  CareerAchievementDto,
20
21
  ClientOptions,
@@ -39,6 +40,8 @@ export type {
39
40
  GetAchievementsResponse,
40
41
  GetAchievementsResponses,
41
42
  GetAuthMeData,
43
+ GetAuthMeErrors,
44
+ GetAuthMeResponse,
42
45
  GetAuthMeResponses,
43
46
  GetBodyMeasurementsMeData,
44
47
  GetBodyMeasurementsMeErrors,
@@ -113,3 +116,5 @@ export type {
113
116
  UserAchievementResponseDto,
114
117
  VideoResponseDto,
115
118
  } from './types.gen.js';
119
+
120
+ export { client, type CreateClientConfig } from './client.gen.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalscoutme/api-client",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "GlobalScoutMe API client (generated)",
5
5
  "author": "GlobalScoutMe",
6
6
  "license": "UNLICENSED",
package/sdk.gen.ts CHANGED
@@ -19,6 +19,7 @@ import type {
19
19
  GetAchievementsMeResponses,
20
20
  GetAchievementsResponses,
21
21
  GetAuthMeData,
22
+ GetAuthMeErrors,
22
23
  GetAuthMeResponses,
23
24
  GetBodyMeasurementsMeData,
24
25
  GetBodyMeasurementsMeErrors,
@@ -113,12 +114,12 @@ class HeyApiRegistry<T> {
113
114
  }
114
115
 
115
116
  export class Auth extends HeyApiClient {
116
- public authControllerMe<ThrowOnError extends boolean = false>(
117
+ public getAuthMe<ThrowOnError extends boolean = false>(
117
118
  options?: Options<GetAuthMeData, ThrowOnError>,
118
119
  ) {
119
120
  return (options?.client ?? this.client).get<
120
121
  GetAuthMeResponses,
121
- unknown,
122
+ GetAuthMeErrors,
122
123
  ThrowOnError
123
124
  >({ url: '/auth/me', ...options });
124
125
  }
package/types.gen.ts CHANGED
@@ -4,6 +4,17 @@ export type ClientOptions = {
4
4
  baseUrl: string;
5
5
  };
6
6
 
7
+ export type AuthMeResponseDto = {
8
+ /**
9
+ * Supabase auth user id (JWT sub)
10
+ */
11
+ id: string;
12
+ /**
13
+ * user_types.code the user is registered as (e.g. "player", "coach", "club_admin", "scouter"). Null when not yet set.
14
+ */
15
+ userType?: string | null;
16
+ };
17
+
7
18
  export type PlayerResponseDto = {
8
19
  /**
9
20
  * Internal user_data id (UUID)
@@ -16,33 +27,23 @@ export type PlayerResponseDto = {
16
27
  /**
17
28
  * First name
18
29
  */
19
- firstName?: {
20
- [key: string]: unknown;
21
- };
30
+ firstName?: string | null;
22
31
  /**
23
32
  * Last name
24
33
  */
25
- lastName?: {
26
- [key: string]: unknown;
27
- };
34
+ lastName?: string | null;
28
35
  /**
29
36
  * Date of birth
30
37
  */
31
- dateOfBirth?: {
32
- [key: string]: unknown;
33
- };
38
+ dateOfBirth?: string | null;
34
39
  /**
35
40
  * Registration step code
36
41
  */
37
- registrationStep?: {
38
- [key: string]: unknown;
39
- };
42
+ registrationStep?: string | null;
40
43
  /**
41
44
  * User type code (player / scout / coach)
42
45
  */
43
- userType?: {
44
- [key: string]: unknown;
45
- };
46
+ userType?: string | null;
46
47
  /**
47
48
  * KYC verified flag
48
49
  */
@@ -50,42 +51,30 @@ export type PlayerResponseDto = {
50
51
  /**
51
52
  * Avatar URL
52
53
  */
53
- avatarUrl?: {
54
- [key: string]: unknown;
55
- };
54
+ avatarUrl?: string | null;
56
55
  /**
57
56
  * Created at
58
57
  */
59
- createdAt?: {
60
- [key: string]: unknown;
61
- };
58
+ createdAt?: string | null;
62
59
  /**
63
60
  * Updated at
64
61
  */
65
- updatedAt?: {
66
- [key: string]: unknown;
67
- };
62
+ updatedAt?: string | null;
68
63
  };
69
64
 
70
65
  export type DashboardResponseDto = {
71
66
  /**
72
67
  * First name
73
68
  */
74
- firstName?: {
75
- [key: string]: unknown;
76
- };
69
+ firstName?: string | null;
77
70
  /**
78
71
  * Last name
79
72
  */
80
- lastName?: {
81
- [key: string]: unknown;
82
- };
73
+ lastName?: string | null;
83
74
  /**
84
75
  * Avatar URL
85
76
  */
86
- avatarUrl?: {
87
- [key: string]: unknown;
88
- };
77
+ avatarUrl?: string | null;
89
78
  /**
90
79
  * Profile completion 0–100
91
80
  */
@@ -122,9 +111,15 @@ export type DashboardResponseDto = {
122
111
 
123
112
  export type UpdatePlayerDto = {
124
113
  /**
125
- * Registration step code
114
+ * Registration step code (Part C onboarding).
126
115
  */
127
- registrationStep?: string;
116
+ registrationStep?:
117
+ | 'signup'
118
+ | 'kyc_pending'
119
+ | 'kyc_submitted'
120
+ | 'profile_filling'
121
+ | 'ai_measurements'
122
+ | 'complete';
128
123
  /**
129
124
  * First name
130
125
  */
@@ -136,9 +131,7 @@ export type UpdatePlayerDto = {
136
131
  /**
137
132
  * Date of birth (ISO 8601 date)
138
133
  */
139
- dateOfBirth?: {
140
- [key: string]: unknown;
141
- };
134
+ dateOfBirth?: string | null;
142
135
  /**
143
136
  * User type code
144
137
  */
@@ -195,93 +188,63 @@ export type ProfileResponseDto = {
195
188
  /**
196
189
  * First name
197
190
  */
198
- firstName?: {
199
- [key: string]: unknown;
200
- };
191
+ firstName?: string | null;
201
192
  /**
202
193
  * Last name
203
194
  */
204
- lastName?: {
205
- [key: string]: unknown;
206
- };
195
+ lastName?: string | null;
207
196
  /**
208
197
  * Date of birth
209
198
  */
210
- dateOfBirth?: {
211
- [key: string]: unknown;
212
- };
199
+ dateOfBirth?: string | null;
213
200
  /**
214
201
  * Phone number
215
202
  */
216
- phone?: {
217
- [key: string]: unknown;
218
- };
203
+ phone?: string | null;
219
204
  /**
220
205
  * Country of residence (2-letter code)
221
206
  */
222
- country?: {
223
- [key: string]: unknown;
224
- };
207
+ country?: string | null;
225
208
  /**
226
209
  * Nationality (2-letter code)
227
210
  */
228
- nationality?: {
229
- [key: string]: unknown;
230
- };
211
+ nationality?: string | null;
231
212
  /**
232
213
  * Gender code
233
214
  */
234
- gender?: {
235
- [key: string]: unknown;
236
- };
215
+ gender?: string | null;
237
216
  /**
238
217
  * City
239
218
  */
240
- city?: {
241
- [key: string]: unknown;
242
- };
219
+ city?: string | null;
243
220
  /**
244
221
  * Bio
245
222
  */
246
- bio?: {
247
- [key: string]: unknown;
248
- };
223
+ bio?: string | null;
249
224
  /**
250
225
  * Avatar URL
251
226
  */
252
- avatarUrl?: {
253
- [key: string]: unknown;
254
- };
227
+ avatarUrl?: string | null;
255
228
  /**
256
229
  * Cover image URL
257
230
  */
258
- coverImageUrl?: {
259
- [key: string]: unknown;
260
- };
231
+ coverImageUrl?: string | null;
261
232
  /**
262
233
  * Is free agent
263
234
  */
264
- isFreeAgent?: {
265
- [key: string]: unknown;
266
- };
235
+ isFreeAgent?: boolean | null;
267
236
  /**
268
237
  * Is EU visa holder
269
238
  */
270
- isEuVisaHolder?: {
271
- [key: string]: unknown;
272
- };
239
+ isEuVisaHolder?: boolean | null;
273
240
  /**
274
241
  * Visa expiration date
275
242
  */
276
- visaExpirationDate?: {
277
- [key: string]: unknown;
278
- };
243
+ visaExpirationDate?: string | null;
279
244
  /**
280
245
  * Marital status code
281
246
  */
282
- maritalStatusCode?: {
283
- [key: string]: unknown;
284
- };
247
+ maritalStatusCode?: string | null;
285
248
  /**
286
249
  * Languages spoken (codes)
287
250
  */
@@ -289,27 +252,19 @@ export type ProfileResponseDto = {
289
252
  /**
290
253
  * Preferred foot code
291
254
  */
292
- preferredFoot?: {
293
- [key: string]: unknown;
294
- };
255
+ preferredFoot?: string | null;
295
256
  /**
296
257
  * Height in cm
297
258
  */
298
- heightCm?: {
299
- [key: string]: unknown;
300
- };
259
+ heightCm?: number | null;
301
260
  /**
302
261
  * Weight in kg
303
262
  */
304
- weightKg?: {
305
- [key: string]: unknown;
306
- };
263
+ weightKg?: number | null;
307
264
  /**
308
265
  * Current club name
309
266
  */
310
- currentClub?: {
311
- [key: string]: unknown;
312
- };
267
+ currentClub?: string | null;
313
268
  /**
314
269
  * Previous clubs
315
270
  */
@@ -317,9 +272,7 @@ export type ProfileResponseDto = {
317
272
  /**
318
273
  * Main position code (e.g. "ST")
319
274
  */
320
- mainPosition?: {
321
- [key: string]: unknown;
322
- };
275
+ mainPosition?: string | null;
323
276
  /**
324
277
  * Additional position codes (e.g. ["RW","LW"])
325
278
  */
@@ -331,39 +284,27 @@ export type ProfileResponseDto = {
331
284
  /**
332
285
  * Agency name
333
286
  */
334
- agencyName?: {
335
- [key: string]: unknown;
336
- };
287
+ agencyName?: string | null;
337
288
  /**
338
289
  * Agency website URL
339
290
  */
340
- agencyWebsite?: {
341
- [key: string]: unknown;
342
- };
291
+ agencyWebsite?: string | null;
343
292
  /**
344
293
  * Primary market region code
345
294
  */
346
- primaryMarket?: {
347
- [key: string]: unknown;
348
- };
295
+ primaryMarket?: string | null;
349
296
  /**
350
297
  * Players represented (e.g. "1-5", "6-10", "more_than_10")
351
298
  */
352
- playersRepresented?: {
353
- [key: string]: unknown;
354
- };
299
+ playersRepresented?: string | null;
355
300
  /**
356
301
  * About the agency
357
302
  */
358
- aboutAgency?: {
359
- [key: string]: unknown;
360
- };
303
+ aboutAgency?: string | null;
361
304
  /**
362
305
  * Updated at
363
306
  */
364
- updatedAt?: {
365
- [key: string]: unknown;
366
- };
307
+ updatedAt?: string | null;
367
308
  };
368
309
 
369
310
  export type UpdateProfileDto = {
@@ -454,9 +395,7 @@ export type UpdateProfileDto = {
454
395
  /**
455
396
  * Main position code (e.g. "ST"), null to clear
456
397
  */
457
- mainPosition?: {
458
- [key: string]: unknown;
459
- };
398
+ mainPosition?: string | null;
460
399
  /**
461
400
  * Additional position codes (e.g. ["RW","LW"]), empty array to clear
462
401
  */
@@ -491,69 +430,35 @@ export type AchievementCatalogDto = {
491
430
  id: string;
492
431
  code: string;
493
432
  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
- };
433
+ description?: string | null;
434
+ iconUrl?: string | null;
435
+ pointsAwarded?: number | null;
436
+ category?: string | null;
437
+ rarity?: string | null;
438
+ isActive?: boolean | null;
512
439
  };
513
440
 
514
441
  export type UserAchievementResponseDto = {
515
442
  id: string;
516
443
  userId: string;
517
444
  achievementId: string;
518
- earnedAt?: {
519
- [key: string]: unknown;
520
- };
521
- progress?: {
522
- [key: string]: unknown;
523
- };
524
- isCompleted?: {
525
- [key: string]: unknown;
526
- };
445
+ earnedAt?: string | null;
446
+ progress?: number | null;
447
+ isCompleted?: boolean | null;
527
448
  achievement?: AchievementCatalogDto;
528
449
  };
529
450
 
530
451
  export type BodyMeasurementResponseDto = {
531
452
  id: string;
532
453
  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
- };
454
+ measurementDate?: string | null;
455
+ imageUrl?: string | null;
456
+ shoulderWidthCm?: number | null;
457
+ chestCircumferenceCm?: number | null;
458
+ waistCircumferenceCm?: number | null;
459
+ hipCircumferenceCm?: number | null;
460
+ processingStatus?: string | null;
461
+ createdAt?: string | null;
557
462
  };
558
463
 
559
464
  export type CreateBodyMeasurementDto = {
@@ -566,21 +471,11 @@ export type CreateBodyMeasurementDto = {
566
471
  export type DocumentResponseDto = {
567
472
  id: string;
568
473
  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
- };
474
+ documentType?: string | null;
475
+ fileUrl?: string | null;
476
+ filePath?: string | null;
477
+ status?: string | null;
478
+ uploadedAt?: string | null;
584
479
  };
585
480
 
586
481
  export type CreateDocumentDto = {
@@ -599,7 +494,7 @@ export type CreateDocumentDto = {
599
494
  /**
600
495
  * KYC verification id this document belongs to
601
496
  */
602
- kycVerificationId: string;
497
+ kycVerificationId?: string;
603
498
  };
604
499
 
605
500
  export type IndexItemDto = {
@@ -679,57 +574,39 @@ export type OrganizationResponseDto = {
679
574
  /**
680
575
  * Country code
681
576
  */
682
- country?: {
683
- [key: string]: unknown;
684
- };
577
+ country?: string | null;
685
578
  /**
686
579
  * League tier code
687
580
  */
688
- leagueTier?: {
689
- [key: string]: unknown;
690
- };
581
+ leagueTier?: string | null;
691
582
  /**
692
583
  * FIFA club category code
693
584
  */
694
- fifaCategory?: {
695
- [key: string]: unknown;
696
- };
585
+ fifaCategory?: string | null;
697
586
  /**
698
587
  * Stadium name
699
588
  */
700
- stadiumName?: {
701
- [key: string]: unknown;
702
- };
589
+ stadiumName?: string | null;
703
590
  /**
704
591
  * Official club email
705
592
  */
706
- email?: {
707
- [key: string]: unknown;
708
- };
593
+ email?: string | null;
709
594
  /**
710
595
  * Official website
711
596
  */
712
- website?: {
713
- [key: string]: unknown;
714
- };
597
+ website?: string | null;
715
598
  /**
716
599
  * Club description
717
600
  */
718
- description?: {
719
- [key: string]: unknown;
720
- };
601
+ description?: string | null;
721
602
  /**
722
603
  * Phone
723
604
  */
724
- phone?: {
725
- [key: string]: unknown;
726
- };
605
+ phone?: string | null;
727
606
  /**
728
607
  * Updated at
729
608
  */
730
- updatedAt?: {
731
- [key: string]: unknown;
732
- };
609
+ updatedAt?: string | null;
733
610
  };
734
611
 
735
612
  export type UpdateOrganizationDto = {
@@ -776,24 +653,12 @@ export type VideoResponseDto = {
776
653
  userId: string;
777
654
  title: string;
778
655
  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
- };
656
+ videoType?: string | null;
657
+ durationSeconds?: number | null;
658
+ uploadStatus?: string | null;
659
+ processingStatus?: string | null;
660
+ isPublic?: boolean | null;
661
+ uploadDate?: string | null;
797
662
  };
798
663
 
799
664
  export type CreateVideoDto = {
@@ -830,10 +695,19 @@ export type GetAuthMeData = {
830
695
  url: '/auth/me';
831
696
  };
832
697
 
698
+ export type GetAuthMeErrors = {
699
+ /**
700
+ * Unauthorized
701
+ */
702
+ 401: unknown;
703
+ };
704
+
833
705
  export type GetAuthMeResponses = {
834
- 200: unknown;
706
+ 200: AuthMeResponseDto;
835
707
  };
836
708
 
709
+ export type GetAuthMeResponse = GetAuthMeResponses[keyof GetAuthMeResponses];
710
+
837
711
  export type DeletePlayersMeData = {
838
712
  body?: never;
839
713
  path?: never;