@cosmosapp/pay_sdk 2.0.0 → 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.
package/dist/index.d.cts CHANGED
@@ -1,8 +1,71 @@
1
1
  import { EventEmitter } from 'node:events';
2
- import { A as AnalyticsSummaryData, a as AnalyticsBalancesData, b as ApiLogsData, W as WebhookLogsData, C as CustomerData, U as UpdateCustomerOptions, c as CreateCustomerOptions, H as HealthCheckData, L as LiquidityOperationData, d as LiquidityOperationKind, e as LiquidityOperationStatus, S as SubmitLiquidityOptions, D as DepositLiquidityOptions, f as WithdrawLiquidityOptions, g as LiquidityPositionsData, B as BrowseLiquidityPoolsOptions, h as LiquidityPoolData, i as ListLiquidityOperationsOptions, j as CreatePayinQuoteOptions, P as PayinQuoteData, k as CreatePayinOptions, l as PayinData, m as ListPayinsOptions, n as CreateTrustlineOptions, T as TrustlineData, o as CreateVirtualAccountOptions, V as VirtualAccountData, p as CreatePayoutQuoteOptions, q as PayoutQuoteData, r as AuthorizePayoutOptions, s as AuthorizePayoutData, t as CreatePayoutOptions, u as PayoutData, v as ListPayoutsOptions, w as AttachPayoutDocumentOptions, x as PayoutDocumentData, y as ActivityEventInput, R as ReportActivityOptions, z as ActivityReportData, E as ListActivityOptions, F as ActivityListData, G as ActivitySummaryData, I as ReceiverData, J as UpdateReceiverOptions, K as ApproveReceiverOptions, M as RequestTosOptions, N as TermsOfServiceData, O as EnableReceiverOptions, Q as CreateReceiverWalletOptions, X as ReceiverWalletData, Y as ListKycOptions, Z as CreateBankAccountOptions, _ as BankAccountData, $ as CreateReceiverOptions, a0 as SetReceiverAccessOptions, a1 as WalletSignMessageData, a2 as KycUploadData, a3 as InitiateTosOptions, a4 as KycRailsData, a5 as BankDetailsData, a6 as PollarAuthorizeOptions, a7 as PollarAuthorizeData, a8 as PollarLoginSessionData, a9 as PollarTokenOptions, aa as PollarSessionData, ab as PollarRefreshOptions, ac as PollarRefreshData, ad as PollarLogoutOptions, ae as PollarLogoutData, af as VerifyPollarTokenOptions, ag as PollarTokenVerificationData, ah as ActivatePollarWalletOptions, ai as PollarActivationData, aj as PollarTrustlineData, ak as PollarTrustlinesOptions, al as RegisterPollarUserOptions, am as PollarUserData, an as PaymentIntentData, ao as PaymentIntentKind, ap as PaymentIntentStatus, aq as UpdatePaymentIntentOptions, ar as DeletedData, as as ValidationOutcomeData, at as CreateTxPaymentIntentOptions, au as CreatePayPaymentIntentOptions, av as ListPaymentIntentsOptions, aw as ValidatePaymentIntentOptions, ax as ProductData, ay as ProductKind, az as UpdateProductOptions, aA as CreateProductOptions, aB as SwapData, aC as SwapStatus, aD as SubmitSwapOptions, aE as QuoteSwapOptions, aF as SwapQuoteData, aG as CreateSwapOptions, aH as ListSwapsOptions, aI as WebhookDeliveryData, aJ as WebhookEventType, aK as WebhookDeliveryStatus, aL as WebhookEndpointData, aM as WebhookEndpointWithSecretData, aN as UpdateWebhookEndpointOptions, aO as WebhookPingData, aP as ListWebhookDeliveriesOptions, aQ as WebhookEvent, aR as CreateWebhookEndpointOptions } from './intent-input-BtUp3tFN.cjs';
3
- export { aS as ActivityBucket, aT as ActivityEventData, aU as ActivityLevel, aV as ActivitySource, aW as AddressBook, aX as AddressRef, aY as AnalyticsBalanceEntry, aZ as AnalyticsRecentRow, a_ as AnalyticsSeriesPoint, a$ as AnalyticsVolumeEntry, b0 as ApiLogRow, b1 as AssetDefinition, b2 as AssetRef, b3 as Assets, b4 as BankAccountListData, b5 as BankRail, b6 as BankingPartner, b7 as CosmosPayAPIError, b8 as CosmosPayRequestError, b9 as CurrencyType, ba as CustomerListData, bb as KycType, bc as LiquidityOperationListData, bd as LiquidityPoolListData, be as LiquidityPositionData, bf as LiquidityReserveData, bg as LiquiditySubmitOutcomeData, bh as PayinListData, bi as PayinMethod, bj as PayinPayerRules, bk as PaymentIntentListData, bl as PayoutChain, bm as PayoutListData, bn as PayoutNetwork, bo as PollarAuthorizeBaseOptions, bp as PollarDpopJwk, bq as PollarLoginStatus, br as PollarProfileData, bs as PollarProvider, bt as PollarTrustlineAsset, bu as PollarWalletData, bv as RampToken, bw as ReceiverListData, bx as ReceiverOwner, by as ReceiverType, bz as ReceiverWalletListData, bA as ReceiverWalletNetwork, bB as ResolvableIntentInput, bC as ResolvedAsset, bD as SwapListData, bE as SwapSubmitOutcomeData, bF as TestnetAssets, bG as WalletId, bH as Wallets, bI as WebhookDeliveryListData, bJ as WebhookLogRow, bK as addresses, bL as assertAddress, bM as defineAsset, bN as isAddress, bO as isContractAddress, bP as isMuxedAddress, bQ as isNativeAsset, bR as isStellarAddress, bS as resolveAddress, bT as resolveAsset, bU as resolveIntentBody } from './intent-input-BtUp3tFN.cjs';
2
+ import { A as AliasResolutionData, a as AliasAvailabilityData, b as AliasByAddressData, C as CreateAliasChallengeOptions, c as AliasChallengeData, d as ClaimAliasOptions, O as OwnedAliasData, e as AliasListData, f as AddAliasAddressOptions, g as AliasAddressData, h as AliasDeletedData, i as AliasRecoveryStartedData, j as CompleteAliasRecoveryOptions, k as AnalyticsSummaryData, l as AnalyticsBalancesData, m as ApiLogsData, W as WebhookLogsData, L as ListRegistryAssetsOptions, n as AssetRegistryData, o as CustomerData, U as UpdateCustomerOptions, p as CreateCustomerOptions, H as HealthCheckData, q as LiquidityOperationData, r as LiquidityOperationKind, s as LiquidityOperationStatus, S as SubmitLiquidityOptions, D as DepositLiquidityOptions, t as WithdrawLiquidityOptions, u as LiquidityPositionsData, B as BrowseLiquidityPoolsOptions, v as LiquidityPoolData, w as ListLiquidityOperationsOptions, x as CreatePayinQuoteOptions, P as PayinQuoteData, y as CreatePayinOptions, z as PayinData, E as ListPayinsOptions, F as CreateTrustlineOptions, T as TrustlineData, G as CreateVirtualAccountOptions, V as VirtualAccountData, I as CreatePayoutQuoteOptions, J as PayoutQuoteData, K as AuthorizePayoutOptions, M as AuthorizePayoutData, N as CreatePayoutOptions, Q as PayoutData, R as ListPayoutsOptions, X as AttachPayoutDocumentOptions, Y as PayoutDocumentData, Z as ActivityEventInput, _ as ReportActivityOptions, $ as ActivityReportData, a0 as ListActivityOptions, a1 as ActivityListData, a2 as ActivitySummaryData, a3 as ReceiverData, a4 as UpdateReceiverOptions, a5 as ApproveReceiverOptions, a6 as RequestTosOptions, a7 as TermsOfServiceData, a8 as EnableReceiverOptions, a9 as CreateReceiverWalletOptions, aa as ReceiverWalletData, ab as ListKycOptions, ac as CreateBankAccountOptions, ad as BankAccountData, ae as CreateReceiverOptions, af as SetReceiverAccessOptions, ag as WalletSignMessageData, ah as KycUploadData, ai as InitiateTosOptions, aj as KycRailsData, ak as BankDetailsData, al as CrossChainSwapData, am as CrossChainSwapStatus, an as SwapChain, ao as CrossChainTransactionData, ap as CrossChainAssetData, aq as QuoteCrossChainSwapOptions, ar as CrossChainQuoteData, as as CreateCrossChainSwapOptions, at as ListCrossChainSwapsOptions, au as DefindexDepositOptions, av as DefindexWithdrawOptions, aw as PluginData, ax as InstallPluginOptions, ay as PluginUninstalledData, az as PluginActionResultData, aA as PublicKeyData, aB as PaymentIntentData, aC as PaymentIntentKind, aD as PaymentIntentStatus, aE as UpdatePaymentIntentOptions, aF as DeletedData, aG as ValidationOutcomeData, aH as CreateTxPaymentIntentOptions, aI as CreatePayPaymentIntentOptions, aJ as PaymentIntentTransitionData, aK as ListPaymentIntentsOptions, aL as ValidatePaymentIntentOptions, aM as ProductData, aN as ProductKind, aO as UpdateProductOptions, aP as CreateProductOptions, aQ as ChainSwapData, aR as OtherSwapChain, aS as SwapStatus, aT as ChainSwapTransaction, aU as EvmCallData, aV as SwapData, aW as QuoteSwapOptions, aX as SwapQuoteData, aY as CreateSwapOptions, aZ as ListSwapsOptions, a_ as SubmitSwapOptions, a$ as WebhookDeliveryData, b0 as WebhookEventType, b1 as WebhookDeliveryStatus, b2 as WebhookEndpointData, b3 as WebhookEndpointWithSecretData, b4 as UpdateWebhookEndpointOptions, b5 as WebhookPingData, b6 as ListWebhookDeliveriesOptions, b7 as AnyWebhookEvent, b8 as WebhookEventDataMap, b9 as TypedWebhookEvent, ba as CreateWebhookEndpointOptions, bb as WebhookEvent } from './intent-input-8rZfCrQ0.cjs';
3
+ export { bc as ActivityBucket, bd as ActivityEventData, be as ActivityLevel, bf as ActivitySource, bg as AddressBook, bh as AddressRef, bi as AliasChallengePurpose, bj as AnalyticsBalanceEntry, bk as AnalyticsRecentRow, bl as AnalyticsSeriesPoint, bm as AnalyticsVolumeEntry, bn as ApiLogRow, bo as AssetDefinition, bp as AssetRef, bq as Assets, br as BankAccountListData, bs as BankRail, bt as BankingPartner, bu as ChainSwapListData, bv as ChainSwapSubmitOutcomeData, bw as CosmosPayAPIError, bx as CosmosPayRequestError, by as CrossChainSwapListData, bz as CurrencyType, bA as CustomerListData, bB as KycType, bC as LiquidityOperationListData, bD as LiquidityPoolListData, bE as LiquidityPositionData, bF as LiquidityReserveData, bG as LiquiditySubmitOutcomeData, bH as PayinListData, bI as PayinMethod, bJ as PayinPayerRules, bK as PaymentIntentListData, bL as PayoutChain, bM as PayoutListData, bN as PayoutNetwork, bO as PluginListData, bP as RampToken, bQ as ReceiverListData, bR as ReceiverOwner, bS as ReceiverType, bT as ReceiverWalletListData, bU as ReceiverWalletNetwork, bV as RegistryAssetData, bW as ResolvableIntentInput, bX as ResolvedAsset, bY as SwapListData, bZ as SwapSubmitOutcomeData, b_ as TestnetAssets, b$ as WalletId, c0 as Wallets, c1 as WebhookDeliveryListData, c2 as WebhookLogRow, c3 as addresses, c4 as assertAddress, c5 as defineAsset, c6 as isAddress, c7 as isContractAddress, c8 as isMuxedAddress, c9 as isNativeAsset, ca as isStellarAddress, cb as resolveAddress, cc as resolveAsset, cd as resolveIntentBody } from './intent-input-8rZfCrQ0.cjs';
4
4
  import { IncomingMessage, ServerResponse } from 'node:http';
