@getpara/user-management-client 2.0.0-fc.3 → 2.1.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.
@@ -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, PasswordStatus, PregenIds, PrimaryAuth, PublicKeyStatus, PublicKeyType, ServerAuthStateSignup, SessionInfo, Setup2faResponse, SignUpOrLogInResponse, TelegramAuthResponse, TPregenIdentifierType, VerificationEmailProps, VerifiedAuth, VerifyFarcasterResponse, VerifyTelegramResponse, VerifyThirdPartyAuth, WalletEntity, WalletParams, TWalletScheme, TWalletType, VerifyExternalWalletParams, IssueJwtParams, IssueJwtResponse, LinkAccountParams, LinkedAccounts, ResendVerificationCodeParams } from './types/index.js';
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, AssetMetadataIndexed, GetProfileBalanceParams, ProfileBalance, LegacyAuthMethod, PrimaryAuthInfo, ServerAuthStateLogin, ServerAuthStateDone, UserPreferences, EstimateTransactionOpts, EstimateTransactionResult, BroadcastTransactionOpts, BroadcastTransactionResult, TExternalWalletType } from '@getpara/shared';
3
3
  interface ConfigOpts {
4
4
  useFetchAdapter?: boolean;
5
5
  }
@@ -18,6 +18,7 @@ interface createUserIdRes {
18
18
  }
19
19
  interface verifyBody {
20
20
  verificationCode: string;
21
+ sessionLookupId?: string;
21
22
  }
