Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ledgerhq/types-live

Package Overview
Dependencies
Maintainers
21
Versions
259
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/types-live - npm Package Compare versions

Comparing version 6.40.0 to 6.40.1-nightly.0

lib-es/cexDeposit.d.ts

8

CHANGELOG.md
# @ledgerhq/types-live
## 6.40.0
## 6.40.1-nightly.0
### Minor Changes
### Patch Changes
- [#4851](https://github.com/LedgerHQ/ledger-live/pull/4851) [`6c83521fee`](https://github.com/LedgerHQ/ledger-live/commit/6c83521fee8da656858630c1cb37a5af95df3362) Thanks [@hedi-edelbloute](https://github.com/hedi-edelbloute)! - Integrate injective + gas rework
- [#4884](https://github.com/LedgerHQ/ledger-live/pull/4884) [`df5c9ae02a`](https://github.com/LedgerHQ/ledger-live/commit/df5c9ae02a604ddba13ddc64caf8d9ad079c303d) Thanks [@stephane-lieumont-ledger](https://github.com/stephane-lieumont-ledger)! - Need to add other link firebase for quickAccess Recover
## 6.40.0-hotfix.0
## 6.40.0

@@ -11,0 +11,0 @@ ### Minor Changes

@@ -1,38 +0,444 @@

/** Add others with union (e.g. "learn" | "market" | "foo") */
export type FeatureId = "learn" | "brazePushNotifications" | "brazeLearn" | "llmNewDeviceSelection" | "llmNewFirmwareUpdateUx" | "ratingsPrompt" | "npsRatingsPrompt" | "counterValue" | "deviceInitialApps" | "buyDeviceFromLive" | "ptxEarn" | "currencyAvalancheCChain" | "currencyStacks" | "currencyOptimism" | "currencyOptimismGoerli" | "currencyArbitrum" | "currencyArbitrumGoerli" | "currencyRsk" | "currencyBittorrent" | "currencyKavaEvm" | "currencyEvmosEvm" | "currencyEnergyWeb" | "currencyAstar" | "currencyMetis" | "currencyBoba" | "currencyMoonriver" | "currencyVelasEvm" | "currencySyscoin" | "currencyAxelar" | "currencySecretNetwork" | "currencyDesmos" | "currencyUmee" | "currencyStargaze" | "currencyOnomy" | "currencyPersistence" | "currencyQuicksilver" | "currencyInternetComputer" | "currencyInjective" | "depositNetworkBannerMobile" | "depositWithdrawBannerMobile" | "currencyTelosEvm" | "currencyCoreum" | "currencyPolygonZkEvm" | "currencyPolygonZkEvmTestnet" | "currencyBase" | "currencyBaseGoerli" | "currencyKlaytn" | "mockFeature" | "multibuyNavigation" | "syncOnboarding" | "walletConnectLiveApp" | "walletConnectEntryPoint" | "customImage" | "referralProgramDiscoverCard" | "referralProgramDesktopBanner" | "referralProgramDesktopSidebar" | "referralProgramMobile" | "disableNftSend" | "disableNftLedgerMarket" | "disableNftRaribleOpensea" | "walletNftGallery" | "receiveStakingFlowConfigDesktop" | "ethStakingProviders" | "storyly" | "staxWelcomeScreen" | "postOnboardingClaimNft" | "postOnboardingAssetsTransfer" | "firebaseEnvironmentReadOnly" | "protectServicesMobile" | "protectServicesDesktop" | "ptxServiceCtaExchangeDrawer" | "ptxServiceCtaScreens" | "swapWalletApiPartnerList" | "stakePrograms" | "portfolioExchangeBanner" | "objkt" | "editEthTx" | "stakeAccountBanner" | "newsfeedPage" | "domainInputResolution" | "discover" | "protectServicesDiscoverDesktop" | "transactionsAlerts" | "listAppsV2";
/** We use objects instead of direct booleans for potential future improvements
like feature versioning etc */
export type Feature<T = any> = {
/** If false, the feature is disabled (for every languages regardless of the languages_whitelisted option) */
import { CexDepositEntryPointsLocationsDesktop, CexDepositEntryPointsLocationsMobile } from "./cexDeposit";
import { ChainwatchNetwork } from "./chainwatch";
import { StorylyInstanceID } from "./storyly";
/**
* Feature type.
*
* @dev We use objects instead of direct booleans for potential future improvements.
*/
export type Feature<T = unknown> = {
/**
* If false, the feature is disabled (for every languages regardless of the languages_whitelisted option)
*/
enabled: boolean;
/** The `desktop_version` option is desktop specific, it has no impact on mobile */
/** If set, the feature is disabled when the desktop app version does not satisfies this param */
/** It should respect the semantic versioning specification (https://semver.org/) */
/**
* The `desktop_version` option is desktop specific, it has no impact on mobile
* If set, the feature is disabled when the desktop app version does not satisfies this param
* It should respect the semantic versioning specification (https://semver.org/)
*/
desktop_version?: string;
/** Whether the remote value of `enabled` was overriden due to `desktop_version` */
/**
* Whether the remote value of `enabled` was overriden due to `desktop_version`
*/
enabledOverriddenForCurrentDesktopVersion?: boolean;
/** The `mobile_version` option is mobile specific, it has no impact on mobile */
/** If set, the feature is disabled when the mobile app version does not satisfies this param */
/** It should respect the semantic versioning specification (https://semver.org/) */
/**
* The `mobile_version` option is mobile specific, it has no impact on mobile
* If set, the feature is disabled when the mobile app version does not satisfies this param
* It should respect the semantic versioning specification (https://semver.org/)
*/
mobile_version?: string;
/** Whether the remote value of `enabled` was overriden due to `mobile_version` */
/**
* Whether the remote value of `enabled` was overriden due to `mobile_version`
*/
enabledOverriddenForCurrentMobileVersion?: boolean;
/** You can optionnally use one of the two following options (languages_whitelisted and languages_blacklisted) (Only implemented on mobile for now) */
/** List of languages for which the feature is enabled (it will be disabled by default for all of the others) */
languages_whitelisted?: [string];
/** List of languages for which the feature is disabled */
languages_blacklisted?: [string];
/** Whether the remote value of `enabled` was overriden due to `languages_whitelisted` or `languages_blacklisted` */
/**
* You can optionnally use one of the two following options (languages_whitelisted and languages_blacklisted) (Only implemented on mobile for now)
* List of languages for which the feature is enabled (it will be disabled by default for all of the others)
*/
languages_whitelisted?: string[];
/**
* List of languages for which the feature is disabled
*/
languages_blacklisted?: string[];
/**
* Whether the remote value of `enabled` was overriden due to `languages_whitelisted` or `languages_blacklisted`
*/
enabledOverriddenForCurrentLanguage?: boolean;
/** Whether the remote value of this object was overriden locally */
/**
* Whether the remote value of this object was overriden locally
*/
overridesRemote?: boolean;
/** Whether the remote value of this object was overriden by an environment variable */
/**
* Whether the remote value of this object was overriden by an environment variable
*/
overriddenByEnv?: boolean;
/** Additional params */
/**
* Additional params
*/
params?: T;
};
/** */
export type DefaultFeatures = {
[key in FeatureId]?: Feature;
/**
* Default Feature type.
*/
export type DefaultFeature = Feature<unknown>;
/**
* Currency Features type.
*/
export type CurrencyFeatures = {
currencyAvalancheCChain: DefaultFeature;
currencyStacks: DefaultFeature;
currencyOptimism: DefaultFeature;
currencyOptimismGoerli: DefaultFeature;
currencyArbitrum: DefaultFeature;
currencyArbitrumGoerli: DefaultFeature;
currencyRsk: DefaultFeature;
currencyBittorrent: DefaultFeature;
currencyKavaEvm: DefaultFeature;
currencyEvmosEvm: DefaultFeature;
currencyEnergyWeb: DefaultFeature;
currencyAstar: DefaultFeature;
currencyMetis: DefaultFeature;
currencyBoba: DefaultFeature;
currencyMoonriver: DefaultFeature;
currencyVelasEvm: DefaultFeature;
currencySyscoin: DefaultFeature;
currencyAxelar: DefaultFeature;
currencySecretNetwork: DefaultFeature;
currencyDesmos: DefaultFeature;
currencyUmee: DefaultFeature;
currencyStargaze: DefaultFeature;
currencyOnomy: DefaultFeature;
currencyPersistence: DefaultFeature;
currencyQuicksilver: DefaultFeature;
currencyInternetComputer: DefaultFeature;
currencyInjective: DefaultFeature;
currencyTelosEvm: DefaultFeature;
currencyCoreum: DefaultFeature;
currencyPolygonZkEvm: DefaultFeature;
currencyPolygonZkEvmTestnet: DefaultFeature;
currencyBase: DefaultFeature;
currencyBaseGoerli: DefaultFeature;
currencyKlaytn: DefaultFeature;
};
/**
* Features type.
*
* @dev Add features here.
*/
export type Features = CurrencyFeatures & {
learn: Feature_Learn;
brazePushNotifications: Feature_BrazePushNotifications;
brazeLearn: Feature_BrazeLearn;
llmNewDeviceSelection: Feature_LlmNewDeviceSelection;
llmNewFirmwareUpdateUx: Feature_LlmNewFirmwareUpdateUx;
ratingsPrompt: Feature_RatingsPrompt;
npsRatingsPrompt: Feature_NpsRatingsPrompt;
counterValue: Feature_CounterValue;
deviceInitialApps: Feature_DeviceInitialApps;
buyDeviceFromLive: Feature_BuyDeviceFromLive;
ptxEarn: Feature_PtxEarn;
depositNetworkBannerMobile: Feature_DepositNetworkBannerMobile;
depositWithdrawBannerMobile: Feature_DepositWithdrawBannerMobile;
mockFeature: Feature_MockFeature;
multibuyNavigation: Feature_MultibuyNavigation;
syncOnboarding: Feature_SyncOnboarding;
walletConnectLiveApp: Feature_WalletConnectLiveApp;
walletConnectEntryPoint: Feature_WalletConnectEntryPoint;
customImage: Feature_CustomImage;
referralProgramDiscoverCard: Feature_ReferralProgramDiscoverCard;
referralProgramDesktopBanner: Feature_ReferralProgramDesktopBanner;
referralProgramDesktopSidebar: Feature_ReferralProgramDesktopSidebar;
referralProgramMobile: Feature_ReferralProgramMobile;
disableNftSend: Feature_DisableNftSend;
disableNftLedgerMarket: Feature_DisableNftLedgerMarket;
disableNftRaribleOpensea: Feature_DisableNftRaribleOpensea;
walletNftGallery: Feature_WalletNftGallery;
receiveStakingFlowConfigDesktop: Feature_ReceiveStakingFlowConfigDesktop;
ethStakingProviders: Feature_EthStakingProviders;
storyly: Feature_Storyly;
staxWelcomeScreen: Feature_StaxWelcomeScreen;
postOnboardingClaimNft: Feature_PostOnboardingClaimNft;
postOnboardingAssetsTransfer: Feature_PostOnboardingAssetsTransfer;
firebaseEnvironmentReadOnly: Feature_FirebaseEnvironmentReadOnly;
protectServicesMobile: Feature_ProtectServicesMobile;
protectServicesDesktop: Feature_ProtectServicesDesktop;
ptxServiceCtaExchangeDrawer: Feature_PtxServiceCtaExchangeDrawer;
ptxServiceCtaScreens: Feature_PtxServiceCtaScreens;
swapWalletApiPartnerList: Feature_SwapWalletApiPartnerList;
stakePrograms: Feature_StakePrograms;
portfolioExchangeBanner: Feature_PortfolioExchangeBanner;
objkt: Feature_Objkt;
editEthTx: Feature_EditEthTx;
stakeAccountBanner: Feature_StakeAccountBanner;
newsfeedPage: Feature_NewsfeedPage;
domainInputResolution: Feature_DomainInputResolution;
discover: Feature_Discover;
protectServicesDiscoverDesktop: Feature_ProtectServicesDiscoverDesktop;
transactionsAlerts: Feature_TransactionsAlerts;
listAppsV2: Feature_ListAppsV2;
llmWalletQuickActions: Feature_LlmWalletQuickActions;
cexDepositEntryPointsDesktop: Feature_CexDepositEntryPointsDesktop;
cexDepositEntryPointsMobile: Feature_CexDepositEntryPointsMobile;
fetchAdditionalCoins: Feature_FetchAdditionalCoins;
ptxSwapLiveApp: Feature_PtxSwapLiveApp;
};
/**
* FeatureId type.
*/
export type FeatureId = keyof Features;
/**
* Features types.
*/
export type Feature_EthStakingProviders = Feature<{
listProvider: {
id: string;
name: string;
liveAppId: string;
supportLink?: string;
icon?: string;
queryParams?: Record<string, string>;
}[];
}>;
export type Feature_WalletNftGallery = Feature<{
lazyLoadScreens: boolean;
}>;
export type Feature_WalletConnectLiveApp = Feature<{
liveAppId: string;
}>;
export type Feature_TransactionsAlerts = Feature<{
chainwatchBaseUrl: string;
networks: ChainwatchNetwork[];
}>;
export type Feature_SwapWalletApiPartnerList = Feature<{
list: string[];
}>;
export type Feature_StakePrograms = Feature<{
list: string[];
}>;
export type Feature_StakeAccountBanner = Feature<{
[blockchainName: string]: any;
}>;
export type Feature_ReferralProgramMobile = Feature<{
path: string;
}>;
export type Feature_ReferralProgramDiscoverCard = Feature<{
url: string;
}>;
export type Feature_ReferralProgramDesktopSidebar = Feature<{
path: string;
isNew: boolean;
amount: string;
}>;
export type Feature_BrazePushNotifications = Feature<{
notificationsCategories: {
displayed: boolean;
category: string;
}[];
trigger_events: {
route_name: string;
timer: number;
type: string;
}[];
marketCoinStarred: {
enabled: boolean;
timer: number;
};
justFinishedOnboarding: {
enabled: boolean;
timer: number;
};
conditions: {
default_delay_between_two_prompts: {
seconds: number;
};
maybe_later_delay: {
seconds: number;
};
minimum_accounts_with_funds_number: number;
minimum_app_starts_number: number;
minimum_duration_since_app_first_start: {
seconds: number;
};
};
}>;
export type Feature_ReceiveStakingFlowConfigDesktop = Feature<{
[blockchainName: string]: {
enabled: boolean;
supportLink: string;
direct: boolean;
};
}>;
export type Feature_Learn = Feature<{
mobile: {
url: string;
};
desktop: {
url: string;
};
}>;
export type Feature_PtxEarn = Feature<{
liveAppId: string;
}>;
export type Feature_Storyly = Feature<{
stories: {
[key in StorylyInstanceID]: {
testingEnabled: boolean;
token: string;
};
};
}>;
export type Feature_NewsfeedPage = Feature<{
cryptopanicApiKey: string;
whitelistedLocales: string[];
}>;
export type Feature_ProtectServicesMobile = Feature<{
deeplink: string;
onboardingRestore: {
restoreInfoDrawer: {
enabled: boolean;
manualStepsURI: string;
supportLinkURI: string;
};
postOnboardingURI: string;
};
managerStatesData: {
NEW: {
learnMoreURI: string;
alreadySubscribedURI: string;
quickAccessURI: string;
};
};
login: {
loginURI: string;
};
protectId: string;
}>;
export type Feature_ProtectServicesDesktop = Feature<{
availableOnDesktop: boolean;
openRecoverFromSidebar: boolean;
discoverTheBenefitsLink: string;
onboardingRestore: {
restoreInfoDrawer: {
enabled: boolean;
manualStepsURI: string;
supportLinkURI: string;
};
postOnboardingURI: string;
};
onboardingCompleted: {
upsellURI: string;
alreadySubscribedURI: string;
};
account: {
homeURI: string;
loginURI: string;
};
protectId: string;
}>;
export type Feature_DeviceInitialApps = Feature<{
apps: string[];
}>;
export type Feature_BuyDeviceFromLive = Feature<{
debug: boolean;
url: string | null;
}>;
export type Feature_DepositNetworkBannerMobile = Feature<{
url: string;
}>;
export type Feature_DepositWithdrawBannerMobile = Feature<{
url: string;
}>;
export type Feature_Discover = Feature<{
version: string;
}>;
export type Feature_DomainInputResolution = Feature<{
supportedCurrencyIds: string[];
}>;
export type Feature_FirebaseEnvironmentReadOnly = Feature<{
comment: string;
project: string;
}>;
export type Feature_NpsRatingsPrompt = Feature<{
conditions: {
disappointed_delay: {
seconds: number;
};
minimum_accounts_number: number;
minimum_app_starts_number: number;
minimum_duration_since_app_first_start: {
seconds: number;
};
minimum_number_of_app_starts_since_last_crash: number;
not_now_delay: {
seconds: number;
};
satisfied_then_not_now_delay: {
seconds: number;
};
};
happy_moments: {
route_name: string;
timer: number;
type: string;
}[];
support_email: string;
typeform_url: string;
}>;
export type Feature_RatingsPrompt = Feature<{
conditions: {
disappointed_delay: {
days: number;
};
minimum_accounts_number: number;
minimum_app_starts_number: number;
minimum_duration_since_app_first_start: {
days: number;
};
minimum_number_of_app_starts_since_last_crash: number;
not_now_delay: {
days: number;
};
satisfied_then_not_now_delay: {
days: number;
};
};
happy_moments: {
route_name: string;
timer: number;
type: string;
}[];
support_email: string;
typeform_url: string;
}>;
export type Feature_CexDepositEntryPointsDesktop = Feature<{
path: string;
locations: {
[key in CexDepositEntryPointsLocationsDesktop]: boolean;
};
}>;
export type Feature_CexDepositEntryPointsMobile = Feature<{
path: string;
locations: {
[key in CexDepositEntryPointsLocationsMobile]: boolean;
};
}>;
export type Feature_PtxSwapLiveApp = Feature<{
currencies?: Array<string>;
families?: Array<string>;
}>;
export type Feature_LlmNewFirmwareUpdateUx = DefaultFeature;
export type Feature_CounterValue = DefaultFeature;
export type Feature_MockFeature = DefaultFeature;
export type Feature_MultibuyNavigation = DefaultFeature;
export type Feature_SyncOnboarding = DefaultFeature;
export type Feature_WalletConnectEntryPoint = DefaultFeature;
export type Feature_CustomImage = DefaultFeature;
export type Feature_ReferralProgramDesktopBanner = DefaultFeature;
export type Feature_DisableNftSend = DefaultFeature;
export type Feature_DisableNftLedgerMarket = DefaultFeature;
export type Feature_DisableNftRaribleOpensea = DefaultFeature;
export type Feature_StaxWelcomeScreen = DefaultFeature;
export type Feature_PostOnboardingClaimNft = DefaultFeature;
export type Feature_PostOnboardingAssetsTransfer = DefaultFeature;
export type Feature_PtxServiceCtaExchangeDrawer = DefaultFeature;
export type Feature_PtxServiceCtaScreens = DefaultFeature;
export type Feature_PortfolioExchangeBanner = DefaultFeature;
export type Feature_Objkt = DefaultFeature;
export type Feature_EditEthTx = DefaultFeature;
export type Feature_ProtectServicesDiscoverDesktop = DefaultFeature;
export type Feature_ListAppsV2 = DefaultFeature;
export type Feature_BrazeLearn = DefaultFeature;
export type Feature_LlmNewDeviceSelection = DefaultFeature;
export type Feature_LlmWalletQuickActions = DefaultFeature;
export type Feature_FetchAdditionalCoins = DefaultFeature;
/**
* Utils types.
*/
export type FeatureMap<T = Feature> = {
[key in FeatureId]: T;
};
export type OptionalFeatureMap<T = Feature> = {
[key in FeatureId]?: T;
};
export type FeatureParam<T extends FeatureId> = Features[T]["params"];
//# sourceMappingURL=feature.d.ts.map

@@ -17,2 +17,3 @@ export * from "./account";

export * from "./messages";
export * from "./cexDeposit";
//# sourceMappingURL=index.d.ts.map

@@ -17,2 +17,3 @@ export * from "./account";

export * from "./messages";
export * from "./cexDeposit";
//# sourceMappingURL=index.js.map

@@ -296,3 +296,2 @@ /// <reference types="node" />

type: "device-permission-requested";
wording: string;
} | {

@@ -299,0 +298,0 @@ type: "device-permission-granted";

@@ -7,3 +7,7 @@ import { TypedEvmMessage } from "./evm";

export type AnyMessage = DefaultMessage | TypedEvmMessage;
export type MessageProperties = {
label: string;
value: string | string[];
}[];
export * from "./evm";
//# sourceMappingURL=index.d.ts.map

@@ -1,38 +0,444 @@

/** Add others with union (e.g. "learn" | "market" | "foo") */
export type FeatureId = "learn" | "brazePushNotifications" | "brazeLearn" | "llmNewDeviceSelection" | "llmNewFirmwareUpdateUx" | "ratingsPrompt" | "npsRatingsPrompt" | "counterValue" | "deviceInitialApps" | "buyDeviceFromLive" | "ptxEarn" | "currencyAvalancheCChain" | "currencyStacks" | "currencyOptimism" | "currencyOptimismGoerli" | "currencyArbitrum" | "currencyArbitrumGoerli" | "currencyRsk" | "currencyBittorrent" | "currencyKavaEvm" | "currencyEvmosEvm" | "currencyEnergyWeb" | "currencyAstar" | "currencyMetis" | "currencyBoba" | "currencyMoonriver" | "currencyVelasEvm" | "currencySyscoin" | "currencyAxelar" | "currencySecretNetwork" | "currencyDesmos" | "currencyUmee" | "currencyStargaze" | "currencyOnomy" | "currencyPersistence" | "currencyQuicksilver" | "currencyInternetComputer" | "currencyInjective" | "depositNetworkBannerMobile" | "depositWithdrawBannerMobile" | "currencyTelosEvm" | "currencyCoreum" | "currencyPolygonZkEvm" | "currencyPolygonZkEvmTestnet" | "currencyBase" | "currencyBaseGoerli" | "currencyKlaytn" | "mockFeature" | "multibuyNavigation" | "syncOnboarding" | "walletConnectLiveApp" | "walletConnectEntryPoint" | "customImage" | "referralProgramDiscoverCard" | "referralProgramDesktopBanner" | "referralProgramDesktopSidebar" | "referralProgramMobile" | "disableNftSend" | "disableNftLedgerMarket" | "disableNftRaribleOpensea" | "walletNftGallery" | "receiveStakingFlowConfigDesktop" | "ethStakingProviders" | "storyly" | "staxWelcomeScreen" | "postOnboardingClaimNft" | "postOnboardingAssetsTransfer" | "firebaseEnvironmentReadOnly" | "protectServicesMobile" | "protectServicesDesktop" | "ptxServiceCtaExchangeDrawer" | "ptxServiceCtaScreens" | "swapWalletApiPartnerList" | "stakePrograms" | "portfolioExchangeBanner" | "objkt" | "editEthTx" | "stakeAccountBanner" | "newsfeedPage" | "domainInputResolution" | "discover" | "protectServicesDiscoverDesktop" | "transactionsAlerts" | "listAppsV2";
/** We use objects instead of direct booleans for potential future improvements
like feature versioning etc */
export type Feature<T = any> = {
/** If false, the feature is disabled (for every languages regardless of the languages_whitelisted option) */
import { CexDepositEntryPointsLocationsDesktop, CexDepositEntryPointsLocationsMobile } from "./cexDeposit";
import { ChainwatchNetwork } from "./chainwatch";
import { StorylyInstanceID } from "./storyly";
/**
* Feature type.
*
* @dev We use objects instead of direct booleans for potential future improvements.
*/
export type Feature<T = unknown> = {
/**
* If false, the feature is disabled (for every languages regardless of the languages_whitelisted option)
*/
enabled: boolean;
/** The `desktop_version` option is desktop specific, it has no impact on mobile */
/** If set, the feature is disabled when the desktop app version does not satisfies this param */
/** It should respect the semantic versioning specification (https://semver.org/) */
/**
* The `desktop_version` option is desktop specific, it has no impact on mobile
* If set, the feature is disabled when the desktop app version does not satisfies this param
* It should respect the semantic versioning specification (https://semver.org/)
*/
desktop_version?: string;
/** Whether the remote value of `enabled` was overriden due to `desktop_version` */
/**
* Whether the remote value of `enabled` was overriden due to `desktop_version`
*/
enabledOverriddenForCurrentDesktopVersion?: boolean;
/** The `mobile_version` option is mobile specific, it has no impact on mobile */
/** If set, the feature is disabled when the mobile app version does not satisfies this param */
/** It should respect the semantic versioning specification (https://semver.org/) */
/**
* The `mobile_version` option is mobile specific, it has no impact on mobile
* If set, the feature is disabled when the mobile app version does not satisfies this param
* It should respect the semantic versioning specification (https://semver.org/)
*/
mobile_version?: string;
/** Whether the remote value of `enabled` was overriden due to `mobile_version` */
/**
* Whether the remote value of `enabled` was overriden due to `mobile_version`
*/
enabledOverriddenForCurrentMobileVersion?: boolean;
/** You can optionnally use one of the two following options (languages_whitelisted and languages_blacklisted) (Only implemented on mobile for now) */
/** List of languages for which the feature is enabled (it will be disabled by default for all of the others) */
languages_whitelisted?: [string];
/** List of languages for which the feature is disabled */
languages_blacklisted?: [string];
/** Whether the remote value of `enabled` was overriden due to `languages_whitelisted` or `languages_blacklisted` */
/**
* You can optionnally use one of the two following options (languages_whitelisted and languages_blacklisted) (Only implemented on mobile for now)
* List of languages for which the feature is enabled (it will be disabled by default for all of the others)
*/
languages_whitelisted?: string[];
/**
* List of languages for which the feature is disabled
*/
languages_blacklisted?: string[];
/**
* Whether the remote value of `enabled` was overriden due to `languages_whitelisted` or `languages_blacklisted`
*/
enabledOverriddenForCurrentLanguage?: boolean;
/** Whether the remote value of this object was overriden locally */
/**
* Whether the remote value of this object was overriden locally
*/
overridesRemote?: boolean;
/** Whether the remote value of this object was overriden by an environment variable */
/**
* Whether the remote value of this object was overriden by an environment variable
*/
overriddenByEnv?: boolean;
/** Additional params */
/**
* Additional params
*/
params?: T;
};
/** */
export type DefaultFeatures = {
[key in FeatureId]?: Feature;
/**
* Default Feature type.
*/
export type DefaultFeature = Feature<unknown>;
/**
* Currency Features type.
*/
export type CurrencyFeatures = {
currencyAvalancheCChain: DefaultFeature;
currencyStacks: DefaultFeature;
currencyOptimism: DefaultFeature;
currencyOptimismGoerli: DefaultFeature;
currencyArbitrum: DefaultFeature;
currencyArbitrumGoerli: DefaultFeature;
currencyRsk: DefaultFeature;
currencyBittorrent: DefaultFeature;
currencyKavaEvm: DefaultFeature;
currencyEvmosEvm: DefaultFeature;
currencyEnergyWeb: DefaultFeature;
currencyAstar: DefaultFeature;
currencyMetis: DefaultFeature;
currencyBoba: DefaultFeature;
currencyMoonriver: DefaultFeature;
currencyVelasEvm: DefaultFeature;
currencySyscoin: DefaultFeature;
currencyAxelar: DefaultFeature;
currencySecretNetwork: DefaultFeature;
currencyDesmos: DefaultFeature;
currencyUmee: DefaultFeature;
currencyStargaze: DefaultFeature;
currencyOnomy: DefaultFeature;
currencyPersistence: DefaultFeature;
currencyQuicksilver: DefaultFeature;
currencyInternetComputer: DefaultFeature;
currencyInjective: DefaultFeature;
currencyTelosEvm: DefaultFeature;
currencyCoreum: DefaultFeature;
currencyPolygonZkEvm: DefaultFeature;
currencyPolygonZkEvmTestnet: DefaultFeature;
currencyBase: DefaultFeature;
currencyBaseGoerli: DefaultFeature;
currencyKlaytn: DefaultFeature;
};
/**
* Features type.
*
* @dev Add features here.
*/
export type Features = CurrencyFeatures & {
learn: Feature_Learn;
brazePushNotifications: Feature_BrazePushNotifications;
brazeLearn: Feature_BrazeLearn;
llmNewDeviceSelection: Feature_LlmNewDeviceSelection;
llmNewFirmwareUpdateUx: Feature_LlmNewFirmwareUpdateUx;
ratingsPrompt: Feature_RatingsPrompt;
npsRatingsPrompt: Feature_NpsRatingsPrompt;
counterValue: Feature_CounterValue;
deviceInitialApps: Feature_DeviceInitialApps;
buyDeviceFromLive: Feature_BuyDeviceFromLive;
ptxEarn: Feature_PtxEarn;
depositNetworkBannerMobile: Feature_DepositNetworkBannerMobile;
depositWithdrawBannerMobile: Feature_DepositWithdrawBannerMobile;
mockFeature: Feature_MockFeature;
multibuyNavigation: Feature_MultibuyNavigation;
syncOnboarding: Feature_SyncOnboarding;
walletConnectLiveApp: Feature_WalletConnectLiveApp;
walletConnectEntryPoint: Feature_WalletConnectEntryPoint;
customImage: Feature_CustomImage;
referralProgramDiscoverCard: Feature_ReferralProgramDiscoverCard;
referralProgramDesktopBanner: Feature_ReferralProgramDesktopBanner;
referralProgramDesktopSidebar: Feature_ReferralProgramDesktopSidebar;
referralProgramMobile: Feature_ReferralProgramMobile;
disableNftSend: Feature_DisableNftSend;
disableNftLedgerMarket: Feature_DisableNftLedgerMarket;
disableNftRaribleOpensea: Feature_DisableNftRaribleOpensea;
walletNftGallery: Feature_WalletNftGallery;
receiveStakingFlowConfigDesktop: Feature_ReceiveStakingFlowConfigDesktop;
ethStakingProviders: Feature_EthStakingProviders;
storyly: Feature_Storyly;
staxWelcomeScreen: Feature_StaxWelcomeScreen;
postOnboardingClaimNft: Feature_PostOnboardingClaimNft;
postOnboardingAssetsTransfer: Feature_PostOnboardingAssetsTransfer;
firebaseEnvironmentReadOnly: Feature_FirebaseEnvironmentReadOnly;
protectServicesMobile: Feature_ProtectServicesMobile;
protectServicesDesktop: Feature_ProtectServicesDesktop;
ptxServiceCtaExchangeDrawer: Feature_PtxServiceCtaExchangeDrawer;
ptxServiceCtaScreens: Feature_PtxServiceCtaScreens;
swapWalletApiPartnerList: Feature_SwapWalletApiPartnerList;
stakePrograms: Feature_StakePrograms;
portfolioExchangeBanner: Feature_PortfolioExchangeBanner;
objkt: Feature_Objkt;
editEthTx: Feature_EditEthTx;
stakeAccountBanner: Feature_StakeAccountBanner;
newsfeedPage: Feature_NewsfeedPage;
domainInputResolution: Feature_DomainInputResolution;
discover: Feature_Discover;
protectServicesDiscoverDesktop: Feature_ProtectServicesDiscoverDesktop;
transactionsAlerts: Feature_TransactionsAlerts;
listAppsV2: Feature_ListAppsV2;
llmWalletQuickActions: Feature_LlmWalletQuickActions;
cexDepositEntryPointsDesktop: Feature_CexDepositEntryPointsDesktop;
cexDepositEntryPointsMobile: Feature_CexDepositEntryPointsMobile;
fetchAdditionalCoins: Feature_FetchAdditionalCoins;
ptxSwapLiveApp: Feature_PtxSwapLiveApp;
};
/**
* FeatureId type.
*/
export type FeatureId = keyof Features;
/**
* Features types.
*/
export type Feature_EthStakingProviders = Feature<{
listProvider: {
id: string;
name: string;
liveAppId: string;
supportLink?: string;
icon?: string;
queryParams?: Record<string, string>;
}[];
}>;
export type Feature_WalletNftGallery = Feature<{
lazyLoadScreens: boolean;
}>;
export type Feature_WalletConnectLiveApp = Feature<{
liveAppId: string;
}>;
export type Feature_TransactionsAlerts = Feature<{
chainwatchBaseUrl: string;
networks: ChainwatchNetwork[];
}>;
export type Feature_SwapWalletApiPartnerList = Feature<{
list: string[];
}>;
export type Feature_StakePrograms = Feature<{
list: string[];
}>;
export type Feature_StakeAccountBanner = Feature<{
[blockchainName: string]: any;
}>;
export type Feature_ReferralProgramMobile = Feature<{
path: string;
}>;
export type Feature_ReferralProgramDiscoverCard = Feature<{
url: string;
}>;
export type Feature_ReferralProgramDesktopSidebar = Feature<{
path: string;
isNew: boolean;
amount: string;
}>;
export type Feature_BrazePushNotifications = Feature<{
notificationsCategories: {
displayed: boolean;
category: string;
}[];
trigger_events: {
route_name: string;
timer: number;
type: string;
}[];
marketCoinStarred: {
enabled: boolean;
timer: number;
};
justFinishedOnboarding: {
enabled: boolean;
timer: number;
};
conditions: {
default_delay_between_two_prompts: {
seconds: number;
};
maybe_later_delay: {
seconds: number;
};
minimum_accounts_with_funds_number: number;
minimum_app_starts_number: number;
minimum_duration_since_app_first_start: {
seconds: number;
};
};
}>;
export type Feature_ReceiveStakingFlowConfigDesktop = Feature<{
[blockchainName: string]: {
enabled: boolean;
supportLink: string;
direct: boolean;
};
}>;
export type Feature_Learn = Feature<{
mobile: {
url: string;
};
desktop: {
url: string;
};
}>;
export type Feature_PtxEarn = Feature<{
liveAppId: string;
}>;
export type Feature_Storyly = Feature<{
stories: {
[key in StorylyInstanceID]: {
testingEnabled: boolean;
token: string;
};
};
}>;
export type Feature_NewsfeedPage = Feature<{
cryptopanicApiKey: string;
whitelistedLocales: string[];
}>;
export type Feature_ProtectServicesMobile = Feature<{
deeplink: string;
onboardingRestore: {
restoreInfoDrawer: {
enabled: boolean;
manualStepsURI: string;
supportLinkURI: string;
};
postOnboardingURI: string;
};
managerStatesData: {
NEW: {
learnMoreURI: string;
alreadySubscribedURI: string;
quickAccessURI: string;
};
};
login: {
loginURI: string;
};
protectId: string;
}>;
export type Feature_ProtectServicesDesktop = Feature<{
availableOnDesktop: boolean;
openRecoverFromSidebar: boolean;
discoverTheBenefitsLink: string;
onboardingRestore: {
restoreInfoDrawer: {
enabled: boolean;
manualStepsURI: string;
supportLinkURI: string;
};
postOnboardingURI: string;
};
onboardingCompleted: {
upsellURI: string;
alreadySubscribedURI: string;
};
account: {
homeURI: string;
loginURI: string;
};
protectId: string;
}>;
export type Feature_DeviceInitialApps = Feature<{
apps: string[];
}>;
export type Feature_BuyDeviceFromLive = Feature<{
debug: boolean;
url: string | null;
}>;
export type Feature_DepositNetworkBannerMobile = Feature<{
url: string;
}>;
export type Feature_DepositWithdrawBannerMobile = Feature<{
url: string;
}>;
export type Feature_Discover = Feature<{
version: string;
}>;
export type Feature_DomainInputResolution = Feature<{
supportedCurrencyIds: string[];
}>;
export type Feature_FirebaseEnvironmentReadOnly = Feature<{
comment: string;
project: string;
}>;
export type Feature_NpsRatingsPrompt = Feature<{
conditions: {
disappointed_delay: {
seconds: number;
};
minimum_accounts_number: number;
minimum_app_starts_number: number;
minimum_duration_since_app_first_start: {
seconds: number;
};
minimum_number_of_app_starts_since_last_crash: number;
not_now_delay: {
seconds: number;
};
satisfied_then_not_now_delay: {
seconds: number;
};
};
happy_moments: {
route_name: string;
timer: number;
type: string;
}[];
support_email: string;
typeform_url: string;
}>;
export type Feature_RatingsPrompt = Feature<{
conditions: {
disappointed_delay: {
days: number;
};
minimum_accounts_number: number;
minimum_app_starts_number: number;
minimum_duration_since_app_first_start: {
days: number;
};
minimum_number_of_app_starts_since_last_crash: number;
not_now_delay: {
days: number;
};
satisfied_then_not_now_delay: {
days: number;
};
};
happy_moments: {
route_name: string;
timer: number;
type: string;
}[];
support_email: string;
typeform_url: string;
}>;
export type Feature_CexDepositEntryPointsDesktop = Feature<{
path: string;
locations: {
[key in CexDepositEntryPointsLocationsDesktop]: boolean;
};
}>;
export type Feature_CexDepositEntryPointsMobile = Feature<{
path: string;
locations: {
[key in CexDepositEntryPointsLocationsMobile]: boolean;
};
}>;
export type Feature_PtxSwapLiveApp = Feature<{
currencies?: Array<string>;
families?: Array<string>;
}>;
export type Feature_LlmNewFirmwareUpdateUx = DefaultFeature;
export type Feature_CounterValue = DefaultFeature;
export type Feature_MockFeature = DefaultFeature;
export type Feature_MultibuyNavigation = DefaultFeature;
export type Feature_SyncOnboarding = DefaultFeature;
export type Feature_WalletConnectEntryPoint = DefaultFeature;
export type Feature_CustomImage = DefaultFeature;
export type Feature_ReferralProgramDesktopBanner = DefaultFeature;
export type Feature_DisableNftSend = DefaultFeature;
export type Feature_DisableNftLedgerMarket = DefaultFeature;
export type Feature_DisableNftRaribleOpensea = DefaultFeature;
export type Feature_StaxWelcomeScreen = DefaultFeature;
export type Feature_PostOnboardingClaimNft = DefaultFeature;
export type Feature_PostOnboardingAssetsTransfer = DefaultFeature;
export type Feature_PtxServiceCtaExchangeDrawer = DefaultFeature;
export type Feature_PtxServiceCtaScreens = DefaultFeature;
export type Feature_PortfolioExchangeBanner = DefaultFeature;
export type Feature_Objkt = DefaultFeature;
export type Feature_EditEthTx = DefaultFeature;
export type Feature_ProtectServicesDiscoverDesktop = DefaultFeature;
export type Feature_ListAppsV2 = DefaultFeature;
export type Feature_BrazeLearn = DefaultFeature;
export type Feature_LlmNewDeviceSelection = DefaultFeature;
export type Feature_LlmWalletQuickActions = DefaultFeature;
export type Feature_FetchAdditionalCoins = DefaultFeature;
/**
* Utils types.
*/
export type FeatureMap<T = Feature> = {
[key in FeatureId]: T;
};
export type OptionalFeatureMap<T = Feature> = {
[key in FeatureId]?: T;
};
export type FeatureParam<T extends FeatureId> = Features[T]["params"];
//# sourceMappingURL=feature.d.ts.map

@@ -17,2 +17,3 @@ export * from "./account";

export * from "./messages";
export * from "./cexDeposit";
//# sourceMappingURL=index.d.ts.map

@@ -33,2 +33,3 @@ "use strict";

__exportStar(require("./messages"), exports);
__exportStar(require("./cexDeposit"), exports);
//# sourceMappingURL=index.js.map

@@ -296,3 +296,2 @@ /// <reference types="node" />

type: "device-permission-requested";
wording: string;
} | {

@@ -299,0 +298,0 @@ type: "device-permission-granted";

@@ -7,3 +7,7 @@ import { TypedEvmMessage } from "./evm";

export type AnyMessage = DefaultMessage | TypedEvmMessage;
export type MessageProperties = {
label: string;
value: string | string[];
}[];
export * from "./evm";
//# sourceMappingURL=index.d.ts.map
{
"name": "@ledgerhq/types-live",
"version": "6.40.0",
"version": "6.40.1-nightly.0",
"description": "Ledger Live main types.",

@@ -24,4 +24,4 @@ "keywords": [

"dependencies": {
"bignumber.js": "^9.1.1",
"rxjs": "6"
"bignumber.js": "^9.1.2",
"rxjs": "^7.8.1"
},

@@ -28,0 +28,0 @@ "devDependencies": {

@@ -1,121 +0,478 @@

/** Add others with union (e.g. "learn" | "market" | "foo") */
export type FeatureId =
| "learn"
| "brazePushNotifications"
| "brazeLearn"
| "llmNewDeviceSelection"
| "llmNewFirmwareUpdateUx"
| "ratingsPrompt"
| "npsRatingsPrompt"
| "counterValue"
| "deviceInitialApps"
| "buyDeviceFromLive"
| "ptxEarn"
| "currencyAvalancheCChain"
| "currencyStacks"
| "currencyOptimism"
| "currencyOptimismGoerli"
| "currencyArbitrum"
| "currencyArbitrumGoerli"
| "currencyRsk"
| "currencyBittorrent"
| "currencyKavaEvm"
| "currencyEvmosEvm"
| "currencyEnergyWeb"
| "currencyAstar"
| "currencyMetis"
| "currencyBoba"
| "currencyMoonriver"
| "currencyVelasEvm"
| "currencySyscoin"
| "currencyAxelar"
| "currencySecretNetwork"
| "currencyDesmos"
| "currencyUmee"
| "currencyStargaze"
| "currencyOnomy"
| "currencyPersistence"
| "currencyQuicksilver"
| "currencyInternetComputer"
| "currencyInjective"
| "depositNetworkBannerMobile"
| "depositWithdrawBannerMobile"
| "currencyTelosEvm"
| "currencyCoreum"
| "currencyPolygonZkEvm"
| "currencyPolygonZkEvmTestnet"
| "currencyBase"
| "currencyBaseGoerli"
| "currencyKlaytn"
| "mockFeature"
| "multibuyNavigation"
| "syncOnboarding"
| "walletConnectLiveApp"
| "walletConnectEntryPoint"
| "customImage"
| "referralProgramDiscoverCard"
| "referralProgramDesktopBanner"
| "referralProgramDesktopSidebar"
| "referralProgramMobile"
| "disableNftSend"
| "disableNftLedgerMarket"
| "disableNftRaribleOpensea"
| "walletNftGallery"
| "receiveStakingFlowConfigDesktop"
| "ethStakingProviders"
| "storyly"
| "staxWelcomeScreen"
| "postOnboardingClaimNft"
| "postOnboardingAssetsTransfer"
| "firebaseEnvironmentReadOnly"
| "protectServicesMobile"
| "protectServicesDesktop"
| "ptxServiceCtaExchangeDrawer"
| "ptxServiceCtaScreens"
| "swapWalletApiPartnerList"
| "stakePrograms"
| "portfolioExchangeBanner"
| "objkt"
| "editEthTx"
| "stakeAccountBanner"
| "newsfeedPage"
| "domainInputResolution"
| "discover"
| "protectServicesDiscoverDesktop"
| "transactionsAlerts"
| "listAppsV2";
import {
CexDepositEntryPointsLocationsDesktop,
CexDepositEntryPointsLocationsMobile,
} from "./cexDeposit";
import { ChainwatchNetwork } from "./chainwatch";
import { StorylyInstanceID } from "./storyly";
/** We use objects instead of direct booleans for potential future improvements
like feature versioning etc */
export type Feature<T = any> = {
/** If false, the feature is disabled (for every languages regardless of the languages_whitelisted option) */
/**
* Feature type.
*
* @dev We use objects instead of direct booleans for potential future improvements.
*/
export type Feature<T = unknown> = {
/**
* If false, the feature is disabled (for every languages regardless of the languages_whitelisted option)
*/
enabled: boolean;
/** The `desktop_version` option is desktop specific, it has no impact on mobile */
/** If set, the feature is disabled when the desktop app version does not satisfies this param */
/** It should respect the semantic versioning specification (https://semver.org/) */
/**
* The `desktop_version` option is desktop specific, it has no impact on mobile
* If set, the feature is disabled when the desktop app version does not satisfies this param
* It should respect the semantic versioning specification (https://semver.org/)
*/
desktop_version?: string;
/** Whether the remote value of `enabled` was overriden due to `desktop_version` */
/**
* Whether the remote value of `enabled` was overriden due to `desktop_version`
*/
enabledOverriddenForCurrentDesktopVersion?: boolean;
/** The `mobile_version` option is mobile specific, it has no impact on mobile */
/** If set, the feature is disabled when the mobile app version does not satisfies this param */
/** It should respect the semantic versioning specification (https://semver.org/) */
/**
* The `mobile_version` option is mobile specific, it has no impact on mobile
* If set, the feature is disabled when the mobile app version does not satisfies this param
* It should respect the semantic versioning specification (https://semver.org/)
*/
mobile_version?: string;
/** Whether the remote value of `enabled` was overriden due to `mobile_version` */
/**
* Whether the remote value of `enabled` was overriden due to `mobile_version`
*/
enabledOverriddenForCurrentMobileVersion?: boolean;
/** You can optionnally use one of the two following options (languages_whitelisted and languages_blacklisted) (Only implemented on mobile for now) */
/** List of languages for which the feature is enabled (it will be disabled by default for all of the others) */
languages_whitelisted?: [string];
/** List of languages for which the feature is disabled */
languages_blacklisted?: [string];
/** Whether the remote value of `enabled` was overriden due to `languages_whitelisted` or `languages_blacklisted` */
/**
* You can optionnally use one of the two following options (languages_whitelisted and languages_blacklisted) (Only implemented on mobile for now)
* List of languages for which the feature is enabled (it will be disabled by default for all of the others)
*/
languages_whitelisted?: string[];
/**
* List of languages for which the feature is disabled
*/
languages_blacklisted?: string[];
/**
* Whether the remote value of `enabled` was overriden due to `languages_whitelisted` or `languages_blacklisted`
*/
enabledOverriddenForCurrentLanguage?: boolean;
/** Whether the remote value of this object was overriden locally */
/**
* Whether the remote value of this object was overriden locally
*/
overridesRemote?: boolean;
/** Whether the remote value of this object was overriden by an environment variable */
/**
* Whether the remote value of this object was overriden by an environment variable
*/
overriddenByEnv?: boolean;
/** Additional params */
/**
* Additional params
*/
params?: T;
};
/** */
export type DefaultFeatures = { [key in FeatureId]?: Feature };
/**
* Default Feature type.
*/
export type DefaultFeature = Feature<unknown>;
/**
* Currency Features type.
*/
export type CurrencyFeatures = {
currencyAvalancheCChain: DefaultFeature;
currencyStacks: DefaultFeature;
currencyOptimism: DefaultFeature;
currencyOptimismGoerli: DefaultFeature;
currencyArbitrum: DefaultFeature;
currencyArbitrumGoerli: DefaultFeature;
currencyRsk: DefaultFeature;
currencyBittorrent: DefaultFeature;
currencyKavaEvm: DefaultFeature;
currencyEvmosEvm: DefaultFeature;
currencyEnergyWeb: DefaultFeature;
currencyAstar: DefaultFeature;
currencyMetis: DefaultFeature;
currencyBoba: DefaultFeature;
currencyMoonriver: DefaultFeature;
currencyVelasEvm: DefaultFeature;
currencySyscoin: DefaultFeature;
currencyAxelar: DefaultFeature;
currencySecretNetwork: DefaultFeature;
currencyDesmos: DefaultFeature;
currencyUmee: DefaultFeature;
currencyStargaze: DefaultFeature;
currencyOnomy: DefaultFeature;
currencyPersistence: DefaultFeature;
currencyQuicksilver: DefaultFeature;
currencyInternetComputer: DefaultFeature;
currencyInjective: DefaultFeature;
currencyTelosEvm: DefaultFeature;
currencyCoreum: DefaultFeature;
currencyPolygonZkEvm: DefaultFeature;
currencyPolygonZkEvmTestnet: DefaultFeature;
currencyBase: DefaultFeature;
currencyBaseGoerli: DefaultFeature;
currencyKlaytn: DefaultFeature;
};
/**
* Features type.
*
* @dev Add features here.
*/
export type Features = CurrencyFeatures & {
learn: Feature_Learn;
brazePushNotifications: Feature_BrazePushNotifications;
brazeLearn: Feature_BrazeLearn;
llmNewDeviceSelection: Feature_LlmNewDeviceSelection;
llmNewFirmwareUpdateUx: Feature_LlmNewFirmwareUpdateUx;
ratingsPrompt: Feature_RatingsPrompt;
npsRatingsPrompt: Feature_NpsRatingsPrompt;
counterValue: Feature_CounterValue;
deviceInitialApps: Feature_DeviceInitialApps;
buyDeviceFromLive: Feature_BuyDeviceFromLive;
ptxEarn: Feature_PtxEarn;
depositNetworkBannerMobile: Feature_DepositNetworkBannerMobile;
depositWithdrawBannerMobile: Feature_DepositWithdrawBannerMobile;
mockFeature: Feature_MockFeature;
multibuyNavigation: Feature_MultibuyNavigation;
syncOnboarding: Feature_SyncOnboarding;
walletConnectLiveApp: Feature_WalletConnectLiveApp;
walletConnectEntryPoint: Feature_WalletConnectEntryPoint;
customImage: Feature_CustomImage;
referralProgramDiscoverCard: Feature_ReferralProgramDiscoverCard;
referralProgramDesktopBanner: Feature_ReferralProgramDesktopBanner;
referralProgramDesktopSidebar: Feature_ReferralProgramDesktopSidebar;
referralProgramMobile: Feature_ReferralProgramMobile;
disableNftSend: Feature_DisableNftSend;
disableNftLedgerMarket: Feature_DisableNftLedgerMarket;
disableNftRaribleOpensea: Feature_DisableNftRaribleOpensea;
walletNftGallery: Feature_WalletNftGallery;
receiveStakingFlowConfigDesktop: Feature_ReceiveStakingFlowConfigDesktop;
ethStakingProviders: Feature_EthStakingProviders;
storyly: Feature_Storyly;
staxWelcomeScreen: Feature_StaxWelcomeScreen;
postOnboardingClaimNft: Feature_PostOnboardingClaimNft;
postOnboardingAssetsTransfer: Feature_PostOnboardingAssetsTransfer;
firebaseEnvironmentReadOnly: Feature_FirebaseEnvironmentReadOnly;
protectServicesMobile: Feature_ProtectServicesMobile;
protectServicesDesktop: Feature_ProtectServicesDesktop;
ptxServiceCtaExchangeDrawer: Feature_PtxServiceCtaExchangeDrawer;
ptxServiceCtaScreens: Feature_PtxServiceCtaScreens;
swapWalletApiPartnerList: Feature_SwapWalletApiPartnerList;
stakePrograms: Feature_StakePrograms;
portfolioExchangeBanner: Feature_PortfolioExchangeBanner;
objkt: Feature_Objkt;
editEthTx: Feature_EditEthTx;
stakeAccountBanner: Feature_StakeAccountBanner;
newsfeedPage: Feature_NewsfeedPage;
domainInputResolution: Feature_DomainInputResolution;
discover: Feature_Discover;
protectServicesDiscoverDesktop: Feature_ProtectServicesDiscoverDesktop;
transactionsAlerts: Feature_TransactionsAlerts;
listAppsV2: Feature_ListAppsV2;
llmWalletQuickActions: Feature_LlmWalletQuickActions;
cexDepositEntryPointsDesktop: Feature_CexDepositEntryPointsDesktop;
cexDepositEntryPointsMobile: Feature_CexDepositEntryPointsMobile;
fetchAdditionalCoins: Feature_FetchAdditionalCoins;
ptxSwapLiveApp: Feature_PtxSwapLiveApp;
};
/**
* FeatureId type.
*/
export type FeatureId = keyof Features;
/**
* Features types.
*/
export type Feature_EthStakingProviders = Feature<{
listProvider: {
id: string;
name: string;
liveAppId: string;
supportLink?: string;
icon?: string;
queryParams?: Record<string, string>;
}[];
}>;
export type Feature_WalletNftGallery = Feature<{
lazyLoadScreens: boolean;
}>;
export type Feature_WalletConnectLiveApp = Feature<{
liveAppId: string;
}>;
export type Feature_TransactionsAlerts = Feature<{
chainwatchBaseUrl: string;
networks: ChainwatchNetwork[];
}>;
export type Feature_SwapWalletApiPartnerList = Feature<{
list: string[];
}>;
export type Feature_StakePrograms = Feature<{
list: string[];
}>;
export type Feature_StakeAccountBanner = Feature<{ [blockchainName: string]: any }>;
export type Feature_ReferralProgramMobile = Feature<{
path: string;
}>;
export type Feature_ReferralProgramDiscoverCard = Feature<{
url: string;
}>;
export type Feature_ReferralProgramDesktopSidebar = Feature<{
path: string;
isNew: boolean;
amount: string;
}>;
export type Feature_BrazePushNotifications = Feature<{
notificationsCategories: {
displayed: boolean;
category: string;
}[];
trigger_events: {
route_name: string;
timer: number;
type: string;
}[];
marketCoinStarred: {
enabled: boolean;
timer: number;
};
justFinishedOnboarding: {
enabled: boolean;
timer: number;
};
conditions: {
default_delay_between_two_prompts: {
seconds: number;
};
maybe_later_delay: {
seconds: number;
};
minimum_accounts_with_funds_number: number;
minimum_app_starts_number: number;
minimum_duration_since_app_first_start: {
seconds: number;
};
};
}>;
export type Feature_ReceiveStakingFlowConfigDesktop = Feature<{
[blockchainName: string]: {
enabled: boolean;
supportLink: string;
direct: boolean;
};
}>;
export type Feature_Learn = Feature<{
mobile: { url: string };
desktop: { url: string };
}>;
export type Feature_PtxEarn = Feature<{
liveAppId: string;
}>;
export type Feature_Storyly = Feature<{
stories: { [key in StorylyInstanceID]: { testingEnabled: boolean; token: string } };
}>;
export type Feature_NewsfeedPage = Feature<{
cryptopanicApiKey: string;
whitelistedLocales: string[];
}>;
export type Feature_ProtectServicesMobile = Feature<{
deeplink: string;
onboardingRestore: {
restoreInfoDrawer: {
enabled: boolean;
manualStepsURI: string;
supportLinkURI: string;
};
postOnboardingURI: string;
};
managerStatesData: {
NEW: {
learnMoreURI: string;
alreadySubscribedURI: string;
quickAccessURI: string;
};
};
login: {
loginURI: string;
};
protectId: string;
}>;
export type Feature_ProtectServicesDesktop = Feature<{
availableOnDesktop: boolean;
openRecoverFromSidebar: boolean;
discoverTheBenefitsLink: string;
onboardingRestore: {
restoreInfoDrawer: {
enabled: boolean;
manualStepsURI: string;
supportLinkURI: string;
};
postOnboardingURI: string;
};
onboardingCompleted: {
upsellURI: string;
alreadySubscribedURI: string;
};
account: {
homeURI: string;
loginURI: string;
};
protectId: string;
}>;
export type Feature_DeviceInitialApps = Feature<{
apps: string[];
}>;
export type Feature_BuyDeviceFromLive = Feature<{
debug: boolean;
url: string | null;
}>;
export type Feature_DepositNetworkBannerMobile = Feature<{
url: string;
}>;
export type Feature_DepositWithdrawBannerMobile = Feature<{
url: string;
}>;
export type Feature_Discover = Feature<{
version: string;
}>;
export type Feature_DomainInputResolution = Feature<{
supportedCurrencyIds: string[];
}>;
export type Feature_FirebaseEnvironmentReadOnly = Feature<{
comment: string;
project: string;
}>;
export type Feature_NpsRatingsPrompt = Feature<{
conditions: {
disappointed_delay: {
seconds: number;
};
minimum_accounts_number: number;
minimum_app_starts_number: number;
minimum_duration_since_app_first_start: {
seconds: number;
};
minimum_number_of_app_starts_since_last_crash: number;
not_now_delay: {
seconds: number;
};
satisfied_then_not_now_delay: {
seconds: number;
};
};
happy_moments: {
route_name: string;
timer: number;
type: string;
}[];
support_email: string;
typeform_url: string;
}>;
export type Feature_RatingsPrompt = Feature<{
conditions: {
disappointed_delay: {
days: number;
};
minimum_accounts_number: number;
minimum_app_starts_number: number;
minimum_duration_since_app_first_start: {
days: number;
};
minimum_number_of_app_starts_since_last_crash: number;
not_now_delay: {
days: number;
};
satisfied_then_not_now_delay: {
days: number;
};
};
happy_moments: {
route_name: string;
timer: number;
type: string;
}[];
support_email: string;
typeform_url: string;
}>;
export type Feature_CexDepositEntryPointsDesktop = Feature<{
path: string;
locations: {
[key in CexDepositEntryPointsLocationsDesktop]: boolean;
};
}>;
export type Feature_CexDepositEntryPointsMobile = Feature<{
path: string;
locations: {
[key in CexDepositEntryPointsLocationsMobile]: boolean;
};
}>;
export type Feature_PtxSwapLiveApp = Feature<{
currencies?: Array<string>;
families?: Array<string>;
}>;
export type Feature_LlmNewFirmwareUpdateUx = DefaultFeature;
export type Feature_CounterValue = DefaultFeature;
export type Feature_MockFeature = DefaultFeature;
export type Feature_MultibuyNavigation = DefaultFeature;
export type Feature_SyncOnboarding = DefaultFeature;
export type Feature_WalletConnectEntryPoint = DefaultFeature;
export type Feature_CustomImage = DefaultFeature;
export type Feature_ReferralProgramDesktopBanner = DefaultFeature;
export type Feature_DisableNftSend = DefaultFeature;
export type Feature_DisableNftLedgerMarket = DefaultFeature;
export type Feature_DisableNftRaribleOpensea = DefaultFeature;
export type Feature_StaxWelcomeScreen = DefaultFeature;
export type Feature_PostOnboardingClaimNft = DefaultFeature;
export type Feature_PostOnboardingAssetsTransfer = DefaultFeature;
export type Feature_PtxServiceCtaExchangeDrawer = DefaultFeature;
export type Feature_PtxServiceCtaScreens = DefaultFeature;
export type Feature_PortfolioExchangeBanner = DefaultFeature;
export type Feature_Objkt = DefaultFeature;
export type Feature_EditEthTx = DefaultFeature;
export type Feature_ProtectServicesDiscoverDesktop = DefaultFeature;
export type Feature_ListAppsV2 = DefaultFeature;
export type Feature_BrazeLearn = DefaultFeature;
export type Feature_LlmNewDeviceSelection = DefaultFeature;
export type Feature_LlmWalletQuickActions = DefaultFeature;
export type Feature_FetchAdditionalCoins = DefaultFeature;
/**
* Utils types.
*/
export type FeatureMap<T = Feature> = { [key in FeatureId]: T };
export type OptionalFeatureMap<T = Feature> = { [key in FeatureId]?: T };
export type FeatureParam<T extends FeatureId> = Features[T]["params"];

@@ -17,1 +17,2 @@ export * from "./account";

export * from "./messages";
export * from "./cexDeposit";

@@ -325,3 +325,2 @@ import type { DeviceModelId } from "@ledgerhq/types-devices";

type: "device-permission-requested";
wording: string;
}

@@ -328,0 +327,0 @@ | {

@@ -10,2 +10,7 @@ import { TypedEvmMessage } from "./evm";

export type MessageProperties = {
label: string;
value: string | string[];
}[];
export * from "./evm";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc