@cedros/login-react 0.0.41 → 0.0.42
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/{AuthenticationSettings-D4ExU-2a.js → AuthenticationSettings-CheE3j7w.js} +1 -1
- package/dist/{AuthenticationSettings-D4ExU-2a.js.map → AuthenticationSettings-CheE3j7w.js.map} +1 -1
- package/dist/{AuthenticationSettings-Cu5Z2mTC.cjs → AuthenticationSettings-Dl41GbJL.cjs} +1 -1
- package/dist/{AuthenticationSettings-Cu5Z2mTC.cjs.map → AuthenticationSettings-Dl41GbJL.cjs.map} +1 -1
- package/dist/{AuthenticationSettings-CSoFp-_2.js → AuthenticationSettings-DwSxgjbH.js} +1 -1
- package/dist/{AuthenticationSettings-CSoFp-_2.js.map → AuthenticationSettings-DwSxgjbH.js.map} +1 -1
- package/dist/{AuthenticationSettings-DABzZHuI.cjs → AuthenticationSettings-JxHsBst9.cjs} +1 -1
- package/dist/{AuthenticationSettings-DABzZHuI.cjs.map → AuthenticationSettings-JxHsBst9.cjs.map} +1 -1
- package/dist/AutosaveStatus-BMXjH1XN.cjs +1 -0
- package/dist/AutosaveStatus-BMXjH1XN.cjs.map +1 -0
- package/dist/{AutosaveStatus-DMjvXzP2.js → AutosaveStatus-DNuCl59W.js} +578 -284
- package/dist/AutosaveStatus-DNuCl59W.js.map +1 -0
- package/dist/{CreditSystemSettings-DfSfQVE8.cjs → CreditSystemSettings-BVgl6uUg.cjs} +1 -1
- package/dist/{CreditSystemSettings-DfSfQVE8.cjs.map → CreditSystemSettings-BVgl6uUg.cjs.map} +1 -1
- package/dist/{CreditSystemSettings-Du3ac0ID.js → CreditSystemSettings-C-ksysSx.js} +1 -1
- package/dist/{CreditSystemSettings-Du3ac0ID.js.map → CreditSystemSettings-C-ksysSx.js.map} +1 -1
- package/dist/{CreditSystemSettings-BjQdysRS.js → CreditSystemSettings-HSdF2_CY.js} +1 -1
- package/dist/{CreditSystemSettings-BjQdysRS.js.map → CreditSystemSettings-HSdF2_CY.js.map} +1 -1
- package/dist/{CreditSystemSettings-BWuiRTtA.cjs → CreditSystemSettings-LvA8rb17.cjs} +1 -1
- package/dist/{CreditSystemSettings-BWuiRTtA.cjs.map → CreditSystemSettings-LvA8rb17.cjs.map} +1 -1
- package/dist/{EmailRegisterForm-CMXsa-_r.js → EmailRegisterForm-p2X5QP58.js} +147 -147
- package/dist/EmailRegisterForm-p2X5QP58.js.map +1 -0
- package/dist/EmailRegisterForm-xFb6MaVA.cjs +1 -0
- package/dist/EmailRegisterForm-xFb6MaVA.cjs.map +1 -0
- package/dist/{EmailSettings-CjngJwDS.js → EmailSettings-Cy1cuVUq.js} +1 -1
- package/dist/{EmailSettings-CjngJwDS.js.map → EmailSettings-Cy1cuVUq.js.map} +1 -1
- package/dist/{EmailSettings-BcHo0cqk.cjs → EmailSettings-DC_zT4nI.cjs} +1 -1
- package/dist/{EmailSettings-BcHo0cqk.cjs.map → EmailSettings-DC_zT4nI.cjs.map} +1 -1
- package/dist/{EmailSettings-CswtKXhb.cjs → EmailSettings-QBMzpbxv.cjs} +1 -1
- package/dist/{EmailSettings-CswtKXhb.cjs.map → EmailSettings-QBMzpbxv.cjs.map} +1 -1
- package/dist/{EmailSettings-ASDHfI0K.js → EmailSettings-hIhJzux0.js} +1 -1
- package/dist/{EmailSettings-ASDHfI0K.js.map → EmailSettings-hIhJzux0.js.map} +1 -1
- package/dist/{EmbeddedWalletSettings-BkwIbTkL.cjs → EmbeddedWalletSettings-4qC9KBwh.cjs} +1 -1
- package/dist/{EmbeddedWalletSettings-BkwIbTkL.cjs.map → EmbeddedWalletSettings-4qC9KBwh.cjs.map} +1 -1
- package/dist/{EmbeddedWalletSettings-BXlboZ9-.cjs → EmbeddedWalletSettings-C81QQMWz.cjs} +1 -1
- package/dist/{EmbeddedWalletSettings-BXlboZ9-.cjs.map → EmbeddedWalletSettings-C81QQMWz.cjs.map} +1 -1
- package/dist/{EmbeddedWalletSettings-CPLbqlxJ.js → EmbeddedWalletSettings-CvvTnRvt.js} +1 -1
- package/dist/{EmbeddedWalletSettings-CPLbqlxJ.js.map → EmbeddedWalletSettings-CvvTnRvt.js.map} +1 -1
- package/dist/{EmbeddedWalletSettings-CUY_X7Vj.js → EmbeddedWalletSettings-Cwiug0vR.js} +1 -1
- package/dist/{EmbeddedWalletSettings-CUY_X7Vj.js.map → EmbeddedWalletSettings-Cwiug0vR.js.map} +1 -1
- package/dist/GoogleLoginButton-2zNTIKMm.cjs +1 -0
- package/dist/GoogleLoginButton-2zNTIKMm.cjs.map +1 -0
- package/dist/{GoogleLoginButton-qf4A_A3G.js → GoogleLoginButton-C1WNu7W3.js} +41 -40
- package/dist/GoogleLoginButton-C1WNu7W3.js.map +1 -0
- package/dist/LoadingSpinner-6vml-zwr.js.map +1 -1
- package/dist/LoadingSpinner-d6sSxgQN.cjs.map +1 -1
- package/dist/{PermissionsSection-BeFhIgQy.js → PermissionsSection-BDDiEfho.js} +81 -77
- package/dist/{PermissionsSection-BeFhIgQy.js.map → PermissionsSection-BDDiEfho.js.map} +1 -1
- package/dist/PermissionsSection-CSB_Ikj9.cjs +1 -0
- package/dist/{PermissionsSection-B-6DJnN8.cjs.map → PermissionsSection-CSB_Ikj9.cjs.map} +1 -1
- package/dist/{ServerSettings-BygCxOTY.cjs → ServerSettings-BV0SipW1.cjs} +1 -1
- package/dist/{ServerSettings-BygCxOTY.cjs.map → ServerSettings-BV0SipW1.cjs.map} +1 -1
- package/dist/{ServerSettings-CgBdYspU.cjs → ServerSettings-Bf7gFE8r.cjs} +1 -1
- package/dist/{ServerSettings-CgBdYspU.cjs.map → ServerSettings-Bf7gFE8r.cjs.map} +1 -1
- package/dist/{ServerSettings-BLoWX7KG.js → ServerSettings-DPqHtsgV.js} +1 -1
- package/dist/{ServerSettings-BLoWX7KG.js.map → ServerSettings-DPqHtsgV.js.map} +1 -1
- package/dist/{ServerSettings-B9PNMse1.js → ServerSettings-Sfr0CG6K.js} +1 -1
- package/dist/{ServerSettings-B9PNMse1.js.map → ServerSettings-Sfr0CG6K.js.map} +1 -1
- package/dist/SolanaLoginButton-CqdzSSeJ.cjs +1 -0
- package/dist/SolanaLoginButton-CqdzSSeJ.cjs.map +1 -0
- package/dist/{SolanaLoginButton-B04dib6X.js → SolanaLoginButton-CyeX35eU.js} +41 -40
- package/dist/SolanaLoginButton-CyeX35eU.js.map +1 -0
- package/dist/{TeamSection-DbSYDRdI.js → TeamSection-BhsBEckR.js} +1 -1
- package/dist/{TeamSection-DbSYDRdI.js.map → TeamSection-BhsBEckR.js.map} +1 -1
- package/dist/{TeamSection-B1t1tU-_.cjs → TeamSection-DLxtRmta.cjs} +1 -1
- package/dist/{TeamSection-B1t1tU-_.cjs.map → TeamSection-DLxtRmta.cjs.map} +1 -1
- package/dist/{UsersSection-C7aRNkK2.cjs → UsersSection-BEKfbhQ4.cjs} +1 -1
- package/dist/{UsersSection-C7aRNkK2.cjs.map → UsersSection-BEKfbhQ4.cjs.map} +1 -1
- package/dist/{UsersSection--PAE1XRh.js → UsersSection-DbGkmxty.js} +1 -1
- package/dist/{UsersSection--PAE1XRh.js.map → UsersSection-DbGkmxty.js.map} +1 -1
- package/dist/{WebhookSettings-D19u9Uok.cjs → WebhookSettings-BPCKv5Or.cjs} +1 -1
- package/dist/{WebhookSettings-D19u9Uok.cjs.map → WebhookSettings-BPCKv5Or.cjs.map} +1 -1
- package/dist/{WebhookSettings-C923ZSKa.js → WebhookSettings-CMROMCFT.js} +1 -1
- package/dist/{WebhookSettings-C923ZSKa.js.map → WebhookSettings-CMROMCFT.js.map} +1 -1
- package/dist/{WebhookSettings-CbU3cfTJ.cjs → WebhookSettings-Cj-iELGa.cjs} +1 -1
- package/dist/{WebhookSettings-CbU3cfTJ.cjs.map → WebhookSettings-Cj-iELGa.cjs.map} +1 -1
- package/dist/{WebhookSettings-C-7Yxueu.js → WebhookSettings-D4mKAWAg.js} +1 -1
- package/dist/{WebhookSettings-C-7Yxueu.js.map → WebhookSettings-D4mKAWAg.js.map} +1 -1
- package/dist/admin-only.cjs +1 -1
- package/dist/admin-only.js +1 -1
- package/dist/email-only.cjs +1 -1
- package/dist/email-only.d.ts +6 -0
- package/dist/email-only.js +2 -2
- package/dist/google-only.cjs +1 -1
- package/dist/google-only.d.ts +6 -0
- package/dist/google-only.js +2 -2
- package/dist/index.cjs +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +411 -1
- package/dist/index.js +5175 -4054
- package/dist/index.js.map +1 -1
- package/dist/plugin-BHGg7ius.cjs +1 -0
- package/dist/plugin-BHGg7ius.cjs.map +1 -0
- package/dist/{plugin-BiftIhZe.js → plugin-CK2d7aP5.js} +3 -2
- package/dist/plugin-CK2d7aP5.js.map +1 -0
- package/dist/solana-only.cjs +1 -1
- package/dist/solana-only.d.ts +6 -0
- package/dist/solana-only.js +2 -2
- package/dist/useAuth-B1yS_YiD.cjs +1 -0
- package/dist/{useAuth-U5CYsHEU.cjs.map → useAuth-B1yS_YiD.cjs.map} +1 -1
- package/dist/{useAuth-C-Vw-ggy.js → useAuth-l-itM5am.js} +440 -433
- package/dist/{useAuth-C-Vw-ggy.js.map → useAuth-l-itM5am.js.map} +1 -1
- package/dist/useUsersStatsSummary-9HQDKBU5.js +1879 -0
- package/dist/useUsersStatsSummary-9HQDKBU5.js.map +1 -0
- package/dist/useUsersStatsSummary-DiRC8sGs.cjs +1 -0
- package/dist/useUsersStatsSummary-DiRC8sGs.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/AutosaveStatus-B1A1zORa.cjs +0 -1
- package/dist/AutosaveStatus-B1A1zORa.cjs.map +0 -1
- package/dist/AutosaveStatus-DMjvXzP2.js.map +0 -1
- package/dist/EmailRegisterForm-CMXsa-_r.js.map +0 -1
- package/dist/EmailRegisterForm-i7f4St2N.cjs +0 -1
- package/dist/EmailRegisterForm-i7f4St2N.cjs.map +0 -1
- package/dist/GoogleLoginButton-JtRViYWS.cjs +0 -1
- package/dist/GoogleLoginButton-JtRViYWS.cjs.map +0 -1
- package/dist/GoogleLoginButton-qf4A_A3G.js.map +0 -1
- package/dist/PermissionsSection-B-6DJnN8.cjs +0 -1
- package/dist/SolanaLoginButton-B04dib6X.js.map +0 -1
- package/dist/SolanaLoginButton-nSJHVFpZ.cjs +0 -1
- package/dist/SolanaLoginButton-nSJHVFpZ.cjs.map +0 -1
- package/dist/plugin-BiftIhZe.js.map +0 -1
- package/dist/plugin-BtQdI_Ay.cjs +0 -1
- package/dist/plugin-BtQdI_Ay.cjs.map +0 -1
- package/dist/useAuth-U5CYsHEU.cjs +0 -1
- package/dist/useUsersStatsSummary-5DJwzntC.js +0 -1246
- package/dist/useUsersStatsSummary-5DJwzntC.js.map +0 -1
- package/dist/useUsersStatsSummary-DgKaUIfs.cjs +0 -1
- package/dist/useUsersStatsSummary-DgKaUIfs.cjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -37,12 +37,127 @@ export declare interface AccountSettingsProps extends ProfileTabProps, LinkedAcc
|
|
|
37
37
|
|
|
38
38
|
declare type AccountTab = 'profile' | 'security' | 'linked';
|
|
39
39
|
|
|
40
|
+
/**
|
|
41
|
+
* Banner prompting users to complete accredited investor verification.
|
|
42
|
+
*
|
|
43
|
+
* Returns null when status is "approved". All other statuses render a banner
|
|
44
|
+
* with an optional action button that calls `onStartVerification`.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```tsx
|
|
48
|
+
* const [showWizard, setShowWizard] = useState(false);
|
|
49
|
+
* const { status } = useAccreditation();
|
|
50
|
+
* <AccreditationBanner status={status ?? 'none'} onStartVerification={() => setShowWizard(true)} />
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
export declare function AccreditationBanner({ status, onStartVerification, className, }: AccreditationBannerProps): JSX.Element | null;
|
|
54
|
+
|
|
55
|
+
export declare interface AccreditationBannerProps {
|
|
56
|
+
/** Current accreditation status */
|
|
57
|
+
status: string;
|
|
58
|
+
/** Called when the user clicks the verification action button */
|
|
59
|
+
onStartVerification?: () => void;
|
|
60
|
+
/** Additional CSS class */
|
|
61
|
+
className?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* A document uploaded for an accreditation submission.
|
|
66
|
+
*/
|
|
67
|
+
export declare interface AccreditationDocumentItem {
|
|
68
|
+
id: string;
|
|
69
|
+
documentType: string;
|
|
70
|
+
originalFilename?: string;
|
|
71
|
+
contentType?: string;
|
|
72
|
+
fileSizeBytes?: number;
|
|
73
|
+
uploadedAt: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Accredited investor verification types.
|
|
78
|
+
*
|
|
79
|
+
* These mirror the server-side accreditation module types.
|
|
80
|
+
*/
|
|
81
|
+
/** Verification method used by the user to prove accredited investor status. */
|
|
82
|
+
export declare type AccreditationMethod = 'income' | 'net_worth' | 'credential' | 'third_party_letter' | 'insider' | 'investment_threshold';
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Response for GET /admin/accreditation/pending
|
|
86
|
+
*/
|
|
87
|
+
export declare interface AccreditationPendingListResponse {
|
|
88
|
+
items: AccreditationSubmissionItem[];
|
|
89
|
+
total: number;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** Overall accreditation status for a user. */
|
|
93
|
+
export declare type AccreditationStatus = 'none' | 'pending' | 'approved' | 'rejected' | 'expired';
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Response for GET /accreditation/status
|
|
97
|
+
*
|
|
98
|
+
* @returns status - current accreditation status
|
|
99
|
+
* @returns enforcementMode - server enforcement setting
|
|
100
|
+
*/
|
|
101
|
+
export declare interface AccreditationStatusResponse {
|
|
102
|
+
status: AccreditationStatus;
|
|
103
|
+
verifiedAt?: string;
|
|
104
|
+
expiresAt?: string;
|
|
105
|
+
enforcementMode: string;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* A single accreditation submission (user or admin view).
|
|
110
|
+
*/
|
|
111
|
+
export declare interface AccreditationSubmissionItem {
|
|
112
|
+
id: string;
|
|
113
|
+
method: AccreditationMethod;
|
|
114
|
+
status: string;
|
|
115
|
+
incomeType?: string;
|
|
116
|
+
statedAmountUsd?: number;
|
|
117
|
+
crdNumber?: string;
|
|
118
|
+
licenseType?: string;
|
|
119
|
+
investmentCommitmentUsd?: number;
|
|
120
|
+
entityType?: string;
|
|
121
|
+
userStatement?: string;
|
|
122
|
+
reviewerNotes?: string;
|
|
123
|
+
rejectionReason?: string;
|
|
124
|
+
expiresAt?: string;
|
|
125
|
+
createdAt: string;
|
|
126
|
+
reviewedAt?: string;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Multi-step accredited investor verification wizard.
|
|
131
|
+
*
|
|
132
|
+
* Step 1 — choose method, Step 2 — fill details + upload documents,
|
|
133
|
+
* Step 3 — review and submit. On submit, calls `submitVerification` then
|
|
134
|
+
* uploads all staged files, then calls `onComplete(submissionId)`.
|
|
135
|
+
*/
|
|
136
|
+
export declare function AccreditationWizard({ onComplete, onCancel, className }: AccreditationWizardProps): JSX.Element;
|
|
137
|
+
|
|
138
|
+
export declare interface AccreditationWizardProps {
|
|
139
|
+
/** Called after successful submission with the new submissionId */
|
|
140
|
+
onComplete?: (submissionId: string) => void;
|
|
141
|
+
/** Called when user cancels or navigates back from step 1 */
|
|
142
|
+
onCancel?: () => void;
|
|
143
|
+
/** Additional CSS class */
|
|
144
|
+
className?: string;
|
|
145
|
+
}
|
|
146
|
+
|
|
40
147
|
/** Request to acknowledge receipt of recovery phrase */
|
|
41
148
|
export declare interface AcknowledgeRecoveryRequest {
|
|
42
149
|
/** Confirmation that user has saved the recovery phrase */
|
|
43
150
|
confirmed: boolean;
|
|
44
151
|
}
|
|
45
152
|
|
|
153
|
+
/**
|
|
154
|
+
* Admin-level detail view of a single submission, including documents.
|
|
155
|
+
*/
|
|
156
|
+
export declare interface AdminAccreditationSubmissionDetail extends AccreditationSubmissionItem {
|
|
157
|
+
userId: string;
|
|
158
|
+
documents: AccreditationDocumentItem[];
|
|
159
|
+
}
|
|
160
|
+
|
|
46
161
|
/**
|
|
47
162
|
* Individual chat message from cedros-pay
|
|
48
163
|
*/
|
|
@@ -285,6 +400,37 @@ export declare interface AdminPrivacyPeriodDepositsProps {
|
|
|
285
400
|
onItemClick?: (item: AdminDepositItem) => void;
|
|
286
401
|
}
|
|
287
402
|
|
|
403
|
+
/**
|
|
404
|
+
* Admin UI for managing direct referral payouts.
|
|
405
|
+
*
|
|
406
|
+
* Inputs: none beyond className.
|
|
407
|
+
* Outputs: renders tabbed payout management UI.
|
|
408
|
+
* Errors: displayed inline with retry options.
|
|
409
|
+
*/
|
|
410
|
+
export declare function AdminReferralPayouts({ className }: AdminReferralPayoutsProps): JSX.Element;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Admin referral payouts management component
|
|
414
|
+
*
|
|
415
|
+
* Tab 1: Summary — grouped-by-referrer view with Process All / Retry Failed
|
|
416
|
+
* Tab 2: All Payouts — paginated individual list with per-row actions
|
|
417
|
+
*
|
|
418
|
+
* Requires system admin privileges.
|
|
419
|
+
*/
|
|
420
|
+
export declare interface AdminReferralPayoutsProps {
|
|
421
|
+
className?: string;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Response for GET /admin/users/:user_id/referrals
|
|
426
|
+
*/
|
|
427
|
+
declare interface AdminReferredUsersResponse {
|
|
428
|
+
users: ReferredUserItem[];
|
|
429
|
+
total: number;
|
|
430
|
+
limit: number;
|
|
431
|
+
offset: number;
|
|
432
|
+
}
|
|
433
|
+
|
|
288
434
|
/**
|
|
289
435
|
* Section configuration for sidebar navigation.
|
|
290
436
|
*
|
|
@@ -377,6 +523,38 @@ export declare interface AdminUser {
|
|
|
377
523
|
lastLoginAt?: string;
|
|
378
524
|
/** Credit balance in lamports (if credit system is enabled) */
|
|
379
525
|
balanceLamports?: number;
|
|
526
|
+
/** User's referral code */
|
|
527
|
+
referralCode?: string;
|
|
528
|
+
/** ID of the user who referred this user */
|
|
529
|
+
referredBy?: string;
|
|
530
|
+
/** Number of users this user has referred */
|
|
531
|
+
referralCount?: number;
|
|
532
|
+
/** Wallet address configured for direct referral payouts */
|
|
533
|
+
payoutWalletAddress?: string;
|
|
534
|
+
/** KYC verification status: none, pending, verified, failed, expired, canceled */
|
|
535
|
+
kycStatus?: string;
|
|
536
|
+
/** When KYC was verified (ISO 8601) */
|
|
537
|
+
kycVerifiedAt?: string;
|
|
538
|
+
/** When KYC verification expires (ISO 8601) */
|
|
539
|
+
kycExpiresAt?: string;
|
|
540
|
+
/** Accredited investor verification status: none, pending, approved, rejected, expired */
|
|
541
|
+
accreditationStatus?: string;
|
|
542
|
+
/** When accreditation was verified (ISO 8601) */
|
|
543
|
+
accreditationVerifiedAt?: string;
|
|
544
|
+
/** When accreditation expires (ISO 8601) */
|
|
545
|
+
accreditationExpiresAt?: string;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* Response for GET /admin/users/:userId/accreditation
|
|
550
|
+
*/
|
|
551
|
+
export declare interface AdminUserAccreditationResponse {
|
|
552
|
+
userId: string;
|
|
553
|
+
status: string;
|
|
554
|
+
verifiedAt?: string;
|
|
555
|
+
expiresAt?: string;
|
|
556
|
+
submissions: AccreditationSubmissionItem[];
|
|
557
|
+
totalSubmissions: number;
|
|
380
558
|
}
|
|
381
559
|
|
|
382
560
|
/**
|
|
@@ -417,6 +595,33 @@ declare interface AdminUserCreditStats {
|
|
|
417
595
|
spendCount: number;
|
|
418
596
|
}
|
|
419
597
|
|
|
598
|
+
/**
|
|
599
|
+
* Response for GET /admin/users/:user_id/kyc
|
|
600
|
+
*/
|
|
601
|
+
export declare interface AdminUserKycResponse {
|
|
602
|
+
userId: string;
|
|
603
|
+
status: string;
|
|
604
|
+
verifiedAt?: string;
|
|
605
|
+
expiresAt?: string;
|
|
606
|
+
sessions: AdminUserKycSession[];
|
|
607
|
+
totalSessions: number;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* A single KYC verification session for a user (admin view)
|
|
612
|
+
*/
|
|
613
|
+
export declare interface AdminUserKycSession {
|
|
614
|
+
id: string;
|
|
615
|
+
provider: string;
|
|
616
|
+
providerSessionId: string;
|
|
617
|
+
status: string;
|
|
618
|
+
errorCode?: string;
|
|
619
|
+
errorReason?: string;
|
|
620
|
+
createdAt: string;
|
|
621
|
+
updatedAt: string;
|
|
622
|
+
completedAt?: string;
|
|
623
|
+
}
|
|
624
|
+
|
|
420
625
|
/**
|
|
421
626
|
* Admin user list display
|
|
422
627
|
*
|
|
@@ -684,6 +889,10 @@ export declare interface AuthUser {
|
|
|
684
889
|
updatedAt: string;
|
|
685
890
|
/** When the user completed the one-time welcome flow */
|
|
686
891
|
welcomeCompletedAt?: string;
|
|
892
|
+
/** User's unique referral code */
|
|
893
|
+
referralCode?: string;
|
|
894
|
+
/** Wallet address to receive direct referral payouts */
|
|
895
|
+
payoutWalletAddress?: string;
|
|
687
896
|
}
|
|
688
897
|
|
|
689
898
|
/** Multiple balances response */
|
|
@@ -829,6 +1038,8 @@ declare interface CedrosLoginContextValue extends AuthStateContextValue, AuthUIC
|
|
|
829
1038
|
declare interface CedrosLoginInternalAPI {
|
|
830
1039
|
handleLoginSuccess: (user: AuthUser, tokens?: TokenPair) => void;
|
|
831
1040
|
getAccessToken: () => string | null;
|
|
1041
|
+
/** Get the referral code captured from the ?ref= URL parameter (if any) */
|
|
1042
|
+
getReferralCode: () => string | null;
|
|
832
1043
|
}
|
|
833
1044
|
|
|
834
1045
|
declare const cedrosLoginPlugin: AdminPlugin;
|
|
@@ -1150,7 +1361,7 @@ declare interface CustomTokenDefinition {
|
|
|
1150
1361
|
* ```
|
|
1151
1362
|
*/
|
|
1152
1363
|
/** Available dashboard sections */
|
|
1153
|
-
export declare type DashboardSection = 'users' | 'team' | 'deposits' | 'withdrawals' | 'settings-wallet' | 'settings-auth' | 'settings-messaging' | 'settings-credits' | 'settings-server' | 'settings-images';
|
|
1364
|
+
export declare type DashboardSection = 'users' | 'team' | 'referrals' | 'deposits' | 'withdrawals' | 'settings-wallet' | 'settings-auth' | 'settings-messaging' | 'settings-credits' | 'settings-server' | 'settings-images';
|
|
1154
1365
|
|
|
1155
1366
|
declare type DeepPartial<T> = {
|
|
1156
1367
|
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
@@ -1975,6 +2186,56 @@ export declare interface KdfParams {
|
|
|
1975
2186
|
pCost: number;
|
|
1976
2187
|
}
|
|
1977
2188
|
|
|
2189
|
+
/**
|
|
2190
|
+
* Banner prompting users to complete KYC identity verification.
|
|
2191
|
+
*
|
|
2192
|
+
* Shown when KYC enforcement is active and the user is not yet verified.
|
|
2193
|
+
* Clicking the button starts a Stripe Identity session and redirects the user.
|
|
2194
|
+
*/
|
|
2195
|
+
export declare function KycBanner({ status, startVerification, className, }: KycBannerProps): JSX.Element | null;
|
|
2196
|
+
|
|
2197
|
+
export declare interface KycBannerProps {
|
|
2198
|
+
/** Current KYC status */
|
|
2199
|
+
status: string;
|
|
2200
|
+
/** Function that starts verification and returns redirect URL */
|
|
2201
|
+
startVerification: () => Promise<string>;
|
|
2202
|
+
/** Optional CSS class name */
|
|
2203
|
+
className?: string;
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
/**
|
|
2207
|
+
* Post-KYC redirect landing component.
|
|
2208
|
+
*
|
|
2209
|
+
* Polls the KYC status every 3 seconds after Stripe redirects the user back.
|
|
2210
|
+
* Stops polling when status changes from "pending" to a final state, or after
|
|
2211
|
+
* 60 seconds.
|
|
2212
|
+
*
|
|
2213
|
+
* @example
|
|
2214
|
+
* ```tsx
|
|
2215
|
+
* const { fetchStatus } = useKyc();
|
|
2216
|
+
* <KycCallback fetchStatus={fetchStatus} onComplete={(status) => navigate('/dashboard')} />
|
|
2217
|
+
* ```
|
|
2218
|
+
*/
|
|
2219
|
+
export declare function KycCallback({ fetchStatus, onComplete, className }: KycCallbackProps): JSX.Element;
|
|
2220
|
+
|
|
2221
|
+
export declare interface KycCallbackProps {
|
|
2222
|
+
/** Function that fetches KYC status — obtain from useKyc().fetchStatus */
|
|
2223
|
+
fetchStatus: () => Promise<{
|
|
2224
|
+
status: string;
|
|
2225
|
+
}>;
|
|
2226
|
+
/** Called when polling resolves to a non-pending status */
|
|
2227
|
+
onComplete?: (status: string) => void;
|
|
2228
|
+
/** Additional CSS classes */
|
|
2229
|
+
className?: string;
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
declare interface KycStatusResponse {
|
|
2233
|
+
status: string;
|
|
2234
|
+
verifiedAt?: string;
|
|
2235
|
+
expiresAt?: string;
|
|
2236
|
+
enforcementMode: string;
|
|
2237
|
+
}
|
|
2238
|
+
|
|
1978
2239
|
export declare function LinkedAccounts({ onLinkGoogle, onLinkApple, onAddPasskey, onLinkSolana, className, }: LinkedAccountsProps): JSX.Element;
|
|
1979
2240
|
|
|
1980
2241
|
/**
|
|
@@ -2769,6 +3030,23 @@ export declare interface RecoveryState {
|
|
|
2769
3030
|
/** Recovery flow state */
|
|
2770
3031
|
declare type RecoveryStep = 'idle' | 'entering_phrase' | 'validating' | 'prompting_password' | 'registering_passkey' | 'encrypting' | 'uploading' | 'complete' | 'error';
|
|
2771
3032
|
|
|
3033
|
+
declare interface ReferralInfo {
|
|
3034
|
+
referralCode: string;
|
|
3035
|
+
referralCount: number;
|
|
3036
|
+
directPayoutEnabled: boolean;
|
|
3037
|
+
}
|
|
3038
|
+
|
|
3039
|
+
/**
|
|
3040
|
+
* A single user entry in the referral network response
|
|
3041
|
+
*/
|
|
3042
|
+
declare interface ReferredUserItem {
|
|
3043
|
+
id: string;
|
|
3044
|
+
email?: string;
|
|
3045
|
+
name?: string;
|
|
3046
|
+
createdAt: string;
|
|
3047
|
+
lastLoginAt?: string;
|
|
3048
|
+
}
|
|
3049
|
+
|
|
2772
3050
|
/**
|
|
2773
3051
|
* Register Mobile Wallet Adapter as a wallet-standard wallet.
|
|
2774
3052
|
*
|
|
@@ -3743,6 +4021,8 @@ export declare interface UpdateProfileRequest {
|
|
|
3743
4021
|
username?: string;
|
|
3744
4022
|
/** User's profile picture URL */
|
|
3745
4023
|
picture?: string;
|
|
4024
|
+
/** Solana wallet address to receive direct referral payouts (32–44 chars) */
|
|
4025
|
+
payoutWalletAddress?: string;
|
|
3746
4026
|
}
|
|
3747
4027
|
|
|
3748
4028
|
/**
|
|
@@ -3784,6 +4064,65 @@ declare interface UpdateUserRequest {
|
|
|
3784
4064
|
emailVerified?: boolean;
|
|
3785
4065
|
}
|
|
3786
4066
|
|
|
4067
|
+
/**
|
|
4068
|
+
* Hook for accredited investor verification.
|
|
4069
|
+
*
|
|
4070
|
+
* Follows the same pattern as useKyc.
|
|
4071
|
+
*/
|
|
4072
|
+
export declare function useAccreditation(): UseAccreditationReturn;
|
|
4073
|
+
|
|
4074
|
+
/**
|
|
4075
|
+
* Return type for the useAccreditation hook.
|
|
4076
|
+
*
|
|
4077
|
+
* @example
|
|
4078
|
+
* ```tsx
|
|
4079
|
+
* const { status, isRequired, fetchStatus, submitVerification } = useAccreditation();
|
|
4080
|
+
*
|
|
4081
|
+
* useEffect(() => { fetchStatus(); }, [fetchStatus]);
|
|
4082
|
+
* ```
|
|
4083
|
+
*/
|
|
4084
|
+
export declare interface UseAccreditationReturn {
|
|
4085
|
+
/** Current accreditation status: none, pending, approved, rejected, expired */
|
|
4086
|
+
status: AccreditationStatus | null;
|
|
4087
|
+
/** When accreditation was verified (ISO 8601) */
|
|
4088
|
+
verifiedAt: string | null;
|
|
4089
|
+
/** When accreditation expires (ISO 8601) */
|
|
4090
|
+
expiresAt: string | null;
|
|
4091
|
+
/** Whether accreditation enforcement is active (mode is not "none") */
|
|
4092
|
+
isRequired: boolean;
|
|
4093
|
+
/** Current enforcement mode from server */
|
|
4094
|
+
enforcementMode: string | null;
|
|
4095
|
+
/** Fetch the current user's accreditation status */
|
|
4096
|
+
fetchStatus: () => Promise<AccreditationStatusResponse>;
|
|
4097
|
+
/**
|
|
4098
|
+
* Submit a new accreditation verification request.
|
|
4099
|
+
*
|
|
4100
|
+
* @param method - verification method
|
|
4101
|
+
* @param data - method-specific data (income amount, CRD number, etc.)
|
|
4102
|
+
* @returns submissionId of the created submission
|
|
4103
|
+
*/
|
|
4104
|
+
submitVerification: (method: AccreditationMethod, data: Record<string, unknown>) => Promise<{
|
|
4105
|
+
submissionId: string;
|
|
4106
|
+
}>;
|
|
4107
|
+
/**
|
|
4108
|
+
* Upload a supporting document for a submission.
|
|
4109
|
+
*
|
|
4110
|
+
* @param submissionId - ID of the submission to attach the document to
|
|
4111
|
+
* @param file - File object to upload
|
|
4112
|
+
* @param documentType - document category (e.g. "tax_return", "letter")
|
|
4113
|
+
* @returns documentId of the created document record
|
|
4114
|
+
*/
|
|
4115
|
+
uploadDocument: (submissionId: string, file: File, documentType: string) => Promise<{
|
|
4116
|
+
documentId: string;
|
|
4117
|
+
}>;
|
|
4118
|
+
/** List this user's accreditation submissions */
|
|
4119
|
+
listSubmissions: () => Promise<AccreditationSubmissionItem[]>;
|
|
4120
|
+
/** Whether a request is in progress */
|
|
4121
|
+
isLoading: boolean;
|
|
4122
|
+
/** Error from the last operation */
|
|
4123
|
+
error: Error | null;
|
|
4124
|
+
}
|
|
4125
|
+
|
|
3787
4126
|
/**
|
|
3788
4127
|
* Hook for admin Privacy Cash deposit operations
|
|
3789
4128
|
*
|
|
@@ -3878,6 +4217,7 @@ export declare interface UseAdminUsersReturn {
|
|
|
3878
4217
|
getUserCredits: (userId: string, params?: ListUsersParams) => Promise<AdminUserCreditsResponse>;
|
|
3879
4218
|
getUserWithdrawalHistory: (userId: string, params?: ListUsersParams) => Promise<AdminUserWithdrawalHistoryResponse>;
|
|
3880
4219
|
getUserChats: (userId: string, params?: ListUsersParams) => Promise<AdminUserChatsResponse>;
|
|
4220
|
+
getUserReferrals: (userId: string, params?: ListUsersParams) => Promise<AdminReferredUsersResponse>;
|
|
3881
4221
|
getStats: () => Promise<AdminUserStatsResponse>;
|
|
3882
4222
|
refresh: () => Promise<void>;
|
|
3883
4223
|
clearError: () => void;
|
|
@@ -4325,6 +4665,47 @@ export declare interface UseInvitesReturn {
|
|
|
4325
4665
|
acceptInvite: (token: string) => Promise<AcceptInviteResponse>;
|
|
4326
4666
|
}
|
|
4327
4667
|
|
|
4668
|
+
/**
|
|
4669
|
+
* Hook for KYC identity verification.
|
|
4670
|
+
*
|
|
4671
|
+
* @example
|
|
4672
|
+
* ```tsx
|
|
4673
|
+
* const { status, isRequired, startVerification, fetchStatus, isLoading } = useKyc();
|
|
4674
|
+
*
|
|
4675
|
+
* useEffect(() => { fetchStatus(); }, [fetchStatus]);
|
|
4676
|
+
*
|
|
4677
|
+
* if (isRequired && status !== 'verified') {
|
|
4678
|
+
* const url = await startVerification();
|
|
4679
|
+
* window.location.href = url;
|
|
4680
|
+
* }
|
|
4681
|
+
* ```
|
|
4682
|
+
*/
|
|
4683
|
+
export declare function useKyc(): UseKycReturn;
|
|
4684
|
+
|
|
4685
|
+
/**
|
|
4686
|
+
* Return type for the useKyc hook
|
|
4687
|
+
*/
|
|
4688
|
+
export declare interface UseKycReturn {
|
|
4689
|
+
/** Current KYC status: none, pending, verified, failed, expired, canceled */
|
|
4690
|
+
status: string | null;
|
|
4691
|
+
/** When verification was completed (ISO 8601) */
|
|
4692
|
+
verifiedAt: string | null;
|
|
4693
|
+
/** When verification expires (ISO 8601) */
|
|
4694
|
+
expiresAt: string | null;
|
|
4695
|
+
/** Whether KYC enforcement is active (mode is not "none") */
|
|
4696
|
+
isRequired: boolean;
|
|
4697
|
+
/** Current enforcement mode from server */
|
|
4698
|
+
enforcementMode: string | null;
|
|
4699
|
+
/** Fetch the current user's KYC status */
|
|
4700
|
+
fetchStatus: () => Promise<KycStatusResponse>;
|
|
4701
|
+
/** Start a new verification session (returns redirect URL) */
|
|
4702
|
+
startVerification: () => Promise<string>;
|
|
4703
|
+
/** Whether a request is in progress */
|
|
4704
|
+
isLoading: boolean;
|
|
4705
|
+
/** Error from the last operation */
|
|
4706
|
+
error: Error | null;
|
|
4707
|
+
}
|
|
4708
|
+
|
|
4328
4709
|
/**
|
|
4329
4710
|
* Hook to access current locale
|
|
4330
4711
|
*/
|
|
@@ -4640,6 +5021,35 @@ export declare interface UseProfileReturn {
|
|
|
4640
5021
|
clearError: () => void;
|
|
4641
5022
|
}
|
|
4642
5023
|
|
|
5024
|
+
/**
|
|
5025
|
+
* Hook for referral code management.
|
|
5026
|
+
*
|
|
5027
|
+
* @example
|
|
5028
|
+
* ```tsx
|
|
5029
|
+
* const { getReferral, regenerateCode, isLoading } = useReferral();
|
|
5030
|
+
*
|
|
5031
|
+
* const info = await getReferral();
|
|
5032
|
+
* console.log(info.referralCode, info.referralCount);
|
|
5033
|
+
*
|
|
5034
|
+
* const newCode = await regenerateCode();
|
|
5035
|
+
* ```
|
|
5036
|
+
*/
|
|
5037
|
+
export declare function useReferral(): UseReferralReturn;
|
|
5038
|
+
|
|
5039
|
+
/**
|
|
5040
|
+
* Return type for the useReferral hook
|
|
5041
|
+
*/
|
|
5042
|
+
export declare interface UseReferralReturn {
|
|
5043
|
+
/** Fetch the current user's referral code and count */
|
|
5044
|
+
getReferral: () => Promise<ReferralInfo>;
|
|
5045
|
+
/** Regenerate the current user's referral code */
|
|
5046
|
+
regenerateCode: () => Promise<string>;
|
|
5047
|
+
/** Whether a request is in progress */
|
|
5048
|
+
isLoading: boolean;
|
|
5049
|
+
/** Error from the last operation */
|
|
5050
|
+
error: Error | null;
|
|
5051
|
+
}
|
|
5052
|
+
|
|
4643
5053
|
/**
|
|
4644
5054
|
* User profile settings panel.
|
|
4645
5055
|
*
|