@globalscoutme/api-client 1.2.6 → 1.3.0
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/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/sdk.gen.d.ts +74 -2
- package/dist/sdk.gen.js +169 -0
- package/dist/types.gen.d.ts +528 -1
- package/index.ts +85 -0
- package/package.json +1 -1
- package/sdk.gen.ts +320 -1
- package/types.gen.ts +634 -1
package/dist/types.gen.d.ts
CHANGED
|
@@ -18,6 +18,14 @@ export type AuthMeResponseDto = {
|
|
|
18
18
|
* Preferred application and generated-content locale. Null until first selected.
|
|
19
19
|
*/
|
|
20
20
|
preferredLocale?: 'en' | 'es' | 'fr' | 'de' | 'ro';
|
|
21
|
+
/**
|
|
22
|
+
* Whether this account can access the Super Admin portal.
|
|
23
|
+
*/
|
|
24
|
+
isSuperAdmin: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Current account lifecycle status.
|
|
27
|
+
*/
|
|
28
|
+
accountStatus: 'active' | 'pending' | 'suspended' | 'deactivated';
|
|
21
29
|
};
|
|
22
30
|
export type UpdateLocalePreferenceDto = {
|
|
23
31
|
locale: 'en' | 'es' | 'fr' | 'de' | 'ro';
|
|
@@ -963,6 +971,28 @@ export type BillingEntitlementResponseDto = {
|
|
|
963
971
|
export type RedeemAccessCodeDto = {
|
|
964
972
|
code: string;
|
|
965
973
|
};
|
|
974
|
+
export type RedeemAccessCodeResponseDto = {
|
|
975
|
+
hasAccess: boolean;
|
|
976
|
+
status: string;
|
|
977
|
+
provider?: string | null;
|
|
978
|
+
plan?: BillingPlanDto | null;
|
|
979
|
+
currentPeriodEnd?: string | null;
|
|
980
|
+
gracePeriodUntil?: string | null;
|
|
981
|
+
blockingReason?: string | null;
|
|
982
|
+
manageAction: BillingManageActionDto;
|
|
983
|
+
redemptionOutcome?: 'redeemed' | 'already_redeemed';
|
|
984
|
+
};
|
|
985
|
+
export type AccessCodeBadRequestResponseDto = {
|
|
986
|
+
statusCode: number;
|
|
987
|
+
error: string;
|
|
988
|
+
code?: 'ACCESS_CODE_REQUIRED' | 'ACCESS_CODE_INVALID' | 'ACCESS_CODE_INACTIVE' | 'ACCESS_CODE_NOT_ACTIVE_YET' | 'ACCESS_CODE_EXPIRED' | 'ACCESS_CODE_REDEMPTION_LIMIT_REACHED' | 'ACCESS_CODE_MISCONFIGURED';
|
|
989
|
+
message: string;
|
|
990
|
+
};
|
|
991
|
+
export type AccessCodeConflictResponseDto = {
|
|
992
|
+
statusCode: number;
|
|
993
|
+
code: 'ACCESS_CODE_ALREADY_REDEEMED' | 'ACTIVE_BILLING_ACCESS_EXISTS';
|
|
994
|
+
message: string;
|
|
995
|
+
};
|
|
966
996
|
export type ReportPurchaseDto = {
|
|
967
997
|
id: string;
|
|
968
998
|
paymentStatus: string;
|
|
@@ -2620,6 +2650,247 @@ export type MarkGlobalChatReadDto = {
|
|
|
2620
2650
|
export type UpdateGlobalChatNotificationsDto = {
|
|
2621
2651
|
notificationsEnabled: boolean;
|
|
2622
2652
|
};
|
|
2653
|
+
export type AdminMetricDto = {
|
|
2654
|
+
current: number;
|
|
2655
|
+
periodCount: number;
|
|
2656
|
+
byRole?: {
|
|
2657
|
+
[key: string]: number;
|
|
2658
|
+
};
|
|
2659
|
+
};
|
|
2660
|
+
export type AdminDashboardMetricsDto = {
|
|
2661
|
+
registeredUsers: AdminMetricDto;
|
|
2662
|
+
activeSubscriptions: AdminMetricDto;
|
|
2663
|
+
pendingKyc: AdminMetricDto;
|
|
2664
|
+
verifiedKyc: AdminMetricDto;
|
|
2665
|
+
videosUploaded: AdminMetricDto;
|
|
2666
|
+
aiReports: AdminMetricDto;
|
|
2667
|
+
bodyMeasurements: AdminMetricDto;
|
|
2668
|
+
speedSprintTests: AdminMetricDto;
|
|
2669
|
+
};
|
|
2670
|
+
export type AdminActivityBucketDto = {
|
|
2671
|
+
bucketStart: string;
|
|
2672
|
+
registrations: number;
|
|
2673
|
+
videos: number;
|
|
2674
|
+
aiReports: number;
|
|
2675
|
+
bodyMeasurements: number;
|
|
2676
|
+
speedSprintTests: number;
|
|
2677
|
+
};
|
|
2678
|
+
export type AdminSubscriptionHealthDto = {
|
|
2679
|
+
role: string;
|
|
2680
|
+
active: number;
|
|
2681
|
+
cancelled: number;
|
|
2682
|
+
expired: number;
|
|
2683
|
+
};
|
|
2684
|
+
export type AdminDashboardResponseDto = {
|
|
2685
|
+
range: '7d' | '30d' | '3mo';
|
|
2686
|
+
generatedAt: string;
|
|
2687
|
+
metrics: AdminDashboardMetricsDto;
|
|
2688
|
+
activity: Array<AdminActivityBucketDto>;
|
|
2689
|
+
subscriptionHealth: Array<AdminSubscriptionHealthDto>;
|
|
2690
|
+
};
|
|
2691
|
+
export type AdminUserListItemDto = {
|
|
2692
|
+
id: string;
|
|
2693
|
+
name: string;
|
|
2694
|
+
email: string;
|
|
2695
|
+
role: string | null;
|
|
2696
|
+
countryCode: string | null;
|
|
2697
|
+
country: string | null;
|
|
2698
|
+
accountStatus: 'active' | 'pending' | 'suspended' | 'deactivated';
|
|
2699
|
+
kycStatus: string;
|
|
2700
|
+
subscriptionStatus: string;
|
|
2701
|
+
registrationDate: string | null;
|
|
2702
|
+
isSuperAdmin: boolean;
|
|
2703
|
+
};
|
|
2704
|
+
export type AdminUserListResultDto = {
|
|
2705
|
+
items: Array<AdminUserListItemDto>;
|
|
2706
|
+
/**
|
|
2707
|
+
* Total matching records
|
|
2708
|
+
*/
|
|
2709
|
+
total: number;
|
|
2710
|
+
page: number;
|
|
2711
|
+
pageSize: number;
|
|
2712
|
+
};
|
|
2713
|
+
export type AdminUserDetailDto = {
|
|
2714
|
+
id: string;
|
|
2715
|
+
name: string;
|
|
2716
|
+
email: string;
|
|
2717
|
+
role: string | null;
|
|
2718
|
+
countryCode: string | null;
|
|
2719
|
+
country: string | null;
|
|
2720
|
+
accountStatus: 'active' | 'pending' | 'suspended' | 'deactivated';
|
|
2721
|
+
kycStatus: string;
|
|
2722
|
+
subscriptionStatus: string;
|
|
2723
|
+
registrationDate: string | null;
|
|
2724
|
+
isSuperAdmin: boolean;
|
|
2725
|
+
};
|
|
2726
|
+
export type AdminSubscriptionListItemDto = {
|
|
2727
|
+
id: string;
|
|
2728
|
+
userId: string;
|
|
2729
|
+
userName: string;
|
|
2730
|
+
email: string;
|
|
2731
|
+
role: string | null;
|
|
2732
|
+
plan: string;
|
|
2733
|
+
planInterval: string | null;
|
|
2734
|
+
platform: string;
|
|
2735
|
+
price: number;
|
|
2736
|
+
currency: string;
|
|
2737
|
+
status: string;
|
|
2738
|
+
cancelsAtPeriodEnd: boolean;
|
|
2739
|
+
startDate: string | null;
|
|
2740
|
+
nextBillingDate: string | null;
|
|
2741
|
+
externalUrl: string | null;
|
|
2742
|
+
};
|
|
2743
|
+
export type AdminSubscriptionListResultDto = {
|
|
2744
|
+
items: Array<AdminSubscriptionListItemDto>;
|
|
2745
|
+
/**
|
|
2746
|
+
* Total matching records
|
|
2747
|
+
*/
|
|
2748
|
+
total: number;
|
|
2749
|
+
page: number;
|
|
2750
|
+
pageSize: number;
|
|
2751
|
+
};
|
|
2752
|
+
export type AdminKycListItemDto = {
|
|
2753
|
+
id: string;
|
|
2754
|
+
userId: string;
|
|
2755
|
+
userName: string;
|
|
2756
|
+
email: string;
|
|
2757
|
+
role: string | null;
|
|
2758
|
+
country: string | null;
|
|
2759
|
+
status: string;
|
|
2760
|
+
provider: string;
|
|
2761
|
+
submittedAt: string | null;
|
|
2762
|
+
updatedAt: string | null;
|
|
2763
|
+
};
|
|
2764
|
+
export type AdminKycListResultDto = {
|
|
2765
|
+
items: Array<AdminKycListItemDto>;
|
|
2766
|
+
/**
|
|
2767
|
+
* Total matching records
|
|
2768
|
+
*/
|
|
2769
|
+
total: number;
|
|
2770
|
+
page: number;
|
|
2771
|
+
pageSize: number;
|
|
2772
|
+
};
|
|
2773
|
+
export type AdminAccessCodePlanDto = {
|
|
2774
|
+
id: string;
|
|
2775
|
+
name: string;
|
|
2776
|
+
role: string | null;
|
|
2777
|
+
};
|
|
2778
|
+
export type AdminAccessCodeDto = {
|
|
2779
|
+
id: string;
|
|
2780
|
+
code: string | null;
|
|
2781
|
+
description: string | null;
|
|
2782
|
+
codeSuffix: string | null;
|
|
2783
|
+
planId: string;
|
|
2784
|
+
planName: string;
|
|
2785
|
+
role: string | null;
|
|
2786
|
+
durationDays: number;
|
|
2787
|
+
startsAt: string | null;
|
|
2788
|
+
expiresAt: string | null;
|
|
2789
|
+
maxRedemptions: number | null;
|
|
2790
|
+
redemptionCount: number;
|
|
2791
|
+
isActive: boolean;
|
|
2792
|
+
status: 'scheduled' | 'active' | 'inactive' | 'expired' | 'exhausted';
|
|
2793
|
+
createdAt: string;
|
|
2794
|
+
};
|
|
2795
|
+
export type AdminAccessCodeListResultDto = {
|
|
2796
|
+
items: Array<AdminAccessCodeDto>;
|
|
2797
|
+
/**
|
|
2798
|
+
* Total matching records
|
|
2799
|
+
*/
|
|
2800
|
+
total: number;
|
|
2801
|
+
page: number;
|
|
2802
|
+
pageSize: number;
|
|
2803
|
+
};
|
|
2804
|
+
export type AdminCreateAccessCodeDto = {
|
|
2805
|
+
planId: string;
|
|
2806
|
+
description?: string;
|
|
2807
|
+
durationDays: number;
|
|
2808
|
+
startsAt?: string | null;
|
|
2809
|
+
expiresAt?: string | null;
|
|
2810
|
+
maxRedemptions?: number | null;
|
|
2811
|
+
};
|
|
2812
|
+
export type AdminCreateAccessCodeResponseDto = {
|
|
2813
|
+
id: string;
|
|
2814
|
+
/**
|
|
2815
|
+
* Generated access code visible to Super Admins.
|
|
2816
|
+
*/
|
|
2817
|
+
code: string | null;
|
|
2818
|
+
description: string | null;
|
|
2819
|
+
codeSuffix: string | null;
|
|
2820
|
+
planId: string;
|
|
2821
|
+
planName: string;
|
|
2822
|
+
role: string | null;
|
|
2823
|
+
durationDays: number;
|
|
2824
|
+
startsAt: string | null;
|
|
2825
|
+
expiresAt: string | null;
|
|
2826
|
+
maxRedemptions: number | null;
|
|
2827
|
+
redemptionCount: number;
|
|
2828
|
+
isActive: boolean;
|
|
2829
|
+
status: 'scheduled' | 'active' | 'inactive' | 'expired' | 'exhausted';
|
|
2830
|
+
createdAt: string;
|
|
2831
|
+
};
|
|
2832
|
+
export type AdminSetAccessCodeStateDto = {
|
|
2833
|
+
isActive: boolean;
|
|
2834
|
+
reason?: string;
|
|
2835
|
+
};
|
|
2836
|
+
export type AdminAccessCodeRedemptionDto = {
|
|
2837
|
+
id: string;
|
|
2838
|
+
userId: string;
|
|
2839
|
+
userName: string;
|
|
2840
|
+
email: string;
|
|
2841
|
+
redeemedAt: string;
|
|
2842
|
+
startsAt: string;
|
|
2843
|
+
endsAt: string;
|
|
2844
|
+
};
|
|
2845
|
+
export type AdminAccessCodeRedemptionListResultDto = {
|
|
2846
|
+
items: Array<AdminAccessCodeRedemptionDto>;
|
|
2847
|
+
/**
|
|
2848
|
+
* Total matching records
|
|
2849
|
+
*/
|
|
2850
|
+
total: number;
|
|
2851
|
+
page: number;
|
|
2852
|
+
pageSize: number;
|
|
2853
|
+
};
|
|
2854
|
+
export type AdminUserAccessDto = {
|
|
2855
|
+
hasAccess: boolean;
|
|
2856
|
+
status: string;
|
|
2857
|
+
provider: string | null;
|
|
2858
|
+
planId: string | null;
|
|
2859
|
+
planName: string | null;
|
|
2860
|
+
startsAt: string | null;
|
|
2861
|
+
endsAt: string | null;
|
|
2862
|
+
adminGrantId: string | null;
|
|
2863
|
+
};
|
|
2864
|
+
export type AdminGrantAccessDto = {
|
|
2865
|
+
planId: string;
|
|
2866
|
+
durationDays: number;
|
|
2867
|
+
reason?: string;
|
|
2868
|
+
};
|
|
2869
|
+
export type AdminAccessGrantDto = {
|
|
2870
|
+
id: string;
|
|
2871
|
+
userId: string;
|
|
2872
|
+
planId: string;
|
|
2873
|
+
planName: string;
|
|
2874
|
+
startsAt: string;
|
|
2875
|
+
endsAt: string;
|
|
2876
|
+
status: 'active' | 'revoked';
|
|
2877
|
+
};
|
|
2878
|
+
export type AdminRevokeAccessGrantDto = {
|
|
2879
|
+
reason?: string;
|
|
2880
|
+
};
|
|
2881
|
+
export type AdminUserActionRequestDto = {
|
|
2882
|
+
/**
|
|
2883
|
+
* Optional reason stored in the audit trail
|
|
2884
|
+
*/
|
|
2885
|
+
reason?: string;
|
|
2886
|
+
};
|
|
2887
|
+
export type AdminAccountActionResponseDto = {
|
|
2888
|
+
accountStatus: 'active' | 'pending' | 'suspended' | 'deactivated';
|
|
2889
|
+
authSyncStatus: 'succeeded' | 'failed';
|
|
2890
|
+
};
|
|
2891
|
+
export type AdminPasswordResetResponseDto = {
|
|
2892
|
+
deliveryStatus: 'succeeded' | 'failed';
|
|
2893
|
+
};
|
|
2623
2894
|
export type GetApiAuthMeData = {
|
|
2624
2895
|
body?: never;
|
|
2625
2896
|
path?: never;
|
|
@@ -2805,6 +3076,9 @@ export type GetApiPlayersByIdVideoMetricsResponses = {
|
|
|
2805
3076
|
export type GetApiPlayersByIdVideoMetricsResponse = GetApiPlayersByIdVideoMetricsResponses[keyof GetApiPlayersByIdVideoMetricsResponses];
|
|
2806
3077
|
export type GetApiPlayersByIdReportPdfData = {
|
|
2807
3078
|
body?: never;
|
|
3079
|
+
headers?: {
|
|
3080
|
+
'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
|
|
3081
|
+
};
|
|
2808
3082
|
path: {
|
|
2809
3083
|
id: string;
|
|
2810
3084
|
};
|
|
@@ -2827,6 +3101,9 @@ export type GetApiPlayersByIdReportPdfResponses = {
|
|
|
2827
3101
|
export type GetApiPlayersByIdReportPdfResponse = GetApiPlayersByIdReportPdfResponses[keyof GetApiPlayersByIdReportPdfResponses];
|
|
2828
3102
|
export type GetApiPlayersByIdReportData = {
|
|
2829
3103
|
body?: never;
|
|
3104
|
+
headers?: {
|
|
3105
|
+
'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
|
|
3106
|
+
};
|
|
2830
3107
|
path: {
|
|
2831
3108
|
id: string;
|
|
2832
3109
|
};
|
|
@@ -2889,6 +3166,9 @@ export type PostApiPlayersByIdWatchlistResponses = {
|
|
|
2889
3166
|
export type PostApiPlayersByIdWatchlistResponse = PostApiPlayersByIdWatchlistResponses[keyof PostApiPlayersByIdWatchlistResponses];
|
|
2890
3167
|
export type GetApiPlayersByIdData = {
|
|
2891
3168
|
body?: never;
|
|
3169
|
+
headers?: {
|
|
3170
|
+
'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
|
|
3171
|
+
};
|
|
2892
3172
|
path: {
|
|
2893
3173
|
id: string;
|
|
2894
3174
|
};
|
|
@@ -2958,11 +3238,22 @@ export type PostApiBillingAccessCodesRedeemData = {
|
|
|
2958
3238
|
query?: never;
|
|
2959
3239
|
url: '/api/billing/access-codes/redeem';
|
|
2960
3240
|
};
|
|
3241
|
+
export type PostApiBillingAccessCodesRedeemErrors = {
|
|
3242
|
+
/**
|
|
3243
|
+
* The code is invalid, inactive, not yet active, expired, or unavailable
|
|
3244
|
+
*/
|
|
3245
|
+
400: AccessCodeBadRequestResponseDto;
|
|
3246
|
+
/**
|
|
3247
|
+
* The code was already redeemed or another entitlement is still active
|
|
3248
|
+
*/
|
|
3249
|
+
409: AccessCodeConflictResponseDto;
|
|
3250
|
+
};
|
|
3251
|
+
export type PostApiBillingAccessCodesRedeemError = PostApiBillingAccessCodesRedeemErrors[keyof PostApiBillingAccessCodesRedeemErrors];
|
|
2961
3252
|
export type PostApiBillingAccessCodesRedeemResponses = {
|
|
2962
3253
|
/**
|
|
2963
3254
|
* Redeemed access entitlement
|
|
2964
3255
|
*/
|
|
2965
|
-
201:
|
|
3256
|
+
201: RedeemAccessCodeResponseDto;
|
|
2966
3257
|
};
|
|
2967
3258
|
export type PostApiBillingAccessCodesRedeemResponse = PostApiBillingAccessCodesRedeemResponses[keyof PostApiBillingAccessCodesRedeemResponses];
|
|
2968
3259
|
export type GetApiBillingReportPurchasesCurrentData = {
|
|
@@ -4659,3 +4950,239 @@ export type PatchApiGlobalChatNotificationsResponses = {
|
|
|
4659
4950
|
200: GlobalChatStatusDto;
|
|
4660
4951
|
};
|
|
4661
4952
|
export type PatchApiGlobalChatNotificationsResponse = PatchApiGlobalChatNotificationsResponses[keyof PatchApiGlobalChatNotificationsResponses];
|
|
4953
|
+
export type GetApiAdminDashboardData = {
|
|
4954
|
+
body?: never;
|
|
4955
|
+
path?: never;
|
|
4956
|
+
query?: {
|
|
4957
|
+
range?: '7d' | '30d' | '3mo';
|
|
4958
|
+
};
|
|
4959
|
+
url: '/api/admin/dashboard';
|
|
4960
|
+
};
|
|
4961
|
+
export type GetApiAdminDashboardErrors = {
|
|
4962
|
+
/**
|
|
4963
|
+
* Unauthorized
|
|
4964
|
+
*/
|
|
4965
|
+
401: unknown;
|
|
4966
|
+
/**
|
|
4967
|
+
* Super Admin access required
|
|
4968
|
+
*/
|
|
4969
|
+
403: unknown;
|
|
4970
|
+
};
|
|
4971
|
+
export type GetApiAdminDashboardResponses = {
|
|
4972
|
+
200: AdminDashboardResponseDto;
|
|
4973
|
+
};
|
|
4974
|
+
export type GetApiAdminDashboardResponse = GetApiAdminDashboardResponses[keyof GetApiAdminDashboardResponses];
|
|
4975
|
+
export type GetApiAdminUsersData = {
|
|
4976
|
+
body?: never;
|
|
4977
|
+
path?: never;
|
|
4978
|
+
query?: {
|
|
4979
|
+
page?: number;
|
|
4980
|
+
pageSize?: number;
|
|
4981
|
+
search?: string;
|
|
4982
|
+
role?: string;
|
|
4983
|
+
status?: 'active' | 'pending' | 'suspended' | 'deactivated';
|
|
4984
|
+
subscriptionStatus?: string;
|
|
4985
|
+
country?: string;
|
|
4986
|
+
};
|
|
4987
|
+
url: '/api/admin/users';
|
|
4988
|
+
};
|
|
4989
|
+
export type GetApiAdminUsersResponses = {
|
|
4990
|
+
200: AdminUserListResultDto;
|
|
4991
|
+
};
|
|
4992
|
+
export type GetApiAdminUsersResponse = GetApiAdminUsersResponses[keyof GetApiAdminUsersResponses];
|
|
4993
|
+
export type GetApiAdminUsersByIdData = {
|
|
4994
|
+
body?: never;
|
|
4995
|
+
path: {
|
|
4996
|
+
id: string;
|
|
4997
|
+
};
|
|
4998
|
+
query?: never;
|
|
4999
|
+
url: '/api/admin/users/{id}';
|
|
5000
|
+
};
|
|
5001
|
+
export type GetApiAdminUsersByIdErrors = {
|
|
5002
|
+
/**
|
|
5003
|
+
* User not found
|
|
5004
|
+
*/
|
|
5005
|
+
404: unknown;
|
|
5006
|
+
};
|
|
5007
|
+
export type GetApiAdminUsersByIdResponses = {
|
|
5008
|
+
200: AdminUserDetailDto;
|
|
5009
|
+
};
|
|
5010
|
+
export type GetApiAdminUsersByIdResponse = GetApiAdminUsersByIdResponses[keyof GetApiAdminUsersByIdResponses];
|
|
5011
|
+
export type GetApiAdminSubscriptionsData = {
|
|
5012
|
+
body?: never;
|
|
5013
|
+
path?: never;
|
|
5014
|
+
query?: {
|
|
5015
|
+
page?: number;
|
|
5016
|
+
pageSize?: number;
|
|
5017
|
+
search?: string;
|
|
5018
|
+
role?: string;
|
|
5019
|
+
plan?: string;
|
|
5020
|
+
status?: string;
|
|
5021
|
+
};
|
|
5022
|
+
url: '/api/admin/subscriptions';
|
|
5023
|
+
};
|
|
5024
|
+
export type GetApiAdminSubscriptionsResponses = {
|
|
5025
|
+
200: AdminSubscriptionListResultDto;
|
|
5026
|
+
};
|
|
5027
|
+
export type GetApiAdminSubscriptionsResponse = GetApiAdminSubscriptionsResponses[keyof GetApiAdminSubscriptionsResponses];
|
|
5028
|
+
export type GetApiAdminKycData = {
|
|
5029
|
+
body?: never;
|
|
5030
|
+
path?: never;
|
|
5031
|
+
query?: {
|
|
5032
|
+
page?: number;
|
|
5033
|
+
pageSize?: number;
|
|
5034
|
+
search?: string;
|
|
5035
|
+
status?: string;
|
|
5036
|
+
country?: string;
|
|
5037
|
+
};
|
|
5038
|
+
url: '/api/admin/kyc';
|
|
5039
|
+
};
|
|
5040
|
+
export type GetApiAdminKycResponses = {
|
|
5041
|
+
200: AdminKycListResultDto;
|
|
5042
|
+
};
|
|
5043
|
+
export type GetApiAdminKycResponse = GetApiAdminKycResponses[keyof GetApiAdminKycResponses];
|
|
5044
|
+
export type GetApiAdminAccessCodesPlansData = {
|
|
5045
|
+
body?: never;
|
|
5046
|
+
path?: never;
|
|
5047
|
+
query?: never;
|
|
5048
|
+
url: '/api/admin/access-codes/plans';
|
|
5049
|
+
};
|
|
5050
|
+
export type GetApiAdminAccessCodesPlansResponses = {
|
|
5051
|
+
200: Array<AdminAccessCodePlanDto>;
|
|
5052
|
+
};
|
|
5053
|
+
export type GetApiAdminAccessCodesPlansResponse = GetApiAdminAccessCodesPlansResponses[keyof GetApiAdminAccessCodesPlansResponses];
|
|
5054
|
+
export type GetApiAdminAccessCodesData = {
|
|
5055
|
+
body?: never;
|
|
5056
|
+
path?: never;
|
|
5057
|
+
query?: {
|
|
5058
|
+
page?: number;
|
|
5059
|
+
pageSize?: number;
|
|
5060
|
+
status?: 'scheduled' | 'active' | 'inactive' | 'expired' | 'exhausted';
|
|
5061
|
+
};
|
|
5062
|
+
url: '/api/admin/access-codes';
|
|
5063
|
+
};
|
|
5064
|
+
export type GetApiAdminAccessCodesResponses = {
|
|
5065
|
+
200: AdminAccessCodeListResultDto;
|
|
5066
|
+
};
|
|
5067
|
+
export type GetApiAdminAccessCodesResponse = GetApiAdminAccessCodesResponses[keyof GetApiAdminAccessCodesResponses];
|
|
5068
|
+
export type PostApiAdminAccessCodesData = {
|
|
5069
|
+
body: AdminCreateAccessCodeDto;
|
|
5070
|
+
path?: never;
|
|
5071
|
+
query?: never;
|
|
5072
|
+
url: '/api/admin/access-codes';
|
|
5073
|
+
};
|
|
5074
|
+
export type PostApiAdminAccessCodesResponses = {
|
|
5075
|
+
201: AdminCreateAccessCodeResponseDto;
|
|
5076
|
+
};
|
|
5077
|
+
export type PostApiAdminAccessCodesResponse = PostApiAdminAccessCodesResponses[keyof PostApiAdminAccessCodesResponses];
|
|
5078
|
+
export type PatchApiAdminAccessCodesByIdData = {
|
|
5079
|
+
body: AdminSetAccessCodeStateDto;
|
|
5080
|
+
path: {
|
|
5081
|
+
id: string;
|
|
5082
|
+
};
|
|
5083
|
+
query?: never;
|
|
5084
|
+
url: '/api/admin/access-codes/{id}';
|
|
5085
|
+
};
|
|
5086
|
+
export type PatchApiAdminAccessCodesByIdResponses = {
|
|
5087
|
+
200: AdminAccessCodeDto;
|
|
5088
|
+
};
|
|
5089
|
+
export type PatchApiAdminAccessCodesByIdResponse = PatchApiAdminAccessCodesByIdResponses[keyof PatchApiAdminAccessCodesByIdResponses];
|
|
5090
|
+
export type GetApiAdminAccessCodesByIdRedemptionsData = {
|
|
5091
|
+
body?: never;
|
|
5092
|
+
path: {
|
|
5093
|
+
id: string;
|
|
5094
|
+
};
|
|
5095
|
+
query: {
|
|
5096
|
+
page: number;
|
|
5097
|
+
pageSize: number;
|
|
5098
|
+
};
|
|
5099
|
+
url: '/api/admin/access-codes/{id}/redemptions';
|
|
5100
|
+
};
|
|
5101
|
+
export type GetApiAdminAccessCodesByIdRedemptionsResponses = {
|
|
5102
|
+
200: AdminAccessCodeRedemptionListResultDto;
|
|
5103
|
+
};
|
|
5104
|
+
export type GetApiAdminAccessCodesByIdRedemptionsResponse = GetApiAdminAccessCodesByIdRedemptionsResponses[keyof GetApiAdminAccessCodesByIdRedemptionsResponses];
|
|
5105
|
+
export type GetApiAdminUsersByIdAccessData = {
|
|
5106
|
+
body?: never;
|
|
5107
|
+
path: {
|
|
5108
|
+
id: string;
|
|
5109
|
+
};
|
|
5110
|
+
query?: never;
|
|
5111
|
+
url: '/api/admin/users/{id}/access';
|
|
5112
|
+
};
|
|
5113
|
+
export type GetApiAdminUsersByIdAccessResponses = {
|
|
5114
|
+
200: AdminUserAccessDto;
|
|
5115
|
+
};
|
|
5116
|
+
export type GetApiAdminUsersByIdAccessResponse = GetApiAdminUsersByIdAccessResponses[keyof GetApiAdminUsersByIdAccessResponses];
|
|
5117
|
+
export type PostApiAdminUsersByIdAccessGrantsData = {
|
|
5118
|
+
body: AdminGrantAccessDto;
|
|
5119
|
+
path: {
|
|
5120
|
+
id: string;
|
|
5121
|
+
};
|
|
5122
|
+
query?: never;
|
|
5123
|
+
url: '/api/admin/users/{id}/access-grants';
|
|
5124
|
+
};
|
|
5125
|
+
export type PostApiAdminUsersByIdAccessGrantsResponses = {
|
|
5126
|
+
201: AdminAccessGrantDto;
|
|
5127
|
+
};
|
|
5128
|
+
export type PostApiAdminUsersByIdAccessGrantsResponse = PostApiAdminUsersByIdAccessGrantsResponses[keyof PostApiAdminUsersByIdAccessGrantsResponses];
|
|
5129
|
+
export type PostApiAdminUsersByIdAccessGrantsByGrantIdRevokeData = {
|
|
5130
|
+
body: AdminRevokeAccessGrantDto;
|
|
5131
|
+
path: {
|
|
5132
|
+
id: string;
|
|
5133
|
+
grantId: string;
|
|
5134
|
+
};
|
|
5135
|
+
query?: never;
|
|
5136
|
+
url: '/api/admin/users/{id}/access-grants/{grantId}/revoke';
|
|
5137
|
+
};
|
|
5138
|
+
export type PostApiAdminUsersByIdAccessGrantsByGrantIdRevokeResponses = {
|
|
5139
|
+
201: unknown;
|
|
5140
|
+
};
|
|
5141
|
+
export type PostApiAdminUsersByIdSuspendData = {
|
|
5142
|
+
body: AdminUserActionRequestDto;
|
|
5143
|
+
path: {
|
|
5144
|
+
id: string;
|
|
5145
|
+
};
|
|
5146
|
+
query?: never;
|
|
5147
|
+
url: '/api/admin/users/{id}/suspend';
|
|
5148
|
+
};
|
|
5149
|
+
export type PostApiAdminUsersByIdSuspendResponses = {
|
|
5150
|
+
201: AdminAccountActionResponseDto;
|
|
5151
|
+
};
|
|
5152
|
+
export type PostApiAdminUsersByIdSuspendResponse = PostApiAdminUsersByIdSuspendResponses[keyof PostApiAdminUsersByIdSuspendResponses];
|
|
5153
|
+
export type PostApiAdminUsersByIdReactivateData = {
|
|
5154
|
+
body: AdminUserActionRequestDto;
|
|
5155
|
+
path: {
|
|
5156
|
+
id: string;
|
|
5157
|
+
};
|
|
5158
|
+
query?: never;
|
|
5159
|
+
url: '/api/admin/users/{id}/reactivate';
|
|
5160
|
+
};
|
|
5161
|
+
export type PostApiAdminUsersByIdReactivateResponses = {
|
|
5162
|
+
201: AdminAccountActionResponseDto;
|
|
5163
|
+
};
|
|
5164
|
+
export type PostApiAdminUsersByIdReactivateResponse = PostApiAdminUsersByIdReactivateResponses[keyof PostApiAdminUsersByIdReactivateResponses];
|
|
5165
|
+
export type PostApiAdminUsersByIdResetPasswordData = {
|
|
5166
|
+
body: AdminUserActionRequestDto;
|
|
5167
|
+
path: {
|
|
5168
|
+
id: string;
|
|
5169
|
+
};
|
|
5170
|
+
query?: never;
|
|
5171
|
+
url: '/api/admin/users/{id}/reset-password';
|
|
5172
|
+
};
|
|
5173
|
+
export type PostApiAdminUsersByIdResetPasswordResponses = {
|
|
5174
|
+
201: AdminPasswordResetResponseDto;
|
|
5175
|
+
};
|
|
5176
|
+
export type PostApiAdminUsersByIdResetPasswordResponse = PostApiAdminUsersByIdResetPasswordResponses[keyof PostApiAdminUsersByIdResetPasswordResponses];
|
|
5177
|
+
export type PostApiAdminUsersByIdDeactivateData = {
|
|
5178
|
+
body: AdminUserActionRequestDto;
|
|
5179
|
+
path: {
|
|
5180
|
+
id: string;
|
|
5181
|
+
};
|
|
5182
|
+
query?: never;
|
|
5183
|
+
url: '/api/admin/users/{id}/deactivate';
|
|
5184
|
+
};
|
|
5185
|
+
export type PostApiAdminUsersByIdDeactivateResponses = {
|
|
5186
|
+
201: AdminAccountActionResponseDto;
|
|
5187
|
+
};
|
|
5188
|
+
export type PostApiAdminUsersByIdDeactivateResponse = PostApiAdminUsersByIdDeactivateResponses[keyof PostApiAdminUsersByIdDeactivateResponses];
|
package/index.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
Achievements,
|
|
5
|
+
Admin,
|
|
5
6
|
Auth,
|
|
6
7
|
Billing,
|
|
7
8
|
Body,
|
|
@@ -31,7 +32,36 @@ export {
|
|
|
31
32
|
Videos,
|
|
32
33
|
} from './sdk.gen.js';
|
|
33
34
|
export type {
|
|
35
|
+
AccessCodeBadRequestResponseDto,
|
|
36
|
+
AccessCodeConflictResponseDto,
|
|
34
37
|
AchievementCatalogDto,
|
|
38
|
+
AdminAccessCodeDto,
|
|
39
|
+
AdminAccessCodeListResultDto,
|
|
40
|
+
AdminAccessCodePlanDto,
|
|
41
|
+
AdminAccessCodeRedemptionDto,
|
|
42
|
+
AdminAccessCodeRedemptionListResultDto,
|
|
43
|
+
AdminAccessGrantDto,
|
|
44
|
+
AdminAccountActionResponseDto,
|
|
45
|
+
AdminActivityBucketDto,
|
|
46
|
+
AdminCreateAccessCodeDto,
|
|
47
|
+
AdminCreateAccessCodeResponseDto,
|
|
48
|
+
AdminDashboardMetricsDto,
|
|
49
|
+
AdminDashboardResponseDto,
|
|
50
|
+
AdminGrantAccessDto,
|
|
51
|
+
AdminKycListItemDto,
|
|
52
|
+
AdminKycListResultDto,
|
|
53
|
+
AdminMetricDto,
|
|
54
|
+
AdminPasswordResetResponseDto,
|
|
55
|
+
AdminRevokeAccessGrantDto,
|
|
56
|
+
AdminSetAccessCodeStateDto,
|
|
57
|
+
AdminSubscriptionHealthDto,
|
|
58
|
+
AdminSubscriptionListItemDto,
|
|
59
|
+
AdminSubscriptionListResultDto,
|
|
60
|
+
AdminUserAccessDto,
|
|
61
|
+
AdminUserActionRequestDto,
|
|
62
|
+
AdminUserDetailDto,
|
|
63
|
+
AdminUserListItemDto,
|
|
64
|
+
AdminUserListResultDto,
|
|
35
65
|
AiReportClipDto,
|
|
36
66
|
AiReportClipTargetDto,
|
|
37
67
|
AiReportGsiBodySourceInputDto,
|
|
@@ -141,6 +171,35 @@ export type {
|
|
|
141
171
|
GetApiAchievementsMeResponses,
|
|
142
172
|
GetApiAchievementsResponse,
|
|
143
173
|
GetApiAchievementsResponses,
|
|
174
|
+
GetApiAdminAccessCodesByIdRedemptionsData,
|
|
175
|
+
GetApiAdminAccessCodesByIdRedemptionsResponse,
|
|
176
|
+
GetApiAdminAccessCodesByIdRedemptionsResponses,
|
|
177
|
+
GetApiAdminAccessCodesData,
|
|
178
|
+
GetApiAdminAccessCodesPlansData,
|
|
179
|
+
GetApiAdminAccessCodesPlansResponse,
|
|
180
|
+
GetApiAdminAccessCodesPlansResponses,
|
|
181
|
+
GetApiAdminAccessCodesResponse,
|
|
182
|
+
GetApiAdminAccessCodesResponses,
|
|
183
|
+
GetApiAdminDashboardData,
|
|
184
|
+
GetApiAdminDashboardErrors,
|
|
185
|
+
GetApiAdminDashboardResponse,
|
|
186
|
+
GetApiAdminDashboardResponses,
|
|
187
|
+
GetApiAdminKycData,
|
|
188
|
+
GetApiAdminKycResponse,
|
|
189
|
+
GetApiAdminKycResponses,
|
|
190
|
+
GetApiAdminSubscriptionsData,
|
|
191
|
+
GetApiAdminSubscriptionsResponse,
|
|
192
|
+
GetApiAdminSubscriptionsResponses,
|
|
193
|
+
GetApiAdminUsersByIdAccessData,
|
|
194
|
+
GetApiAdminUsersByIdAccessResponse,
|
|
195
|
+
GetApiAdminUsersByIdAccessResponses,
|
|
196
|
+
GetApiAdminUsersByIdData,
|
|
197
|
+
GetApiAdminUsersByIdErrors,
|
|
198
|
+
GetApiAdminUsersByIdResponse,
|
|
199
|
+
GetApiAdminUsersByIdResponses,
|
|
200
|
+
GetApiAdminUsersData,
|
|
201
|
+
GetApiAdminUsersResponse,
|
|
202
|
+
GetApiAdminUsersResponses,
|
|
144
203
|
GetApiAuthMeData,
|
|
145
204
|
GetApiAuthMeErrors,
|
|
146
205
|
GetApiAuthMeResponse,
|
|
@@ -352,6 +411,9 @@ export type {
|
|
|
352
411
|
OkDto,
|
|
353
412
|
OrganizationResponseDto,
|
|
354
413
|
PaginatedTrainingContentDto,
|
|
414
|
+
PatchApiAdminAccessCodesByIdData,
|
|
415
|
+
PatchApiAdminAccessCodesByIdResponse,
|
|
416
|
+
PatchApiAdminAccessCodesByIdResponses,
|
|
355
417
|
PatchApiClubsMeByIdData,
|
|
356
418
|
PatchApiClubsMeByIdErrors,
|
|
357
419
|
PatchApiClubsMeByIdResponse,
|
|
@@ -393,7 +455,29 @@ export type {
|
|
|
393
455
|
PlayerVideoDto,
|
|
394
456
|
PlayUrlResponseDto,
|
|
395
457
|
PortalResultDto,
|
|
458
|
+
PostApiAdminAccessCodesData,
|
|
459
|
+
PostApiAdminAccessCodesResponse,
|
|
460
|
+
PostApiAdminAccessCodesResponses,
|
|
461
|
+
PostApiAdminUsersByIdAccessGrantsByGrantIdRevokeData,
|
|
462
|
+
PostApiAdminUsersByIdAccessGrantsByGrantIdRevokeResponses,
|
|
463
|
+
PostApiAdminUsersByIdAccessGrantsData,
|
|
464
|
+
PostApiAdminUsersByIdAccessGrantsResponse,
|
|
465
|
+
PostApiAdminUsersByIdAccessGrantsResponses,
|
|
466
|
+
PostApiAdminUsersByIdDeactivateData,
|
|
467
|
+
PostApiAdminUsersByIdDeactivateResponse,
|
|
468
|
+
PostApiAdminUsersByIdDeactivateResponses,
|
|
469
|
+
PostApiAdminUsersByIdReactivateData,
|
|
470
|
+
PostApiAdminUsersByIdReactivateResponse,
|
|
471
|
+
PostApiAdminUsersByIdReactivateResponses,
|
|
472
|
+
PostApiAdminUsersByIdResetPasswordData,
|
|
473
|
+
PostApiAdminUsersByIdResetPasswordResponse,
|
|
474
|
+
PostApiAdminUsersByIdResetPasswordResponses,
|
|
475
|
+
PostApiAdminUsersByIdSuspendData,
|
|
476
|
+
PostApiAdminUsersByIdSuspendResponse,
|
|
477
|
+
PostApiAdminUsersByIdSuspendResponses,
|
|
396
478
|
PostApiBillingAccessCodesRedeemData,
|
|
479
|
+
PostApiBillingAccessCodesRedeemError,
|
|
480
|
+
PostApiBillingAccessCodesRedeemErrors,
|
|
397
481
|
PostApiBillingAccessCodesRedeemResponse,
|
|
398
482
|
PostApiBillingAccessCodesRedeemResponses,
|
|
399
483
|
PostApiBillingAppleSyncPurchaseData,
|
|
@@ -555,6 +639,7 @@ export type {
|
|
|
555
639
|
PutApiProfileMeResponses,
|
|
556
640
|
QualitySummaryDto,
|
|
557
641
|
RedeemAccessCodeDto,
|
|
642
|
+
RedeemAccessCodeResponseDto,
|
|
558
643
|
RegisterAgentDto,
|
|
559
644
|
RegisterAgentResponseDto,
|
|
560
645
|
RegisterClubDto,
|