@globalscoutme/api-client 1.1.10 → 1.1.12
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 +3 -4
- package/client/client.gen.ts +25 -48
- package/client/types.gen.ts +12 -41
- package/client/utils.gen.ts +12 -33
- package/client.gen.ts +2 -7
- package/core/auth.gen.ts +2 -3
- package/core/bodySerializer.gen.ts +6 -22
- package/core/params.gen.ts +3 -10
- package/core/pathSerializer.gen.ts +6 -15
- package/core/queryKeySerializer.gen.ts +6 -25
- package/core/serverSentEvents.gen.ts +8 -31
- package/core/types.gen.ts +3 -13
- package/core/utils.gen.ts +4 -7
- package/dist/client/client.gen.js +1 -2
- package/dist/client/utils.gen.js +2 -5
- package/dist/client.gen.js +1 -1
- package/dist/core/bodySerializer.gen.js +1 -1
- package/dist/core/pathSerializer.gen.js +3 -11
- package/dist/core/queryKeySerializer.gen.js +4 -11
- package/dist/core/serverSentEvents.gen.js +3 -7
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/sdk.gen.d.ts +29 -1
- package/dist/sdk.gen.js +63 -2
- package/dist/types.gen.d.ts +232 -0
- package/index.ts +32 -0
- package/package.json +1 -1
- package/sdk.gen.ts +221 -122
- package/types.gen.ts +286 -49
package/sdk.gen.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
3
|
import { client } from './client.gen.js';
|
|
4
|
-
import type {
|
|
5
|
-
Client,
|
|
6
|
-
Options as Options2,
|
|
7
|
-
TDataShape,
|
|
8
|
-
} from './client/index.js';
|
|
4
|
+
import type { Client, Options as Options2, TDataShape } from './client/index.js';
|
|
9
5
|
import type {
|
|
10
6
|
DeleteApiClubsMeByIdData,
|
|
11
7
|
DeleteApiClubsMeByIdErrors,
|
|
@@ -21,6 +17,9 @@ import type {
|
|
|
21
17
|
DeleteApiPlayersMeData,
|
|
22
18
|
DeleteApiPlayersMeErrors,
|
|
23
19
|
DeleteApiPlayersMeResponses,
|
|
20
|
+
DeleteApiTrainingAdminContentByIdData,
|
|
21
|
+
DeleteApiTrainingAdminContentByIdErrors,
|
|
22
|
+
DeleteApiTrainingAdminContentByIdResponses,
|
|
24
23
|
DeleteApiVideoLinksByIdData,
|
|
25
24
|
DeleteApiVideoLinksByIdErrors,
|
|
26
25
|
DeleteApiVideoLinksByIdResponses,
|
|
@@ -121,6 +120,15 @@ import type {
|
|
|
121
120
|
GetApiSubscriptionsMeResponses,
|
|
122
121
|
GetApiSubscriptionsPlansData,
|
|
123
122
|
GetApiSubscriptionsPlansResponses,
|
|
123
|
+
GetApiTrainingAdminContentByIdData,
|
|
124
|
+
GetApiTrainingAdminContentByIdErrors,
|
|
125
|
+
GetApiTrainingAdminContentByIdResponses,
|
|
126
|
+
GetApiTrainingAdminContentData,
|
|
127
|
+
GetApiTrainingAdminContentErrors,
|
|
128
|
+
GetApiTrainingAdminContentResponses,
|
|
129
|
+
GetApiTrainingAdminLookupsData,
|
|
130
|
+
GetApiTrainingAdminLookupsErrors,
|
|
131
|
+
GetApiTrainingAdminLookupsResponses,
|
|
124
132
|
GetApiTrainingByIdData,
|
|
125
133
|
GetApiTrainingByIdErrors,
|
|
126
134
|
GetApiTrainingByIdResponses,
|
|
@@ -153,6 +161,9 @@ import type {
|
|
|
153
161
|
PatchApiPlayersMeData,
|
|
154
162
|
PatchApiPlayersMeErrors,
|
|
155
163
|
PatchApiPlayersMeResponses,
|
|
164
|
+
PatchApiTrainingAdminContentByIdData,
|
|
165
|
+
PatchApiTrainingAdminContentByIdErrors,
|
|
166
|
+
PatchApiTrainingAdminContentByIdResponses,
|
|
156
167
|
PostApiBillingAccessCodesRedeemData,
|
|
157
168
|
PostApiBillingAccessCodesRedeemResponses,
|
|
158
169
|
PostApiBillingAppleSyncPurchaseData,
|
|
@@ -234,6 +245,9 @@ import type {
|
|
|
234
245
|
PostApiSubscriptionsWebhookData,
|
|
235
246
|
PostApiSubscriptionsWebhookErrors,
|
|
236
247
|
PostApiSubscriptionsWebhookResponses,
|
|
248
|
+
PostApiTrainingAdminContentData,
|
|
249
|
+
PostApiTrainingAdminContentErrors,
|
|
250
|
+
PostApiTrainingAdminContentResponses,
|
|
237
251
|
PostApiVideoLinksData,
|
|
238
252
|
PostApiVideoLinksErrors,
|
|
239
253
|
PostApiVideoLinksResponses,
|
|
@@ -282,7 +296,7 @@ class HeyApiRegistry<T> {
|
|
|
282
296
|
const instance = this.instances.get(key ?? this.defaultKey);
|
|
283
297
|
if (!instance) {
|
|
284
298
|
throw new Error(
|
|
285
|
-
`No SDK client found. Create one with "new GlobalScoutMeClient()" to fix this error
|
|
299
|
+
`No SDK client found. Create one with "new GlobalScoutMeClient()" to fix this error.`
|
|
286
300
|
);
|
|
287
301
|
}
|
|
288
302
|
return instance;
|
|
@@ -295,7 +309,7 @@ class HeyApiRegistry<T> {
|
|
|
295
309
|
|
|
296
310
|
export class Auth extends HeyApiClient {
|
|
297
311
|
public getAuthMe<ThrowOnError extends boolean = false>(
|
|
298
|
-
options?: Options<GetApiAuthMeData, ThrowOnError
|
|
312
|
+
options?: Options<GetApiAuthMeData, ThrowOnError>
|
|
299
313
|
) {
|
|
300
314
|
return (options?.client ?? this.client).get<
|
|
301
315
|
GetApiAuthMeResponses,
|
|
@@ -307,7 +321,7 @@ export class Auth extends HeyApiClient {
|
|
|
307
321
|
|
|
308
322
|
export class Players extends HeyApiClient {
|
|
309
323
|
public deleteMe<ThrowOnError extends boolean = false>(
|
|
310
|
-
options?: Options<DeleteApiPlayersMeData, ThrowOnError
|
|
324
|
+
options?: Options<DeleteApiPlayersMeData, ThrowOnError>
|
|
311
325
|
) {
|
|
312
326
|
return (options?.client ?? this.client).delete<
|
|
313
327
|
DeleteApiPlayersMeResponses,
|
|
@@ -317,7 +331,7 @@ export class Players extends HeyApiClient {
|
|
|
317
331
|
}
|
|
318
332
|
|
|
319
333
|
public getMe<ThrowOnError extends boolean = false>(
|
|
320
|
-
options?: Options<GetApiPlayersMeData, ThrowOnError
|
|
334
|
+
options?: Options<GetApiPlayersMeData, ThrowOnError>
|
|
321
335
|
) {
|
|
322
336
|
return (options?.client ?? this.client).get<
|
|
323
337
|
GetApiPlayersMeResponses,
|
|
@@ -327,7 +341,7 @@ export class Players extends HeyApiClient {
|
|
|
327
341
|
}
|
|
328
342
|
|
|
329
343
|
public patchMe<ThrowOnError extends boolean = false>(
|
|
330
|
-
options: Options<PatchApiPlayersMeData, ThrowOnError
|
|
344
|
+
options: Options<PatchApiPlayersMeData, ThrowOnError>
|
|
331
345
|
) {
|
|
332
346
|
return (options.client ?? this.client).patch<
|
|
333
347
|
PatchApiPlayersMeResponses,
|
|
@@ -344,7 +358,7 @@ export class Players extends HeyApiClient {
|
|
|
344
358
|
}
|
|
345
359
|
|
|
346
360
|
public getMyDashboard<ThrowOnError extends boolean = false>(
|
|
347
|
-
options?: Options<GetApiPlayersMeDashboardData, ThrowOnError
|
|
361
|
+
options?: Options<GetApiPlayersMeDashboardData, ThrowOnError>
|
|
348
362
|
) {
|
|
349
363
|
return (options?.client ?? this.client).get<
|
|
350
364
|
GetApiPlayersMeDashboardResponses,
|
|
@@ -357,7 +371,7 @@ export class Players extends HeyApiClient {
|
|
|
357
371
|
* Ping presence; records login day and updates user timezone
|
|
358
372
|
*/
|
|
359
373
|
public heartbeat<ThrowOnError extends boolean = false>(
|
|
360
|
-
options: Options<PostApiPlayersMeHeartbeatData, ThrowOnError
|
|
374
|
+
options: Options<PostApiPlayersMeHeartbeatData, ThrowOnError>
|
|
361
375
|
) {
|
|
362
376
|
return (options.client ?? this.client).post<
|
|
363
377
|
PostApiPlayersMeHeartbeatResponses,
|
|
@@ -374,7 +388,7 @@ export class Players extends HeyApiClient {
|
|
|
374
388
|
}
|
|
375
389
|
|
|
376
390
|
public searchPlayers<ThrowOnError extends boolean = false>(
|
|
377
|
-
options: Options<PostApiPlayersSearchData, ThrowOnError
|
|
391
|
+
options: Options<PostApiPlayersSearchData, ThrowOnError>
|
|
378
392
|
) {
|
|
379
393
|
return (options.client ?? this.client).post<
|
|
380
394
|
PostApiPlayersSearchResponses,
|
|
@@ -391,7 +405,7 @@ export class Players extends HeyApiClient {
|
|
|
391
405
|
}
|
|
392
406
|
|
|
393
407
|
public getPlayerMeasurementProfile<ThrowOnError extends boolean = false>(
|
|
394
|
-
options: Options<GetApiPlayersByIdMeasurementsData, ThrowOnError
|
|
408
|
+
options: Options<GetApiPlayersByIdMeasurementsData, ThrowOnError>
|
|
395
409
|
) {
|
|
396
410
|
return (options.client ?? this.client).get<
|
|
397
411
|
GetApiPlayersByIdMeasurementsResponses,
|
|
@@ -401,7 +415,7 @@ export class Players extends HeyApiClient {
|
|
|
401
415
|
}
|
|
402
416
|
|
|
403
417
|
public getPlayerVideoMetrics<ThrowOnError extends boolean = false>(
|
|
404
|
-
options: Options<GetApiPlayersByIdVideoMetricsData, ThrowOnError
|
|
418
|
+
options: Options<GetApiPlayersByIdVideoMetricsData, ThrowOnError>
|
|
405
419
|
) {
|
|
406
420
|
return (options.client ?? this.client).get<
|
|
407
421
|
GetApiPlayersByIdVideoMetricsResponses,
|
|
@@ -411,7 +425,7 @@ export class Players extends HeyApiClient {
|
|
|
411
425
|
}
|
|
412
426
|
|
|
413
427
|
public getPlayerReport<ThrowOnError extends boolean = false>(
|
|
414
|
-
options: Options<GetApiPlayersByIdReportData, ThrowOnError
|
|
428
|
+
options: Options<GetApiPlayersByIdReportData, ThrowOnError>
|
|
415
429
|
) {
|
|
416
430
|
return (options.client ?? this.client).get<
|
|
417
431
|
GetApiPlayersByIdReportResponses,
|
|
@@ -421,7 +435,7 @@ export class Players extends HeyApiClient {
|
|
|
421
435
|
}
|
|
422
436
|
|
|
423
437
|
public getPlayerById<ThrowOnError extends boolean = false>(
|
|
424
|
-
options: Options<GetApiPlayersByIdData, ThrowOnError
|
|
438
|
+
options: Options<GetApiPlayersByIdData, ThrowOnError>
|
|
425
439
|
) {
|
|
426
440
|
return (options.client ?? this.client).get<
|
|
427
441
|
GetApiPlayersByIdResponses,
|
|
@@ -433,17 +447,15 @@ export class Players extends HeyApiClient {
|
|
|
433
447
|
|
|
434
448
|
export class Billing extends HeyApiClient {
|
|
435
449
|
public listBillingPlans<ThrowOnError extends boolean = false>(
|
|
436
|
-
options?: Options<GetApiBillingPlansData, ThrowOnError
|
|
450
|
+
options?: Options<GetApiBillingPlansData, ThrowOnError>
|
|
437
451
|
) {
|
|
438
|
-
return (options?.client ?? this.client).get<
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
ThrowOnError
|
|
442
|
-
>({ url: '/api/billing/plans', ...options });
|
|
452
|
+
return (options?.client ?? this.client).get<GetApiBillingPlansResponses, unknown, ThrowOnError>(
|
|
453
|
+
{ url: '/api/billing/plans', ...options }
|
|
454
|
+
);
|
|
443
455
|
}
|
|
444
456
|
|
|
445
457
|
public listBillingProducts<ThrowOnError extends boolean = false>(
|
|
446
|
-
options?: Options<GetApiBillingProductsData, ThrowOnError
|
|
458
|
+
options?: Options<GetApiBillingProductsData, ThrowOnError>
|
|
447
459
|
) {
|
|
448
460
|
return (options?.client ?? this.client).get<
|
|
449
461
|
GetApiBillingProductsResponses,
|
|
@@ -453,17 +465,16 @@ export class Billing extends HeyApiClient {
|
|
|
453
465
|
}
|
|
454
466
|
|
|
455
467
|
public getMyBillingEntitlement<ThrowOnError extends boolean = false>(
|
|
456
|
-
options?: Options<GetApiBillingMeData, ThrowOnError
|
|
468
|
+
options?: Options<GetApiBillingMeData, ThrowOnError>
|
|
457
469
|
) {
|
|
458
|
-
return (options?.client ?? this.client).get<
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
>({ url: '/api/billing/me', ...options });
|
|
470
|
+
return (options?.client ?? this.client).get<GetApiBillingMeResponses, unknown, ThrowOnError>({
|
|
471
|
+
url: '/api/billing/me',
|
|
472
|
+
...options,
|
|
473
|
+
});
|
|
463
474
|
}
|
|
464
475
|
|
|
465
476
|
public redeemBillingAccessCode<ThrowOnError extends boolean = false>(
|
|
466
|
-
options: Options<PostApiBillingAccessCodesRedeemData, ThrowOnError
|
|
477
|
+
options: Options<PostApiBillingAccessCodesRedeemData, ThrowOnError>
|
|
467
478
|
) {
|
|
468
479
|
return (options.client ?? this.client).post<
|
|
469
480
|
PostApiBillingAccessCodesRedeemResponses,
|
|
@@ -480,7 +491,7 @@ export class Billing extends HeyApiClient {
|
|
|
480
491
|
}
|
|
481
492
|
|
|
482
493
|
public getCurrentBillingReportPurchase<ThrowOnError extends boolean = false>(
|
|
483
|
-
options?: Options<GetApiBillingReportPurchasesCurrentData, ThrowOnError
|
|
494
|
+
options?: Options<GetApiBillingReportPurchasesCurrentData, ThrowOnError>
|
|
484
495
|
) {
|
|
485
496
|
return (options?.client ?? this.client).get<
|
|
486
497
|
GetApiBillingReportPurchasesCurrentResponses,
|
|
@@ -490,7 +501,7 @@ export class Billing extends HeyApiClient {
|
|
|
490
501
|
}
|
|
491
502
|
|
|
492
503
|
public listBillingReportPurchaseHistory<ThrowOnError extends boolean = false>(
|
|
493
|
-
options?: Options<GetApiBillingReportPurchasesHistoryData, ThrowOnError
|
|
504
|
+
options?: Options<GetApiBillingReportPurchasesHistoryData, ThrowOnError>
|
|
494
505
|
) {
|
|
495
506
|
return (options?.client ?? this.client).get<
|
|
496
507
|
GetApiBillingReportPurchasesHistoryResponses,
|
|
@@ -500,7 +511,7 @@ export class Billing extends HeyApiClient {
|
|
|
500
511
|
}
|
|
501
512
|
|
|
502
513
|
public getBillingReportResult<ThrowOnError extends boolean = false>(
|
|
503
|
-
options: Options<GetApiBillingReportPurchasesByIdReportData, ThrowOnError
|
|
514
|
+
options: Options<GetApiBillingReportPurchasesByIdReportData, ThrowOnError>
|
|
504
515
|
) {
|
|
505
516
|
return (options.client ?? this.client).get<
|
|
506
517
|
GetApiBillingReportPurchasesByIdReportResponses,
|
|
@@ -510,10 +521,7 @@ export class Billing extends HeyApiClient {
|
|
|
510
521
|
}
|
|
511
522
|
|
|
512
523
|
public startBillingReportGeneration<ThrowOnError extends boolean = false>(
|
|
513
|
-
options: Options<
|
|
514
|
-
PostApiBillingReportPurchasesByIdStartGenerationData,
|
|
515
|
-
ThrowOnError
|
|
516
|
-
>,
|
|
524
|
+
options: Options<PostApiBillingReportPurchasesByIdStartGenerationData, ThrowOnError>
|
|
517
525
|
) {
|
|
518
526
|
return (options.client ?? this.client).post<
|
|
519
527
|
PostApiBillingReportPurchasesByIdStartGenerationResponses,
|
|
@@ -529,13 +537,8 @@ export class Billing extends HeyApiClient {
|
|
|
529
537
|
});
|
|
530
538
|
}
|
|
531
539
|
|
|
532
|
-
public findBillingReportPlayerCandidates<
|
|
533
|
-
|
|
534
|
-
>(
|
|
535
|
-
options: Options<
|
|
536
|
-
PostApiBillingReportPurchasesPlayerCandidatesData,
|
|
537
|
-
ThrowOnError
|
|
538
|
-
>,
|
|
540
|
+
public findBillingReportPlayerCandidates<ThrowOnError extends boolean = false>(
|
|
541
|
+
options: Options<PostApiBillingReportPurchasesPlayerCandidatesData, ThrowOnError>
|
|
539
542
|
) {
|
|
540
543
|
return (options.client ?? this.client).post<
|
|
541
544
|
PostApiBillingReportPurchasesPlayerCandidatesResponses,
|
|
@@ -552,7 +555,7 @@ export class Billing extends HeyApiClient {
|
|
|
552
555
|
}
|
|
553
556
|
|
|
554
557
|
public createStripeCheckoutSession<ThrowOnError extends boolean = false>(
|
|
555
|
-
options: Options<PostApiBillingStripeCheckoutSessionData, ThrowOnError
|
|
558
|
+
options: Options<PostApiBillingStripeCheckoutSessionData, ThrowOnError>
|
|
556
559
|
) {
|
|
557
560
|
return (options.client ?? this.client).post<
|
|
558
561
|
PostApiBillingStripeCheckoutSessionResponses,
|
|
@@ -569,7 +572,7 @@ export class Billing extends HeyApiClient {
|
|
|
569
572
|
}
|
|
570
573
|
|
|
571
574
|
public createStripePortalSession<ThrowOnError extends boolean = false>(
|
|
572
|
-
options?: Options<PostApiBillingStripePortalSessionData, ThrowOnError
|
|
575
|
+
options?: Options<PostApiBillingStripePortalSessionData, ThrowOnError>
|
|
573
576
|
) {
|
|
574
577
|
return (options?.client ?? this.client).post<
|
|
575
578
|
PostApiBillingStripePortalSessionResponses,
|
|
@@ -579,7 +582,7 @@ export class Billing extends HeyApiClient {
|
|
|
579
582
|
}
|
|
580
583
|
|
|
581
584
|
public syncAppleBillingPurchase<ThrowOnError extends boolean = false>(
|
|
582
|
-
options: Options<PostApiBillingAppleSyncPurchaseData, ThrowOnError
|
|
585
|
+
options: Options<PostApiBillingAppleSyncPurchaseData, ThrowOnError>
|
|
583
586
|
) {
|
|
584
587
|
return (options.client ?? this.client).post<
|
|
585
588
|
PostApiBillingAppleSyncPurchaseResponses,
|
|
@@ -596,7 +599,7 @@ export class Billing extends HeyApiClient {
|
|
|
596
599
|
}
|
|
597
600
|
|
|
598
601
|
public syncGoogleBillingPurchase<ThrowOnError extends boolean = false>(
|
|
599
|
-
options: Options<PostApiBillingGoogleSyncPurchaseData, ThrowOnError
|
|
602
|
+
options: Options<PostApiBillingGoogleSyncPurchaseData, ThrowOnError>
|
|
600
603
|
) {
|
|
601
604
|
return (options.client ?? this.client).post<
|
|
602
605
|
PostApiBillingGoogleSyncPurchaseResponses,
|
|
@@ -615,7 +618,7 @@ export class Billing extends HeyApiClient {
|
|
|
615
618
|
|
|
616
619
|
export class Notifications extends HeyApiClient {
|
|
617
620
|
public getNotificationPreferences<ThrowOnError extends boolean = false>(
|
|
618
|
-
options?: Options<GetApiNotificationsPreferencesData, ThrowOnError
|
|
621
|
+
options?: Options<GetApiNotificationsPreferencesData, ThrowOnError>
|
|
619
622
|
) {
|
|
620
623
|
return (options?.client ?? this.client).get<
|
|
621
624
|
GetApiNotificationsPreferencesResponses,
|
|
@@ -625,7 +628,7 @@ export class Notifications extends HeyApiClient {
|
|
|
625
628
|
}
|
|
626
629
|
|
|
627
630
|
public updateNotificationPreferences<ThrowOnError extends boolean = false>(
|
|
628
|
-
options: Options<PatchApiNotificationsPreferencesData, ThrowOnError
|
|
631
|
+
options: Options<PatchApiNotificationsPreferencesData, ThrowOnError>
|
|
629
632
|
) {
|
|
630
633
|
return (options.client ?? this.client).patch<
|
|
631
634
|
PatchApiNotificationsPreferencesResponses,
|
|
@@ -642,7 +645,7 @@ export class Notifications extends HeyApiClient {
|
|
|
642
645
|
}
|
|
643
646
|
|
|
644
647
|
public registerPushDevice<ThrowOnError extends boolean = false>(
|
|
645
|
-
options: Options<PostApiNotificationsDevicesData, ThrowOnError
|
|
648
|
+
options: Options<PostApiNotificationsDevicesData, ThrowOnError>
|
|
646
649
|
) {
|
|
647
650
|
return (options.client ?? this.client).post<
|
|
648
651
|
PostApiNotificationsDevicesResponses,
|
|
@@ -659,7 +662,7 @@ export class Notifications extends HeyApiClient {
|
|
|
659
662
|
}
|
|
660
663
|
|
|
661
664
|
public deactivateCurrentPushDevice<ThrowOnError extends boolean = false>(
|
|
662
|
-
options: Options<DeleteApiNotificationsDevicesCurrentData, ThrowOnError
|
|
665
|
+
options: Options<DeleteApiNotificationsDevicesCurrentData, ThrowOnError>
|
|
663
666
|
) {
|
|
664
667
|
return (options.client ?? this.client).delete<
|
|
665
668
|
DeleteApiNotificationsDevicesCurrentResponses,
|
|
@@ -678,7 +681,7 @@ export class Notifications extends HeyApiClient {
|
|
|
678
681
|
|
|
679
682
|
export class Storage extends HeyApiClient {
|
|
680
683
|
public createUploadUrl<ThrowOnError extends boolean = false>(
|
|
681
|
-
options: Options<PostApiStorageUploadUrlData, ThrowOnError
|
|
684
|
+
options: Options<PostApiStorageUploadUrlData, ThrowOnError>
|
|
682
685
|
) {
|
|
683
686
|
return (options.client ?? this.client).post<
|
|
684
687
|
PostApiStorageUploadUrlResponses,
|
|
@@ -697,7 +700,7 @@ export class Storage extends HeyApiClient {
|
|
|
697
700
|
|
|
698
701
|
export class Measurements extends HeyApiClient {
|
|
699
702
|
public getMyMeasurementProfile<ThrowOnError extends boolean = false>(
|
|
700
|
-
options?: Options<GetApiMeasurementsProfileMeData, ThrowOnError
|
|
703
|
+
options?: Options<GetApiMeasurementsProfileMeData, ThrowOnError>
|
|
701
704
|
) {
|
|
702
705
|
return (options?.client ?? this.client).get<
|
|
703
706
|
GetApiMeasurementsProfileMeResponses,
|
|
@@ -707,7 +710,7 @@ export class Measurements extends HeyApiClient {
|
|
|
707
710
|
}
|
|
708
711
|
|
|
709
712
|
public createMyMeasurementPlayerSession<ThrowOnError extends boolean = false>(
|
|
710
|
-
options: Options<PostApiMeasurementsPlayerSessionMeData, ThrowOnError
|
|
713
|
+
options: Options<PostApiMeasurementsPlayerSessionMeData, ThrowOnError>
|
|
711
714
|
) {
|
|
712
715
|
return (options.client ?? this.client).post<
|
|
713
716
|
PostApiMeasurementsPlayerSessionMeResponses,
|
|
@@ -726,7 +729,7 @@ export class Measurements extends HeyApiClient {
|
|
|
726
729
|
|
|
727
730
|
export class VideoMetrics extends HeyApiClient {
|
|
728
731
|
public getMyVideoMetrics<ThrowOnError extends boolean = false>(
|
|
729
|
-
options?: Options<GetApiVideoMetricsMeData, ThrowOnError
|
|
732
|
+
options?: Options<GetApiVideoMetricsMeData, ThrowOnError>
|
|
730
733
|
) {
|
|
731
734
|
return (options?.client ?? this.client).get<
|
|
732
735
|
GetApiVideoMetricsMeResponses,
|
|
@@ -738,7 +741,7 @@ export class VideoMetrics extends HeyApiClient {
|
|
|
738
741
|
|
|
739
742
|
export class Profile extends HeyApiClient {
|
|
740
743
|
public getProfileMe<ThrowOnError extends boolean = false>(
|
|
741
|
-
options?: Options<GetApiProfileMeData, ThrowOnError
|
|
744
|
+
options?: Options<GetApiProfileMeData, ThrowOnError>
|
|
742
745
|
) {
|
|
743
746
|
return (options?.client ?? this.client).get<
|
|
744
747
|
GetApiProfileMeResponses,
|
|
@@ -748,7 +751,7 @@ export class Profile extends HeyApiClient {
|
|
|
748
751
|
}
|
|
749
752
|
|
|
750
753
|
public updateProfileMe<ThrowOnError extends boolean = false>(
|
|
751
|
-
options: Options<PutApiProfileMeData, ThrowOnError
|
|
754
|
+
options: Options<PutApiProfileMeData, ThrowOnError>
|
|
752
755
|
) {
|
|
753
756
|
return (options.client ?? this.client).put<
|
|
754
757
|
PutApiProfileMeResponses,
|
|
@@ -767,17 +770,15 @@ export class Profile extends HeyApiClient {
|
|
|
767
770
|
|
|
768
771
|
export class Achievements extends HeyApiClient {
|
|
769
772
|
public getAchievementsCatalog<ThrowOnError extends boolean = false>(
|
|
770
|
-
options?: Options<GetApiAchievementsData, ThrowOnError
|
|
773
|
+
options?: Options<GetApiAchievementsData, ThrowOnError>
|
|
771
774
|
) {
|
|
772
|
-
return (options?.client ?? this.client).get<
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
ThrowOnError
|
|
776
|
-
>({ url: '/api/achievements', ...options });
|
|
775
|
+
return (options?.client ?? this.client).get<GetApiAchievementsResponses, unknown, ThrowOnError>(
|
|
776
|
+
{ url: '/api/achievements', ...options }
|
|
777
|
+
);
|
|
777
778
|
}
|
|
778
779
|
|
|
779
780
|
public getMyAchievements<ThrowOnError extends boolean = false>(
|
|
780
|
-
options?: Options<GetApiAchievementsMeData, ThrowOnError
|
|
781
|
+
options?: Options<GetApiAchievementsMeData, ThrowOnError>
|
|
781
782
|
) {
|
|
782
783
|
return (options?.client ?? this.client).get<
|
|
783
784
|
GetApiAchievementsMeResponses,
|
|
@@ -789,7 +790,7 @@ export class Achievements extends HeyApiClient {
|
|
|
789
790
|
|
|
790
791
|
export class Body extends HeyApiClient {
|
|
791
792
|
public getMyMeasurements<ThrowOnError extends boolean = false>(
|
|
792
|
-
options?: Options<GetApiBodyMeasurementsMeData, ThrowOnError
|
|
793
|
+
options?: Options<GetApiBodyMeasurementsMeData, ThrowOnError>
|
|
793
794
|
) {
|
|
794
795
|
return (options?.client ?? this.client).get<
|
|
795
796
|
GetApiBodyMeasurementsMeResponses,
|
|
@@ -799,7 +800,7 @@ export class Body extends HeyApiClient {
|
|
|
799
800
|
}
|
|
800
801
|
|
|
801
802
|
public createMeasurement<ThrowOnError extends boolean = false>(
|
|
802
|
-
options: Options<PostApiBodyMeasurementsData, ThrowOnError
|
|
803
|
+
options: Options<PostApiBodyMeasurementsData, ThrowOnError>
|
|
803
804
|
) {
|
|
804
805
|
return (options.client ?? this.client).post<
|
|
805
806
|
PostApiBodyMeasurementsResponses,
|
|
@@ -818,7 +819,7 @@ export class Body extends HeyApiClient {
|
|
|
818
819
|
|
|
819
820
|
export class Cmj extends HeyApiClient {
|
|
820
821
|
public getMyCmjMeasurements<ThrowOnError extends boolean = false>(
|
|
821
|
-
options?: Options<GetApiCmjMeasurementsMeData, ThrowOnError
|
|
822
|
+
options?: Options<GetApiCmjMeasurementsMeData, ThrowOnError>
|
|
822
823
|
) {
|
|
823
824
|
return (options?.client ?? this.client).get<
|
|
824
825
|
GetApiCmjMeasurementsMeResponses,
|
|
@@ -833,7 +834,7 @@ export class Challenges extends HeyApiClient {
|
|
|
833
834
|
* List all active challenges
|
|
834
835
|
*/
|
|
835
836
|
public getChallengesCatalog<ThrowOnError extends boolean = false>(
|
|
836
|
-
options?: Options<GetApiChallengesData, ThrowOnError
|
|
837
|
+
options?: Options<GetApiChallengesData, ThrowOnError>
|
|
837
838
|
) {
|
|
838
839
|
return (options?.client ?? this.client).get<
|
|
839
840
|
GetApiChallengesResponses,
|
|
@@ -846,7 +847,7 @@ export class Challenges extends HeyApiClient {
|
|
|
846
847
|
* Get the current user's active + recently-expired challenges
|
|
847
848
|
*/
|
|
848
849
|
public getMyChallenges<ThrowOnError extends boolean = false>(
|
|
849
|
-
options?: Options<GetApiChallengesMeData, ThrowOnError
|
|
850
|
+
options?: Options<GetApiChallengesMeData, ThrowOnError>
|
|
850
851
|
) {
|
|
851
852
|
return (options?.client ?? this.client).get<
|
|
852
853
|
GetApiChallengesMeResponses,
|
|
@@ -858,7 +859,7 @@ export class Challenges extends HeyApiClient {
|
|
|
858
859
|
|
|
859
860
|
export class Clubs extends HeyApiClient {
|
|
860
861
|
public getMyClubs<ThrowOnError extends boolean = false>(
|
|
861
|
-
options?: Options<GetApiClubsMeData, ThrowOnError
|
|
862
|
+
options?: Options<GetApiClubsMeData, ThrowOnError>
|
|
862
863
|
) {
|
|
863
864
|
return (options?.client ?? this.client).get<
|
|
864
865
|
GetApiClubsMeResponses,
|
|
@@ -868,7 +869,7 @@ export class Clubs extends HeyApiClient {
|
|
|
868
869
|
}
|
|
869
870
|
|
|
870
871
|
public createMyClub<ThrowOnError extends boolean = false>(
|
|
871
|
-
options: Options<PostApiClubsMeData, ThrowOnError
|
|
872
|
+
options: Options<PostApiClubsMeData, ThrowOnError>
|
|
872
873
|
) {
|
|
873
874
|
return (options.client ?? this.client).post<
|
|
874
875
|
PostApiClubsMeResponses,
|
|
@@ -885,7 +886,7 @@ export class Clubs extends HeyApiClient {
|
|
|
885
886
|
}
|
|
886
887
|
|
|
887
888
|
public deleteMyClub<ThrowOnError extends boolean = false>(
|
|
888
|
-
options: Options<DeleteApiClubsMeByIdData, ThrowOnError
|
|
889
|
+
options: Options<DeleteApiClubsMeByIdData, ThrowOnError>
|
|
889
890
|
) {
|
|
890
891
|
return (options.client ?? this.client).delete<
|
|
891
892
|
DeleteApiClubsMeByIdResponses,
|
|
@@ -895,7 +896,7 @@ export class Clubs extends HeyApiClient {
|
|
|
895
896
|
}
|
|
896
897
|
|
|
897
898
|
public updateMyClub<ThrowOnError extends boolean = false>(
|
|
898
|
-
options: Options<PatchApiClubsMeByIdData, ThrowOnError
|
|
899
|
+
options: Options<PatchApiClubsMeByIdData, ThrowOnError>
|
|
899
900
|
) {
|
|
900
901
|
return (options.client ?? this.client).patch<
|
|
901
902
|
PatchApiClubsMeByIdResponses,
|
|
@@ -914,7 +915,7 @@ export class Clubs extends HeyApiClient {
|
|
|
914
915
|
|
|
915
916
|
export class Documents extends HeyApiClient {
|
|
916
917
|
public getMyDocuments<ThrowOnError extends boolean = false>(
|
|
917
|
-
options?: Options<GetApiDocumentsMeData, ThrowOnError
|
|
918
|
+
options?: Options<GetApiDocumentsMeData, ThrowOnError>
|
|
918
919
|
) {
|
|
919
920
|
return (options?.client ?? this.client).get<
|
|
920
921
|
GetApiDocumentsMeResponses,
|
|
@@ -924,7 +925,7 @@ export class Documents extends HeyApiClient {
|
|
|
924
925
|
}
|
|
925
926
|
|
|
926
927
|
public createDocument<ThrowOnError extends boolean = false>(
|
|
927
|
-
options: Options<PostApiDocumentsData, ThrowOnError
|
|
928
|
+
options: Options<PostApiDocumentsData, ThrowOnError>
|
|
928
929
|
) {
|
|
929
930
|
return (options.client ?? this.client).post<
|
|
930
931
|
PostApiDocumentsResponses,
|
|
@@ -941,7 +942,7 @@ export class Documents extends HeyApiClient {
|
|
|
941
942
|
}
|
|
942
943
|
|
|
943
944
|
public deleteDocument<ThrowOnError extends boolean = false>(
|
|
944
|
-
options: Options<DeleteApiDocumentsByIdData, ThrowOnError
|
|
945
|
+
options: Options<DeleteApiDocumentsByIdData, ThrowOnError>
|
|
945
946
|
) {
|
|
946
947
|
return (options.client ?? this.client).delete<
|
|
947
948
|
DeleteApiDocumentsByIdResponses,
|
|
@@ -953,7 +954,7 @@ export class Documents extends HeyApiClient {
|
|
|
953
954
|
|
|
954
955
|
export class Index extends HeyApiClient {
|
|
955
956
|
public getCountries<ThrowOnError extends boolean = false>(
|
|
956
|
-
options?: Options<GetApiIndexCountriesData, ThrowOnError
|
|
957
|
+
options?: Options<GetApiIndexCountriesData, ThrowOnError>
|
|
957
958
|
) {
|
|
958
959
|
return (options?.client ?? this.client).get<
|
|
959
960
|
GetApiIndexCountriesResponses,
|
|
@@ -963,7 +964,7 @@ export class Index extends HeyApiClient {
|
|
|
963
964
|
}
|
|
964
965
|
|
|
965
966
|
public getIndexItems<ThrowOnError extends boolean = false>(
|
|
966
|
-
options: Options<GetApiIndexByTableNameData, ThrowOnError
|
|
967
|
+
options: Options<GetApiIndexByTableNameData, ThrowOnError>
|
|
967
968
|
) {
|
|
968
969
|
return (options.client ?? this.client).get<
|
|
969
970
|
GetApiIndexByTableNameResponses,
|
|
@@ -975,7 +976,7 @@ export class Index extends HeyApiClient {
|
|
|
975
976
|
|
|
976
977
|
export class Offers extends HeyApiClient {
|
|
977
978
|
public listConversations<ThrowOnError extends boolean = false>(
|
|
978
|
-
options?: Options<GetApiOffersConversationsData, ThrowOnError
|
|
979
|
+
options?: Options<GetApiOffersConversationsData, ThrowOnError>
|
|
979
980
|
) {
|
|
980
981
|
return (options?.client ?? this.client).get<
|
|
981
982
|
GetApiOffersConversationsResponses,
|
|
@@ -985,7 +986,7 @@ export class Offers extends HeyApiClient {
|
|
|
985
986
|
}
|
|
986
987
|
|
|
987
988
|
public createConversation<ThrowOnError extends boolean = false>(
|
|
988
|
-
options: Options<PostApiOffersConversationsData, ThrowOnError
|
|
989
|
+
options: Options<PostApiOffersConversationsData, ThrowOnError>
|
|
989
990
|
) {
|
|
990
991
|
return (options.client ?? this.client).post<
|
|
991
992
|
PostApiOffersConversationsResponses,
|
|
@@ -1002,7 +1003,7 @@ export class Offers extends HeyApiClient {
|
|
|
1002
1003
|
}
|
|
1003
1004
|
|
|
1004
1005
|
public listMessages<ThrowOnError extends boolean = false>(
|
|
1005
|
-
options: Options<GetApiOffersConversationsByIdMessagesData, ThrowOnError
|
|
1006
|
+
options: Options<GetApiOffersConversationsByIdMessagesData, ThrowOnError>
|
|
1006
1007
|
) {
|
|
1007
1008
|
return (options.client ?? this.client).get<
|
|
1008
1009
|
GetApiOffersConversationsByIdMessagesResponses,
|
|
@@ -1012,7 +1013,7 @@ export class Offers extends HeyApiClient {
|
|
|
1012
1013
|
}
|
|
1013
1014
|
|
|
1014
1015
|
public sendMessage<ThrowOnError extends boolean = false>(
|
|
1015
|
-
options: Options<PostApiOffersConversationsByIdMessagesData, ThrowOnError
|
|
1016
|
+
options: Options<PostApiOffersConversationsByIdMessagesData, ThrowOnError>
|
|
1016
1017
|
) {
|
|
1017
1018
|
return (options.client ?? this.client).post<
|
|
1018
1019
|
PostApiOffersConversationsByIdMessagesResponses,
|
|
@@ -1029,7 +1030,7 @@ export class Offers extends HeyApiClient {
|
|
|
1029
1030
|
}
|
|
1030
1031
|
|
|
1031
1032
|
public markConversationRead<ThrowOnError extends boolean = false>(
|
|
1032
|
-
options: Options<PatchApiOffersConversationsByIdReadData, ThrowOnError
|
|
1033
|
+
options: Options<PatchApiOffersConversationsByIdReadData, ThrowOnError>
|
|
1033
1034
|
) {
|
|
1034
1035
|
return (options.client ?? this.client).patch<
|
|
1035
1036
|
PatchApiOffersConversationsByIdReadResponses,
|
|
@@ -1041,7 +1042,7 @@ export class Offers extends HeyApiClient {
|
|
|
1041
1042
|
|
|
1042
1043
|
export class Organizations extends HeyApiClient {
|
|
1043
1044
|
public registerClub<ThrowOnError extends boolean = false>(
|
|
1044
|
-
options: Options<PostApiOrganizationsRegisterClubData, ThrowOnError
|
|
1045
|
+
options: Options<PostApiOrganizationsRegisterClubData, ThrowOnError>
|
|
1045
1046
|
) {
|
|
1046
1047
|
return (options.client ?? this.client).post<
|
|
1047
1048
|
PostApiOrganizationsRegisterClubResponses,
|
|
@@ -1058,7 +1059,7 @@ export class Organizations extends HeyApiClient {
|
|
|
1058
1059
|
}
|
|
1059
1060
|
|
|
1060
1061
|
public registerAgent<ThrowOnError extends boolean = false>(
|
|
1061
|
-
options: Options<PostApiOrganizationsRegisterAgentData, ThrowOnError
|
|
1062
|
+
options: Options<PostApiOrganizationsRegisterAgentData, ThrowOnError>
|
|
1062
1063
|
) {
|
|
1063
1064
|
return (options.client ?? this.client).post<
|
|
1064
1065
|
PostApiOrganizationsRegisterAgentResponses,
|
|
@@ -1075,7 +1076,7 @@ export class Organizations extends HeyApiClient {
|
|
|
1075
1076
|
}
|
|
1076
1077
|
|
|
1077
1078
|
public getMyOrganization<ThrowOnError extends boolean = false>(
|
|
1078
|
-
options?: Options<GetApiOrganizationsMeData, ThrowOnError
|
|
1079
|
+
options?: Options<GetApiOrganizationsMeData, ThrowOnError>
|
|
1079
1080
|
) {
|
|
1080
1081
|
return (options?.client ?? this.client).get<
|
|
1081
1082
|
GetApiOrganizationsMeResponses,
|
|
@@ -1085,7 +1086,7 @@ export class Organizations extends HeyApiClient {
|
|
|
1085
1086
|
}
|
|
1086
1087
|
|
|
1087
1088
|
public updateMyOrganization<ThrowOnError extends boolean = false>(
|
|
1088
|
-
options: Options<PutApiOrganizationsMeData, ThrowOnError
|
|
1089
|
+
options: Options<PutApiOrganizationsMeData, ThrowOnError>
|
|
1089
1090
|
) {
|
|
1090
1091
|
return (options.client ?? this.client).put<
|
|
1091
1092
|
PutApiOrganizationsMeResponses,
|
|
@@ -1104,17 +1105,16 @@ export class Organizations extends HeyApiClient {
|
|
|
1104
1105
|
|
|
1105
1106
|
export class Invitations extends HeyApiClient {
|
|
1106
1107
|
public listInvitations<ThrowOnError extends boolean = false>(
|
|
1107
|
-
options?: Options<GetApiInvitationsData, ThrowOnError
|
|
1108
|
+
options?: Options<GetApiInvitationsData, ThrowOnError>
|
|
1108
1109
|
) {
|
|
1109
|
-
return (options?.client ?? this.client).get<
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
>({ url: '/api/invitations', ...options });
|
|
1110
|
+
return (options?.client ?? this.client).get<GetApiInvitationsResponses, unknown, ThrowOnError>({
|
|
1111
|
+
url: '/api/invitations',
|
|
1112
|
+
...options,
|
|
1113
|
+
});
|
|
1114
1114
|
}
|
|
1115
1115
|
|
|
1116
1116
|
public sendInvitation<ThrowOnError extends boolean = false>(
|
|
1117
|
-
options: Options<PostApiInvitationsData, ThrowOnError
|
|
1117
|
+
options: Options<PostApiInvitationsData, ThrowOnError>
|
|
1118
1118
|
) {
|
|
1119
1119
|
return (options.client ?? this.client).post<
|
|
1120
1120
|
PostApiInvitationsResponses,
|
|
@@ -1131,7 +1131,7 @@ export class Invitations extends HeyApiClient {
|
|
|
1131
1131
|
}
|
|
1132
1132
|
|
|
1133
1133
|
public resendInvitation<ThrowOnError extends boolean = false>(
|
|
1134
|
-
options: Options<PostApiInvitationsByIdResendData, ThrowOnError
|
|
1134
|
+
options: Options<PostApiInvitationsByIdResendData, ThrowOnError>
|
|
1135
1135
|
) {
|
|
1136
1136
|
return (options.client ?? this.client).post<
|
|
1137
1137
|
PostApiInvitationsByIdResendResponses,
|
|
@@ -1141,7 +1141,7 @@ export class Invitations extends HeyApiClient {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
|
|
1143
1143
|
public deleteInvitation<ThrowOnError extends boolean = false>(
|
|
1144
|
-
options: Options<DeleteApiInvitationsByIdData, ThrowOnError
|
|
1144
|
+
options: Options<DeleteApiInvitationsByIdData, ThrowOnError>
|
|
1145
1145
|
) {
|
|
1146
1146
|
return (options.client ?? this.client).delete<
|
|
1147
1147
|
DeleteApiInvitationsByIdResponses,
|
|
@@ -1154,7 +1154,7 @@ export class Invitations extends HeyApiClient {
|
|
|
1154
1154
|
* Called by web app after Supabase auth callback to link invitee to their organization
|
|
1155
1155
|
*/
|
|
1156
1156
|
public acceptInvitation<ThrowOnError extends boolean = false>(
|
|
1157
|
-
options?: Options<PostApiInvitationsAcceptData, ThrowOnError
|
|
1157
|
+
options?: Options<PostApiInvitationsAcceptData, ThrowOnError>
|
|
1158
1158
|
) {
|
|
1159
1159
|
return (options?.client ?? this.client).post<
|
|
1160
1160
|
PostApiInvitationsAcceptResponses,
|
|
@@ -1169,7 +1169,7 @@ export class Kyc extends HeyApiClient {
|
|
|
1169
1169
|
* Start or resume a KYC verification job
|
|
1170
1170
|
*/
|
|
1171
1171
|
public startKyc<ThrowOnError extends boolean = false>(
|
|
1172
|
-
options: Options<PostApiKycStartData, ThrowOnError
|
|
1172
|
+
options: Options<PostApiKycStartData, ThrowOnError>
|
|
1173
1173
|
) {
|
|
1174
1174
|
return (options.client ?? this.client).post<
|
|
1175
1175
|
PostApiKycStartResponses,
|
|
@@ -1189,7 +1189,7 @@ export class Kyc extends HeyApiClient {
|
|
|
1189
1189
|
* Get a SmileID hosted verification URL (Smile Links) — redirect the user to this URL to complete KYC
|
|
1190
1190
|
*/
|
|
1191
1191
|
public startSmileLink<ThrowOnError extends boolean = false>(
|
|
1192
|
-
options: Options<PostApiKycSmileLinkData, ThrowOnError
|
|
1192
|
+
options: Options<PostApiKycSmileLinkData, ThrowOnError>
|
|
1193
1193
|
) {
|
|
1194
1194
|
return (options.client ?? this.client).post<
|
|
1195
1195
|
PostApiKycSmileLinkResponses,
|
|
@@ -1209,7 +1209,7 @@ export class Kyc extends HeyApiClient {
|
|
|
1209
1209
|
* SmileID webhook — receives job results (public, signature-verified)
|
|
1210
1210
|
*/
|
|
1211
1211
|
public kycWebhook<ThrowOnError extends boolean = false>(
|
|
1212
|
-
options: Options<PostApiKycWebhookData, ThrowOnError
|
|
1212
|
+
options: Options<PostApiKycWebhookData, ThrowOnError>
|
|
1213
1213
|
) {
|
|
1214
1214
|
return (options.client ?? this.client).post<
|
|
1215
1215
|
PostApiKycWebhookResponses,
|
|
@@ -1229,7 +1229,7 @@ export class Kyc extends HeyApiClient {
|
|
|
1229
1229
|
* Mark the current KYC capture job as submitted
|
|
1230
1230
|
*/
|
|
1231
1231
|
public markSubmittedKyc<ThrowOnError extends boolean = false>(
|
|
1232
|
-
options: Options<PostApiKycMarkSubmittedData, ThrowOnError
|
|
1232
|
+
options: Options<PostApiKycMarkSubmittedData, ThrowOnError>
|
|
1233
1233
|
) {
|
|
1234
1234
|
return (options.client ?? this.client).post<
|
|
1235
1235
|
PostApiKycMarkSubmittedResponses,
|
|
@@ -1249,7 +1249,7 @@ export class Kyc extends HeyApiClient {
|
|
|
1249
1249
|
* Cancel the active KYC verification job for the current user
|
|
1250
1250
|
*/
|
|
1251
1251
|
public cancelKyc<ThrowOnError extends boolean = false>(
|
|
1252
|
-
options: Options<PostApiKycCancelData, ThrowOnError
|
|
1252
|
+
options: Options<PostApiKycCancelData, ThrowOnError>
|
|
1253
1253
|
) {
|
|
1254
1254
|
return (options.client ?? this.client).post<
|
|
1255
1255
|
PostApiKycCancelResponses,
|
|
@@ -1269,7 +1269,7 @@ export class Kyc extends HeyApiClient {
|
|
|
1269
1269
|
* Get KYC status for a user
|
|
1270
1270
|
*/
|
|
1271
1271
|
public getKycStatus<ThrowOnError extends boolean = false>(
|
|
1272
|
-
options: Options<GetApiKycStatusByUserIdData, ThrowOnError
|
|
1272
|
+
options: Options<GetApiKycStatusByUserIdData, ThrowOnError>
|
|
1273
1273
|
) {
|
|
1274
1274
|
return (options.client ?? this.client).get<
|
|
1275
1275
|
GetApiKycStatusByUserIdResponses,
|
|
@@ -1284,7 +1284,7 @@ export class Training extends HeyApiClient {
|
|
|
1284
1284
|
* Get training content grouped by category, top 3 per category
|
|
1285
1285
|
*/
|
|
1286
1286
|
public getTrainingGrouped<ThrowOnError extends boolean = false>(
|
|
1287
|
-
options?: Options<GetApiTrainingGroupedData, ThrowOnError
|
|
1287
|
+
options?: Options<GetApiTrainingGroupedData, ThrowOnError>
|
|
1288
1288
|
) {
|
|
1289
1289
|
return (options?.client ?? this.client).get<
|
|
1290
1290
|
GetApiTrainingGroupedResponses,
|
|
@@ -1297,7 +1297,7 @@ export class Training extends HeyApiClient {
|
|
|
1297
1297
|
* List training content, optionally filtered by category
|
|
1298
1298
|
*/
|
|
1299
1299
|
public getTrainingList<ThrowOnError extends boolean = false>(
|
|
1300
|
-
options?: Options<GetApiTrainingData, ThrowOnError
|
|
1300
|
+
options?: Options<GetApiTrainingData, ThrowOnError>
|
|
1301
1301
|
) {
|
|
1302
1302
|
return (options?.client ?? this.client).get<
|
|
1303
1303
|
GetApiTrainingResponses,
|
|
@@ -1310,7 +1310,7 @@ export class Training extends HeyApiClient {
|
|
|
1310
1310
|
* Get full detail of a training content item
|
|
1311
1311
|
*/
|
|
1312
1312
|
public getTrainingById<ThrowOnError extends boolean = false>(
|
|
1313
|
-
options: Options<GetApiTrainingByIdData, ThrowOnError
|
|
1313
|
+
options: Options<GetApiTrainingByIdData, ThrowOnError>
|
|
1314
1314
|
) {
|
|
1315
1315
|
return (options.client ?? this.client).get<
|
|
1316
1316
|
GetApiTrainingByIdResponses,
|
|
@@ -1320,9 +1320,103 @@ export class Training extends HeyApiClient {
|
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
|
+
export class Trainingadmin extends HeyApiClient {
|
|
1324
|
+
/**
|
|
1325
|
+
* Get Training Admin lookup values
|
|
1326
|
+
*/
|
|
1327
|
+
public getTrainingAdminLookups<ThrowOnError extends boolean = false>(
|
|
1328
|
+
options?: Options<GetApiTrainingAdminLookupsData, ThrowOnError>
|
|
1329
|
+
) {
|
|
1330
|
+
return (options?.client ?? this.client).get<
|
|
1331
|
+
GetApiTrainingAdminLookupsResponses,
|
|
1332
|
+
GetApiTrainingAdminLookupsErrors,
|
|
1333
|
+
ThrowOnError
|
|
1334
|
+
>({ url: '/api/training/admin/lookups', ...options });
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
/**
|
|
1338
|
+
* List Training Admin content
|
|
1339
|
+
*/
|
|
1340
|
+
public getTrainingAdminContent<ThrowOnError extends boolean = false>(
|
|
1341
|
+
options?: Options<GetApiTrainingAdminContentData, ThrowOnError>
|
|
1342
|
+
) {
|
|
1343
|
+
return (options?.client ?? this.client).get<
|
|
1344
|
+
GetApiTrainingAdminContentResponses,
|
|
1345
|
+
GetApiTrainingAdminContentErrors,
|
|
1346
|
+
ThrowOnError
|
|
1347
|
+
>({ url: '/api/training/admin/content', ...options });
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* Create Training Admin content
|
|
1352
|
+
*/
|
|
1353
|
+
public createTrainingAdminContent<ThrowOnError extends boolean = false>(
|
|
1354
|
+
options: Options<PostApiTrainingAdminContentData, ThrowOnError>
|
|
1355
|
+
) {
|
|
1356
|
+
return (options.client ?? this.client).post<
|
|
1357
|
+
PostApiTrainingAdminContentResponses,
|
|
1358
|
+
PostApiTrainingAdminContentErrors,
|
|
1359
|
+
ThrowOnError
|
|
1360
|
+
>({
|
|
1361
|
+
url: '/api/training/admin/content',
|
|
1362
|
+
...options,
|
|
1363
|
+
headers: {
|
|
1364
|
+
'Content-Type': 'application/json',
|
|
1365
|
+
...options.headers,
|
|
1366
|
+
},
|
|
1367
|
+
});
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
* Soft delete Training Admin content
|
|
1372
|
+
*/
|
|
1373
|
+
public deleteTrainingAdminContent<ThrowOnError extends boolean = false>(
|
|
1374
|
+
options: Options<DeleteApiTrainingAdminContentByIdData, ThrowOnError>
|
|
1375
|
+
) {
|
|
1376
|
+
return (options.client ?? this.client).delete<
|
|
1377
|
+
DeleteApiTrainingAdminContentByIdResponses,
|
|
1378
|
+
DeleteApiTrainingAdminContentByIdErrors,
|
|
1379
|
+
ThrowOnError
|
|
1380
|
+
>({ url: '/api/training/admin/content/{id}', ...options });
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* Get Training Admin content by id
|
|
1385
|
+
*/
|
|
1386
|
+
public getTrainingAdminContentById<ThrowOnError extends boolean = false>(
|
|
1387
|
+
options: Options<GetApiTrainingAdminContentByIdData, ThrowOnError>
|
|
1388
|
+
) {
|
|
1389
|
+
return (options.client ?? this.client).get<
|
|
1390
|
+
GetApiTrainingAdminContentByIdResponses,
|
|
1391
|
+
GetApiTrainingAdminContentByIdErrors,
|
|
1392
|
+
ThrowOnError
|
|
1393
|
+
>({ url: '/api/training/admin/content/{id}', ...options });
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
/**
|
|
1397
|
+
* Update Training Admin content
|
|
1398
|
+
*/
|
|
1399
|
+
public updateTrainingAdminContent<ThrowOnError extends boolean = false>(
|
|
1400
|
+
options: Options<PatchApiTrainingAdminContentByIdData, ThrowOnError>
|
|
1401
|
+
) {
|
|
1402
|
+
return (options.client ?? this.client).patch<
|
|
1403
|
+
PatchApiTrainingAdminContentByIdResponses,
|
|
1404
|
+
PatchApiTrainingAdminContentByIdErrors,
|
|
1405
|
+
ThrowOnError
|
|
1406
|
+
>({
|
|
1407
|
+
url: '/api/training/admin/content/{id}',
|
|
1408
|
+
...options,
|
|
1409
|
+
headers: {
|
|
1410
|
+
'Content-Type': 'application/json',
|
|
1411
|
+
...options.headers,
|
|
1412
|
+
},
|
|
1413
|
+
});
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1323
1417
|
export class Videos extends HeyApiClient {
|
|
1324
1418
|
public getMyVideos<ThrowOnError extends boolean = false>(
|
|
1325
|
-
options: Options<GetApiVideosMeData, ThrowOnError
|
|
1419
|
+
options: Options<GetApiVideosMeData, ThrowOnError>
|
|
1326
1420
|
) {
|
|
1327
1421
|
return (options.client ?? this.client).get<
|
|
1328
1422
|
GetApiVideosMeResponses,
|
|
@@ -1332,7 +1426,7 @@ export class Videos extends HeyApiClient {
|
|
|
1332
1426
|
}
|
|
1333
1427
|
|
|
1334
1428
|
public createVideo<ThrowOnError extends boolean = false>(
|
|
1335
|
-
options: Options<PostApiVideosData, ThrowOnError
|
|
1429
|
+
options: Options<PostApiVideosData, ThrowOnError>
|
|
1336
1430
|
) {
|
|
1337
1431
|
return (options.client ?? this.client).post<
|
|
1338
1432
|
PostApiVideosResponses,
|
|
@@ -1349,7 +1443,7 @@ export class Videos extends HeyApiClient {
|
|
|
1349
1443
|
}
|
|
1350
1444
|
|
|
1351
1445
|
public getVideoPlayUrl<ThrowOnError extends boolean = false>(
|
|
1352
|
-
options: Options<GetApiVideosByIdPlayUrlData, ThrowOnError
|
|
1446
|
+
options: Options<GetApiVideosByIdPlayUrlData, ThrowOnError>
|
|
1353
1447
|
) {
|
|
1354
1448
|
return (options.client ?? this.client).get<
|
|
1355
1449
|
GetApiVideosByIdPlayUrlResponses,
|
|
@@ -1359,7 +1453,7 @@ export class Videos extends HeyApiClient {
|
|
|
1359
1453
|
}
|
|
1360
1454
|
|
|
1361
1455
|
public deleteVideo<ThrowOnError extends boolean = false>(
|
|
1362
|
-
options: Options<DeleteApiVideosByIdData, ThrowOnError
|
|
1456
|
+
options: Options<DeleteApiVideosByIdData, ThrowOnError>
|
|
1363
1457
|
) {
|
|
1364
1458
|
return (options.client ?? this.client).delete<
|
|
1365
1459
|
DeleteApiVideosByIdResponses,
|
|
@@ -1371,7 +1465,7 @@ export class Videos extends HeyApiClient {
|
|
|
1371
1465
|
|
|
1372
1466
|
export class VideoLinks extends HeyApiClient {
|
|
1373
1467
|
public getMyVideoLinks<ThrowOnError extends boolean = false>(
|
|
1374
|
-
options?: Options<GetApiVideoLinksMeData, ThrowOnError
|
|
1468
|
+
options?: Options<GetApiVideoLinksMeData, ThrowOnError>
|
|
1375
1469
|
) {
|
|
1376
1470
|
return (options?.client ?? this.client).get<
|
|
1377
1471
|
GetApiVideoLinksMeResponses,
|
|
@@ -1381,7 +1475,7 @@ export class VideoLinks extends HeyApiClient {
|
|
|
1381
1475
|
}
|
|
1382
1476
|
|
|
1383
1477
|
public createVideoLink<ThrowOnError extends boolean = false>(
|
|
1384
|
-
options: Options<PostApiVideoLinksData, ThrowOnError
|
|
1478
|
+
options: Options<PostApiVideoLinksData, ThrowOnError>
|
|
1385
1479
|
) {
|
|
1386
1480
|
return (options.client ?? this.client).post<
|
|
1387
1481
|
PostApiVideoLinksResponses,
|
|
@@ -1398,7 +1492,7 @@ export class VideoLinks extends HeyApiClient {
|
|
|
1398
1492
|
}
|
|
1399
1493
|
|
|
1400
1494
|
public deleteVideoLink<ThrowOnError extends boolean = false>(
|
|
1401
|
-
options: Options<DeleteApiVideoLinksByIdData, ThrowOnError
|
|
1495
|
+
options: Options<DeleteApiVideoLinksByIdData, ThrowOnError>
|
|
1402
1496
|
) {
|
|
1403
1497
|
return (options.client ?? this.client).delete<
|
|
1404
1498
|
DeleteApiVideoLinksByIdResponses,
|
|
@@ -1410,7 +1504,7 @@ export class VideoLinks extends HeyApiClient {
|
|
|
1410
1504
|
|
|
1411
1505
|
export class Dashboard extends HeyApiClient {
|
|
1412
1506
|
public getScoutDashboard<ThrowOnError extends boolean = false>(
|
|
1413
|
-
options?: Options<GetApiDashboardMeData, ThrowOnError
|
|
1507
|
+
options?: Options<GetApiDashboardMeData, ThrowOnError>
|
|
1414
1508
|
) {
|
|
1415
1509
|
return (options?.client ?? this.client).get<
|
|
1416
1510
|
GetApiDashboardMeResponses,
|
|
@@ -1423,7 +1517,7 @@ export class Dashboard extends HeyApiClient {
|
|
|
1423
1517
|
* Signed play URL for a player video — records the view
|
|
1424
1518
|
*/
|
|
1425
1519
|
public getScoutVideoPlayUrl<ThrowOnError extends boolean = false>(
|
|
1426
|
-
options: Options<GetApiDashboardVideosByIdPlayUrlData, ThrowOnError
|
|
1520
|
+
options: Options<GetApiDashboardVideosByIdPlayUrlData, ThrowOnError>
|
|
1427
1521
|
) {
|
|
1428
1522
|
return (options.client ?? this.client).get<
|
|
1429
1523
|
GetApiDashboardVideosByIdPlayUrlResponses,
|
|
@@ -1438,7 +1532,7 @@ export class Subscriptions extends HeyApiClient {
|
|
|
1438
1532
|
* List available subscription plans
|
|
1439
1533
|
*/
|
|
1440
1534
|
public getSubscriptionPlans<ThrowOnError extends boolean = false>(
|
|
1441
|
-
options?: Options<GetApiSubscriptionsPlansData, ThrowOnError
|
|
1535
|
+
options?: Options<GetApiSubscriptionsPlansData, ThrowOnError>
|
|
1442
1536
|
) {
|
|
1443
1537
|
return (options?.client ?? this.client).get<
|
|
1444
1538
|
GetApiSubscriptionsPlansResponses,
|
|
@@ -1451,7 +1545,7 @@ export class Subscriptions extends HeyApiClient {
|
|
|
1451
1545
|
* Get the current user's subscription status
|
|
1452
1546
|
*/
|
|
1453
1547
|
public getMySubscription<ThrowOnError extends boolean = false>(
|
|
1454
|
-
options?: Options<GetApiSubscriptionsMeData, ThrowOnError
|
|
1548
|
+
options?: Options<GetApiSubscriptionsMeData, ThrowOnError>
|
|
1455
1549
|
) {
|
|
1456
1550
|
return (options?.client ?? this.client).get<
|
|
1457
1551
|
GetApiSubscriptionsMeResponses,
|
|
@@ -1464,7 +1558,7 @@ export class Subscriptions extends HeyApiClient {
|
|
|
1464
1558
|
* Create a Stripe Checkout Session — redirect the user to the returned URL
|
|
1465
1559
|
*/
|
|
1466
1560
|
public createCheckout<ThrowOnError extends boolean = false>(
|
|
1467
|
-
options: Options<PostApiSubscriptionsCheckoutData, ThrowOnError
|
|
1561
|
+
options: Options<PostApiSubscriptionsCheckoutData, ThrowOnError>
|
|
1468
1562
|
) {
|
|
1469
1563
|
return (options.client ?? this.client).post<
|
|
1470
1564
|
PostApiSubscriptionsCheckoutResponses,
|
|
@@ -1484,7 +1578,7 @@ export class Subscriptions extends HeyApiClient {
|
|
|
1484
1578
|
* Create a Stripe Billing Portal Session — redirect the user to the returned URL
|
|
1485
1579
|
*/
|
|
1486
1580
|
public createPortal<ThrowOnError extends boolean = false>(
|
|
1487
|
-
options: Options<PostApiSubscriptionsPortalData, ThrowOnError
|
|
1581
|
+
options: Options<PostApiSubscriptionsPortalData, ThrowOnError>
|
|
1488
1582
|
) {
|
|
1489
1583
|
return (options.client ?? this.client).post<
|
|
1490
1584
|
PostApiSubscriptionsPortalResponses,
|
|
@@ -1504,7 +1598,7 @@ export class Subscriptions extends HeyApiClient {
|
|
|
1504
1598
|
* Stripe webhook endpoint — receives signed events (public, signature-verified)
|
|
1505
1599
|
*/
|
|
1506
1600
|
public stripeWebhook<ThrowOnError extends boolean = false>(
|
|
1507
|
-
options: Options<PostApiSubscriptionsWebhookData, ThrowOnError
|
|
1601
|
+
options: Options<PostApiSubscriptionsWebhookData, ThrowOnError>
|
|
1508
1602
|
) {
|
|
1509
1603
|
return (options.client ?? this.client).post<
|
|
1510
1604
|
PostApiSubscriptionsWebhookResponses,
|
|
@@ -1622,6 +1716,11 @@ export class GlobalScoutMeClient extends HeyApiClient {
|
|
|
1622
1716
|
return (this._training ??= new Training({ client: this.client }));
|
|
1623
1717
|
}
|
|
1624
1718
|
|
|
1719
|
+
private _trainingadmin?: Trainingadmin;
|
|
1720
|
+
get trainingadmin(): Trainingadmin {
|
|
1721
|
+
return (this._trainingadmin ??= new Trainingadmin({ client: this.client }));
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1625
1724
|
private _videos?: Videos;
|
|
1626
1725
|
get videos(): Videos {
|
|
1627
1726
|
return (this._videos ??= new Videos({ client: this.client }));
|