5
5
 
6
+ /**
7
+ * Payment handles — `client.aliases`. A handle names one or more Stellar
8
+ * addresses, so a payer can send to `@ada` instead of a 56-character key.
9
+ *
10
+ * Every address on a handle proved control of itself: claiming a handle or
11
+ * pointing it somewhere new takes a signature, by that address, over a
12
+ * challenge the server issued. The SDK never holds the key — ask for a
13
+ * challenge, sign its `message` where the key lives, and send the signature
14
+ * back.
15
+ *
16
+ * @example
17
+ * const { primaryAddress } = await client.aliases.resolve('ada', { network: 'public' });
18
+ *
19
+ * @example
20
+ * const ch = await client.aliases.createChallenge({ name: 'ada', address, network: 'public' });
21
+ * const signature = signWithYourWallet(ch.message); // base64 ed25519
22
+ * await client.aliases.claim({ name: 'ada', email: 'ada@example.com', nonce: ch.nonce, signature });
23
+ */
24
+ declare class AliasManager {
25
+ readonly client: Client;
26
+ private readonly route;
27
+ constructor(client: Client);
28
+ private get rest();
29
+ /** Where to pay a handle: its verified addresses on a network, primary first. */
30
+ resolve(name: string, options?: {
31
+ network?: string;
32
+ }): Promise<AliasResolutionData>;
33
+ /** Whether a handle can be claimed, and if not, why not. */
34
+ availability(name: string): Promise<AliasAvailabilityData>;
35
+ /** Which handles point at an address — the reverse lookup. */
36
+ byAddress(address: string, options?: {
37
+ network?: string;
38
+ }): Promise<AliasByAddressData>;
39
+ /** A nonce and the exact message to sign, for a claim, a new address or a recovery. */
40
+ createChallenge(options: CreateAliasChallengeOptions): Promise<AliasChallengeData>;
41
+ /** Claim a handle with a signature over a CLAIM challenge. */
42
+ claim(options: ClaimAliasOptions): Promise<OwnedAliasData>;
43
+ /** The handles this consumer owns (paginated). */
44
+ list(options?: {
45
+ take?: number;
46
+ skip?: number;
47
+ }): Promise<AliasListData>;
48
+ /** Point a handle at another address, signed by that address (ADD_ADDRESS challenge). */
49
+ addAddress(name: string, options: AddAliasAddressOptions): Promise<AliasAddressData>;
50
+ /** Remove one address from a handle. */
51
+ removeAddress(name: string, addressId: string): Promise<AliasDeletedData>;
52
+ /** Release a handle back to the namespace. */
53
+ release(name: string): Promise<AliasDeletedData>;
54
+ /**
55
+ * Start a recovery: the service emails a one-time token to the mailbox the
56
+ * handle was claimed with, if `email` is that mailbox. The answer is the same
57
+ * either way, so it says nothing about who owns the handle; the token only
58
+ * ever reaches the mailbox, never this response.
59
+ */
60
+ startRecovery(name: string, email: string): Promise<AliasRecoveryStartedData>;
61
+ /**
62
+ * Take a handle over with a new address after losing the old one: the token
63
+ * the owner received by email, plus a signature by the new address over a
64
+ * RECOVER challenge.
65
+ */
66
+ completeRecovery(name: string, options: CompleteAliasRecoveryOptions): Promise<OwnedAliasData>;
67
+ }
68
+
6
69
  /**
7
70
  * Read-only analytics derived from the consumer's intents and deliveries —
8
71
  * `client.analytics`. Powers dashboard-style Overview / Balances / Logs views.
@@ -21,6 +84,29 @@ declare class AnalyticsManager {
21
84
  webhookLogs(): Promise<WebhookLogsData>;
22
85
  }
23
86
 
87
+ /**
88
+ * The server's asset registry — `client.assets`: which `(code, issuer)` pairs
89
+ * it knows per network, and who issues each.
90
+ *
91
+ * A code is not an identifier — mainnet carries dozens of accounts issuing
92
+ * `USDC` — so this is where to learn WHICH one. `verified` is a claim about the
93
+ * issuer's identity (checked against `issuerName`), not about quality; the
94
+ * unverified rows are returned too, and a UI should show them below a warning
95
+ * rather than hide them. The static {@link Assets} catalog is the offline
96
+ * fallback; this is the current list, and its `version` says which is newer.
97
+ *
98
+ * @example
99
+ * const { data } = await client.assets.list({ network: 'public', verified: true });
100
+ */
101
+ declare class AssetManager {
102
+ readonly client: Client;
103
+ private readonly route;
104
+ constructor(client: Client);
105
+ private get rest();
106
+ /** The registry for a network. */
107
+ list(options?: ListRegistryAssetsOptions): Promise<AssetRegistryData>;
108
+ }
109
+
24
110
  /**
25
111
  * Root of every API structure. Holds a back-reference to the {@link Client} so
26
112
  * instances can perform their own actions (e.g. `paymentIntent.delete()`), and
@@ -145,6 +231,7 @@ declare class REST extends EventEmitter {
145
231
  setGatewayCredentials(secret: string, consumerUsername: string): this;
146
232
  get<T>(path: string, options?: RequestOptions): Promise<T>;
147
233
  post<T>(path: string, options?: RequestOptions): Promise<T>;
234
+ put<T>(path: string, options?: RequestOptions): Promise<T>;
148
235
  patch<T>(path: string, options?: RequestOptions): Promise<T>;
149
236
  delete<T>(path: string, options?: RequestOptions): Promise<T>;
150
237
  /** Build the absolute URL for a route, applying the version prefix + query. */
