@lumiapassport/ui-kit 1.4.2 → 1.4.3
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.cjs.map +1 -1
- package/dist/index.d.cts +25 -7
- package/dist/index.d.ts +25 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -430,15 +430,27 @@ declare function useUserOpStatus(options?: UseUserOpStatusOptions): UseUserOpSta
|
|
|
430
430
|
declare const LUMIA_EXPLORER_URL: string;
|
|
431
431
|
declare const lumiaBeam: Chain;
|
|
432
432
|
|
|
433
|
+
/**
|
|
434
|
+
* Provider information in user profile
|
|
435
|
+
* Matches the structure returned by backend /api/auth/profile
|
|
436
|
+
*/
|
|
437
|
+
interface ProviderDetail {
|
|
438
|
+
id: string;
|
|
439
|
+
provider: string;
|
|
440
|
+
verified: boolean;
|
|
441
|
+
linkedAt: string;
|
|
442
|
+
lastUsedAt: string;
|
|
443
|
+
externalId: string;
|
|
444
|
+
meta?: Record<string, any>;
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* User profile information
|
|
448
|
+
*/
|
|
433
449
|
interface UserProfile {
|
|
434
450
|
userId: string;
|
|
435
451
|
displayName?: string;
|
|
436
452
|
avatar?: string;
|
|
437
|
-
providers:
|
|
438
|
-
type: string;
|
|
439
|
-
identifier: string;
|
|
440
|
-
connectedAt: string;
|
|
441
|
-
}>;
|
|
453
|
+
providers: ProviderDetail[];
|
|
442
454
|
createdAt: string;
|
|
443
455
|
updatedAt: string;
|
|
444
456
|
hasKeyshare: boolean;
|
|
@@ -447,7 +459,13 @@ interface UpdateProfileRequest {
|
|
|
447
459
|
displayName?: string;
|
|
448
460
|
}
|
|
449
461
|
/**
|
|
450
|
-
* Get user profile
|
|
462
|
+
* Get user profile with detailed provider information
|
|
463
|
+
*
|
|
464
|
+
* Backend /api/auth/profile now returns complete provider details including:
|
|
465
|
+
* - Provider type and identifier
|
|
466
|
+
* - Verification status
|
|
467
|
+
* - Linked and last used timestamps
|
|
468
|
+
* - Provider-specific metadata
|
|
451
469
|
*/
|
|
452
470
|
declare function getUserProfile(): Promise<UserProfile>;
|
|
453
471
|
/**
|
|
@@ -857,4 +875,4 @@ interface WalletReadyStatus {
|
|
|
857
875
|
timestamp: number;
|
|
858
876
|
}
|
|
859
877
|
|
|
860
|
-
export { type AccountSession$1 as AccountSession, Address, type AddressProps, type Asset, ConnectWalletButton, type ConnectWalletButtonProps, Hash, type HashProps, KeyshareBackup, LUMIA_EXPLORER_URL, LumiaLogo, type LumiaPassportCallbacks, type LumiaPassportConfig, LumiaPassportProvider, type LumiaPassportProviderProps, LumiaRainbowKitProvider, type LumiaRainbowKitProviderProps, LumiaSessionProvider, type LumiaSessionProviderProps, LumiaWagmiProvider, type SendTransactionParams, type SendTransactionResult, type Theme, ThemeToggle, type TokenBalance, type Transaction, TransactionsList, type UpdateProfileRequest, type UseSendTransactionReturn, type UseUserOpStatusOptions, type UseUserOpStatusReturn, type UserOpMempool, type UserOpReceipt, type SendTransactionParams$1 as UserOpSendTransactionParams, type UserOpState, UserOpStatus, type UserOpStatusProps, type UserOperation, type UserProfile, type WalletReadyStatus, getUserProfile, lumiaBeam, prepareUserOperation, queryClient, sendUserOperation, updateUserProfile, useAssets, useLumiaPassportConfig, useLumiaPassportLinkedProfiles, useLumiaSession, useSendTransaction, useSmartAccountTransactions, useTheme, useTokenBalance, useTokenInfo, useTransactions, useUserOpStatus, wagmiConfig };
|
|
878
|
+
export { type AccountSession$1 as AccountSession, Address, type AddressProps, type Asset, ConnectWalletButton, type ConnectWalletButtonProps, Hash, type HashProps, KeyshareBackup, LUMIA_EXPLORER_URL, LumiaLogo, type LumiaPassportCallbacks, type LumiaPassportConfig, LumiaPassportProvider, type LumiaPassportProviderProps, LumiaRainbowKitProvider, type LumiaRainbowKitProviderProps, LumiaSessionProvider, type LumiaSessionProviderProps, LumiaWagmiProvider, type ProviderDetail, type SendTransactionParams, type SendTransactionResult, type Theme, ThemeToggle, type TokenBalance, type Transaction, TransactionsList, type UpdateProfileRequest, type UseSendTransactionReturn, type UseUserOpStatusOptions, type UseUserOpStatusReturn, type UserOpMempool, type UserOpReceipt, type SendTransactionParams$1 as UserOpSendTransactionParams, type UserOpState, UserOpStatus, type UserOpStatusProps, type UserOperation, type UserProfile, type WalletReadyStatus, getUserProfile, lumiaBeam, prepareUserOperation, queryClient, sendUserOperation, updateUserProfile, useAssets, useLumiaPassportConfig, useLumiaPassportLinkedProfiles, useLumiaSession, useSendTransaction, useSmartAccountTransactions, useTheme, useTokenBalance, useTokenInfo, useTransactions, useUserOpStatus, wagmiConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -430,15 +430,27 @@ declare function useUserOpStatus(options?: UseUserOpStatusOptions): UseUserOpSta
|
|
|
430
430
|
declare const LUMIA_EXPLORER_URL: string;
|
|
431
431
|
declare const lumiaBeam: Chain;
|
|
432
432
|
|
|
433
|
+
/**
|
|
434
|
+
* Provider information in user profile
|
|
435
|
+
* Matches the structure returned by backend /api/auth/profile
|
|
436
|
+
*/
|
|
437
|
+
interface ProviderDetail {
|
|
438
|
+
id: string;
|
|
439
|
+
provider: string;
|
|
440
|
+
verified: boolean;
|
|
441
|
+
linkedAt: string;
|
|
442
|
+
lastUsedAt: string;
|
|
443
|
+
externalId: string;
|
|
444
|
+
meta?: Record<string, any>;
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* User profile information
|
|
448
|
+
*/
|
|
433
449
|
interface UserProfile {
|
|
434
450
|
userId: string;
|
|
435
451
|
displayName?: string;
|
|
436
452
|
avatar?: string;
|
|
437
|
-
providers:
|
|
438
|
-
type: string;
|
|
439
|
-
identifier: string;
|
|
440
|
-
connectedAt: string;
|
|
441
|
-
}>;
|
|
453
|
+
providers: ProviderDetail[];
|
|
442
454
|
createdAt: string;
|
|
443
455
|
updatedAt: string;
|
|
444
456
|
hasKeyshare: boolean;
|
|
@@ -447,7 +459,13 @@ interface UpdateProfileRequest {
|
|
|
447
459
|
displayName?: string;
|
|
448
460
|
}
|
|
449
461
|
/**
|
|
450
|
-
* Get user profile
|
|
462
|
+
* Get user profile with detailed provider information
|
|
463
|
+
*
|
|
464
|
+
* Backend /api/auth/profile now returns complete provider details including:
|
|
465
|
+
* - Provider type and identifier
|
|
466
|
+
* - Verification status
|
|
467
|
+
* - Linked and last used timestamps
|
|
468
|
+
* - Provider-specific metadata
|
|
451
469
|
*/
|
|
452
470
|
declare function getUserProfile(): Promise<UserProfile>;
|
|
453
471
|
/**
|
|
@@ -857,4 +875,4 @@ interface WalletReadyStatus {
|
|
|
857
875
|
timestamp: number;
|
|
858
876
|
}
|
|
859
877
|
|
|
860
|
-
export { type AccountSession$1 as AccountSession, Address, type AddressProps, type Asset, ConnectWalletButton, type ConnectWalletButtonProps, Hash, type HashProps, KeyshareBackup, LUMIA_EXPLORER_URL, LumiaLogo, type LumiaPassportCallbacks, type LumiaPassportConfig, LumiaPassportProvider, type LumiaPassportProviderProps, LumiaRainbowKitProvider, type LumiaRainbowKitProviderProps, LumiaSessionProvider, type LumiaSessionProviderProps, LumiaWagmiProvider, type SendTransactionParams, type SendTransactionResult, type Theme, ThemeToggle, type TokenBalance, type Transaction, TransactionsList, type UpdateProfileRequest, type UseSendTransactionReturn, type UseUserOpStatusOptions, type UseUserOpStatusReturn, type UserOpMempool, type UserOpReceipt, type SendTransactionParams$1 as UserOpSendTransactionParams, type UserOpState, UserOpStatus, type UserOpStatusProps, type UserOperation, type UserProfile, type WalletReadyStatus, getUserProfile, lumiaBeam, prepareUserOperation, queryClient, sendUserOperation, updateUserProfile, useAssets, useLumiaPassportConfig, useLumiaPassportLinkedProfiles, useLumiaSession, useSendTransaction, useSmartAccountTransactions, useTheme, useTokenBalance, useTokenInfo, useTransactions, useUserOpStatus, wagmiConfig };
|
|
878
|
+
export { type AccountSession$1 as AccountSession, Address, type AddressProps, type Asset, ConnectWalletButton, type ConnectWalletButtonProps, Hash, type HashProps, KeyshareBackup, LUMIA_EXPLORER_URL, LumiaLogo, type LumiaPassportCallbacks, type LumiaPassportConfig, LumiaPassportProvider, type LumiaPassportProviderProps, LumiaRainbowKitProvider, type LumiaRainbowKitProviderProps, LumiaSessionProvider, type LumiaSessionProviderProps, LumiaWagmiProvider, type ProviderDetail, type SendTransactionParams, type SendTransactionResult, type Theme, ThemeToggle, type TokenBalance, type Transaction, TransactionsList, type UpdateProfileRequest, type UseSendTransactionReturn, type UseUserOpStatusOptions, type UseUserOpStatusReturn, type UserOpMempool, type UserOpReceipt, type SendTransactionParams$1 as UserOpSendTransactionParams, type UserOpState, UserOpStatus, type UserOpStatusProps, type UserOperation, type UserProfile, type WalletReadyStatus, getUserProfile, lumiaBeam, prepareUserOperation, queryClient, sendUserOperation, updateUserProfile, useAssets, useLumiaPassportConfig, useLumiaPassportLinkedProfiles, useLumiaSession, useSendTransaction, useSmartAccountTransactions, useTheme, useTokenBalance, useTokenInfo, useTransactions, useUserOpStatus, wagmiConfig };
|