@globalscoutme/api-client 1.1.9 → 1.1.11
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 +297 -0
- 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 +1 -1
- package/dist/sdk.gen.js +8 -2
- package/dist/types.gen.d.ts +71 -18
- package/index.ts +6 -1
- package/package.json +2 -2
- package/sdk.gen.ts +104 -122
- package/tsconfig.json +1 -2
- package/types.gen.ts +104 -68
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,
|
|
@@ -282,7 +278,7 @@ class HeyApiRegistry<T> {
|
|
|
282
278
|
const instance = this.instances.get(key ?? this.defaultKey);
|
|
283
279
|
if (!instance) {
|
|
284
280
|
throw new Error(
|
|
285
|
-
`No SDK client found. Create one with "new GlobalScoutMeClient()" to fix this error
|
|
281
|
+
`No SDK client found. Create one with "new GlobalScoutMeClient()" to fix this error.`
|
|
286
282
|
);
|
|
287
283
|
}
|
|
288
284
|
return instance;
|
|
@@ -295,7 +291,7 @@ class HeyApiRegistry<T> {
|
|
|
295
291
|
|
|
296
292
|
export class Auth extends HeyApiClient {
|
|
297
293
|
public getAuthMe<ThrowOnError extends boolean = false>(
|
|
298
|
-
options?: Options<GetApiAuthMeData, ThrowOnError
|
|
294
|
+
options?: Options<GetApiAuthMeData, ThrowOnError>
|
|
299
295
|
) {
|
|
300
296
|
return (options?.client ?? this.client).get<
|
|
301
297
|
GetApiAuthMeResponses,
|
|
@@ -307,7 +303,7 @@ export class Auth extends HeyApiClient {
|
|
|
307
303
|
|
|
308
304
|
export class Players extends HeyApiClient {
|
|
309
305
|
public deleteMe<ThrowOnError extends boolean = false>(
|
|
310
|
-
options?: Options<DeleteApiPlayersMeData, ThrowOnError
|
|
306
|
+
options?: Options<DeleteApiPlayersMeData, ThrowOnError>
|
|
311
307
|
) {
|
|
312
308
|
return (options?.client ?? this.client).delete<
|
|
313
309
|
DeleteApiPlayersMeResponses,
|
|
@@ -317,7 +313,7 @@ export class Players extends HeyApiClient {
|
|
|
317
313
|
}
|
|
318
314
|
|
|
319
315
|
public getMe<ThrowOnError extends boolean = false>(
|
|
320
|
-
options?: Options<GetApiPlayersMeData, ThrowOnError
|
|
316
|
+
options?: Options<GetApiPlayersMeData, ThrowOnError>
|
|
321
317
|
) {
|
|
322
318
|
return (options?.client ?? this.client).get<
|
|
323
319
|
GetApiPlayersMeResponses,
|
|
@@ -327,7 +323,7 @@ export class Players extends HeyApiClient {
|
|
|
327
323
|
}
|
|
328
324
|
|
|
329
325
|
public patchMe<ThrowOnError extends boolean = false>(
|
|
330
|
-
options: Options<PatchApiPlayersMeData, ThrowOnError
|
|
326
|
+
options: Options<PatchApiPlayersMeData, ThrowOnError>
|
|
331
327
|
) {
|
|
332
328
|
return (options.client ?? this.client).patch<
|
|
333
329
|
PatchApiPlayersMeResponses,
|
|
@@ -344,7 +340,7 @@ export class Players extends HeyApiClient {
|
|
|
344
340
|
}
|
|
345
341
|
|
|
346
342
|
public getMyDashboard<ThrowOnError extends boolean = false>(
|
|
347
|
-
options?: Options<GetApiPlayersMeDashboardData, ThrowOnError
|
|
343
|
+
options?: Options<GetApiPlayersMeDashboardData, ThrowOnError>
|
|
348
344
|
) {
|
|
349
345
|
return (options?.client ?? this.client).get<
|
|
350
346
|
GetApiPlayersMeDashboardResponses,
|
|
@@ -357,7 +353,7 @@ export class Players extends HeyApiClient {
|
|
|
357
353
|
* Ping presence; records login day and updates user timezone
|
|
358
354
|
*/
|
|
359
355
|
public heartbeat<ThrowOnError extends boolean = false>(
|
|
360
|
-
options: Options<PostApiPlayersMeHeartbeatData, ThrowOnError
|
|
356
|
+
options: Options<PostApiPlayersMeHeartbeatData, ThrowOnError>
|
|
361
357
|
) {
|
|
362
358
|
return (options.client ?? this.client).post<
|
|
363
359
|
PostApiPlayersMeHeartbeatResponses,
|
|
@@ -374,7 +370,7 @@ export class Players extends HeyApiClient {
|
|
|
374
370
|
}
|
|
375
371
|
|
|
376
372
|
public searchPlayers<ThrowOnError extends boolean = false>(
|
|
377
|
-
options: Options<PostApiPlayersSearchData, ThrowOnError
|
|
373
|
+
options: Options<PostApiPlayersSearchData, ThrowOnError>
|
|
378
374
|
) {
|
|
379
375
|
return (options.client ?? this.client).post<
|
|
380
376
|
PostApiPlayersSearchResponses,
|
|
@@ -391,7 +387,7 @@ export class Players extends HeyApiClient {
|
|
|
391
387
|
}
|
|
392
388
|
|
|
393
389
|
public getPlayerMeasurementProfile<ThrowOnError extends boolean = false>(
|
|
394
|
-
options: Options<GetApiPlayersByIdMeasurementsData, ThrowOnError
|
|
390
|
+
options: Options<GetApiPlayersByIdMeasurementsData, ThrowOnError>
|
|
395
391
|
) {
|
|
396
392
|
return (options.client ?? this.client).get<
|
|
397
393
|
GetApiPlayersByIdMeasurementsResponses,
|
|
@@ -401,7 +397,7 @@ export class Players extends HeyApiClient {
|
|
|
401
397
|
}
|
|
402
398
|
|
|
403
399
|
public getPlayerVideoMetrics<ThrowOnError extends boolean = false>(
|
|
404
|
-
options: Options<GetApiPlayersByIdVideoMetricsData, ThrowOnError
|
|
400
|
+
options: Options<GetApiPlayersByIdVideoMetricsData, ThrowOnError>
|
|
405
401
|
) {
|
|
406
402
|
return (options.client ?? this.client).get<
|
|
407
403
|
GetApiPlayersByIdVideoMetricsResponses,
|
|
@@ -411,7 +407,7 @@ export class Players extends HeyApiClient {
|
|
|
411
407
|
}
|
|
412
408
|
|
|
413
409
|
public getPlayerReport<ThrowOnError extends boolean = false>(
|
|
414
|
-
options: Options<GetApiPlayersByIdReportData, ThrowOnError
|
|
410
|
+
options: Options<GetApiPlayersByIdReportData, ThrowOnError>
|
|
415
411
|
) {
|
|
416
412
|
return (options.client ?? this.client).get<
|
|
417
413
|
GetApiPlayersByIdReportResponses,
|
|
@@ -421,7 +417,7 @@ export class Players extends HeyApiClient {
|
|
|
421
417
|
}
|
|
422
418
|
|
|
423
419
|
public getPlayerById<ThrowOnError extends boolean = false>(
|
|
424
|
-
options: Options<GetApiPlayersByIdData, ThrowOnError
|
|
420
|
+
options: Options<GetApiPlayersByIdData, ThrowOnError>
|
|
425
421
|
) {
|
|
426
422
|
return (options.client ?? this.client).get<
|
|
427
423
|
GetApiPlayersByIdResponses,
|
|
@@ -433,17 +429,15 @@ export class Players extends HeyApiClient {
|
|
|
433
429
|
|
|
434
430
|
export class Billing extends HeyApiClient {
|
|
435
431
|
public listBillingPlans<ThrowOnError extends boolean = false>(
|
|
436
|
-
options?: Options<GetApiBillingPlansData, ThrowOnError
|
|
432
|
+
options?: Options<GetApiBillingPlansData, ThrowOnError>
|
|
437
433
|
) {
|
|
438
|
-
return (options?.client ?? this.client).get<
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
ThrowOnError
|
|
442
|
-
>({ url: '/api/billing/plans', ...options });
|
|
434
|
+
return (options?.client ?? this.client).get<GetApiBillingPlansResponses, unknown, ThrowOnError>(
|
|
435
|
+
{ url: '/api/billing/plans', ...options }
|
|
436
|
+
);
|
|
443
437
|
}
|
|
444
438
|
|
|
445
439
|
public listBillingProducts<ThrowOnError extends boolean = false>(
|
|
446
|
-
options?: Options<GetApiBillingProductsData, ThrowOnError
|
|
440
|
+
options?: Options<GetApiBillingProductsData, ThrowOnError>
|
|
447
441
|
) {
|
|
448
442
|
return (options?.client ?? this.client).get<
|
|
449
443
|
GetApiBillingProductsResponses,
|
|
@@ -453,17 +447,16 @@ export class Billing extends HeyApiClient {
|
|
|
453
447
|
}
|
|
454
448
|
|
|
455
449
|
public getMyBillingEntitlement<ThrowOnError extends boolean = false>(
|
|
456
|
-
options?: Options<GetApiBillingMeData, ThrowOnError
|
|
450
|
+
options?: Options<GetApiBillingMeData, ThrowOnError>
|
|
457
451
|
) {
|
|
458
|
-
return (options?.client ?? this.client).get<
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
>({ url: '/api/billing/me', ...options });
|
|
452
|
+
return (options?.client ?? this.client).get<GetApiBillingMeResponses, unknown, ThrowOnError>({
|
|
453
|
+
url: '/api/billing/me',
|
|
454
|
+
...options,
|
|
455
|
+
});
|
|
463
456
|
}
|
|
464
457
|
|
|
465
458
|
public redeemBillingAccessCode<ThrowOnError extends boolean = false>(
|
|
466
|
-
options: Options<PostApiBillingAccessCodesRedeemData, ThrowOnError
|
|
459
|
+
options: Options<PostApiBillingAccessCodesRedeemData, ThrowOnError>
|
|
467
460
|
) {
|
|
468
461
|
return (options.client ?? this.client).post<
|
|
469
462
|
PostApiBillingAccessCodesRedeemResponses,
|
|
@@ -480,7 +473,7 @@ export class Billing extends HeyApiClient {
|
|
|
480
473
|
}
|
|
481
474
|
|
|
482
475
|
public getCurrentBillingReportPurchase<ThrowOnError extends boolean = false>(
|
|
483
|
-
options?: Options<GetApiBillingReportPurchasesCurrentData, ThrowOnError
|
|
476
|
+
options?: Options<GetApiBillingReportPurchasesCurrentData, ThrowOnError>
|
|
484
477
|
) {
|
|
485
478
|
return (options?.client ?? this.client).get<
|
|
486
479
|
GetApiBillingReportPurchasesCurrentResponses,
|
|
@@ -490,7 +483,7 @@ export class Billing extends HeyApiClient {
|
|
|
490
483
|
}
|
|
491
484
|
|
|
492
485
|
public listBillingReportPurchaseHistory<ThrowOnError extends boolean = false>(
|
|
493
|
-
options?: Options<GetApiBillingReportPurchasesHistoryData, ThrowOnError
|
|
486
|
+
options?: Options<GetApiBillingReportPurchasesHistoryData, ThrowOnError>
|
|
494
487
|
) {
|
|
495
488
|
return (options?.client ?? this.client).get<
|
|
496
489
|
GetApiBillingReportPurchasesHistoryResponses,
|
|
@@ -500,7 +493,7 @@ export class Billing extends HeyApiClient {
|
|
|
500
493
|
}
|
|
501
494
|
|
|
502
495
|
public getBillingReportResult<ThrowOnError extends boolean = false>(
|
|
503
|
-
options: Options<GetApiBillingReportPurchasesByIdReportData, ThrowOnError
|
|
496
|
+
options: Options<GetApiBillingReportPurchasesByIdReportData, ThrowOnError>
|
|
504
497
|
) {
|
|
505
498
|
return (options.client ?? this.client).get<
|
|
506
499
|
GetApiBillingReportPurchasesByIdReportResponses,
|
|
@@ -510,10 +503,7 @@ export class Billing extends HeyApiClient {
|
|
|
510
503
|
}
|
|
511
504
|
|
|
512
505
|
public startBillingReportGeneration<ThrowOnError extends boolean = false>(
|
|
513
|
-
options: Options<
|
|
514
|
-
PostApiBillingReportPurchasesByIdStartGenerationData,
|
|
515
|
-
ThrowOnError
|
|
516
|
-
>,
|
|
506
|
+
options: Options<PostApiBillingReportPurchasesByIdStartGenerationData, ThrowOnError>
|
|
517
507
|
) {
|
|
518
508
|
return (options.client ?? this.client).post<
|
|
519
509
|
PostApiBillingReportPurchasesByIdStartGenerationResponses,
|
|
@@ -529,13 +519,8 @@ export class Billing extends HeyApiClient {
|
|
|
529
519
|
});
|
|
530
520
|
}
|
|
531
521
|
|
|
532
|
-
public findBillingReportPlayerCandidates<
|
|
533
|
-
|
|
534
|
-
>(
|
|
535
|
-
options: Options<
|
|
536
|
-
PostApiBillingReportPurchasesPlayerCandidatesData,
|
|
537
|
-
ThrowOnError
|
|
538
|
-
>,
|
|
522
|
+
public findBillingReportPlayerCandidates<ThrowOnError extends boolean = false>(
|
|
523
|
+
options: Options<PostApiBillingReportPurchasesPlayerCandidatesData, ThrowOnError>
|
|
539
524
|
) {
|
|
540
525
|
return (options.client ?? this.client).post<
|
|
541
526
|
PostApiBillingReportPurchasesPlayerCandidatesResponses,
|
|
@@ -552,7 +537,7 @@ export class Billing extends HeyApiClient {
|
|
|
552
537
|
}
|
|
553
538
|
|
|
554
539
|
public createStripeCheckoutSession<ThrowOnError extends boolean = false>(
|
|
555
|
-
options: Options<PostApiBillingStripeCheckoutSessionData, ThrowOnError
|
|
540
|
+
options: Options<PostApiBillingStripeCheckoutSessionData, ThrowOnError>
|
|
556
541
|
) {
|
|
557
542
|
return (options.client ?? this.client).post<
|
|
558
543
|
PostApiBillingStripeCheckoutSessionResponses,
|
|
@@ -569,7 +554,7 @@ export class Billing extends HeyApiClient {
|
|
|
569
554
|
}
|
|
570
555
|
|
|
571
556
|
public createStripePortalSession<ThrowOnError extends boolean = false>(
|
|
572
|
-
options?: Options<PostApiBillingStripePortalSessionData, ThrowOnError
|
|
557
|
+
options?: Options<PostApiBillingStripePortalSessionData, ThrowOnError>
|
|
573
558
|
) {
|
|
574
559
|
return (options?.client ?? this.client).post<
|
|
575
560
|
PostApiBillingStripePortalSessionResponses,
|
|
@@ -579,7 +564,7 @@ export class Billing extends HeyApiClient {
|
|
|
579
564
|
}
|
|
580
565
|
|
|
581
566
|
public syncAppleBillingPurchase<ThrowOnError extends boolean = false>(
|
|
582
|
-
options: Options<PostApiBillingAppleSyncPurchaseData, ThrowOnError
|
|
567
|
+
options: Options<PostApiBillingAppleSyncPurchaseData, ThrowOnError>
|
|
583
568
|
) {
|
|
584
569
|
return (options.client ?? this.client).post<
|
|
585
570
|
PostApiBillingAppleSyncPurchaseResponses,
|
|
@@ -596,7 +581,7 @@ export class Billing extends HeyApiClient {
|
|
|
596
581
|
}
|
|
597
582
|
|
|
598
583
|
public syncGoogleBillingPurchase<ThrowOnError extends boolean = false>(
|
|
599
|
-
options: Options<PostApiBillingGoogleSyncPurchaseData, ThrowOnError
|
|
584
|
+
options: Options<PostApiBillingGoogleSyncPurchaseData, ThrowOnError>
|
|
600
585
|
) {
|
|
601
586
|
return (options.client ?? this.client).post<
|
|
602
587
|
PostApiBillingGoogleSyncPurchaseResponses,
|
|
@@ -615,7 +600,7 @@ export class Billing extends HeyApiClient {
|
|
|
615
600
|
|
|
616
601
|
export class Notifications extends HeyApiClient {
|
|
617
602
|
public getNotificationPreferences<ThrowOnError extends boolean = false>(
|
|
618
|
-
options?: Options<GetApiNotificationsPreferencesData, ThrowOnError
|
|
603
|
+
options?: Options<GetApiNotificationsPreferencesData, ThrowOnError>
|
|
619
604
|
) {
|
|
620
605
|
return (options?.client ?? this.client).get<
|
|
621
606
|
GetApiNotificationsPreferencesResponses,
|
|
@@ -625,7 +610,7 @@ export class Notifications extends HeyApiClient {
|
|
|
625
610
|
}
|
|
626
611
|
|
|
627
612
|
public updateNotificationPreferences<ThrowOnError extends boolean = false>(
|
|
628
|
-
options: Options<PatchApiNotificationsPreferencesData, ThrowOnError
|
|
613
|
+
options: Options<PatchApiNotificationsPreferencesData, ThrowOnError>
|
|
629
614
|
) {
|
|
630
615
|
return (options.client ?? this.client).patch<
|
|
631
616
|
PatchApiNotificationsPreferencesResponses,
|
|
@@ -642,7 +627,7 @@ export class Notifications extends HeyApiClient {
|
|
|
642
627
|
}
|
|
643
628
|
|
|
644
629
|
public registerPushDevice<ThrowOnError extends boolean = false>(
|
|
645
|
-
options: Options<PostApiNotificationsDevicesData, ThrowOnError
|
|
630
|
+
options: Options<PostApiNotificationsDevicesData, ThrowOnError>
|
|
646
631
|
) {
|
|
647
632
|
return (options.client ?? this.client).post<
|
|
648
633
|
PostApiNotificationsDevicesResponses,
|
|
@@ -659,7 +644,7 @@ export class Notifications extends HeyApiClient {
|
|
|
659
644
|
}
|
|
660
645
|
|
|
661
646
|
public deactivateCurrentPushDevice<ThrowOnError extends boolean = false>(
|
|
662
|
-
options: Options<DeleteApiNotificationsDevicesCurrentData, ThrowOnError
|
|
647
|
+
options: Options<DeleteApiNotificationsDevicesCurrentData, ThrowOnError>
|
|
663
648
|
) {
|
|
664
649
|
return (options.client ?? this.client).delete<
|
|
665
650
|
DeleteApiNotificationsDevicesCurrentResponses,
|
|
@@ -678,7 +663,7 @@ export class Notifications extends HeyApiClient {
|
|
|
678
663
|
|
|
679
664
|
export class Storage extends HeyApiClient {
|
|
680
665
|
public createUploadUrl<ThrowOnError extends boolean = false>(
|
|
681
|
-
options: Options<PostApiStorageUploadUrlData, ThrowOnError
|
|
666
|
+
options: Options<PostApiStorageUploadUrlData, ThrowOnError>
|
|
682
667
|
) {
|
|
683
668
|
return (options.client ?? this.client).post<
|
|
684
669
|
PostApiStorageUploadUrlResponses,
|
|
@@ -697,7 +682,7 @@ export class Storage extends HeyApiClient {
|
|
|
697
682
|
|
|
698
683
|
export class Measurements extends HeyApiClient {
|
|
699
684
|
public getMyMeasurementProfile<ThrowOnError extends boolean = false>(
|
|
700
|
-
options?: Options<GetApiMeasurementsProfileMeData, ThrowOnError
|
|
685
|
+
options?: Options<GetApiMeasurementsProfileMeData, ThrowOnError>
|
|
701
686
|
) {
|
|
702
687
|
return (options?.client ?? this.client).get<
|
|
703
688
|
GetApiMeasurementsProfileMeResponses,
|
|
@@ -707,7 +692,7 @@ export class Measurements extends HeyApiClient {
|
|
|
707
692
|
}
|
|
708
693
|
|
|
709
694
|
public createMyMeasurementPlayerSession<ThrowOnError extends boolean = false>(
|
|
710
|
-
options: Options<PostApiMeasurementsPlayerSessionMeData, ThrowOnError
|
|
695
|
+
options: Options<PostApiMeasurementsPlayerSessionMeData, ThrowOnError>
|
|
711
696
|
) {
|
|
712
697
|
return (options.client ?? this.client).post<
|
|
713
698
|
PostApiMeasurementsPlayerSessionMeResponses,
|
|
@@ -726,7 +711,7 @@ export class Measurements extends HeyApiClient {
|
|
|
726
711
|
|
|
727
712
|
export class VideoMetrics extends HeyApiClient {
|
|
728
713
|
public getMyVideoMetrics<ThrowOnError extends boolean = false>(
|
|
729
|
-
options?: Options<GetApiVideoMetricsMeData, ThrowOnError
|
|
714
|
+
options?: Options<GetApiVideoMetricsMeData, ThrowOnError>
|
|
730
715
|
) {
|
|
731
716
|
return (options?.client ?? this.client).get<
|
|
732
717
|
GetApiVideoMetricsMeResponses,
|
|
@@ -738,7 +723,7 @@ export class VideoMetrics extends HeyApiClient {
|
|
|
738
723
|
|
|
739
724
|
export class Profile extends HeyApiClient {
|
|
740
725
|
public getProfileMe<ThrowOnError extends boolean = false>(
|
|
741
|
-
options?: Options<GetApiProfileMeData, ThrowOnError
|
|
726
|
+
options?: Options<GetApiProfileMeData, ThrowOnError>
|
|
742
727
|
) {
|
|
743
728
|
return (options?.client ?? this.client).get<
|
|
744
729
|
GetApiProfileMeResponses,
|
|
@@ -748,7 +733,7 @@ export class Profile extends HeyApiClient {
|
|
|
748
733
|
}
|
|
749
734
|
|
|
750
735
|
public updateProfileMe<ThrowOnError extends boolean = false>(
|
|
751
|
-
options: Options<PutApiProfileMeData, ThrowOnError
|
|
736
|
+
options: Options<PutApiProfileMeData, ThrowOnError>
|
|
752
737
|
) {
|
|
753
738
|
return (options.client ?? this.client).put<
|
|
754
739
|
PutApiProfileMeResponses,
|
|
@@ -767,17 +752,15 @@ export class Profile extends HeyApiClient {
|
|
|
767
752
|
|
|
768
753
|
export class Achievements extends HeyApiClient {
|
|
769
754
|
public getAchievementsCatalog<ThrowOnError extends boolean = false>(
|
|
770
|
-
options?: Options<GetApiAchievementsData, ThrowOnError
|
|
755
|
+
options?: Options<GetApiAchievementsData, ThrowOnError>
|
|
771
756
|
) {
|
|
772
|
-
return (options?.client ?? this.client).get<
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
ThrowOnError
|
|
776
|
-
>({ url: '/api/achievements', ...options });
|
|
757
|
+
return (options?.client ?? this.client).get<GetApiAchievementsResponses, unknown, ThrowOnError>(
|
|
758
|
+
{ url: '/api/achievements', ...options }
|
|
759
|
+
);
|
|
777
760
|
}
|
|
778
761
|
|
|
779
762
|
public getMyAchievements<ThrowOnError extends boolean = false>(
|
|
780
|
-
options?: Options<GetApiAchievementsMeData, ThrowOnError
|
|
763
|
+
options?: Options<GetApiAchievementsMeData, ThrowOnError>
|
|
781
764
|
) {
|
|
782
765
|
return (options?.client ?? this.client).get<
|
|
783
766
|
GetApiAchievementsMeResponses,
|
|
@@ -789,7 +772,7 @@ export class Achievements extends HeyApiClient {
|
|
|
789
772
|
|
|
790
773
|
export class Body extends HeyApiClient {
|
|
791
774
|
public getMyMeasurements<ThrowOnError extends boolean = false>(
|
|
792
|
-
options?: Options<GetApiBodyMeasurementsMeData, ThrowOnError
|
|
775
|
+
options?: Options<GetApiBodyMeasurementsMeData, ThrowOnError>
|
|
793
776
|
) {
|
|
794
777
|
return (options?.client ?? this.client).get<
|
|
795
778
|
GetApiBodyMeasurementsMeResponses,
|
|
@@ -799,7 +782,7 @@ export class Body extends HeyApiClient {
|
|
|
799
782
|
}
|
|
800
783
|
|
|
801
784
|
public createMeasurement<ThrowOnError extends boolean = false>(
|
|
802
|
-
options: Options<PostApiBodyMeasurementsData, ThrowOnError
|
|
785
|
+
options: Options<PostApiBodyMeasurementsData, ThrowOnError>
|
|
803
786
|
) {
|
|
804
787
|
return (options.client ?? this.client).post<
|
|
805
788
|
PostApiBodyMeasurementsResponses,
|
|
@@ -818,7 +801,7 @@ export class Body extends HeyApiClient {
|
|
|
818
801
|
|
|
819
802
|
export class Cmj extends HeyApiClient {
|
|
820
803
|
public getMyCmjMeasurements<ThrowOnError extends boolean = false>(
|
|
821
|
-
options?: Options<GetApiCmjMeasurementsMeData, ThrowOnError
|
|
804
|
+
options?: Options<GetApiCmjMeasurementsMeData, ThrowOnError>
|
|
822
805
|
) {
|
|
823
806
|
return (options?.client ?? this.client).get<
|
|
824
807
|
GetApiCmjMeasurementsMeResponses,
|
|
@@ -833,7 +816,7 @@ export class Challenges extends HeyApiClient {
|
|
|
833
816
|
* List all active challenges
|
|
834
817
|
*/
|
|
835
818
|
public getChallengesCatalog<ThrowOnError extends boolean = false>(
|
|
836
|
-
options?: Options<GetApiChallengesData, ThrowOnError
|
|
819
|
+
options?: Options<GetApiChallengesData, ThrowOnError>
|
|
837
820
|
) {
|
|
838
821
|
return (options?.client ?? this.client).get<
|
|
839
822
|
GetApiChallengesResponses,
|
|
@@ -846,7 +829,7 @@ export class Challenges extends HeyApiClient {
|
|
|
846
829
|
* Get the current user's active + recently-expired challenges
|
|
847
830
|
*/
|
|
848
831
|
public getMyChallenges<ThrowOnError extends boolean = false>(
|
|
849
|
-
options?: Options<GetApiChallengesMeData, ThrowOnError
|
|
832
|
+
options?: Options<GetApiChallengesMeData, ThrowOnError>
|
|
850
833
|
) {
|
|
851
834
|
return (options?.client ?? this.client).get<
|
|
852
835
|
GetApiChallengesMeResponses,
|
|
@@ -858,7 +841,7 @@ export class Challenges extends HeyApiClient {
|
|
|
858
841
|
|
|
859
842
|
export class Clubs extends HeyApiClient {
|
|
860
843
|
public getMyClubs<ThrowOnError extends boolean = false>(
|
|
861
|
-
options?: Options<GetApiClubsMeData, ThrowOnError
|
|
844
|
+
options?: Options<GetApiClubsMeData, ThrowOnError>
|
|
862
845
|
) {
|
|
863
846
|
return (options?.client ?? this.client).get<
|
|
864
847
|
GetApiClubsMeResponses,
|
|
@@ -868,7 +851,7 @@ export class Clubs extends HeyApiClient {
|
|
|
868
851
|
}
|
|
869
852
|
|
|
870
853
|
public createMyClub<ThrowOnError extends boolean = false>(
|
|
871
|
-
options: Options<PostApiClubsMeData, ThrowOnError
|
|
854
|
+
options: Options<PostApiClubsMeData, ThrowOnError>
|
|
872
855
|
) {
|
|
873
856
|
return (options.client ?? this.client).post<
|
|
874
857
|
PostApiClubsMeResponses,
|
|
@@ -885,7 +868,7 @@ export class Clubs extends HeyApiClient {
|
|
|
885
868
|
}
|
|
886
869
|
|
|
887
870
|
public deleteMyClub<ThrowOnError extends boolean = false>(
|
|
888
|
-
options: Options<DeleteApiClubsMeByIdData, ThrowOnError
|
|
871
|
+
options: Options<DeleteApiClubsMeByIdData, ThrowOnError>
|
|
889
872
|
) {
|
|
890
873
|
return (options.client ?? this.client).delete<
|
|
891
874
|
DeleteApiClubsMeByIdResponses,
|
|
@@ -895,7 +878,7 @@ export class Clubs extends HeyApiClient {
|
|
|
895
878
|
}
|
|
896
879
|
|
|
897
880
|
public updateMyClub<ThrowOnError extends boolean = false>(
|
|
898
|
-
options: Options<PatchApiClubsMeByIdData, ThrowOnError
|
|
881
|
+
options: Options<PatchApiClubsMeByIdData, ThrowOnError>
|
|
899
882
|
) {
|
|
900
883
|
return (options.client ?? this.client).patch<
|
|
901
884
|
PatchApiClubsMeByIdResponses,
|
|
@@ -914,7 +897,7 @@ export class Clubs extends HeyApiClient {
|
|
|
914
897
|
|
|
915
898
|
export class Documents extends HeyApiClient {
|
|
916
899
|
public getMyDocuments<ThrowOnError extends boolean = false>(
|
|
917
|
-
options?: Options<GetApiDocumentsMeData, ThrowOnError
|
|
900
|
+
options?: Options<GetApiDocumentsMeData, ThrowOnError>
|
|
918
901
|
) {
|
|
919
902
|
return (options?.client ?? this.client).get<
|
|
920
903
|
GetApiDocumentsMeResponses,
|
|
@@ -924,7 +907,7 @@ export class Documents extends HeyApiClient {
|
|
|
924
907
|
}
|
|
925
908
|
|
|
926
909
|
public createDocument<ThrowOnError extends boolean = false>(
|
|
927
|
-
options: Options<PostApiDocumentsData, ThrowOnError
|
|
910
|
+
options: Options<PostApiDocumentsData, ThrowOnError>
|
|
928
911
|
) {
|
|
929
912
|
return (options.client ?? this.client).post<
|
|
930
913
|
PostApiDocumentsResponses,
|
|
@@ -941,7 +924,7 @@ export class Documents extends HeyApiClient {
|
|
|
941
924
|
}
|
|
942
925
|
|
|
943
926
|
public deleteDocument<ThrowOnError extends boolean = false>(
|
|
944
|
-
options: Options<DeleteApiDocumentsByIdData, ThrowOnError
|
|
927
|
+
options: Options<DeleteApiDocumentsByIdData, ThrowOnError>
|
|
945
928
|
) {
|
|
946
929
|
return (options.client ?? this.client).delete<
|
|
947
930
|
DeleteApiDocumentsByIdResponses,
|
|
@@ -953,7 +936,7 @@ export class Documents extends HeyApiClient {
|
|
|
953
936
|
|
|
954
937
|
export class Index extends HeyApiClient {
|
|
955
938
|
public getCountries<ThrowOnError extends boolean = false>(
|
|
956
|
-
options?: Options<GetApiIndexCountriesData, ThrowOnError
|
|
939
|
+
options?: Options<GetApiIndexCountriesData, ThrowOnError>
|
|
957
940
|
) {
|
|
958
941
|
return (options?.client ?? this.client).get<
|
|
959
942
|
GetApiIndexCountriesResponses,
|
|
@@ -963,7 +946,7 @@ export class Index extends HeyApiClient {
|
|
|
963
946
|
}
|
|
964
947
|
|
|
965
948
|
public getIndexItems<ThrowOnError extends boolean = false>(
|
|
966
|
-
options: Options<GetApiIndexByTableNameData, ThrowOnError
|
|
949
|
+
options: Options<GetApiIndexByTableNameData, ThrowOnError>
|
|
967
950
|
) {
|
|
968
951
|
return (options.client ?? this.client).get<
|
|
969
952
|
GetApiIndexByTableNameResponses,
|
|
@@ -975,7 +958,7 @@ export class Index extends HeyApiClient {
|
|
|
975
958
|
|
|
976
959
|
export class Offers extends HeyApiClient {
|
|
977
960
|
public listConversations<ThrowOnError extends boolean = false>(
|
|
978
|
-
options?: Options<GetApiOffersConversationsData, ThrowOnError
|
|
961
|
+
options?: Options<GetApiOffersConversationsData, ThrowOnError>
|
|
979
962
|
) {
|
|
980
963
|
return (options?.client ?? this.client).get<
|
|
981
964
|
GetApiOffersConversationsResponses,
|
|
@@ -985,7 +968,7 @@ export class Offers extends HeyApiClient {
|
|
|
985
968
|
}
|
|
986
969
|
|
|
987
970
|
public createConversation<ThrowOnError extends boolean = false>(
|
|
988
|
-
options: Options<PostApiOffersConversationsData, ThrowOnError
|
|
971
|
+
options: Options<PostApiOffersConversationsData, ThrowOnError>
|
|
989
972
|
) {
|
|
990
973
|
return (options.client ?? this.client).post<
|
|
991
974
|
PostApiOffersConversationsResponses,
|
|
@@ -1002,7 +985,7 @@ export class Offers extends HeyApiClient {
|
|
|
1002
985
|
}
|
|
1003
986
|
|
|
1004
987
|
public listMessages<ThrowOnError extends boolean = false>(
|
|
1005
|
-
options: Options<GetApiOffersConversationsByIdMessagesData, ThrowOnError
|
|
988
|
+
options: Options<GetApiOffersConversationsByIdMessagesData, ThrowOnError>
|
|
1006
989
|
) {
|
|
1007
990
|
return (options.client ?? this.client).get<
|
|
1008
991
|
GetApiOffersConversationsByIdMessagesResponses,
|
|
@@ -1012,7 +995,7 @@ export class Offers extends HeyApiClient {
|
|
|
1012
995
|
}
|
|
1013
996
|
|
|
1014
997
|
public sendMessage<ThrowOnError extends boolean = false>(
|
|
1015
|
-
options: Options<PostApiOffersConversationsByIdMessagesData, ThrowOnError
|
|
998
|
+
options: Options<PostApiOffersConversationsByIdMessagesData, ThrowOnError>
|
|
1016
999
|
) {
|
|
1017
1000
|
return (options.client ?? this.client).post<
|
|
1018
1001
|
PostApiOffersConversationsByIdMessagesResponses,
|
|
@@ -1029,7 +1012,7 @@ export class Offers extends HeyApiClient {
|
|
|
1029
1012
|
}
|
|
1030
1013
|
|
|
1031
1014
|
public markConversationRead<ThrowOnError extends boolean = false>(
|
|
1032
|
-
options: Options<PatchApiOffersConversationsByIdReadData, ThrowOnError
|
|
1015
|
+
options: Options<PatchApiOffersConversationsByIdReadData, ThrowOnError>
|
|
1033
1016
|
) {
|
|
1034
1017
|
return (options.client ?? this.client).patch<
|
|
1035
1018
|
PatchApiOffersConversationsByIdReadResponses,
|
|
@@ -1041,7 +1024,7 @@ export class Offers extends HeyApiClient {
|
|
|
1041
1024
|
|
|
1042
1025
|
export class Organizations extends HeyApiClient {
|
|
1043
1026
|
public registerClub<ThrowOnError extends boolean = false>(
|
|
1044
|
-
options: Options<PostApiOrganizationsRegisterClubData, ThrowOnError
|
|
1027
|
+
options: Options<PostApiOrganizationsRegisterClubData, ThrowOnError>
|
|
1045
1028
|
) {
|
|
1046
1029
|
return (options.client ?? this.client).post<
|
|
1047
1030
|
PostApiOrganizationsRegisterClubResponses,
|
|
@@ -1058,7 +1041,7 @@ export class Organizations extends HeyApiClient {
|
|
|
1058
1041
|
}
|
|
1059
1042
|
|
|
1060
1043
|
public registerAgent<ThrowOnError extends boolean = false>(
|
|
1061
|
-
options: Options<PostApiOrganizationsRegisterAgentData, ThrowOnError
|
|
1044
|
+
options: Options<PostApiOrganizationsRegisterAgentData, ThrowOnError>
|
|
1062
1045
|
) {
|
|
1063
1046
|
return (options.client ?? this.client).post<
|
|
1064
1047
|
PostApiOrganizationsRegisterAgentResponses,
|
|
@@ -1075,7 +1058,7 @@ export class Organizations extends HeyApiClient {
|
|
|
1075
1058
|
}
|
|
1076
1059
|
|
|
1077
1060
|
public getMyOrganization<ThrowOnError extends boolean = false>(
|
|
1078
|
-
options?: Options<GetApiOrganizationsMeData, ThrowOnError
|
|
1061
|
+
options?: Options<GetApiOrganizationsMeData, ThrowOnError>
|
|
1079
1062
|
) {
|
|
1080
1063
|
return (options?.client ?? this.client).get<
|
|
1081
1064
|
GetApiOrganizationsMeResponses,
|
|
@@ -1085,7 +1068,7 @@ export class Organizations extends HeyApiClient {
|
|
|
1085
1068
|
}
|
|
1086
1069
|
|
|
1087
1070
|
public updateMyOrganization<ThrowOnError extends boolean = false>(
|
|
1088
|
-
options: Options<PutApiOrganizationsMeData, ThrowOnError
|
|
1071
|
+
options: Options<PutApiOrganizationsMeData, ThrowOnError>
|
|
1089
1072
|
) {
|
|
1090
1073
|
return (options.client ?? this.client).put<
|
|
1091
1074
|
PutApiOrganizationsMeResponses,
|
|
@@ -1104,17 +1087,16 @@ export class Organizations extends HeyApiClient {
|
|
|
1104
1087
|
|
|
1105
1088
|
export class Invitations extends HeyApiClient {
|
|
1106
1089
|
public listInvitations<ThrowOnError extends boolean = false>(
|
|
1107
|
-
options?: Options<GetApiInvitationsData, ThrowOnError
|
|
1090
|
+
options?: Options<GetApiInvitationsData, ThrowOnError>
|
|
1108
1091
|
) {
|
|
1109
|
-
return (options?.client ?? this.client).get<
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
>({ url: '/api/invitations', ...options });
|
|
1092
|
+
return (options?.client ?? this.client).get<GetApiInvitationsResponses, unknown, ThrowOnError>({
|
|
1093
|
+
url: '/api/invitations',
|
|
1094
|
+
...options,
|
|
1095
|
+
});
|
|
1114
1096
|
}
|
|
1115
1097
|
|
|
1116
1098
|
public sendInvitation<ThrowOnError extends boolean = false>(
|
|
1117
|
-
options: Options<PostApiInvitationsData, ThrowOnError
|
|
1099
|
+
options: Options<PostApiInvitationsData, ThrowOnError>
|
|
1118
1100
|
) {
|
|
1119
1101
|
return (options.client ?? this.client).post<
|
|
1120
1102
|
PostApiInvitationsResponses,
|
|
@@ -1131,7 +1113,7 @@ export class Invitations extends HeyApiClient {
|
|
|
1131
1113
|
}
|
|
1132
1114
|
|
|
1133
1115
|
public resendInvitation<ThrowOnError extends boolean = false>(
|
|
1134
|
-
options: Options<PostApiInvitationsByIdResendData, ThrowOnError
|
|
1116
|
+
options: Options<PostApiInvitationsByIdResendData, ThrowOnError>
|
|
1135
1117
|
) {
|
|
1136
1118
|
return (options.client ?? this.client).post<
|
|
1137
1119
|
PostApiInvitationsByIdResendResponses,
|
|
@@ -1141,7 +1123,7 @@ export class Invitations extends HeyApiClient {
|
|
|
1141
1123
|
}
|
|
1142
1124
|
|
|
1143
1125
|
public deleteInvitation<ThrowOnError extends boolean = false>(
|
|
1144
|
-
options: Options<DeleteApiInvitationsByIdData, ThrowOnError
|
|
1126
|
+
options: Options<DeleteApiInvitationsByIdData, ThrowOnError>
|
|
1145
1127
|
) {
|
|
1146
1128
|
return (options.client ?? this.client).delete<
|
|
1147
1129
|
DeleteApiInvitationsByIdResponses,
|
|
@@ -1154,7 +1136,7 @@ export class Invitations extends HeyApiClient {
|
|
|
1154
1136
|
* Called by web app after Supabase auth callback to link invitee to their organization
|
|
1155
1137
|
*/
|
|
1156
1138
|
public acceptInvitation<ThrowOnError extends boolean = false>(
|
|
1157
|
-
options?: Options<PostApiInvitationsAcceptData, ThrowOnError
|
|
1139
|
+
options?: Options<PostApiInvitationsAcceptData, ThrowOnError>
|
|
1158
1140
|
) {
|
|
1159
1141
|
return (options?.client ?? this.client).post<
|
|
1160
1142
|
PostApiInvitationsAcceptResponses,
|
|
@@ -1169,7 +1151,7 @@ export class Kyc extends HeyApiClient {
|
|
|
1169
1151
|
* Start or resume a KYC verification job
|
|
1170
1152
|
*/
|
|
1171
1153
|
public startKyc<ThrowOnError extends boolean = false>(
|
|
1172
|
-
options: Options<PostApiKycStartData, ThrowOnError
|
|
1154
|
+
options: Options<PostApiKycStartData, ThrowOnError>
|
|
1173
1155
|
) {
|
|
1174
1156
|
return (options.client ?? this.client).post<
|
|
1175
1157
|
PostApiKycStartResponses,
|
|
@@ -1189,7 +1171,7 @@ export class Kyc extends HeyApiClient {
|
|
|
1189
1171
|
* Get a SmileID hosted verification URL (Smile Links) — redirect the user to this URL to complete KYC
|
|
1190
1172
|
*/
|
|
1191
1173
|
public startSmileLink<ThrowOnError extends boolean = false>(
|
|
1192
|
-
options: Options<PostApiKycSmileLinkData, ThrowOnError
|
|
1174
|
+
options: Options<PostApiKycSmileLinkData, ThrowOnError>
|
|
1193
1175
|
) {
|
|
1194
1176
|
return (options.client ?? this.client).post<
|
|
1195
1177
|
PostApiKycSmileLinkResponses,
|
|
@@ -1209,7 +1191,7 @@ export class Kyc extends HeyApiClient {
|
|
|
1209
1191
|
* SmileID webhook — receives job results (public, signature-verified)
|
|
1210
1192
|
*/
|
|
1211
1193
|
public kycWebhook<ThrowOnError extends boolean = false>(
|
|
1212
|
-
options: Options<PostApiKycWebhookData, ThrowOnError
|
|
1194
|
+
options: Options<PostApiKycWebhookData, ThrowOnError>
|
|
1213
1195
|
) {
|
|
1214
1196
|
return (options.client ?? this.client).post<
|
|
1215
1197
|
PostApiKycWebhookResponses,
|
|
@@ -1229,7 +1211,7 @@ export class Kyc extends HeyApiClient {
|
|
|
1229
1211
|
* Mark the current KYC capture job as submitted
|
|
1230
1212
|
*/
|
|
1231
1213
|
public markSubmittedKyc<ThrowOnError extends boolean = false>(
|
|
1232
|
-
options: Options<PostApiKycMarkSubmittedData, ThrowOnError
|
|
1214
|
+
options: Options<PostApiKycMarkSubmittedData, ThrowOnError>
|
|
1233
1215
|
) {
|
|
1234
1216
|
return (options.client ?? this.client).post<
|
|
1235
1217
|
PostApiKycMarkSubmittedResponses,
|
|
@@ -1249,7 +1231,7 @@ export class Kyc extends HeyApiClient {
|
|
|
1249
1231
|
* Cancel the active KYC verification job for the current user
|
|
1250
1232
|
*/
|
|
1251
1233
|
public cancelKyc<ThrowOnError extends boolean = false>(
|
|
1252
|
-
options: Options<PostApiKycCancelData, ThrowOnError
|
|
1234
|
+
options: Options<PostApiKycCancelData, ThrowOnError>
|
|
1253
1235
|
) {
|
|
1254
1236
|
return (options.client ?? this.client).post<
|
|
1255
1237
|
PostApiKycCancelResponses,
|
|
@@ -1269,7 +1251,7 @@ export class Kyc extends HeyApiClient {
|
|
|
1269
1251
|
* Get KYC status for a user
|
|
1270
1252
|
*/
|
|
1271
1253
|
public getKycStatus<ThrowOnError extends boolean = false>(
|
|
1272
|
-
options: Options<GetApiKycStatusByUserIdData, ThrowOnError
|
|
1254
|
+
options: Options<GetApiKycStatusByUserIdData, ThrowOnError>
|
|
1273
1255
|
) {
|
|
1274
1256
|
return (options.client ?? this.client).get<
|
|
1275
1257
|
GetApiKycStatusByUserIdResponses,
|
|
@@ -1284,7 +1266,7 @@ export class Training extends HeyApiClient {
|
|
|
1284
1266
|
* Get training content grouped by category, top 3 per category
|
|
1285
1267
|
*/
|
|
1286
1268
|
public getTrainingGrouped<ThrowOnError extends boolean = false>(
|
|
1287
|
-
options?: Options<GetApiTrainingGroupedData, ThrowOnError
|
|
1269
|
+
options?: Options<GetApiTrainingGroupedData, ThrowOnError>
|
|
1288
1270
|
) {
|
|
1289
1271
|
return (options?.client ?? this.client).get<
|
|
1290
1272
|
GetApiTrainingGroupedResponses,
|
|
@@ -1297,7 +1279,7 @@ export class Training extends HeyApiClient {
|
|
|
1297
1279
|
* List training content, optionally filtered by category
|
|
1298
1280
|
*/
|
|
1299
1281
|
public getTrainingList<ThrowOnError extends boolean = false>(
|
|
1300
|
-
options?: Options<GetApiTrainingData, ThrowOnError
|
|
1282
|
+
options?: Options<GetApiTrainingData, ThrowOnError>
|
|
1301
1283
|
) {
|
|
1302
1284
|
return (options?.client ?? this.client).get<
|
|
1303
1285
|
GetApiTrainingResponses,
|
|
@@ -1310,7 +1292,7 @@ export class Training extends HeyApiClient {
|
|
|
1310
1292
|
* Get full detail of a training content item
|
|
1311
1293
|
*/
|
|
1312
1294
|
public getTrainingById<ThrowOnError extends boolean = false>(
|
|
1313
|
-
options: Options<GetApiTrainingByIdData, ThrowOnError
|
|
1295
|
+
options: Options<GetApiTrainingByIdData, ThrowOnError>
|
|
1314
1296
|
) {
|
|
1315
1297
|
return (options.client ?? this.client).get<
|
|
1316
1298
|
GetApiTrainingByIdResponses,
|
|
@@ -1322,7 +1304,7 @@ export class Training extends HeyApiClient {
|
|
|
1322
1304
|
|
|
1323
1305
|
export class Videos extends HeyApiClient {
|
|
1324
1306
|
public getMyVideos<ThrowOnError extends boolean = false>(
|
|
1325
|
-
options: Options<GetApiVideosMeData, ThrowOnError
|
|
1307
|
+
options: Options<GetApiVideosMeData, ThrowOnError>
|
|
1326
1308
|
) {
|
|
1327
1309
|
return (options.client ?? this.client).get<
|
|
1328
1310
|
GetApiVideosMeResponses,
|
|
@@ -1332,7 +1314,7 @@ export class Videos extends HeyApiClient {
|
|
|
1332
1314
|
}
|
|
1333
1315
|
|
|
1334
1316
|
public createVideo<ThrowOnError extends boolean = false>(
|
|
1335
|
-
options: Options<PostApiVideosData, ThrowOnError
|
|
1317
|
+
options: Options<PostApiVideosData, ThrowOnError>
|
|
1336
1318
|
) {
|
|
1337
1319
|
return (options.client ?? this.client).post<
|
|
1338
1320
|
PostApiVideosResponses,
|
|
@@ -1349,7 +1331,7 @@ export class Videos extends HeyApiClient {
|
|
|
1349
1331
|
}
|
|
1350
1332
|
|
|
1351
1333
|
public getVideoPlayUrl<ThrowOnError extends boolean = false>(
|
|
1352
|
-
options: Options<GetApiVideosByIdPlayUrlData, ThrowOnError
|
|
1334
|
+
options: Options<GetApiVideosByIdPlayUrlData, ThrowOnError>
|
|
1353
1335
|
) {
|
|
1354
1336
|
return (options.client ?? this.client).get<
|
|
1355
1337
|
GetApiVideosByIdPlayUrlResponses,
|
|
@@ -1359,7 +1341,7 @@ export class Videos extends HeyApiClient {
|
|
|
1359
1341
|
}
|
|
1360
1342
|
|
|
1361
1343
|
public deleteVideo<ThrowOnError extends boolean = false>(
|
|
1362
|
-
options: Options<DeleteApiVideosByIdData, ThrowOnError
|
|
1344
|
+
options: Options<DeleteApiVideosByIdData, ThrowOnError>
|
|
1363
1345
|
) {
|
|
1364
1346
|
return (options.client ?? this.client).delete<
|
|
1365
1347
|
DeleteApiVideosByIdResponses,
|
|
@@ -1371,7 +1353,7 @@ export class Videos extends HeyApiClient {
|
|
|
1371
1353
|
|
|
1372
1354
|
export class VideoLinks extends HeyApiClient {
|
|
1373
1355
|
public getMyVideoLinks<ThrowOnError extends boolean = false>(
|
|
1374
|
-
options?: Options<GetApiVideoLinksMeData, ThrowOnError
|
|
1356
|
+
options?: Options<GetApiVideoLinksMeData, ThrowOnError>
|
|
1375
1357
|
) {
|
|
1376
1358
|
return (options?.client ?? this.client).get<
|
|
1377
1359
|
GetApiVideoLinksMeResponses,
|
|
@@ -1381,7 +1363,7 @@ export class VideoLinks extends HeyApiClient {
|
|
|
1381
1363
|
}
|
|
1382
1364
|
|
|
1383
1365
|
public createVideoLink<ThrowOnError extends boolean = false>(
|
|
1384
|
-
options: Options<PostApiVideoLinksData, ThrowOnError
|
|
1366
|
+
options: Options<PostApiVideoLinksData, ThrowOnError>
|
|
1385
1367
|
) {
|
|
1386
1368
|
return (options.client ?? this.client).post<
|
|
1387
1369
|
PostApiVideoLinksResponses,
|
|
@@ -1398,7 +1380,7 @@ export class VideoLinks extends HeyApiClient {
|
|
|
1398
1380
|
}
|
|
1399
1381
|
|
|
1400
1382
|
public deleteVideoLink<ThrowOnError extends boolean = false>(
|
|
1401
|
-
options: Options<DeleteApiVideoLinksByIdData, ThrowOnError
|
|
1383
|
+
options: Options<DeleteApiVideoLinksByIdData, ThrowOnError>
|
|
1402
1384
|
) {
|
|
1403
1385
|
return (options.client ?? this.client).delete<
|
|
1404
1386
|
DeleteApiVideoLinksByIdResponses,
|
|
@@ -1410,7 +1392,7 @@ export class VideoLinks extends HeyApiClient {
|
|
|
1410
1392
|
|
|
1411
1393
|
export class Dashboard extends HeyApiClient {
|
|
1412
1394
|
public getScoutDashboard<ThrowOnError extends boolean = false>(
|
|
1413
|
-
options?: Options<GetApiDashboardMeData, ThrowOnError
|
|
1395
|
+
options?: Options<GetApiDashboardMeData, ThrowOnError>
|
|
1414
1396
|
) {
|
|
1415
1397
|
return (options?.client ?? this.client).get<
|
|
1416
1398
|
GetApiDashboardMeResponses,
|
|
@@ -1423,7 +1405,7 @@ export class Dashboard extends HeyApiClient {
|
|
|
1423
1405
|
* Signed play URL for a player video — records the view
|
|
1424
1406
|
*/
|
|
1425
1407
|
public getScoutVideoPlayUrl<ThrowOnError extends boolean = false>(
|
|
1426
|
-
options: Options<GetApiDashboardVideosByIdPlayUrlData, ThrowOnError
|
|
1408
|
+
options: Options<GetApiDashboardVideosByIdPlayUrlData, ThrowOnError>
|
|
1427
1409
|
) {
|
|
1428
1410
|
return (options.client ?? this.client).get<
|
|
1429
1411
|
GetApiDashboardVideosByIdPlayUrlResponses,
|
|
@@ -1438,7 +1420,7 @@ export class Subscriptions extends HeyApiClient {
|
|
|
1438
1420
|
* List available subscription plans
|
|
1439
1421
|
*/
|
|
1440
1422
|
public getSubscriptionPlans<ThrowOnError extends boolean = false>(
|
|
1441
|
-
options?: Options<GetApiSubscriptionsPlansData, ThrowOnError
|
|
1423
|
+
options?: Options<GetApiSubscriptionsPlansData, ThrowOnError>
|
|
1442
1424
|
) {
|
|
1443
1425
|
return (options?.client ?? this.client).get<
|
|
1444
1426
|
GetApiSubscriptionsPlansResponses,
|
|
@@ -1451,7 +1433,7 @@ export class Subscriptions extends HeyApiClient {
|
|
|
1451
1433
|
* Get the current user's subscription status
|
|
1452
1434
|
*/
|
|
1453
1435
|
public getMySubscription<ThrowOnError extends boolean = false>(
|
|
1454
|
-
options?: Options<GetApiSubscriptionsMeData, ThrowOnError
|
|
1436
|
+
options?: Options<GetApiSubscriptionsMeData, ThrowOnError>
|
|
1455
1437
|
) {
|
|
1456
1438
|
return (options?.client ?? this.client).get<
|
|
1457
1439
|
GetApiSubscriptionsMeResponses,
|
|
@@ -1464,7 +1446,7 @@ export class Subscriptions extends HeyApiClient {
|
|
|
1464
1446
|
* Create a Stripe Checkout Session — redirect the user to the returned URL
|
|
1465
1447
|
*/
|
|
1466
1448
|
public createCheckout<ThrowOnError extends boolean = false>(
|
|
1467
|
-
options: Options<PostApiSubscriptionsCheckoutData, ThrowOnError
|
|
1449
|
+
options: Options<PostApiSubscriptionsCheckoutData, ThrowOnError>
|
|
1468
1450
|
) {
|
|
1469
1451
|
return (options.client ?? this.client).post<
|
|
1470
1452
|
PostApiSubscriptionsCheckoutResponses,
|
|
@@ -1484,7 +1466,7 @@ export class Subscriptions extends HeyApiClient {
|
|
|
1484
1466
|
* Create a Stripe Billing Portal Session — redirect the user to the returned URL
|
|
1485
1467
|
*/
|
|
1486
1468
|
public createPortal<ThrowOnError extends boolean = false>(
|
|
1487
|
-
options: Options<PostApiSubscriptionsPortalData, ThrowOnError
|
|
1469
|
+
options: Options<PostApiSubscriptionsPortalData, ThrowOnError>
|
|
1488
1470
|
) {
|
|
1489
1471
|
return (options.client ?? this.client).post<
|
|
1490
1472
|
PostApiSubscriptionsPortalResponses,
|
|
@@ -1504,7 +1486,7 @@ export class Subscriptions extends HeyApiClient {
|
|
|
1504
1486
|
* Stripe webhook endpoint — receives signed events (public, signature-verified)
|
|
1505
1487
|
*/
|
|
1506
1488
|
public stripeWebhook<ThrowOnError extends boolean = false>(
|
|
1507
|
-
options: Options<PostApiSubscriptionsWebhookData, ThrowOnError
|
|
1489
|
+
options: Options<PostApiSubscriptionsWebhookData, ThrowOnError>
|
|
1508
1490
|
) {
|
|
1509
1491
|
return (options.client ?? this.client).post<
|
|
1510
1492
|
PostApiSubscriptionsWebhookResponses,
|