@getpara/user-management-client 2.0.0-alpha.52 → 2.0.0-alpha.54

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,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,5 +0,0 @@
1
- export * from './auth.js';
2
- export * from './email.js';
3
- export * from './onRamp.js';
4
- export * from './partner.js';
5
- export * from './wallet.js';
@@ -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];