@getpara/user-management-client 2.0.0-alpha.6 → 2.0.0-alpha.61
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/client.js +174 -32
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/utils.js +12 -0
- package/dist/esm/client.js +175 -33
- package/dist/esm/index.js +1 -1
- package/dist/esm/utils.js +11 -0
- package/dist/types/client.d.ts +135 -18
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils.d.ts +2 -3
- package/package.json +22 -21
- package/dist/cjs/types/auth.js +0 -98
- package/dist/cjs/types/email.js +0 -31
- package/dist/cjs/types/index.js +0 -29
- package/dist/cjs/types/onRamp.js +0 -62
- package/dist/cjs/types/partner.js +0 -15
- package/dist/cjs/types/wallet.js +0 -85
- package/dist/esm/types/auth.js +0 -68
- package/dist/esm/types/email.js +0 -9
- package/dist/esm/types/index.js +0 -5
- package/dist/esm/types/onRamp.js +0 -37
- package/dist/esm/types/partner.js +0 -0
- package/dist/esm/types/wallet.js +0 -56
- package/dist/types/types/auth.d.ts +0 -215
- package/dist/types/types/email.d.ts +0 -22
- package/dist/types/types/index.d.ts +0 -5
- package/dist/types/types/onRamp.d.ts +0 -68
- package/dist/types/types/partner.d.ts +0 -20
- package/dist/types/types/wallet.d.ts +0 -73
package/package.json
CHANGED
|
@@ -1,30 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/user-management-client",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
4
|
-
"main": "dist/cjs/index.js",
|
|
5
|
-
"module": "dist/esm/index.js",
|
|
6
|
-
"types": "dist/types/index.d.ts",
|
|
7
|
-
"typings": "dist/types/index.d.ts",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"scripts": {
|
|
10
|
-
"build": "rm -rf dist && node ./scripts/build.mjs && yarn build:types",
|
|
11
|
-
"old-build": "yarn build:cjs && yarn build:esm && yarn build:types",
|
|
12
|
-
"build:cjs": "rm -rf dist/cjs && tsc --module commonjs --outDir dist/cjs && printf '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
|
|
13
|
-
"build:esm": "rm -rf dist/esm && tsc --module es6 --outDir dist/esm && printf '{\"type\":\"module\",\"sideEffects\":false}' > dist/esm/package.json",
|
|
14
|
-
"build:types": "rm -rf dist/types && tsc --module es6 --declarationDir dist/types --emitDeclarationOnly --declaration",
|
|
15
|
-
"test": "vitest run --coverage"
|
|
16
|
-
},
|
|
3
|
+
"version": "2.0.0-alpha.61",
|
|
17
4
|
"dependencies": {
|
|
5
|
+
"@getpara/shared": "1.1.0",
|
|
18
6
|
"axios": "^1.8.4",
|
|
19
|
-
"libphonenumber-js": "1.11.
|
|
7
|
+
"libphonenumber-js": "^1.11.7"
|
|
20
8
|
},
|
|
21
9
|
"devDependencies": {
|
|
22
|
-
"typescript": "^5.
|
|
10
|
+
"typescript": "^5.8.3"
|
|
23
11
|
},
|
|
24
|
-
"files": [
|
|
25
|
-
"dist",
|
|
26
|
-
"package.json"
|
|
27
|
-
],
|
|
28
12
|
"exports": {
|
|
29
13
|
".": {
|
|
30
14
|
"types": "./dist/types/index.d.ts",
|
|
@@ -32,5 +16,22 @@
|
|
|
32
16
|
"require": "./dist/cjs/index.js"
|
|
33
17
|
}
|
|
34
18
|
},
|
|
35
|
-
"
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"package.json"
|
|
22
|
+
],
|
|
23
|
+
"gitHead": "3a84954ff65c95d95fa96794bf0b0d4dc646c624",
|
|
24
|
+
"main": "dist/cjs/index.js",
|
|
25
|
+
"module": "dist/esm/index.js",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "rm -rf dist && node ./scripts/build.mjs && yarn build:types",
|
|
28
|
+
"build:cjs": "rm -rf dist/cjs && tsc --module commonjs --outDir dist/cjs && printf '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
|
|
29
|
+
"build:esm": "rm -rf dist/esm && tsc --module es6 --outDir dist/esm && printf '{\"type\":\"module\",\"sideEffects\":false}' > dist/esm/package.json",
|
|
30
|
+
"build:types": "rm -rf dist/types && tsc --module es6 --declarationDir dist/types --emitDeclarationOnly --declaration",
|
|
31
|
+
"old-build": "yarn build:cjs && yarn build:esm && yarn build:types",
|
|
32
|
+
"test": "vitest run --coverage"
|
|
33
|
+
},
|
|
34
|
+
"sideEffects": false,
|
|
35
|
+
"types": "dist/types/index.d.ts",
|
|
36
|
+
"typings": "dist/types/index.d.ts"
|
|
36
37
|
}
|
package/dist/cjs/types/auth.js
DELETED
|
@@ -1,98 +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
|
-
OAUTH_METHODS: () => OAUTH_METHODS,
|
|
25
|
-
OAuthMethod: () => OAuthMethod,
|
|
26
|
-
PasswordStatus: () => PasswordStatus,
|
|
27
|
-
PublicKeyStatus: () => PublicKeyStatus,
|
|
28
|
-
PublicKeyType: () => PublicKeyType
|
|
29
|
-
});
|
|
30
|
-
module.exports = __toCommonJS(auth_exports);
|
|
31
|
-
const AUTH_TYPES = [
|
|
32
|
-
"email",
|
|
33
|
-
"phone",
|
|
34
|
-
"phoneLegacy",
|
|
35
|
-
"farcaster",
|
|
36
|
-
"telegram",
|
|
37
|
-
"userId",
|
|
38
|
-
"externalWallet",
|
|
39
|
-
"discord",
|
|
40
|
-
"x",
|
|
41
|
-
"customId",
|
|
42
|
-
"guestId"
|
|
43
|
-
];
|
|
44
|
-
var EncryptorType = /* @__PURE__ */ ((EncryptorType2) => {
|
|
45
|
-
EncryptorType2["USER"] = "USER";
|
|
46
|
-
EncryptorType2["RECOVERY"] = "RECOVERY";
|
|
47
|
-
EncryptorType2["BIOMETRICS"] = "BIOMETRICS";
|
|
48
|
-
EncryptorType2["PASSWORD"] = "PASSWORD";
|
|
49
|
-
return EncryptorType2;
|
|
50
|
-
})(EncryptorType || {});
|
|
51
|
-
var KeyShareType = /* @__PURE__ */ ((KeyShareType2) => {
|
|
52
|
-
KeyShareType2["USER"] = "USER";
|
|
53
|
-
KeyShareType2["RECOVERY"] = "RECOVERY";
|
|
54
|
-
return KeyShareType2;
|
|
55
|
-
})(KeyShareType || {});
|
|
56
|
-
var PasswordStatus = /* @__PURE__ */ ((PasswordStatus2) => {
|
|
57
|
-
PasswordStatus2["PENDING"] = "PENDING";
|
|
58
|
-
PasswordStatus2["COMPLETE"] = "COMPLETE";
|
|
59
|
-
return PasswordStatus2;
|
|
60
|
-
})(PasswordStatus || {});
|
|
61
|
-
var PublicKeyStatus = /* @__PURE__ */ ((PublicKeyStatus2) => {
|
|
62
|
-
PublicKeyStatus2["PENDING"] = "PENDING";
|
|
63
|
-
PublicKeyStatus2["COMPLETE"] = "COMPLETE";
|
|
64
|
-
return PublicKeyStatus2;
|
|
65
|
-
})(PublicKeyStatus || {});
|
|
66
|
-
var PublicKeyType = /* @__PURE__ */ ((PublicKeyType2) => {
|
|
67
|
-
PublicKeyType2["MOBILE"] = "MOBILE";
|
|
68
|
-
PublicKeyType2["WEB"] = "WEB";
|
|
69
|
-
return PublicKeyType2;
|
|
70
|
-
})(PublicKeyType || {});
|
|
71
|
-
var OAuthMethod = /* @__PURE__ */ ((OAuthMethod2) => {
|
|
72
|
-
OAuthMethod2["GOOGLE"] = "GOOGLE";
|
|
73
|
-
OAuthMethod2["TWITTER"] = "TWITTER";
|
|
74
|
-
OAuthMethod2["APPLE"] = "APPLE";
|
|
75
|
-
OAuthMethod2["DISCORD"] = "DISCORD";
|
|
76
|
-
OAuthMethod2["FACEBOOK"] = "FACEBOOK";
|
|
77
|
-
OAuthMethod2["FARCASTER"] = "FARCASTER";
|
|
78
|
-
OAuthMethod2["TELEGRAM"] = "TELEGRAM";
|
|
79
|
-
return OAuthMethod2;
|
|
80
|
-
})(OAuthMethod || {});
|
|
81
|
-
const OAUTH_METHODS = ["GOOGLE", "TWITTER", "APPLE", "DISCORD", "FACEBOOK", "FARCASTER", "TELEGRAM"];
|
|
82
|
-
var AuthMethod = /* @__PURE__ */ ((AuthMethod2) => {
|
|
83
|
-
AuthMethod2["PASSWORD"] = "PASSWORD";
|
|
84
|
-
AuthMethod2["PASSKEY"] = "PASSKEY";
|
|
85
|
-
return AuthMethod2;
|
|
86
|
-
})(AuthMethod || {});
|
|
87
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
88
|
-
0 && (module.exports = {
|
|
89
|
-
AUTH_TYPES,
|
|
90
|
-
AuthMethod,
|
|
91
|
-
EncryptorType,
|
|
92
|
-
KeyShareType,
|
|
93
|
-
OAUTH_METHODS,
|
|
94
|
-
OAuthMethod,
|
|
95
|
-
PasswordStatus,
|
|
96
|
-
PublicKeyStatus,
|
|
97
|
-
PublicKeyType
|
|
98
|
-
});
|
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,62 +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
|
-
return OnRampAsset2;
|
|
44
|
-
})(OnRampAsset || {});
|
|
45
|
-
var OnRampPurchaseStatus = /* @__PURE__ */ ((OnRampPurchaseStatus2) => {
|
|
46
|
-
OnRampPurchaseStatus2["INITIATED"] = "INITIATED";
|
|
47
|
-
OnRampPurchaseStatus2["FINISHED"] = "FINISHED";
|
|
48
|
-
OnRampPurchaseStatus2["CANCELLED"] = "CANCELLED";
|
|
49
|
-
return OnRampPurchaseStatus2;
|
|
50
|
-
})(OnRampPurchaseStatus || {});
|
|
51
|
-
var OnRampPurchaseType = /* @__PURE__ */ ((OnRampPurchaseType2) => {
|
|
52
|
-
OnRampPurchaseType2["BUY"] = "BUY";
|
|
53
|
-
OnRampPurchaseType2["SELL"] = "SELL";
|
|
54
|
-
return OnRampPurchaseType2;
|
|
55
|
-
})(OnRampPurchaseType || {});
|
|
56
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
57
|
-
0 && (module.exports = {
|
|
58
|
-
OnRampAsset,
|
|
59
|
-
OnRampProvider,
|
|
60
|
-
OnRampPurchaseStatus,
|
|
61
|
-
OnRampPurchaseType
|
|
62
|
-
});
|
|
@@ -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,85 +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
|
-
Chain: () => Chain,
|
|
21
|
-
NON_ED25519: () => NON_ED25519,
|
|
22
|
-
Network: () => Network,
|
|
23
|
-
PREGEN_IDENTIFIER_TYPES: () => PREGEN_IDENTIFIER_TYPES,
|
|
24
|
-
WALLET_SCHEMES: () => WALLET_SCHEMES,
|
|
25
|
-
WALLET_TYPES: () => WALLET_TYPES,
|
|
26
|
-
WalletScheme: () => WalletScheme,
|
|
27
|
-
WalletType: () => WalletType
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(wallet_exports);
|
|
30
|
-
var WalletScheme = /* @__PURE__ */ ((WalletScheme2) => {
|
|
31
|
-
WalletScheme2["DKLS"] = "DKLS";
|
|
32
|
-
WalletScheme2["CGGMP"] = "CGGMP";
|
|
33
|
-
WalletScheme2["ED25519"] = "ED25519";
|
|
34
|
-
return WalletScheme2;
|
|
35
|
-
})(WalletScheme || {});
|
|
36
|
-
const WALLET_SCHEMES = ["DKLS", "CGGMP", "ED25519"];
|
|
37
|
-
var WalletType = /* @__PURE__ */ ((WalletType2) => {
|
|
38
|
-
WalletType2["EVM"] = "EVM";
|
|
39
|
-
WalletType2["SOLANA"] = "SOLANA";
|
|
40
|
-
WalletType2["COSMOS"] = "COSMOS";
|
|
41
|
-
return WalletType2;
|
|
42
|
-
})(WalletType || {});
|
|
43
|
-
const WALLET_TYPES = ["EVM", "SOLANA", "COSMOS"];
|
|
44
|
-
var Chain = /* @__PURE__ */ ((Chain2) => {
|
|
45
|
-
Chain2["ETH"] = "ETH";
|
|
46
|
-
Chain2["CELO"] = "CELO";
|
|
47
|
-
Chain2["MATIC"] = "MATIC";
|
|
48
|
-
return Chain2;
|
|
49
|
-
})(Chain || {});
|
|
50
|
-
var Network = /* @__PURE__ */ ((Network2) => {
|
|
51
|
-
Network2["ETHEREUM"] = "ETHEREUM";
|
|
52
|
-
Network2["SEPOLIA"] = "SEPOLIA";
|
|
53
|
-
Network2["ARBITRUM"] = "ARBITRUM";
|
|
54
|
-
Network2["BASE"] = "BASE";
|
|
55
|
-
Network2["OPTIMISM"] = "OPTIMISM";
|
|
56
|
-
Network2["POLYGON"] = "POLYGON";
|
|
57
|
-
Network2["SOLANA"] = "SOLANA";
|
|
58
|
-
Network2["COSMOS"] = "COSMOS";
|
|
59
|
-
Network2["CELO"] = "CELO";
|
|
60
|
-
Network2["NOBLE"] = "NOBLE";
|
|
61
|
-
Network2["SOLANA_DEVNET"] = "SOLANA_DEVNET";
|
|
62
|
-
return Network2;
|
|
63
|
-
})(Network || {});
|
|
64
|
-
const PREGEN_IDENTIFIER_TYPES = [
|
|
65
|
-
"EMAIL",
|
|
66
|
-
"PHONE",
|
|
67
|
-
"CUSTOM_ID",
|
|
68
|
-
"GUEST_ID",
|
|
69
|
-
"DISCORD",
|
|
70
|
-
"TWITTER",
|
|
71
|
-
"TELEGRAM",
|
|
72
|
-
"FARCASTER"
|
|
73
|
-
];
|
|
74
|
-
const NON_ED25519 = ["DKLS", "CGGMP"];
|
|
75
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
76
|
-
0 && (module.exports = {
|
|
77
|
-
Chain,
|
|
78
|
-
NON_ED25519,
|
|
79
|
-
Network,
|
|
80
|
-
PREGEN_IDENTIFIER_TYPES,
|
|
81
|
-
WALLET_SCHEMES,
|
|
82
|
-
WALLET_TYPES,
|
|
83
|
-
WalletScheme,
|
|
84
|
-
WalletType
|
|
85
|
-
});
|
package/dist/esm/types/auth.js
DELETED
|
@@ -1,68 +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
|
-
var AuthMethod = /* @__PURE__ */ ((AuthMethod2) => {
|
|
54
|
-
AuthMethod2["PASSWORD"] = "PASSWORD";
|
|
55
|
-
AuthMethod2["PASSKEY"] = "PASSKEY";
|
|
56
|
-
return AuthMethod2;
|
|
57
|
-
})(AuthMethod || {});
|
|
58
|
-
export {
|
|
59
|
-
AUTH_TYPES,
|
|
60
|
-
AuthMethod,
|
|
61
|
-
EncryptorType,
|
|
62
|
-
KeyShareType,
|
|
63
|
-
OAUTH_METHODS,
|
|
64
|
-
OAuthMethod,
|
|
65
|
-
PasswordStatus,
|
|
66
|
-
PublicKeyStatus,
|
|
67
|
-
PublicKeyType
|
|
68
|
-
};
|
package/dist/esm/types/email.js
DELETED
package/dist/esm/types/index.js
DELETED
package/dist/esm/types/onRamp.js
DELETED
|
@@ -1,37 +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
|
-
return OnRampAsset2;
|
|
20
|
-
})(OnRampAsset || {});
|
|
21
|
-
var OnRampPurchaseStatus = /* @__PURE__ */ ((OnRampPurchaseStatus2) => {
|
|
22
|
-
OnRampPurchaseStatus2["INITIATED"] = "INITIATED";
|
|
23
|
-
OnRampPurchaseStatus2["FINISHED"] = "FINISHED";
|
|
24
|
-
OnRampPurchaseStatus2["CANCELLED"] = "CANCELLED";
|
|
25
|
-
return OnRampPurchaseStatus2;
|
|
26
|
-
})(OnRampPurchaseStatus || {});
|
|
27
|
-
var OnRampPurchaseType = /* @__PURE__ */ ((OnRampPurchaseType2) => {
|
|
28
|
-
OnRampPurchaseType2["BUY"] = "BUY";
|
|
29
|
-
OnRampPurchaseType2["SELL"] = "SELL";
|
|
30
|
-
return OnRampPurchaseType2;
|
|
31
|
-
})(OnRampPurchaseType || {});
|
|
32
|
-
export {
|
|
33
|
-
OnRampAsset,
|
|
34
|
-
OnRampProvider,
|
|
35
|
-
OnRampPurchaseStatus,
|
|
36
|
-
OnRampPurchaseType
|
|
37
|
-
};
|
|
File without changes
|
package/dist/esm/types/wallet.js
DELETED
|
@@ -1,56 +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
|
-
return Network2;
|
|
35
|
-
})(Network || {});
|
|
36
|
-
const PREGEN_IDENTIFIER_TYPES = [
|
|
37
|
-
"EMAIL",
|
|
38
|
-
"PHONE",
|
|
39
|
-
"CUSTOM_ID",
|
|
40
|
-
"GUEST_ID",
|
|
41
|
-
"DISCORD",
|
|
42
|
-
"TWITTER",
|
|
43
|
-
"TELEGRAM",
|
|
44
|
-
"FARCASTER"
|
|
45
|
-
];
|
|
46
|
-
const NON_ED25519 = ["DKLS", "CGGMP"];
|
|
47
|
-
export {
|
|
48
|
-
Chain,
|
|
49
|
-
NON_ED25519,
|
|
50
|
-
Network,
|
|
51
|
-
PREGEN_IDENTIFIER_TYPES,
|
|
52
|
-
WALLET_SCHEMES,
|
|
53
|
-
WALLET_TYPES,
|
|
54
|
-
WalletScheme,
|
|
55
|
-
WalletType
|
|
56
|
-
};
|