@@ -731,94 +818,164 @@ declare class KycManager extends BaseManager<Receiver> {
731
818
  }
732
819
 
733
820
  /**
734
- * Pollar — social login and the custodial wallets behind it — `client.pollar`.
821
+ * A swap between two chains, settled by NEAR Intents — `client.crossChainSwaps`.
735
822
  *
736
- * The login is a three-legged flow, and the middle leg is the one that surprises
737
- * people: the browser leaves for the provider and comes back to POLLAR, not to
738
- * you, so a client cannot simply await a redirect. It polls instead.
739
- *
740
- * 1. `authorize()` → a `state` and the `authorization_url` to open.
741
- * 2. `session(state)` until `status` is `authorized`, which carries a bridge `code`.
742
- * 3. `token({ code, code_verifier })` → the session, its wallets and the profile.
743
- *
744
- * Use PKCE. The code travels through a redirect a client does not control, and the
745
- * `code_verifier` is the only reason an intercepted one is worth nothing. With a
746
- * `redirect_uri` it is not a choice: the service refuses that authorize without a
747
- * `code_challenge` (`400 validation_failed`).
823
+ * Pay exactly {@link amountIn} of the origin asset to {@link depositAddress}
824
+ * (with {@link depositMemo} on Stellar, as a MEMO_TEXT) — {@link depositUri} is
825
+ * that payment as a wallet link. NEAR Intents pays {@link recipient} on the
826
+ * destination chain, or refunds {@link refundTo}. The server follows it; poll
827
+ * with `await swap.fetch()` or subscribe to the `CROSS_CHAIN_SWAP_*` webhooks.
828
+ */
829
+ declare class CrossChainSwap extends Base<CrossChainSwapData> {
830
+ status: CrossChainSwapStatus;
831
+ /** NEAR Intents' own status word. */
832
+ providerStatus: string;
833
+ network: string;
834
+ originChain: SwapChain;
835
+ originAsset: string;
836
+ originContract: string | null;
837
+ destinationChain: SwapChain;
838
+ destinationAsset: string;
839
+ destinationContract: string | null;
840
+ amountIn: string;
841
+ feeBps: number;
842
+ feeAmount: string;
843
+ amountOutEstimated: string;
844
+ amountOutMin: string;
845
+ slippageBps: number;
846
+ recipient: string;
847
+ refundTo: string;
848
+ depositAddress: string;
849
+ depositMemo: string | null;
850
+ depositUri: string;
851
+ /** QR of {@link depositUri}; list rows do not carry it. */
852
+ qr: string | null;
853
+ depositTxHash: string | null;
854
+ amountOut: string | null;
855
+ refundedAmount: string | null;
856
+ originTxHashes: CrossChainTransactionData[] | null;
857
+ destinationTxHashes: CrossChainTransactionData[] | null;
858
+ timeEstimateSeconds: number;
859
+ correlationId: string;
860
+ /** Keep it: NEAR Intents' signature over the quote settles a dispute. */
861
+ quoteSignature: string;
862
+ idempotencyKey: string | null;
863
+ expiresAt: Date;
864
+ createdAt: Date;
865
+ updatedAt: Date;
866
+ constructor(client: Client, data: CrossChainSwapData);
867
+ protected _patch(data: CrossChainSwapData): this;
868
+ /** Whether the swap has reached an outcome that will not change. */
869
+ get isFinal(): boolean;
870
+ get isSucceeded(): boolean;
871
+ /** Re-fetch from the API, updating this instance in place. */
872
+ fetch(): Promise<this>;
873
+ /**
874
+ * Report the transaction that paid the deposit address so NEAR Intents starts
875
+ * without waiting for its indexer. Updates this instance in place.
876
+ */
877
+ reportDeposit(txHash: string): Promise<this>;
878
+ toJSON(): CrossChainSwapData;
879
+ }
880
+
881
+ /** A page of cross-chain swaps plus its pagination metadata. */
882
+ interface CrossChainSwapPage {
883
+ items: CrossChainSwap[];
884
+ total: number;
885
+ take: number;
886
+ skip: number;
887
+ }
888
+ /**
889
+ * Swaps between Stellar, Solana and Monad, settled by NEAR Intents —
890
+ * `client.crossChainSwaps`. Mainnet only: a `dev` key can list assets and
891
+ * quote, but creating answers `400 network_unsupported`. Both legs on one chain
892
+ * is `client.swaps` with `chain`.
748
893
  *
749
- * The session only comes back to the account that owns the API key. Every tenant
750
- * shares one Pollar application, so `token()` compares the email the login reports
751
- * with the key's account email and refuses a login someone else completed with
752
- * `403 pollar_identity_mismatch` — the session is revoked, never returned. A key
753
- * whose account has no verified email gets `403 pollar_identity_required` at
754
- * `authorize()`.
894
+ * @example
895
+ * const swap = await client.crossChainSwaps.create({
896
+ * originChain: 'stellar', originAsset: 'XLM', amount: '100',
897
+ * destinationChain: 'solana', destinationAsset: 'USDC',
898
+ * recipient: solanaAddress, refundTo: stellarAddress,
899
+ * });
900
+ * // Pay swap.amountIn to swap.depositAddress (memo swap.depositMemo), or open swap.depositUri.
901
+ */
902
+ declare class CrossChainSwapManager extends BaseManager<CrossChainSwap> {
903
+ private readonly route;
904
+ /** The tokens NEAR Intents can swap on Stellar, Solana and Monad. */
905
+ assets(): Promise<CrossChainAssetData[]>;
906
+ /** A dry quote: output, minimum and commission. Persists nothing. */
907
+ quote(options: QuoteCrossChainSwapOptions): Promise<CrossChainQuoteData>;
908
+ /** A live quote: the deposit address, memo and wallet link that fund the swap. */
909
+ create(options: CreateCrossChainSwapOptions): Promise<CrossChainSwap>;
910
+ fetch(id: string): Promise<CrossChainSwap>;
911
+ list(options?: ListCrossChainSwapsOptions): Promise<CrossChainSwapPage>;
912
+ /** Report the transaction that paid the deposit address. */
913
+ reportDeposit(id: string, txHash: string): Promise<CrossChainSwap>;
914
+ }
915
+
916
+ /**
917
+ * DeFindex vaults on Stellar — `client.defindex`. Served only where the
918
+ * deployment enables the DeFindex native plugin (`PLUGINS_ENABLED=defindex`);
919
+ * elsewhere every call is a 404.
755
920
  *
756
- * The two callback routes (`/oauth/callback…`) are deliberately absent from this
757
- * manager: they are where a BROWSER lands, not something a server calls. Polling
758
- * `session()` is the programmatic half of the same step.
921
+ * The payloads are DeFindex's own and are passed through untyped. Deposits and
922
+ * withdrawals come back as an unsigned transaction for the caller to sign and
923
+ * hand to {@link submit}.
924
+ */
925
+ declare class DefindexManager {
926
+ readonly client: Client;
927
+ private readonly route;
928
+ constructor(client: Client);
929
+ private get rest();
930
+ vaults<T = unknown>(): Promise<T>;
931
+ vault<T = unknown>(vault: string): Promise<T>;
932
+ /** An account's position in a vault. */
933
+ balance<T = unknown>(vault: string, account: string): Promise<T>;
934
+ deposit<T = unknown>(vault: string, options: DefindexDepositOptions): Promise<T>;
935
+ withdraw<T = unknown>(vault: string, options: DefindexWithdrawOptions): Promise<T>;
936
+ /** Submit a signed DeFindex transaction (base64 XDR). */
937
+ submit<T = unknown>(xdr: string): Promise<T>;
938
+ }
939
+
940
+ /**
941
+ * Plugins this deployment serves — `client.plugins`. A plugin runs only for a
942
+ * consumer that installed it, and installing is consenting to exactly the
943
+ * capabilities it declares: pass them back as `grantCapabilities`.
759
944
  *
760
945
  * @example
761
- * const { state, authorization_url } = await client.pollar.authorize({
762
- * provider: 'google',
763
- * code_challenge: challenge,
764
- * code_challenge_method: 'S256',
765
- * });
766
- * // open `authorization_url`, then poll:
767
- * const polled = await client.pollar.session(state);
768
- * if (polled.status === 'authorized') {
769
- * const session = await client.pollar.token({ code: polled.code, code_verifier: verifier });
770
- * }
946
+ * const plugin = await client.plugins.fetch('invoices');
947
+ * await client.plugins.install('invoices', { grantCapabilities: plugin.capabilities });
948
+ * const { output } = await client.plugins.query('invoices', 'list', { status: 'open' });
771
949
  */
