@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/CHANGELOG.md +18 -0
- package/README.md +65 -0
- package/dist/{chunk-TM4HAKWE.js → chunk-NK5EHEKJ.js} +3 -3
- package/dist/{chunk-TM4HAKWE.js.map → chunk-NK5EHEKJ.js.map} +1 -1
- package/dist/index.cjs +529 -106
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +372 -121
- package/dist/index.d.ts +372 -121
- package/dist/index.js +522 -107
- package/dist/index.js.map +1 -1
- package/dist/{intent-input-BtUp3tFN.d.cts → intent-input-8rZfCrQ0.d.cts} +522 -177
- package/dist/{intent-input-BtUp3tFN.d.ts → intent-input-8rZfCrQ0.d.ts} +522 -177
- package/dist/web/index.cjs +1 -1
- package/dist/web/index.cjs.map +1 -1
- package/dist/web/index.d.cts +2 -2
- package/dist/web/index.d.ts +2 -2
- package/dist/web/index.js +2 -2
- package/llms/15-swaps.md +58 -0
- package/llms/llms-full.txt +61 -0
- package/llms/llms.txt +1 -0
- package/package.json +7 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,71 @@
|
|
|
1
1
|
import { EventEmitter } from 'node:events';
|
|
2
|
-
import { A as
|
|
3
|
-
export {
|
|
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
|
-
*
|
|
821
|
+
* A swap between two chains, settled by NEAR Intents — `client.crossChainSwaps`.
|
|
735
822
|
*
|
|
736
|
-
*
|
|
737
|
-
*
|
|
738
|
-
*
|
|
739
|
-
*
|
|
740
|
-
*
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
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
|
-
*
|
|
750
|
-
*
|
|
751
|
-
*
|
|
752
|
-
*
|
|
753
|
-
*
|
|
754
|
-
*
|
|
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
|
|
757
|
-
*
|
|
758
|
-
*
|
|
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
|
|
762
|
-
*
|
|
763
|
-
*
|
|
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
|
|
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
|
-
|
|
778
|
-
|
|
779
|
-
/**
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
/**
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
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
|
|
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:
|
|
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:
|
|
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
|
-
*
|
|
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
|
|
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 (
|
|
1085
|
-
list(options
|
|
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
|
|
1088
|
-
*
|
|
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
|
-
|
|
1181
|
-
event: [
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
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):
|
|
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.
|
|
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
|
-
/**
|
|
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.
|
|
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 {
|
|
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 };
|