@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/types.gen.ts CHANGED
@@ -14,13 +14,21 @@ export type AuthMeResponseDto = {
14
14
  */
15
15
  userType?: string | null;
16
16
  /**
17
- * 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).
17
+ * 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).
18
18
  */
19
- orgRole?: 'admin' | 'user';
19
+ orgRole?: 'admin' | 'user' | null;
20
20
  /**
21
21
  * Preferred application and generated-content locale. Null until first selected.
22
22
  */
23
23
  preferredLocale?: 'en' | 'es' | 'fr' | 'de' | 'ro';
24
+ /**
25
+ * Whether this account can access the Super Admin portal.
26
+ */
27
+ isSuperAdmin: boolean;
28
+ /**
29
+ * Current account lifecycle status.
30
+ */
31
+ accountStatus: 'active' | 'pending' | 'suspended' | 'deactivated';
24
32
  };
25
33
 
26
34
  export type UpdateLocalePreferenceDto = {
@@ -242,7 +250,7 @@ export type UpdatePlayerDto = {
242
250
  /**
243
251
  * User type code
244
252
  */
245
- userType?: string;
253
+ userType?: 'player' | 'coach' | 'club_admin' | 'scouter';
246
254
  /**
247
255
  * Avatar URL
248
256
  */
@@ -317,6 +325,14 @@ export type PlayerSearchRequestDto = {
317
325
  * Height value in cm — must be paired with heightOperator
318
326
  */
319
327
  heightCm?: number;
328
+ /**
329
+ * Gender codes from index.genders (multi-select)
330
+ */
331
+ genders?: Array<string>;
332
+ /**
333
+ * Also include players with no gender set. Combined with genders as OR; on its own, returns only players without a gender
334
+ */
335
+ includeUnspecifiedGender?: boolean;
320
336
  /**
321
337
  * Only free agents
322
338
  */
@@ -1049,6 +1065,38 @@ export type RedeemAccessCodeDto = {
1049
1065
  code: string;
1050
1066
  };
1051
1067
 
1068
+ export type RedeemAccessCodeResponseDto = {
1069
+ hasAccess: boolean;
1070
+ status: string;
1071
+ provider?: string | null;
1072
+ plan?: BillingPlanDto | null;
1073
+ currentPeriodEnd?: string | null;
1074
+ gracePeriodUntil?: string | null;
1075
+ blockingReason?: string | null;
1076
+ manageAction: BillingManageActionDto;
1077
+ redemptionOutcome?: 'redeemed' | 'already_redeemed';
1078
+ };
1079
+
1080
+ export type AccessCodeBadRequestResponseDto = {
1081
+ statusCode: number;
1082
+ error: string;
1083
+ code?:
1084
+ | 'ACCESS_CODE_REQUIRED'
1085
+ | 'ACCESS_CODE_INVALID'
1086
+ | 'ACCESS_CODE_INACTIVE'
1087
+ | 'ACCESS_CODE_NOT_ACTIVE_YET'
1088
+ | 'ACCESS_CODE_EXPIRED'
1089
+ | 'ACCESS_CODE_REDEMPTION_LIMIT_REACHED'
1090
+ | 'ACCESS_CODE_MISCONFIGURED';
1091
+ message: string;
1092
+ };
1093
+
1094
+ export type AccessCodeConflictResponseDto = {
1095
+ statusCode: number;
1096
+ code: 'ACCESS_CODE_ALREADY_REDEEMED' | 'ACTIVE_BILLING_ACCESS_EXISTS';
1097
+ message: string;
1098
+ };
1099
+
1052
1100
  export type ReportPurchaseDto = {
1053
1101
  id: string;
1054
1102
  paymentStatus: string;
@@ -2827,6 +2875,274 @@ export type UpdateGlobalChatNotificationsDto = {
2827
2875
  notificationsEnabled: boolean;
2828
2876
  };
2829
2877
 
2878
+ export type AdminMetricDto = {
2879
+ current: number;
2880
+ periodCount: number;
2881
+ byRole?: {
2882
+ [key: string]: number;
2883
+ };
2884
+ };
2885
+
2886
+ export type AdminDashboardMetricsDto = {
2887
+ registeredUsers: AdminMetricDto;
2888
+ activeSubscriptions: AdminMetricDto;
2889
+ pendingKyc: AdminMetricDto;
2890
+ verifiedKyc: AdminMetricDto;
2891
+ videosUploaded: AdminMetricDto;
2892
+ aiReports: AdminMetricDto;
2893
+ bodyMeasurements: AdminMetricDto;
2894
+ speedSprintTests: AdminMetricDto;
2895
+ };
2896
+
2897
+ export type AdminActivityBucketDto = {
2898
+ bucketStart: string;
2899
+ registrations: number;
2900
+ videos: number;
2901
+ aiReports: number;
2902
+ bodyMeasurements: number;
2903
+ speedSprintTests: number;
2904
+ };
2905
+
2906
+ export type AdminSubscriptionHealthDto = {
2907
+ role: string;
2908
+ active: number;
2909
+ cancelled: number;
2910
+ expired: number;
2911
+ };
2912
+
2913
+ export type AdminDashboardResponseDto = {
2914
+ range: '7d' | '30d' | '3mo';
2915
+ generatedAt: string;
2916
+ metrics: AdminDashboardMetricsDto;
2917
+ activity: Array<AdminActivityBucketDto>;
2918
+ subscriptionHealth: Array<AdminSubscriptionHealthDto>;
2919
+ };
2920
+
2921
+ export type AdminUserListItemDto = {
2922
+ id: string;
2923
+ name: string;
2924
+ email: string;
2925
+ role: string | null;
2926
+ countryCode: string | null;
2927
+ country: string | null;
2928
+ accountStatus: 'active' | 'pending' | 'suspended' | 'deactivated';
2929
+ kycStatus: string;
2930
+ subscriptionStatus: string;
2931
+ registrationDate: string | null;
2932
+ isSuperAdmin: boolean;
2933
+ };
2934
+
2935
+ export type AdminUserListResultDto = {
2936
+ items: Array<AdminUserListItemDto>;
2937
+ /**
2938
+ * Total matching records
2939
+ */
2940
+ total: number;
2941
+ page: number;
2942
+ pageSize: number;
2943
+ };
2944
+
2945
+ export type AdminUserDetailDto = {
2946
+ id: string;
2947
+ name: string;
2948
+ email: string;
2949
+ role: string | null;
2950
+ countryCode: string | null;
2951
+ country: string | null;
2952
+ accountStatus: 'active' | 'pending' | 'suspended' | 'deactivated';
2953
+ kycStatus: string;
2954
+ subscriptionStatus: string;
2955
+ registrationDate: string | null;
2956
+ isSuperAdmin: boolean;
2957
+ };
2958
+
2959
+ export type AdminSubscriptionListItemDto = {
2960
+ id: string;
2961
+ userId: string;
2962
+ userName: string;
2963
+ email: string;
2964
+ role: string | null;
2965
+ plan: string;
2966
+ planInterval: string | null;
2967
+ platform: string;
2968
+ price: number;
2969
+ currency: string;
2970
+ status: string;
2971
+ cancelsAtPeriodEnd: boolean;
2972
+ startDate: string | null;
2973
+ nextBillingDate: string | null;
2974
+ externalUrl: string | null;
2975
+ };
2976
+
2977
+ export type AdminSubscriptionListResultDto = {
2978
+ items: Array<AdminSubscriptionListItemDto>;
2979
+ /**
2980
+ * Total matching records
2981
+ */
2982
+ total: number;
2983
+ page: number;
2984
+ pageSize: number;
2985
+ };
2986
+
2987
+ export type AdminKycListItemDto = {
2988
+ id: string;
2989
+ userId: string;
2990
+ userName: string;
2991
+ email: string;
2992
+ role: string | null;
2993
+ country: string | null;
2994
+ status: string;
2995
+ provider: string;
2996
+ submittedAt: string | null;
2997
+ updatedAt: string | null;
2998
+ };
2999
+
3000
+ export type AdminKycListResultDto = {
3001
+ items: Array<AdminKycListItemDto>;
3002
+ /**
3003
+ * Total matching records
3004
+ */
3005
+ total: number;
3006
+ page: number;
3007
+ pageSize: number;
3008
+ };
3009
+
3010
+ export type AdminAccessCodePlanDto = {
3011
+ id: string;
3012
+ name: string;
3013
+ role: string | null;
3014
+ };
3015
+
3016
+ export type AdminAccessCodeDto = {
3017
+ id: string;
3018
+ code: string | null;
3019
+ description: string | null;
3020
+ codeSuffix: string | null;
3021
+ planId: string;
3022
+ planName: string;
3023
+ role: string | null;
3024
+ durationDays: number;
3025
+ startsAt: string | null;
3026
+ expiresAt: string | null;
3027
+ maxRedemptions: number | null;
3028
+ redemptionCount: number;
3029
+ isActive: boolean;
3030
+ status: 'scheduled' | 'active' | 'inactive' | 'expired' | 'exhausted';
3031
+ createdAt: string;
3032
+ };
3033
+
3034
+ export type AdminAccessCodeListResultDto = {
3035
+ items: Array<AdminAccessCodeDto>;
3036
+ /**
3037
+ * Total matching records
3038
+ */
3039
+ total: number;
3040
+ page: number;
3041
+ pageSize: number;
3042
+ };
3043
+
3044
+ export type AdminCreateAccessCodeDto = {
3045
+ planId: string;
3046
+ description?: string;
3047
+ durationDays: number;
3048
+ startsAt?: string | null;
3049
+ expiresAt?: string | null;
3050
+ maxRedemptions?: number | null;
3051
+ };
3052
+
3053
+ export type AdminCreateAccessCodeResponseDto = {
3054
+ id: string;
3055
+ /**
3056
+ * Generated access code visible to Super Admins.
3057
+ */
3058
+ code: string | null;
3059
+ description: string | null;
3060
+ codeSuffix: string | null;
3061
+ planId: string;
3062
+ planName: string;
3063
+ role: string | null;
3064
+ durationDays: number;
3065
+ startsAt: string | null;
3066
+ expiresAt: string | null;
3067
+ maxRedemptions: number | null;
3068
+ redemptionCount: number;
3069
+ isActive: boolean;
3070
+ status: 'scheduled' | 'active' | 'inactive' | 'expired' | 'exhausted';
3071
+ createdAt: string;
3072
+ };
3073
+
3074
+ export type AdminSetAccessCodeStateDto = {
3075
+ isActive: boolean;
3076
+ reason?: string;
3077
+ };
3078
+
3079
+ export type AdminAccessCodeRedemptionDto = {
3080
+ id: string;
3081
+ userId: string;
3082
+ userName: string;
3083
+ email: string;
3084
+ redeemedAt: string;
3085
+ startsAt: string;
3086
+ endsAt: string;
3087
+ };
3088
+
3089
+ export type AdminAccessCodeRedemptionListResultDto = {
3090
+ items: Array<AdminAccessCodeRedemptionDto>;
3091
+ /**
3092
+ * Total matching records
3093
+ */
3094
+ total: number;
3095
+ page: number;
3096
+ pageSize: number;
3097
+ };
3098
+
3099
+ export type AdminUserAccessDto = {
3100
+ hasAccess: boolean;
3101
+ status: string;
3102
+ provider: string | null;
3103
+ planId: string | null;
3104
+ planName: string | null;
3105
+ startsAt: string | null;
3106
+ endsAt: string | null;
3107
+ adminGrantId: string | null;
3108
+ };
3109
+
3110
+ export type AdminGrantAccessDto = {
3111
+ planId: string;
3112
+ durationDays: number;
3113
+ reason?: string;
3114
+ };
3115
+
3116
+ export type AdminAccessGrantDto = {
3117
+ id: string;
3118
+ userId: string;
3119
+ planId: string;
3120
+ planName: string;
3121
+ startsAt: string;
3122
+ endsAt: string;
3123
+ status: 'active' | 'revoked';
3124
+ };
3125
+
3126
+ export type AdminRevokeAccessGrantDto = {
3127
+ reason?: string;
3128
+ };
3129
+
3130
+ export type AdminUserActionRequestDto = {
3131
+ /**
3132
+ * Optional reason stored in the audit trail
3133
+ */
3134
+ reason?: string;
3135
+ };
3136
+
3137
+ export type AdminAccountActionResponseDto = {
3138
+ accountStatus: 'active' | 'pending' | 'suspended' | 'deactivated';
3139
+ authSyncStatus: 'succeeded' | 'failed';
3140
+ };
3141
+
3142
+ export type AdminPasswordResetResponseDto = {
3143
+ deliveryStatus: 'succeeded' | 'failed';
3144
+ };
3145
+
2830
3146
  export type GetApiAuthMeData = {
2831
3147
  body?: never;
2832
3148
  path?: never;
@@ -2921,10 +3237,18 @@ export type PatchApiPlayersMeData = {
2921
3237
  };
2922
3238
 
2923
3239
  export type PatchApiPlayersMeErrors = {
3240
+ /**
3241
+ * Invalid persona assignment or active organization conflict
3242
+ */
3243
+ 400: unknown;
2924
3244
  /**
2925
3245
  * Unauthorized
2926
3246
  */
2927
3247
  401: unknown;
3248
+ /**
3249
+ * Active billing entitlement is required to continue onboarding
3250
+ */
3251
+ 403: unknown;
2928
3252
  };
2929
3253
 
2930
3254
  export type PatchApiPlayersMeResponses = {
@@ -3259,11 +3583,25 @@ export type PostApiBillingAccessCodesRedeemData = {
3259
3583
  url: '/api/billing/access-codes/redeem';
3260
3584
  };
3261
3585
 
3586
+ export type PostApiBillingAccessCodesRedeemErrors = {
3587
+ /**
3588
+ * The code is invalid, inactive, not yet active, expired, or unavailable
3589
+ */
3590
+ 400: AccessCodeBadRequestResponseDto;
3591
+ /**
3592
+ * The code was already redeemed or another entitlement is still active
3593
+ */
3594
+ 409: AccessCodeConflictResponseDto;
3595
+ };
3596
+
3597
+ export type PostApiBillingAccessCodesRedeemError =
3598
+ PostApiBillingAccessCodesRedeemErrors[keyof PostApiBillingAccessCodesRedeemErrors];
3599
+
3262
3600
  export type PostApiBillingAccessCodesRedeemResponses = {
3263
3601
  /**
3264
3602
  * Redeemed access entitlement
3265
3603
  */
3266
- 201: BillingEntitlementResponseDto;
3604
+ 201: RedeemAccessCodeResponseDto;
3267
3605
  };
3268
3606
 
3269
3607
  export type PostApiBillingAccessCodesRedeemResponse =
@@ -4295,6 +4633,17 @@ export type GetApiInvitationsData = {
4295
4633
  url: '/api/invitations';
4296
4634
  };
4297
4635
 
4636
+ export type GetApiInvitationsErrors = {
4637
+ /**
4638
+ * Unauthorized
4639
+ */
4640
+ 401: unknown;
4641
+ /**
4642
+ * Active organization admin membership required
4643
+ */
4644
+ 403: unknown;
4645
+ };
4646
+
4298
4647
  export type GetApiInvitationsResponses = {
4299
4648
  200: Array<InvitationResponseDto>;
4300
4649
  };
@@ -4311,9 +4660,25 @@ export type PostApiInvitationsData = {
4311
4660
 
4312
4661
  export type PostApiInvitationsErrors = {
4313
4662
  /**
4314
- * Limit reached or duplicate email
4663
+ * Limit reached, active invitation, membership or registered account exists, or invitee is a player
4315
4664
  */
4316
4665
  400: unknown;
4666
+ /**
4667
+ * Unauthorized
4668
+ */
4669
+ 401: unknown;
4670
+ /**
4671
+ * Active organization admin membership required
4672
+ */
4673
+ 403: unknown;
4674
+ /**
4675
+ * Invitation email rate limit exceeded
4676
+ */
4677
+ 429: unknown;
4678
+ /**
4679
+ * Supabase Auth invitation delivery failed
4680
+ */
4681
+ 502: unknown;
4317
4682
  };
4318
4683
 
4319
4684
  export type PostApiInvitationsResponses = {
@@ -4334,13 +4699,29 @@ export type PostApiInvitationsByIdResendData = {
4334
4699
 
4335
4700
  export type PostApiInvitationsByIdResendErrors = {
4336
4701
  /**
4337
- * Cannot resend a confirmed invitation
4702
+ * Invitation is confirmed, another active invitation, membership or registered account exists, or invitee is a player
4338
4703
  */
4339
4704
  400: unknown;
4705
+ /**
4706
+ * Unauthorized
4707
+ */
4708
+ 401: unknown;
4709
+ /**
4710
+ * Active organization admin membership required
4711
+ */
4712
+ 403: unknown;
4340
4713
  /**
4341
4714
  * Invitation not found
4342
4715
  */
4343
4716
  404: unknown;
4717
+ /**
4718
+ * Invitation email rate limit exceeded
4719
+ */
4720
+ 429: unknown;
4721
+ /**
4722
+ * Supabase Auth invitation delivery failed
4723
+ */
4724
+ 502: unknown;
4344
4725
  };
4345
4726
 
4346
4727
  export type PostApiInvitationsByIdResendResponses = {
@@ -4364,6 +4745,14 @@ export type DeleteApiInvitationsByIdErrors = {
4364
4745
  * Cannot delete a confirmed invitation
4365
4746
  */
4366
4747
  400: unknown;
4748
+ /**
4749
+ * Unauthorized
4750
+ */
4751
+ 401: unknown;
4752
+ /**
4753
+ * Active organization admin membership required
4754
+ */
4755
+ 403: unknown;
4367
4756
  /**
4368
4757
  * Invitation not found
4369
4758
  */
@@ -4387,9 +4776,28 @@ export type PostApiInvitationsAcceptData = {
4387
4776
  url: '/api/invitations/accept';
4388
4777
  };
4389
4778
 
4779
+ export type PostApiInvitationsAcceptErrors = {
4780
+ /**
4781
+ * Invitation cannot be accepted for this account or has expired
4782
+ */
4783
+ 400: unknown;
4784
+ /**
4785
+ * Unauthorized
4786
+ */
4787
+ 401: unknown;
4788
+ /**
4789
+ * Invitation or account not found
4790
+ */
4791
+ 404: unknown;
4792
+ /**
4793
+ * Invitation accepted; metadata cleanup can be retried
4794
+ */
4795
+ 502: unknown;
4796
+ };
4797
+
4390
4798
  export type PostApiInvitationsAcceptResponses = {
4391
4799
  /**
4392
- * Accepted (or no pending invitation — idempotent)
4800
+ * Accepted or already linked to the selected invitation
4393
4801
  */
4394
4802
  204: void;
4395
4803
  };
@@ -5365,3 +5773,305 @@ export type PatchApiGlobalChatNotificationsResponses = {
5365
5773
 
5366
5774
  export type PatchApiGlobalChatNotificationsResponse =
5367
5775
  PatchApiGlobalChatNotificationsResponses[keyof PatchApiGlobalChatNotificationsResponses];
5776
+
5777
+ export type GetApiAdminDashboardData = {
5778
+ body?: never;
5779
+ path?: never;
5780
+ query?: {
5781
+ range?: '7d' | '30d' | '3mo';
5782
+ };
5783
+ url: '/api/admin/dashboard';
5784
+ };
5785
+
5786
+ export type GetApiAdminDashboardErrors = {
5787
+ /**
5788
+ * Unauthorized
5789
+ */
5790
+ 401: unknown;
5791
+ /**
5792
+ * Super Admin access required
5793
+ */
5794
+ 403: unknown;
5795
+ };
5796
+
5797
+ export type GetApiAdminDashboardResponses = {
5798
+ 200: AdminDashboardResponseDto;
5799
+ };
5800
+
5801
+ export type GetApiAdminDashboardResponse =
5802
+ GetApiAdminDashboardResponses[keyof GetApiAdminDashboardResponses];
5803
+
5804
+ export type GetApiAdminUsersData = {
5805
+ body?: never;
5806
+ path?: never;
5807
+ query?: {
5808
+ page?: number;
5809
+ pageSize?: number;
5810
+ search?: string;
5811
+ role?: string;
5812
+ status?: 'active' | 'pending' | 'suspended' | 'deactivated';
5813
+ subscriptionStatus?: string;
5814
+ country?: string;
5815
+ };
5816
+ url: '/api/admin/users';
5817
+ };
5818
+
5819
+ export type GetApiAdminUsersResponses = {
5820
+ 200: AdminUserListResultDto;
5821
+ };
5822
+
5823
+ export type GetApiAdminUsersResponse = GetApiAdminUsersResponses[keyof GetApiAdminUsersResponses];
5824
+
5825
+ export type GetApiAdminUsersByIdData = {
5826
+ body?: never;
5827
+ path: {
5828
+ id: string;
5829
+ };
5830
+ query?: never;
5831
+ url: '/api/admin/users/{id}';
5832
+ };
5833
+
5834
+ export type GetApiAdminUsersByIdErrors = {
5835
+ /**
5836
+ * User not found
5837
+ */
5838
+ 404: unknown;
5839
+ };
5840
+
5841
+ export type GetApiAdminUsersByIdResponses = {
5842
+ 200: AdminUserDetailDto;
5843
+ };
5844
+
5845
+ export type GetApiAdminUsersByIdResponse =
5846
+ GetApiAdminUsersByIdResponses[keyof GetApiAdminUsersByIdResponses];
5847
+
5848
+ export type GetApiAdminSubscriptionsData = {
5849
+ body?: never;
5850
+ path?: never;
5851
+ query?: {
5852
+ page?: number;
5853
+ pageSize?: number;
5854
+ search?: string;
5855
+ role?: string;
5856
+ plan?: string;
5857
+ status?: string;
5858
+ };
5859
+ url: '/api/admin/subscriptions';
5860
+ };
5861
+
5862
+ export type GetApiAdminSubscriptionsResponses = {
5863
+ 200: AdminSubscriptionListResultDto;
5864
+ };
5865
+
5866
+ export type GetApiAdminSubscriptionsResponse =
5867
+ GetApiAdminSubscriptionsResponses[keyof GetApiAdminSubscriptionsResponses];
5868
+
5869
+ export type GetApiAdminKycData = {
5870
+ body?: never;
5871
+ path?: never;
5872
+ query?: {
5873
+ page?: number;
5874
+ pageSize?: number;
5875
+ search?: string;
5876
+ status?: string;
5877
+ country?: string;
5878
+ };
5879
+ url: '/api/admin/kyc';
5880
+ };
5881
+
5882
+ export type GetApiAdminKycResponses = {
5883
+ 200: AdminKycListResultDto;
5884
+ };
5885
+
5886
+ export type GetApiAdminKycResponse = GetApiAdminKycResponses[keyof GetApiAdminKycResponses];
5887
+
5888
+ export type GetApiAdminAccessCodesPlansData = {
5889
+ body?: never;
5890
+ path?: never;
5891
+ query?: never;
5892
+ url: '/api/admin/access-codes/plans';
5893
+ };
5894
+
5895
+ export type GetApiAdminAccessCodesPlansResponses = {
5896
+ 200: Array<AdminAccessCodePlanDto>;
5897
+ };
5898
+
5899
+ export type GetApiAdminAccessCodesPlansResponse =
5900
+ GetApiAdminAccessCodesPlansResponses[keyof GetApiAdminAccessCodesPlansResponses];
5901
+
5902
+ export type GetApiAdminAccessCodesData = {
5903
+ body?: never;
5904
+ path?: never;
5905
+ query?: {
5906
+ page?: number;
5907
+ pageSize?: number;
5908
+ status?: 'scheduled' | 'active' | 'inactive' | 'expired' | 'exhausted';
5909
+ };
5910
+ url: '/api/admin/access-codes';
5911
+ };
5912
+
5913
+ export type GetApiAdminAccessCodesResponses = {
5914
+ 200: AdminAccessCodeListResultDto;
5915
+ };
5916
+
5917
+ export type GetApiAdminAccessCodesResponse =
5918
+ GetApiAdminAccessCodesResponses[keyof GetApiAdminAccessCodesResponses];
5919
+
5920
+ export type PostApiAdminAccessCodesData = {
5921
+ body: AdminCreateAccessCodeDto;
5922
+ path?: never;
5923
+ query?: never;
5924
+ url: '/api/admin/access-codes';
5925
+ };
5926
+
5927
+ export type PostApiAdminAccessCodesResponses = {
5928
+ 201: AdminCreateAccessCodeResponseDto;
5929
+ };
5930
+
5931
+ export type PostApiAdminAccessCodesResponse =
5932
+ PostApiAdminAccessCodesResponses[keyof PostApiAdminAccessCodesResponses];
5933
+
5934
+ export type PatchApiAdminAccessCodesByIdData = {
5935
+ body: AdminSetAccessCodeStateDto;
5936
+ path: {
5937
+ id: string;
5938
+ };
5939
+ query?: never;
5940
+ url: '/api/admin/access-codes/{id}';
5941
+ };
5942
+
5943
+ export type PatchApiAdminAccessCodesByIdResponses = {
5944
+ 200: AdminAccessCodeDto;
5945
+ };
5946
+
5947
+ export type PatchApiAdminAccessCodesByIdResponse =
5948
+ PatchApiAdminAccessCodesByIdResponses[keyof PatchApiAdminAccessCodesByIdResponses];
5949
+
5950
+ export type GetApiAdminAccessCodesByIdRedemptionsData = {
5951
+ body?: never;
5952
+ path: {
5953
+ id: string;
5954
+ };
5955
+ query: {
5956
+ page: number;
5957
+ pageSize: number;
5958
+ };
5959
+ url: '/api/admin/access-codes/{id}/redemptions';
5960
+ };
5961
+
5962
+ export type GetApiAdminAccessCodesByIdRedemptionsResponses = {
5963
+ 200: AdminAccessCodeRedemptionListResultDto;
5964
+ };
5965
+
5966
+ export type GetApiAdminAccessCodesByIdRedemptionsResponse =
5967
+ GetApiAdminAccessCodesByIdRedemptionsResponses[keyof GetApiAdminAccessCodesByIdRedemptionsResponses];
5968
+
5969
+ export type GetApiAdminUsersByIdAccessData = {
5970
+ body?: never;
5971
+ path: {
5972
+ id: string;
5973
+ };
5974
+ query?: never;
5975
+ url: '/api/admin/users/{id}/access';
5976
+ };
5977
+
5978
+ export type GetApiAdminUsersByIdAccessResponses = {
5979
+ 200: AdminUserAccessDto;
5980
+ };
5981
+
5982
+ export type GetApiAdminUsersByIdAccessResponse =
5983
+ GetApiAdminUsersByIdAccessResponses[keyof GetApiAdminUsersByIdAccessResponses];
5984
+
5985
+ export type PostApiAdminUsersByIdAccessGrantsData = {
5986
+ body: AdminGrantAccessDto;
5987
+ path: {
5988
+ id: string;
5989
+ };
5990
+ query?: never;
5991
+ url: '/api/admin/users/{id}/access-grants';
5992
+ };
5993
+
5994
+ export type PostApiAdminUsersByIdAccessGrantsResponses = {
5995
+ 201: AdminAccessGrantDto;
5996
+ };
5997
+
5998
+ export type PostApiAdminUsersByIdAccessGrantsResponse =
5999
+ PostApiAdminUsersByIdAccessGrantsResponses[keyof PostApiAdminUsersByIdAccessGrantsResponses];
6000
+
6001
+ export type PostApiAdminUsersByIdAccessGrantsByGrantIdRevokeData = {
6002
+ body: AdminRevokeAccessGrantDto;
6003
+ path: {
6004
+ id: string;
6005
+ grantId: string;
6006
+ };
6007
+ query?: never;
6008
+ url: '/api/admin/users/{id}/access-grants/{grantId}/revoke';
6009
+ };
6010
+
6011
+ export type PostApiAdminUsersByIdAccessGrantsByGrantIdRevokeResponses = {
6012
+ 201: unknown;
6013
+ };
6014
+
6015
+ export type PostApiAdminUsersByIdSuspendData = {
6016
+ body: AdminUserActionRequestDto;
6017
+ path: {
6018
+ id: string;
6019
+ };
6020
+ query?: never;
6021
+ url: '/api/admin/users/{id}/suspend';
6022
+ };
6023
+
6024
+ export type PostApiAdminUsersByIdSuspendResponses = {
6025
+ 201: AdminAccountActionResponseDto;
6026
+ };
6027
+
6028
+ export type PostApiAdminUsersByIdSuspendResponse =
6029
+ PostApiAdminUsersByIdSuspendResponses[keyof PostApiAdminUsersByIdSuspendResponses];
6030
+
6031
+ export type PostApiAdminUsersByIdReactivateData = {
6032
+ body: AdminUserActionRequestDto;
6033
+ path: {
6034
+ id: string;
6035
+ };
6036
+ query?: never;
6037
+ url: '/api/admin/users/{id}/reactivate';
6038
+ };
6039
+
6040
+ export type PostApiAdminUsersByIdReactivateResponses = {
6041
+ 201: AdminAccountActionResponseDto;
6042
+ };
6043
+
6044
+ export type PostApiAdminUsersByIdReactivateResponse =
6045
+ PostApiAdminUsersByIdReactivateResponses[keyof PostApiAdminUsersByIdReactivateResponses];
6046
+
6047
+ export type PostApiAdminUsersByIdResetPasswordData = {
6048
+ body: AdminUserActionRequestDto;
6049
+ path: {
6050
+ id: string;
6051
+ };
6052
+ query?: never;
6053
+ url: '/api/admin/users/{id}/reset-password';
6054
+ };
6055
+
6056
+ export type PostApiAdminUsersByIdResetPasswordResponses = {
6057
+ 201: AdminPasswordResetResponseDto;
6058
+ };
6059
+
6060
+ export type PostApiAdminUsersByIdResetPasswordResponse =
6061
+ PostApiAdminUsersByIdResetPasswordResponses[keyof PostApiAdminUsersByIdResetPasswordResponses];
6062
+
6063
+ export type PostApiAdminUsersByIdDeactivateData = {
6064
+ body: AdminUserActionRequestDto;
6065
+ path: {
6066
+ id: string;
6067
+ };
6068
+ query?: never;
6069
+ url: '/api/admin/users/{id}/deactivate';
6070
+ };
6071
+
6072
+ export type PostApiAdminUsersByIdDeactivateResponses = {
6073
+ 201: AdminAccountActionResponseDto;
6074
+ };
6075
+
6076
+ export type PostApiAdminUsersByIdDeactivateResponse =
6077
+ PostApiAdminUsersByIdDeactivateResponses[keyof PostApiAdminUsersByIdDeactivateResponses];