@globalscoutme/api-client 1.1.3 → 1.1.5

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/types.gen.ts CHANGED
@@ -322,6 +322,97 @@ export type PlayerSearchResultDto = {
322
322
  pageSize: number;
323
323
  };
324
324
 
325
+ export type BodyMeasurementProfileDto = {
326
+ id: string;
327
+ createdAt?: string | null;
328
+ selfReportedHeightCm?: number | null;
329
+ wingspanToSkeletonRatio?: number | null;
330
+ legToTorsoRatio?: number | null;
331
+ femurToTibiaRatio?: number | null;
332
+ shoulderToHipRatio?: number | null;
333
+ headCircumferenceCm?: number | null;
334
+ neckCircumferenceCm?: number | null;
335
+ chestCircumferenceCm?: number | null;
336
+ waistCircumferenceCm?: number | null;
337
+ hipCircumferenceCm?: number | null;
338
+ footLengthCm?: number | null;
339
+ footWidthCm?: number | null;
340
+ qualityStatus?: string | null;
341
+ metricStatus?: {
342
+ [key: string]: unknown;
343
+ };
344
+ poseLandmarksContext?: {
345
+ [key: string]: unknown;
346
+ };
347
+ isUsable: boolean;
348
+ };
349
+
350
+ export type CmjMeasurementProfileDto = {
351
+ id: string;
352
+ createdAt?: string | null;
353
+ verticalJumpCm?: number | null;
354
+ qualityTier?: string | null;
355
+ retakeReason?: string | null;
356
+ isUsable: boolean;
357
+ };
358
+
359
+ export type MeasurementSessionMetricsDto = {
360
+ selfReportedHeightCm?: number | null;
361
+ verticalJumpCm?: number | null;
362
+ wingspanToSkeletonRatio?: number | null;
363
+ legToTorsoRatio?: number | null;
364
+ femurToTibiaRatio?: number | null;
365
+ shoulderToHipRatio?: number | null;
366
+ };
367
+
368
+ export type MeasurementTagEvaluationDto = {
369
+ key?: string;
370
+ status?: string;
371
+ label?: string;
372
+ };
373
+
374
+ export type MeasurementSessionDto = {
375
+ id: string;
376
+ bodyMeasurementId: string;
377
+ jumpMeasurementId: string;
378
+ contractVersion?: string | null;
379
+ schemaVersion?: string | null;
380
+ rulesetId?: string | null;
381
+ rulesetVersion?: string | null;
382
+ metrics: MeasurementSessionMetricsDto;
383
+ declaredPositions?: {
384
+ [key: string]: unknown;
385
+ };
386
+ biomechanicalAlignment?: {
387
+ [key: string]: unknown;
388
+ };
389
+ biomechanicalAlignmentCopyKeys?: Array<string>;
390
+ checkedTagKeys?: Array<string>;
391
+ tagEvaluations?: Array<MeasurementTagEvaluationDto>;
392
+ qualitySummary?: {
393
+ [key: string]: unknown;
394
+ };
395
+ playerDisplay?: {
396
+ [key: string]: unknown;
397
+ };
398
+ scoutDisplay?: {
399
+ [key: string]: unknown;
400
+ };
401
+ metricDefinitions?: {
402
+ [key: string]: unknown;
403
+ };
404
+ createdAt?: string | null;
405
+ updatedAt?: string | null;
406
+ };
407
+
408
+ export type MeasurementProfileResponseDto = {
409
+ status: 'missing' | 'partial' | 'ready' | 'needs_update';
410
+ body?: BodyMeasurementProfileDto | null;
411
+ cmj?: CmjMeasurementProfileDto | null;
412
+ session?: MeasurementSessionDto | null;
413
+ updatedAt?: string | null;
414
+ };
415
+
325
416
  export type PlayerReportViewDto = {
326
417
  technicalPillar: string;
327
418
  physicalPillar: string;
@@ -535,11 +626,33 @@ export type ReportPurchaseStatusResponseDto = {
535
626
  prerequisites: Array<ReportPrerequisiteDto>;
536
627
  };
537
628
 
629
+ export type AiReportSubcategoryDto = {
630
+ label: string;
631
+ observation: string;
632
+ evidenceClips?: Array<number>;
633
+ };
634
+
635
+ export type AiReportPillarDetailDto = {
636
+ summary: string;
637
+ subcategories: Array<AiReportSubcategoryDto>;
638
+ };
639
+
640
+ export type AiReportImprovementAreaDto = {
641
+ label: string;
642
+ observation: string;
643
+ };
644
+
538
645
  export type AiReportViewDto = {
539
- technicalPillar: string;
540
- physicalPillar: string;
541
- tacticalPillar: string;
542
- mentalPillar: string;
646
+ verdict?: string | null;
647
+ technical?: AiReportPillarDetailDto | null;
648
+ physical?: AiReportPillarDetailDto | null;
649
+ tactical?: AiReportPillarDetailDto | null;
650
+ mental?: AiReportPillarDetailDto | null;
651
+ improvementAreas?: Array<AiReportImprovementAreaDto>;
652
+ technicalPillar?: string | null;
653
+ physicalPillar?: string | null;
654
+ tacticalPillar?: string | null;
655
+ mentalPillar?: string | null;
543
656
  };
544
657
 
545
658
  export type AiReportClipTargetDto = {
@@ -727,6 +840,11 @@ export type UploadUrlResponseDto = {
727
840
  expiresIn: number;
728
841
  };
729
842
 
843
+ export type CreateMeasurementPlayerSessionDto = {
844
+ bodyMeasurementId: string;
845
+ jumpMeasurementId: string;
846
+ };
847
+
730
848
  export type PreviousClubDto = {
731
849
  /**
732
850
  * Club name
@@ -1672,6 +1790,43 @@ export type StartKycResponseDto = {
1672
1790
  country?: string | null;
1673
1791
  };
1674
1792
 
1793
+ export type SmileLinkRequestDto = {
1794
+ /**
1795
+ * ISO 3166-1 alpha-2 country code (lowercase, matches index.countries)
1796
+ */
1797
+ country: string;
1798
+ /**
1799
+ * Channel initiating the KYC flow
1800
+ */
1801
+ channel: 'web' | 'mobile';
1802
+ /**
1803
+ * URL SmileID redirects the user back to after completing verification (frontend callback page)
1804
+ */
1805
+ returnUrl: string;
1806
+ };
1807
+
1808
+ export type SmileLinkResponseDto = {
1809
+ /**
1810
+ * SmileID hosted verification URL — redirect the user here to complete KYC. Null when no redirect is needed (approved, blocked, or processing).
1811
+ */
1812
+ url?: string | null;
1813
+ /**
1814
+ * SmileID job identifier
1815
+ */
1816
+ jobId?: string | null;
1817
+ status:
1818
+ | 'pending'
1819
+ | 'capture_started'
1820
+ | 'processing'
1821
+ | 'approved'
1822
+ | 'rejected'
1823
+ | 'blocked';
1824
+ /**
1825
+ * Number of retries left before the account is blocked
1826
+ */
1827
+ retriesRemaining: number;
1828
+ };
1829
+
1675
1830
  export type WebhookPartnerParamsDto = {
1676
1831
  /**
1677
1832
  * Our job identifier echoed back by SmileID
@@ -1736,102 +1891,6 @@ export type CancelKycRequestDto = {
1736
1891
  jobId: string;
1737
1892
  };
1738
1893
 
1739
- export type BodyMeasurementProfileDto = {
1740
- id: string;
1741
- createdAt?: string | null;
1742
- selfReportedHeightCm?: number | null;
1743
- wingspanToSkeletonRatio?: number | null;
1744
- legToTorsoRatio?: number | null;
1745
- femurToTibiaRatio?: number | null;
1746
- shoulderToHipRatio?: number | null;
1747
- headCircumferenceCm?: number | null;
1748
- neckCircumferenceCm?: number | null;
1749
- chestCircumferenceCm?: number | null;
1750
- waistCircumferenceCm?: number | null;
1751
- hipCircumferenceCm?: number | null;
1752
- footLengthCm?: number | null;
1753
- footWidthCm?: number | null;
1754
- qualityStatus?: string | null;
1755
- metricStatus?: {
1756
- [key: string]: unknown;
1757
- };
1758
- poseLandmarksContext?: {
1759
- [key: string]: unknown;
1760
- };
1761
- isUsable: boolean;
1762
- };
1763
-
1764
- export type CmjMeasurementProfileDto = {
1765
- id: string;
1766
- createdAt?: string | null;
1767
- verticalJumpCm?: number | null;
1768
- qualityTier?: string | null;
1769
- retakeReason?: string | null;
1770
- isUsable: boolean;
1771
- };
1772
-
1773
- export type MeasurementSessionMetricsDto = {
1774
- selfReportedHeightCm?: number | null;
1775
- verticalJumpCm?: number | null;
1776
- wingspanToSkeletonRatio?: number | null;
1777
- legToTorsoRatio?: number | null;
1778
- femurToTibiaRatio?: number | null;
1779
- shoulderToHipRatio?: number | null;
1780
- };
1781
-
1782
- export type MeasurementTagEvaluationDto = {
1783
- key?: string;
1784
- status?: string;
1785
- label?: string;
1786
- };
1787
-
1788
- export type MeasurementSessionDto = {
1789
- id: string;
1790
- bodyMeasurementId: string;
1791
- jumpMeasurementId: string;
1792
- contractVersion?: string | null;
1793
- schemaVersion?: string | null;
1794
- rulesetId?: string | null;
1795
- rulesetVersion?: string | null;
1796
- metrics: MeasurementSessionMetricsDto;
1797
- declaredPositions?: {
1798
- [key: string]: unknown;
1799
- };
1800
- biomechanicalAlignment?: {
1801
- [key: string]: unknown;
1802
- };
1803
- biomechanicalAlignmentCopyKeys?: Array<string>;
1804
- checkedTagKeys?: Array<string>;
1805
- tagEvaluations?: Array<MeasurementTagEvaluationDto>;
1806
- qualitySummary?: {
1807
- [key: string]: unknown;
1808
- };
1809
- playerDisplay?: {
1810
- [key: string]: unknown;
1811
- };
1812
- scoutDisplay?: {
1813
- [key: string]: unknown;
1814
- };
1815
- metricDefinitions?: {
1816
- [key: string]: unknown;
1817
- };
1818
- createdAt?: string | null;
1819
- updatedAt?: string | null;
1820
- };
1821
-
1822
- export type MeasurementProfileResponseDto = {
1823
- status: 'missing' | 'partial' | 'ready' | 'needs_update';
1824
- body?: BodyMeasurementProfileDto | null;
1825
- cmj?: CmjMeasurementProfileDto | null;
1826
- session?: MeasurementSessionDto | null;
1827
- updatedAt?: string | null;
1828
- };
1829
-
1830
- export type CreateMeasurementPlayerSessionDto = {
1831
- bodyMeasurementId: string;
1832
- jumpMeasurementId: string;
1833
- };
1834
-
1835
1894
  export type TrainingContentListItemDto = {
1836
1895
  id: string;
1837
1896
  title: string;
@@ -2229,6 +2288,33 @@ export type PostApiPlayersSearchResponses = {
2229
2288
  export type PostApiPlayersSearchResponse =
2230
2289
  PostApiPlayersSearchResponses[keyof PostApiPlayersSearchResponses];
2231
2290
 
2291
+ export type GetApiPlayersByIdMeasurementsData = {
2292
+ body?: never;
2293
+ path: {
2294
+ id: string;
2295
+ };
2296
+ query?: never;
2297
+ url: '/api/players/{id}/measurements';
2298
+ };
2299
+
2300
+ export type GetApiPlayersByIdMeasurementsErrors = {
2301
+ /**
2302
+ * Unauthorized
2303
+ */
2304
+ 401: unknown;
2305
+ /**
2306
+ * Player not found
2307
+ */
2308
+ 404: unknown;
2309
+ };
2310
+
2311
+ export type GetApiPlayersByIdMeasurementsResponses = {
2312
+ 200: MeasurementProfileResponseDto;
2313
+ };
2314
+
2315
+ export type GetApiPlayersByIdMeasurementsResponse =
2316
+ GetApiPlayersByIdMeasurementsResponses[keyof GetApiPlayersByIdMeasurementsResponses];
2317
+
2232
2318
  export type GetApiPlayersByIdReportData = {
2233
2319
  body?: never;
2234
2320
  path: {
@@ -2559,6 +2645,66 @@ export type PostApiStorageUploadUrlResponses = {
2559
2645
  export type PostApiStorageUploadUrlResponse =
2560
2646
  PostApiStorageUploadUrlResponses[keyof PostApiStorageUploadUrlResponses];
2561
2647
 
2648
+ export type GetApiMeasurementsProfileMeData = {
2649
+ body?: never;
2650
+ path?: never;
2651
+ query?: never;
2652
+ url: '/api/measurements/profile/me';
2653
+ };
2654
+
2655
+ export type GetApiMeasurementsProfileMeErrors = {
2656
+ /**
2657
+ * Unauthorized
2658
+ */
2659
+ 401: unknown;
2660
+ };
2661
+
2662
+ export type GetApiMeasurementsProfileMeResponses = {
2663
+ /**
2664
+ * Latest combined measurement profile
2665
+ */
2666
+ 200: MeasurementProfileResponseDto;
2667
+ };
2668
+
2669
+ export type GetApiMeasurementsProfileMeResponse =
2670
+ GetApiMeasurementsProfileMeResponses[keyof GetApiMeasurementsProfileMeResponses];
2671
+
2672
+ export type PostApiMeasurementsPlayerSessionMeData = {
2673
+ body: CreateMeasurementPlayerSessionDto;
2674
+ path?: never;
2675
+ query?: never;
2676
+ url: '/api/measurements/player-session/me';
2677
+ };
2678
+
2679
+ export type PostApiMeasurementsPlayerSessionMeErrors = {
2680
+ /**
2681
+ * Missing measurement ids
2682
+ */
2683
+ 400: unknown;
2684
+ /**
2685
+ * Unauthorized
2686
+ */
2687
+ 401: unknown;
2688
+ /**
2689
+ * Missing body or CMJ measurement
2690
+ */
2691
+ 409: unknown;
2692
+ /**
2693
+ * Interpretation service down
2694
+ */
2695
+ 503: unknown;
2696
+ };
2697
+
2698
+ export type PostApiMeasurementsPlayerSessionMeResponses = {
2699
+ /**
2700
+ * Combined measurement player session
2701
+ */
2702
+ 201: MeasurementSessionDto;
2703
+ };
2704
+
2705
+ export type PostApiMeasurementsPlayerSessionMeResponse =
2706
+ PostApiMeasurementsPlayerSessionMeResponses[keyof PostApiMeasurementsPlayerSessionMeResponses];
2707
+
2562
2708
  export type GetApiProfileMeData = {
2563
2709
  body?: never;
2564
2710
  path?: never;
@@ -3346,6 +3492,27 @@ export type PostApiKycStartResponses = {
3346
3492
  export type PostApiKycStartResponse =
3347
3493
  PostApiKycStartResponses[keyof PostApiKycStartResponses];
3348
3494
 
3495
+ export type PostApiKycSmileLinkData = {
3496
+ body: SmileLinkRequestDto;
3497
+ path?: never;
3498
+ query?: never;
3499
+ url: '/api/kyc/smile-link';
3500
+ };
3501
+
3502
+ export type PostApiKycSmileLinkErrors = {
3503
+ /**
3504
+ * Invalid request
3505
+ */
3506
+ 400: unknown;
3507
+ };
3508
+
3509
+ export type PostApiKycSmileLinkResponses = {
3510
+ 200: SmileLinkResponseDto;
3511
+ };
3512
+
3513
+ export type PostApiKycSmileLinkResponse =
3514
+ PostApiKycSmileLinkResponses[keyof PostApiKycSmileLinkResponses];
3515
+
3349
3516
  export type PostApiKycWebhookData = {
3350
3517
  body: KycWebhookDto;
3351
3518
  path?: never;
@@ -3452,66 +3619,6 @@ export type GetApiKycStatusByUserIdResponses = {
3452
3619
  export type GetApiKycStatusByUserIdResponse =
3453
3620
  GetApiKycStatusByUserIdResponses[keyof GetApiKycStatusByUserIdResponses];
3454
3621
 
3455
- export type GetApiMeasurementsProfileMeData = {
3456
- body?: never;
3457
- path?: never;
3458
- query?: never;
3459
- url: '/api/measurements/profile/me';
3460
- };
3461
-
3462
- export type GetApiMeasurementsProfileMeErrors = {
3463
- /**
3464
- * Unauthorized
3465
- */
3466
- 401: unknown;
3467
- };
3468
-
3469
- export type GetApiMeasurementsProfileMeResponses = {
3470
- /**
3471
- * Latest combined measurement profile
3472
- */
3473
- 200: MeasurementProfileResponseDto;
3474
- };
3475
-
3476
- export type GetApiMeasurementsProfileMeResponse =
3477
- GetApiMeasurementsProfileMeResponses[keyof GetApiMeasurementsProfileMeResponses];
3478
-
3479
- export type PostApiMeasurementsPlayerSessionMeData = {
3480
- body: CreateMeasurementPlayerSessionDto;
3481
- path?: never;
3482
- query?: never;
3483
- url: '/api/measurements/player-session/me';
3484
- };
3485
-
3486
- export type PostApiMeasurementsPlayerSessionMeErrors = {
3487
- /**
3488
- * Missing measurement ids
3489
- */
3490
- 400: unknown;
3491
- /**
3492
- * Unauthorized
3493
- */
3494
- 401: unknown;
3495
- /**
3496
- * Missing body or CMJ measurement
3497
- */
3498
- 409: unknown;
3499
- /**
3500
- * Interpretation service down
3501
- */
3502
- 503: unknown;
3503
- };
3504
-
3505
- export type PostApiMeasurementsPlayerSessionMeResponses = {
3506
- /**
3507
- * Combined measurement player session
3508
- */
3509
- 201: MeasurementSessionDto;
3510
- };
3511
-
3512
- export type PostApiMeasurementsPlayerSessionMeResponse =
3513
- PostApiMeasurementsPlayerSessionMeResponses[keyof PostApiMeasurementsPlayerSessionMeResponses];
3514
-
3515
3622
  export type GetApiTrainingGroupedData = {
3516
3623
  body?: never;
3517
3624
  path?: never;