@globalscoutme/api-client 1.2.7 → 1.4.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/README.md +6 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/sdk.gen.d.ts +76 -4
- package/dist/sdk.gen.js +170 -4
- package/dist/types.gen.d.ts +609 -7
- package/index.ts +87 -0
- package/package.json +1 -1
- package/sdk.gen.ts +328 -6
- package/types.gen.ts +717 -7
package/dist/types.gen.d.ts
CHANGED
|
@@ -11,13 +11,21 @@ export type AuthMeResponseDto = {
|
|
|
11
11
|
*/
|
|
12
12
|
userType?: string | null;
|
|
13
13
|
/**
|
|
14
|
-
* The user's role within their organization (club/agency), e.g. for web page-level access. Null for user types without an organization membership (player, coach).
|
|
14
|
+
* The user's role within their organization (club/agency), e.g. for web page-level access. Multiple active memberships return the non-admin user role so privileged access fails closed. Null for user types without an organization membership (player, coach).
|
|
15
15
|
*/
|
|
16
|
-
orgRole?: 'admin' | 'user';
|
|
16
|
+
orgRole?: 'admin' | 'user' | null;
|
|
17
17
|
/**
|
|
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';
|
|
@@ -225,7 +233,7 @@ export type UpdatePlayerDto = {
|
|
|
225
233
|
/**
|
|
226
234
|
* User type code
|
|
227
235
|
*/
|
|
228
|
-
userType?:
|
|
236
|
+
userType?: 'player' | 'coach' | 'club_admin' | 'scouter';
|
|
229
237
|
/**
|
|
230
238
|
* Avatar URL
|
|
231
239
|
*/
|
|
@@ -292,6 +300,14 @@ export type PlayerSearchRequestDto = {
|
|
|
292
300
|
* Height value in cm — must be paired with heightOperator
|
|
293
301
|
*/
|
|
294
302
|
heightCm?: number;
|
|
303
|
+
/**
|
|
304
|
+
* Gender codes from index.genders (multi-select)
|
|
305
|
+
*/
|
|
306
|
+
genders?: Array<string>;
|
|
307
|
+
/**
|
|
308
|
+
* Also include players with no gender set. Combined with genders as OR; on its own, returns only players without a gender
|
|
309
|
+
*/
|
|
310
|
+
includeUnspecifiedGender?: boolean;
|
|
295
311
|
/**
|
|
296
312
|
* Only free agents
|
|
297
313
|
*/
|
|
@@ -963,6 +979,28 @@ export type BillingEntitlementResponseDto = {
|
|
|
963
979
|
export type RedeemAccessCodeDto = {
|
|
964
980
|
code: string;
|
|
965
981
|
};
|
|
982
|
+
export type RedeemAccessCodeResponseDto = {
|
|
983
|
+
hasAccess: boolean;
|
|
984
|
+
status: string;
|
|
985
|
+
provider?: string | null;
|
|
986
|
+
plan?: BillingPlanDto | null;
|
|
987
|
+
currentPeriodEnd?: string | null;
|
|
988
|
+
gracePeriodUntil?: string | null;
|
|
989
|
+
blockingReason?: string | null;
|
|
990
|
+
manageAction: BillingManageActionDto;
|
|
991
|
+
redemptionOutcome?: 'redeemed' | 'already_redeemed';
|
|
992
|
+
};
|
|
993
|
+
export type AccessCodeBadRequestResponseDto = {
|
|
994
|
+
statusCode: number;
|
|
995
|
+
error: string;
|
|
996
|
+
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';
|
|
997
|
+
message: string;
|
|
998
|
+
};
|
|
999
|
+
export type AccessCodeConflictResponseDto = {
|
|
1000
|
+
statusCode: number;
|
|
1001
|
+
code: 'ACCESS_CODE_ALREADY_REDEEMED' | 'ACTIVE_BILLING_ACCESS_EXISTS';
|
|
1002
|
+
message: string;
|
|
1003
|
+
};
|
|
966
1004
|
export type ReportPurchaseDto = {
|
|
967
1005
|
id: string;
|
|
968
1006
|
paymentStatus: string;
|
|
@@ -2620,6 +2658,247 @@ export type MarkGlobalChatReadDto = {
|
|
|
2620
2658
|
export type UpdateGlobalChatNotificationsDto = {
|
|
2621
2659
|
notificationsEnabled: boolean;
|
|
2622
2660
|
};
|
|
2661
|
+
export type AdminMetricDto = {
|
|
2662
|
+
current: number;
|
|
2663
|
+
periodCount: number;
|
|
2664
|
+
byRole?: {
|
|
2665
|
+
[key: string]: number;
|
|
2666
|
+
};
|
|
2667
|
+
};
|
|
2668
|
+
export type AdminDashboardMetricsDto = {
|
|
2669
|
+
registeredUsers: AdminMetricDto;
|
|
2670
|
+
activeSubscriptions: AdminMetricDto;
|
|
2671
|
+
pendingKyc: AdminMetricDto;
|
|
2672
|
+
verifiedKyc: AdminMetricDto;
|
|
2673
|
+
videosUploaded: AdminMetricDto;
|
|
2674
|
+
aiReports: AdminMetricDto;
|
|
2675
|
+
bodyMeasurements: AdminMetricDto;
|
|
2676
|
+
speedSprintTests: AdminMetricDto;
|
|
2677
|
+
};
|
|
2678
|
+
export type AdminActivityBucketDto = {
|
|
2679
|
+
bucketStart: string;
|
|
2680
|
+
registrations: number;
|
|
2681
|
+
videos: number;
|
|
2682
|
+
aiReports: number;
|
|
2683
|
+
bodyMeasurements: number;
|
|
2684
|
+
speedSprintTests: number;
|
|
2685
|
+
};
|
|
2686
|
+
export type AdminSubscriptionHealthDto = {
|
|
2687
|
+
role: string;
|
|
2688
|
+
active: number;
|
|
2689
|
+
cancelled: number;
|
|
2690
|
+
expired: number;
|
|
2691
|
+
};
|
|
2692
|
+
export type AdminDashboardResponseDto = {
|
|
2693
|
+
range: '7d' | '30d' | '3mo';
|
|
2694
|
+
generatedAt: string;
|
|
2695
|
+
metrics: AdminDashboardMetricsDto;
|
|
2696
|
+
activity: Array<AdminActivityBucketDto>;
|
|
2697
|
+
subscriptionHealth: Array<AdminSubscriptionHealthDto>;
|
|
2698
|
+
};
|
|
2699
|
+
export type AdminUserListItemDto = {
|
|
2700
|
+
id: string;
|
|
2701
|
+
name: string;
|
|
2702
|
+
email: string;
|
|
2703
|
+
role: string | null;
|
|
2704
|
+
countryCode: string | null;
|
|
2705
|
+
country: string | null;
|
|
2706
|
+
accountStatus: 'active' | 'pending' | 'suspended' | 'deactivated';
|
|
2707
|
+
kycStatus: string;
|
|
2708
|
+
subscriptionStatus: string;
|
|
2709
|
+
registrationDate: string | null;
|
|
2710
|
+
isSuperAdmin: boolean;
|
|
2711
|
+
};
|
|
2712
|
+
export type AdminUserListResultDto = {
|
|
2713
|
+
items: Array<AdminUserListItemDto>;
|
|
2714
|
+
/**
|
|
2715
|
+
* Total matching records
|
|
2716
|
+
*/
|
|
2717
|
+
total: number;
|
|
2718
|
+
page: number;
|
|
2719
|
+
pageSize: number;
|
|
2720
|
+
};
|
|
2721
|
+
export type AdminUserDetailDto = {
|
|
2722
|
+
id: string;
|
|
2723
|
+
name: string;
|
|
2724
|
+
email: string;
|
|
2725
|
+
role: string | null;
|
|
2726
|
+
countryCode: string | null;
|
|
2727
|
+
country: string | null;
|
|
2728
|
+
accountStatus: 'active' | 'pending' | 'suspended' | 'deactivated';
|
|
2729
|
+
kycStatus: string;
|
|
2730
|
+
subscriptionStatus: string;
|
|
2731
|
+
registrationDate: string | null;
|
|
2732
|
+
isSuperAdmin: boolean;
|
|
2733
|
+
};
|
|
2734
|
+
export type AdminSubscriptionListItemDto = {
|
|
2735
|
+
id: string;
|
|
2736
|
+
userId: string;
|
|
2737
|
+
userName: string;
|
|
2738
|
+
email: string;
|
|
2739
|
+
role: string | null;
|
|
2740
|
+
plan: string;
|
|
2741
|
+
planInterval: string | null;
|
|
2742
|
+
platform: string;
|
|
2743
|
+
price: number;
|
|
2744
|
+
currency: string;
|
|
2745
|
+
status: string;
|
|
2746
|
+
cancelsAtPeriodEnd: boolean;
|
|
2747
|
+
startDate: string | null;
|
|
2748
|
+
nextBillingDate: string | null;
|
|
2749
|
+
externalUrl: string | null;
|
|
2750
|
+
};
|
|
2751
|
+
export type AdminSubscriptionListResultDto = {
|
|
2752
|
+
items: Array<AdminSubscriptionListItemDto>;
|
|
2753
|
+
/**
|
|
2754
|
+
* Total matching records
|
|
2755
|
+
*/
|
|
2756
|
+
total: number;
|
|
2757
|
+
page: number;
|
|
2758
|
+
pageSize: number;
|
|
2759
|
+
};
|
|
2760
|
+
export type AdminKycListItemDto = {
|
|
2761
|
+
id: string;
|
|
2762
|
+
userId: string;
|
|
2763
|
+
userName: string;
|
|
2764
|
+
email: string;
|
|
2765
|
+
role: string | null;
|
|
2766
|
+
country: string | null;
|
|
2767
|
+
status: string;
|
|
2768
|
+
provider: string;
|
|
2769
|
+
submittedAt: string | null;
|
|
2770
|
+
updatedAt: string | null;
|
|
2771
|
+
};
|
|
2772
|
+
export type AdminKycListResultDto = {
|
|
2773
|
+
items: Array<AdminKycListItemDto>;
|
|
2774
|
+
/**
|
|
2775
|
+
* Total matching records
|
|
2776
|
+
*/
|
|
2777
|
+
total: number;
|
|
2778
|
+
page: number;
|
|
2779
|
+
pageSize: number;
|
|
2780
|
+
};
|
|
2781
|
+
export type AdminAccessCodePlanDto = {
|
|
2782
|
+
id: string;
|
|
2783
|
+
name: string;
|
|
2784
|
+
role: string | null;
|
|
2785
|
+
};
|
|
2786
|
+
export type AdminAccessCodeDto = {
|
|
2787
|
+
id: string;
|
|
2788
|
+
code: string | null;
|
|
2789
|
+
description: string | null;
|
|
2790
|
+
codeSuffix: string | null;
|
|
2791
|
+
planId: string;
|
|
2792
|
+
planName: string;
|
|
2793
|
+
role: string | null;
|
|
2794
|
+
durationDays: number;
|
|
2795
|
+
startsAt: string | null;
|
|
2796
|
+
expiresAt: string | null;
|
|
2797
|
+
maxRedemptions: number | null;
|
|
2798
|
+
redemptionCount: number;
|
|
2799
|
+
isActive: boolean;
|
|
2800
|
+
status: 'scheduled' | 'active' | 'inactive' | 'expired' | 'exhausted';
|
|
2801
|
+
createdAt: string;
|
|
2802
|
+
};
|
|
2803
|
+
export type AdminAccessCodeListResultDto = {
|
|
2804
|
+
items: Array<AdminAccessCodeDto>;
|
|
2805
|
+
/**
|
|
2806
|
+
* Total matching records
|
|
2807
|
+
*/
|
|
2808
|
+
total: number;
|
|
2809
|
+
page: number;
|
|
2810
|
+
pageSize: number;
|
|
2811
|
+
};
|
|
2812
|
+
export type AdminCreateAccessCodeDto = {
|
|
2813
|
+
planId: string;
|
|
2814
|
+
description?: string;
|
|
2815
|
+
durationDays: number;
|
|
2816
|
+
startsAt?: string | null;
|
|
2817
|
+
expiresAt?: string | null;
|
|
2818
|
+
maxRedemptions?: number | null;
|
|
2819
|
+
};
|
|
2820
|
+
export type AdminCreateAccessCodeResponseDto = {
|
|
2821
|
+
id: string;
|
|
2822
|
+
/**
|
|
2823
|
+
* Generated access code visible to Super Admins.
|
|
2824
|
+
*/
|
|
2825
|
+
code: string | null;
|
|
2826
|
+
description: string | null;
|
|
2827
|
+
codeSuffix: string | null;
|
|
2828
|
+
planId: string;
|
|
2829
|
+
planName: string;
|
|
2830
|
+
role: string | null;
|
|
2831
|
+
durationDays: number;
|
|
2832
|
+
startsAt: string | null;
|
|
2833
|
+
expiresAt: string | null;
|
|
2834
|
+
maxRedemptions: number | null;
|
|
2835
|
+
redemptionCount: number;
|
|
2836
|
+
isActive: boolean;
|
|
2837
|
+
status: 'scheduled' | 'active' | 'inactive' | 'expired' | 'exhausted';
|
|
2838
|
+
createdAt: string;
|
|
2839
|
+
};
|
|
2840
|
+
export type AdminSetAccessCodeStateDto = {
|
|
2841
|
+
isActive: boolean;
|
|
2842
|
+
reason?: string;
|
|
2843
|
+
};
|
|
2844
|
+
export type AdminAccessCodeRedemptionDto = {
|
|
2845
|
+
id: string;
|
|
2846
|
+
userId: string;
|
|
2847
|
+
userName: string;
|
|
2848
|
+
email: string;
|
|
2849
|
+
redeemedAt: string;
|
|
2850
|
+
startsAt: string;
|
|
2851
|
+
endsAt: string;
|
|
2852
|
+
};
|
|
2853
|
+
export type AdminAccessCodeRedemptionListResultDto = {
|
|
2854
|
+
items: Array<AdminAccessCodeRedemptionDto>;
|
|
2855
|
+
/**
|
|
2856
|
+
* Total matching records
|
|
2857
|
+
*/
|
|
2858
|
+
total: number;
|
|
2859
|
+
page: number;
|
|
2860
|
+
pageSize: number;
|
|
2861
|
+
};
|
|
2862
|
+
export type AdminUserAccessDto = {
|
|
2863
|
+
hasAccess: boolean;
|
|
2864
|
+
status: string;
|
|
2865
|
+
provider: string | null;
|
|
2866
|
+
planId: string | null;
|
|
2867
|
+
planName: string | null;
|
|
2868
|
+
startsAt: string | null;
|
|
2869
|
+
endsAt: string | null;
|
|
2870
|
+
adminGrantId: string | null;
|
|
2871
|
+
};
|
|
2872
|
+
export type AdminGrantAccessDto = {
|
|
2873
|
+
planId: string;
|
|
2874
|
+
durationDays: number;
|
|
2875
|
+
reason?: string;
|
|
2876
|
+
};
|
|
2877
|
+
export type AdminAccessGrantDto = {
|
|
2878
|
+
id: string;
|
|
2879
|
+
userId: string;
|
|
2880
|
+
planId: string;
|
|
2881
|
+
planName: string;
|
|
2882
|
+
startsAt: string;
|
|
2883
|
+
endsAt: string;
|
|
2884
|
+
status: 'active' | 'revoked';
|
|
2885
|
+
};
|
|
2886
|
+
export type AdminRevokeAccessGrantDto = {
|
|
2887
|
+
reason?: string;
|
|
2888
|
+
};
|
|
2889
|
+
export type AdminUserActionRequestDto = {
|
|
2890
|
+
/**
|
|
2891
|
+
* Optional reason stored in the audit trail
|
|
2892
|
+
*/
|
|
2893
|
+
reason?: string;
|
|
2894
|
+
};
|
|
2895
|
+
export type AdminAccountActionResponseDto = {
|
|
2896
|
+
accountStatus: 'active' | 'pending' | 'suspended' | 'deactivated';
|
|
2897
|
+
authSyncStatus: 'succeeded' | 'failed';
|
|
2898
|
+
};
|
|
2899
|
+
export type AdminPasswordResetResponseDto = {
|
|
2900
|
+
deliveryStatus: 'succeeded' | 'failed';
|
|
2901
|
+
};
|
|
2623
2902
|
export type GetApiAuthMeData = {
|
|
2624
2903
|
body?: never;
|
|
2625
2904
|
path?: never;
|
|
@@ -2695,10 +2974,18 @@ export type PatchApiPlayersMeData = {
|
|
|
2695
2974
|
url: '/api/players/me';
|
|
2696
2975
|
};
|
|
2697
2976
|
export type PatchApiPlayersMeErrors = {
|
|
2977
|
+
/**
|
|
2978
|
+
* Invalid persona assignment or active organization conflict
|
|
2979
|
+
*/
|
|
2980
|
+
400: unknown;
|
|
2698
2981
|
/**
|
|
2699
2982
|
* Unauthorized
|
|
2700
2983
|
*/
|
|
2701
2984
|
401: unknown;
|
|
2985
|
+
/**
|
|
2986
|
+
* Active billing entitlement is required to continue onboarding
|
|
2987
|
+
*/
|
|
2988
|
+
403: unknown;
|
|
2702
2989
|
};
|
|
2703
2990
|
export type PatchApiPlayersMeResponses = {
|
|
2704
2991
|
200: PlayerResponseDto;
|
|
@@ -2967,11 +3254,22 @@ export type PostApiBillingAccessCodesRedeemData = {
|
|
|
2967
3254
|
query?: never;
|
|
2968
3255
|
url: '/api/billing/access-codes/redeem';
|
|
2969
3256
|
};
|
|
3257
|
+
export type PostApiBillingAccessCodesRedeemErrors = {
|
|
3258
|
+
/**
|
|
3259
|
+
* The code is invalid, inactive, not yet active, expired, or unavailable
|
|
3260
|
+
*/
|
|
3261
|
+
400: AccessCodeBadRequestResponseDto;
|
|
3262
|
+
/**
|
|
3263
|
+
* The code was already redeemed or another entitlement is still active
|
|
3264
|
+
*/
|
|
3265
|
+
409: AccessCodeConflictResponseDto;
|
|
3266
|
+
};
|
|
3267
|
+
export type PostApiBillingAccessCodesRedeemError = PostApiBillingAccessCodesRedeemErrors[keyof PostApiBillingAccessCodesRedeemErrors];
|
|
2970
3268
|
export type PostApiBillingAccessCodesRedeemResponses = {
|
|
2971
3269
|
/**
|
|
2972
3270
|
* Redeemed access entitlement
|
|
2973
3271
|
*/
|
|
2974
|
-
201:
|
|
3272
|
+
201: RedeemAccessCodeResponseDto;
|
|
2975
3273
|
};
|
|
2976
3274
|
export type PostApiBillingAccessCodesRedeemResponse = PostApiBillingAccessCodesRedeemResponses[keyof PostApiBillingAccessCodesRedeemResponses];
|
|
2977
3275
|
export type GetApiBillingReportPurchasesCurrentData = {
|
|
@@ -3809,6 +4107,16 @@ export type GetApiInvitationsData = {
|
|
|
3809
4107
|
query?: never;
|
|
3810
4108
|
url: '/api/invitations';
|
|
3811
4109
|
};
|
|
4110
|
+
export type GetApiInvitationsErrors = {
|
|
4111
|
+
/**
|
|
4112
|
+
* Unauthorized
|
|
4113
|
+
*/
|
|
4114
|
+
401: unknown;
|
|
4115
|
+
/**
|
|
4116
|
+
* Active organization admin membership required
|
|
4117
|
+
*/
|
|
4118
|
+
403: unknown;
|
|
4119
|
+
};
|
|
3812
4120
|
export type GetApiInvitationsResponses = {
|
|
3813
4121
|
200: Array<InvitationResponseDto>;
|
|
3814
4122
|
};
|
|
@@ -3821,9 +4129,25 @@ export type PostApiInvitationsData = {
|
|
|
3821
4129
|
};
|
|
3822
4130
|
export type PostApiInvitationsErrors = {
|
|
3823
4131
|
/**
|
|
3824
|
-
* Limit reached or
|
|
4132
|
+
* Limit reached, active invitation, membership or registered account exists, or invitee is a player
|
|
3825
4133
|
*/
|
|
3826
4134
|
400: unknown;
|
|
4135
|
+
/**
|
|
4136
|
+
* Unauthorized
|
|
4137
|
+
*/
|
|
4138
|
+
401: unknown;
|
|
4139
|
+
/**
|
|
4140
|
+
* Active organization admin membership required
|
|
4141
|
+
*/
|
|
4142
|
+
403: unknown;
|
|
4143
|
+
/**
|
|
4144
|
+
* Invitation email rate limit exceeded
|
|
4145
|
+
*/
|
|
4146
|
+
429: unknown;
|
|
4147
|
+
/**
|
|
4148
|
+
* Supabase Auth invitation delivery failed
|
|
4149
|
+
*/
|
|
4150
|
+
502: unknown;
|
|
3827
4151
|
};
|
|
3828
4152
|
export type PostApiInvitationsResponses = {
|
|
3829
4153
|
201: InvitationResponseDto;
|
|
@@ -3839,13 +4163,29 @@ export type PostApiInvitationsByIdResendData = {
|
|
|
3839
4163
|
};
|
|
3840
4164
|
export type PostApiInvitationsByIdResendErrors = {
|
|
3841
4165
|
/**
|
|
3842
|
-
*
|
|
4166
|
+
* Invitation is confirmed, another active invitation, membership or registered account exists, or invitee is a player
|
|
3843
4167
|
*/
|
|
3844
4168
|
400: unknown;
|
|
4169
|
+
/**
|
|
4170
|
+
* Unauthorized
|
|
4171
|
+
*/
|
|
4172
|
+
401: unknown;
|
|
4173
|
+
/**
|
|
4174
|
+
* Active organization admin membership required
|
|
4175
|
+
*/
|
|
4176
|
+
403: unknown;
|
|
3845
4177
|
/**
|
|
3846
4178
|
* Invitation not found
|
|
3847
4179
|
*/
|
|
3848
4180
|
404: unknown;
|
|
4181
|
+
/**
|
|
4182
|
+
* Invitation email rate limit exceeded
|
|
4183
|
+
*/
|
|
4184
|
+
429: unknown;
|
|
4185
|
+
/**
|
|
4186
|
+
* Supabase Auth invitation delivery failed
|
|
4187
|
+
*/
|
|
4188
|
+
502: unknown;
|
|
3849
4189
|
};
|
|
3850
4190
|
export type PostApiInvitationsByIdResendResponses = {
|
|
3851
4191
|
200: InvitationResponseDto;
|
|
@@ -3864,6 +4204,14 @@ export type DeleteApiInvitationsByIdErrors = {
|
|
|
3864
4204
|
* Cannot delete a confirmed invitation
|
|
3865
4205
|
*/
|
|
3866
4206
|
400: unknown;
|
|
4207
|
+
/**
|
|
4208
|
+
* Unauthorized
|
|
4209
|
+
*/
|
|
4210
|
+
401: unknown;
|
|
4211
|
+
/**
|
|
4212
|
+
* Active organization admin membership required
|
|
4213
|
+
*/
|
|
4214
|
+
403: unknown;
|
|
3867
4215
|
/**
|
|
3868
4216
|
* Invitation not found
|
|
3869
4217
|
*/
|
|
@@ -3882,9 +4230,27 @@ export type PostApiInvitationsAcceptData = {
|
|
|
3882
4230
|
query?: never;
|
|
3883
4231
|
url: '/api/invitations/accept';
|
|
3884
4232
|
};
|
|
4233
|
+
export type PostApiInvitationsAcceptErrors = {
|
|
4234
|
+
/**
|
|
4235
|
+
* Invitation cannot be accepted for this account or has expired
|
|
4236
|
+
*/
|
|
4237
|
+
400: unknown;
|
|
4238
|
+
/**
|
|
4239
|
+
* Unauthorized
|
|
4240
|
+
*/
|
|
4241
|
+
401: unknown;
|
|
4242
|
+
/**
|
|
4243
|
+
* Invitation or account not found
|
|
4244
|
+
*/
|
|
4245
|
+
404: unknown;
|
|
4246
|
+
/**
|
|
4247
|
+
* Invitation accepted; metadata cleanup can be retried
|
|
4248
|
+
*/
|
|
4249
|
+
502: unknown;
|
|
4250
|
+
};
|
|
3885
4251
|
export type PostApiInvitationsAcceptResponses = {
|
|
3886
4252
|
/**
|
|
3887
|
-
* Accepted
|
|
4253
|
+
* Accepted or already linked to the selected invitation
|
|
3888
4254
|
*/
|
|
3889
4255
|
204: void;
|
|
3890
4256
|
};
|
|
@@ -4668,3 +5034,239 @@ export type PatchApiGlobalChatNotificationsResponses = {
|
|
|
4668
5034
|
200: GlobalChatStatusDto;
|
|
4669
5035
|
};
|
|
4670
5036
|
export type PatchApiGlobalChatNotificationsResponse = PatchApiGlobalChatNotificationsResponses[keyof PatchApiGlobalChatNotificationsResponses];
|
|
5037
|
+
export type GetApiAdminDashboardData = {
|
|
5038
|
+
body?: never;
|
|
5039
|
+
path?: never;
|
|
5040
|
+
query?: {
|
|
5041
|
+
range?: '7d' | '30d' | '3mo';
|
|
5042
|
+
};
|
|
5043
|
+
url: '/api/admin/dashboard';
|
|
5044
|
+
};
|
|
5045
|
+
export type GetApiAdminDashboardErrors = {
|
|
5046
|
+
/**
|
|
5047
|
+
* Unauthorized
|
|
5048
|
+
*/
|
|
5049
|
+
401: unknown;
|
|
5050
|
+
/**
|
|
5051
|
+
* Super Admin access required
|
|
5052
|
+
*/
|
|
5053
|
+
403: unknown;
|
|
5054
|
+
};
|
|
5055
|
+
export type GetApiAdminDashboardResponses = {
|
|
5056
|
+
200: AdminDashboardResponseDto;
|
|
5057
|
+
};
|
|
5058
|
+
export type GetApiAdminDashboardResponse = GetApiAdminDashboardResponses[keyof GetApiAdminDashboardResponses];
|
|
5059
|
+
export type GetApiAdminUsersData = {
|
|
5060
|
+
body?: never;
|
|
5061
|
+
path?: never;
|
|
5062
|
+
query?: {
|
|
5063
|
+
page?: number;
|
|
5064
|
+
pageSize?: number;
|
|
5065
|
+
search?: string;
|
|
5066
|
+
role?: string;
|
|
5067
|
+
status?: 'active' | 'pending' | 'suspended' | 'deactivated';
|
|
5068
|
+
subscriptionStatus?: string;
|
|
5069
|
+
country?: string;
|
|
5070
|
+
};
|
|
5071
|
+
url: '/api/admin/users';
|
|
5072
|
+
};
|
|
5073
|
+
export type GetApiAdminUsersResponses = {
|
|
5074
|
+
200: AdminUserListResultDto;
|
|
5075
|
+
};
|
|
5076
|
+
export type GetApiAdminUsersResponse = GetApiAdminUsersResponses[keyof GetApiAdminUsersResponses];
|
|
5077
|
+
export type GetApiAdminUsersByIdData = {
|
|
5078
|
+
body?: never;
|
|
5079
|
+
path: {
|
|
5080
|
+
id: string;
|
|
5081
|
+
};
|
|
5082
|
+
query?: never;
|
|
5083
|
+
url: '/api/admin/users/{id}';
|
|
5084
|
+
};
|
|
5085
|
+
export type GetApiAdminUsersByIdErrors = {
|
|
5086
|
+
/**
|
|
5087
|
+
* User not found
|
|
5088
|
+
*/
|
|
5089
|
+
404: unknown;
|
|
5090
|
+
};
|
|
5091
|
+
export type GetApiAdminUsersByIdResponses = {
|
|
5092
|
+
200: AdminUserDetailDto;
|
|
5093
|
+
};
|
|
5094
|
+
export type GetApiAdminUsersByIdResponse = GetApiAdminUsersByIdResponses[keyof GetApiAdminUsersByIdResponses];
|
|
5095
|
+
export type GetApiAdminSubscriptionsData = {
|
|
5096
|
+
body?: never;
|
|
5097
|
+
path?: never;
|
|
5098
|
+
query?: {
|
|
5099
|
+
page?: number;
|
|
5100
|
+
pageSize?: number;
|
|
5101
|
+
search?: string;
|
|
5102
|
+
role?: string;
|
|
5103
|
+
plan?: string;
|
|
5104
|
+
status?: string;
|
|
5105
|
+
};
|
|
5106
|
+
url: '/api/admin/subscriptions';
|
|
5107
|
+
};
|
|
5108
|
+
export type GetApiAdminSubscriptionsResponses = {
|
|
5109
|
+
200: AdminSubscriptionListResultDto;
|
|
5110
|
+
};
|
|
5111
|
+
export type GetApiAdminSubscriptionsResponse = GetApiAdminSubscriptionsResponses[keyof GetApiAdminSubscriptionsResponses];
|
|
5112
|
+
export type GetApiAdminKycData = {
|
|
5113
|
+
body?: never;
|
|
5114
|
+
path?: never;
|
|
5115
|
+
query?: {
|
|
5116
|
+
page?: number;
|
|
5117
|
+
pageSize?: number;
|
|
5118
|
+
search?: string;
|
|
5119
|
+
status?: string;
|
|
5120
|
+
country?: string;
|
|
5121
|
+
};
|
|
5122
|
+
url: '/api/admin/kyc';
|
|
5123
|
+
};
|
|
5124
|
+
export type GetApiAdminKycResponses = {
|
|
5125
|
+
200: AdminKycListResultDto;
|
|
5126
|
+
};
|
|
5127
|
+
export type GetApiAdminKycResponse = GetApiAdminKycResponses[keyof GetApiAdminKycResponses];
|
|
5128
|
+
export type GetApiAdminAccessCodesPlansData = {
|
|
5129
|
+
body?: never;
|
|
5130
|
+
path?: never;
|
|
5131
|
+
query?: never;
|
|
5132
|
+
url: '/api/admin/access-codes/plans';
|
|
5133
|
+
};
|
|
5134
|
+
export type GetApiAdminAccessCodesPlansResponses = {
|
|
5135
|
+
200: Array<AdminAccessCodePlanDto>;
|
|
5136
|
+
};
|
|
5137
|
+
export type GetApiAdminAccessCodesPlansResponse = GetApiAdminAccessCodesPlansResponses[keyof GetApiAdminAccessCodesPlansResponses];
|
|
5138
|
+
export type GetApiAdminAccessCodesData = {
|
|
5139
|
+
body?: never;
|
|
5140
|
+
path?: never;
|
|
5141
|
+
query?: {
|
|
5142
|
+
page?: number;
|
|
5143
|
+
pageSize?: number;
|
|
5144
|
+
status?: 'scheduled' | 'active' | 'inactive' | 'expired' | 'exhausted';
|
|
5145
|
+
};
|
|
5146
|
+
url: '/api/admin/access-codes';
|
|
5147
|
+
};
|
|
5148
|
+
export type GetApiAdminAccessCodesResponses = {
|
|
5149
|
+
200: AdminAccessCodeListResultDto;
|
|
5150
|
+
};
|
|
5151
|
+
export type GetApiAdminAccessCodesResponse = GetApiAdminAccessCodesResponses[keyof GetApiAdminAccessCodesResponses];
|
|
5152
|
+
export type PostApiAdminAccessCodesData = {
|
|
5153
|
+
body: AdminCreateAccessCodeDto;
|
|
5154
|
+
path?: never;
|
|
5155
|
+
query?: never;
|
|
5156
|
+
url: '/api/admin/access-codes';
|
|
5157
|
+
};
|
|
5158
|
+
export type PostApiAdminAccessCodesResponses = {
|
|
5159
|
+
201: AdminCreateAccessCodeResponseDto;
|
|
5160
|
+
};
|
|
5161
|
+
export type PostApiAdminAccessCodesResponse = PostApiAdminAccessCodesResponses[keyof PostApiAdminAccessCodesResponses];
|
|
5162
|
+
export type PatchApiAdminAccessCodesByIdData = {
|
|
5163
|
+
body: AdminSetAccessCodeStateDto;
|
|
5164
|
+
path: {
|
|
5165
|
+
id: string;
|
|
5166
|
+
};
|
|
5167
|
+
query?: never;
|
|
5168
|
+
url: '/api/admin/access-codes/{id}';
|
|
5169
|
+
};
|
|
5170
|
+
export type PatchApiAdminAccessCodesByIdResponses = {
|
|
5171
|
+
200: AdminAccessCodeDto;
|
|
5172
|
+
};
|
|
5173
|
+
export type PatchApiAdminAccessCodesByIdResponse = PatchApiAdminAccessCodesByIdResponses[keyof PatchApiAdminAccessCodesByIdResponses];
|
|
5174
|
+
export type GetApiAdminAccessCodesByIdRedemptionsData = {
|
|
5175
|
+
body?: never;
|
|
5176
|
+
path: {
|
|
5177
|
+
id: string;
|
|
5178
|
+
};
|
|
5179
|
+
query: {
|
|
5180
|
+
page: number;
|
|
5181
|
+
pageSize: number;
|
|
5182
|
+
};
|
|
5183
|
+
url: '/api/admin/access-codes/{id}/redemptions';
|
|
5184
|
+
};
|
|
5185
|
+
export type GetApiAdminAccessCodesByIdRedemptionsResponses = {
|
|
5186
|
+
200: AdminAccessCodeRedemptionListResultDto;
|
|
5187
|
+
};
|
|
5188
|
+
export type GetApiAdminAccessCodesByIdRedemptionsResponse = GetApiAdminAccessCodesByIdRedemptionsResponses[keyof GetApiAdminAccessCodesByIdRedemptionsResponses];
|
|
5189
|
+
export type GetApiAdminUsersByIdAccessData = {
|
|
5190
|
+
body?: never;
|
|
5191
|
+
path: {
|
|
5192
|
+
id: string;
|
|
5193
|
+
};
|
|
5194
|
+
query?: never;
|
|
5195
|
+
url: '/api/admin/users/{id}/access';
|
|
5196
|
+
};
|
|
5197
|
+
export type GetApiAdminUsersByIdAccessResponses = {
|
|
5198
|
+
200: AdminUserAccessDto;
|
|
5199
|
+
};
|
|
5200
|
+
export type GetApiAdminUsersByIdAccessResponse = GetApiAdminUsersByIdAccessResponses[keyof GetApiAdminUsersByIdAccessResponses];
|
|
5201
|
+
export type PostApiAdminUsersByIdAccessGrantsData = {
|
|
5202
|
+
body: AdminGrantAccessDto;
|
|
5203
|
+
path: {
|
|
5204
|
+
id: string;
|
|
5205
|
+
};
|
|
5206
|
+
query?: never;
|
|
5207
|
+
url: '/api/admin/users/{id}/access-grants';
|
|
5208
|
+
};
|
|
5209
|
+
export type PostApiAdminUsersByIdAccessGrantsResponses = {
|
|
5210
|
+
201: AdminAccessGrantDto;
|
|
5211
|
+
};
|
|
5212
|
+
export type PostApiAdminUsersByIdAccessGrantsResponse = PostApiAdminUsersByIdAccessGrantsResponses[keyof PostApiAdminUsersByIdAccessGrantsResponses];
|
|
5213
|
+
export type PostApiAdminUsersByIdAccessGrantsByGrantIdRevokeData = {
|
|
5214
|
+
body: AdminRevokeAccessGrantDto;
|
|
5215
|
+
path: {
|
|
5216
|
+
id: string;
|
|
5217
|
+
grantId: string;
|
|
5218
|
+
};
|
|
5219
|
+
query?: never;
|
|
5220
|
+
url: '/api/admin/users/{id}/access-grants/{grantId}/revoke';
|
|
5221
|
+
};
|
|
5222
|
+
export type PostApiAdminUsersByIdAccessGrantsByGrantIdRevokeResponses = {
|
|
5223
|
+
201: unknown;
|
|
5224
|
+
};
|
|
5225
|
+
export type PostApiAdminUsersByIdSuspendData = {
|
|
5226
|
+
body: AdminUserActionRequestDto;
|
|
5227
|
+
path: {
|
|
5228
|
+
id: string;
|
|
5229
|
+
};
|
|
5230
|
+
query?: never;
|
|
5231
|
+
url: '/api/admin/users/{id}/suspend';
|
|
5232
|
+
};
|
|
5233
|
+
export type PostApiAdminUsersByIdSuspendResponses = {
|
|
5234
|
+
201: AdminAccountActionResponseDto;
|
|
5235
|
+
};
|
|
5236
|
+
export type PostApiAdminUsersByIdSuspendResponse = PostApiAdminUsersByIdSuspendResponses[keyof PostApiAdminUsersByIdSuspendResponses];
|
|
5237
|
+
export type PostApiAdminUsersByIdReactivateData = {
|
|
5238
|
+
body: AdminUserActionRequestDto;
|
|
5239
|
+
path: {
|
|
5240
|
+
id: string;
|
|
5241
|
+
};
|
|
5242
|
+
query?: never;
|
|
5243
|
+
url: '/api/admin/users/{id}/reactivate';
|
|
5244
|
+
};
|
|
5245
|
+
export type PostApiAdminUsersByIdReactivateResponses = {
|
|
5246
|
+
201: AdminAccountActionResponseDto;
|
|
5247
|
+
};
|
|
5248
|
+
export type PostApiAdminUsersByIdReactivateResponse = PostApiAdminUsersByIdReactivateResponses[keyof PostApiAdminUsersByIdReactivateResponses];
|
|
5249
|
+
export type PostApiAdminUsersByIdResetPasswordData = {
|
|
5250
|
+
body: AdminUserActionRequestDto;
|
|
5251
|
+
path: {
|
|
5252
|
+
id: string;
|
|
5253
|
+
};
|
|
5254
|
+
query?: never;
|
|
5255
|
+
url: '/api/admin/users/{id}/reset-password';
|
|
5256
|
+
};
|
|
5257
|
+
export type PostApiAdminUsersByIdResetPasswordResponses = {
|
|
5258
|
+
201: AdminPasswordResetResponseDto;
|
|
5259
|
+
};
|
|
5260
|
+
export type PostApiAdminUsersByIdResetPasswordResponse = PostApiAdminUsersByIdResetPasswordResponses[keyof PostApiAdminUsersByIdResetPasswordResponses];
|
|
5261
|
+
export type PostApiAdminUsersByIdDeactivateData = {
|
|
5262
|
+
body: AdminUserActionRequestDto;
|
|
5263
|
+
path: {
|
|
5264
|
+
id: string;
|
|
5265
|
+
};
|
|
5266
|
+
query?: never;
|
|
5267
|
+
url: '/api/admin/users/{id}/deactivate';
|
|
5268
|
+
};
|
|
5269
|
+
export type PostApiAdminUsersByIdDeactivateResponses = {
|
|
5270
|
+
201: AdminAccountActionResponseDto;
|
|
5271
|
+
};
|
|
5272
|
+
export type PostApiAdminUsersByIdDeactivateResponse = PostApiAdminUsersByIdDeactivateResponses[keyof PostApiAdminUsersByIdDeactivateResponses];
|