@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/README.md +33 -1
- package/dist/index.d.ts +1 -1
- package/dist/sdk.gen.d.ts +12 -7
- package/dist/sdk.gen.js +34 -18
- package/dist/types.gen.d.ts +229 -143
- package/index.ts +13 -0
- package/package.json +1 -1
- package/sdk.gen.ts +70 -34
- package/types.gen.ts +267 -160
package/dist/types.gen.d.ts
CHANGED
|
@@ -296,6 +296,91 @@ export type PlayerSearchResultDto = {
|
|
|
296
296
|
page: number;
|
|
297
297
|
pageSize: number;
|
|
298
298
|
};
|
|
299
|
+
export type BodyMeasurementProfileDto = {
|
|
300
|
+
id: string;
|
|
301
|
+
createdAt?: string | null;
|
|
302
|
+
selfReportedHeightCm?: number | null;
|
|
303
|
+
wingspanToSkeletonRatio?: number | null;
|
|
304
|
+
legToTorsoRatio?: number | null;
|
|
305
|
+
femurToTibiaRatio?: number | null;
|
|
306
|
+
shoulderToHipRatio?: number | null;
|
|
307
|
+
headCircumferenceCm?: number | null;
|
|
308
|
+
neckCircumferenceCm?: number | null;
|
|
309
|
+
chestCircumferenceCm?: number | null;
|
|
310
|
+
waistCircumferenceCm?: number | null;
|
|
311
|
+
hipCircumferenceCm?: number | null;
|
|
312
|
+
footLengthCm?: number | null;
|
|
313
|
+
footWidthCm?: number | null;
|
|
314
|
+
qualityStatus?: string | null;
|
|
315
|
+
metricStatus?: {
|
|
316
|
+
[key: string]: unknown;
|
|
317
|
+
};
|
|
318
|
+
poseLandmarksContext?: {
|
|
319
|
+
[key: string]: unknown;
|
|
320
|
+
};
|
|
321
|
+
isUsable: boolean;
|
|
322
|
+
};
|
|
323
|
+
export type CmjMeasurementProfileDto = {
|
|
324
|
+
id: string;
|
|
325
|
+
createdAt?: string | null;
|
|
326
|
+
verticalJumpCm?: number | null;
|
|
327
|
+
qualityTier?: string | null;
|
|
328
|
+
retakeReason?: string | null;
|
|
329
|
+
isUsable: boolean;
|
|
330
|
+
};
|
|
331
|
+
export type MeasurementSessionMetricsDto = {
|
|
332
|
+
selfReportedHeightCm?: number | null;
|
|
333
|
+
verticalJumpCm?: number | null;
|
|
334
|
+
wingspanToSkeletonRatio?: number | null;
|
|
335
|
+
legToTorsoRatio?: number | null;
|
|
336
|
+
femurToTibiaRatio?: number | null;
|
|
337
|
+
shoulderToHipRatio?: number | null;
|
|
338
|
+
};
|
|
339
|
+
export type MeasurementTagEvaluationDto = {
|
|
340
|
+
key?: string;
|
|
341
|
+
status?: string;
|
|
342
|
+
label?: string;
|
|
343
|
+
};
|
|
344
|
+
export type MeasurementSessionDto = {
|
|
345
|
+
id: string;
|
|
346
|
+
bodyMeasurementId: string;
|
|
347
|
+
jumpMeasurementId: string;
|
|
348
|
+
contractVersion?: string | null;
|
|
349
|
+
schemaVersion?: string | null;
|
|
350
|
+
rulesetId?: string | null;
|
|
351
|
+
rulesetVersion?: string | null;
|
|
352
|
+
metrics: MeasurementSessionMetricsDto;
|
|
353
|
+
declaredPositions?: {
|
|
354
|
+
[key: string]: unknown;
|
|
355
|
+
};
|
|
356
|
+
biomechanicalAlignment?: {
|
|
357
|
+
[key: string]: unknown;
|
|
358
|
+
};
|
|
359
|
+
biomechanicalAlignmentCopyKeys?: Array<string>;
|
|
360
|
+
checkedTagKeys?: Array<string>;
|
|
361
|
+
tagEvaluations?: Array<MeasurementTagEvaluationDto>;
|
|
362
|
+
qualitySummary?: {
|
|
363
|
+
[key: string]: unknown;
|
|
364
|
+
};
|
|
365
|
+
playerDisplay?: {
|
|
366
|
+
[key: string]: unknown;
|
|
367
|
+
};
|
|
368
|
+
scoutDisplay?: {
|
|
369
|
+
[key: string]: unknown;
|
|
370
|
+
};
|
|
371
|
+
metricDefinitions?: {
|
|
372
|
+
[key: string]: unknown;
|
|
373
|
+
};
|
|
374
|
+
createdAt?: string | null;
|
|
375
|
+
updatedAt?: string | null;
|
|
376
|
+
};
|
|
377
|
+
export type MeasurementProfileResponseDto = {
|
|
378
|
+
status: 'missing' | 'partial' | 'ready' | 'needs_update';
|
|
379
|
+
body?: BodyMeasurementProfileDto | null;
|
|
380
|
+
cmj?: CmjMeasurementProfileDto | null;
|
|
381
|
+
session?: MeasurementSessionDto | null;
|
|
382
|
+
updatedAt?: string | null;
|
|
383
|
+
};
|
|
299
384
|
export type PlayerReportViewDto = {
|
|
300
385
|
technicalPillar: string;
|
|
301
386
|
physicalPillar: string;
|
|
@@ -491,11 +576,30 @@ export type ReportPurchaseStatusResponseDto = {
|
|
|
491
576
|
purchase?: ReportPurchaseDto | null;
|
|
492
577
|
prerequisites: Array<ReportPrerequisiteDto>;
|
|
493
578
|
};
|
|
579
|
+
export type AiReportSubcategoryDto = {
|
|
580
|
+
label: string;
|
|
581
|
+
observation: string;
|
|
582
|
+
evidenceClips?: Array<number>;
|
|
583
|
+
};
|
|
584
|
+
export type AiReportPillarDetailDto = {
|
|
585
|
+
summary: string;
|
|
586
|
+
subcategories: Array<AiReportSubcategoryDto>;
|
|
587
|
+
};
|
|
588
|
+
export type AiReportImprovementAreaDto = {
|
|
589
|
+
label: string;
|
|
590
|
+
observation: string;
|
|
591
|
+
};
|
|
494
592
|
export type AiReportViewDto = {
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
593
|
+
verdict?: string | null;
|
|
594
|
+
technical?: AiReportPillarDetailDto | null;
|
|
595
|
+
physical?: AiReportPillarDetailDto | null;
|
|
596
|
+
tactical?: AiReportPillarDetailDto | null;
|
|
597
|
+
mental?: AiReportPillarDetailDto | null;
|
|
598
|
+
improvementAreas?: Array<AiReportImprovementAreaDto>;
|
|
599
|
+
technicalPillar?: string | null;
|
|
600
|
+
physicalPillar?: string | null;
|
|
601
|
+
tacticalPillar?: string | null;
|
|
602
|
+
mentalPillar?: string | null;
|
|
499
603
|
};
|
|
500
604
|
export type AiReportClipTargetDto = {
|
|
501
605
|
timestampS: number;
|
|
@@ -659,6 +763,10 @@ export type UploadUrlResponseDto = {
|
|
|
659
763
|
*/
|
|
660
764
|
expiresIn: number;
|
|
661
765
|
};
|
|
766
|
+
export type CreateMeasurementPlayerSessionDto = {
|
|
767
|
+
bodyMeasurementId: string;
|
|
768
|
+
jumpMeasurementId: string;
|
|
769
|
+
};
|
|
662
770
|
export type PreviousClubDto = {
|
|
663
771
|
/**
|
|
664
772
|
* Club name
|
|
@@ -1560,6 +1668,35 @@ export type StartKycResponseDto = {
|
|
|
1560
1668
|
*/
|
|
1561
1669
|
country?: string | null;
|
|
1562
1670
|
};
|
|
1671
|
+
export type SmileLinkRequestDto = {
|
|
1672
|
+
/**
|
|
1673
|
+
* ISO 3166-1 alpha-2 country code (lowercase, matches index.countries)
|
|
1674
|
+
*/
|
|
1675
|
+
country: string;
|
|
1676
|
+
/**
|
|
1677
|
+
* Channel initiating the KYC flow
|
|
1678
|
+
*/
|
|
1679
|
+
channel: 'web' | 'mobile';
|
|
1680
|
+
/**
|
|
1681
|
+
* URL SmileID redirects the user back to after completing verification (frontend callback page)
|
|
1682
|
+
*/
|
|
1683
|
+
returnUrl: string;
|
|
1684
|
+
};
|
|
1685
|
+
export type SmileLinkResponseDto = {
|
|
1686
|
+
/**
|
|
1687
|
+
* SmileID hosted verification URL — redirect the user here to complete KYC. Null when no redirect is needed (approved, blocked, or processing).
|
|
1688
|
+
*/
|
|
1689
|
+
url?: string | null;
|
|
1690
|
+
/**
|
|
1691
|
+
* SmileID job identifier
|
|
1692
|
+
*/
|
|
1693
|
+
jobId?: string | null;
|
|
1694
|
+
status: 'pending' | 'capture_started' | 'processing' | 'approved' | 'rejected' | 'blocked';
|
|
1695
|
+
/**
|
|
1696
|
+
* Number of retries left before the account is blocked
|
|
1697
|
+
*/
|
|
1698
|
+
retriesRemaining: number;
|
|
1699
|
+
};
|
|
1563
1700
|
export type WebhookPartnerParamsDto = {
|
|
1564
1701
|
/**
|
|
1565
1702
|
* Our job identifier echoed back by SmileID
|
|
@@ -1613,95 +1750,6 @@ export type CancelKycRequestDto = {
|
|
|
1613
1750
|
*/
|
|
1614
1751
|
jobId: string;
|
|
1615
1752
|
};
|
|
1616
|
-
export type BodyMeasurementProfileDto = {
|
|
1617
|
-
id: string;
|
|
1618
|
-
createdAt?: string | null;
|
|
1619
|
-
selfReportedHeightCm?: number | null;
|
|
1620
|
-
wingspanToSkeletonRatio?: number | null;
|
|
1621
|
-
legToTorsoRatio?: number | null;
|
|
1622
|
-
femurToTibiaRatio?: number | null;
|
|
1623
|
-
shoulderToHipRatio?: number | null;
|
|
1624
|
-
headCircumferenceCm?: number | null;
|
|
1625
|
-
neckCircumferenceCm?: number | null;
|
|
1626
|
-
chestCircumferenceCm?: number | null;
|
|
1627
|
-
waistCircumferenceCm?: number | null;
|
|
1628
|
-
hipCircumferenceCm?: number | null;
|
|
1629
|
-
footLengthCm?: number | null;
|
|
1630
|
-
footWidthCm?: number | null;
|
|
1631
|
-
qualityStatus?: string | null;
|
|
1632
|
-
metricStatus?: {
|
|
1633
|
-
[key: string]: unknown;
|
|
1634
|
-
};
|
|
1635
|
-
poseLandmarksContext?: {
|
|
1636
|
-
[key: string]: unknown;
|
|
1637
|
-
};
|
|
1638
|
-
isUsable: boolean;
|
|
1639
|
-
};
|
|
1640
|
-
export type CmjMeasurementProfileDto = {
|
|
1641
|
-
id: string;
|
|
1642
|
-
createdAt?: string | null;
|
|
1643
|
-
verticalJumpCm?: number | null;
|
|
1644
|
-
qualityTier?: string | null;
|
|
1645
|
-
retakeReason?: string | null;
|
|
1646
|
-
isUsable: boolean;
|
|
1647
|
-
};
|
|
1648
|
-
export type MeasurementSessionMetricsDto = {
|
|
1649
|
-
selfReportedHeightCm?: number | null;
|
|
1650
|
-
verticalJumpCm?: number | null;
|
|
1651
|
-
wingspanToSkeletonRatio?: number | null;
|
|
1652
|
-
legToTorsoRatio?: number | null;
|
|
1653
|
-
femurToTibiaRatio?: number | null;
|
|
1654
|
-
shoulderToHipRatio?: number | null;
|
|
1655
|
-
};
|
|
1656
|
-
export type MeasurementTagEvaluationDto = {
|
|
1657
|
-
key?: string;
|
|
1658
|
-
status?: string;
|
|
1659
|
-
label?: string;
|
|
1660
|
-
};
|
|
1661
|
-
export type MeasurementSessionDto = {
|
|
1662
|
-
id: string;
|
|
1663
|
-
bodyMeasurementId: string;
|
|
1664
|
-
jumpMeasurementId: string;
|
|
1665
|
-
contractVersion?: string | null;
|
|
1666
|
-
schemaVersion?: string | null;
|
|
1667
|
-
rulesetId?: string | null;
|
|
1668
|
-
rulesetVersion?: string | null;
|
|
1669
|
-
metrics: MeasurementSessionMetricsDto;
|
|
1670
|
-
declaredPositions?: {
|
|
1671
|
-
[key: string]: unknown;
|
|
1672
|
-
};
|
|
1673
|
-
biomechanicalAlignment?: {
|
|
1674
|
-
[key: string]: unknown;
|
|
1675
|
-
};
|
|
1676
|
-
biomechanicalAlignmentCopyKeys?: Array<string>;
|
|
1677
|
-
checkedTagKeys?: Array<string>;
|
|
1678
|
-
tagEvaluations?: Array<MeasurementTagEvaluationDto>;
|
|
1679
|
-
qualitySummary?: {
|
|
1680
|
-
[key: string]: unknown;
|
|
1681
|
-
};
|
|
1682
|
-
playerDisplay?: {
|
|
1683
|
-
[key: string]: unknown;
|
|
1684
|
-
};
|
|
1685
|
-
scoutDisplay?: {
|
|
1686
|
-
[key: string]: unknown;
|
|
1687
|
-
};
|
|
1688
|
-
metricDefinitions?: {
|
|
1689
|
-
[key: string]: unknown;
|
|
1690
|
-
};
|
|
1691
|
-
createdAt?: string | null;
|
|
1692
|
-
updatedAt?: string | null;
|
|
1693
|
-
};
|
|
1694
|
-
export type MeasurementProfileResponseDto = {
|
|
1695
|
-
status: 'missing' | 'partial' | 'ready' | 'needs_update';
|
|
1696
|
-
body?: BodyMeasurementProfileDto | null;
|
|
1697
|
-
cmj?: CmjMeasurementProfileDto | null;
|
|
1698
|
-
session?: MeasurementSessionDto | null;
|
|
1699
|
-
updatedAt?: string | null;
|
|
1700
|
-
};
|
|
1701
|
-
export type CreateMeasurementPlayerSessionDto = {
|
|
1702
|
-
bodyMeasurementId: string;
|
|
1703
|
-
jumpMeasurementId: string;
|
|
1704
|
-
};
|
|
1705
1753
|
export type TrainingContentListItemDto = {
|
|
1706
1754
|
id: string;
|
|
1707
1755
|
title: string;
|
|
@@ -2047,6 +2095,28 @@ export type PostApiPlayersSearchResponses = {
|
|
|
2047
2095
|
200: PlayerSearchResultDto;
|
|
2048
2096
|
};
|
|
2049
2097
|
export type PostApiPlayersSearchResponse = PostApiPlayersSearchResponses[keyof PostApiPlayersSearchResponses];
|
|
2098
|
+
export type GetApiPlayersByIdMeasurementsData = {
|
|
2099
|
+
body?: never;
|
|
2100
|
+
path: {
|
|
2101
|
+
id: string;
|
|
2102
|
+
};
|
|
2103
|
+
query?: never;
|
|
2104
|
+
url: '/api/players/{id}/measurements';
|
|
2105
|
+
};
|
|
2106
|
+
export type GetApiPlayersByIdMeasurementsErrors = {
|
|
2107
|
+
/**
|
|
2108
|
+
* Unauthorized
|
|
2109
|
+
*/
|
|
2110
|
+
401: unknown;
|
|
2111
|
+
/**
|
|
2112
|
+
* Player not found
|
|
2113
|
+
*/
|
|
2114
|
+
404: unknown;
|
|
2115
|
+
};
|
|
2116
|
+
export type GetApiPlayersByIdMeasurementsResponses = {
|
|
2117
|
+
200: MeasurementProfileResponseDto;
|
|
2118
|
+
};
|
|
2119
|
+
export type GetApiPlayersByIdMeasurementsResponse = GetApiPlayersByIdMeasurementsResponses[keyof GetApiPlayersByIdMeasurementsResponses];
|
|
2050
2120
|
export type GetApiPlayersByIdReportData = {
|
|
2051
2121
|
body?: never;
|
|
2052
2122
|
path: {
|
|
@@ -2306,6 +2376,56 @@ export type PostApiStorageUploadUrlResponses = {
|
|
|
2306
2376
|
201: UploadUrlResponseDto;
|
|
2307
2377
|
};
|
|
2308
2378
|
export type PostApiStorageUploadUrlResponse = PostApiStorageUploadUrlResponses[keyof PostApiStorageUploadUrlResponses];
|
|
2379
|
+
export type GetApiMeasurementsProfileMeData = {
|
|
2380
|
+
body?: never;
|
|
2381
|
+
path?: never;
|
|
2382
|
+
query?: never;
|
|
2383
|
+
url: '/api/measurements/profile/me';
|
|
2384
|
+
};
|
|
2385
|
+
export type GetApiMeasurementsProfileMeErrors = {
|
|
2386
|
+
/**
|
|
2387
|
+
* Unauthorized
|
|
2388
|
+
*/
|
|
2389
|
+
401: unknown;
|
|
2390
|
+
};
|
|
2391
|
+
export type GetApiMeasurementsProfileMeResponses = {
|
|
2392
|
+
/**
|
|
2393
|
+
* Latest combined measurement profile
|
|
2394
|
+
*/
|
|
2395
|
+
200: MeasurementProfileResponseDto;
|
|
2396
|
+
};
|
|
2397
|
+
export type GetApiMeasurementsProfileMeResponse = GetApiMeasurementsProfileMeResponses[keyof GetApiMeasurementsProfileMeResponses];
|
|
2398
|
+
export type PostApiMeasurementsPlayerSessionMeData = {
|
|
2399
|
+
body: CreateMeasurementPlayerSessionDto;
|
|
2400
|
+
path?: never;
|
|
2401
|
+
query?: never;
|
|
2402
|
+
url: '/api/measurements/player-session/me';
|
|
2403
|
+
};
|
|
2404
|
+
export type PostApiMeasurementsPlayerSessionMeErrors = {
|
|
2405
|
+
/**
|
|
2406
|
+
* Missing measurement ids
|
|
2407
|
+
*/
|
|
2408
|
+
400: unknown;
|
|
2409
|
+
/**
|
|
2410
|
+
* Unauthorized
|
|
2411
|
+
*/
|
|
2412
|
+
401: unknown;
|
|
2413
|
+
/**
|
|
2414
|
+
* Missing body or CMJ measurement
|
|
2415
|
+
*/
|
|
2416
|
+
409: unknown;
|
|
2417
|
+
/**
|
|
2418
|
+
* Interpretation service down
|
|
2419
|
+
*/
|
|
2420
|
+
503: unknown;
|
|
2421
|
+
};
|
|
2422
|
+
export type PostApiMeasurementsPlayerSessionMeResponses = {
|
|
2423
|
+
/**
|
|
2424
|
+
* Combined measurement player session
|
|
2425
|
+
*/
|
|
2426
|
+
201: MeasurementSessionDto;
|
|
2427
|
+
};
|
|
2428
|
+
export type PostApiMeasurementsPlayerSessionMeResponse = PostApiMeasurementsPlayerSessionMeResponses[keyof PostApiMeasurementsPlayerSessionMeResponses];
|
|
2309
2429
|
export type GetApiProfileMeData = {
|
|
2310
2430
|
body?: never;
|
|
2311
2431
|
path?: never;
|
|
@@ -2938,6 +3058,22 @@ export type PostApiKycStartResponses = {
|
|
|
2938
3058
|
200: StartKycResponseDto;
|
|
2939
3059
|
};
|
|
2940
3060
|
export type PostApiKycStartResponse = PostApiKycStartResponses[keyof PostApiKycStartResponses];
|
|
3061
|
+
export type PostApiKycSmileLinkData = {
|
|
3062
|
+
body: SmileLinkRequestDto;
|
|
3063
|
+
path?: never;
|
|
3064
|
+
query?: never;
|
|
3065
|
+
url: '/api/kyc/smile-link';
|
|
3066
|
+
};
|
|
3067
|
+
export type PostApiKycSmileLinkErrors = {
|
|
3068
|
+
/**
|
|
3069
|
+
* Invalid request
|
|
3070
|
+
*/
|
|
3071
|
+
400: unknown;
|
|
3072
|
+
};
|
|
3073
|
+
export type PostApiKycSmileLinkResponses = {
|
|
3074
|
+
200: SmileLinkResponseDto;
|
|
3075
|
+
};
|
|
3076
|
+
export type PostApiKycSmileLinkResponse = PostApiKycSmileLinkResponses[keyof PostApiKycSmileLinkResponses];
|
|
2941
3077
|
export type PostApiKycWebhookData = {
|
|
2942
3078
|
body: KycWebhookDto;
|
|
2943
3079
|
path?: never;
|
|
@@ -3026,56 +3162,6 @@ export type GetApiKycStatusByUserIdResponses = {
|
|
|
3026
3162
|
200: KycStatusDto;
|
|
3027
3163
|
};
|
|
3028
3164
|
export type GetApiKycStatusByUserIdResponse = GetApiKycStatusByUserIdResponses[keyof GetApiKycStatusByUserIdResponses];
|
|
3029
|
-
export type GetApiMeasurementsProfileMeData = {
|
|
3030
|
-
body?: never;
|
|
3031
|
-
path?: never;
|
|
3032
|
-
query?: never;
|
|
3033
|
-
url: '/api/measurements/profile/me';
|
|
3034
|
-
};
|
|
3035
|
-
export type GetApiMeasurementsProfileMeErrors = {
|
|
3036
|
-
/**
|
|
3037
|
-
* Unauthorized
|
|
3038
|
-
*/
|
|
3039
|
-
401: unknown;
|
|
3040
|
-
};
|
|
3041
|
-
export type GetApiMeasurementsProfileMeResponses = {
|
|
3042
|
-
/**
|
|
3043
|
-
* Latest combined measurement profile
|
|
3044
|
-
*/
|
|
3045
|
-
200: MeasurementProfileResponseDto;
|
|
3046
|
-
};
|
|
3047
|
-
export type GetApiMeasurementsProfileMeResponse = GetApiMeasurementsProfileMeResponses[keyof GetApiMeasurementsProfileMeResponses];
|
|
3048
|
-
export type PostApiMeasurementsPlayerSessionMeData = {
|
|
3049
|
-
body: CreateMeasurementPlayerSessionDto;
|
|
3050
|
-
path?: never;
|
|
3051
|
-
query?: never;
|
|
3052
|
-
url: '/api/measurements/player-session/me';
|
|
3053
|
-
};
|
|
3054
|
-
export type PostApiMeasurementsPlayerSessionMeErrors = {
|
|
3055
|
-
/**
|
|
3056
|
-
* Missing measurement ids
|
|
3057
|
-
*/
|
|
3058
|
-
400: unknown;
|
|
3059
|
-
/**
|
|
3060
|
-
* Unauthorized
|
|
3061
|
-
*/
|
|
3062
|
-
401: unknown;
|
|
3063
|
-
/**
|
|
3064
|
-
* Missing body or CMJ measurement
|
|
3065
|
-
*/
|
|
3066
|
-
409: unknown;
|
|
3067
|
-
/**
|
|
3068
|
-
* Interpretation service down
|
|
3069
|
-
*/
|
|
3070
|
-
503: unknown;
|
|
3071
|
-
};
|
|
3072
|
-
export type PostApiMeasurementsPlayerSessionMeResponses = {
|
|
3073
|
-
/**
|
|
3074
|
-
* Combined measurement player session
|
|
3075
|
-
*/
|
|
3076
|
-
201: MeasurementSessionDto;
|
|
3077
|
-
};
|
|
3078
|
-
export type PostApiMeasurementsPlayerSessionMeResponse = PostApiMeasurementsPlayerSessionMeResponses[keyof PostApiMeasurementsPlayerSessionMeResponses];
|
|
3079
3165
|
export type GetApiTrainingGroupedData = {
|
|
3080
3166
|
body?: never;
|
|
3081
3167
|
path?: never;
|
package/index.ts
CHANGED
|
@@ -30,8 +30,11 @@ export type {
|
|
|
30
30
|
AchievementCatalogDto,
|
|
31
31
|
AiReportClipDto,
|
|
32
32
|
AiReportClipTargetDto,
|
|
33
|
+
AiReportImprovementAreaDto,
|
|
33
34
|
AiReportMetaDto,
|
|
35
|
+
AiReportPillarDetailDto,
|
|
34
36
|
AiReportResultResponseDto,
|
|
37
|
+
AiReportSubcategoryDto,
|
|
35
38
|
AiReportViewDto,
|
|
36
39
|
AuthMeResponseDto,
|
|
37
40
|
BillingEntitlementResponseDto,
|
|
@@ -185,6 +188,10 @@ export type {
|
|
|
185
188
|
GetApiOrganizationsMeResponses,
|
|
186
189
|
GetApiPlayersByIdData,
|
|
187
190
|
GetApiPlayersByIdErrors,
|
|
191
|
+
GetApiPlayersByIdMeasurementsData,
|
|
192
|
+
GetApiPlayersByIdMeasurementsErrors,
|
|
193
|
+
GetApiPlayersByIdMeasurementsResponse,
|
|
194
|
+
GetApiPlayersByIdMeasurementsResponses,
|
|
188
195
|
GetApiPlayersByIdReportData,
|
|
189
196
|
GetApiPlayersByIdReportErrors,
|
|
190
197
|
GetApiPlayersByIdReportResponse,
|
|
@@ -324,6 +331,10 @@ export type {
|
|
|
324
331
|
PostApiKycMarkSubmittedErrors,
|
|
325
332
|
PostApiKycMarkSubmittedResponse,
|
|
326
333
|
PostApiKycMarkSubmittedResponses,
|
|
334
|
+
PostApiKycSmileLinkData,
|
|
335
|
+
PostApiKycSmileLinkErrors,
|
|
336
|
+
PostApiKycSmileLinkResponse,
|
|
337
|
+
PostApiKycSmileLinkResponses,
|
|
327
338
|
PostApiKycStartData,
|
|
328
339
|
PostApiKycStartErrors,
|
|
329
340
|
PostApiKycStartResponse,
|
|
@@ -412,6 +423,8 @@ export type {
|
|
|
412
423
|
ScoutDashboardResponseDto,
|
|
413
424
|
SendInvitationRequestDto,
|
|
414
425
|
SendMessageDto,
|
|
426
|
+
SmileLinkRequestDto,
|
|
427
|
+
SmileLinkResponseDto,
|
|
415
428
|
StartKycRequestDto,
|
|
416
429
|
StartKycResponseDto,
|
|
417
430
|
StartReportGenerationClipDto,
|
package/package.json
CHANGED
package/sdk.gen.ts
CHANGED
|
@@ -90,6 +90,9 @@ import type {
|
|
|
90
90
|
GetApiOrganizationsMeResponses,
|
|
91
91
|
GetApiPlayersByIdData,
|
|
92
92
|
GetApiPlayersByIdErrors,
|
|
93
|
+
GetApiPlayersByIdMeasurementsData,
|
|
94
|
+
GetApiPlayersByIdMeasurementsErrors,
|
|
95
|
+
GetApiPlayersByIdMeasurementsResponses,
|
|
93
96
|
GetApiPlayersByIdReportData,
|
|
94
97
|
GetApiPlayersByIdReportErrors,
|
|
95
98
|
GetApiPlayersByIdReportResponses,
|
|
@@ -170,6 +173,9 @@ import type {
|
|
|
170
173
|
PostApiKycMarkSubmittedData,
|
|
171
174
|
PostApiKycMarkSubmittedErrors,
|
|
172
175
|
PostApiKycMarkSubmittedResponses,
|
|
176
|
+
PostApiKycSmileLinkData,
|
|
177
|
+
PostApiKycSmileLinkErrors,
|
|
178
|
+
PostApiKycSmileLinkResponses,
|
|
173
179
|
PostApiKycStartData,
|
|
174
180
|
PostApiKycStartErrors,
|
|
175
181
|
PostApiKycStartResponses,
|
|
@@ -364,6 +370,16 @@ export class Players extends HeyApiClient {
|
|
|
364
370
|
});
|
|
365
371
|
}
|
|
366
372
|
|
|
373
|
+
public getPlayerMeasurementProfile<ThrowOnError extends boolean = false>(
|
|
374
|
+
options: Options<GetApiPlayersByIdMeasurementsData, ThrowOnError>,
|
|
375
|
+
) {
|
|
376
|
+
return (options.client ?? this.client).get<
|
|
377
|
+
GetApiPlayersByIdMeasurementsResponses,
|
|
378
|
+
GetApiPlayersByIdMeasurementsErrors,
|
|
379
|
+
ThrowOnError
|
|
380
|
+
>({ url: '/api/players/{id}/measurements', ...options });
|
|
381
|
+
}
|
|
382
|
+
|
|
367
383
|
public getPlayerReport<ThrowOnError extends boolean = false>(
|
|
368
384
|
options: Options<GetApiPlayersByIdReportData, ThrowOnError>,
|
|
369
385
|
) {
|
|
@@ -639,6 +655,35 @@ export class Storage extends HeyApiClient {
|
|
|
639
655
|
}
|
|
640
656
|
}
|
|
641
657
|
|
|
658
|
+
export class Measurements extends HeyApiClient {
|
|
659
|
+
public getMyMeasurementProfile<ThrowOnError extends boolean = false>(
|
|
660
|
+
options?: Options<GetApiMeasurementsProfileMeData, ThrowOnError>,
|
|
661
|
+
) {
|
|
662
|
+
return (options?.client ?? this.client).get<
|
|
663
|
+
GetApiMeasurementsProfileMeResponses,
|
|
664
|
+
GetApiMeasurementsProfileMeErrors,
|
|
665
|
+
ThrowOnError
|
|
666
|
+
>({ url: '/api/measurements/profile/me', ...options });
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
public createMyMeasurementPlayerSession<ThrowOnError extends boolean = false>(
|
|
670
|
+
options: Options<PostApiMeasurementsPlayerSessionMeData, ThrowOnError>,
|
|
671
|
+
) {
|
|
672
|
+
return (options.client ?? this.client).post<
|
|
673
|
+
PostApiMeasurementsPlayerSessionMeResponses,
|
|
674
|
+
PostApiMeasurementsPlayerSessionMeErrors,
|
|
675
|
+
ThrowOnError
|
|
676
|
+
>({
|
|
677
|
+
url: '/api/measurements/player-session/me',
|
|
678
|
+
...options,
|
|
679
|
+
headers: {
|
|
680
|
+
'Content-Type': 'application/json',
|
|
681
|
+
...options.headers,
|
|
682
|
+
},
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
|
|
642
687
|
export class Profile extends HeyApiClient {
|
|
643
688
|
public getProfileMe<ThrowOnError extends boolean = false>(
|
|
644
689
|
options?: Options<GetApiProfileMeData, ThrowOnError>,
|
|
@@ -1078,6 +1123,26 @@ export class Kyc extends HeyApiClient {
|
|
|
1078
1123
|
});
|
|
1079
1124
|
}
|
|
1080
1125
|
|
|
1126
|
+
/**
|
|
1127
|
+
* Get a SmileID hosted verification URL (Smile Links) — redirect the user to this URL to complete KYC
|
|
1128
|
+
*/
|
|
1129
|
+
public startSmileLink<ThrowOnError extends boolean = false>(
|
|
1130
|
+
options: Options<PostApiKycSmileLinkData, ThrowOnError>,
|
|
1131
|
+
) {
|
|
1132
|
+
return (options.client ?? this.client).post<
|
|
1133
|
+
PostApiKycSmileLinkResponses,
|
|
1134
|
+
PostApiKycSmileLinkErrors,
|
|
1135
|
+
ThrowOnError
|
|
1136
|
+
>({
|
|
1137
|
+
url: '/api/kyc/smile-link',
|
|
1138
|
+
...options,
|
|
1139
|
+
headers: {
|
|
1140
|
+
'Content-Type': 'application/json',
|
|
1141
|
+
...options.headers,
|
|
1142
|
+
},
|
|
1143
|
+
});
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1081
1146
|
/**
|
|
1082
1147
|
* SmileID webhook — receives job results (public, signature-verified)
|
|
1083
1148
|
*/
|
|
@@ -1152,35 +1217,6 @@ export class Kyc extends HeyApiClient {
|
|
|
1152
1217
|
}
|
|
1153
1218
|
}
|
|
1154
1219
|
|
|
1155
|
-
export class Measurements extends HeyApiClient {
|
|
1156
|
-
public getMyMeasurementProfile<ThrowOnError extends boolean = false>(
|
|
1157
|
-
options?: Options<GetApiMeasurementsProfileMeData, ThrowOnError>,
|
|
1158
|
-
) {
|
|
1159
|
-
return (options?.client ?? this.client).get<
|
|
1160
|
-
GetApiMeasurementsProfileMeResponses,
|
|
1161
|
-
GetApiMeasurementsProfileMeErrors,
|
|
1162
|
-
ThrowOnError
|
|
1163
|
-
>({ url: '/api/measurements/profile/me', ...options });
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
public createMyMeasurementPlayerSession<ThrowOnError extends boolean = false>(
|
|
1167
|
-
options: Options<PostApiMeasurementsPlayerSessionMeData, ThrowOnError>,
|
|
1168
|
-
) {
|
|
1169
|
-
return (options.client ?? this.client).post<
|
|
1170
|
-
PostApiMeasurementsPlayerSessionMeResponses,
|
|
1171
|
-
PostApiMeasurementsPlayerSessionMeErrors,
|
|
1172
|
-
ThrowOnError
|
|
1173
|
-
>({
|
|
1174
|
-
url: '/api/measurements/player-session/me',
|
|
1175
|
-
...options,
|
|
1176
|
-
headers: {
|
|
1177
|
-
'Content-Type': 'application/json',
|
|
1178
|
-
...options.headers,
|
|
1179
|
-
},
|
|
1180
|
-
});
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
1220
|
export class Training extends HeyApiClient {
|
|
1185
1221
|
/**
|
|
1186
1222
|
* Get training content grouped by category, top 3 per category
|
|
@@ -1410,6 +1446,11 @@ export class GlobalScoutMeClient extends HeyApiClient {
|
|
|
1410
1446
|
return (this._storage ??= new Storage({ client: this.client }));
|
|
1411
1447
|
}
|
|
1412
1448
|
|
|
1449
|
+
private _measurements?: Measurements;
|
|
1450
|
+
get measurements(): Measurements {
|
|
1451
|
+
return (this._measurements ??= new Measurements({ client: this.client }));
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1413
1454
|
private _profile?: Profile;
|
|
1414
1455
|
get profile(): Profile {
|
|
1415
1456
|
return (this._profile ??= new Profile({ client: this.client }));
|
|
@@ -1470,11 +1511,6 @@ export class GlobalScoutMeClient extends HeyApiClient {
|
|
|
1470
1511
|
return (this._kyc ??= new Kyc({ client: this.client }));
|
|
1471
1512
|
}
|
|
1472
1513
|
|
|
1473
|
-
private _measurements?: Measurements;
|
|
1474
|
-
get measurements(): Measurements {
|
|
1475
|
-
return (this._measurements ??= new Measurements({ client: this.client }));
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
1514
|
private _training?: Training;
|
|
1479
1515
|
get training(): Training {
|
|
1480
1516
|
return (this._training ??= new Training({ client: this.client }));
|