decane-connect-kit 2.29.3 → 2.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +170 -115
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +79 -17
- package/dist/index.d.ts +79 -17
- package/dist/index.js +169 -115
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -94,11 +94,8 @@ interface DecaneConnectConfig {
|
|
|
94
94
|
chains: Chain[];
|
|
95
95
|
authMethods: Array<'google' | 'email' | 'phone' | 'kingschat' | 'x'>;
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* enough to establish identity. Widen only if the app actually calls
|
|
100
|
-
* KingsChat APIs on the user's behalf — the consent screen lists every scope,
|
|
101
|
-
* so asking for more than you use costs conversions.
|
|
97
|
+
* @deprecated Ignored since 2.31.0. KingsChat scopes are now set on the
|
|
98
|
+
* KingsChat project in its developer portal, not per login request.
|
|
102
99
|
*/
|
|
103
100
|
kingsChatScopes?: string[];
|
|
104
101
|
apiBaseUrl?: string;
|
|
@@ -431,6 +428,31 @@ interface DecaneConnect {
|
|
|
431
428
|
connectWithToken(token: string, opts?: {
|
|
432
429
|
providerId?: string;
|
|
433
430
|
}): Promise<ConnectResult>;
|
|
431
|
+
/**
|
|
432
|
+
* Attach a login from your own auth system to the account that is signed in
|
|
433
|
+
* now, so that login opens this same wallet from then on. The usual case:
|
|
434
|
+
* someone signed up by email adds a phone number your backend verified, and
|
|
435
|
+
* can then sign in with either. Needs a signed-in session.
|
|
436
|
+
*
|
|
437
|
+
* The token must be fresh (it carries `exp` and `iat`, and was issued in the
|
|
438
|
+
* last ten minutes). A login that already opens a different account throws
|
|
439
|
+
* LoginInUseError: accounts are never merged. Linking one that is already
|
|
440
|
+
* on this account is a no-op (`alreadyLinked: true`). Since 2.30.0.
|
|
441
|
+
*/
|
|
442
|
+
linkWithToken(token: string, opts?: {
|
|
443
|
+
providerId?: string;
|
|
444
|
+
}): Promise<{
|
|
445
|
+
alreadyLinked: boolean;
|
|
446
|
+
id?: string;
|
|
447
|
+
}>;
|
|
448
|
+
/** The logins linked to the signed-in account with linkWithToken(). Since 2.30.0. */
|
|
449
|
+
listLinkedLogins(): Promise<LinkedLogin[]>;
|
|
450
|
+
/**
|
|
451
|
+
* Remove a linked login, for "change my number": sign in, unlink the old one,
|
|
452
|
+
* link the new one. The login the account was created with cannot be removed.
|
|
453
|
+
* Since 2.30.0.
|
|
454
|
+
*/
|
|
455
|
+
unlinkLogin(id: string): Promise<void>;
|
|
434
456
|
/**
|
|
435
457
|
* Adopt a Decane access token another app of the same project handed over
|
|
436
458
|
* (in a URL, say): signed in at once, unlocked on the first signature.
|
|
@@ -700,6 +722,16 @@ interface AuthResult {
|
|
|
700
722
|
*/
|
|
701
723
|
providerSubject?: string;
|
|
702
724
|
}
|
|
725
|
+
/** A login attached to an account with linkWithToken(). */
|
|
726
|
+
interface LinkedLogin {
|
|
727
|
+
id: string;
|
|
728
|
+
providerId: string | null;
|
|
729
|
+
/** The provider's name as set in the dashboard, e.g. "World Street phone". */
|
|
730
|
+
providerName: string | null;
|
|
731
|
+
/** Masked, for display: never the full identifier. */
|
|
732
|
+
identifier: string | null;
|
|
733
|
+
linkedAt: string;
|
|
734
|
+
}
|
|
703
735
|
|
|
704
736
|
declare class ApiClient {
|
|
705
737
|
private readonly baseUrl;
|
|
@@ -730,9 +762,14 @@ declare class ApiClient {
|
|
|
730
762
|
authorizationUrl: string;
|
|
731
763
|
}>;
|
|
732
764
|
/**
|
|
733
|
-
* Exchange a KingsChat
|
|
734
|
-
*
|
|
735
|
-
*
|
|
765
|
+
* Exchange a KingsChat authorization code for a Decane session. The backend
|
|
766
|
+
* trades it with KingsChat for an access token, verifies that token (it must
|
|
767
|
+
* have been issued to this project's KingsChat app), and never stores it.
|
|
768
|
+
*/
|
|
769
|
+
authKingsChatCode(code: string): Promise<AuthResult>;
|
|
770
|
+
/**
|
|
771
|
+
* Exchange a KingsChat access token the app already holds for a Decane
|
|
772
|
+
* session. Verified the same way as a code's token, and never stored.
|
|
736
773
|
*/
|
|
737
774
|
authKingsChat(accessToken: string): Promise<AuthResult>;
|
|
738
775
|
authEmailStart(email: string): Promise<void>;
|
|
@@ -782,6 +819,16 @@ declare class ApiClient {
|
|
|
782
819
|
* provider configured.
|
|
783
820
|
*/
|
|
784
821
|
authExternal(token: string, providerId?: string): Promise<AuthResult>;
|
|
822
|
+
/** Attach a login from the project's own provider to the signed-in account. */
|
|
823
|
+
linkExternal(jwt: string, token: string, providerId?: string): Promise<{
|
|
824
|
+
linked: true;
|
|
825
|
+
alreadyLinked: boolean;
|
|
826
|
+
id?: string;
|
|
827
|
+
}>;
|
|
828
|
+
listLinkedLogins(jwt: string): Promise<{
|
|
829
|
+
logins: LinkedLogin[];
|
|
830
|
+
}>;
|
|
831
|
+
unlinkLogin(jwt: string, id: string): Promise<void>;
|
|
785
832
|
/**
|
|
786
833
|
* Returns null when this user has no server-registered passkey, which is the
|
|
787
834
|
* expected answer for wallets created before passkey sign-in existed or for
|
|
@@ -944,8 +991,8 @@ interface SocialConfig {
|
|
|
944
991
|
apiKey: string;
|
|
945
992
|
authMethods?: ("google" | "email" | "phone" | "kingschat" | "x")[];
|
|
946
993
|
/**
|
|
947
|
-
*
|
|
948
|
-
*
|
|
994
|
+
* @deprecated Ignored since 2.31.0. KingsChat scopes are now set on the
|
|
995
|
+
* KingsChat project in its developer portal, not per login request.
|
|
949
996
|
*/
|
|
950
997
|
kingsChatScopes?: string[];
|
|
951
998
|
promptPin?: () => Promise<string>;
|
|
@@ -1149,19 +1196,18 @@ declare function startEmailAuth(api: ApiClient, email: string): Promise<void>;
|
|
|
1149
1196
|
*/
|
|
1150
1197
|
declare function verifyEmailCode(api: ApiClient, email: string, code: string): Promise<AuthResult>;
|
|
1151
1198
|
|
|
1199
|
+
/** @deprecated KingsChat no longer issues tokens to a popup. */
|
|
1152
1200
|
interface KingsChatTokens {
|
|
1153
1201
|
accessToken: string;
|
|
1154
1202
|
refreshToken?: string;
|
|
1155
1203
|
expiresInMillis?: number;
|
|
1156
1204
|
}
|
|
1157
1205
|
/**
|
|
1158
|
-
*
|
|
1159
|
-
*
|
|
1160
|
-
*
|
|
1161
|
-
* blockers reject a window.open that happens after an await, which is why the
|
|
1162
|
-
* clientId is fetched by the caller *before* this runs.
|
|
1206
|
+
* @deprecated Since 2.31.0. KingsChat retired the popup login; use
|
|
1207
|
+
* `connectWithKingsChat()`, which redirects to KingsChat and finishes on the
|
|
1208
|
+
* page registered as the KingsChat application's Redirect URL.
|
|
1163
1209
|
*/
|
|
1164
|
-
declare function loginWithKingsChatPopup(
|
|
1210
|
+
declare function loginWithKingsChatPopup(_opts?: {
|
|
1165
1211
|
clientId: string;
|
|
1166
1212
|
scopes?: string[];
|
|
1167
1213
|
timeoutMs?: number;
|
|
@@ -1292,6 +1338,14 @@ declare class ExportNotAuthorizedError extends DecaneConnectError {
|
|
|
1292
1338
|
* The client discards what it generated and provisions instead; nothing for
|
|
1293
1339
|
* the caller to do, which is why this never reaches them.
|
|
1294
1340
|
*/
|
|
1341
|
+
/**
|
|
1342
|
+
* linkWithToken(): that login already opens a different account (someone signed
|
|
1343
|
+
* up with that phone number on its own, say). Decane never merges two accounts,
|
|
1344
|
+
* because each is its own key and its own addresses, so it was not linked.
|
|
1345
|
+
*/
|
|
1346
|
+
declare class LoginInUseError extends DecaneConnectError {
|
|
1347
|
+
constructor(message?: string);
|
|
1348
|
+
}
|
|
1295
1349
|
declare class WalletExistsError extends DecaneConnectError {
|
|
1296
1350
|
constructor();
|
|
1297
1351
|
}
|
|
@@ -1597,6 +1651,14 @@ declare function useSocialAuth(): {
|
|
|
1597
1651
|
providerId?: string;
|
|
1598
1652
|
}) => Promise<void>;
|
|
1599
1653
|
signInWithAccessToken: (token: string) => Promise<void>;
|
|
1654
|
+
linkWithToken: (token: string, opts?: {
|
|
1655
|
+
providerId?: string;
|
|
1656
|
+
}) => Promise<{
|
|
1657
|
+
alreadyLinked: boolean;
|
|
1658
|
+
id?: string;
|
|
1659
|
+
}>;
|
|
1660
|
+
listLinkedLogins: () => Promise<LinkedLogin[]>;
|
|
1661
|
+
unlinkLogin: (id: string) => Promise<void>;
|
|
1600
1662
|
signInWithCustomAuth: (() => Promise<void>) | undefined;
|
|
1601
1663
|
signInWithPasskey: () => Promise<void>;
|
|
1602
1664
|
unlock: () => Promise<void>;
|
|
@@ -1772,4 +1834,4 @@ declare class WeakPasswordError extends Error {
|
|
|
1772
1834
|
*/
|
|
1773
1835
|
declare function validateUnlockPassword(password: string): void;
|
|
1774
1836
|
|
|
1775
|
-
export { type ActiveSession, AttestationError, type AuthProfile, type AuthResult, BUILT_IN_CHAINS, type BalanceResult, type CAIP25Method, type CAIP25SessionRequest, type CAIP25SessionResult, CHAINS, CallSequenceError, type Chain, type ChainDescriptor, type ChainId, type ChainScope, type ChainSupport, type ChainType, type ConnectMode, type ConnectResult, type DecaneConfig, type DecaneConnect, type DecaneConnectConfig, DecaneConnectError, DecaneError, DecaneErrorCode, DecaneKit, DecaneLogo, DecaneMark, type DecaneProvider, DecaneWordmark, type Eip1193Provider, EnclaveHttpError, type EthereumProviderOptions, ExportNotAuthorizedError, InvalidAccessTokenError, InvalidApiKeyError, InvalidPinError, InvalidRecoveryFileError, type KingsChatTokens, MIN_PASSWORD_LENGTH, NetworkError, NewDeviceError, OriginNotAllowedError, type PortableBackup, PromptPasswordNotConfiguredError, PromptPinNotConfiguredError, ProvisioningRateLimitedError, ProvisioningTimeoutError, ReconnectRequiredError, type RecordTransactionInput, RecoveryFailedError, type RecoveryProgress, type RecoveryShareFile, RecoveryWalletMismatchError, type SdkEvent, type SendTransactionRequest, SessionExpiredError, ShareCorruptedError, type SignMessageRequest, type SignTypedDataRequest, type SignedAuthorization, type SocialAuthState, type SocialConfig, SocialWalletModal, StaleDeviceShareError, type Theme, type TransactionRecord, type TxParams, type UnifiedWalletAccount, UnlockRequiredError, UnlockTokenRejectedError, UserCancelledError, WalletEnrolmentError, WalletExistsError, WalletSelector, WeakPasswordError, WebAuthnNotSupportedError, type WrappedShareMeta, WrongPasswordError, WrongUnlockPasswordError, createDecane, createDecaneConnect, createEthereumProvider, loginWithKingsChatPopup, startEmailAuth, useChainSwitch, useDecane, useEthereumProvider, useSendTransaction, useSignMessage, useSignTypedData, useSocialAuth, useSocialBalance, useSocialWallet, useWalletSelector, validateUnlockPassword, verifyEmailCode };
|
|
1837
|
+
export { type ActiveSession, AttestationError, type AuthProfile, type AuthResult, BUILT_IN_CHAINS, type BalanceResult, type CAIP25Method, type CAIP25SessionRequest, type CAIP25SessionResult, CHAINS, CallSequenceError, type Chain, type ChainDescriptor, type ChainId, type ChainScope, type ChainSupport, type ChainType, type ConnectMode, type ConnectResult, type DecaneConfig, type DecaneConnect, type DecaneConnectConfig, DecaneConnectError, DecaneError, DecaneErrorCode, DecaneKit, DecaneLogo, DecaneMark, type DecaneProvider, DecaneWordmark, type Eip1193Provider, EnclaveHttpError, type EthereumProviderOptions, ExportNotAuthorizedError, InvalidAccessTokenError, InvalidApiKeyError, InvalidPinError, InvalidRecoveryFileError, type KingsChatTokens, type LinkedLogin, LoginInUseError, MIN_PASSWORD_LENGTH, NetworkError, NewDeviceError, OriginNotAllowedError, type PortableBackup, PromptPasswordNotConfiguredError, PromptPinNotConfiguredError, ProvisioningRateLimitedError, ProvisioningTimeoutError, ReconnectRequiredError, type RecordTransactionInput, RecoveryFailedError, type RecoveryProgress, type RecoveryShareFile, RecoveryWalletMismatchError, type SdkEvent, type SendTransactionRequest, SessionExpiredError, ShareCorruptedError, type SignMessageRequest, type SignTypedDataRequest, type SignedAuthorization, type SocialAuthState, type SocialConfig, SocialWalletModal, StaleDeviceShareError, type Theme, type TransactionRecord, type TxParams, type UnifiedWalletAccount, UnlockRequiredError, UnlockTokenRejectedError, UserCancelledError, WalletEnrolmentError, WalletExistsError, WalletSelector, WeakPasswordError, WebAuthnNotSupportedError, type WrappedShareMeta, WrongPasswordError, WrongUnlockPasswordError, createDecane, createDecaneConnect, createEthereumProvider, loginWithKingsChatPopup, startEmailAuth, useChainSwitch, useDecane, useEthereumProvider, useSendTransaction, useSignMessage, useSignTypedData, useSocialAuth, useSocialBalance, useSocialWallet, useWalletSelector, validateUnlockPassword, verifyEmailCode };
|
package/dist/index.d.ts
CHANGED
|
@@ -94,11 +94,8 @@ interface DecaneConnectConfig {
|
|
|
94
94
|
chains: Chain[];
|
|
95
95
|
authMethods: Array<'google' | 'email' | 'phone' | 'kingschat' | 'x'>;
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* enough to establish identity. Widen only if the app actually calls
|
|
100
|
-
* KingsChat APIs on the user's behalf — the consent screen lists every scope,
|
|
101
|
-
* so asking for more than you use costs conversions.
|
|
97
|
+
* @deprecated Ignored since 2.31.0. KingsChat scopes are now set on the
|
|
98
|
+
* KingsChat project in its developer portal, not per login request.
|
|
102
99
|
*/
|
|
103
100
|
kingsChatScopes?: string[];
|
|
104
101
|
apiBaseUrl?: string;
|
|
@@ -431,6 +428,31 @@ interface DecaneConnect {
|
|
|
431
428
|
connectWithToken(token: string, opts?: {
|
|
432
429
|
providerId?: string;
|
|
433
430
|
}): Promise<ConnectResult>;
|
|
431
|
+
/**
|
|
432
|
+
* Attach a login from your own auth system to the account that is signed in
|
|
433
|
+
* now, so that login opens this same wallet from then on. The usual case:
|
|
434
|
+
* someone signed up by email adds a phone number your backend verified, and
|
|
435
|
+
* can then sign in with either. Needs a signed-in session.
|
|
436
|
+
*
|
|
437
|
+
* The token must be fresh (it carries `exp` and `iat`, and was issued in the
|
|
438
|
+
* last ten minutes). A login that already opens a different account throws
|
|
439
|
+
* LoginInUseError: accounts are never merged. Linking one that is already
|
|
440
|
+
* on this account is a no-op (`alreadyLinked: true`). Since 2.30.0.
|
|
441
|
+
*/
|
|
442
|
+
linkWithToken(token: string, opts?: {
|
|
443
|
+
providerId?: string;
|
|
444
|
+
}): Promise<{
|
|
445
|
+
alreadyLinked: boolean;
|
|
446
|
+
id?: string;
|
|
447
|
+
}>;
|
|
448
|
+
/** The logins linked to the signed-in account with linkWithToken(). Since 2.30.0. */
|
|
449
|
+
listLinkedLogins(): Promise<LinkedLogin[]>;
|
|
450
|
+
/**
|
|
451
|
+
* Remove a linked login, for "change my number": sign in, unlink the old one,
|
|
452
|
+
* link the new one. The login the account was created with cannot be removed.
|
|
453
|
+
* Since 2.30.0.
|
|
454
|
+
*/
|
|
455
|
+
unlinkLogin(id: string): Promise<void>;
|
|
434
456
|
/**
|
|
435
457
|
* Adopt a Decane access token another app of the same project handed over
|
|
436
458
|
* (in a URL, say): signed in at once, unlocked on the first signature.
|
|
@@ -700,6 +722,16 @@ interface AuthResult {
|
|
|
700
722
|
*/
|
|
701
723
|
providerSubject?: string;
|
|
702
724
|
}
|
|
725
|
+
/** A login attached to an account with linkWithToken(). */
|
|
726
|
+
interface LinkedLogin {
|
|
727
|
+
id: string;
|
|
728
|
+
providerId: string | null;
|
|
729
|
+
/** The provider's name as set in the dashboard, e.g. "World Street phone". */
|
|
730
|
+
providerName: string | null;
|
|
731
|
+
/** Masked, for display: never the full identifier. */
|
|
732
|
+
identifier: string | null;
|
|
733
|
+
linkedAt: string;
|
|
734
|
+
}
|
|
703
735
|
|
|
704
736
|
declare class ApiClient {
|
|
705
737
|
private readonly baseUrl;
|
|
@@ -730,9 +762,14 @@ declare class ApiClient {
|
|
|
730
762
|
authorizationUrl: string;
|
|
731
763
|
}>;
|
|
732
764
|
/**
|
|
733
|
-
* Exchange a KingsChat
|
|
734
|
-
*
|
|
735
|
-
*
|
|
765
|
+
* Exchange a KingsChat authorization code for a Decane session. The backend
|
|
766
|
+
* trades it with KingsChat for an access token, verifies that token (it must
|
|
767
|
+
* have been issued to this project's KingsChat app), and never stores it.
|
|
768
|
+
*/
|
|
769
|
+
authKingsChatCode(code: string): Promise<AuthResult>;
|
|
770
|
+
/**
|
|
771
|
+
* Exchange a KingsChat access token the app already holds for a Decane
|
|
772
|
+
* session. Verified the same way as a code's token, and never stored.
|
|
736
773
|
*/
|
|
737
774
|
authKingsChat(accessToken: string): Promise<AuthResult>;
|
|
738
775
|
authEmailStart(email: string): Promise<void>;
|
|
@@ -782,6 +819,16 @@ declare class ApiClient {
|
|
|
782
819
|
* provider configured.
|
|
783
820
|
*/
|
|
784
821
|
authExternal(token: string, providerId?: string): Promise<AuthResult>;
|
|
822
|
+
/** Attach a login from the project's own provider to the signed-in account. */
|
|
823
|
+
linkExternal(jwt: string, token: string, providerId?: string): Promise<{
|
|
824
|
+
linked: true;
|
|
825
|
+
alreadyLinked: boolean;
|
|
826
|
+
id?: string;
|
|
827
|
+
}>;
|
|
828
|
+
listLinkedLogins(jwt: string): Promise<{
|
|
829
|
+
logins: LinkedLogin[];
|
|
830
|
+
}>;
|
|
831
|
+
unlinkLogin(jwt: string, id: string): Promise<void>;
|
|
785
832
|
/**
|
|
786
833
|
* Returns null when this user has no server-registered passkey, which is the
|
|
787
834
|
* expected answer for wallets created before passkey sign-in existed or for
|
|
@@ -944,8 +991,8 @@ interface SocialConfig {
|
|
|
944
991
|
apiKey: string;
|
|
945
992
|
authMethods?: ("google" | "email" | "phone" | "kingschat" | "x")[];
|
|
946
993
|
/**
|
|
947
|
-
*
|
|
948
|
-
*
|
|
994
|
+
* @deprecated Ignored since 2.31.0. KingsChat scopes are now set on the
|
|
995
|
+
* KingsChat project in its developer portal, not per login request.
|
|
949
996
|
*/
|
|
950
997
|
kingsChatScopes?: string[];
|
|
951
998
|
promptPin?: () => Promise<string>;
|
|
@@ -1149,19 +1196,18 @@ declare function startEmailAuth(api: ApiClient, email: string): Promise<void>;
|
|
|
1149
1196
|
*/
|
|
1150
1197
|
declare function verifyEmailCode(api: ApiClient, email: string, code: string): Promise<AuthResult>;
|
|
1151
1198
|
|
|
1199
|
+
/** @deprecated KingsChat no longer issues tokens to a popup. */
|
|
1152
1200
|
interface KingsChatTokens {
|
|
1153
1201
|
accessToken: string;
|
|
1154
1202
|
refreshToken?: string;
|
|
1155
1203
|
expiresInMillis?: number;
|
|
1156
1204
|
}
|
|
1157
1205
|
/**
|
|
1158
|
-
*
|
|
1159
|
-
*
|
|
1160
|
-
*
|
|
1161
|
-
* blockers reject a window.open that happens after an await, which is why the
|
|
1162
|
-
* clientId is fetched by the caller *before* this runs.
|
|
1206
|
+
* @deprecated Since 2.31.0. KingsChat retired the popup login; use
|
|
1207
|
+
* `connectWithKingsChat()`, which redirects to KingsChat and finishes on the
|
|
1208
|
+
* page registered as the KingsChat application's Redirect URL.
|
|
1163
1209
|
*/
|
|
1164
|
-
declare function loginWithKingsChatPopup(
|
|
1210
|
+
declare function loginWithKingsChatPopup(_opts?: {
|
|
1165
1211
|
clientId: string;
|
|
1166
1212
|
scopes?: string[];
|
|
1167
1213
|
timeoutMs?: number;
|
|
@@ -1292,6 +1338,14 @@ declare class ExportNotAuthorizedError extends DecaneConnectError {
|
|
|
1292
1338
|
* The client discards what it generated and provisions instead; nothing for
|
|
1293
1339
|
* the caller to do, which is why this never reaches them.
|
|
1294
1340
|
*/
|
|
1341
|
+
/**
|
|
1342
|
+
* linkWithToken(): that login already opens a different account (someone signed
|
|
1343
|
+
* up with that phone number on its own, say). Decane never merges two accounts,
|
|
1344
|
+
* because each is its own key and its own addresses, so it was not linked.
|
|
1345
|
+
*/
|
|
1346
|
+
declare class LoginInUseError extends DecaneConnectError {
|
|
1347
|
+
constructor(message?: string);
|
|
1348
|
+
}
|
|
1295
1349
|
declare class WalletExistsError extends DecaneConnectError {
|
|
1296
1350
|
constructor();
|
|
1297
1351
|
}
|
|
@@ -1597,6 +1651,14 @@ declare function useSocialAuth(): {
|
|
|
1597
1651
|
providerId?: string;
|
|
1598
1652
|
}) => Promise<void>;
|
|
1599
1653
|
signInWithAccessToken: (token: string) => Promise<void>;
|
|
1654
|
+
linkWithToken: (token: string, opts?: {
|
|
1655
|
+
providerId?: string;
|
|
1656
|
+
}) => Promise<{
|
|
1657
|
+
alreadyLinked: boolean;
|
|
1658
|
+
id?: string;
|
|
1659
|
+
}>;
|
|
1660
|
+
listLinkedLogins: () => Promise<LinkedLogin[]>;
|
|
1661
|
+
unlinkLogin: (id: string) => Promise<void>;
|
|
1600
1662
|
signInWithCustomAuth: (() => Promise<void>) | undefined;
|
|
1601
1663
|
signInWithPasskey: () => Promise<void>;
|
|
1602
1664
|
unlock: () => Promise<void>;
|
|
@@ -1772,4 +1834,4 @@ declare class WeakPasswordError extends Error {
|
|
|
1772
1834
|
*/
|
|
1773
1835
|
declare function validateUnlockPassword(password: string): void;
|
|
1774
1836
|
|
|
1775
|
-
export { type ActiveSession, AttestationError, type AuthProfile, type AuthResult, BUILT_IN_CHAINS, type BalanceResult, type CAIP25Method, type CAIP25SessionRequest, type CAIP25SessionResult, CHAINS, CallSequenceError, type Chain, type ChainDescriptor, type ChainId, type ChainScope, type ChainSupport, type ChainType, type ConnectMode, type ConnectResult, type DecaneConfig, type DecaneConnect, type DecaneConnectConfig, DecaneConnectError, DecaneError, DecaneErrorCode, DecaneKit, DecaneLogo, DecaneMark, type DecaneProvider, DecaneWordmark, type Eip1193Provider, EnclaveHttpError, type EthereumProviderOptions, ExportNotAuthorizedError, InvalidAccessTokenError, InvalidApiKeyError, InvalidPinError, InvalidRecoveryFileError, type KingsChatTokens, MIN_PASSWORD_LENGTH, NetworkError, NewDeviceError, OriginNotAllowedError, type PortableBackup, PromptPasswordNotConfiguredError, PromptPinNotConfiguredError, ProvisioningRateLimitedError, ProvisioningTimeoutError, ReconnectRequiredError, type RecordTransactionInput, RecoveryFailedError, type RecoveryProgress, type RecoveryShareFile, RecoveryWalletMismatchError, type SdkEvent, type SendTransactionRequest, SessionExpiredError, ShareCorruptedError, type SignMessageRequest, type SignTypedDataRequest, type SignedAuthorization, type SocialAuthState, type SocialConfig, SocialWalletModal, StaleDeviceShareError, type Theme, type TransactionRecord, type TxParams, type UnifiedWalletAccount, UnlockRequiredError, UnlockTokenRejectedError, UserCancelledError, WalletEnrolmentError, WalletExistsError, WalletSelector, WeakPasswordError, WebAuthnNotSupportedError, type WrappedShareMeta, WrongPasswordError, WrongUnlockPasswordError, createDecane, createDecaneConnect, createEthereumProvider, loginWithKingsChatPopup, startEmailAuth, useChainSwitch, useDecane, useEthereumProvider, useSendTransaction, useSignMessage, useSignTypedData, useSocialAuth, useSocialBalance, useSocialWallet, useWalletSelector, validateUnlockPassword, verifyEmailCode };
|
|
1837
|
+
export { type ActiveSession, AttestationError, type AuthProfile, type AuthResult, BUILT_IN_CHAINS, type BalanceResult, type CAIP25Method, type CAIP25SessionRequest, type CAIP25SessionResult, CHAINS, CallSequenceError, type Chain, type ChainDescriptor, type ChainId, type ChainScope, type ChainSupport, type ChainType, type ConnectMode, type ConnectResult, type DecaneConfig, type DecaneConnect, type DecaneConnectConfig, DecaneConnectError, DecaneError, DecaneErrorCode, DecaneKit, DecaneLogo, DecaneMark, type DecaneProvider, DecaneWordmark, type Eip1193Provider, EnclaveHttpError, type EthereumProviderOptions, ExportNotAuthorizedError, InvalidAccessTokenError, InvalidApiKeyError, InvalidPinError, InvalidRecoveryFileError, type KingsChatTokens, type LinkedLogin, LoginInUseError, MIN_PASSWORD_LENGTH, NetworkError, NewDeviceError, OriginNotAllowedError, type PortableBackup, PromptPasswordNotConfiguredError, PromptPinNotConfiguredError, ProvisioningRateLimitedError, ProvisioningTimeoutError, ReconnectRequiredError, type RecordTransactionInput, RecoveryFailedError, type RecoveryProgress, type RecoveryShareFile, RecoveryWalletMismatchError, type SdkEvent, type SendTransactionRequest, SessionExpiredError, ShareCorruptedError, type SignMessageRequest, type SignTypedDataRequest, type SignedAuthorization, type SocialAuthState, type SocialConfig, SocialWalletModal, StaleDeviceShareError, type Theme, type TransactionRecord, type TxParams, type UnifiedWalletAccount, UnlockRequiredError, UnlockTokenRejectedError, UserCancelledError, WalletEnrolmentError, WalletExistsError, WalletSelector, WeakPasswordError, WebAuthnNotSupportedError, type WrappedShareMeta, WrongPasswordError, WrongUnlockPasswordError, createDecane, createDecaneConnect, createEthereumProvider, loginWithKingsChatPopup, startEmailAuth, useChainSwitch, useDecane, useEthereumProvider, useSendTransaction, useSignMessage, useSignTypedData, useSocialAuth, useSocialBalance, useSocialWallet, useWalletSelector, validateUnlockPassword, verifyEmailCode };
|