@cosmosapp/pay_sdk 2.0.0 → 2.2.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.
@@ -129,6 +129,27 @@ declare const WebhookEventType: {
129
129
  readonly PaymentIntentFailed: "PAYMENT_INTENT_FAILED";
130
130
  readonly PaymentIntentCancelled: "PAYMENT_INTENT_CANCELLED";
131
131
  readonly PaymentIntentDeleted: "PAYMENT_INTENT_DELETED";
132
+ readonly ReceiverUpdated: "RECEIVER_UPDATED";
133
+ readonly PayinCreated: "PAYIN_CREATED";
134
+ readonly PayinUpdated: "PAYIN_UPDATED";
135
+ readonly PayinCompleted: "PAYIN_COMPLETED";
136
+ readonly PayoutCreated: "PAYOUT_CREATED";
137
+ readonly PayoutUpdated: "PAYOUT_UPDATED";
138
+ readonly PayoutCompleted: "PAYOUT_COMPLETED";
139
+ readonly SwapCreated: "SWAP_CREATED";
140
+ readonly SwapSubmitted: "SWAP_SUBMITTED";
141
+ readonly SwapSucceeded: "SWAP_SUCCEEDED";
142
+ readonly SwapFailed: "SWAP_FAILED";
143
+ readonly LiquidityCreated: "LIQUIDITY_CREATED";
144
+ readonly LiquiditySubmitted: "LIQUIDITY_SUBMITTED";
145
+ readonly LiquiditySucceeded: "LIQUIDITY_SUCCEEDED";
146
+ readonly LiquidityFailed: "LIQUIDITY_FAILED";
147
+ readonly CrossChainSwapCreated: "CROSS_CHAIN_SWAP_CREATED";
148
+ readonly CrossChainSwapUpdated: "CROSS_CHAIN_SWAP_UPDATED";
149
+ readonly CrossChainSwapSucceeded: "CROSS_CHAIN_SWAP_SUCCEEDED";
150
+ readonly CrossChainSwapRefunded: "CROSS_CHAIN_SWAP_REFUNDED";
151
+ readonly CrossChainSwapFailed: "CROSS_CHAIN_SWAP_FAILED";
152
+ readonly CrossChainSwapExpired: "CROSS_CHAIN_SWAP_EXPIRED";
132
153
  };
133
154
  type WebhookEventType = (typeof WebhookEventType)[keyof typeof WebhookEventType];
134
155
  /** Delivery state of a single webhook attempt. */
@@ -194,8 +215,19 @@ interface CreateTxPaymentIntentOptions {
194
215
  callback?: string;
195
216
  }
196
217
  /** Body for `POST /v1/payment-intents/pay`. */
