import { Types } from '@notifi-network/notifi-graphql'; import { Alert, ClientConfiguration, ConnectedWallet, NotificationHistory, SourceGroup, TargetGroup, TenantConfig, User, UserTopic } from './models'; import { ConnectWalletInput, CreateSourceInput, CreateWebhookTargetInput, FindTenantConfigInput, GetFusionNotificationHistoryInput, GetNotificationHistoryInput } from './operations'; export declare type ClientData = Readonly<{ alerts: ReadonlyArray; connectedWallets: ReadonlyArray; emailTargets: ReadonlyArray; filters: ReadonlyArray; smsTargets: ReadonlyArray; sources: ReadonlyArray; sourceGroups: ReadonlyArray; targetGroups: ReadonlyArray; telegramTargets: ReadonlyArray; discordTargets: ReadonlyArray; }>; export declare type AlertFrequency = 'ALWAYS' | 'SINGLE' | 'QUARTER_HOUR' | 'HOURLY' | 'DAILY' | 'THREE_MINUTES'; export declare type ThresholdDirection = 'above' | 'below'; export declare type ValueItemConfig = Readonly<{ key: string; op: 'lt' | 'lte' | 'eq' | 'gt' | 'gte'; value: string; }>; export declare type FilterOptions = Partial<{ alertFrequency: AlertFrequency; directMessageType: string; threshold: number; delayProcessingUntil: string; thresholdDirection: ThresholdDirection; values: Readonly<{ and: ReadonlyArray; } | { or: ReadonlyArray; }>; tradingPair: string; }>; /** * Object containing information to continue the login process * * @property nonce - String value to place in transaction logs */ export declare type BeginLoginViaTransactionResult = Readonly<{ logValue: string; }>; /** * Object containing information to complete the login process * * @property transactionSignature - Signature of the transaction that contains the log message */ export declare type CompleteLoginViaTransactionInput = Readonly<{ transactionSignature: string; }>; /** * Completed authentication response * */ export declare type CompleteLoginViaTransactionResult = Readonly; /** * Input param for updating an Alert * * @remarks * This describes the Alert to be updated based on id, emailAddress, phoneNumber and/or telegramId * * @property alertId - The alert to modify * @property emailAddress - The emailAddress to be used * @property phoneNumber - The phone number to be used * @property telegramId - The Telegram account username to be used *
*
* See [Alert Creation Guide]{@link https://notifi-network.github.io/notifi-sdk-ts/} for more information on creating Alerts */ export declare type ClientUpdateAlertInput = Readonly<{ alertId: string; emailAddress: string | undefined; phoneNumber: string | undefined; telegramId: string | undefined; webhook?: ClientCreateWebhookParams; includeDiscord: boolean; }>; /** * Input param for creating an Alert * * @remarks * This describes the Alert to be created based on name, emailAddress, phoneNumber and/or telegramId * * @property name - Friendly name (must be unique) * @property sourceGroupId - The SourceGroup to associate * @property filterId - The Filter to associate * @property emailAddress - The emailAddress to be used * @property phoneNumber - The phone number to be used * @property telegramId - The Telegram account username to be used * @property discordId - The the discord id to be used *
*
* See [Alert Creation Guide]{@link https://notifi-network.github.io/notifi-sdk-ts/} for more information on creating Alerts */ export declare type ClientCreateAlertInput = Readonly<{ name: string; sourceId: string; filterId: string; filterOptions?: Readonly; emailAddress: string | undefined; phoneNumber: string | undefined; telegramId: string | undefined; groupName?: string; targetGroupName?: string; webhook?: ClientCreateWebhookParams; sourceIds?: ReadonlyArray; sourceGroupName?: string; includeDiscord: boolean; }>; export declare type ClientCreateWebhookParams = Omit; /** * Input param for creating a new Metaplex Auction Source * * @property auctionAddressBase58 - Metaplex auction address in base58 * @property auctionWebUrl - Web URL where auction can be found * * * See [Alert Creation Guide]{@link https://notifi-network.github.io/notifi-sdk-ts/} for more information on creating Alerts */ export declare type ClientCreateMetaplexAuctionSourceInput = Readonly<{ auctionAddressBase58: string; auctionWebUrl: string; }>; /** * Input param for creating a new Bonfida Auction Source * * @property auctionAddressBase58 - Bonfida auction address in base58 * @property auctionName - Name of the auction * * * See [Alert Creation Guide]{@link https://notifi-network.github.io/notifi-sdk-ts/} for more information on creating Alerts */ export declare type ClientCreateBonfidaAuctionSourceInput = Readonly<{ auctionAddressBase58: string; auctionName: string; }>; /** * Input param for deleting an Alert * * @property alertId - The ID of the Alert to delete * @property keepTargetGroup - Whether to keep the target group on this Alert or to delete it * @property keepSourceGroup - Whether to keep the source group on this Alert or to delete it * * See [Alert Creation Guide]{@link https://notifi-network.github.io/notifi-sdk-ts/} for more information on creating Alerts */ export declare type ClientDeleteAlertInput = Readonly<{ alertId: string; keepTargetGroup?: boolean; keepSourceGroup?: boolean; }>; /** * Input params for creating or updating a TargetGroup by name * * @property name - The name of the TargetGroup * @property emailAddress - The emailAddress to be used * @property phoneNumber - The phone number to be used * @property telegramId - The Telegram account username to be used *
*
*/ export declare type ClientEnsureTargetGroupInput = Readonly<{ name: string; emailAddress: string | undefined; phoneNumber: string | undefined; telegramId: string | undefined; webhook?: ClientCreateWebhookParams; includeDiscord: boolean; }>; /** * Input params for creating or updating a SourceGroup by name * * @property name - The name of the SourceGroup * @property sources - The Sources to be set on the SourceGroup */ export declare type ClientEnsureSourceGroupInput = Readonly<{ name: string; sources: ReadonlyArray; }>; /** * Input params for the send verification request * * @property targetId -- the id of the EmailTarget */ export declare type ClientSendVerificationEmailInput = Readonly<{ targetId: string; }>; export declare type ClientBroadcastMessageInput = Readonly<{ topic: UserTopic; subject: string; message: string; isHolderOnly: boolean; variables?: Readonly>; }>; export declare type ClientFetchSubscriptionCardInput = Omit; export declare type Uint8SignMessageFunction = (message: Uint8Array) => Promise; export declare type AptosSignMessageFunction = (message: string, nonce: number) => Promise; export declare type XionSignMessageFunction = (message: Uint8Array) => Promise; declare type hexString = `0x${string}`; export declare type AcalaSignMessageFunction = (acalaAddress: string, message: string) => Promise; export declare type SignMessageParams = Readonly<{ walletBlockchain: 'SOLANA'; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'ETHEREUM' | 'POLYGON' | 'ARBITRUM' | 'AVALANCHE' | 'BINANCE' | 'INJECTIVE' | 'OSMOSIS' | 'ELYS' | 'NEUTRON' | 'ARCHWAY' | 'AXELAR' | 'BERACHAIN' | 'NIBIRU' | 'OPTIMISM' | 'THE_ROOT_NETWORK' | 'ZKSYNC' | 'BASE' | 'BLAST' | 'CELO' | 'MANTLE' | 'LINEA' | 'SCROLL' | 'MANTA' | 'MONAD' | 'EVMOS' | 'AGORIC' | 'ORAI' | 'KAVA' | 'CELESTIA' | 'COSMOS' | 'DYMENSION' | 'PERSISTENCE' | 'DYDX'; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'XION'; message: string; signMessage: XionSignMessageFunction; }> | Readonly<{ walletBlockchain: 'APTOS'; signMessage: AptosSignMessageFunction; }> | Readonly<{ walletBlockchain: 'ACALA'; signMessage: AcalaSignMessageFunction; }> | Readonly<{ walletBlockchain: 'NEAR'; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'SUI'; signMessage: Uint8SignMessageFunction; }>; export declare type WalletParams = Readonly<{ walletBlockchain: 'SOLANA'; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'ETHEREUM' | 'POLYGON' | 'ARBITRUM' | 'AVALANCHE' | 'BINANCE' | 'OPTIMISM' | 'THE_ROOT_NETWORK' | 'ZKSYNC' | 'BASE' | 'BLAST' | 'CELO' | 'MANTLE' | 'LINEA' | 'SCROLL' | 'MANTA' | 'MONAD' | 'BERACHAIN' | 'EVMOS'; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'APTOS'; accountAddress: string; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'XION'; walletPublicKey: string; signingAddress: string; signingPubkey: string; message: string; signMessage: XionSignMessageFunction; }> | Readonly<{ walletBlockchain: 'ACALA'; accountAddress: string; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'NEAR'; accountAddress: string; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'SUI'; accountAddress: string; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'INJECTIVE'; accountAddress: string; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'OSMOSIS'; accountAddress: string; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'NIBIRU'; accountAddress: string; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'ELYS'; accountAddress: string; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'NEUTRON'; accountAddress: string; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'ARCHWAY'; accountAddress: string; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'AXELAR'; accountAddress: string; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'AGORIC'; accountAddress: string; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'ORAI'; accountAddress: string; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'KAVA'; accountAddress: string; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'CELESTIA'; accountAddress: string; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'COSMOS'; accountAddress: string; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'DYMENSION'; accountAddress: string; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'PERSISTENCE'; accountAddress: string; walletPublicKey: string; }> | Readonly<{ walletBlockchain: 'DYDX'; accountAddress: string; walletPublicKey: string; }>; export declare type WalletWithSignMessage = Readonly<{ walletBlockchain: 'SOLANA'; walletPublicKey: string; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'ETHEREUM' | 'POLYGON' | 'ARBITRUM' | 'AVALANCHE' | 'BINANCE' | 'OPTIMISM' | 'THE_ROOT_NETWORK' | 'ZKSYNC' | 'BASE' | 'BLAST' | 'CELO' | 'MANTLE' | 'LINEA' | 'SCROLL' | 'MANTA' | 'MONAD' | 'BERACHAIN' | 'EVMOS'; walletPublicKey: string; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'APTOS'; accountAddress: string; walletPublicKey: string; signMessage: AptosSignMessageFunction; }> | Readonly<{ walletBlockchain: 'XION'; walletPublicKey: string; signingAddress: string; signingPubkey: string; message: string; signMessage: XionSignMessageFunction; }> | Readonly<{ walletBlockchain: 'ACALA'; accountAddress: string; walletPublicKey: string; signMessage: AcalaSignMessageFunction; }> | Readonly<{ walletBlockchain: 'NEAR'; accountAddress: string; walletPublicKey: string; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'SUI'; accountAddress: string; walletPublicKey: string; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'INJECTIVE'; accountAddress: string; walletPublicKey: string; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'ELYS'; accountAddress: string; walletPublicKey: string; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'NEUTRON'; accountAddress: string; walletPublicKey: string; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'ARCHWAY'; accountAddress: string; walletPublicKey: string; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'AXELAR'; accountAddress: string; walletPublicKey: string; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'AGORIC'; accountAddress: string; walletPublicKey: string; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'ORAI'; accountAddress: string; walletPublicKey: string; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'KAVA'; accountAddress: string; walletPublicKey: string; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'CELESTIA'; accountAddress: string; walletPublicKey: string; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'COSMOS'; accountAddress: string; walletPublicKey: string; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'DYMENSION'; accountAddress: string; walletPublicKey: string; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'PERSISTENCE'; accountAddress: string; walletPublicKey: string; signMessage: Uint8SignMessageFunction; }> | Readonly<{ walletBlockchain: 'DYDX'; accountAddress: string; walletPublicKey: string; signMessage: Uint8SignMessageFunction; }>; export declare type WalletWithSignParams = Readonly<{ displayName?: string; }> & WalletWithSignMessage; export declare type ConnectWalletParams = Readonly<{ walletParams: WalletWithSignParams; connectWalletConflictResolutionTechnique: ConnectWalletInput['connectWalletConflictResolutionTechnique']; }>; export declare type NotifiClient = Readonly<{ beginLoginViaTransaction: () => Promise; broadcastMessage: (input: ClientBroadcastMessageInput, signer: SignMessageParams) => Promise; completeLoginViaTransaction: (input: CompleteLoginViaTransactionInput) => Promise; fetchData: (forceFetch?: boolean) => Promise; logIn: (signer: SignMessageParams) => Promise; logOut: () => Promise; connectWallet: (input: ConnectWalletParams) => Promise; createAlert: (input: ClientCreateAlertInput) => Promise; createSource: (input: Types.CreateSourceInput) => Promise; createMetaplexAuctionSource: (input: ClientCreateMetaplexAuctionSourceInput) => Promise; createBonfidaAuctionSource: (input: ClientCreateBonfidaAuctionSourceInput) => Promise; deleteAlert: (input: ClientDeleteAlertInput) => Promise; getConfiguration: () => Promise; getFusionNotificationHistory: (input: GetFusionNotificationHistoryInput) => Promise; getNotificationHistory: (input: GetNotificationHistoryInput) => Promise; getTopics: () => Promise>; getUnreadNotificationHistoryCount: () => Promise; updateAlert: (input: ClientUpdateAlertInput) => Promise; ensureTargetGroup: (input: ClientEnsureTargetGroupInput) => Promise; ensureSourceGroup: (input: ClientEnsureSourceGroupInput) => Promise; sendEmailTargetVerification: (input: ClientSendVerificationEmailInput) => Promise; fetchSubscriptionCard: (input: ClientFetchSubscriptionCardInput) => Promise; createDiscordTarget: (input: string) => Promise; markFusionNotificationHistoryAsRead: (input: Types.MarkFusionNotificationHistoryAsReadMutationVariables) => Promise; }>; export {}; //# sourceMappingURL=NotifiClient.d.ts.map