@getpara/user-management-client 2.0.0-alpha.51 → 2.0.0-alpha.53
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/cjs/index.js +3 -3
- package/dist/esm/index.js +1 -1
- package/dist/types/client.d.ts +5 -5
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils.d.ts +1 -3
- package/package.json +3 -2
- package/dist/cjs/types/auth.js +0 -120
- package/dist/cjs/types/email.js +0 -31
- package/dist/cjs/types/index.js +0 -29
- package/dist/cjs/types/onRamp.js +0 -63
- package/dist/cjs/types/partner.js +0 -15
- package/dist/cjs/types/wallet.js +0 -112
- package/dist/esm/types/auth.js +0 -88
- package/dist/esm/types/email.js +0 -9
- package/dist/esm/types/index.js +0 -5
- package/dist/esm/types/onRamp.js +0 -38
- package/dist/esm/types/partner.js +0 -0
- package/dist/esm/types/wallet.js +0 -79
- package/dist/types/types/auth.d.ts +0 -271
- package/dist/types/types/email.d.ts +0 -27
- package/dist/types/types/index.d.ts +0 -5
- package/dist/types/types/onRamp.d.ts +0 -69
- package/dist/types/types/partner.d.ts +0 -21
- package/dist/types/types/wallet.d.ts +0 -79
package/dist/cjs/index.js
CHANGED
|
@@ -32,15 +32,15 @@ __export(src_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(src_exports);
|
|
34
34
|
__reExport(src_exports, require("./client.js"), module.exports);
|
|
35
|
-
__reExport(src_exports, require("./types/index.js"), module.exports);
|
|
36
35
|
__reExport(src_exports, require("./utils.js"), module.exports);
|
|
37
36
|
__reExport(src_exports, require("./error.js"), module.exports);
|
|
37
|
+
__reExport(src_exports, require("@getpara/shared"), module.exports);
|
|
38
38
|
var import_client = __toESM(require("./client.js"));
|
|
39
39
|
var src_default = import_client.default;
|
|
40
40
|
// Annotate the CommonJS export names for ESM import in node:
|
|
41
41
|
0 && (module.exports = {
|
|
42
42
|
...require("./client.js"),
|
|
43
|
-
...require("./types/index.js"),
|
|
44
43
|
...require("./utils.js"),
|
|
45
|
-
...require("./error.js")
|
|
44
|
+
...require("./error.js"),
|
|
45
|
+
...require("@getpara/shared")
|
|
46
46
|
});
|
package/dist/esm/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./chunk-BBZEL7EG.js";
|
|
2
2
|
export * from "./client.js";
|
|
3
|
-
export * from "./types/index.js";
|
|
4
3
|
export * from "./utils.js";
|
|
5
4
|
export * from "./error.js";
|
|
5
|
+
export * from "@getpara/shared";
|
|
6
6
|
import Client from "./client.js";
|
|
7
7
|
var src_default = Client;
|
|
8
8
|
export {
|
package/dist/types/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { AccountMetadata, Auth, AuthIdentifier, AuthMethod, BackupKitEmailProps, BiometricLocationHint, Chain, CurrentWalletIds, EncryptedKeyShare, EncryptorType, ExternalWalletInfo, LoginExternalWalletResponse, KeyShareType, Network, OnRampAsset, OnRampConfig, OnRampProvider, OnRampPurchase, OnRampPurchaseCreateParams, OnRampPurchaseUpdateParams,
|
|
2
|
+
import { AccountMetadata, Auth, AuthIdentifier, AuthMethod, BackupKitEmailProps, BiometricLocationHint, Chain, CurrentWalletIds, EncryptedKeyShare, EncryptorType, ExternalWalletInfo, LoginExternalWalletResponse, KeyShareType, Network, OnRampAsset, OnRampConfig, OnRampProvider, OnRampPurchase, OnRampPurchaseCreateParams, OnRampPurchaseUpdateParams, AuthMethodStatus, PregenIds, PrimaryAuth, PublicKeyType, ServerAuthStateSignup, SessionInfo, Setup2faResponse, SignUpOrLogInResponse, TelegramAuthResponse, TPregenIdentifierType, VerificationEmailProps, VerifiedAuth, VerifyFarcasterResponse, VerifyTelegramResponse, VerifyThirdPartyAuth, WalletEntity, WalletParams, TWalletScheme, TWalletType, VerifyExternalWalletParams, IssueJwtParams, IssueJwtResponse, LinkAccountParams, LinkedAccounts, ResendVerificationCodeParams, LegacyAuthMethod, PrimaryAuthInfo, ServerAuthStateLogin } from '@getpara/shared';
|
|
3
3
|
interface ConfigOpts {
|
|
4
4
|
useFetchAdapter?: boolean;
|
|
5
5
|
}
|
|
@@ -27,7 +27,7 @@ interface getWebChallengeRes {
|
|
|
27
27
|
interface sessionPublicKeyBody {
|
|
28
28
|
publicKey?: string;
|
|
29
29
|
sigDerivedPublicKey?: string;
|
|
30
|
-
status?:
|
|
30
|
+
status?: AuthMethodStatus;
|
|
31
31
|
type?: PublicKeyType;
|
|
32
32
|
cosePublicKey?: string;
|
|
33
33
|
clientDataJSON?: string;
|
|
@@ -65,7 +65,7 @@ interface GetWalletsRes {
|
|
|
65
65
|
interface PasswordEntity {
|
|
66
66
|
id: string;
|
|
67
67
|
userId: string;
|
|
68
|
-
status:
|
|
68
|
+
status: AuthMethodStatus;
|
|
69
69
|
sigDerivedPublicKey: string;
|
|
70
70
|
salt: string;
|
|
71
71
|
isPIN?: boolean;
|
|
@@ -114,7 +114,7 @@ interface AcceptScopesBody {
|
|
|
114
114
|
partnerId: string;
|
|
115
115
|
}
|
|
116
116
|
interface sessionPasswordBody {
|
|
117
|
-
status?:
|
|
117
|
+
status?: AuthMethodStatus;
|
|
118
118
|
sigDerivedPublicKey?: string;
|
|
119
119
|
salt?: string;
|
|
120
120
|
encryptedWalletPrivateKey?: string;
|
|
@@ -309,7 +309,7 @@ declare class Client {
|
|
|
309
309
|
getOnRampPurchase({ userId, purchaseId, ...params }: {
|
|
310
310
|
userId: string;
|
|
311
311
|
purchaseId: string;
|
|
312
|
-
} & WalletParams): Promise<AxiosResponse<
|
|
312
|
+
} & WalletParams): Promise<AxiosResponse<import("@getpara/shared").IOnRampPurchase, any>>;
|
|
313
313
|
signMoonPayUrl(userId: string, { url, type, cosmosPrefix, testMode, walletId, externalWalletAddress, }: {
|
|
314
314
|
url: string;
|
|
315
315
|
type: TWalletType;
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/utils.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { Auth, AuthInfo, AuthParams, PrimaryAuth, PrimaryAuthInfo, VerifiedAuth, WalletParams, WalletRef } from '
|
|
2
|
-
import { AccountMetadata, AccountMetadataKey, LinkedAccounts, PregenAuth, PregenAuthInfo, PregenOrGuestAuth } from './types/auth.js';
|
|
3
|
-
import { PregenIds, TPregenIdentifierType } from './types/wallet.js';
|
|
1
|
+
import { Auth, AuthInfo, AuthParams, PrimaryAuth, PrimaryAuthInfo, VerifiedAuth, WalletParams, WalletRef, AccountMetadata, AccountMetadataKey, LinkedAccounts, PregenAuth, PregenAuthInfo, PregenOrGuestAuth, PregenIds, TPregenIdentifierType } from '@getpara/shared';
|
|
4
2
|
export declare function isWalletId(params: WalletParams): params is {
|
|
5
3
|
walletId: string;
|
|
6
4
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/user-management-client",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.53",
|
|
4
4
|
"dependencies": {
|
|
5
|
+
"@getpara/shared": "1.0.2",
|
|
5
6
|
"axios": "^1.8.4",
|
|
6
7
|
"libphonenumber-js": "^1.11.7"
|
|
7
8
|
},
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
"dist",
|
|
20
21
|
"package.json"
|
|
21
22
|
],
|
|
22
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "ad18fa268a41b0e4c080fa8349553fb546983513",
|
|
23
24
|
"main": "dist/cjs/index.js",
|
|
24
25
|
"module": "dist/esm/index.js",
|
|
25
26
|
"scripts": {
|
package/dist/cjs/types/auth.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var auth_exports = {};
|
|
19
|
-
__export(auth_exports, {
|
|
20
|
-
AUTH_TYPES: () => AUTH_TYPES,
|
|
21
|
-
AuthMethod: () => AuthMethod,
|
|
22
|
-
EncryptorType: () => EncryptorType,
|
|
23
|
-
KeyShareType: () => KeyShareType,
|
|
24
|
-
LINKED_ACCOUNT_TYPES: () => LINKED_ACCOUNT_TYPES,
|
|
25
|
-
LegacyAuthMethod: () => LegacyAuthMethod,
|
|
26
|
-
OAUTH_METHODS: () => OAUTH_METHODS,
|
|
27
|
-
OAuthMethod: () => OAuthMethod,
|
|
28
|
-
PasswordStatus: () => PasswordStatus,
|
|
29
|
-
PublicKeyStatus: () => PublicKeyStatus,
|
|
30
|
-
PublicKeyType: () => PublicKeyType
|
|
31
|
-
});
|
|
32
|
-
module.exports = __toCommonJS(auth_exports);
|
|
33
|
-
const AUTH_TYPES = [
|
|
34
|
-
"email",
|
|
35
|
-
"phone",
|
|
36
|
-
"phoneLegacy",
|
|
37
|
-
"farcaster",
|
|
38
|
-
"telegram",
|
|
39
|
-
"userId",
|
|
40
|
-
"externalWallet",
|
|
41
|
-
"discord",
|
|
42
|
-
"x",
|
|
43
|
-
"customId",
|
|
44
|
-
"guestId"
|
|
45
|
-
];
|
|
46
|
-
var EncryptorType = /* @__PURE__ */ ((EncryptorType2) => {
|
|
47
|
-
EncryptorType2["USER"] = "USER";
|
|
48
|
-
EncryptorType2["RECOVERY"] = "RECOVERY";
|
|
49
|
-
EncryptorType2["BIOMETRICS"] = "BIOMETRICS";
|
|
50
|
-
EncryptorType2["PASSWORD"] = "PASSWORD";
|
|
51
|
-
return EncryptorType2;
|
|
52
|
-
})(EncryptorType || {});
|
|
53
|
-
var KeyShareType = /* @__PURE__ */ ((KeyShareType2) => {
|
|
54
|
-
KeyShareType2["USER"] = "USER";
|
|
55
|
-
KeyShareType2["RECOVERY"] = "RECOVERY";
|
|
56
|
-
return KeyShareType2;
|
|
57
|
-
})(KeyShareType || {});
|
|
58
|
-
var PasswordStatus = /* @__PURE__ */ ((PasswordStatus2) => {
|
|
59
|
-
PasswordStatus2["PENDING"] = "PENDING";
|
|
60
|
-
PasswordStatus2["COMPLETE"] = "COMPLETE";
|
|
61
|
-
return PasswordStatus2;
|
|
62
|
-
})(PasswordStatus || {});
|
|
63
|
-
var PublicKeyStatus = /* @__PURE__ */ ((PublicKeyStatus2) => {
|
|
64
|
-
PublicKeyStatus2["PENDING"] = "PENDING";
|
|
65
|
-
PublicKeyStatus2["COMPLETE"] = "COMPLETE";
|
|
66
|
-
return PublicKeyStatus2;
|
|
67
|
-
})(PublicKeyStatus || {});
|
|
68
|
-
var PublicKeyType = /* @__PURE__ */ ((PublicKeyType2) => {
|
|
69
|
-
PublicKeyType2["MOBILE"] = "MOBILE";
|
|
70
|
-
PublicKeyType2["WEB"] = "WEB";
|
|
71
|
-
return PublicKeyType2;
|
|
72
|
-
})(PublicKeyType || {});
|
|
73
|
-
var OAuthMethod = /* @__PURE__ */ ((OAuthMethod2) => {
|
|
74
|
-
OAuthMethod2["GOOGLE"] = "GOOGLE";
|
|
75
|
-
OAuthMethod2["TWITTER"] = "TWITTER";
|
|
76
|
-
OAuthMethod2["APPLE"] = "APPLE";
|
|
77
|
-
OAuthMethod2["DISCORD"] = "DISCORD";
|
|
78
|
-
OAuthMethod2["FACEBOOK"] = "FACEBOOK";
|
|
79
|
-
OAuthMethod2["FARCASTER"] = "FARCASTER";
|
|
80
|
-
OAuthMethod2["TELEGRAM"] = "TELEGRAM";
|
|
81
|
-
return OAuthMethod2;
|
|
82
|
-
})(OAuthMethod || {});
|
|
83
|
-
const OAUTH_METHODS = ["GOOGLE", "TWITTER", "APPLE", "DISCORD", "FACEBOOK", "FARCASTER", "TELEGRAM"];
|
|
84
|
-
const LINKED_ACCOUNT_TYPES = [
|
|
85
|
-
"EMAIL",
|
|
86
|
-
"PHONE",
|
|
87
|
-
"GOOGLE",
|
|
88
|
-
"FACEBOOK",
|
|
89
|
-
"APPLE",
|
|
90
|
-
"TWITTER",
|
|
91
|
-
"DISCORD",
|
|
92
|
-
"TELEGRAM",
|
|
93
|
-
"FARCASTER",
|
|
94
|
-
"EXTERNAL_WALLET"
|
|
95
|
-
];
|
|
96
|
-
var AuthMethod = /* @__PURE__ */ ((AuthMethod2) => {
|
|
97
|
-
AuthMethod2["PASSWORD"] = "PASSWORD";
|
|
98
|
-
AuthMethod2["PASSKEY"] = "PASSKEY";
|
|
99
|
-
AuthMethod2["PIN"] = "PIN";
|
|
100
|
-
return AuthMethod2;
|
|
101
|
-
})(AuthMethod || {});
|
|
102
|
-
var LegacyAuthMethod = /* @__PURE__ */ ((LegacyAuthMethod2) => {
|
|
103
|
-
LegacyAuthMethod2["PASSWORD"] = "PASSWORD";
|
|
104
|
-
LegacyAuthMethod2["BIOMETRIC"] = "BIOMETRIC";
|
|
105
|
-
return LegacyAuthMethod2;
|
|
106
|
-
})(LegacyAuthMethod || {});
|
|
107
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
108
|
-
0 && (module.exports = {
|
|
109
|
-
AUTH_TYPES,
|
|
110
|
-
AuthMethod,
|
|
111
|
-
EncryptorType,
|
|
112
|
-
KeyShareType,
|
|
113
|
-
LINKED_ACCOUNT_TYPES,
|
|
114
|
-
LegacyAuthMethod,
|
|
115
|
-
OAUTH_METHODS,
|
|
116
|
-
OAuthMethod,
|
|
117
|
-
PasswordStatus,
|
|
118
|
-
PublicKeyStatus,
|
|
119
|
-
PublicKeyType
|
|
120
|
-
});
|
package/dist/cjs/types/email.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var email_exports = {};
|
|
19
|
-
__export(email_exports, {
|
|
20
|
-
EmailTheme: () => EmailTheme
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(email_exports);
|
|
23
|
-
var EmailTheme = /* @__PURE__ */ ((EmailTheme2) => {
|
|
24
|
-
EmailTheme2["LIGHT"] = "light";
|
|
25
|
-
EmailTheme2["DARK"] = "dark";
|
|
26
|
-
return EmailTheme2;
|
|
27
|
-
})(EmailTheme || {});
|
|
28
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
-
0 && (module.exports = {
|
|
30
|
-
EmailTheme
|
|
31
|
-
});
|
package/dist/cjs/types/index.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
}
|
|
11
|
-
return to;
|
|
12
|
-
};
|
|
13
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var types_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(types_exports);
|
|
17
|
-
__reExport(types_exports, require("./auth.js"), module.exports);
|
|
18
|
-
__reExport(types_exports, require("./email.js"), module.exports);
|
|
19
|
-
__reExport(types_exports, require("./onRamp.js"), module.exports);
|
|
20
|
-
__reExport(types_exports, require("./partner.js"), module.exports);
|
|
21
|
-
__reExport(types_exports, require("./wallet.js"), module.exports);
|
|
22
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
23
|
-
0 && (module.exports = {
|
|
24
|
-
...require("./auth.js"),
|
|
25
|
-
...require("./email.js"),
|
|
26
|
-
...require("./onRamp.js"),
|
|
27
|
-
...require("./partner.js"),
|
|
28
|
-
...require("./wallet.js")
|
|
29
|
-
});
|
package/dist/cjs/types/onRamp.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var onRamp_exports = {};
|
|
19
|
-
__export(onRamp_exports, {
|
|
20
|
-
OnRampAsset: () => OnRampAsset,
|
|
21
|
-
OnRampProvider: () => OnRampProvider,
|
|
22
|
-
OnRampPurchaseStatus: () => OnRampPurchaseStatus,
|
|
23
|
-
OnRampPurchaseType: () => OnRampPurchaseType
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(onRamp_exports);
|
|
26
|
-
var OnRampProvider = /* @__PURE__ */ ((OnRampProvider2) => {
|
|
27
|
-
OnRampProvider2["RAMP"] = "RAMP";
|
|
28
|
-
OnRampProvider2["STRIPE"] = "STRIPE";
|
|
29
|
-
OnRampProvider2["MOONPAY"] = "MOONPAY";
|
|
30
|
-
return OnRampProvider2;
|
|
31
|
-
})(OnRampProvider || {});
|
|
32
|
-
var OnRampAsset = /* @__PURE__ */ ((OnRampAsset2) => {
|
|
33
|
-
OnRampAsset2["ETHEREUM"] = "ETHEREUM";
|
|
34
|
-
OnRampAsset2["USDC"] = "USDC";
|
|
35
|
-
OnRampAsset2["TETHER"] = "TETHER";
|
|
36
|
-
OnRampAsset2["POLYGON"] = "POLYGON";
|
|
37
|
-
OnRampAsset2["SOLANA"] = "SOLANA";
|
|
38
|
-
OnRampAsset2["ATOM"] = "ATOM";
|
|
39
|
-
OnRampAsset2["CELO"] = "CELO";
|
|
40
|
-
OnRampAsset2["CUSD"] = "CUSD";
|
|
41
|
-
OnRampAsset2["CEUR"] = "CEUR";
|
|
42
|
-
OnRampAsset2["CREAL"] = "CREAL";
|
|
43
|
-
OnRampAsset2["BERA"] = "BERA";
|
|
44
|
-
return OnRampAsset2;
|
|
45
|
-
})(OnRampAsset || {});
|
|
46
|
-
var OnRampPurchaseStatus = /* @__PURE__ */ ((OnRampPurchaseStatus2) => {
|
|
47
|
-
OnRampPurchaseStatus2["INITIATED"] = "INITIATED";
|
|
48
|
-
OnRampPurchaseStatus2["FINISHED"] = "FINISHED";
|
|
49
|
-
OnRampPurchaseStatus2["CANCELLED"] = "CANCELLED";
|
|
50
|
-
return OnRampPurchaseStatus2;
|
|
51
|
-
})(OnRampPurchaseStatus || {});
|
|
52
|
-
var OnRampPurchaseType = /* @__PURE__ */ ((OnRampPurchaseType2) => {
|
|
53
|
-
OnRampPurchaseType2["BUY"] = "BUY";
|
|
54
|
-
OnRampPurchaseType2["SELL"] = "SELL";
|
|
55
|
-
return OnRampPurchaseType2;
|
|
56
|
-
})(OnRampPurchaseType || {});
|
|
57
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
58
|
-
0 && (module.exports = {
|
|
59
|
-
OnRampAsset,
|
|
60
|
-
OnRampProvider,
|
|
61
|
-
OnRampPurchaseStatus,
|
|
62
|
-
OnRampPurchaseType
|
|
63
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
}
|
|
11
|
-
return to;
|
|
12
|
-
};
|
|
13
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
-
var partner_exports = {};
|
|
15
|
-
module.exports = __toCommonJS(partner_exports);
|
package/dist/cjs/types/wallet.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var wallet_exports = {};
|
|
19
|
-
__export(wallet_exports, {
|
|
20
|
-
COSMOS_WALLETS: () => COSMOS_WALLETS,
|
|
21
|
-
Chain: () => Chain,
|
|
22
|
-
EVM_WALLETS: () => EVM_WALLETS,
|
|
23
|
-
EXTERNAL_WALLET_TYPES: () => EXTERNAL_WALLET_TYPES,
|
|
24
|
-
NON_ED25519: () => NON_ED25519,
|
|
25
|
-
Network: () => Network,
|
|
26
|
-
PREGEN_IDENTIFIER_TYPES: () => PREGEN_IDENTIFIER_TYPES,
|
|
27
|
-
SOLANA_WALLETS: () => SOLANA_WALLETS,
|
|
28
|
-
WALLET_SCHEMES: () => WALLET_SCHEMES,
|
|
29
|
-
WALLET_TYPES: () => WALLET_TYPES,
|
|
30
|
-
WalletScheme: () => WalletScheme,
|
|
31
|
-
WalletType: () => WalletType
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(wallet_exports);
|
|
34
|
-
var WalletScheme = /* @__PURE__ */ ((WalletScheme2) => {
|
|
35
|
-
WalletScheme2["DKLS"] = "DKLS";
|
|
36
|
-
WalletScheme2["CGGMP"] = "CGGMP";
|
|
37
|
-
WalletScheme2["ED25519"] = "ED25519";
|
|
38
|
-
return WalletScheme2;
|
|
39
|
-
})(WalletScheme || {});
|
|
40
|
-
const WALLET_SCHEMES = ["DKLS", "CGGMP", "ED25519"];
|
|
41
|
-
var WalletType = /* @__PURE__ */ ((WalletType2) => {
|
|
42
|
-
WalletType2["EVM"] = "EVM";
|
|
43
|
-
WalletType2["SOLANA"] = "SOLANA";
|
|
44
|
-
WalletType2["COSMOS"] = "COSMOS";
|
|
45
|
-
return WalletType2;
|
|
46
|
-
})(WalletType || {});
|
|
47
|
-
const WALLET_TYPES = ["EVM", "SOLANA", "COSMOS"];
|
|
48
|
-
var Chain = /* @__PURE__ */ ((Chain2) => {
|
|
49
|
-
Chain2["ETH"] = "ETH";
|
|
50
|
-
Chain2["CELO"] = "CELO";
|
|
51
|
-
Chain2["MATIC"] = "MATIC";
|
|
52
|
-
return Chain2;
|
|
53
|
-
})(Chain || {});
|
|
54
|
-
var Network = /* @__PURE__ */ ((Network2) => {
|
|
55
|
-
Network2["ETHEREUM"] = "ETHEREUM";
|
|
56
|
-
Network2["SEPOLIA"] = "SEPOLIA";
|
|
57
|
-
Network2["ARBITRUM"] = "ARBITRUM";
|
|
58
|
-
Network2["BASE"] = "BASE";
|
|
59
|
-
Network2["OPTIMISM"] = "OPTIMISM";
|
|
60
|
-
Network2["POLYGON"] = "POLYGON";
|
|
61
|
-
Network2["SOLANA"] = "SOLANA";
|
|
62
|
-
Network2["COSMOS"] = "COSMOS";
|
|
63
|
-
Network2["CELO"] = "CELO";
|
|
64
|
-
Network2["NOBLE"] = "NOBLE";
|
|
65
|
-
Network2["SOLANA_DEVNET"] = "SOLANA_DEVNET";
|
|
66
|
-
Network2["BERACHAIN"] = "BERACHAIN";
|
|
67
|
-
return Network2;
|
|
68
|
-
})(Network || {});
|
|
69
|
-
const PREGEN_IDENTIFIER_TYPES = [
|
|
70
|
-
"EMAIL",
|
|
71
|
-
"PHONE",
|
|
72
|
-
"CUSTOM_ID",
|
|
73
|
-
"GUEST_ID",
|
|
74
|
-
"DISCORD",
|
|
75
|
-
"TWITTER",
|
|
76
|
-
"TELEGRAM",
|
|
77
|
-
"FARCASTER"
|
|
78
|
-
];
|
|
79
|
-
const NON_ED25519 = ["DKLS", "CGGMP"];
|
|
80
|
-
const EVM_WALLETS = [
|
|
81
|
-
"METAMASK",
|
|
82
|
-
"RAINBOW",
|
|
83
|
-
"COINBASE",
|
|
84
|
-
"WALLETCONNECT",
|
|
85
|
-
"FARCASTER",
|
|
86
|
-
"ZERION",
|
|
87
|
-
"SAFE",
|
|
88
|
-
"RABBY",
|
|
89
|
-
"OKX",
|
|
90
|
-
"HAHA",
|
|
91
|
-
"BACKPACK",
|
|
92
|
-
"PHANTOM",
|
|
93
|
-
"VALORA"
|
|
94
|
-
];
|
|
95
|
-
const SOLANA_WALLETS = ["PHANTOM", "GLOW", "BACKPACK", "SOLFLARE"];
|
|
96
|
-
const COSMOS_WALLETS = ["KEPLR", "LEAP", "COSMOSTATION"];
|
|
97
|
-
const EXTERNAL_WALLET_TYPES = [.../* @__PURE__ */ new Set([...EVM_WALLETS, ...SOLANA_WALLETS, ...COSMOS_WALLETS])];
|
|
98
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
99
|
-
0 && (module.exports = {
|
|
100
|
-
COSMOS_WALLETS,
|
|
101
|
-
Chain,
|
|
102
|
-
EVM_WALLETS,
|
|
103
|
-
EXTERNAL_WALLET_TYPES,
|
|
104
|
-
NON_ED25519,
|
|
105
|
-
Network,
|
|
106
|
-
PREGEN_IDENTIFIER_TYPES,
|
|
107
|
-
SOLANA_WALLETS,
|
|
108
|
-
WALLET_SCHEMES,
|
|
109
|
-
WALLET_TYPES,
|
|
110
|
-
WalletScheme,
|
|
111
|
-
WalletType
|
|
112
|
-
});
|
package/dist/esm/types/auth.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import "../chunk-BBZEL7EG.js";
|
|
2
|
-
const AUTH_TYPES = [
|
|
3
|
-
"email",
|
|
4
|
-
"phone",
|
|
5
|
-
"phoneLegacy",
|
|
6
|
-
"farcaster",
|
|
7
|
-
"telegram",
|
|
8
|
-
"userId",
|
|
9
|
-
"externalWallet",
|
|
10
|
-
"discord",
|
|
11
|
-
"x",
|
|
12
|
-
"customId",
|
|
13
|
-
"guestId"
|
|
14
|
-
];
|
|
15
|
-
var EncryptorType = /* @__PURE__ */ ((EncryptorType2) => {
|
|
16
|
-
EncryptorType2["USER"] = "USER";
|
|
17
|
-
EncryptorType2["RECOVERY"] = "RECOVERY";
|
|
18
|
-
EncryptorType2["BIOMETRICS"] = "BIOMETRICS";
|
|
19
|
-
EncryptorType2["PASSWORD"] = "PASSWORD";
|
|
20
|
-
return EncryptorType2;
|
|
21
|
-
})(EncryptorType || {});
|
|
22
|
-
var KeyShareType = /* @__PURE__ */ ((KeyShareType2) => {
|
|
23
|
-
KeyShareType2["USER"] = "USER";
|
|
24
|
-
KeyShareType2["RECOVERY"] = "RECOVERY";
|
|
25
|
-
return KeyShareType2;
|
|
26
|
-
})(KeyShareType || {});
|
|
27
|
-
var PasswordStatus = /* @__PURE__ */ ((PasswordStatus2) => {
|
|
28
|
-
PasswordStatus2["PENDING"] = "PENDING";
|
|
29
|
-
PasswordStatus2["COMPLETE"] = "COMPLETE";
|
|
30
|
-
return PasswordStatus2;
|
|
31
|
-
})(PasswordStatus || {});
|
|
32
|
-
var PublicKeyStatus = /* @__PURE__ */ ((PublicKeyStatus2) => {
|
|
33
|
-
PublicKeyStatus2["PENDING"] = "PENDING";
|
|
34
|
-
PublicKeyStatus2["COMPLETE"] = "COMPLETE";
|
|
35
|
-
return PublicKeyStatus2;
|
|
36
|
-
})(PublicKeyStatus || {});
|
|
37
|
-
var PublicKeyType = /* @__PURE__ */ ((PublicKeyType2) => {
|
|
38
|
-
PublicKeyType2["MOBILE"] = "MOBILE";
|
|
39
|
-
PublicKeyType2["WEB"] = "WEB";
|
|
40
|
-
return PublicKeyType2;
|
|
41
|
-
})(PublicKeyType || {});
|
|
42
|
-
var OAuthMethod = /* @__PURE__ */ ((OAuthMethod2) => {
|
|
43
|
-
OAuthMethod2["GOOGLE"] = "GOOGLE";
|
|
44
|
-
OAuthMethod2["TWITTER"] = "TWITTER";
|
|
45
|
-
OAuthMethod2["APPLE"] = "APPLE";
|
|
46
|
-
OAuthMethod2["DISCORD"] = "DISCORD";
|
|
47
|
-
OAuthMethod2["FACEBOOK"] = "FACEBOOK";
|
|
48
|
-
OAuthMethod2["FARCASTER"] = "FARCASTER";
|
|
49
|
-
OAuthMethod2["TELEGRAM"] = "TELEGRAM";
|
|
50
|
-
return OAuthMethod2;
|
|
51
|
-
})(OAuthMethod || {});
|
|
52
|
-
const OAUTH_METHODS = ["GOOGLE", "TWITTER", "APPLE", "DISCORD", "FACEBOOK", "FARCASTER", "TELEGRAM"];
|
|
53
|
-
const LINKED_ACCOUNT_TYPES = [
|
|
54
|
-
"EMAIL",
|
|
55
|
-
"PHONE",
|
|
56
|
-
"GOOGLE",
|
|
57
|
-
"FACEBOOK",
|
|
58
|
-
"APPLE",
|
|
59
|
-
"TWITTER",
|
|
60
|
-
"DISCORD",
|
|
61
|
-
"TELEGRAM",
|
|
62
|
-
"FARCASTER",
|
|
63
|
-
"EXTERNAL_WALLET"
|
|
64
|
-
];
|
|
65
|
-
var AuthMethod = /* @__PURE__ */ ((AuthMethod2) => {
|
|
66
|
-
AuthMethod2["PASSWORD"] = "PASSWORD";
|
|
67
|
-
AuthMethod2["PASSKEY"] = "PASSKEY";
|
|
68
|
-
AuthMethod2["PIN"] = "PIN";
|
|
69
|
-
return AuthMethod2;
|
|
70
|
-
})(AuthMethod || {});
|
|
71
|
-
var LegacyAuthMethod = /* @__PURE__ */ ((LegacyAuthMethod2) => {
|
|
72
|
-
LegacyAuthMethod2["PASSWORD"] = "PASSWORD";
|
|
73
|
-
LegacyAuthMethod2["BIOMETRIC"] = "BIOMETRIC";
|
|
74
|
-
return LegacyAuthMethod2;
|
|
75
|
-
})(LegacyAuthMethod || {});
|
|
76
|
-
export {
|
|
77
|
-
AUTH_TYPES,
|
|
78
|
-
AuthMethod,
|
|
79
|
-
EncryptorType,
|
|
80
|
-
KeyShareType,
|
|
81
|
-
LINKED_ACCOUNT_TYPES,
|
|
82
|
-
LegacyAuthMethod,
|
|
83
|
-
OAUTH_METHODS,
|
|
84
|
-
OAuthMethod,
|
|
85
|
-
PasswordStatus,
|
|
86
|
-
PublicKeyStatus,
|
|
87
|
-
PublicKeyType
|
|
88
|
-
};
|
package/dist/esm/types/email.js
DELETED
package/dist/esm/types/index.js
DELETED
package/dist/esm/types/onRamp.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import "../chunk-BBZEL7EG.js";
|
|
2
|
-
var OnRampProvider = /* @__PURE__ */ ((OnRampProvider2) => {
|
|
3
|
-
OnRampProvider2["RAMP"] = "RAMP";
|
|
4
|
-
OnRampProvider2["STRIPE"] = "STRIPE";
|
|
5
|
-
OnRampProvider2["MOONPAY"] = "MOONPAY";
|
|
6
|
-
return OnRampProvider2;
|
|
7
|
-
})(OnRampProvider || {});
|
|
8
|
-
var OnRampAsset = /* @__PURE__ */ ((OnRampAsset2) => {
|
|
9
|
-
OnRampAsset2["ETHEREUM"] = "ETHEREUM";
|
|
10
|
-
OnRampAsset2["USDC"] = "USDC";
|
|
11
|
-
OnRampAsset2["TETHER"] = "TETHER";
|
|
12
|
-
OnRampAsset2["POLYGON"] = "POLYGON";
|
|
13
|
-
OnRampAsset2["SOLANA"] = "SOLANA";
|
|
14
|
-
OnRampAsset2["ATOM"] = "ATOM";
|
|
15
|
-
OnRampAsset2["CELO"] = "CELO";
|
|
16
|
-
OnRampAsset2["CUSD"] = "CUSD";
|
|
17
|
-
OnRampAsset2["CEUR"] = "CEUR";
|
|
18
|
-
OnRampAsset2["CREAL"] = "CREAL";
|
|
19
|
-
OnRampAsset2["BERA"] = "BERA";
|
|
20
|
-
return OnRampAsset2;
|
|
21
|
-
})(OnRampAsset || {});
|
|
22
|
-
var OnRampPurchaseStatus = /* @__PURE__ */ ((OnRampPurchaseStatus2) => {
|
|
23
|
-
OnRampPurchaseStatus2["INITIATED"] = "INITIATED";
|
|
24
|
-
OnRampPurchaseStatus2["FINISHED"] = "FINISHED";
|
|
25
|
-
OnRampPurchaseStatus2["CANCELLED"] = "CANCELLED";
|
|
26
|
-
return OnRampPurchaseStatus2;
|
|
27
|
-
})(OnRampPurchaseStatus || {});
|
|
28
|
-
var OnRampPurchaseType = /* @__PURE__ */ ((OnRampPurchaseType2) => {
|
|
29
|
-
OnRampPurchaseType2["BUY"] = "BUY";
|
|
30
|
-
OnRampPurchaseType2["SELL"] = "SELL";
|
|
31
|
-
return OnRampPurchaseType2;
|
|
32
|
-
})(OnRampPurchaseType || {});
|
|
33
|
-
export {
|
|
34
|
-
OnRampAsset,
|
|
35
|
-
OnRampProvider,
|
|
36
|
-
OnRampPurchaseStatus,
|
|
37
|
-
OnRampPurchaseType
|
|
38
|
-
};
|
|
File without changes
|
package/dist/esm/types/wallet.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import "../chunk-BBZEL7EG.js";
|
|
2
|
-
var WalletScheme = /* @__PURE__ */ ((WalletScheme2) => {
|
|
3
|
-
WalletScheme2["DKLS"] = "DKLS";
|
|
4
|
-
WalletScheme2["CGGMP"] = "CGGMP";
|
|
5
|
-
WalletScheme2["ED25519"] = "ED25519";
|
|
6
|
-
return WalletScheme2;
|
|
7
|
-
})(WalletScheme || {});
|
|
8
|
-
const WALLET_SCHEMES = ["DKLS", "CGGMP", "ED25519"];
|
|
9
|
-
var WalletType = /* @__PURE__ */ ((WalletType2) => {
|
|
10
|
-
WalletType2["EVM"] = "EVM";
|
|
11
|
-
WalletType2["SOLANA"] = "SOLANA";
|
|
12
|
-
WalletType2["COSMOS"] = "COSMOS";
|
|
13
|
-
return WalletType2;
|
|
14
|
-
})(WalletType || {});
|
|
15
|
-
const WALLET_TYPES = ["EVM", "SOLANA", "COSMOS"];
|
|
16
|
-
var Chain = /* @__PURE__ */ ((Chain2) => {
|
|
17
|
-
Chain2["ETH"] = "ETH";
|
|
18
|
-
Chain2["CELO"] = "CELO";
|
|
19
|
-
Chain2["MATIC"] = "MATIC";
|
|
20
|
-
return Chain2;
|
|
21
|
-
})(Chain || {});
|
|
22
|
-
var Network = /* @__PURE__ */ ((Network2) => {
|
|
23
|
-
Network2["ETHEREUM"] = "ETHEREUM";
|
|
24
|
-
Network2["SEPOLIA"] = "SEPOLIA";
|
|
25
|
-
Network2["ARBITRUM"] = "ARBITRUM";
|
|
26
|
-
Network2["BASE"] = "BASE";
|
|
27
|
-
Network2["OPTIMISM"] = "OPTIMISM";
|
|
28
|
-
Network2["POLYGON"] = "POLYGON";
|
|
29
|
-
Network2["SOLANA"] = "SOLANA";
|
|
30
|
-
Network2["COSMOS"] = "COSMOS";
|
|
31
|
-
Network2["CELO"] = "CELO";
|
|
32
|
-
Network2["NOBLE"] = "NOBLE";
|
|
33
|
-
Network2["SOLANA_DEVNET"] = "SOLANA_DEVNET";
|
|
34
|
-
Network2["BERACHAIN"] = "BERACHAIN";
|
|
35
|
-
return Network2;
|
|
36
|
-
})(Network || {});
|
|
37
|
-
const PREGEN_IDENTIFIER_TYPES = [
|
|
38
|
-
"EMAIL",
|
|
39
|
-
"PHONE",
|
|
40
|
-
"CUSTOM_ID",
|
|
41
|
-
"GUEST_ID",
|
|
42
|
-
"DISCORD",
|
|
43
|
-
"TWITTER",
|
|
44
|
-
"TELEGRAM",
|
|
45
|
-
"FARCASTER"
|
|
46
|
-
];
|
|
47
|
-
const NON_ED25519 = ["DKLS", "CGGMP"];
|
|
48
|
-
const EVM_WALLETS = [
|
|
49
|
-
"METAMASK",
|
|
50
|
-
"RAINBOW",
|
|
51
|
-
"COINBASE",
|
|
52
|
-
"WALLETCONNECT",
|
|
53
|
-
"FARCASTER",
|
|
54
|
-
"ZERION",
|
|
55
|
-
"SAFE",
|
|
56
|
-
"RABBY",
|
|
57
|
-
"OKX",
|
|
58
|
-
"HAHA",
|
|
59
|
-
"BACKPACK",
|
|
60
|
-
"PHANTOM",
|
|
61
|
-
"VALORA"
|
|
62
|
-
];
|
|
63
|
-
const SOLANA_WALLETS = ["PHANTOM", "GLOW", "BACKPACK", "SOLFLARE"];
|
|
64
|
-
const COSMOS_WALLETS = ["KEPLR", "LEAP", "COSMOSTATION"];
|
|
65
|
-
const EXTERNAL_WALLET_TYPES = [.../* @__PURE__ */ new Set([...EVM_WALLETS, ...SOLANA_WALLETS, ...COSMOS_WALLETS])];
|
|
66
|
-
export {
|
|
67
|
-
COSMOS_WALLETS,
|
|
68
|
-
Chain,
|
|
69
|
-
EVM_WALLETS,
|
|
70
|
-
EXTERNAL_WALLET_TYPES,
|
|
71
|
-
NON_ED25519,
|
|
72
|
-
Network,
|
|
73
|
-
PREGEN_IDENTIFIER_TYPES,
|
|
74
|
-
SOLANA_WALLETS,
|
|
75
|
-
WALLET_SCHEMES,
|
|
76
|
-
WALLET_TYPES,
|
|
77
|
-
WalletScheme,
|
|
78
|
-
WalletType
|
|
79
|
-
};
|
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
import { CurrentWalletIds, ExternalWalletType, SupportedWalletTypes, TExternalWallet } from './wallet.js';
|
|
2
|
-
export declare const AUTH_TYPES: readonly ["email", "phone", "phoneLegacy", "farcaster", "telegram", "userId", "externalWallet", "discord", "x", "customId", "guestId"];
|
|
3
|
-
export type AuthType = 'email' | 'phone' | 'phoneLegacy' | 'farcaster' | 'telegram' | 'userId' | 'externalWallet' | 'discord' | 'x' | 'customId' | 'guestId';
|
|
4
|
-
export type PrimaryAuthType = Extract<AuthType, 'email' | 'phone' | 'farcaster' | 'telegram' | 'externalWallet'>;
|
|
5
|
-
export type VerifiedAuthType = Extract<PrimaryAuthType, 'email' | 'phone' | 'externalWallet'>;
|
|
6
|
-
export type PregenAuthType = Exclude<PrimaryAuthType, 'externalWallet'> | Extract<AuthType, 'discord' | 'x' | 'customId'>;
|
|
7
|
-
export type AuthIdentifier<T extends AuthType | never> = T extends 'phone' ? `+${number}` : string;
|
|
8
|
-
export type AuthInfo<T extends Exclude<AuthType, 'phoneLegacy'> = Exclude<AuthType, 'phoneLegacy'>> = {
|
|
9
|
-
auth: Auth<T>;
|
|
10
|
-
authType: T;
|
|
11
|
-
identifier: AuthIdentifier<T>;
|
|
12
|
-
};
|
|
13
|
-
export type PrimaryAuthInfo = AuthInfo<PrimaryAuthType>;
|
|
14
|
-
export type VerifiedAuthInfo = AuthInfo<VerifiedAuthType>;
|
|
15
|
-
export type PregenAuthInfo = AuthInfo<PregenAuthType>;
|
|
16
|
-
export type AuthParams = Record<string, any> & {
|
|
17
|
-
email?: string;
|
|
18
|
-
phone?: string;
|
|
19
|
-
countryCode?: string;
|
|
20
|
-
farcasterUsername?: string;
|
|
21
|
-
telegramUserId?: string;
|
|
22
|
-
userId?: string;
|
|
23
|
-
externalWalletAddress?: string;
|
|
24
|
-
};
|
|
25
|
-
export type Auth<T extends AuthType = AuthType> = T extends 'email' ? {
|
|
26
|
-
email: string;
|
|
27
|
-
} : T extends 'phoneLegacy' ? {
|
|
28
|
-
phone: string;
|
|
29
|
-
countryCode: string;
|
|
30
|
-
} : T extends 'phone' ? {
|
|
31
|
-
phone: AuthIdentifier<'phone'>;
|
|
32
|
-
} : T extends 'farcaster' ? {
|
|
33
|
-
farcasterUsername: AuthIdentifier<'farcaster'>;
|
|
34
|
-
} : T extends 'telegram' ? {
|
|
35
|
-
telegramUserId: AuthIdentifier<'telegram'>;
|
|
36
|
-
} : T extends 'externalWallet' ? {
|
|
37
|
-
externalWalletAddress: AuthIdentifier<'externalWallet'>;
|
|
38
|
-
} : T extends 'x' ? {
|
|
39
|
-
xUsername: AuthIdentifier<'x'>;
|
|
40
|
-
} : T extends 'discord' ? {
|
|
41
|
-
discordUsername: AuthIdentifier<'discord'>;
|
|
42
|
-
} : T extends 'customId' ? {
|
|
43
|
-
customId: AuthIdentifier<'customId'>;
|
|
44
|
-
} : T extends 'guestId' ? {
|
|
45
|
-
guestId: AuthIdentifier<'guestId'>;
|
|
46
|
-
} : {
|
|
47
|
-
userId: AuthIdentifier<'userId'>;
|
|
48
|
-
};
|
|
49
|
-
export type PrimaryAuth = Auth<PrimaryAuthType>;
|
|
50
|
-
export type VerifiedAuth = Auth<VerifiedAuthType>;
|
|
51
|
-
export type PregenAuth = Auth<PregenAuthType>;
|
|
52
|
-
export type PregenOrGuestAuth = Auth<PregenAuthType | 'guestId'>;
|
|
53
|
-
export type AuthExtras = {
|
|
54
|
-
/**
|
|
55
|
-
* The current user's third-party username.
|
|
56
|
-
*/
|
|
57
|
-
username?: string;
|
|
58
|
-
/**
|
|
59
|
-
* The current user's third-party display name.
|
|
60
|
-
*/
|
|
61
|
-
displayName?: string;
|
|
62
|
-
/**
|
|
63
|
-
* The current user's third-party profile picture URL.
|
|
64
|
-
*/
|
|
65
|
-
pfpUrl?: string;
|
|
66
|
-
/**
|
|
67
|
-
* The current user's external wallet information.
|
|
68
|
-
*/
|
|
69
|
-
externalWallet?: ExternalWalletInfo;
|
|
70
|
-
};
|
|
71
|
-
export declare enum EncryptorType {
|
|
72
|
-
USER = "USER",
|
|
73
|
-
RECOVERY = "RECOVERY",
|
|
74
|
-
BIOMETRICS = "BIOMETRICS",
|
|
75
|
-
PASSWORD = "PASSWORD"
|
|
76
|
-
}
|
|
77
|
-
export declare enum KeyShareType {
|
|
78
|
-
USER = "USER",
|
|
79
|
-
RECOVERY = "RECOVERY"
|
|
80
|
-
}
|
|
81
|
-
export declare enum PasswordStatus {
|
|
82
|
-
PENDING = "PENDING",
|
|
83
|
-
COMPLETE = "COMPLETE"
|
|
84
|
-
}
|
|
85
|
-
export declare enum PublicKeyStatus {
|
|
86
|
-
PENDING = "PENDING",
|
|
87
|
-
COMPLETE = "COMPLETE"
|
|
88
|
-
}
|
|
89
|
-
export declare enum PublicKeyType {
|
|
90
|
-
MOBILE = "MOBILE",
|
|
91
|
-
WEB = "WEB"
|
|
92
|
-
}
|
|
93
|
-
export interface EncryptedKeyShare {
|
|
94
|
-
encryptedShare: string;
|
|
95
|
-
encryptedKey?: string;
|
|
96
|
-
type: KeyShareType;
|
|
97
|
-
biometricPublicKey?: string;
|
|
98
|
-
encryptor: EncryptorType;
|
|
99
|
-
recoveryPublicKeyId?: string;
|
|
100
|
-
partnerId?: string;
|
|
101
|
-
protocolId?: string;
|
|
102
|
-
}
|
|
103
|
-
/** @deprecated use the string union type `TOAuthMethod` instead */
|
|
104
|
-
export declare enum OAuthMethod {
|
|
105
|
-
GOOGLE = "GOOGLE",
|
|
106
|
-
TWITTER = "TWITTER",
|
|
107
|
-
APPLE = "APPLE",
|
|
108
|
-
DISCORD = "DISCORD",
|
|
109
|
-
FACEBOOK = "FACEBOOK",
|
|
110
|
-
FARCASTER = "FARCASTER",
|
|
111
|
-
TELEGRAM = "TELEGRAM"
|
|
112
|
-
}
|
|
113
|
-
export declare const OAUTH_METHODS: readonly ["GOOGLE", "TWITTER", "APPLE", "DISCORD", "FACEBOOK", "FARCASTER", "TELEGRAM"];
|
|
114
|
-
export type TOAuthMethod = (typeof OAUTH_METHODS)[number];
|
|
115
|
-
export declare const LINKED_ACCOUNT_TYPES: readonly ["EMAIL", "PHONE", "GOOGLE", "FACEBOOK", "APPLE", "TWITTER", "DISCORD", "TELEGRAM", "FARCASTER", "EXTERNAL_WALLET"];
|
|
116
|
-
export type TLinkedAccountType = (typeof LINKED_ACCOUNT_TYPES)[number] | 'EXTERNAL_WALLET';
|
|
117
|
-
export type SupportedAccountLinks = (TLinkedAccountType | TExternalWallet)[];
|
|
118
|
-
export declare enum AuthMethod {
|
|
119
|
-
PASSWORD = "PASSWORD",
|
|
120
|
-
PASSKEY = "PASSKEY",
|
|
121
|
-
PIN = "PIN"
|
|
122
|
-
}
|
|
123
|
-
export declare enum LegacyAuthMethod {
|
|
124
|
-
PASSWORD = "PASSWORD",
|
|
125
|
-
BIOMETRIC = "BIOMETRIC"
|
|
126
|
-
}
|
|
127
|
-
export type BiometricLocationHint = {
|
|
128
|
-
useragent?: string;
|
|
129
|
-
aaguid?: string;
|
|
130
|
-
};
|
|
131
|
-
export type TelegramAuthResponse = {
|
|
132
|
-
auth_date: number;
|
|
133
|
-
first_name?: string;
|
|
134
|
-
hash: string;
|
|
135
|
-
id: number;
|
|
136
|
-
last_name?: string;
|
|
137
|
-
photo_url?: string;
|
|
138
|
-
username?: string;
|
|
139
|
-
};
|
|
140
|
-
export type SessionInfo = {
|
|
141
|
-
userId?: string;
|
|
142
|
-
sessionId?: string;
|
|
143
|
-
sessionLookupId?: string;
|
|
144
|
-
partnerId: string;
|
|
145
|
-
biometricVerifiedAt?: number;
|
|
146
|
-
currentWalletIds?: CurrentWalletIds;
|
|
147
|
-
needsWallet?: boolean;
|
|
148
|
-
isAuthenticated?: boolean;
|
|
149
|
-
supportedWalletTypes: SupportedWalletTypes;
|
|
150
|
-
cosmosPrefix?: string;
|
|
151
|
-
origin?: string;
|
|
152
|
-
email?: string;
|
|
153
|
-
verifiedExternalWalletAddresses?: string[];
|
|
154
|
-
};
|
|
155
|
-
export type ServerAuthStateBase = AuthExtras & {
|
|
156
|
-
auth: PrimaryAuth;
|
|
157
|
-
userId: string;
|
|
158
|
-
};
|
|
159
|
-
export type ServerAuthStateVerify = ServerAuthStateBase & {
|
|
160
|
-
stage: 'verify';
|
|
161
|
-
signatureVerificationMessage?: string;
|
|
162
|
-
};
|
|
163
|
-
export type ServerAuthStateSignup = ServerAuthStateBase & {
|
|
164
|
-
stage: 'signup';
|
|
165
|
-
signupAuthMethods: AuthMethod[];
|
|
166
|
-
};
|
|
167
|
-
export type ServerAuthStateLogin = ServerAuthStateBase & {
|
|
168
|
-
stage: 'login';
|
|
169
|
-
biometricHints?: BiometricLocationHint[];
|
|
170
|
-
loginAuthMethods: AuthMethod[];
|
|
171
|
-
isWalletSelectionNeeded?: boolean;
|
|
172
|
-
hasPasswordWithoutPIN?: boolean;
|
|
173
|
-
signatureVerificationMessage?: string;
|
|
174
|
-
};
|
|
175
|
-
export type VerifyThirdPartyAuth = ServerAuthStateSignup | ServerAuthStateLogin;
|
|
176
|
-
export type ExternalWalletInfo = {
|
|
177
|
-
partnerId: string;
|
|
178
|
-
address: string;
|
|
179
|
-
type: ExternalWalletType;
|
|
180
|
-
provider?: string;
|
|
181
|
-
providerId?: string;
|
|
182
|
-
addressBech32?: string;
|
|
183
|
-
withFullParaAuth?: boolean;
|
|
184
|
-
ensName?: string | null;
|
|
185
|
-
ensAvatar?: string | null;
|
|
186
|
-
isConnectionOnly?: boolean;
|
|
187
|
-
withVerification?: boolean;
|
|
188
|
-
};
|
|
189
|
-
export type VerifyExternalWalletParams = {
|
|
190
|
-
/**
|
|
191
|
-
* The external wallet information to verify.
|
|
192
|
-
*/
|
|
193
|
-
externalWallet: ExternalWalletInfo;
|
|
194
|
-
/**
|
|
195
|
-
* The signature of the signed verification string.
|
|
196
|
-
*/
|
|
197
|
-
signedMessage: string;
|
|
198
|
-
/**
|
|
199
|
-
* For Cosmos wallets, the wallet's public key as a hex string.
|
|
200
|
-
*/
|
|
201
|
-
cosmosPublicKeyHex?: string;
|
|
202
|
-
/**
|
|
203
|
-
* For Cosmos wallets, the base64 signer string.
|
|
204
|
-
*/
|
|
205
|
-
cosmosSigner?: string;
|
|
206
|
-
};
|
|
207
|
-
export type LoginExternalWalletResponse = ServerAuthStateLogin | (ServerAuthStateVerify & {
|
|
208
|
-
signatureVerificationMessage: string;
|
|
209
|
-
});
|
|
210
|
-
export type VerifyTelegramResponse = VerifyThirdPartyAuth;
|
|
211
|
-
export type VerifyFarcasterResponse = VerifyThirdPartyAuth | Record<string, never>;
|
|
212
|
-
export type ServerAuthState = ServerAuthStateVerify | ServerAuthStateSignup | ServerAuthStateLogin;
|
|
213
|
-
export type SignUpOrLogInResponse = ServerAuthStateVerify | ServerAuthStateLogin;
|
|
214
|
-
export type Setup2faResponse = {
|
|
215
|
-
/**
|
|
216
|
-
* Indicates whether 2FA has already been set up for the current user.
|
|
217
|
-
*/
|
|
218
|
-
isSetup: true;
|
|
219
|
-
uri: undefined;
|
|
220
|
-
} | {
|
|
221
|
-
isSetup?: false;
|
|
222
|
-
/**
|
|
223
|
-
* A URI for the user to set up two-factor authentication.
|
|
224
|
-
*/
|
|
225
|
-
uri: string;
|
|
226
|
-
};
|
|
227
|
-
export type AccountMetadataKey = Lowercase<Exclude<TOAuthMethod, 'TWITTER'> | 'X'>;
|
|
228
|
-
export type AccountMetadata = Partial<Record<AccountMetadataKey, {
|
|
229
|
-
date: Date;
|
|
230
|
-
metadata: Record<string, any>;
|
|
231
|
-
}>>;
|
|
232
|
-
export type IssueJwtParams = {
|
|
233
|
-
/**
|
|
234
|
-
* The index of the Para RSA keypair to use for signing the JWT. Defaults to `0`.
|
|
235
|
-
*/
|
|
236
|
-
keyIndex?: number;
|
|
237
|
-
};
|
|
238
|
-
export type IssueJwtResponse = {
|
|
239
|
-
/**
|
|
240
|
-
* The Para JWT token.
|
|
241
|
-
*/
|
|
242
|
-
token: string;
|
|
243
|
-
/**
|
|
244
|
-
* The `keyid`` / `kid` of the keypair used to sign the JWT.
|
|
245
|
-
*/
|
|
246
|
-
keyId: string;
|
|
247
|
-
};
|
|
248
|
-
export type LinkedAccount<D extends Date | string = Date> = {
|
|
249
|
-
id?: string;
|
|
250
|
-
date: D;
|
|
251
|
-
type: TLinkedAccountType;
|
|
252
|
-
identifier: string;
|
|
253
|
-
displayName: string;
|
|
254
|
-
externalWallet?: ExternalWalletInfo;
|
|
255
|
-
metadata?: unknown;
|
|
256
|
-
};
|
|
257
|
-
export type LinkedAccounts<D extends Date | string = Date> = {
|
|
258
|
-
primary: LinkedAccount<D>[];
|
|
259
|
-
linked: LinkedAccount<D>[];
|
|
260
|
-
};
|
|
261
|
-
export type LinkAccountParams = {
|
|
262
|
-
type: TLinkedAccountType;
|
|
263
|
-
identifier?: string;
|
|
264
|
-
externalWallet?: ExternalWalletInfo;
|
|
265
|
-
};
|
|
266
|
-
export type VerifyLinkParams = {
|
|
267
|
-
linkedAccountId: string;
|
|
268
|
-
userId: string;
|
|
269
|
-
telegramAuthResponse?: TelegramAuthResponse;
|
|
270
|
-
verificationCode?: string;
|
|
271
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare enum EmailTheme {
|
|
2
|
-
LIGHT = "light",
|
|
3
|
-
DARK = "dark"
|
|
4
|
-
}
|
|
5
|
-
export interface VerificationEmailProps {
|
|
6
|
-
theme?: EmailTheme;
|
|
7
|
-
homepageUrl?: string;
|
|
8
|
-
xUrl?: string;
|
|
9
|
-
linkedinUrl?: string;
|
|
10
|
-
githubUrl?: string;
|
|
11
|
-
supportUrl?: string;
|
|
12
|
-
brandColor?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface BackupKitEmailProps {
|
|
15
|
-
theme?: EmailTheme;
|
|
16
|
-
homepageUrl?: string;
|
|
17
|
-
xUrl?: string;
|
|
18
|
-
linkedinUrl?: string;
|
|
19
|
-
githubUrl?: string;
|
|
20
|
-
supportUrl?: string;
|
|
21
|
-
brandColor?: string;
|
|
22
|
-
}
|
|
23
|
-
export type ResendVerificationCodeParams = VerificationEmailProps & {
|
|
24
|
-
userId: string;
|
|
25
|
-
type?: 'EMAIL' | 'PHONE';
|
|
26
|
-
linkedAccountId?: string;
|
|
27
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { Network, TWalletType } from './wallet.js';
|
|
2
|
-
export declare enum OnRampProvider {
|
|
3
|
-
RAMP = "RAMP",
|
|
4
|
-
STRIPE = "STRIPE",
|
|
5
|
-
MOONPAY = "MOONPAY"
|
|
6
|
-
}
|
|
7
|
-
export declare enum OnRampAsset {
|
|
8
|
-
ETHEREUM = "ETHEREUM",
|
|
9
|
-
USDC = "USDC",
|
|
10
|
-
TETHER = "TETHER",
|
|
11
|
-
POLYGON = "POLYGON",
|
|
12
|
-
SOLANA = "SOLANA",
|
|
13
|
-
ATOM = "ATOM",
|
|
14
|
-
CELO = "CELO",
|
|
15
|
-
CUSD = "CUSD",
|
|
16
|
-
CEUR = "CEUR",
|
|
17
|
-
CREAL = "CREAL",
|
|
18
|
-
BERA = "BERA"
|
|
19
|
-
}
|
|
20
|
-
export declare enum OnRampPurchaseStatus {
|
|
21
|
-
INITIATED = "INITIATED",
|
|
22
|
-
FINISHED = "FINISHED",
|
|
23
|
-
CANCELLED = "CANCELLED"
|
|
24
|
-
}
|
|
25
|
-
export declare enum OnRampPurchaseType {
|
|
26
|
-
BUY = "BUY",
|
|
27
|
-
SELL = "SELL"
|
|
28
|
-
}
|
|
29
|
-
export interface OnRampPurchase {
|
|
30
|
-
id: string;
|
|
31
|
-
userId: string;
|
|
32
|
-
type?: OnRampPurchaseType;
|
|
33
|
-
walletId?: string | null;
|
|
34
|
-
walletType?: TWalletType;
|
|
35
|
-
externalWalletAddress?: string | null;
|
|
36
|
-
address?: string | null;
|
|
37
|
-
status?: OnRampPurchaseStatus;
|
|
38
|
-
provider?: OnRampProvider;
|
|
39
|
-
providerKey?: string | null;
|
|
40
|
-
fiat?: string | null;
|
|
41
|
-
fiatQuantity?: string | null;
|
|
42
|
-
asset?: OnRampAsset;
|
|
43
|
-
assetQuantity?: string | null;
|
|
44
|
-
network?: Network | null;
|
|
45
|
-
testMode?: boolean;
|
|
46
|
-
}
|
|
47
|
-
export type OnRampPurchaseCreateParams = Omit<OnRampPurchase, 'id' | 'userId'> & {
|
|
48
|
-
networks?: Network[] | 'all';
|
|
49
|
-
assets?: OnRampAsset[] | 'all';
|
|
50
|
-
defaultNetwork?: Network;
|
|
51
|
-
defaultAsset?: OnRampAsset;
|
|
52
|
-
};
|
|
53
|
-
export type OnRampPurchaseUpdateParams = Omit<OnRampPurchase, 'id' | 'userId'>;
|
|
54
|
-
type ProviderAssetInfo = [string, Partial<Record<OnRampPurchaseType, boolean>>];
|
|
55
|
-
export type OnRampAssetInfo = Record<TWalletType, Partial<Record<Network, Partial<Record<OnRampAsset, Partial<Record<OnRampProvider, ProviderAssetInfo>>>>>>>;
|
|
56
|
-
export type OnRampAllowedAssets = Partial<Record<Network, true | OnRampAsset[]>>;
|
|
57
|
-
export type OnRampConfig = {
|
|
58
|
-
isBuyEnabled: boolean;
|
|
59
|
-
isReceiveEnabled: boolean;
|
|
60
|
-
isWithdrawEnabled: boolean;
|
|
61
|
-
assetInfo: OnRampAssetInfo;
|
|
62
|
-
providers: OnRampProvider[];
|
|
63
|
-
allowedAssets?: OnRampAllowedAssets;
|
|
64
|
-
rampApiKey?: string;
|
|
65
|
-
defaultOnRampAsset?: OnRampAsset;
|
|
66
|
-
defaultOnRampNetwork?: Network;
|
|
67
|
-
defaultBuyAmount?: [string, string];
|
|
68
|
-
};
|
|
69
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AuthMethod, SupportedAccountLinks } from './auth.js';
|
|
2
|
-
import { SupportedWalletTypes } from './wallet.js';
|
|
3
|
-
export interface PartnerEntity {
|
|
4
|
-
id: string;
|
|
5
|
-
displayName: string;
|
|
6
|
-
apiKey?: string;
|
|
7
|
-
logoUrl?: string;
|
|
8
|
-
iconUrl?: string;
|
|
9
|
-
portalHeaderLogoUrl?: string;
|
|
10
|
-
policiesEnabled: boolean;
|
|
11
|
-
backgroundColor?: string;
|
|
12
|
-
foregroundColor?: string;
|
|
13
|
-
accentColor?: string;
|
|
14
|
-
font?: string;
|
|
15
|
-
themeMode?: 'light' | 'dark';
|
|
16
|
-
portalUrl?: string;
|
|
17
|
-
supportedAuthMethods?: AuthMethod[];
|
|
18
|
-
supportedWalletTypes?: SupportedWalletTypes;
|
|
19
|
-
supportedAccountLinks?: SupportedAccountLinks;
|
|
20
|
-
cosmosPrefix?: string;
|
|
21
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { PartnerEntity } from './partner.js';
|
|
2
|
-
/** @deprecated use the string union type `TWalletScheme` instead */
|
|
3
|
-
export declare enum WalletScheme {
|
|
4
|
-
DKLS = "DKLS",
|
|
5
|
-
CGGMP = "CGGMP",
|
|
6
|
-
ED25519 = "ED25519"
|
|
7
|
-
}
|
|
8
|
-
export declare const WALLET_SCHEMES: readonly ["DKLS", "CGGMP", "ED25519"];
|
|
9
|
-
export type TWalletScheme = (typeof WALLET_SCHEMES)[number];
|
|
10
|
-
/** @deprecated use the string union type `TWalletType` instead */
|
|
11
|
-
export declare enum WalletType {
|
|
12
|
-
EVM = "EVM",
|
|
13
|
-
SOLANA = "SOLANA",
|
|
14
|
-
COSMOS = "COSMOS"
|
|
15
|
-
}
|
|
16
|
-
export declare const WALLET_TYPES: readonly ["EVM", "SOLANA", "COSMOS"];
|
|
17
|
-
export type TWalletType = (typeof WALLET_TYPES)[number];
|
|
18
|
-
export declare enum Chain {
|
|
19
|
-
ETH = "ETH",
|
|
20
|
-
CELO = "CELO",
|
|
21
|
-
MATIC = "MATIC"
|
|
22
|
-
}
|
|
23
|
-
export declare enum Network {
|
|
24
|
-
ETHEREUM = "ETHEREUM",
|
|
25
|
-
SEPOLIA = "SEPOLIA",
|
|
26
|
-
ARBITRUM = "ARBITRUM",
|
|
27
|
-
BASE = "BASE",
|
|
28
|
-
OPTIMISM = "OPTIMISM",
|
|
29
|
-
POLYGON = "POLYGON",
|
|
30
|
-
SOLANA = "SOLANA",
|
|
31
|
-
COSMOS = "COSMOS",
|
|
32
|
-
CELO = "CELO",
|
|
33
|
-
NOBLE = "NOBLE",
|
|
34
|
-
SOLANA_DEVNET = "SOLANA_DEVNET",
|
|
35
|
-
BERACHAIN = "BERACHAIN"
|
|
36
|
-
}
|
|
37
|
-
export type WalletRef = 'walletId' | 'externalWalletAddress';
|
|
38
|
-
export type WalletParams = Partial<{
|
|
39
|
-
walletId?: string;
|
|
40
|
-
externalWalletAddress?: string;
|
|
41
|
-
}>;
|
|
42
|
-
export type EmbeddedWalletType = Exclude<TWalletType, never>;
|
|
43
|
-
export type ExternalWalletType = Exclude<TWalletType, never>;
|
|
44
|
-
export declare const PREGEN_IDENTIFIER_TYPES: readonly ["EMAIL", "PHONE", "CUSTOM_ID", "GUEST_ID", "DISCORD", "TWITTER", "TELEGRAM", "FARCASTER"];
|
|
45
|
-
export type TPregenIdentifierType = (typeof PREGEN_IDENTIFIER_TYPES)[number];
|
|
46
|
-
export type PregenIds = Partial<Record<TPregenIdentifierType, string[]>>;
|
|
47
|
-
export interface WalletEntity {
|
|
48
|
-
address: string | null;
|
|
49
|
-
createdAt: string;
|
|
50
|
-
isPregen?: boolean;
|
|
51
|
-
pregenIdentifier: string;
|
|
52
|
-
pregenIdentifierType: TPregenIdentifierType;
|
|
53
|
-
id: string;
|
|
54
|
-
keyGenComplete: boolean;
|
|
55
|
-
name: string | null;
|
|
56
|
-
partnerId: string;
|
|
57
|
-
partner?: PartnerEntity;
|
|
58
|
-
publicKey: string | null;
|
|
59
|
-
scheme: string;
|
|
60
|
-
type: TWalletType;
|
|
61
|
-
updatedAt: string;
|
|
62
|
-
userId: string | null;
|
|
63
|
-
lastUsedAt: string | null;
|
|
64
|
-
lastUsedPartnerId?: string;
|
|
65
|
-
lastUsedPartner?: PartnerEntity;
|
|
66
|
-
ensName?: string | null;
|
|
67
|
-
ensAvatar?: string | null;
|
|
68
|
-
}
|
|
69
|
-
export type CurrentWalletIds = Partial<Record<TWalletType, string[]>>;
|
|
70
|
-
export declare const NON_ED25519: string[];
|
|
71
|
-
export type SupportedWalletTypes = {
|
|
72
|
-
type: TWalletType;
|
|
73
|
-
optional?: boolean;
|
|
74
|
-
}[];
|
|
75
|
-
export declare const EVM_WALLETS: readonly ["METAMASK", "RAINBOW", "COINBASE", "WALLETCONNECT", "FARCASTER", "ZERION", "SAFE", "RABBY", "OKX", "HAHA", "BACKPACK", "PHANTOM", "VALORA"];
|
|
76
|
-
export declare const SOLANA_WALLETS: readonly ["PHANTOM", "GLOW", "BACKPACK", "SOLFLARE"];
|
|
77
|
-
export declare const COSMOS_WALLETS: readonly ["KEPLR", "LEAP", "COSMOSTATION"];
|
|
78
|
-
export declare const EXTERNAL_WALLET_TYPES: readonly ("FARCASTER" | "METAMASK" | "RAINBOW" | "COINBASE" | "WALLETCONNECT" | "ZERION" | "SAFE" | "RABBY" | "OKX" | "HAHA" | "BACKPACK" | "PHANTOM" | "VALORA" | "GLOW" | "SOLFLARE" | "KEPLR" | "LEAP" | "COSMOSTATION")[];
|
|
79
|
-
export type TExternalWallet = (typeof EXTERNAL_WALLET_TYPES)[number];
|