218
+ /** The chain a payment intent settles on. */
219
+ type PaymentChain = 'stellar' | 'solana' | 'monad';
197
220
  interface CreatePayPaymentIntentOptions {
198
- /** Payee's Stellar account. A registered address-book name also works. */
221
+ /**
222
+ * Chain the payment settles on: `stellar` (the default, a SEP-7 `web+stellar:pay` link),
223
+ * `solana` (a Solana Pay link) or `monad` (an EIP-681 link). The network (mainnet or test)
224
+ * is the API key's, as on every route.
225
+ */
226
+ chain?: PaymentChain;
227
+ /**
228
+ * Payee's account on that chain: a Stellar `G...` account, a Solana address or a Monad
229
+ * `0x...` address. A registered address-book name also works.
230
+ */
199
231
  destination: string;
200
232
  /** Amount the destination should receive. Omit to let the user enter it (e.g. donations). */
201
233
  amount?: string;
@@ -204,15 +236,15 @@ interface CreatePayPaymentIntentOptions {
204
236
  * and `assetIssuer` for you. Takes a back seat to explicit code/issuer below.
205
237
  */
206
238
  asset?: AssetRef;
207
- /** Asset code the destination receives. Omit for native lumens (XLM). */
239
+ /** Asset code the destination receives. Omit for the chain's coin (XLM, SOL or MON). */
208
240
  assetCode?: string;
209
- /** Issuer account for a non-native asset. */
241
+ /** Who issues a token: the Stellar issuer account, the Solana SPL mint or the Monad ERC-20 contract. */
210
242
  assetIssuer?: string;
211
243
  /** MEMO_ID (numeric uint64) for idempotency + on-chain identification. Auto-generated when omitted. */
212
244
  memo?: string;
213
- /** SEP-7 `msg`: shown to the user in their wallet (≤ 300 chars). */
245
+ /** Shown to the user in their wallet (≤ 300 chars): SEP-7 `msg` on Stellar, the Solana Pay `message`. */
214
246
  msg?: string;
215
- /** SEP-7 `callback`, e.g. `url:https://...`. */
247
+ /** SEP-7 `callback`, e.g. `url:https://...`. Stellar only. */
216
248
  callback?: string;
217
249
  }
218
250
  /** Body for `PATCH /v1/payment-intents/:id`. */
@@ -226,6 +258,10 @@ interface UpdatePaymentIntentOptions {
226
258
  /** Query for `GET /v1/payment-intents`. */
227
259
  interface ListPaymentIntentsOptions {
228
260
  status?: PaymentIntentStatus;
261
+ /** Only intents on this chain. Omit for every chain. */
262
+ chain?: PaymentChain;
263
+ /** Only intents created at or after this instant (a Date or an ISO 8601 string). */
264
+ createdFrom?: Date | string;
229
265
  /** Page size (max 100, default 20). */
230
266
  take?: number;
231
267
  /** Offset (default 0). */
@@ -236,6 +272,8 @@ interface PaymentIntentData {
236
272
  id: string;
237
273
  kind: PaymentIntentKind;
238
274
  status: PaymentIntentStatus;
275
+ /** Chain the payment settles on (TX intents are always Stellar). Older servers omit it: Stellar. */
276
+ chain?: PaymentChain;
239
277
  network: string;
240
278
  source: string | null;
241
279
  destination: string;
@@ -350,6 +388,46 @@ interface WebhookEvent<T = PaymentIntentData> {
350
388
  createdAt: string;
351
389
  data: T;
352
390
  }
391
+ /** What each webhook event carries in `data`. */
392
+ interface WebhookEventDataMap {
393
+ PAYMENT_INTENT_CREATED: PaymentIntentData;
394
+ PAYMENT_INTENT_UPDATED: PaymentIntentData;
395
+ PAYMENT_INTENT_SUCCEEDED: PaymentIntentData;
396
+ PAYMENT_INTENT_FAILED: PaymentIntentData;
397
+ PAYMENT_INTENT_CANCELLED: PaymentIntentData;
398
+ PAYMENT_INTENT_DELETED: PaymentIntentData;
399
+ /** Identity and state only — ids, status, rails; never personal data. */
400
+ RECEIVER_UPDATED: Record<string, unknown>;
401
+ PAYIN_CREATED: Record<string, unknown>;
402
+ PAYIN_UPDATED: Record<string, unknown>;
403
+ PAYIN_COMPLETED: Record<string, unknown>;
404
+ PAYOUT_CREATED: Record<string, unknown>;
405
+ PAYOUT_UPDATED: Record<string, unknown>;
406
+ PAYOUT_COMPLETED: Record<string, unknown>;
407
+ /** A Stellar swap, or a Solana / Monad one (it carries `chain`). */
408
+ SWAP_CREATED: SwapData | ChainSwapData;
409
+ SWAP_SUBMITTED: SwapData | ChainSwapData;
410
+ SWAP_SUCCEEDED: SwapData | ChainSwapData;
411
+ SWAP_FAILED: SwapData | ChainSwapData;
412
+ LIQUIDITY_CREATED: LiquidityOperationData;
413
+ LIQUIDITY_SUBMITTED: LiquidityOperationData;
414
+ LIQUIDITY_SUCCEEDED: LiquidityOperationData;
415
+ LIQUIDITY_FAILED: LiquidityOperationData;
416
+ CROSS_CHAIN_SWAP_CREATED: CrossChainSwapData;
417
+ CROSS_CHAIN_SWAP_UPDATED: CrossChainSwapData;
418
+ CROSS_CHAIN_SWAP_SUCCEEDED: CrossChainSwapData;
419
+ CROSS_CHAIN_SWAP_REFUNDED: CrossChainSwapData;
420
+ CROSS_CHAIN_SWAP_FAILED: CrossChainSwapData;
421
+ CROSS_CHAIN_SWAP_EXPIRED: CrossChainSwapData;
422
+ }
423
+ /** One webhook event of a known type, with `data` typed for it. */
424
+ type TypedWebhookEvent<K extends keyof WebhookEventDataMap> = Omit<WebhookEvent<WebhookEventDataMap[K]>, 'type'> & {
425
+ type: K;
426
+ };
427
+ /** Any webhook event — narrow on `type` to get `data` typed. */
428
+ type AnyWebhookEvent = {
429
+ [K in keyof WebhookEventDataMap]: TypedWebhookEvent<K>;
430
+ }[keyof WebhookEventDataMap];
353
431
  /** Body for `POST /v1/products`. */
354
432
  interface CreateProductOptions {
355
433
  name: string;
@@ -513,37 +591,65 @@ interface HealthCheckData {
513
591
  status: string;
514
592
  } & Record<string, unknown>>;
515
593
  }
594
+ /**
595
+ * The chain a same-chain swap runs on. `stellar` (the default when omitted) is
596
+ * the Stellar DEX; `solana` goes through Jupiter and `monad` through Kuru Flow,
597
+ * both mainnet only.
598
+ */
599
+ type SwapChain = 'stellar' | 'solana' | 'monad';
600
+ /** The chains off Stellar, whose swaps come back as a {@link ChainSwapData}. */
601
+ type OtherSwapChain = Exclude<SwapChain, 'stellar'>;
516
602
  /** Body for `POST /v1/swaps/quote` (pricing only; no fee parameter — the fee is enforced server-side per organization). */
517
603
  interface QuoteSwapOptions {
518
- /** Amount to send, as a decimal string (max 7 decimals). */
604
+ /** Which chain to swap on. Omitted means Stellar. */
605
+ chain?: SwapChain;
606
+ /** Amount to send, as a decimal string in the asset's own units (max 7 decimals on Stellar). */
519
607
  amount: string;
520
- /** Source asset code. Omit (or `XLM`/`native`) for native lumens. */
608
+ /**
609
+ * Stellar: asset code (omit, `XLM` or `native` for lumens). Solana / Monad:
610
+ * `SOL` / `MON`, `native`, or the SPL mint / ERC-20 address.
611
+ */
521
612
  sourceAssetCode?: string;
522
- /** Issuer account for a non-native source asset. */
613
+ /** Stellar only: issuer account for a non-native source asset. */
523
614
  sourceAssetIssuer?: string;
524
- /** Destination asset code the swap should deliver. */
615
+ /** The asset the swap should deliver, spelled as for `sourceAssetCode`. */
525
616
  destAssetCode: string;
526
- /** Issuer account for a non-native destination asset. */
617
+ /** Stellar only: issuer account for a non-native destination asset. */
527
618
  destAssetIssuer?: string;
528
619
  /** Allowed slippage in basis points. */
529
620
  slippageBps?: number;
530
621
  }
531
622
  /** Body for `POST /v1/swaps`. */
532
623
  interface CreateSwapOptions extends QuoteSwapOptions {
533
- /** Source account performing the swap. A registered address-book name also works. */
624
+ /** Source account performing (and signing) the swap, on `chain`. A registered address-book name also works on Stellar. */
534
625
  source: string;
535
- /** Destination account that receives the swapped asset. Defaults to the source. */
626
+ /** Stellar only: account that receives the swapped asset. Defaults to the source. */
536
627
  destination?: string;
537
- /** MEMO_ID (numeric uint64) for idempotency + on-chain identification. */
628
+ /** Stellar only: MEMO_ID (numeric uint64) for idempotency + on-chain identification. */
538
629
  memo?: string;
630
+ /** Idempotency key (the `Idempotency-Key` header is preferred when both are set). */
631
+ idempotencyKey?: string;
539
632
  }
540
- /** Body for `POST /v1/swaps/:id/submit`. */
541
- interface SubmitSwapOptions {
542
- /** Signed transaction envelope (base64 XDR) to relay to the network. */
633
+ /**
634
+ * Body for `POST /v1/swaps/:id/submit`: `signedXdr` for a Stellar swap,
635
+ * `signedTransaction` for a Solana or Monad one.
636
+ */
637
+ type SubmitSwapOptions = {
638
+ /** Signed transaction envelope (base64 XDR) to relay to the Stellar network. */
543
639
  signedXdr: string;
544
- }
640
+ signedTransaction?: never;
641
+ } | {
642
+ /**
643
+ * Solana: base64 wire bytes of the signed VersionedTransaction. Monad: the
644
+ * `0x`-hex raw signed EIP-1559 transaction.
645
+ */
646
+ signedTransaction: string;
647
+ signedXdr?: never;
648
+ };
545
649
  /** Query for `GET /v1/swaps`. */
546
650
  interface ListSwapsOptions {
651
+ /** Which chain to list. Omitted means Stellar. */
652
+ chain?: SwapChain;
547
653
  status?: SwapStatus;
548
654
  /** Page size (max 100, default 20). */
549
655
  take?: number;
@@ -590,11 +696,16 @@ interface SwapListData {
590
696
  /** Raw pricing quote returned by `POST /v1/swaps/quote`. */
591
697
  interface SwapQuoteData {
592
698
  network: string;
699
+ /** Solana and Monad quotes only. */
700
+ chain?: OtherSwapChain;
701
+ /** The aggregator that priced a Solana or Monad swap. */
702
+ provider?: 'jupiter' | 'kuru';
593
703
  source: {
594
704
  asset: string;
595
705
  issuer: string | null;
596
706
  amount: string;
597
707
  };
708
+ /** Stellar takes the fee from the source asset; Solana and Monad from the output (`asset` says which). */
598
709
  fee: {
599
710
  asset: string;
600
711
  issuer: string | null;
@@ -628,6 +739,214 @@ interface SwapSubmitOutcomeData {
628
739
  resultCodes?: string[];
629
740
  swap: SwapData;
630
741
  }
742
+ /**
743
+ * What a Solana or Monad swap's wallet signs. Solana: an unsigned
744
+ * VersionedTransaction; Monad: a call the wallet signs as an EIP-1559
745
+ * transaction, filling in nonce and gas itself.
746
+ */
747
+ type ChainSwapTransaction = {
748
+ encoding: 'base64';
749
+ data: string;
750
+ lastValidBlockHeight?: number;
751
+ } | {
752
+ to: string;
753
+ data: string;
754
+ value: string;
755
+ chainId: number;
756
+ };
757
+ /** An EVM call the wallet sends itself (a Monad ERC-20 `approve`). */
758
+ interface EvmCallData {
759
+ to: string;
760
+ data: string;
761
+ value: string;
762
+ chainId: number;
763
+ }
764
+ /** Raw Solana or Monad swap (`chain_swap`), built by Jupiter or Kuru Flow. */
765
+ interface ChainSwapData {
766
+ id: string;
767
+ chain: OtherSwapChain;
768
+ /** Always `public`: the aggregators run on mainnet only. */
769
+ network: string;
770
+ provider: 'jupiter' | 'kuru';
771
+ status: SwapStatus;
772
+ /** The wallet that signs, pays and receives. */
773
+ source: string;
774
+ /** `native` (SOL / MON), or the SPL mint / ERC-20 address. */
775
+ sendAsset: string;
776
+ sendAmount: string;
777
+ destAsset: string;
778
+ /** Quoted output, net of the commission. */
779
+ destEstimated: string;
780
+ /** On-chain minimum after slippage. */
781
+ destMin: string;
782
+ feeBps: number;
783
+ /** The commission, in the destination asset (taken from the output). */
784
+ feeAmount: string;
785
+ slippageBps: number;
786
+ path: {
787
+ code: string;
788
+ issuer: string | null;
789
+ }[];
790
+ transaction: ChainSwapTransaction;
791
+ /** Monad, selling an ERC-20 with too small an allowance: send and confirm this first. */
792
+ approval: EvmCallData | null;
793
+ /** The Solana signature / EVM hash, once submitted. */
794
+ txHash: string | null;
795
+ idempotencyKey: string | null;
796
+ /** Submit refuses the transaction after this; build a new swap. */
797
+ expiresAt: string;
798
+ createdAt: string;
799
+ updatedAt: string;
800
+ }
801
+ /** Raw paginated list of Solana or Monad swaps. */
802
+ interface ChainSwapListData {
803
+ data: ChainSwapData[];
804
+ total: number;
805
+ take: number;
806
+ skip: number;
807
+ }
808
+ /** Raw outcome of relaying a signed Solana or Monad swap. */
809
+ interface ChainSwapSubmitOutcomeData {
810
+ submitted: boolean;
811
+ status: SwapStatus;
812
+ txHash: string;
813
+ swap: ChainSwapData;
814
+ }
815
+ /** Where a cross-chain swap stands. SUCCEEDED, REFUNDED and FAILED are final. */
816
+ declare const CrossChainSwapStatus: {
817
+ readonly AwaitingDeposit: "AWAITING_DEPOSIT";
818
+ readonly DepositDetected: "DEPOSIT_DETECTED";
819
+ readonly IncompleteDeposit: "INCOMPLETE_DEPOSIT";
820
+ readonly Processing: "PROCESSING";
821
+ readonly Succeeded: "SUCCEEDED";
822
+ readonly Refunded: "REFUNDED";
823
+ readonly Failed: "FAILED";
824
+ readonly Expired: "EXPIRED";
825
+ };
826
+ type CrossChainSwapStatus = (typeof CrossChainSwapStatus)[keyof typeof CrossChainSwapStatus];
827
+ /** A token NEAR Intents can swap on one of the supported chains. */
828
+ interface CrossChainAssetData {
829
+ chain: SwapChain;
830
+ symbol: string;
831
+ /** NEAR Intents' id for the asset. */
832
+ assetId: string;
833
+ decimals: number;
834
+ /** SPL mint, ERC-20 address or Stellar issuer; null for the native coin. */
835
+ contract: string | null;
836
+ }
837
+ /**
838
+ * Body for `POST /v1/cross-chain-swaps/quote`. Both legs on one chain is not a
839
+ * cross-chain swap — use `client.swaps` with `chain`.
840
+ */
841
+ interface QuoteCrossChainSwapOptions {
842
+ originChain: SwapChain;
843
+ /** Native ticker, a symbol listed once, a contract, or Stellar `CODE:ISSUER`. */
844
+ originAsset: string;
845
+ destinationChain: SwapChain;
846
+ destinationAsset: string;
847
+ /** Gross amount of the origin asset, in its own units. */
848
+ amount: string;
849
+ /** Who receives the output, on `destinationChain`. */
850
+ recipient: string;
851
+ /** Where a failed or late deposit is refunded, on `originChain`. */
852
+ refundTo: string;
853
+ slippageBps?: number;
854
+ }
855
+ /** Body for `POST /v1/cross-chain-swaps`. */
856
+ interface CreateCrossChainSwapOptions extends QuoteCrossChainSwapOptions {
857
+ idempotencyKey?: string;
858
+ }
859
+ /** Raw cross-chain quote. */
860
+ interface CrossChainQuoteData {
861
+ network: string;
862
+ origin: {
863
+ chain: SwapChain;
864
+ asset: string;
865
+ assetId: string;
866
+ contract: string | null;
867
+ amount: string;
868
+ amountUsd: string | null;
869
+ };
870
+ destination: {
871
+ chain: SwapChain;
872
+ asset: string;
873
+ assetId: string;
874
+ contract: string | null;
875
+ amount: string;
876
+ amountUsd: string | null;
877
+ /** Below this NEAR Intents refunds instead of filling. */
878
+ minimum: string;
879
+ };
880
+ /** The plan commission, taken by NEAR Intents out of the input. */
881
+ fee: {
882
+ bps: number;
883
+ amount: string;
884
+ asset: string;
885
+ };
886
+ slippageBps: number;
887
+ timeEstimateSeconds: number;
888
+ }
889
+ /** A settlement transaction NEAR Intents reports. */
890
+ interface CrossChainTransactionData {
891
+ hash: string;
892
+ explorerUrl: string;
893
+ }
894
+ /** Raw cross-chain swap. */
895
+ interface CrossChainSwapData {
896
+ id: string;
897
+ status: CrossChainSwapStatus;
898
+ /** NEAR Intents' own status word, verbatim. */
899
+ providerStatus: string;
900
+ network: string;
901
+ originChain: SwapChain;
902
+ originAsset: string;
903
+ originContract: string | null;
904
+ destinationChain: SwapChain;
905
+ destinationAsset: string;
906
+ destinationContract: string | null;
907
+ amountIn: string;
908
+ feeBps: number;
909
+ feeAmount: string;
910
+ amountOutEstimated: string;
911
+ amountOutMin: string;
912
+ slippageBps: number;
913
+ recipient: string;
914
+ refundTo: string;
915
+ /** Send exactly `amountIn` of the origin asset here. */
916
+ depositAddress: string;
917
+ /** Stellar only, and required: attach it as a MEMO_TEXT. */
918
+ depositMemo: string | null;
919
+ /** The deposit as a wallet link: SEP-7 pay, Solana Pay or EIP-681. */
920
+ depositUri: string;
921
+ /** QR of `depositUri` (PNG data URL); absent from list rows. */
922
+ qr?: string;
923
+ depositTxHash: string | null;
924
+ amountOut: string | null;
925
+ refundedAmount: string | null;
926
+ originTxHashes: CrossChainTransactionData[] | null;
927
+ destinationTxHashes: CrossChainTransactionData[] | null;
928
+ timeEstimateSeconds: number;
929
+ correlationId: string;
930
+ /** NEAR Intents' signature over the quote and deposit address — keep it. */
931
+ quoteSignature: string;
932
+ idempotencyKey: string | null;
933
+ expiresAt: string;
934
+ createdAt: string;
935
+ updatedAt: string;
936
+ }
937
+ /** Query for `GET /v1/cross-chain-swaps`. */
938
+ interface ListCrossChainSwapsOptions {
939
+ status?: CrossChainSwapStatus;
940
+ take?: number;
941
+ skip?: number;
942
+ }
943
+ /** Raw paginated list of cross-chain swaps. */
944
+ interface CrossChainSwapListData {
945
+ data: CrossChainSwapData[];
946
+ total: number;
947
+ take: number;
948
+ skip: number;
949
+ }
631
950
  /** Body for `POST /v1/liquidity-pools/deposit`. */
632
951
  interface DepositLiquidityOptions {
633
952
  /** Account whose funds go in, and which signs. An address-book name also works. */
@@ -1376,182 +1695,225 @@ interface WalletSignMessageData {
1376
1695
  message?: string;
1377
1696
  [key: string]: unknown;
1378
1697
  }
1379
- /** Identity providers a Pollar login can go through. */
1380
- type PollarProvider = 'google' | 'github';
1381
- /** State of a login, polled between the redirect and the token exchange. */
1382
- type PollarLoginStatus = 'pending' | 'authorized' | 'exchanging' | 'consumed' | 'failed' | 'expired';
1383
- /** A Pollar wallet, as returned alongside a session or a registration. */
1384
- interface PollarWalletData {
1385
- type: 'internal' | 'smart' | 'external';
1386
- address: string | null;
1387
- chain: 'STELLAR' | 'POLYGON' | 'SOLANA';
1388
- /** False until the reserve is funded — see {@link PollarManager.activateWallet}. */
1389
- exists_on_stellar?: boolean;
1390
- funding_mode?: 'IMMEDIATE' | 'DEFERRED';
1391
- network?: string;
1698
+ /** One status change of a payment intent — `GET /v1/payment-intents/{id}/transitions`. */
1699
+ interface PaymentIntentTransitionData {
1700
+ id: string;
1701
+ intentId: string;
1702
+ fromStatus: PaymentIntentStatus;
1703
+ toStatus: PaymentIntentStatus;
1704
+ txHash?: string | null;
1705
+ /** Who moved it: `api`, `validate`, `observer` or `system`. */
1706
+ actor: string;
1707
+ reason?: string | null;
1708
+ createdAt: string;
1392
1709
  }
1393
- /** The public half of the DPoP key a client binds its session to. */
1394
- interface PollarDpopJwk {
1395
- kty: 'EC';
1396
- crv: 'P-256';
1397
- x: string;
1398
- y: string;
1399
- }
1400
- /** The fields both login flows accept. */
1401
- interface PollarAuthorizeBaseOptions {
1402
- provider: PollarProvider;
1403
- code_challenge_method?: 'S256';
1404
- /** Binds the resulting session to a key this client holds. */
1405
- dpop_jwk?: PollarDpopJwk;
1406
- /** Shown to the user in their session list. */
1407
- device_label?: string;
1710
+ /** Query for `GET /v1/assets`. */
1711
+ interface ListRegistryAssetsOptions {
1712
+ network?: 'public' | 'testnet';
1713
+ /** Only the entries whose issuer was checked against the named organization. */
1714
+ verified?: boolean;
1408
1715
  }
1409
- /**
1410
- * Body for `POST /v1/pollar/oauth/authorize`.
1411
- *
1412
- * The code that comes back is redeemed with the `code_verifier` the challenge was
1413
- * derived from, so an intercepted code is worth nothing without the client that
1414
- * started the flow. How much that matters depends on the flow, and the type follows:
1415
- *
1416
- * - **Redirect** (`redirect_uri` set): `code_challenge` is required. The code crosses
1417
- * a browser, and the public callback hands it to whoever presents `state` — which
1418
- * is inside `authorization_url` — so the service answers `400 validation_failed`
1419
- * to a redirect-flow authorize without one.
1420
- * - **Poll** (no `redirect_uri`): the code only travels over your authenticated
1421
- * channel, so PKCE is optional. Send it anyway.
1422
- */
1423
- type PollarAuthorizeOptions = (PollarAuthorizeBaseOptions & {
1424
- /** Where the browser lands with the code. Must be allow-listed for the consumer. */
1425
- redirect_uri: string;
1426
- /** Base64url SHA-256 of the verifier held by the client. */
1427
- code_challenge: string;
1428
- }) | (PollarAuthorizeBaseOptions & {
1429
- redirect_uri?: undefined;
1430
- /** Base64url SHA-256 of the verifier held by the client. */
1431
- code_challenge?: string;
1432
- });
1433
- /** Raw authorize response — where to send the user, and what to poll. */
1434
- interface PollarAuthorizeData {
1435
- /** Correlates the login. Poll `sessions/{state}` with it. */
1436
- state: string;
1437
- /** The URL to open for the user. */
1438
- authorization_url: string;
1439
- provider: PollarProvider;
1440
- redirect_uri: string | null;
1441
- expires_at: string;
1442
- }
1443
- /** Raw polling response for a login in progress. */
1444
- interface PollarLoginSessionData {
1445
- status: PollarLoginStatus;
1446
- state: string;
1447
- /** The bridge code to redeem — present once `status` is `authorized`. */
1448
- code?: string;
1449
- code_expires_at?: string | null;
1450
- error_code?: string | null;
1451
- }
1452
- /** Body for `POST /v1/pollar/oauth/token`. */
1453
- interface PollarTokenOptions {
1454
- /** The bridge code collected from the polled session. */
1716
+ /** One `(code, issuer)` pair the server vouches for — or lists, unverified. */
1717
+ interface RegistryAssetData {
1455
1718
  code: string;
1456
- /** The PKCE verifier the challenge was derived from. Required when `authorize` sent a `code_challenge`. */
1457
- code_verifier?: string;
1719
+ /** Issuing account, or `null` for native XLM. */
1720
+ issuer: string | null;
1721
+ name: string;
1722
+ /** Who issues it, for display next to the code. */
1723
+ issuerName: string;
1724
+ /** The issuer's own on-chain `home_domain`, or empty when it publishes none. */
1725
+ issuerDomain: string;
1726
+ /** The issuing account was checked against `issuerName` — identity, not quality. */
1727
+ verified: boolean;
1728
+ /** Stellar Asset Contract id, when wrapped for Soroban. */
1729
+ contract: string | null;
1730
+ flags: {
1731
+ authRevocable: boolean;
1732
+ clawback: boolean;
1733
+ };
1458
1734
  }
1459
- /** A user profile as Pollar knows it. */
1460
- interface PollarProfileData {
1461
- email?: string;
1462
- first_name?: string;
1463
- last_name?: string;
1464
- avatar?: string;
1465
- [key: string]: unknown;
1735
+ /** Raw `GET /v1/assets` response. */
1736
+ interface AssetRegistryData {
1737
+ network: 'public' | 'testnet';
1738
+ /** Monotonic registry version: compare it against a bundled copy. */
1739
+ version: number;
1740
+ data: RegistryAssetData[];
1466
1741
  }
1467
- /** Raw Pollar session — the tokens, the wallets and the profile. */
1468
- interface PollarSessionData {
1469
- access_token: string;
1470
- refresh_token?: string;
1471
- token_type?: 'Bearer' | 'DPoP';
1472
- /** Unix seconds. */
1473
- expires_at?: number;
1474
- user_id?: string | null;
1475
- /** The primary wallet; `wallets` carries the rest. */
1476
- wallet?: PollarWalletData;
1477
- wallets?: PollarWalletData[];
1478
- profile?: PollarProfileData;
1479
- }
1480
- /** Body for `POST /v1/pollar/oauth/refresh`. */
1481
- interface PollarRefreshOptions {
1482
- refresh_token: string;
1483
- }
1484
- /** Raw rotated token pair. */
1485
- interface PollarRefreshData {
1486
- access_token: string;
1487
- refresh_token?: string;
1488
- token_type?: 'Bearer';
1489
- expires_at?: number;
1490
- }
1491
- /** Body for `POST /v1/pollar/oauth/logout`. */
1492
- interface PollarLogoutOptions {
1493
- access_token: string;
1494
- /** Revoke every device, not just this one. */
1495
- everywhere?: boolean;
1496
- }
1497
- /** How many sessions the logout revoked. */
1498
- interface PollarLogoutData {
1499
- revoked: number;
1500
- }
1501
- /** Body for `POST /v1/pollar/wallets/activate`. */
1502
- interface ActivatePollarWalletOptions {
1503
- public_key: string;
1504
- }
1505
- /** Raw activation result — the reserve that was funded. */
1506
- interface PollarActivationData {
1507
- public_key: string;
1508
- /** XLM sent to cover the base reserve. */
1509
- amount: string;
1510
- activated: boolean;
1742
+ type AliasChallengePurpose = 'CLAIM' | 'ADD_ADDRESS' | 'RECOVER';
1743
+ /** One verified address an alias points at. */
1744
+ interface AliasAddressData {
1745
+ id: string;
1746
+ address: string;
1747
+ network: string;
1748
+ label?: string | null;
1749
+ /** The default for this network. */
1750
+ isPrimary: boolean;
1751
+ /** When this address proved control of itself. */
1752
+ verifiedAt: string;
1753
+ }
1754
+ /** `GET /v1/aliases/resolve/{name}` — where to pay a handle. */
1755
+ interface AliasResolutionData {
1756
+ name: string;
1757
+ displayName: string;
1758
+ /** Every verified address on the requested network, primary first. */
1759
+ addresses: AliasAddressData[];
1760
+ /** The address to pay when the payer did not choose one. */
1761
+ primaryAddress?: string | null;
1762
+ }
1763
+ /** `GET /v1/aliases/availability/{name}`. */
1764
+ interface AliasAvailabilityData {
1765
+ name: string;
1766
+ available: boolean;
1767
+ /** Why not, when unavailable: `taken`, `reserved`, `bad_characters`, … */
1768
+ reason?: string | null;
1511
1769
  }
1512
- /** One asset to enable on a wallet. */
1513
- interface PollarTrustlineAsset {
1514
- code: string;
1515
- issuer: string;
1770
+ /** `GET /v1/aliases/by-address/{address}`. */
1771
+ interface AliasByAddressData {
1772
+ data: {
1773
+ name: string;
1774
+ displayName: string;
1775
+ network: string;
1776
+ isPrimary: boolean;
1777
+ }[];
1516
1778
  }
1517
- /** Body for `POST /v1/pollar/wallets/:address/trustlines`. */
1518
- interface PollarTrustlinesOptions {
1519
- assets: PollarTrustlineAsset[];
1779
+ /** Body for `POST /v1/aliases/challenges`. */
1780
+ interface CreateAliasChallengeOptions {
1781
+ /** The handle being claimed. */
1782
+ name: string;
1783
+ address: string;
1784
+ /** Network id: `public`, `testnet`, or a custom id. */
1785
+ network: string;
1786
+ purpose?: AliasChallengePurpose;
1787
+ }
1788
+ /** A nonce to sign — `POST /v1/aliases/challenges`. */
1789
+ interface AliasChallengeData {
1790
+ nonce: string;
1791
+ /** The EXACT string to digest and sign. Sign this, never a string you rebuilt. */
1792
+ message: string;
1793
+ /** Domain tag the digest is framed with. */
1794
+ domain: string;
1795
+ purpose: AliasChallengePurpose;
1796
+ expiresAt: string;
1797
+ }
1798
+ /** Body for `POST /v1/aliases`. */
1799
+ interface ClaimAliasOptions {
1800
+ name: string;
1801
+ /** Recovery mailbox — required at claim time. */
1802
+ email: string;
1803
+ /** The nonce from a CLAIM challenge. */
1804
+ nonce: string;
1805
+ /** base64 ed25519 over the challenge digest. */
1806
+ signature: string;
1807
+ /** Human label for this first address. */
1808
+ label?: string;
1809
+ }
1810
+ /** Body for `POST /v1/aliases/{name}/addresses`. */
1811
+ interface AddAliasAddressOptions {
1812
+ address: string;
1813
+ network: string;
1814
+ /** The nonce from an ADD_ADDRESS challenge. */
1815
+ nonce: string;
1816
+ signature: string;
1817
+ label?: string;
1818
+ /** Make this the address a payer gets when they do not ask for one. */
1819
+ primary?: boolean;
1820
+ }
1821
+ /** Body for `POST /v1/aliases/{name}/recovery/complete`. */
1822
+ interface CompleteAliasRecoveryOptions {
1823
+ /** The token delivered by email. */
1824
+ token: string;
1825
+ /** The address that will own the alias from now on. */
1826
+ address: string;
1827
+ network: string;
1828
+ /** The nonce from a RECOVER challenge. */
1829
+ nonce: string;
1830
+ signature: string;
1520
1831
  }
1521
- /** Raw trustline result — a status code for the operation. */
1522
- interface PollarTrustlineData {
1523
- code: string;
1524
- [key: string]: unknown;
1832
+ /** An alias the caller owns. */
1833
+ interface OwnedAliasData {
1834
+ id: string;
1835
+ /** Normalized handle — the form uniqueness is decided on. */
1836
+ name: string;
1837
+ /** As the claimant typed it. Display only. */
1838
+ displayName: string;
1839
+ status: 'ACTIVE' | 'SUSPENDED';
1840
+ addresses: AliasAddressData[];
1841
+ createdAt: string;
1842
+ email: string;
1843
+ emailVerifiedAt?: string | null;
1525
1844
  }
1526
- /** Body for `POST /v1/pollar/users` and `/users/with-wallet`. */
1527
- interface RegisterPollarUserOptions {
1528
- /** Your own id for this user — how you find them again. */
1529
- external_id: string;
1530
- email?: string;
1531
- first_name?: string;
1532
- last_name?: string;
1533
- avatar?: string;
1845
+ /** Raw `GET /v1/aliases` page. */
1846
+ interface AliasListData {
1847
+ data: OwnedAliasData[];
1848
+ total: number;
1849
+ take: number;
1850
+ skip: number;
1534
1851
  }
1535
- /** Raw registration result. */
1536
- interface PollarUserData {
1537
- external_id: string;
1538
- code: 'SERVER_USER_REGISTERED' | 'SERVER_USER_WALLET_CREATED';
1539
- user_id: string | null;
1540
- wallet?: PollarWalletData;
1852
+ /** `DELETE` answers for aliases and alias addresses. */
1853
+ interface AliasDeletedData {
1854
+ id: string;
1855
+ deleted: boolean;
1541
1856
  }
1542
- /** Body for `POST /v1/pollar/tokens/verify`. */
1543
- interface VerifyPollarTokenOptions {
1544
- token: string;
1857
+ /** Answer of `POST /v1/aliases/:name/recovery` — the same whether or not the mailbox matches. */
1858
+ interface AliasRecoveryStartedData {
1859
+ accepted: boolean;
1545
1860
  }
1546
- /** Raw verification result — who the token belongs to, and until when. */
1547
- interface PollarTokenVerificationData {
1548
- user_id: string;
1549
- application_id: string;
1550
- /** Unix seconds. */
1551
- expires_at: number;
1552
- network?: string;
1553
- auth_provider?: string;
1554
- wallet?: PollarWalletData;
1861
+ /** The shared public API key an open-source wallet embeds, per environment. */
1862
+ interface PublicKeyData {
1863
+ env: 'dev' | 'prod';
1864
+ apiKey: string;
1865
+ }
1866
+ /** A plugin this deployment serves, and this consumer's installation of it. */
1867
+ interface PluginData {
1868
+ slug: string;
1869
+ name: string;
1870
+ version: string;
1871
+ description: string;
1872
+ author: string;
1873
+ /** What the plugin may do; installing is consenting to exactly this list. */
1874
+ capabilities: string[];
1875
+ /** Hosts the plugin may call out to. */
1876
+ egress: string[];
1877
+ config: Record<string, unknown>;
1878
+ queries: unknown[];
1879
+ commands: unknown[];
1880
+ events: unknown[];
1881
+ /** Null when this consumer has not installed it. */
1882
+ installation: Record<string, unknown> | null;
1883
+ }
1884
+ interface PluginListData {
1885
+ data: PluginData[];
1886
+ }
1887
+ /** Body for `PUT /v1/plugins/:slug/installation`. */
1888
+ interface InstallPluginOptions {
1889
+ /** Exactly the capabilities the plugin declares — consent is all or nothing. */
1890
+ grantCapabilities: string[];
1891
+ config?: Record<string, unknown>;
1892
+ }
1893
+ interface PluginUninstalledData {
1894
+ slug: string;
1895
+ uninstalled: boolean;
1896
+ }
1897
+ /** Result of a plugin query or command. */
1898
+ interface PluginActionResultData<T = unknown> {
1899
+ plugin: string;
1900
+ action: string;
1901
+ output: T;
1902
+ }
1903
+ /** Body for `POST /v1/defindex/vaults/:vault/deposit`. */
1904
+ interface DefindexDepositOptions {
1905
+ /** One amount per vault asset, in its base units. */
1906
+ amounts: string[];
1907
+ /** The account that signs. */
1908
+ caller: string;
1909
+ invest?: boolean;
1910
+ slippageBps?: number;
1911
+ }
1912
+ /** Body for `POST /v1/defindex/vaults/:vault/withdraw`. */
1913
+ interface DefindexWithdrawOptions {
1914
+ shares: string;
1915
+ caller: string;
1916
+ slippageBps?: number;
1555
1917
  }
1556
1918
 
1557
1919
  /**
@@ -1694,4 +2056,5 @@ interface ResolvableIntentInput {
1694
2056
  */
1695
2057
  declare function resolveIntentBody<T extends ResolvableIntentInput>(options: T, book?: AddressBook): Omit<T, 'asset'>;
1696
2058
 
1697
- export { type CreateReceiverOptions as $, type AnalyticsSummaryData as A, type BrowseLiquidityPoolsOptions as B, type CustomerData as C, type DepositLiquidityOptions as D, type ListActivityOptions as E, type ActivityListData as F, type ActivitySummaryData as G, type HealthCheckData as H, type ReceiverData as I, type UpdateReceiverOptions as J, type ApproveReceiverOptions as K, type LiquidityOperationData as L, type RequestTosOptions as M, type TermsOfServiceData as N, type EnableReceiverOptions as O, type PayinQuoteData as P, type CreateReceiverWalletOptions as Q, type ReportActivityOptions as R, type SubmitLiquidityOptions as S, type TrustlineData as T, type UpdateCustomerOptions as U, type VirtualAccountData as V, type WebhookLogsData as W, type ReceiverWalletData as X, type ListKycOptions as Y, type CreateBankAccountOptions as Z, type BankAccountData as _, type AnalyticsBalancesData as a, type AnalyticsVolumeEntry as a$, type SetReceiverAccessOptions as a0, type WalletSignMessageData as a1, type KycUploadData as a2, type InitiateTosOptions as a3, type KycRailsData as a4, type BankDetailsData as a5, type PollarAuthorizeOptions as a6, type PollarAuthorizeData as a7, type PollarLoginSessionData as a8, type PollarTokenOptions as a9, type CreateProductOptions as aA, type SwapData as aB, SwapStatus as aC, type SubmitSwapOptions as aD, type QuoteSwapOptions as aE, type SwapQuoteData as aF, type CreateSwapOptions as aG, type ListSwapsOptions as aH, type WebhookDeliveryData as aI, WebhookEventType as aJ, WebhookDeliveryStatus as aK, type WebhookEndpointData as aL, type WebhookEndpointWithSecretData as aM, type UpdateWebhookEndpointOptions as aN, type WebhookPingData as aO, type ListWebhookDeliveriesOptions as aP, type WebhookEvent as aQ, type CreateWebhookEndpointOptions as aR, type ActivityBucket as aS, type ActivityEventData as aT, type ActivityLevel as aU, type ActivitySource as aV, AddressBook as aW, type AddressRef as aX, type AnalyticsBalanceEntry as aY, type AnalyticsRecentRow as aZ, type AnalyticsSeriesPoint as a_, type PollarSessionData as aa, type PollarRefreshOptions as ab, type PollarRefreshData as ac, type PollarLogoutOptions as ad, type PollarLogoutData as ae, type VerifyPollarTokenOptions as af, type PollarTokenVerificationData as ag, type ActivatePollarWalletOptions as ah, type PollarActivationData as ai, type PollarTrustlineData as aj, type PollarTrustlinesOptions as ak, type RegisterPollarUserOptions as al, type PollarUserData as am, type PaymentIntentData as an, PaymentIntentKind as ao, PaymentIntentStatus as ap, type UpdatePaymentIntentOptions as aq, type DeletedData as ar, type ValidationOutcomeData as as, type CreateTxPaymentIntentOptions as at, type CreatePayPaymentIntentOptions as au, type ListPaymentIntentsOptions as av, type ValidatePaymentIntentOptions as aw, type ProductData as ax, ProductKind as ay, type UpdateProductOptions as az, type ApiLogsData as b, type ApiLogRow as b0, type AssetDefinition as b1, type AssetRef as b2, Assets as b3, type BankAccountListData as b4, type BankRail as b5, type BankingPartner as b6, CosmosPayAPIError as b7, CosmosPayRequestError as b8, type CurrencyType as b9, type ReceiverWalletNetwork as bA, type ResolvableIntentInput as bB, type ResolvedAsset as bC, type SwapListData as bD, type SwapSubmitOutcomeData as bE, TestnetAssets as bF, type WalletId as bG, Wallets as bH, type WebhookDeliveryListData as bI, type WebhookLogRow as bJ, addresses as bK, assertAddress as bL, defineAsset as bM, isAddress as bN, isContractAddress as bO, isMuxedAddress as bP, isNativeAsset as bQ, isStellarAddress as bR, resolveAddress as bS, resolveAsset as bT, resolveIntentBody as bU, type CustomerListData as ba, type KycType as bb, type LiquidityOperationListData as bc, type LiquidityPoolListData as bd, type LiquidityPositionData as be, type LiquidityReserveData as bf, type LiquiditySubmitOutcomeData as bg, type PayinListData as bh, type PayinMethod as bi, type PayinPayerRules as bj, type PaymentIntentListData as bk, type PayoutChain as bl, type PayoutListData as bm, type PayoutNetwork as bn, type PollarAuthorizeBaseOptions as bo, type PollarDpopJwk as bp, type PollarLoginStatus as bq, type PollarProfileData as br, type PollarProvider as bs, type PollarTrustlineAsset as bt, type PollarWalletData as bu, type RampToken as bv, type ReceiverListData as bw, type ReceiverOwner as bx, type ReceiverType as by, type ReceiverWalletListData as bz, type CreateCustomerOptions as c, LiquidityOperationKind as d, LiquidityOperationStatus as e, type WithdrawLiquidityOptions as f, type LiquidityPositionsData as g, type LiquidityPoolData as h, type ListLiquidityOperationsOptions as i, type CreatePayinQuoteOptions as j, type CreatePayinOptions as k, type PayinData as l, type ListPayinsOptions as m, type CreateTrustlineOptions as n, type CreateVirtualAccountOptions as o, type CreatePayoutQuoteOptions as p, type PayoutQuoteData as q, type AuthorizePayoutOptions as r, type AuthorizePayoutData as s, type CreatePayoutOptions as t, type PayoutData as u, type ListPayoutsOptions as v, type AttachPayoutDocumentOptions as w, type PayoutDocumentData as x, type ActivityEventInput as y, type ActivityReportData as z };
2059
+ export { PaymentIntentKind as aC, PaymentIntentStatus as aD, ProductKind as aO, SwapStatus as aT, CrossChainSwapStatus as am, TestnetAssets as b$, WebhookEventType as b1, WebhookDeliveryStatus as b2, AddressBook as bh, Assets as br, CosmosPayAPIError as bx, CosmosPayRequestError as by, Wallets as c1, addresses as c4, assertAddress as c5, defineAsset as c6, isAddress as c7, isContractAddress as c8, isMuxedAddress as c9, isNativeAsset as ca, isStellarAddress as cb, resolveAddress as cc, resolveAsset as cd, resolveIntentBody as ce, LiquidityOperationKind as r, LiquidityOperationStatus as s };
2060
+ export type { ActivityReportData as $, AliasResolutionData as A, BrowseLiquidityPoolsOptions as B, CreateAliasChallengeOptions as C, DepositLiquidityOptions as D, ListPayinsOptions as E, CreateTrustlineOptions as F, CreateVirtualAccountOptions as G, HealthCheckData as H, CreatePayoutQuoteOptions as I, PayoutQuoteData as J, AuthorizePayoutOptions as K, ListRegistryAssetsOptions as L, AuthorizePayoutData as M, CreatePayoutOptions as N, OwnedAliasData as O, PayinQuoteData as P, PayoutData as Q, ListPayoutsOptions as R, SubmitLiquidityOptions as S, TrustlineData as T, UpdateCustomerOptions as U, VirtualAccountData as V, WebhookLogsData as W, AttachPayoutDocumentOptions as X, PayoutDocumentData as Y, ActivityEventInput as Z, ReportActivityOptions as _, AliasAvailabilityData as a, SubmitSwapOptions as a$, ListActivityOptions as a0, ActivityListData as a1, ActivitySummaryData as a2, ReceiverData as a3, UpdateReceiverOptions as a4, ApproveReceiverOptions as a5, RequestTosOptions as a6, TermsOfServiceData as a7, EnableReceiverOptions as a8, CreateReceiverWalletOptions as a9, PublicKeyData as aA, PaymentIntentData as aB, PaymentChain as aE, UpdatePaymentIntentOptions as aF, DeletedData as aG, ValidationOutcomeData as aH, CreateTxPaymentIntentOptions as aI, CreatePayPaymentIntentOptions as aJ, PaymentIntentTransitionData as aK, ListPaymentIntentsOptions as aL, ValidatePaymentIntentOptions as aM, ProductData as aN, UpdateProductOptions as aP, CreateProductOptions as aQ, ChainSwapData as aR, OtherSwapChain as aS, ChainSwapTransaction as aU, EvmCallData as aV, SwapData as aW, QuoteSwapOptions as aX, SwapQuoteData as aY, CreateSwapOptions as aZ, ListSwapsOptions as a_, ReceiverWalletData as aa, ListKycOptions as ab, CreateBankAccountOptions as ac, BankAccountData as ad, CreateReceiverOptions as ae, SetReceiverAccessOptions as af, WalletSignMessageData as ag, KycUploadData as ah, InitiateTosOptions as ai, KycRailsData as aj, BankDetailsData as ak, CrossChainSwapData as al, SwapChain as an, CrossChainTransactionData as ao, CrossChainAssetData as ap, QuoteCrossChainSwapOptions as aq, CrossChainQuoteData as ar, CreateCrossChainSwapOptions as as, ListCrossChainSwapsOptions as at, DefindexDepositOptions as au, DefindexWithdrawOptions as av, PluginData as aw, InstallPluginOptions as ax, PluginUninstalledData as ay, PluginActionResultData as az, AliasByAddressData as b, WebhookDeliveryData as b0, WebhookEndpointData as b3, WebhookEndpointWithSecretData as b4, UpdateWebhookEndpointOptions as b5, WebhookPingData as b6, ListWebhookDeliveriesOptions as b7, AnyWebhookEvent as b8, WebhookEventDataMap as b9, CurrencyType as bA, CustomerListData as bB, KycType as bC, LiquidityOperationListData as bD, LiquidityPoolListData as bE, LiquidityPositionData as bF, LiquidityReserveData as bG, LiquiditySubmitOutcomeData as bH, PayinListData as bI, PayinMethod as bJ, PayinPayerRules as bK, PaymentIntentListData as bL, PayoutChain as bM, PayoutListData as bN, PayoutNetwork as bO, PluginListData as bP, RampToken as bQ, ReceiverListData as bR, ReceiverOwner as bS, ReceiverType as bT, ReceiverWalletListData as bU, ReceiverWalletNetwork as bV, RegistryAssetData as bW, ResolvableIntentInput as bX, ResolvedAsset as bY, SwapListData as bZ, SwapSubmitOutcomeData as b_, TypedWebhookEvent as ba, CreateWebhookEndpointOptions as bb, WebhookEvent as bc, ActivityBucket as bd, ActivityEventData as be, ActivityLevel as bf, ActivitySource as bg, AddressRef as bi, AliasChallengePurpose as bj, AnalyticsBalanceEntry as bk, AnalyticsRecentRow as bl, AnalyticsSeriesPoint as bm, AnalyticsVolumeEntry as bn, ApiLogRow as bo, AssetDefinition as bp, AssetRef as bq, BankAccountListData as bs, BankRail as bt, BankingPartner as bu, ChainSwapListData as bv, ChainSwapSubmitOutcomeData as bw, CrossChainSwapListData as bz, AliasChallengeData as c, WalletId as c0, WebhookDeliveryListData as c2, WebhookLogRow as c3, ClaimAliasOptions as d, AliasListData as e, AddAliasAddressOptions as f, AliasAddressData as g, AliasDeletedData as h, AliasRecoveryStartedData as i, CompleteAliasRecoveryOptions as j, AnalyticsSummaryData as k, AnalyticsBalancesData as l, ApiLogsData as m, AssetRegistryData as n, CustomerData as o, CreateCustomerOptions as p, LiquidityOperationData as q, WithdrawLiquidityOptions as t, LiquidityPositionsData as u, LiquidityPoolData as v, ListLiquidityOperationsOptions as w, CreatePayinQuoteOptions as x, CreatePayinOptions as y, PayinData as z };