22
23
  interface getWebChallengeRes {
23
24
  challenge: string;
@@ -26,7 +27,7 @@ interface getWebChallengeRes {
26
27
  interface sessionPublicKeyBody {
27
28
  publicKey?: string;
28
29
  sigDerivedPublicKey?: string;
29
- status?: PublicKeyStatus;
30
+ status?: AuthMethodStatus;
30
31
  type?: PublicKeyType;
31
32
  cosePublicKey?: string;
32
33
  clientDataJSON?: string;
@@ -64,9 +65,10 @@ interface GetWalletsRes {
64
65
  interface PasswordEntity {
65
66
  id: string;
66
67
  userId: string;
67
- status: PasswordStatus;
68
+ status: AuthMethodStatus;
68
69
  sigDerivedPublicKey: string;
69
70
  salt: string;
71
+ isPIN?: boolean;
70
72
  }
71
73
  interface createWalletBody {
72
74
  useTwoSigners?: boolean;
@@ -112,11 +114,12 @@ interface AcceptScopesBody {
112
114
  partnerId: string;
113
115
  }
114
116
  interface sessionPasswordBody {
115
- status?: PasswordStatus;
117
+ status?: AuthMethodStatus;
116
118
  sigDerivedPublicKey?: string;
117
119
  salt?: string;
118
120
  encryptedWalletPrivateKey?: string;
119
121
  encryptionKeyHash?: string;
122
+ isPIN?: boolean;
120
123
  }
121
124
  interface EncryptedWalletPrivateKey {
122
125
  id: string;
@@ -148,13 +151,21 @@ declare class Client {
148
151
  */
149
152
  createUser: (body: VerifiedAuth & VerificationEmailProps) => Promise<createUserIdRes>;
150
153
  checkUserExists: (auth: VerifiedAuth) => Promise<any>;
151
- verifyTelegram: (authObject: TelegramAuthResponse) => Promise<VerifyTelegramResponse>;
154
+ verifyTelegram: ({ authObject, sessionLookupId, }: {
155
+ authObject: TelegramAuthResponse;
156
+ sessionLookupId?: string;
157
+ }) => Promise<VerifyTelegramResponse>;
152
158
  verifyOAuth: () => Promise<VerifyThirdPartyAuth | null>;
153
- loginExternalWallet: ({ externalWallet, shouldTrackUser, }: {
159
+ loginExternalWallet: ({ externalWallet, shouldTrackUser, chainId, uri, }: {
154
160
  externalWallet: ExternalWalletInfo;
155
161
  shouldTrackUser?: boolean;
162
+ chainId?: string;
163
+ uri?: string;
156
164
  }) => Promise<LoginExternalWalletResponse>;
157
- verifyNewAccount: (userId: string, body: verifyBody) => Promise<ServerAuthStateSignup>;
165
+ verifyAccount: (userId: string, body: verifyBody) => Promise<ServerAuthStateSignup | ServerAuthStateLogin | ServerAuthStateDone>;
166
+ sendLoginVerificationCode: (auth: PrimaryAuthInfo, isRecovery?: boolean) => Promise<{
167
+ userId: string;
168
+ }>;
158
169
  getLinkedAccounts: ({ userId, withMetadata, }: {
159
170
  userId: string;
160
171
  withMetadata?: boolean;
@@ -191,7 +202,7 @@ declare class Client {
191
202
  * @deprecated
192
203
  */
193
204
  verifyPhone: (userId: string, body: verifyBody) => Promise<any>;
194
- verifyExternalWallet: (userId: string, body: VerifyExternalWalletParams) => Promise<ServerAuthStateSignup>;
205
+ verifyExternalWallet: (userId: string, body: VerifyExternalWalletParams) => Promise<ServerAuthStateSignup | ServerAuthStateLogin | ServerAuthStateDone>;
195
206
  addSessionPublicKey: (userId: string, body: sessionPublicKeyBody) => Promise<any>;
196
207
  getSessionPublicKeys: (userId: string) => Promise<any>;
197
208
  getBiometricLocationHints: (auth: PrimaryAuth) => Promise<BiometricLocationHint[]>;
@@ -199,9 +210,31 @@ declare class Client {
199
210
  patchSessionPublicKey: (partnerId: string, userId: string, biometricId: string, body: sessionPublicKeyBody) => Promise<any>;
200
211
  getWebChallenge: (auth?: PrimaryAuth | Auth<"userId">) => Promise<getWebChallengeRes>;
201
212
  touchSession: (regenerate?: boolean) => Promise<SessionInfo>;
213
+ sessionAddPortalVerification: () => Promise<{
214
+ success: boolean;
215
+ }>;
202
216
  sessionOrigin: (sessionLookupId: string) => Promise<{
203
217
  origin?: string;
204
218
  }>;
219
+ sessionLoginMethod: (sessionLookupId: string) => Promise<{
220
+ loginMethod?: string;
221
+ }>;
222
+ sessionAuthVerified: (sessionLookupId: string) => Promise<{
223
+ authVerified?: boolean;
224
+ }>;
225
+ sessionAuth: (sessionLookupId: string) => Promise<{
226
+ userId: string;
227
+ authVerified?: boolean;
228
+ loginAuthMethods: {
229
+ methods: AuthMethod[];
230
+ };
231
+ auth: PrimaryAuth;
232
+ isNewUser: boolean;
233
+ }>;
234
+ sessionSIWEMessage: (sessionLookupId: string) => Promise<{
235
+ message?: string;
236
+ code?: string;
237
+ }>;
205
238
  verifyWebChallenge: (partnerId: string, body: verifyWebChallengeBody) => Promise<any>;
206
239
  getSessionChallenge: (userId: string) => Promise<any>;
207
240
  verifySessionChallenge: (userId: string, body: verifySessionChallengeBody) => Promise<any>;
@@ -257,7 +290,9 @@ declare class Client {
257
290
  initializeFarcasterLogin({ appScheme }?: {
258
291
  appScheme?: string;
259
292
  }): Promise<any>;
260
- getFarcasterAuthStatus(): Promise<VerifyFarcasterResponse>;
293
+ getFarcasterAuthStatus({ sessionLookupId }?: {
294
+ sessionLookupId?: string;
295
+ }): Promise<VerifyFarcasterResponse>;
261
296
  initializeRecoveryForPhone(phone: string, countryCode: string): Promise<AxiosResponse<any, any>>;
262
297
  finalizeRecovery(userId: string, walletId: string): Promise<AxiosResponse<any, any>>;
263
298
  recoverUserShares(userId: string, walletId: string): Promise<AxiosResponse<{
@@ -300,7 +335,7 @@ declare class Client {
300
335
  getOnRampPurchase({ userId, purchaseId, ...params }: {
301
336
  userId: string;
302
337
  purchaseId: string;
303
- } & WalletParams): Promise<AxiosResponse<OnRampPurchase, any>>;
338
+ } & WalletParams): Promise<AxiosResponse<import("@getpara/shared").IOnRampPurchase, any>>;
304
339
  signMoonPayUrl(userId: string, { url, type, cosmosPrefix, testMode, walletId, externalWalletAddress, }: {
305
340
  url: string;
306
341
  type: TWalletType;
@@ -370,10 +405,16 @@ declare class Client {
370
405
  deletePendingTransaction(userId: string, pendingTransactionId: string): Promise<any>;
371
406
  addSessionPasswordPublicKey(userId: string, body: sessionPasswordBody): Promise<any>;
372
407
  patchSessionPassword: (partnerId: string, userId: string, passwordId: string, body: sessionPasswordBody) => Promise<any>;
373
- getSupportedAuthMethods(auth: Auth): Promise<any>;
408
+ getSupportedAuthMethods(auth: Auth): Promise<{
409
+ supportedAuthMethods: LegacyAuthMethod[];
410
+ }>;
411
+ getSupportedAuthMethodsV2(auth: Auth): Promise<{
412
+ supportedAuthMethods: AuthMethod[];
413
+ hasPasswordWithoutPIN: boolean;
414
+ }>;
374
415
  getPasswords(auth: Auth): Promise<PasswordEntity[]>;
375
416
  verifyPasswordChallenge(partnerId: string, body: verifyPasswordChallengeBody): Promise<any>;
376
- getEncryptedWalletPrivateKey(passwordId: string): Promise<{
417
+ getEncryptedWalletPrivateKey(passwordId: string, sessionLookupId: string): Promise<{
377
418
  data: {
378
419
  encryptedWalletPrivateKey: EncryptedWalletPrivateKey;
379
420
  };
@@ -387,6 +428,12 @@ declare class Client {
387
428
  rpcUrl?: string;
388
429
  }) => Promise<GetWalletBalanceRes>;
389
430
  issueJwt: ({ keyIndex }?: IssueJwtParams) => Promise<IssueJwtResponse>;
431
+ getProfileBalance: ({ config, wallets, refetch, }: GetProfileBalanceParams) => Promise<{
432
+ balance: ProfileBalance;
433
+ }>;
434
+ getAssetInfo: () => Promise<{
435
+ assets: AssetMetadataIndexed;
436
+ }>;
390
437
  trackError: (opts: {
391
438
  methodName: string;
392
439
  error: {
@@ -400,5 +447,62 @@ declare class Client {
400
447
  props: object;
401
448
  reactSdkVersion: string;
402
449
  }) => Promise<void>;
450
+ /**
451
+ * Get the enclave's public key for encryption
452
+ */
453
+ getEnclavePublicKey: () => Promise<{
454
+ publicKey: string;
455
+ keyFingerprint: string;
456
+ generatedAt: string;
457
+ }>;
458
+ /**
459
+ * Persist encrypted key shares to the enclave
460
+ * @param encryptedPayload JSON string containing the encrypted ECIES payload
461
+ */
462
+ persistEnclaveShares: ({ encryptedPayload, hasNoShares, }: {
463
+ encryptedPayload?: string;
464
+ hasNoShares?: boolean;
465
+ }) => Promise<{
466
+ payload: any;
467
+ }>;
468
+ /**
469
+ * Retrieve encrypted key shares from the enclave
470
+ * @param encryptedPayload JSON string containing the encrypted ECIES query
471
+ */
472
+ retrieveEnclaveShares: (encryptedPayload: string) => Promise<{
473
+ payload: any;
474
+ }>;
475
+ issueEnclaveJwt: (encryptedPayload: string) => Promise<{
476
+ payload: string;
477
+ }>;
478
+ refreshEnclaveJwt: (encryptedPayload: string) => Promise<{
479
+ payload: string;
480
+ }>;
481
+ deleteEnclaveShares: (encryptedPayload: string) => Promise<{
482
+ payload: any;
483
+ }>;
484
+ getUserPreferences: (userId: string) => Promise<{
485
+ preferences: UserPreferences;
486
+ }>;
487
+ updateUserPreferences: (userId: string, preferences: Partial<UserPreferences>) => Promise<UserPreferences>;
488
+ estimateSendTransaction: ({ userId, walletId, opts, }: {
489
+ userId: string;
490
+ walletId: string;
491
+ opts: EstimateTransactionOpts;
492
+ }) => Promise<EstimateTransactionResult>;
493
+ broadcastSendTransaction: ({ userId, walletId, opts, }: {
494
+ userId: string;
495
+ walletId: string;
496
+ opts: BroadcastTransactionOpts;
497
+ }) => Promise<BroadcastTransactionResult>;
498
+ trackExternalWalletConnections: ({ wallets, }: {
499
+ wallets: {
500
+ address: string;
501
+ type: TExternalWalletType;
502
+ provider?: string;
503
+ }[];
504
+ }) => Promise<{
505
+ success: boolean;
506
+ }>;
403
507
  }
404
508
  export default Client;
@@ -1,6 +1,6 @@
1
1
  export * from './client.js';
2
- export * from './types/index.js';
3
2
  export * from './utils.js';
4
3
  export * from './error.js';
4
+ export * from '@getpara/shared';
5
5
  import Client from './client.js';
6
6
  export default Client;
@@ -1,6 +1,4 @@
1
- import { Auth, AuthInfo, AuthParams, PrimaryAuth, PrimaryAuthInfo, VerifiedAuth, WalletParams, WalletRef } from './types/index.js';
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-fc.3",
3
+ "version": "2.1.0",
4
4
  "dependencies": {
5
+ "@getpara/shared": "1.8.0",
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": "5ba068331384bed874c0da0d3d0e1fed6bf03ff9",
23
+ "gitHead": "3ae7f836324a3a2a8a57156e16304aeaf0d37b42",
23
24
  "main": "dist/cjs/index.js",
24
25
  "module": "dist/esm/index.js",
25
26
  "scripts": {
@@ -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 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
- OAUTH_METHODS: () => OAUTH_METHODS,
26
- OAuthMethod: () => OAuthMethod,
27
- PasswordStatus: () => PasswordStatus,
28
- PublicKeyStatus: () => PublicKeyStatus,
29
- PublicKeyType: () => PublicKeyType
30
- });
31
- module.exports = __toCommonJS(auth_exports);
32
- const AUTH_TYPES = [
33
- "email",
34
- "phone",
35
- "phoneLegacy",
36
- "farcaster",
37
- "telegram",
38
- "userId",
39
- "externalWallet",
40
- "discord",
41
- "x",
42
- "customId",
43
- "guestId"
44
- ];
45
- var EncryptorType = /* @__PURE__ */ ((EncryptorType2) => {
46
- EncryptorType2["USER"] = "USER";
47
- EncryptorType2["RECOVERY"] = "RECOVERY";
48
- EncryptorType2["BIOMETRICS"] = "BIOMETRICS";
49
- EncryptorType2["PASSWORD"] = "PASSWORD";
50
- return EncryptorType2;
51
- })(EncryptorType || {});
52
- var KeyShareType = /* @__PURE__ */ ((KeyShareType2) => {
53
- KeyShareType2["USER"] = "USER";
54
- KeyShareType2["RECOVERY"] = "RECOVERY";
55
- return KeyShareType2;
56
- })(KeyShareType || {});
57
- var PasswordStatus = /* @__PURE__ */ ((PasswordStatus2) => {
58
- PasswordStatus2["PENDING"] = "PENDING";
59
- PasswordStatus2["COMPLETE"] = "COMPLETE";
60
- return PasswordStatus2;
61
- })(PasswordStatus || {});
62
- var PublicKeyStatus = /* @__PURE__ */ ((PublicKeyStatus2) => {
63
- PublicKeyStatus2["PENDING"] = "PENDING";
64
- PublicKeyStatus2["COMPLETE"] = "COMPLETE";
65
- return PublicKeyStatus2;
66
- })(PublicKeyStatus || {});
67
- var PublicKeyType = /* @__PURE__ */ ((PublicKeyType2) => {
68
- PublicKeyType2["MOBILE"] = "MOBILE";
69
- PublicKeyType2["WEB"] = "WEB";
70
- return PublicKeyType2;
71
- })(PublicKeyType || {});
72
- var OAuthMethod = /* @__PURE__ */ ((OAuthMethod2) => {
73
- OAuthMethod2["GOOGLE"] = "GOOGLE";
74
- OAuthMethod2["TWITTER"] = "TWITTER";
75
- OAuthMethod2["APPLE"] = "APPLE";
76
- OAuthMethod2["DISCORD"] = "DISCORD";
77
- OAuthMethod2["FACEBOOK"] = "FACEBOOK";
78
- OAuthMethod2["FARCASTER"] = "FARCASTER";
79
- OAuthMethod2["TELEGRAM"] = "TELEGRAM";
80
- return OAuthMethod2;
81
- })(OAuthMethod || {});
82
- const OAUTH_METHODS = ["GOOGLE", "TWITTER", "APPLE", "DISCORD", "FACEBOOK", "FARCASTER", "TELEGRAM"];
83
- const LINKED_ACCOUNT_TYPES = [
84
- "EMAIL",
85
- "PHONE",
86
- "GOOGLE",
87
- "FACEBOOK",
88
- "APPLE",
89
- "TWITTER",
90
- "DISCORD",
91
- "TELEGRAM",
92
- "FARCASTER",
93
- "EXTERNAL_WALLET"
94
- ];
95
- var AuthMethod = /* @__PURE__ */ ((AuthMethod2) => {
96
- AuthMethod2["PASSWORD"] = "PASSWORD";
97
- AuthMethod2["PASSKEY"] = "PASSKEY";
98
- return AuthMethod2;
99
- })(AuthMethod || {});
100
- // Annotate the CommonJS export names for ESM import in node:
101
- 0 && (module.exports = {
102
- AUTH_TYPES,
103
- AuthMethod,
104
- EncryptorType,
105
- KeyShareType,
106
- LINKED_ACCOUNT_TYPES,
107
- OAUTH_METHODS,
108
- OAuthMethod,
109
- PasswordStatus,
110
- PublicKeyStatus,
111
- PublicKeyType
112
- });
@@ -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
- });
@@ -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
- });
@@ -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);
@@ -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
- });