772
- declare class PollarManager {
950
+ declare class PluginManager {
773
951
  readonly client: Client;
774
952
  private readonly route;
775
953
  constructor(client: Client);
776
954
  private get rest();
777
- /** Start a login and get the URL to send the user to. */
778
- authorize(options: PollarAuthorizeOptions): Promise<PollarAuthorizeData>;
779
- /**
780
- * Poll a login. `status: 'authorized'` carries the bridge `code` to redeem;
781
- * `pending` means keep waiting; anything else is over.
782
- */
783
- session(state: string): Promise<PollarLoginSessionData>;
784
- /** Redeem the bridge code for a session. Single use — a consumed code is dead. */
785
- token(options: PollarTokenOptions): Promise<PollarSessionData>;
786
- /**
787
- * Rotate the token pair. The old refresh token stops working, so store what
788
- * comes back before using it — a rotation you lose is a session you lose.
789
- */
790
- refresh(options: PollarRefreshOptions): Promise<PollarRefreshData>;
791
- /** Revoke a session — this device, or every one of them. */
792
- logout(options: PollarLogoutOptions): Promise<PollarLogoutData>;
793
- /** Validate an end-user access token and learn whose it is. */
794
- verifyToken(options: VerifyPollarTokenOptions): Promise<PollarTokenVerificationData>;
795
- /**
796
- * Fund a wallet's XLM base reserve. A Stellar account does not exist until
797
- * something pays for it, which is why a fresh Pollar wallet can have an address
798
- * and still not be on the network.
799
- */
800
- activateWallet(options: ActivatePollarWalletOptions): Promise<PollarActivationData>;
801
- /** Enable the application's configured assets on a wallet. */
802
- addDefaultTrustlines(address: string): Promise<PollarTrustlineData>;
803
- /** Enable specific assets on a wallet. */
804
- addTrustlines(address: string, options: PollarTrustlinesOptions): Promise<PollarTrustlineData>;
805
- /**
806
- * Remove a trustline. An asset is `(code, issuer)`, and both are in the path for
807
- * that reason: a bare code names no asset.
808
- */
809
- removeTrustline(address: string, code: string, issuer: string): Promise<PollarTrustlineData>;
810
- /**
811
- * Register a user with Pollar ahead of their first login. Needs an elevated
812
- * (admin) key: the Pollar user directory is shared by every tenant, so a tenant
813
- * key gets `403 elevated_key_required`.
814
- */
815
- registerUser(options: RegisterPollarUserOptions): Promise<PollarUserData>;
816
- /**
817
- * Register a user AND provision their Stellar wallet in one call — the variant
818
- * to use when the user should be able to receive before they ever log in. Needs
819
- * an elevated (admin) key, like {@link registerUser}.
820
- */
821
- registerUserWithWallet(options: RegisterPollarUserOptions): Promise<PollarUserData>;
955
+ list(): Promise<PluginData[]>;
956
+ fetch(slug: string): Promise<PluginData>;
957
+ /** Install (or re-consent to) a plugin. */
958
+ install(slug: string, options: InstallPluginOptions): Promise<PluginData>;
959
+ uninstall(slug: string): Promise<PluginUninstalledData>;
960
+ /** Run a read-only action the plugin declares. */
961
+ query<T = unknown>(slug: string, action: string, input?: Record<string, unknown>): Promise<PluginActionResultData<T>>;
962
+ /** Run an action that may change the plugin's state. */
963
+ command<T = unknown>(slug: string, action: string, input?: Record<string, unknown>): Promise<PluginActionResultData<T>>;
964
+ }
965
+
966
+ /**
967
+ * The shared public API key — `client.publicKey`. It is what an open-source
968
+ * wallet embeds to reach the few routes anonymous callers may use; the route
969
+ * that serves it takes no key at all. Mostly useful to tooling that ships such
970
+ * a wallet; a server with its own key has no need for it.
971
+ */
972
+ declare class PublicKeyManager {
973
+ readonly client: Client;
974
+ private readonly route;
975
+ constructor(client: Client);
976
+ private get rest();
977
+ /** The public key for an environment (`dev` → testnet, `prod` → mainnet). */
978
+ fetch(env?: 'dev' | 'prod'): Promise<PublicKeyData>;
822
979
  }
823
980
 
824
981
  /**
@@ -912,6 +1069,11 @@ declare class PaymentIntentManager extends BaseManager<PaymentIntent> {
912
1069
  createPay(options: CreatePayPaymentIntentOptions): Promise<PaymentIntent>;
913
1070
  /** Get a single payment intent by id. */
914
1071
  fetch(id: string): Promise<PaymentIntent>;
1072
+ /**
1073
+ * Every status change an intent went through, oldest first — who moved it
1074
+ * (`api`, `validate`, `observer`, `system`), when, and with which transaction.
1075
+ */
1076
+ transitions(id: string): Promise<PaymentIntentTransitionData[]>;
915
1077
  /** List the consumer's payment intents (paginated). */
916
1078
  list(options?: ListPaymentIntentsOptions): Promise<PaymentIntentPage>;
917
1079
  /** Update a payment intent (status / txHash / reference). */
@@ -984,7 +1146,68 @@ declare class ProductManager extends BaseManager<Product> {
984
1146
  }
985
1147
 
986
1148
  /**
987
- * A Stellar path-payment swap.
1149
+ * A same-chain swap on Solana (built by Jupiter) or Monad (built by Kuru Flow),
1150
+ * from `client.swaps` with `chain: 'solana' | 'monad'`.
1151
+ *
1152
+ * Non-custodial like a Stellar {@link Swap}: sign {@link transaction} in the
1153
+ * wallet that owns {@link source}, then `await swap.submit({ signedTransaction })`.
1154
+ * The server checks it is the transaction it built before broadcasting it. On
1155
+ * Monad, when {@link approval} is set, send and confirm that `approve` call first.
1156
+ */
1157
+ declare class ChainSwap extends Base<ChainSwapData> {
1158
+ chain: OtherSwapChain;
1159
+ network: string;
1160
+ /** The aggregator that built it. */
1161
+ provider: 'jupiter' | 'kuru';
1162
+ status: SwapStatus;
1163
+ /** The wallet that signs, pays and receives. */
1164
+ source: string;
1165
+ /** `native`, or the SPL mint / ERC-20 address. */
1166
+ sendAsset: string;
1167
+ sendAmount: string;
1168
+ destAsset: string;
1169
+ destEstimated: string;
1170
+ destMin: string;
1171
+ feeBps: number;
1172
+ /** The commission, in the destination asset. */
1173
+ feeAmount: string;
1174
+ slippageBps: number;
1175
+ path: {
1176
+ code: string;
1177
+ issuer: string | null;
1178
+ }[];
1179
+ /** What the wallet signs. */
1180
+ transaction: ChainSwapTransaction;
1181
+ /** Monad ERC-20 sales with a short allowance: the `approve` call to send first. */
1182
+ approval: EvmCallData | null;
1183
+ txHash: string | null;
1184
+ idempotencyKey: string | null;
1185
+ /** Submit refuses the transaction after this. */
1186
+ expiresAt: Date;
1187
+ createdAt: Date;
1188
+ updatedAt: Date;
1189
+ constructor(client: Client, data: ChainSwapData);
1190
+ protected _patch(data: ChainSwapData): this;
1191
+ /** Whether the swap has settled on-chain. */
1192
+ get isSucceeded(): boolean;
1193
+ /** Whether the swap is still awaiting submission. */
1194
+ get isPending(): boolean;
1195
+ /** Whether the built transaction can no longer be submitted. */
1196
+ get isStale(): boolean;
1197
+ /** Re-fetch this swap from the API. */
1198
+ fetch(): Promise<ChainSwap>;
1199
+ /**
1200
+ * Relay the signed transaction. Mutates this instance from the refreshed
1201
+ * swap in the outcome and returns the outcome.
1202
+ */
1203
+ submit(options: {
1204
+ signedTransaction: string;
1205
+ }): Promise<ChainSwapSubmitOutcome>;
1206
+ toJSON(): ChainSwapData;
1207
+ }
1208
+
1209
+ /**
1210
+ * A Stellar path-payment swap. Solana and Monad swaps are {@link ChainSwap}.
988
1211
  *
989
1212
  * Wraps the raw API payload with typed accessors and atomic action methods so
990
1213
  * you can operate on it directly: `await swap.fetch()`,
@@ -1041,18 +1264,20 @@ declare class Swap extends Base<SwapData> {
1041
1264
  * Relay the signed transaction for this swap. Mutates this instance from the
1042
1265
  * refreshed swap in the outcome and returns the outcome.
1043
1266
  */
1044
- submit(options: SubmitSwapOptions): Promise<SwapSubmitOutcome>;
1267
+ submit(options: {
1268
+ signedXdr: string;
1269
+ }): Promise<SwapSubmitOutcome>;
1045
1270
  toJSON(): SwapData;
1046
1271
  }
1047
1272
 
1048
1273
  /** A page of swaps plus its pagination metadata. */
1049
- interface SwapPage {
1050
- items: Swap[];
1274
+ interface SwapPage<T extends Swap | ChainSwap = Swap> {
1275
+ items: T[];
1051
1276
  total: number;
1052
1277
  take: number;
1053
1278
  skip: number;
1054
1279
  }
1055
- /** Submission outcome with the refreshed swap materialized. */
1280
+ /** Submission outcome of a Stellar swap, with the refreshed swap materialized. */
1056
1281
  interface SwapSubmitOutcome {
1057
1282
  submitted: boolean;
1058
1283
  status: SwapStatus;
@@ -1061,33 +1286,53 @@ interface SwapSubmitOutcome {
1061
1286
  resultCodes: string[] | null;
1062
1287
  swap: Swap;
1063
1288
  }
1289
+ /** Submission outcome of a Solana or Monad swap. */
1290
+ interface ChainSwapSubmitOutcome {
1291
+ submitted: boolean;
1292
+ status: SwapStatus;
1293
+ txHash: string;
1294
+ swap: ChainSwap;
1295
+ }
1296
+ /** A request that names a chain off Stellar. */
1297
+ type OnOtherChain = {
1298
+ chain: OtherSwapChain;
1299
+ };
1064
1300
  /**
1065
- * Manages Stellar swaps — `client.swaps`.
1301
+ * Same-chain swaps — `client.swaps`. No `chain` (or `'stellar'`) is a Stellar
1302
+ * path payment and yields a {@link Swap}, exactly as before; `'solana'` goes
1303
+ * through Jupiter and `'monad'` through Kuru Flow and yields a {@link ChainSwap}.
1304
+ * Swaps between chains are `client.crossChainSwaps`.
1066
1305
  *
1067
1306
  * @example
1068
- * const quote = await client.swaps.quote({
1069
- * amount: '100', destAssetCode: 'USDC',
1070
- * });
1071
1307
  * const swap = await client.swaps.create({
1072
- * amount: '100', destAssetCode: 'USDC', source: 'G...',
1308
+ * amount: '100', destAssetCode: 'USDC', destAssetIssuer: 'GA5Z…', source: 'G...',
1073
1309
  * });
1074
1310
  * console.log(swap.uri, swap.qr);
1311
+ *
1312
+ * const sol = await client.swaps.create({
1313
+ * chain: 'solana', amount: '0.1', sourceAssetCode: 'SOL',
1314
+ * destAssetCode: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', source: wallet,
1315
+ * });
1316
+ * await sol.submit({ signedTransaction: signInWallet(sol.transaction) });
1075
1317
  */
1076
- declare class SwapManager extends BaseManager<Swap> {
1318
+ declare class SwapManager extends BaseManager<Swap | ChainSwap> {
1077
1319
  private readonly route;
1078
1320
  /** Price a swap without creating it. Returns a plain quote (not a {@link Swap}). */
1079
1321
  quote(options: QuoteSwapOptions): Promise<SwapQuoteData>;
1080
- /** Create a swap (unsigned XDR + SEP-7 URI + QR). */
1322
+ /** Create a swap: an unsigned transaction for the source wallet to sign. */
1323
+ create(options: CreateSwapOptions & OnOtherChain): Promise<ChainSwap>;
1081
1324
  create(options: CreateSwapOptions): Promise<Swap>;
1082
- /** Get a single swap by id. */
1083
- fetch(id: string): Promise<Swap>;
1084
- /** List the consumer's swaps (paginated). */
1085
- list(options?: ListSwapsOptions): Promise<SwapPage>;
1325
+ /** Get a single swap by id, on any chain. */
1326
+ fetch(id: string): Promise<Swap | ChainSwap>;
1327
+ /** List the consumer's swaps on one chain (Stellar when `chain` is omitted). */
1328
+ list(options: ListSwapsOptions & OnOtherChain): Promise<SwapPage<ChainSwap>>;
1329
+ list(options?: ListSwapsOptions): Promise<SwapPage<Swap>>;
1086
1330
  /**
1087
- * Relay a signed swap transaction to the network. Finalizes status
1088
- * server-side and returns the outcome with the refreshed swap materialized.
1331
+ * Relay a signed swap transaction to its network: `{ signedXdr }` for a
1332
+ * Stellar swap, `{ signedTransaction }` for a Solana or Monad one.
1089
1333
  */
1090
- submit(id: string, options: SubmitSwapOptions): Promise<SwapSubmitOutcome>;
1334
+ submit(id: string, options: SubmitSwapOptions): Promise<SwapSubmitOutcome | ChainSwapSubmitOutcome>;
1335
+ private materialize;
1091
1336
  }
1092
1337
 
1093
1338
  /** A single attempt to deliver an event to a webhook endpoint (audit record). */
@@ -1177,21 +1422,17 @@ type WebhookHandlerOptions = WebhookProcessOptions;
1177
1422
  * event type (`PAYMENT_INTENT_SUCCEEDED`), its camelCase alias
1178
1423
  * (`paymentIntentSucceeded`), or `event` to catch them all.
1179
1424
  */
1180
- interface WebhookListenerEvents {
1181
- event: [WebhookEvent<PaymentIntentData>];
1182
- PAYMENT_INTENT_CREATED: [WebhookEvent<PaymentIntentData>];
1183
- PAYMENT_INTENT_UPDATED: [WebhookEvent<PaymentIntentData>];
1184
- PAYMENT_INTENT_SUCCEEDED: [WebhookEvent<PaymentIntentData>];
1185
- PAYMENT_INTENT_FAILED: [WebhookEvent<PaymentIntentData>];
1186
- PAYMENT_INTENT_CANCELLED: [WebhookEvent<PaymentIntentData>];
1187
- PAYMENT_INTENT_DELETED: [WebhookEvent<PaymentIntentData>];
1188
- paymentIntentCreated: [WebhookEvent<PaymentIntentData>];
1189
- paymentIntentUpdated: [WebhookEvent<PaymentIntentData>];
1190
- paymentIntentSucceeded: [WebhookEvent<PaymentIntentData>];
1191
- paymentIntentFailed: [WebhookEvent<PaymentIntentData>];
1192
- paymentIntentCancelled: [WebhookEvent<PaymentIntentData>];
1193
- paymentIntentDeleted: [WebhookEvent<PaymentIntentData>];
1194
- }
1425
+ type WebhookListenerEvents = {
1426
+ event: [AnyWebhookEvent];
1427
+ } & {
1428
+ [K in keyof WebhookEventDataMap]: [TypedWebhookEvent<K>];
1429
+ } & {
1430
+ [K in keyof WebhookEventDataMap as CamelEvent<K>]: [TypedWebhookEvent<K>];
1431
+ };
1432
+ /** `SWAP_SUCCEEDED` → `SwapSucceeded`. */
1433
+ type PascalEvent<S extends string> = S extends `${infer H}_${infer T}` ? `${Capitalize<Lowercase<H>>}${PascalEvent<T>}` : Capitalize<Lowercase<S>>;
1434
+ /** `SWAP_SUCCEEDED` → `swapSucceeded`, the alias each event is also emitted as. */
1435
+ type CamelEvent<S extends string> = Uncapitalize<PascalEvent<S>>;
1195
1436
  /** Minimal Express-like request (so we don't depend on `@types/express`). */
1196
1437
  interface RequestLike {
1197
1438
  headers: Record<string, string | string[] | undefined>;
@@ -1261,7 +1502,7 @@ declare class WebhookManager extends BaseManager<WebhookEndpoint> {
1261
1502
  *
1262
1503
  * @throws {WebhookSignatureError} when the signature is missing/invalid.
1263
1504
  */
1264
- process(rawBody: string | Uint8Array, signatureHeader: string | null | undefined, options?: WebhookProcessOptions): WebhookEvent<PaymentIntentData>;
1505
+ process(rawBody: string | Uint8Array, signatureHeader: string | null | undefined, options?: WebhookProcessOptions): AnyWebhookEvent;
1265
1506
  /**
1266
1507
  * Build a Node.js `http`/`https` request handler that verifies the signature,
1267
1508
  * dispatches the event to your listeners, and replies `200`/`400`.
@@ -1414,7 +1655,7 @@ interface Client {
1414
1655
  */
1415
1656
  declare class Client extends EventEmitter {
1416
1657
  /** Library version. */
1417
- static readonly version = "2.0.0";
1658
+ static readonly version = "2.1.0";
1418
1659
  /**
1419
1660
  * Process-wide shared defaults maintained by Cosmos Pay (gateway URL, version,
1420
1661
  * internal secrets). Mutate once at startup to change them for every client
@@ -1433,8 +1674,10 @@ declare class Client extends EventEmitter {
1433
1674
  readonly webhooks: WebhookManager;
1434
1675
  /** Products / prices. */
1435
1676
  readonly products: ProductManager;
1436
- /** Stellar swaps — quote/create/fetch/list/submit. */
1677
+ /** Same-chain swaps: the Stellar DEX, Jupiter on Solana, Kuru Flow on Monad. */
1437
1678
  readonly swaps: SwapManager;
1679
+ /** Swaps between Stellar, Solana and Monad, settled by NEAR Intents. */
1680
+ readonly crossChainSwaps: CrossChainSwapManager;
1438
1681
  /** Liquidity pools: browse, positions, deposit / withdraw. */
1439
1682
  readonly liquidity: LiquidityManager;
1440
1683
  /** Fiat -> stablecoin: quotes, payins, trustlines, virtual accounts. */
@@ -1445,14 +1688,22 @@ declare class Client extends EventEmitter {
1445
1688
  readonly activity: ActivityManager;
1446
1689
  /** KYC / KYB: receivers, their wallets and their bank accounts. */
1447
1690
  readonly kyc: KycManager;
1448
- /** Pollar: social login, its sessions, and the custodial wallets behind them. */
1449
- readonly pollar: PollarManager;
1450
1691
  /** Customers. */
1451
1692
  readonly customers: CustomerManager;
1452
1693
  /** Read-only analytics (summary, balances, logs). */
1453
1694
  readonly analytics: AnalyticsManager;
1454
1695
  /** Service health probes (public). */
1455
1696
  readonly health: HealthManager;
1697
+ /** Payment handles: resolve, claim and manage `@name` aliases. */
1698
+ readonly aliases: AliasManager;
1699
+ /** The asset registry: which `(code, issuer)` pairs exist per network, and who issues them. */
1700
+ readonly assets: AssetManager;
1701
+ /** Plugins this deployment serves: install, query, command. */
1702
+ readonly plugins: PluginManager;
1703
+ /** DeFindex vaults (when the deployment enables the native plugin). */
1704
+ readonly defindex: DefindexManager;
1705
+ /** The shared public API key an open-source wallet embeds. */
1706
+ readonly publicKey: PublicKeyManager;
1456
1707
  constructor(options: ClientOptions);
1457
1708
  /** Update the API key used for subsequent requests. */
1458
1709
  setApiKey(apiKey: string): this;
@@ -1517,7 +1768,7 @@ declare const Webhooks: {
1517
1768
  };
1518
1769
 
1519
1770
  /** Library version, kept in sync with package.json. */
1520
- declare const version = "2.0.0";
1771
+ declare const version = "2.1.0";
1521
1772
  /**
1522
1773
  * Default base URL of the Cosmos Pay gateway. Maintained by Cosmos Pay — users
1523
1774
  * never need to set this; it's part of the {@link shared} configuration. Override
@@ -1549,4 +1800,4 @@ declare const Events: {
1549
1800
  };
1550
1801
  type ClientEvent = (typeof Events)[keyof typeof Events];
1551
1802
 
1552
- export { ActivatePollarWalletOptions, ActivityEventInput, ActivityListData, ActivityManager, type ActivityPage, ActivityReportData, ActivitySummaryData, AnalyticsBalancesData, AnalyticsManager, AnalyticsSummaryData, ApiLogsData, ApproveReceiverOptions, AttachPayoutDocumentOptions, AuthorizePayoutData, AuthorizePayoutOptions, BankAccountData, type BankAccountPage, BankDetailsData, Base, BaseManager, BrowseLiquidityPoolsOptions, Client, type ClientEvent, type ClientEvents, type ClientOptions, CreateBankAccountOptions, CreateCustomerOptions, CreatePayPaymentIntentOptions, CreatePayinOptions, CreatePayinQuoteOptions, CreatePayoutOptions, CreatePayoutQuoteOptions, CreateProductOptions, CreateReceiverOptions, CreateReceiverWalletOptions, CreateSwapOptions, CreateTrustlineOptions, CreateTxPaymentIntentOptions, CreateVirtualAccountOptions, CreateWebhookEndpointOptions, Customer, CustomerData, CustomerManager, DEFAULT_BASE_URL, DEFAULT_RETRIES, DEFAULT_TIMEOUT, DEFAULT_VERSION, DeletedData, DepositLiquidityOptions, EnableReceiverOptions, Events, type FetchLike, HealthCheckData, HealthManager, InitiateTosOptions, KycManager, KycRailsData, KycUploadData, LiquidityManager, LiquidityOperation, LiquidityOperationData, LiquidityOperationKind, type LiquidityOperationPage, LiquidityOperationStatus, LiquidityPoolData, type LiquidityPoolPage, LiquidityPositionsData, type LiquiditySubmitOutcome, ListActivityOptions, ListKycOptions, ListLiquidityOperationsOptions, ListPayinsOptions, ListPaymentIntentsOptions, ListPayoutsOptions, ListSwapsOptions, ListWebhookDeliveriesOptions, OfframpManager, OnrampManager, PayinData, type PayinPage, PayinQuoteData, PaymentIntent, PaymentIntentData, PaymentIntentKind, PaymentIntentManager, type PaymentIntentPage, PaymentIntentStatus, PayoutData, PayoutDocumentData, type PayoutPage, PayoutQuoteData, PollarActivationData, PollarAuthorizeData, PollarAuthorizeOptions, PollarLoginSessionData, PollarLogoutData, PollarLogoutOptions, PollarManager, PollarRefreshData, PollarRefreshOptions, PollarSessionData, PollarTokenOptions, PollarTokenVerificationData, PollarTrustlineData, PollarTrustlinesOptions, PollarUserData, Product, ProductData, ProductKind, ProductManager, QuoteSwapOptions, REST, type RESTOptions, Receiver, ReceiverData, type ReceiverPage, ReceiverWalletData, type ReceiverWalletPage, RegisterPollarUserOptions, ReportActivityOptions, type RequestOptions, RequestTosOptions, SIGNATURE_HEADER, SetReceiverAccessOptions, type SharedConfig, SubmitLiquidityOptions, SubmitSwapOptions, Swap, SwapData, SwapManager, type SwapPage, SwapQuoteData, SwapStatus, type SwapSubmitOutcome, TermsOfServiceData, TrustlineData, UpdateCustomerOptions, UpdatePaymentIntentOptions, UpdateProductOptions, UpdateReceiverOptions, UpdateWebhookEndpointOptions, ValidatePaymentIntentOptions, type ValidationOutcome, ValidationOutcomeData, VerifyPollarTokenOptions, type VerifyWebhookOptions, VirtualAccountData, WalletSignMessageData, WebhookDelivery, WebhookDeliveryData, type WebhookDeliveryPage, WebhookDeliveryStatus, WebhookEndpoint, WebhookEndpointData, WebhookEndpointWithSecretData, WebhookEvent, WebhookEventType, type WebhookHandlerOptions, type WebhookListenerEvents, WebhookLogsData, WebhookManager, WebhookPingData, type WebhookProcessOptions, WebhookSignatureError, Webhooks, WithdrawLiquidityOptions, resolveShared, shared, version };
1803
+ export { ActivityEventInput, ActivityListData, ActivityManager, type ActivityPage, ActivityReportData, ActivitySummaryData, AddAliasAddressOptions, AliasAddressData, AliasAvailabilityData, AliasByAddressData, AliasChallengeData, AliasDeletedData, AliasListData, AliasManager, AliasRecoveryStartedData, AliasResolutionData, AnalyticsBalancesData, AnalyticsManager, AnalyticsSummaryData, AnyWebhookEvent, ApiLogsData, ApproveReceiverOptions, AssetManager, AssetRegistryData, AttachPayoutDocumentOptions, AuthorizePayoutData, AuthorizePayoutOptions, BankAccountData, type BankAccountPage, BankDetailsData, Base, BaseManager, BrowseLiquidityPoolsOptions, ChainSwap, ChainSwapData, type ChainSwapSubmitOutcome, ChainSwapTransaction, ClaimAliasOptions, Client, type ClientEvent, type ClientEvents, type ClientOptions, CompleteAliasRecoveryOptions, CreateAliasChallengeOptions, CreateBankAccountOptions, CreateCrossChainSwapOptions, CreateCustomerOptions, CreatePayPaymentIntentOptions, CreatePayinOptions, CreatePayinQuoteOptions, CreatePayoutOptions, CreatePayoutQuoteOptions, CreateProductOptions, CreateReceiverOptions, CreateReceiverWalletOptions, CreateSwapOptions, CreateTrustlineOptions, CreateTxPaymentIntentOptions, CreateVirtualAccountOptions, CreateWebhookEndpointOptions, CrossChainAssetData, CrossChainQuoteData, CrossChainSwap, CrossChainSwapData, CrossChainSwapManager, type CrossChainSwapPage, CrossChainSwapStatus, CrossChainTransactionData, Customer, CustomerData, CustomerManager, DEFAULT_BASE_URL, DEFAULT_RETRIES, DEFAULT_TIMEOUT, DEFAULT_VERSION, DefindexDepositOptions, DefindexManager, DefindexWithdrawOptions, DeletedData, DepositLiquidityOptions, EnableReceiverOptions, Events, EvmCallData, type FetchLike, HealthCheckData, HealthManager, InitiateTosOptions, InstallPluginOptions, KycManager, KycRailsData, KycUploadData, LiquidityManager, LiquidityOperation, LiquidityOperationData, LiquidityOperationKind, type LiquidityOperationPage, LiquidityOperationStatus, LiquidityPoolData, type LiquidityPoolPage, LiquidityPositionsData, type LiquiditySubmitOutcome, ListActivityOptions, ListCrossChainSwapsOptions, ListKycOptions, ListLiquidityOperationsOptions, ListPayinsOptions, ListPaymentIntentsOptions, ListPayoutsOptions, ListRegistryAssetsOptions, ListSwapsOptions, ListWebhookDeliveriesOptions, OfframpManager, OnrampManager, OtherSwapChain, OwnedAliasData, PayinData, type PayinPage, PayinQuoteData, PaymentIntent, PaymentIntentData, PaymentIntentKind, PaymentIntentManager, type PaymentIntentPage, PaymentIntentStatus, PaymentIntentTransitionData, PayoutData, PayoutDocumentData, type PayoutPage, PayoutQuoteData, PluginActionResultData, PluginData, PluginManager, PluginUninstalledData, Product, ProductData, ProductKind, ProductManager, PublicKeyData, PublicKeyManager, QuoteCrossChainSwapOptions, QuoteSwapOptions, REST, type RESTOptions, Receiver, ReceiverData, type ReceiverPage, ReceiverWalletData, type ReceiverWalletPage, ReportActivityOptions, type RequestOptions, RequestTosOptions, SIGNATURE_HEADER, SetReceiverAccessOptions, type SharedConfig, SubmitLiquidityOptions, SubmitSwapOptions, Swap, SwapChain, SwapData, SwapManager, type SwapPage, SwapQuoteData, SwapStatus, type SwapSubmitOutcome, TermsOfServiceData, TrustlineData, TypedWebhookEvent, UpdateCustomerOptions, UpdatePaymentIntentOptions, UpdateProductOptions, UpdateReceiverOptions, UpdateWebhookEndpointOptions, ValidatePaymentIntentOptions, type ValidationOutcome, ValidationOutcomeData, type VerifyWebhookOptions, VirtualAccountData, WalletSignMessageData, WebhookDelivery, WebhookDeliveryData, type WebhookDeliveryPage, WebhookDeliveryStatus, WebhookEndpoint, WebhookEndpointData, WebhookEndpointWithSecretData, WebhookEvent, WebhookEventDataMap, WebhookEventType, type WebhookHandlerOptions, type WebhookListenerEvents, WebhookLogsData, WebhookManager, WebhookPingData, type WebhookProcessOptions, WebhookSignatureError, Webhooks, WithdrawLiquidityOptions, resolveShared, shared, version };