@relayprotocol/relay-sdk 8.0.3 → 8.0.5

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.
Files changed (37) hide show
  1. package/_cjs/src/constants/address.js +12 -2
  2. package/_cjs/src/constants/address.js.map +1 -1
  3. package/_cjs/src/routes/index.js +8 -4
  4. package/_cjs/src/routes/index.js.map +1 -1
  5. package/_cjs/src/types/RelayChain.js.map +1 -1
  6. package/_cjs/src/types/api.js.map +1 -1
  7. package/_cjs/src/utils/viemWallet.js +3 -0
  8. package/_cjs/src/utils/viemWallet.js.map +1 -1
  9. package/_cjs/src/version.js +1 -1
  10. package/_cjs/src/version.js.map +1 -1
  11. package/_cjs/tsconfig.build.tsbuildinfo +1 -1
  12. package/_esm/src/constants/address.js +12 -1
  13. package/_esm/src/constants/address.js.map +1 -1
  14. package/_esm/src/routes/index.js +8 -4
  15. package/_esm/src/routes/index.js.map +1 -1
  16. package/_esm/src/types/RelayChain.js.map +1 -1
  17. package/_esm/src/types/api.js.map +1 -1
  18. package/_esm/src/utils/viemWallet.js +5 -1
  19. package/_esm/src/utils/viemWallet.js.map +1 -1
  20. package/_esm/src/version.js +1 -1
  21. package/_esm/src/version.js.map +1 -1
  22. package/_esm/tsconfig.build.tsbuildinfo +1 -1
  23. package/_types/src/constants/address.d.ts +3 -1
  24. package/_types/src/constants/address.d.ts.map +1 -1
  25. package/_types/src/routes/index.d.ts.map +1 -1
  26. package/_types/src/types/RelayChain.d.ts +1 -1
  27. package/_types/src/types/RelayChain.d.ts.map +1 -1
  28. package/_types/src/types/api.d.ts +831 -479
  29. package/_types/src/types/api.d.ts.map +1 -1
  30. package/_types/src/utils/executeSteps/index.d.ts +1 -1
  31. package/_types/src/utils/executeSteps/index.d.ts.map +1 -1
  32. package/_types/src/utils/request.d.ts +1 -1
  33. package/_types/src/utils/request.d.ts.map +1 -1
  34. package/_types/src/utils/viemWallet.d.ts.map +1 -1
  35. package/_types/src/version.d.ts +1 -1
  36. package/_types/tsconfig.build.tsbuildinfo +1 -1
  37. package/package.json +5 -4
@@ -204,29 +204,36 @@ export interface paths {
204
204
  };
205
205
  };
206
206
  };
207
- "/balance-events/{wallet}": {
207
+ "/balance/{wallet}/events": {
208
+ /** @description Balance movements for one wallet: fee sponsorship, fixed-rate settlement, fee credits, deposits and withdrawals. A wallet linked to your integrator returns its full ledger with running balances; any other wallet returns the events your integrator caused on it, plus deposits and settled withdrawals, which are public on-chain. For current balances rather than history, use /app-fees/:wallet/balances. */
208
209
  get: {
209
210
  parameters: {
210
- query: {
211
- /** @description Temporary shared secret required to access this endpoint */
212
- id: string;
213
- /** @description Restrict to one chain */
211
+ query?: {
212
+ /** @description Return only events belonging to this request. */
213
+ requestId?: string;
214
+ /** @description Comma-separated request ids, at most 20 per call. Use a type and time range instead for a reconciliation sweep. */
215
+ requestIds?: string;
216
+ /** @description Comma-separated event types to filter by. Events matching any of the given types are returned. Omit for all. Supported values: fee-credit, fee-sponsorship-payment, fee-sponsorship-refund, gasless-refund, balance-withdraw, balance-deposit, gas-sponsorship-payment, fixed-rate-credit, fixed-rate-debit, fixed-bps-pnl, fast-fill-hold, fast-fill-release, admin-manual-adjustment. */
217
+ type?: string;
218
+ /** @description Restrict to one chain. */
214
219
  chainId?: number | null;
215
- /** @description Restrict to one currency (use chainId for non-EVM) */
220
+ /** @description Restrict to one currency. Pair with `chainId` for non-EVM currencies. */
216
221
  currency?: string | null;
217
- /** @description Restrict to one balance update context */
218
- context?: "set-pending-amount" | "unset-pending-amount" | "reset-pending-amount" | "pay-fees" | "claim" | "fast-fill-reduce-balance" | "fast-fill-increase-balance" | "balance-topup" | "execute-transaction-request" | "fixed-rate-accounting" | "integrator-fixed-bps-accounting" | "admin-manual-adjustment" | null;
219
- /** @description Restrict to a specific request id */
220
- requestId?: string | null;
221
- /** @description Page size for events (max 250, default 50) */
222
+ /** @description Only events created at or after this unix timestamp, in seconds. */
223
+ startTimestamp?: number | null;
224
+ /** @description Only events created at or before this unix timestamp, in seconds. */
225
+ endTimestamp?: number | null;
226
+ /** @description Maximum number of events to return per page. */
222
227
  limit?: number | null;
223
- /** @description Pagination cursor: the `id` of the last event from the previous page */
224
- cursor?: string | null;
225
- /** @description Include rows where the current balance is <= 0 (default true) */
226
- includeNegativeBalances?: boolean | null;
228
+ /** @description Pagination cursor returned by a previous response. Pass it back to fetch the next page. */
229
+ continuation?: string | null;
230
+ };
231
+ header?: {
232
+ /** @description API key. Required. */
233
+ "x-api-key"?: string;
227
234
  };
228
235
  path: {
229
- /** @description Wallet address (EVM/SVM/BVM auto-detected) */
236
+ /** @description Wallet address. A wallet linked to your integrator returns its full ledger; any other returns the events your integrator caused on it, plus deposits and settled withdrawals, which are public on-chain. */
230
237
  wallet: string;
231
238
  };
232
239
  };
@@ -236,21 +243,70 @@ export interface paths {
236
243
  content: {
237
244
  "application/json": {
238
245
  wallet?: string;
239
- balances?: {
240
- chainId?: number;
241
- currency?: string;
242
- amount?: string;
243
- }[];
244
246
  events?: ({
245
- id?: number;
246
- chainId?: number;
247
- wallet?: string;
248
- currency?: string;
249
- delta?: string;
250
- balanceAfter?: string;
251
- context?: string;
247
+ /** @description Event identifier. Also the pagination cursor value. */
248
+ id?: string;
249
+ /** @enum {string} */
250
+ type?: "fee-credit" | "fee-sponsorship-payment" | "fee-sponsorship-refund" | "gasless-refund" | "balance-withdraw" | "balance-deposit" | "gas-sponsorship-payment" | "fixed-rate-credit" | "fixed-rate-debit" | "fixed-bps-pnl" | "fast-fill-hold" | "fast-fill-release" | "admin-manual-adjustment";
251
+ /** @description The request this event belongs to. Null for events that are not request-scoped, such as deposits and withdrawals. */
252
252
  requestId?: string | null;
253
- contextData?: unknown;
253
+ wallet?: string;
254
+ /** @description Signed change to the balance. Negative amounts are debits. */
255
+ delta?: {
256
+ currency?: {
257
+ chainId?: number;
258
+ address?: string;
259
+ symbol?: string;
260
+ name?: string;
261
+ decimals?: number;
262
+ metadata?: {
263
+ logoURI?: string;
264
+ verified?: boolean;
265
+ isNative?: boolean;
266
+ };
267
+ };
268
+ amount?: string;
269
+ amountFormatted?: string;
270
+ amountUsd?: string;
271
+ };
272
+ /** @description Balance after this event. Returned only for a wallet linked to your integrator, where the whole ledger is visible and the running balance reconciles. */
273
+ balanceAfter?: {
274
+ currency?: {
275
+ chainId?: number;
276
+ address?: string;
277
+ symbol?: string;
278
+ name?: string;
279
+ decimals?: number;
280
+ metadata?: {
281
+ logoURI?: string;
282
+ verified?: boolean;
283
+ isNative?: boolean;
284
+ };
285
+ };
286
+ amount?: string;
287
+ amountFormatted?: string;
288
+ amountUsd?: string;
289
+ } | null;
290
+ /** @description Type-specific context. Present only where the event carries it; absent on rows written before the field existed. */
291
+ details?: ({
292
+ /** @description Withdrawal identifier. Present on `balance-withdraw` events only. */
293
+ claimId?: string | null;
294
+ /** @description The fixed rate the request was quoted at, e.g. `1:1`. */
295
+ fixedRate?: string | null;
296
+ currencyIn?: {
297
+ chainId?: number;
298
+ address?: string;
299
+ } | null;
300
+ currencyOut?: {
301
+ chainId?: number;
302
+ address?: string;
303
+ } | null;
304
+ currencyOutAmount?: string | null;
305
+ /** @description What the output would have been at market. The settled delta is the difference between this and the amount delivered at the fixed rate. */
306
+ marketAmountOut?: string | null;
307
+ /** @description Requests covered by an event that spans more than one, such as a fast-fill write-off. */
308
+ requestIds?: string[] | null;
309
+ }) | null;
254
310
  createdAt?: string;
255
311
  })[];
256
312
  continuation?: string | null;
@@ -273,6 +329,14 @@ export interface paths {
273
329
  };
274
330
  };
275
331
  };
332
+ /** @description Default Response */
333
+ 403: {
334
+ content: {
335
+ "application/json": {
336
+ message?: string;
337
+ };
338
+ };
339
+ };
276
340
  };
277
341
  };
278
342
  };
@@ -308,6 +372,8 @@ export interface paths {
308
372
  } | null;
309
373
  /** @description If the network supports depositing to this chain, e.g. allows this chain to be set as the destination chain */
310
374
  depositEnabled?: boolean;
375
+ /** @description If any token on this chain can be a deposit-address input. Routes still require a quote. */
376
+ depositAddressEnabled?: boolean;
311
377
  /** @enum {string} */
312
378
  tokenSupport?: "All" | "Limited";
313
379
  /** @description If relaying to and from this chain is disabled */
@@ -387,12 +453,17 @@ export interface paths {
387
453
  erc20Router?: string;
388
454
  approvalProxy?: string;
389
455
  };
456
+ /** @description RelayRouter 3.2 and its approval proxy. Relay routes through them on a chain when erc20Router and approvalProxy show these addresses */
457
+ "v3.2"?: {
458
+ erc20Router?: string;
459
+ approvalProxy?: string;
460
+ };
390
461
  };
391
462
  /**
392
463
  * @description The type of VM the chain runs on
393
464
  * @enum {string}
394
465
  */
395
- vmType?: "bvm" | "evm" | "svm" | "tvm" | "tonvm" | "hypevm" | "lvm" | "xrpvm" | "hederavm";
466
+ vmType?: "bvm" | "evm" | "svm" | "tvm" | "tonvm" | "hypevm" | "lvm" | "xrpvm" | "hederavm" | "atlasvm";
396
467
  explorerQueryParams?: {
397
468
  [key: string]: unknown;
398
469
  } | null;
@@ -511,7 +582,10 @@ export interface paths {
511
582
  /** @description How much of the given currency is available to be bridged per bridge request. Denoted in wei */
512
583
  capacityPerRequest?: string;
513
584
  };
514
- /** @description This denotes if the chain combination supports canonical plus bridging */
585
+ /**
586
+ * @deprecated
587
+ * @description Deprecated: canonical plus bridging has been removed, so this is always false
588
+ */
515
589
  supportsExternalLiquidity?: boolean;
516
590
  };
517
591
  };
@@ -528,7 +602,7 @@ export interface paths {
528
602
  /** @description User address, when supplied returns user balance and max bridge amount */
529
603
  user?: string;
530
604
  /** @description Restricts the user balance and capacity to a particular currency when supplied with a currency id. Defaults to the native currency of the destination chain. */
531
- currency?: "anime" | "btc" | "cgt" | "dai" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "ape" | "g7" | "pengu" | "plume" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "musd" | "usdm" | "pyusd" | "cash" | "eusd" | "pusd" | "bnb" | "usdg" | "pathusd" | "ausd" | "usdc.e-cronos";
605
+ currency?: "anime" | "btc" | "kbtc" | "cirbtc" | "cgt" | "dai" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "ape" | "g7" | "pengu" | "plume" | "plumeusd" | "gun" | "somi" | "xpl" | "usde" | "mon" | "musd" | "usdm" | "pyusd" | "cash" | "eusd" | "pusd" | "bnb" | "usdg" | "pathusd" | "ausd" | "ousd" | "usdc.e-cronos";
532
606
  };
533
607
  };
534
608
  responses: {
@@ -552,7 +626,10 @@ export interface paths {
552
626
  /** @description How much of the given currency is available to be bridged per bridge request. Denoted in wei */
553
627
  capacityPerRequest?: string;
554
628
  };
555
- /** @description This denotes if the chain combination supports canonical plus bridging */
629
+ /**
630
+ * @deprecated
631
+ * @description Deprecated: canonical plus bridging has been removed, so this is always false
632
+ */
556
633
  supportsExternalLiquidity?: boolean;
557
634
  };
558
635
  };
@@ -664,6 +741,8 @@ export interface paths {
664
741
  };
665
742
  deposits: ({
666
743
  id: string;
744
+ /** @enum {string} */
745
+ status: "detected" | "sweeping" | "swept" | "filled" | "refunded" | "failed" | "needs_manual";
667
746
  chainId: number;
668
747
  transactionHash: string;
669
748
  eventIndex: string;
@@ -729,7 +808,20 @@ export interface paths {
729
808
  /** @enum {string} */
730
809
  status: "pending" | "success" | "failure";
731
810
  /** @enum {string|null} */
732
- failureReason: "refund_failed" | null;
811
+ failureReason: "refund_failed" | "refund_below_fees" | null;
812
+ })[];
813
+ recoveryCases?: ({
814
+ id: string;
815
+ depositId: string;
816
+ sweepId: string | null;
817
+ reason: string;
818
+ /** @enum {string} */
819
+ status: "open" | "manual_review_required" | "resolved";
820
+ recipient: string | null;
821
+ currency: string;
822
+ amount: string;
823
+ createdAt: string;
824
+ updatedAt: string;
733
825
  })[];
734
826
  nextPageToken: string | null;
735
827
  };
@@ -847,6 +939,94 @@ export interface paths {
847
939
  };
848
940
  };
849
941
  };
942
+ "/deposit-addresses/{depositAddressId}/update/v2": {
943
+ /** @description Update a Deposit Address V2 that the caller's integrator owns. Omitted fields keep their current value. New pricing applies to deposits quoted after the update. A first deposit that matches the original quote keeps that quote until it expires. */
944
+ post: {
945
+ parameters: {
946
+ header?: {
947
+ /** @description API key for authentication. */
948
+ "x-api-key"?: string;
949
+ /** @description Developer portal key for authentication. It cannot change pricing. */
950
+ "x-dev-portal-key"?: string;
951
+ };
952
+ path: {
953
+ depositAddressId: string;
954
+ };
955
+ };
956
+ requestBody?: {
957
+ content: {
958
+ "application/json": {
959
+ /** @description Whether the address accepts new deposits. A one-time address cannot be enabled after it receives a deposit. */
960
+ isEnabled?: boolean;
961
+ /** @description Fixed rate as 'input:output', for example '1:1'. Use null to remove it. Only the API key that created the address can change it. */
962
+ fixedRate?: string | null;
963
+ /** @description Whether the API key's sponsoring wallet pays the fees. Only the API key that created the address can change it. */
964
+ subsidizeFees?: boolean;
965
+ /** @description Fee components to sponsor. Requires subsidizeFees: true. If omitted, the address keeps its current components. */
966
+ sponsoredFeeComponents?: ("execution" | "swap" | "relay" | "app" | "rent")[];
967
+ /** @description The max subsidization amount in USDC decimal format, e.g 1000000 = $1. Use null to remove the cap. Requires subsidizeFees: true. If omitted, the address keeps its current cap. */
968
+ maxSubsidizationAmount?: string | null;
969
+ };
970
+ };
971
+ };
972
+ responses: {
973
+ /** @description Default Response */
974
+ 400: {
975
+ content: {
976
+ "application/json": {
977
+ message: string;
978
+ errorCode?: string;
979
+ };
980
+ };
981
+ };
982
+ /** @description Default Response */
983
+ 401: {
984
+ content: {
985
+ "application/json": {
986
+ message: string;
987
+ errorCode?: string;
988
+ };
989
+ };
990
+ };
991
+ /** @description Default Response */
992
+ 403: {
993
+ content: {
994
+ "application/json": {
995
+ message: string;
996
+ errorCode?: string;
997
+ };
998
+ };
999
+ };
1000
+ /** @description Default Response */
1001
+ 404: {
1002
+ content: {
1003
+ "application/json": {
1004
+ message: string;
1005
+ errorCode?: string;
1006
+ };
1007
+ };
1008
+ };
1009
+ /** @description Default Response */
1010
+ 500: {
1011
+ content: {
1012
+ "application/json": {
1013
+ message: string;
1014
+ errorCode?: string;
1015
+ };
1016
+ };
1017
+ };
1018
+ /** @description Default Response */
1019
+ 503: {
1020
+ content: {
1021
+ "application/json": {
1022
+ message: string;
1023
+ errorCode?: string;
1024
+ };
1025
+ };
1026
+ };
1027
+ };
1028
+ };
1029
+ };
850
1030
  "/execute/permits": {
851
1031
  post: {
852
1032
  parameters: {
@@ -862,7 +1042,7 @@ export interface paths {
862
1042
  requestBody: {
863
1043
  content: {
864
1044
  "application/json": {
865
- /** @description The kind of signature. This value is returned in the quote API steps body field. e.g eip3009 */
1045
+ /** @description The kind of signature. This value is returned in the quote API steps body field. e.g eip3009, permit2 or multicall-authorization (the extra EIP-712 signature of the approval proxy 3.1+ EIP-3009 flow, to be posted before the eip3009 signature) */
866
1046
  kind: string;
867
1047
  /** @description The requestId of the quote this permit signature applies to. Returned in the quote API steps body field. */
868
1048
  requestId: string;
@@ -1001,19 +1181,32 @@ export interface paths {
1001
1181
  * @default true
1002
1182
  */
1003
1183
  explicitDeposit?: boolean;
1004
- /** @description Enable this to use canonical+ bridging, trading speed for more liquidity */
1184
+ /**
1185
+ * @deprecated
1186
+ * @description Deprecated: canonical+ bridging has been removed and this flag is ignored
1187
+ */
1005
1188
  useExternalLiquidity?: boolean;
1006
- /** @description Enable this for specific fallback routes */
1189
+ /**
1190
+ * @deprecated
1191
+ * @description Deprecated: fallback routes have been removed and this flag is ignored
1192
+ */
1007
1193
  useFallbacks?: boolean;
1008
1194
  /** @description Enable this to use permit (eip3009) when bridging, only works on supported currency such as usdc */
1009
1195
  usePermit?: boolean;
1010
1196
  /** @description How long the permit remains valid, in seconds. Defaults to 10 minutes. */
1011
1197
  permitExpiry?: number;
1198
+ /** @description Opt into the two signature EIP-3009 permit flow of approval proxy 3.1+. The authorize step then starts with a MulticallAuthorization signature item (posted to /execute/permits with kind multicall-authorization, no status check) followed by the EIP-3009 authorization item. Without it, EIP-3009 permits keep the single signature flow on the chain's 3.0 contracts. */
1199
+ useMulticallAuthorization?: boolean;
1012
1200
  /** @description Return protocol data for on-chain intent validation. This includes protocol.v2.orderSignature and may increase quote latency. */
1013
1201
  includeProtocolData?: boolean;
1202
+ /**
1203
+ * @description Require exact swap contracts on each EVM leg, overriding the App pin. v3 means 3.0. Unavailable versions and incompatible permit flows return 400 instead of falling back. Only supported for swap execution kinds.
1204
+ * @enum {string}
1205
+ */
1206
+ swapContractsVersion?: "v3" | "v3.2";
1014
1207
  /** @description Use a deposit address when calldata cannot be sent with the origin transaction. In /quote/v2, creation follows the requested trade type. */
1015
1208
  useDepositAddress?: boolean;
1016
- /** @description Deprecated and ignored by /quote/v2. Deprecated quote endpoints retain their existing strict behavior. */
1209
+ /** @description Makes the deposit address one-time use. On /quote/v2, EXACT_OUTPUT addresses are always one-time use. */
1017
1210
  strict?: boolean;
1018
1211
  /** @description Slippage tolerance for the swap, if not specified then the slippage tolerance is automatically calculated to avoid front-running. This value is in basis points (1/100th of a percent), e.g. 50 for 0.5% slippage. Must be 0–10000 bps. */
1019
1212
  slippageTolerance?: string;
@@ -1058,8 +1251,12 @@ export interface paths {
1058
1251
  maxRouteLength?: number;
1059
1252
  /** @description Prevents certain ATA creation instructions in solana routing */
1060
1253
  useSharedAccounts?: boolean;
1254
+ /** @description Restricts solana swap routing to routes that are compatible with Jito bundles. Only set this when the swap will be executed inside a Jito bundle. */
1255
+ forJitoBundle?: boolean;
1061
1256
  /** @description Whether to include compute unit limit instruction for solana origin requests. */
1062
1257
  includeComputeUnitLimit?: boolean;
1258
+ /** @description Whether to return the solana deposit transaction in the v1 (SIMD-0385) format: no lookup tables, a 4096 byte limit, and the compute budget in `transactionConfig`. Best effort; the returned step data sets `transactionVersion` to 1 when honored. */
1259
+ useV1Transaction?: boolean;
1063
1260
  /** @description Whether to ignore price impact errors. */
1064
1261
  overridePriceImpact?: boolean;
1065
1262
  /** @description Whether to disable preferred swap provider selection. */
@@ -1070,14 +1267,20 @@ export interface paths {
1070
1267
  indicativeQuote?: boolean;
1071
1268
  /** @description The rate to charge for fixed spread quotes. */
1072
1269
  fixedRate?: string;
1073
- /** @description Requester-provided price (destination-leg output units per input unit) to compare router quotes against when fastestInPriceRange is enabled for the API key. Quotes more than 20% below it are skipped; quotes above it are always accepted. */
1270
+ /** @description Requester-provided price (output units per input unit, human units) to compare router quotes against. When fastestInPriceRange is enabled for the API key, destination-leg quotes more than 20% below it are skipped. When useRouteRacingOnOrigin is set, it anchors origin swap route selection: routes priced within a fixed band of it (20% below to 50% above) are preferred, and the best route overall is used when none is in the band. The selected route alone sets the expected and minimum output (with slippageTolerance applied to it); the reference price never sets a floor. Expects a positive decimal string such as "0.000131" (scientific notation is not parsed). Deliberately unconstrained by a schema pattern: a malformed or non-positive value, or one sent by a key without the relevant grant, is ignored and the quote is served without a reference price rather than rejected. */
1074
1271
  referencePrice?: string;
1075
1272
  /** @description Whether to use route racing for this quote (executing multiple candidate routes on-chain and keeping the best), when the API key is authorized for it. */
1076
1273
  useRouteRacing?: boolean;
1077
1274
  /** @description Minimum fill size in USD eligible for route racing. Defaults to 100. Route racing has no maximum fill size. */
1078
1275
  routeRacingMinUsdSize?: number;
1276
+ /** @description Whether to use route racing for this quote's origin swap (executing multiple candidate routes on-chain and keeping the best), when the API key is authorized for it and the origin chain is configured for route racing. */
1277
+ useRouteRacingOnOrigin?: boolean;
1079
1278
  /** @description Time-to-live for the quote, in seconds, measured from when the quote was generated. If the request is not filled within this window it is refunded instead of filled. */
1080
1279
  ttl?: number;
1280
+ /** @description Opt-in queueing: when the destination fill hits temporarily insufficient liquidity, keep retrying it until the queueingTtl window expires (then refund) instead of refunding immediately. Requires queueingTtl. */
1281
+ useQueueing?: boolean;
1282
+ /** @description Queueing window, in seconds, measured from when the quote was generated. While it is open, a useQueueing request that hits insufficient destination liquidity is retried instead of refunded; once it expires the request is refunded. Independent of ttl. Only used together with useQueueing. */
1283
+ queueingTtl?: number;
1081
1284
  };
1082
1285
  };
1083
1286
  };
@@ -1089,7 +1292,7 @@ export interface paths {
1089
1292
  /** @description A unique identifier for the quote */
1090
1293
  requestId?: string;
1091
1294
  /**
1092
- * @description An array of steps detailing what needs to be done to bridge, steps includes multiple items of the same kind (signature, transaction, etc)
1295
+ * @description An array of steps detailing what needs to be done to complete the bridge or swap. Each step contains a single item, either a signature or a transaction
1093
1296
  * @example [
1094
1297
  * {
1095
1298
  * "id": "deposit",
@@ -1136,7 +1339,7 @@ export interface paths {
1136
1339
  depositAddress?: string;
1137
1340
  /** @description The Deposit Address service resource identifier */
1138
1341
  depositAddressId?: string;
1139
- /** @description While uncommon it is possible for steps to contain multiple items of the same kind (transaction/signature) grouped together that can be executed simultaneously. */
1342
+ /** @description The item to execute for this step. A step always contains exactly one item, matching the kind of the step (transaction or signature). */
1140
1343
  items: {
1141
1344
  /** @description Can either be complete or incomplete, this can be locally controlled once the step item is completed (depending on the kind) and the check object (if returned) has been verified. Once all step items are complete, the bridge is complete */
1142
1345
  status?: string;
@@ -3016,8 +3219,6 @@ export interface paths {
3016
3219
  timeEstimate?: number;
3017
3220
  /** @description The user's balance in the given currency on the origin chain */
3018
3221
  userBalance?: string;
3019
- /** @description The type of fallback route the request uses, if any */
3020
- fallbackType?: string;
3021
3222
  /** @description Whether the rate for the quote is fixed or dynamic (swap on origin/destination) */
3022
3223
  isFixedRate?: boolean;
3023
3224
  /** @description The USD cost of the fixed rate vs market rate. Positive means the fixed rate is worse than market (user pays premium), negative means better (user benefits). Only present for fixed rate quotes. */
@@ -3351,19 +3552,32 @@ export interface paths {
3351
3552
  * @default true
3352
3553
  */
3353
3554
  explicitDeposit?: boolean;
3354
- /** @description Enable this to use canonical+ bridging, trading speed for more liquidity */
3555
+ /**
3556
+ * @deprecated
3557
+ * @description Deprecated: canonical+ bridging has been removed and this flag is ignored
3558
+ */
3355
3559
  useExternalLiquidity?: boolean;
3356
- /** @description Enable this for specific fallback routes */
3560
+ /**
3561
+ * @deprecated
3562
+ * @description Deprecated: fallback routes have been removed and this flag is ignored
3563
+ */
3357
3564
  useFallbacks?: boolean;
3358
3565
  /** @description Enable this to use permit (eip3009) when bridging, only works on supported currency such as usdc */
3359
3566
  usePermit?: boolean;
3360
3567
  /** @description How long the permit remains valid, in seconds. Defaults to 10 minutes. */
3361
3568
  permitExpiry?: number;
3569
+ /** @description Opt into the two signature EIP-3009 permit flow of approval proxy 3.1+. The authorize step then starts with a MulticallAuthorization signature item (posted to /execute/permits with kind multicall-authorization, no status check) followed by the EIP-3009 authorization item. Without it, EIP-3009 permits keep the single signature flow on the chain's 3.0 contracts. */
3570
+ useMulticallAuthorization?: boolean;
3362
3571
  /** @description Return protocol data for on-chain intent validation. This includes protocol.v2.orderSignature and may increase quote latency. */
3363
3572
  includeProtocolData?: boolean;
3573
+ /**
3574
+ * @description Require exact swap contracts on each EVM leg, overriding the App pin. v3 means 3.0. Unavailable versions and incompatible permit flows return 400 instead of falling back. Only supported for swap execution kinds.
3575
+ * @enum {string}
3576
+ */
3577
+ swapContractsVersion?: "v3" | "v3.2";
3364
3578
  /** @description Use a deposit address when calldata cannot be sent with the origin transaction. In /quote/v2, creation follows the requested trade type. */
3365
3579
  useDepositAddress?: boolean;
3366
- /** @description Deprecated and ignored by /quote/v2. Deprecated quote endpoints retain their existing strict behavior. */
3580
+ /** @description Makes the deposit address one-time use. On /quote/v2, EXACT_OUTPUT addresses are always one-time use. */
3367
3581
  strict?: boolean;
3368
3582
  /** @description Slippage tolerance for the swap, if not specified then the slippage tolerance is automatically calculated to avoid front-running. This value is in basis points (1/100th of a percent), e.g. 50 for 0.5% slippage. Must be 0–10000 bps. */
3369
3583
  slippageTolerance?: string;
@@ -3408,8 +3622,12 @@ export interface paths {
3408
3622
  maxRouteLength?: number;
3409
3623
  /** @description Prevents certain ATA creation instructions in solana routing */
3410
3624
  useSharedAccounts?: boolean;
3625
+ /** @description Restricts solana swap routing to routes that are compatible with Jito bundles. Only set this when the swap will be executed inside a Jito bundle. */
3626
+ forJitoBundle?: boolean;
3411
3627
  /** @description Whether to include compute unit limit instruction for solana origin requests. */
3412
3628
  includeComputeUnitLimit?: boolean;
3629
+ /** @description Whether to return the solana deposit transaction in the v1 (SIMD-0385) format: no lookup tables, a 4096 byte limit, and the compute budget in `transactionConfig`. Best effort; the returned step data sets `transactionVersion` to 1 when honored. */
3630
+ useV1Transaction?: boolean;
3413
3631
  /** @description Whether to ignore price impact errors. */
3414
3632
  overridePriceImpact?: boolean;
3415
3633
  /** @description Whether to disable preferred swap provider selection. */
@@ -3420,14 +3638,20 @@ export interface paths {
3420
3638
  indicativeQuote?: boolean;
3421
3639
  /** @description The rate to charge for fixed spread quotes. */
3422
3640
  fixedRate?: string;
3423
- /** @description Requester-provided price (destination-leg output units per input unit) to compare router quotes against when fastestInPriceRange is enabled for the API key. Quotes more than 20% below it are skipped; quotes above it are always accepted. */
3641
+ /** @description Requester-provided price (output units per input unit, human units) to compare router quotes against. When fastestInPriceRange is enabled for the API key, destination-leg quotes more than 20% below it are skipped. When useRouteRacingOnOrigin is set, it anchors origin swap route selection: routes priced within a fixed band of it (20% below to 50% above) are preferred, and the best route overall is used when none is in the band. The selected route alone sets the expected and minimum output (with slippageTolerance applied to it); the reference price never sets a floor. Expects a positive decimal string such as "0.000131" (scientific notation is not parsed). Deliberately unconstrained by a schema pattern: a malformed or non-positive value, or one sent by a key without the relevant grant, is ignored and the quote is served without a reference price rather than rejected. */
3424
3642
  referencePrice?: string;
3425
3643
  /** @description Whether to use route racing for this quote (executing multiple candidate routes on-chain and keeping the best), when the API key is authorized for it. */
3426
3644
  useRouteRacing?: boolean;
3427
3645
  /** @description Minimum fill size in USD eligible for route racing. Defaults to 100. Route racing has no maximum fill size. */
3428
3646
  routeRacingMinUsdSize?: number;
3647
+ /** @description Whether to use route racing for this quote's origin swap (executing multiple candidate routes on-chain and keeping the best), when the API key is authorized for it and the origin chain is configured for route racing. */
3648
+ useRouteRacingOnOrigin?: boolean;
3429
3649
  /** @description Time-to-live for the quote, in seconds, measured from when the quote was generated. If the request is not filled within this window it is refunded instead of filled. */
3430
3650
  ttl?: number;
3651
+ /** @description Opt-in queueing: when the destination fill hits temporarily insufficient liquidity, keep retrying it until the queueingTtl window expires (then refund) instead of refunding immediately. Requires queueingTtl. */
3652
+ useQueueing?: boolean;
3653
+ /** @description Queueing window, in seconds, measured from when the quote was generated. While it is open, a useQueueing request that hits insufficient destination liquidity is retried instead of refunded; once it expires the request is refunded. Independent of ttl. Only used together with useQueueing. */
3654
+ queueingTtl?: number;
3431
3655
  };
3432
3656
  };
3433
3657
  };
@@ -3439,7 +3663,7 @@ export interface paths {
3439
3663
  /** @description A unique identifier for the quote */
3440
3664
  requestId?: string;
3441
3665
  /**
3442
- * @description An array of steps detailing what needs to be done to bridge, steps includes multiple items of the same kind (signature, transaction, etc)
3666
+ * @description An array of steps detailing what needs to be done to complete the bridge or swap. Each step contains a single item, either a signature or a transaction
3443
3667
  * @example [
3444
3668
  * {
3445
3669
  * "id": "deposit",
@@ -3486,7 +3710,7 @@ export interface paths {
3486
3710
  depositAddress?: string;
3487
3711
  /** @description The Deposit Address service resource identifier */
3488
3712
  depositAddressId?: string;
3489
- /** @description While uncommon it is possible for steps to contain multiple items of the same kind (transaction/signature) grouped together that can be executed simultaneously. */
3713
+ /** @description The item to execute for this step. A step always contains exactly one item, matching the kind of the step (transaction or signature). */
3490
3714
  items: {
3491
3715
  /** @description Can either be complete or incomplete, this can be locally controlled once the step item is completed (depending on the kind) and the check object (if returned) has been verified. Once all step items are complete, the bridge is complete */
3492
3716
  status?: string;
@@ -5366,8 +5590,6 @@ export interface paths {
5366
5590
  timeEstimate?: number;
5367
5591
  /** @description The user's balance in the given currency on the origin chain */
5368
5592
  userBalance?: string;
5369
- /** @description The type of fallback route the request uses, if any */
5370
- fallbackType?: string;
5371
5593
  /** @description Whether the rate for the quote is fixed or dynamic (swap on origin/destination) */
5372
5594
  isFixedRate?: boolean;
5373
5595
  /** @description The USD cost of the fixed rate vs market rate. Positive means the fixed rate is worse than market (user pays premium), negative means better (user benefits). Only present for fixed rate quotes. */
@@ -5650,9 +5872,15 @@ export interface paths {
5650
5872
  * @description Always refund on the origin chain in case of any issues
5651
5873
  */
5652
5874
  refundOnOrigin?: boolean;
5653
- /** @description Enable this to use canonical+ bridging, trading speed for more liquidity */
5875
+ /**
5876
+ * @deprecated
5877
+ * @description Deprecated: canonical+ bridging has been removed and this flag is ignored
5878
+ */
5654
5879
  useExternalLiquidity?: boolean;
5655
- /** @description Enable this for specific fallback routes */
5880
+ /**
5881
+ * @deprecated
5882
+ * @description Deprecated: fallback routes have been removed and this flag is ignored
5883
+ */
5656
5884
  useFallbacks?: boolean;
5657
5885
  /** @description Enable this to use permit (eip3009) when bridging, only works on supported currency such as usdc */
5658
5886
  usePermit?: boolean;
@@ -6143,27 +6371,12 @@ export interface paths {
6143
6371
  400: {
6144
6372
  content: {
6145
6373
  "application/json": {
6146
- /** @example to is required */
6147
- error: string;
6148
- } | {
6149
- /** @example data is required */
6150
- error: string;
6151
- } | {
6152
- /** @example value is required */
6153
- error: string;
6154
- } | {
6155
- /** @example chainId is required */
6156
- error: string;
6157
- } | {
6158
- /** @example authorizationList cannot be empty */
6159
- error: string;
6160
- } | ({
6161
6374
  /** @example DELEGATION_REDEEM_FAILED */
6162
- error: string;
6375
+ error?: string;
6163
6376
  /** @example Delegation redemption reverted without data. Verify the signed delegation is unredeemed and matches the current chain, mode, and account. */
6164
- message: string;
6377
+ message?: string;
6165
6378
  /** @example 0xabc123... */
6166
- requestId: string;
6379
+ requestId?: string;
6167
6380
  details?: {
6168
6381
  topLevel: {
6169
6382
  type: string;
@@ -6212,7 +6425,7 @@ export interface paths {
6212
6425
  rawArgsHex?: string;
6213
6426
  };
6214
6427
  };
6215
- });
6428
+ };
6216
6429
  };
6217
6430
  };
6218
6431
  /** @description Unauthorized - Missing or invalid API key */
@@ -6470,29 +6683,66 @@ export interface paths {
6470
6683
  /** @description The timestamp when the quote request was created */
6471
6684
  quoteCreatedAt?: number;
6472
6685
  /** @enum {string|null} */
6473
- failReason?: "UNKNOWN" | "SLIPPAGE" | "AMOUNT_TOO_LOW_TO_REFUND" | "DEPOSIT_ADDRESS_MISMATCH" | "DEPOSIT_CHAIN_MISMATCH" | "INCORRECT_DEPOSIT_CURRENCY" | "DOUBLE_SPEND" | "SOLVER_CAPACITY_EXCEEDED" | "SOLVER_BALANCE_TOO_LOW" | "DEPOSITED_AMOUNT_TOO_LOW_TO_FILL" | "NEGATIVE_NEW_AMOUNT_AFTER_FEES" | "NO_QUOTES" | "MISSING_REVERT_DATA" | "REVERSE_SWAP_FAILED" | "GENERATE_SWAP_FAILED" | "TOO_LITTLE_RECEIVED" | "EXECUTION_REVERTED" | "NEW_CALLDATA_INCLUDES_HIGHER_RENT_FEE" | "TRANSACTION_REVERTED" | "TRANSACTION_TOO_LARGE" | "ORIGIN_CURRENCY_MISMATCH" | "NO_INTERNAL_SWAP_ROUTES_FOUND" | "SWAP_USES_TOO_MUCH_GAS" | "INSUFFICIENT_FUNDS_FOR_RENT" | "SPONSOR_BALANCE_TOO_LOW" | "ORDER_EXPIRED" | "ORDER_IS_CANCELLED" | "TRANSFER_FROM_FAILED" | "TRANSFER_FAILED" | "SIGNATURE_EXPIRED" | "INVALID_SIGNATURE" | "INSUFFICIENT_NATIVE_TOKENS_SUPPLIED" | "TRANSFER_AMOUNT_EXCEEDS_ALLOWANCE" | "TRANSFER_AMOUNT_EXCEEDS_BALANCE" | "INVALID_SENDER" | "ACCOUNT_ABSTRACTION_INVALID_NONCE" | "ACCOUNT_ABSTRACTION_SIGNATURE_ERROR" | "SEAPORT_INEXACT_FRACTION" | "TOKEN_NOT_TRANSFERABLE" | "ZERO_SELL_AMOUNT" | "MINT_NOT_ACTIVE" | "ERC_1155_TOO_MANY_REQUESTED" | "INCORRECT_PAYMENT" | "INVALID_GAS_PRICE" | "FLUID_DEX_ERROR" | "ORDER_ALREADY_FILLED" | "SEAPORT_INVALID_FULFILLER" | "INVALID_SIGNER" | "MINT_QUANTITY_EXCEEDS_MAX_PER_WALLET" | "MINT_QUANTITY_EXCEEDS_MAX_SUPPLY" | "JUPITER_INVALID_TOKEN_ACCOUNT" | "INVALID_NONCE" | "ACCOUNT_ABSTRACTION_GAS_LIMIT" | "CONTRACT_PAUSED" | "SWAP_IMPACT_TOO_HIGH" | "INSUFFICIENT_POOL_LIQUIDITY" | "TTL_EXPIRED" | "DEPOSIT_CONFIRMATION_TIMEOUT" | "ORPHANED_DEPOSIT_REFUND" | "GASLESS_PERMIT_BALANCE_TOO_LOW" | "MANUAL_ADMIN_REFUND" | "QUOTED_GAS_LIMIT_EXCEEDED" | "DESTINATION_TOKEN_TRANSFER_REJECTED" | "DEPOSIT_REORGED" | "BLOCKED_WALLET" | "PROTOCOL_DEADLINE_EXPIRED" | "TRANSACTION_NOT_INCLUDED" | "TRANSACTION_SUBMISSION_FAILED" | "N/A" | null;
6686
+ failReason?: "UNKNOWN" | "SLIPPAGE" | "AMOUNT_TOO_LOW_TO_REFUND" | "DEPOSIT_ADDRESS_MISMATCH" | "DEPOSIT_CHAIN_MISMATCH" | "INCORRECT_DEPOSIT_CURRENCY" | "DOUBLE_SPEND" | "SOLVER_CAPACITY_EXCEEDED" | "SOLVER_BALANCE_TOO_LOW" | "DEPOSITED_AMOUNT_TOO_LOW_TO_FILL" | "NEGATIVE_NEW_AMOUNT_AFTER_FEES" | "NO_QUOTES" | "MISSING_REVERT_DATA" | "REVERSE_SWAP_FAILED" | "GENERATE_SWAP_FAILED" | "TOO_LITTLE_RECEIVED" | "EXECUTION_REVERTED" | "NEW_CALLDATA_INCLUDES_HIGHER_RENT_FEE" | "TRANSACTION_REVERTED" | "TRANSACTION_TOO_LARGE" | "ORIGIN_CURRENCY_MISMATCH" | "NO_INTERNAL_SWAP_ROUTES_FOUND" | "SWAP_USES_TOO_MUCH_GAS" | "INSUFFICIENT_FUNDS_FOR_RENT" | "SPONSOR_BALANCE_TOO_LOW" | "ORDER_EXPIRED" | "ORDER_IS_CANCELLED" | "TRANSFER_FROM_FAILED" | "TRANSFER_FAILED" | "SIGNATURE_EXPIRED" | "INVALID_SIGNATURE" | "INSUFFICIENT_NATIVE_TOKENS_SUPPLIED" | "TRANSFER_AMOUNT_EXCEEDS_ALLOWANCE" | "TRANSFER_AMOUNT_EXCEEDS_BALANCE" | "INVALID_SENDER" | "ACCOUNT_ABSTRACTION_INVALID_NONCE" | "ACCOUNT_ABSTRACTION_SIGNATURE_ERROR" | "SEAPORT_INEXACT_FRACTION" | "TOKEN_NOT_TRANSFERABLE" | "ZERO_SELL_AMOUNT" | "MINT_NOT_ACTIVE" | "ERC_1155_TOO_MANY_REQUESTED" | "INCORRECT_PAYMENT" | "INVALID_GAS_PRICE" | "FLUID_DEX_ERROR" | "ORDER_ALREADY_FILLED" | "SEAPORT_INVALID_FULFILLER" | "INVALID_SIGNER" | "MINT_QUANTITY_EXCEEDS_MAX_PER_WALLET" | "MINT_QUANTITY_EXCEEDS_MAX_SUPPLY" | "JUPITER_INVALID_TOKEN_ACCOUNT" | "INVALID_NONCE" | "ACCOUNT_ABSTRACTION_GAS_LIMIT" | "CONTRACT_PAUSED" | "SWAP_IMPACT_TOO_HIGH" | "INSUFFICIENT_POOL_LIQUIDITY" | "POOL_CAP_EXCEEDED" | "TTL_EXPIRED" | "DEPOSIT_CONFIRMATION_TIMEOUT" | "ORPHANED_DEPOSIT_REFUND" | "GASLESS_PERMIT_BALANCE_TOO_LOW" | "MANUAL_ADMIN_REFUND" | "QUOTED_GAS_LIMIT_EXCEEDED" | "DESTINATION_TOKEN_TRANSFER_REJECTED" | "DEPOSIT_REORGED" | "BLOCKED_WALLET" | "PROTOCOL_DEADLINE_EXPIRED" | "TRANSACTION_NOT_INCLUDED" | "TRANSACTION_SUBMISSION_FAILED" | "N/A" | null;
6474
6687
  /** @enum {string|null} */
6475
- refundFailReason?: "AMOUNT_TOO_LOW_TO_REFUND" | "NEGATIVE_NEW_AMOUNT_AFTER_FEES" | "SWAP_CURRENCY_NOT_ON_ORIGIN" | "REFUND_RECIPIENT_IS_VASP" | "MANUAL_REFUND_REQUIRED" | null;
6688
+ refundFailReason?: "AMOUNT_TOO_LOW_TO_REFUND" | "NEGATIVE_NEW_AMOUNT_AFTER_FEES" | "SWAP_CURRENCY_NOT_ON_ORIGIN" | "REFUND_RECIPIENT_IS_VASP" | "REFUND_RECIPIENT_IS_BLOCKED" | "MANUAL_REFUND_REQUIRED" | null;
6476
6689
  };
6477
6690
  };
6478
6691
  };
6479
6692
  };
6480
6693
  };
6481
6694
  };
6482
- "/requests": {
6695
+ "/requests/v2": {
6696
+ /** @deprecated */
6483
6697
  get: {
6484
6698
  parameters: {
6485
6699
  query?: {
6486
- limit?: string;
6700
+ /** @description Maximum number of requests to return per page. */
6701
+ limit?: number;
6702
+ /** @description Pagination cursor returned by a previous response. Pass it back to fetch the next page. */
6487
6703
  continuation?: string;
6704
+ /** @description Filter requests where this address is the sender or recipient. */
6488
6705
  user?: string;
6706
+ /** @description Filter requests by an origin or destination transaction hash. */
6489
6707
  hash?: string;
6708
+ /** @description Filter requests where this is the origin chain. */
6490
6709
  originChainId?: number;
6710
+ /** @description Filter requests where this is the destination chain. Non-terminal requests are only returned to the API key that created them, or to a dev-portal key of the same integrator. */
6491
6711
  destinationChainId?: number;
6712
+ /** @description Comma-separated list of private chain UUIDs to include in the results. */
6492
6713
  privateChainsToInclude?: string;
6714
+ /** @description Filter by `requestId` — the Relay-level intent identifier returned by the quote api. Used for status polling, webhooks, and most other API endpoints. */
6493
6715
  id?: string;
6716
+ /** @description Filter by `orderId` — the protocol-level deposit identifier passed as `bytes32 id` to the Relay Depository when funds are deposited, and emitted in the deposit event. */
6717
+ orderId?: string;
6718
+ /** @description When true, include `orderData`; public non-terminal requests omit it entirely. */
6719
+ includeOrderData?: boolean;
6720
+ /** @description Filter requests created at or after this Unix timestamp (seconds). */
6494
6721
  startTimestamp?: number;
6722
+ /** @description Filter requests created at or before this Unix timestamp (seconds). */
6495
6723
  endTimestamp?: number;
6724
+ /** @description Filter requests by origin-chain block number (inclusive lower bound). */
6725
+ startBlock?: number;
6726
+ /** @description Filter requests by origin-chain block number (inclusive upper bound). */
6727
+ endBlock?: number;
6728
+ /** @description Get all requests for a single chain in either direction. Setting originChainId and/or destinationChainId will override this parameter. Non-terminal requests are only returned to the API key that created them, or to a dev-portal key of the same integrator. */
6729
+ chainId?: string;
6730
+ /** @description Filter requests by the `referrer` value supplied at quote time. */
6731
+ referrer?: string;
6732
+ /** @description Filter requests by deposit address. Returns all requests associated with this deposit address. */
6733
+ depositAddress?: string;
6734
+ /** @description When filtering by id or depositAddress, also return child transactions (e.g. duplicates, retries, refunds) linked to the original request. */
6735
+ includeChildRequests?: boolean;
6736
+ /** @description When true, include fields available only to the authenticating integrator for their own requests. */
6737
+ includeAuthenticatedData?: boolean;
6738
+ /** @description Filter requests by status. */
6739
+ status?: "success" | "failure" | "refund" | "pending" | "depositing";
6740
+ /** @description Filter requests by the API key that created them. */
6741
+ apiKey?: string;
6742
+ /** @description Field to sort by. */
6743
+ sortBy?: "createdAt" | "updatedAt";
6744
+ /** @description Sort direction. */
6745
+ sortDirection?: "asc" | "desc";
6496
6746
  };
6497
6747
  header?: {
6498
6748
  /** @description Optional API key for authentication and higher rate limits. */
@@ -6510,7 +6760,14 @@ export interface paths {
6510
6760
  * "status": "success",
6511
6761
  * "user": "0x456bccd1eaa77d5cc5ace1723b5dcca00d67cdea",
6512
6762
  * "recipient": "0x456bccd1eaa77d5cc5ace1723b5dcca00d67cdea",
6763
+ * "depositAddress": {
6764
+ * "address": "0x456bccd1eaa77d5cc5ace1723b5dcca00d67cdea",
6765
+ * "depositAddressType": "open",
6766
+ * "depositor": "0x456bccd1eaa77d5cc5ace1723b5dcca00d67cdea",
6767
+ * "depositTxHash": "0x34d78ccb41099f0546be1c35541b28ab4c92b498aeb4cae6e849c51c05fe1f1b"
6768
+ * },
6513
6769
  * "data": {
6770
+ * "subsidizedRequest": false,
6514
6771
  * "fees": {
6515
6772
  * "gas": "2622672522398",
6516
6773
  * "fixed": "10000000000000",
@@ -6555,306 +6812,37 @@ export interface paths {
6555
6812
  * }
6556
6813
  * ]
6557
6814
  * },
6815
+ * "moonpayId": "9dc342c3-538b-4731-aba7-13ed89acc7ae",
6558
6816
  * "createdAt": "2024-04-16T17:59:39.702Z",
6559
6817
  * "updatedAt": "2024-04-16T17:59:46.145Z"
6560
6818
  * }
6561
6819
  */
6562
6820
  requests?: ({
6821
+ /** @description The `requestId` — the Relay-level intent identifier used across the API for status polling, webhooks, and most other endpoints. Distinct from `protocol.orderId`, which is the protocol-level deposit identifier extractable from on-chain data. */
6563
6822
  id?: string;
6564
6823
  /**
6565
6824
  * @description Note that fallback is returned in the case of a refund
6566
6825
  * @enum {string}
6567
6826
  */
6568
- status?: "failure" | "fallback" | "depositing" | "pending" | "received" | "success";
6827
+ status?: "refund" | "waiting" | "depositing" | "failure" | "pending" | "success";
6828
+ /** @description The address that initiated the request. */
6569
6829
  user?: string;
6830
+ /** @description The address that receives the destination output. */
6570
6831
  recipient?: string;
6571
- data?: {
6572
- fees?: {
6573
- /** @description Estimated gas cost required for execution, in wei */
6574
- gas?: string;
6575
- /** @description The fixed fee which is always added to execution, in wei */
6576
- fixed?: string;
6577
- /** @description The dynamic fee which is a result of the chain and the amount, in wei */
6578
- price?: string;
6579
- };
6580
- feesUsd?: {
6581
- gas?: string;
6582
- fixed?: string;
6583
- price?: string;
6584
- };
6585
- inTxs?: {
6586
- /** @description Total fees in wei */
6587
- fee?: string;
6588
- data?: unknown;
6589
- stateChanges?: unknown;
6590
- hash?: string;
6591
- /** @description The type of transaction, always set to onchain */
6592
- type?: string;
6593
- chainId?: number;
6594
- timestamp?: number;
6595
- }[];
6596
- currency?: string;
6597
- feeCurrency?: string;
6598
- appFees?: {
6599
- recipient?: string;
6600
- amount?: string;
6601
- }[];
6602
- metadata?: {
6603
- sender?: string;
6604
- recipient?: string;
6605
- /**
6606
- * @example {
6607
- * "currency": {
6608
- * "chainId": 8453,
6609
- * "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
6610
- * "symbol": "USDC",
6611
- * "name": "USD Coin",
6612
- * "decimals": 6,
6613
- * "metadata": {
6614
- * "logoURI": "https://ethereum-optimism.github.io/data/USDC/logo.png",
6615
- * "verified": false,
6616
- * "isNative": false
6617
- * }
6618
- * },
6619
- * "amount": "30754920",
6620
- * "amountFormatted": "30.75492",
6621
- * "amountUsd": "30.901612",
6622
- * "minimumAmount": "30454920"
6623
- * }
6624
- */
6625
- currencyIn?: {
6626
- currency?: {
6627
- chainId?: number;
6628
- address?: string;
6629
- symbol?: string;
6630
- name?: string;
6631
- decimals?: number;
6632
- metadata?: {
6633
- logoURI?: string;
6634
- verified?: boolean;
6635
- isNative?: boolean;
6636
- };
6637
- };
6638
- amount?: string;
6639
- amountFormatted?: string;
6640
- amountUsd?: string;
6641
- minimumAmount?: string;
6642
- };
6643
- /**
6644
- * @example {
6645
- * "currency": {
6646
- * "chainId": 8453,
6647
- * "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
6648
- * "symbol": "USDC",
6649
- * "name": "USD Coin",
6650
- * "decimals": 6,
6651
- * "metadata": {
6652
- * "logoURI": "https://ethereum-optimism.github.io/data/USDC/logo.png",
6653
- * "verified": false,
6654
- * "isNative": false
6655
- * }
6656
- * },
6657
- * "amount": "30754920",
6658
- * "amountFormatted": "30.75492",
6659
- * "amountUsd": "30.901612",
6660
- * "minimumAmount": "30454920"
6661
- * }
6662
- */
6663
- currencyOut?: {
6664
- currency?: {
6665
- chainId?: number;
6666
- address?: string;
6667
- symbol?: string;
6668
- name?: string;
6669
- decimals?: number;
6670
- metadata?: {
6671
- logoURI?: string;
6672
- verified?: boolean;
6673
- isNative?: boolean;
6674
- };
6675
- };
6676
- amount?: string;
6677
- amountFormatted?: string;
6678
- amountUsd?: string;
6679
- minimumAmount?: string;
6680
- };
6681
- rate?: string;
6682
- };
6683
- price?: string;
6684
- usesExternalLiquidity?: boolean;
6685
- timeEstimate?: number;
6686
- outTxs?: {
6687
- /** @description Total fees in wei */
6688
- fee?: string;
6689
- data?: unknown;
6690
- stateChanges?: unknown;
6691
- hash?: string;
6692
- /** @description The type of transaction, always set to onchain */
6693
- type?: string;
6694
- chainId?: number;
6695
- timestamp?: number;
6696
- }[];
6697
- };
6698
- createdAt?: string;
6699
- updatedAt?: string;
6700
- })[];
6701
- continuation?: string;
6702
- };
6703
- };
6704
- };
6705
- };
6706
- };
6707
- };
6708
- "/requests/v2": {
6709
- get: {
6710
- parameters: {
6711
- query?: {
6712
- /** @description Maximum number of requests to return per page. */
6713
- limit?: number;
6714
- /** @description Pagination cursor returned by a previous response. Pass it back to fetch the next page. */
6715
- continuation?: string;
6716
- /** @description Filter requests where this address is the sender or recipient. */
6717
- user?: string;
6718
- /** @description Filter requests by an origin or destination transaction hash. */
6719
- hash?: string;
6720
- /** @description Filter requests where this is the origin chain. */
6721
- originChainId?: number;
6722
- /** @description Filter requests where this is the destination chain. */
6723
- destinationChainId?: number;
6724
- /** @description Comma-separated list of private chain UUIDs to include in the results. */
6725
- privateChainsToInclude?: string;
6726
- /** @description Filter by `requestId` — the Relay-level intent identifier returned by the quote api. Used for status polling, webhooks, and most other API endpoints. */
6727
- id?: string;
6728
- /** @description Filter by `orderId` — the protocol-level deposit identifier passed as `bytes32 id` to the Relay Depository when funds are deposited, and emitted in the deposit event. */
6729
- orderId?: string;
6730
- /** @description When true, include `orderData`; public pending requests omit its output subtree. */
6731
- includeOrderData?: boolean;
6732
- /** @description Filter requests created at or after this Unix timestamp (seconds). */
6733
- startTimestamp?: number;
6734
- /** @description Filter requests created at or before this Unix timestamp (seconds). */
6735
- endTimestamp?: number;
6736
- /** @description Filter requests by origin-chain block number (inclusive lower bound). */
6737
- startBlock?: number;
6738
- /** @description Filter requests by origin-chain block number (inclusive upper bound). */
6739
- endBlock?: number;
6740
- /** @description Get all requests for a single chain in either direction. Setting originChainId and/or destinationChainId will override this parameter. */
6741
- chainId?: string;
6742
- /** @description Filter requests by the `referrer` value supplied at quote time. */
6743
- referrer?: string;
6744
- /** @description Filter requests by deposit address. Returns all requests associated with this deposit address. */
6745
- depositAddress?: string;
6746
- /** @description When filtering by id or depositAddress, also return child transactions (e.g. duplicates, retries, refunds) linked to the original request. */
6747
- includeChildRequests?: boolean;
6748
- /** @description When true, include fields available only to the authenticating integrator for their own requests. */
6749
- includeAuthenticatedData?: boolean;
6750
- /** @description Filter requests by status. */
6751
- status?: "success" | "failure" | "refund" | "pending" | "depositing";
6752
- /** @description Filter requests by the API key that created them. */
6753
- apiKey?: string;
6754
- /** @description Field to sort by. */
6755
- sortBy?: "createdAt" | "updatedAt";
6756
- /** @description Sort direction. */
6757
- sortDirection?: "asc" | "desc";
6758
- };
6759
- header?: {
6760
- /** @description Optional API key for authentication and higher rate limits. */
6761
- "x-api-key"?: string;
6762
- };
6763
- };
6764
- responses: {
6765
- /** @description Default Response */
6766
- 200: {
6767
- content: {
6768
- "application/json": {
6769
- /**
6770
- * @example {
6771
- * "id": "0xddd6c1a0340e940b7be4f5a4be076df8b7ec7de7b18f9ec6efe4bfffd2f21cf6",
6772
- * "status": "success",
6773
- * "user": "0x456bccd1eaa77d5cc5ace1723b5dcca00d67cdea",
6774
- * "recipient": "0x456bccd1eaa77d5cc5ace1723b5dcca00d67cdea",
6775
- * "depositAddress": {
6776
- * "address": "0x456bccd1eaa77d5cc5ace1723b5dcca00d67cdea",
6777
- * "depositAddressType": "open",
6778
- * "depositor": "0x456bccd1eaa77d5cc5ace1723b5dcca00d67cdea",
6779
- * "depositTxHash": "0x34d78ccb41099f0546be1c35541b28ab4c92b498aeb4cae6e849c51c05fe1f1b"
6780
- * },
6781
- * "data": {
6782
- * "subsidizedRequest": false,
6783
- * "fees": {
6784
- * "gas": "2622672522398",
6785
- * "fixed": "10000000000000",
6786
- * "price": "39000000000000"
6787
- * },
6788
- * "feesUsd": {
6789
- * "gas": "9057",
6790
- * "fixed": "34534",
6791
- * "price": "134684"
6792
- * },
6793
- * "inTxs": [
6794
- * {
6795
- * "fee": "423218878900",
6796
- * "data": {
6797
- * "to": "0xf70da97812cb96acdf810712aa562db8dfa3dbef",
6798
- * "data": "0x5869d8",
6799
- * "from": "0x456bccd1eaa77d5cc5ace1723b5dcca00d67cdea",
6800
- * "value": "2651622672522398"
6801
- * },
6802
- * "hash": "0xe53021eaa63d100b08338197d26953e2219bcbad828267dd936c549ff643aad7",
6803
- * "type": "onchain",
6804
- * "chainId": 7777777,
6805
- * "timestamp": 1713290377
6806
- * }
6807
- * ],
6808
- * "currency": "eth",
6809
- * "price": "2600000000000000",
6810
- * "usesExternalLiquidity": false,
6811
- * "outTxs": [
6812
- * {
6813
- * "fee": "1837343366480",
6814
- * "data": {
6815
- * "to": "0x456bccd1eaa77d5cc5ace1723b5dcca00d67cdea",
6816
- * "data": "0x5869d8",
6817
- * "from": "0xf70da97812cb96acdf810712aa562db8dfa3dbef",
6818
- * "value": "2600000000000000"
6819
- * },
6820
- * "hash": "0x9da7bc54dfe6229d6980fd62250d472f23dfe0f41a1cdc870c81a08b3445f254",
6821
- * "type": "onchain",
6822
- * "chainId": 8453,
6823
- * "timestamp": 1713290383
6824
- * }
6825
- * ]
6826
- * },
6827
- * "moonpayId": "9dc342c3-538b-4731-aba7-13ed89acc7ae",
6828
- * "createdAt": "2024-04-16T17:59:39.702Z",
6829
- * "updatedAt": "2024-04-16T17:59:46.145Z"
6830
- * }
6831
- */
6832
- requests?: ({
6833
- /** @description The `requestId` — the Relay-level intent identifier used across the API for status polling, webhooks, and most other endpoints. Distinct from `protocol.orderId`, which is the protocol-level deposit identifier extractable from on-chain data. */
6834
- id?: string;
6835
- /**
6836
- * @description Note that fallback is returned in the case of a refund
6837
- * @enum {string}
6838
- */
6839
- status?: "refund" | "waiting" | "depositing" | "failure" | "pending" | "success";
6840
- /** @description The address that initiated the request. */
6841
- user?: string;
6842
- /** @description The address that receives the destination output. */
6843
- recipient?: string;
6844
- depositAddress?: ({
6845
- address?: string;
6846
- /** @enum {string} */
6847
- depositAddressType?: "strict" | "open";
6848
- depositor?: string | null;
6849
- depositTxHash?: string | null;
6850
- }) | null;
6832
+ depositAddress?: ({
6833
+ address?: string;
6834
+ /** @enum {string} */
6835
+ depositAddressType?: "strict" | "open";
6836
+ depositor?: string | null;
6837
+ depositTxHash?: string | null;
6838
+ }) | null;
6851
6839
  data?: {
6852
6840
  /** @description Slippage tolerance for the swap. This value is in basis points (1/100th of a percent), e.g. 50 for 0.5% slippage */
6853
6841
  slippageTolerance?: string;
6854
6842
  /** @enum {string} */
6855
- failReason?: "UNKNOWN" | "SLIPPAGE" | "AMOUNT_TOO_LOW_TO_REFUND" | "DEPOSIT_ADDRESS_MISMATCH" | "DEPOSIT_CHAIN_MISMATCH" | "INCORRECT_DEPOSIT_CURRENCY" | "DOUBLE_SPEND" | "SOLVER_CAPACITY_EXCEEDED" | "SOLVER_BALANCE_TOO_LOW" | "DEPOSITED_AMOUNT_TOO_LOW_TO_FILL" | "NEGATIVE_NEW_AMOUNT_AFTER_FEES" | "NO_QUOTES" | "MISSING_REVERT_DATA" | "REVERSE_SWAP_FAILED" | "GENERATE_SWAP_FAILED" | "TOO_LITTLE_RECEIVED" | "EXECUTION_REVERTED" | "NEW_CALLDATA_INCLUDES_HIGHER_RENT_FEE" | "TRANSACTION_REVERTED" | "TRANSACTION_TOO_LARGE" | "ORIGIN_CURRENCY_MISMATCH" | "NO_INTERNAL_SWAP_ROUTES_FOUND" | "SWAP_USES_TOO_MUCH_GAS" | "INSUFFICIENT_FUNDS_FOR_RENT" | "SPONSOR_BALANCE_TOO_LOW" | "ORDER_EXPIRED" | "ORDER_IS_CANCELLED" | "TRANSFER_FROM_FAILED" | "TRANSFER_FAILED" | "SIGNATURE_EXPIRED" | "INVALID_SIGNATURE" | "INSUFFICIENT_NATIVE_TOKENS_SUPPLIED" | "TRANSFER_AMOUNT_EXCEEDS_ALLOWANCE" | "TRANSFER_AMOUNT_EXCEEDS_BALANCE" | "INVALID_SENDER" | "ACCOUNT_ABSTRACTION_INVALID_NONCE" | "ACCOUNT_ABSTRACTION_SIGNATURE_ERROR" | "SEAPORT_INEXACT_FRACTION" | "TOKEN_NOT_TRANSFERABLE" | "ZERO_SELL_AMOUNT" | "MINT_NOT_ACTIVE" | "ERC_1155_TOO_MANY_REQUESTED" | "INCORRECT_PAYMENT" | "INVALID_GAS_PRICE" | "FLUID_DEX_ERROR" | "ORDER_ALREADY_FILLED" | "SEAPORT_INVALID_FULFILLER" | "INVALID_SIGNER" | "MINT_QUANTITY_EXCEEDS_MAX_PER_WALLET" | "MINT_QUANTITY_EXCEEDS_MAX_SUPPLY" | "JUPITER_INVALID_TOKEN_ACCOUNT" | "INVALID_NONCE" | "ACCOUNT_ABSTRACTION_GAS_LIMIT" | "CONTRACT_PAUSED" | "SWAP_IMPACT_TOO_HIGH" | "INSUFFICIENT_POOL_LIQUIDITY" | "TTL_EXPIRED" | "DEPOSIT_CONFIRMATION_TIMEOUT" | "ORPHANED_DEPOSIT_REFUND" | "GASLESS_PERMIT_BALANCE_TOO_LOW" | "MANUAL_ADMIN_REFUND" | "QUOTED_GAS_LIMIT_EXCEEDED" | "DESTINATION_TOKEN_TRANSFER_REJECTED" | "DEPOSIT_REORGED" | "BLOCKED_WALLET" | "PROTOCOL_DEADLINE_EXPIRED" | "TRANSACTION_NOT_INCLUDED" | "TRANSACTION_SUBMISSION_FAILED" | "N/A";
6843
+ failReason?: "UNKNOWN" | "SLIPPAGE" | "AMOUNT_TOO_LOW_TO_REFUND" | "DEPOSIT_ADDRESS_MISMATCH" | "DEPOSIT_CHAIN_MISMATCH" | "INCORRECT_DEPOSIT_CURRENCY" | "DOUBLE_SPEND" | "SOLVER_CAPACITY_EXCEEDED" | "SOLVER_BALANCE_TOO_LOW" | "DEPOSITED_AMOUNT_TOO_LOW_TO_FILL" | "NEGATIVE_NEW_AMOUNT_AFTER_FEES" | "NO_QUOTES" | "MISSING_REVERT_DATA" | "REVERSE_SWAP_FAILED" | "GENERATE_SWAP_FAILED" | "TOO_LITTLE_RECEIVED" | "EXECUTION_REVERTED" | "NEW_CALLDATA_INCLUDES_HIGHER_RENT_FEE" | "TRANSACTION_REVERTED" | "TRANSACTION_TOO_LARGE" | "ORIGIN_CURRENCY_MISMATCH" | "NO_INTERNAL_SWAP_ROUTES_FOUND" | "SWAP_USES_TOO_MUCH_GAS" | "INSUFFICIENT_FUNDS_FOR_RENT" | "SPONSOR_BALANCE_TOO_LOW" | "ORDER_EXPIRED" | "ORDER_IS_CANCELLED" | "TRANSFER_FROM_FAILED" | "TRANSFER_FAILED" | "SIGNATURE_EXPIRED" | "INVALID_SIGNATURE" | "INSUFFICIENT_NATIVE_TOKENS_SUPPLIED" | "TRANSFER_AMOUNT_EXCEEDS_ALLOWANCE" | "TRANSFER_AMOUNT_EXCEEDS_BALANCE" | "INVALID_SENDER" | "ACCOUNT_ABSTRACTION_INVALID_NONCE" | "ACCOUNT_ABSTRACTION_SIGNATURE_ERROR" | "SEAPORT_INEXACT_FRACTION" | "TOKEN_NOT_TRANSFERABLE" | "ZERO_SELL_AMOUNT" | "MINT_NOT_ACTIVE" | "ERC_1155_TOO_MANY_REQUESTED" | "INCORRECT_PAYMENT" | "INVALID_GAS_PRICE" | "FLUID_DEX_ERROR" | "ORDER_ALREADY_FILLED" | "SEAPORT_INVALID_FULFILLER" | "INVALID_SIGNER" | "MINT_QUANTITY_EXCEEDS_MAX_PER_WALLET" | "MINT_QUANTITY_EXCEEDS_MAX_SUPPLY" | "JUPITER_INVALID_TOKEN_ACCOUNT" | "INVALID_NONCE" | "ACCOUNT_ABSTRACTION_GAS_LIMIT" | "CONTRACT_PAUSED" | "SWAP_IMPACT_TOO_HIGH" | "INSUFFICIENT_POOL_LIQUIDITY" | "POOL_CAP_EXCEEDED" | "TTL_EXPIRED" | "DEPOSIT_CONFIRMATION_TIMEOUT" | "ORPHANED_DEPOSIT_REFUND" | "GASLESS_PERMIT_BALANCE_TOO_LOW" | "MANUAL_ADMIN_REFUND" | "QUOTED_GAS_LIMIT_EXCEEDED" | "DESTINATION_TOKEN_TRANSFER_REJECTED" | "DEPOSIT_REORGED" | "BLOCKED_WALLET" | "PROTOCOL_DEADLINE_EXPIRED" | "TRANSACTION_NOT_INCLUDED" | "TRANSACTION_SUBMISSION_FAILED" | "N/A";
6856
6844
  /** @enum {string} */
6857
- refundFailReason?: "AMOUNT_TOO_LOW_TO_REFUND" | "NEGATIVE_NEW_AMOUNT_AFTER_FEES" | "SWAP_CURRENCY_NOT_ON_ORIGIN" | "REFUND_RECIPIENT_IS_VASP" | "MANUAL_REFUND_REQUIRED";
6845
+ refundFailReason?: "AMOUNT_TOO_LOW_TO_REFUND" | "NEGATIVE_NEW_AMOUNT_AFTER_FEES" | "SWAP_CURRENCY_NOT_ON_ORIGIN" | "REFUND_RECIPIENT_IS_VASP" | "REFUND_RECIPIENT_IS_BLOCKED" | "MANUAL_REFUND_REQUIRED";
6858
6846
  /** @description Regenerated requestId that now owns the sweep/fill for a superseded deposit-address request. */
6859
6847
  supersededByRequestId?: string | null;
6860
6848
  failedTxHash?: string;
@@ -9045,9 +9033,9 @@ export interface paths {
9045
9033
  refundTxHash?: string;
9046
9034
  /** @description Filter requests where this is the origin chain. */
9047
9035
  originChainId?: number;
9048
- /** @description Filter requests where this is the destination chain. */
9036
+ /** @description Filter requests where this is the destination chain. Requests are limited to the caller’s integrator and requests without an API key. */
9049
9037
  destinationChainId?: number;
9050
- /** @description Get all requests for a single chain in either direction. Overridden by originChainId / destinationChainId. */
9038
+ /** @description Get all requests for a single chain in either direction. Overridden by originChainId / destinationChainId. Requests are limited to the caller’s integrator and requests without an API key. */
9051
9039
  chainId?: number;
9052
9040
  /** @description Comma-separated list of private chain UUIDs to include in results. */
9053
9041
  privateChainsToInclude?: string;
@@ -9058,26 +9046,30 @@ export interface paths {
9058
9046
  /** @description Filter requests by status. */
9059
9047
  status?: "success" | "failure" | "refund" | "pending" | "depositing";
9060
9048
  /** @description Filter requests by failure reason. Only returns requests that failed with this specific reason. */
9061
- failReason?: "UNKNOWN" | "SLIPPAGE" | "AMOUNT_TOO_LOW_TO_REFUND" | "DEPOSIT_ADDRESS_MISMATCH" | "DEPOSIT_CHAIN_MISMATCH" | "INCORRECT_DEPOSIT_CURRENCY" | "DOUBLE_SPEND" | "SOLVER_CAPACITY_EXCEEDED" | "SOLVER_BALANCE_TOO_LOW" | "DEPOSITED_AMOUNT_TOO_LOW_TO_FILL" | "NEGATIVE_NEW_AMOUNT_AFTER_FEES" | "NO_QUOTES" | "MISSING_REVERT_DATA" | "REVERSE_SWAP_FAILED" | "GENERATE_SWAP_FAILED" | "TOO_LITTLE_RECEIVED" | "EXECUTION_REVERTED" | "NEW_CALLDATA_INCLUDES_HIGHER_RENT_FEE" | "TRANSACTION_REVERTED" | "TRANSACTION_TOO_LARGE" | "ORIGIN_CURRENCY_MISMATCH" | "NO_INTERNAL_SWAP_ROUTES_FOUND" | "SWAP_USES_TOO_MUCH_GAS" | "INSUFFICIENT_FUNDS_FOR_RENT" | "SPONSOR_BALANCE_TOO_LOW" | "ORDER_EXPIRED" | "ORDER_IS_CANCELLED" | "TRANSFER_FROM_FAILED" | "TRANSFER_FAILED" | "SIGNATURE_EXPIRED" | "INVALID_SIGNATURE" | "INSUFFICIENT_NATIVE_TOKENS_SUPPLIED" | "TRANSFER_AMOUNT_EXCEEDS_ALLOWANCE" | "TRANSFER_AMOUNT_EXCEEDS_BALANCE" | "INVALID_SENDER" | "ACCOUNT_ABSTRACTION_INVALID_NONCE" | "ACCOUNT_ABSTRACTION_SIGNATURE_ERROR" | "SEAPORT_INEXACT_FRACTION" | "TOKEN_NOT_TRANSFERABLE" | "ZERO_SELL_AMOUNT" | "MINT_NOT_ACTIVE" | "ERC_1155_TOO_MANY_REQUESTED" | "INCORRECT_PAYMENT" | "INVALID_GAS_PRICE" | "FLUID_DEX_ERROR" | "ORDER_ALREADY_FILLED" | "SEAPORT_INVALID_FULFILLER" | "INVALID_SIGNER" | "MINT_QUANTITY_EXCEEDS_MAX_PER_WALLET" | "MINT_QUANTITY_EXCEEDS_MAX_SUPPLY" | "JUPITER_INVALID_TOKEN_ACCOUNT" | "INVALID_NONCE" | "ACCOUNT_ABSTRACTION_GAS_LIMIT" | "CONTRACT_PAUSED" | "SWAP_IMPACT_TOO_HIGH" | "INSUFFICIENT_POOL_LIQUIDITY" | "TTL_EXPIRED" | "DEPOSIT_CONFIRMATION_TIMEOUT" | "ORPHANED_DEPOSIT_REFUND" | "GASLESS_PERMIT_BALANCE_TOO_LOW" | "MANUAL_ADMIN_REFUND" | "QUOTED_GAS_LIMIT_EXCEEDED" | "DESTINATION_TOKEN_TRANSFER_REJECTED" | "DEPOSIT_REORGED" | "BLOCKED_WALLET" | "PROTOCOL_DEADLINE_EXPIRED" | "TRANSACTION_NOT_INCLUDED" | "TRANSACTION_SUBMISSION_FAILED" | "N/A";
9049
+ failReason?: "UNKNOWN" | "SLIPPAGE" | "AMOUNT_TOO_LOW_TO_REFUND" | "DEPOSIT_ADDRESS_MISMATCH" | "DEPOSIT_CHAIN_MISMATCH" | "INCORRECT_DEPOSIT_CURRENCY" | "DOUBLE_SPEND" | "SOLVER_CAPACITY_EXCEEDED" | "SOLVER_BALANCE_TOO_LOW" | "DEPOSITED_AMOUNT_TOO_LOW_TO_FILL" | "NEGATIVE_NEW_AMOUNT_AFTER_FEES" | "NO_QUOTES" | "MISSING_REVERT_DATA" | "REVERSE_SWAP_FAILED" | "GENERATE_SWAP_FAILED" | "TOO_LITTLE_RECEIVED" | "EXECUTION_REVERTED" | "NEW_CALLDATA_INCLUDES_HIGHER_RENT_FEE" | "TRANSACTION_REVERTED" | "TRANSACTION_TOO_LARGE" | "ORIGIN_CURRENCY_MISMATCH" | "NO_INTERNAL_SWAP_ROUTES_FOUND" | "SWAP_USES_TOO_MUCH_GAS" | "INSUFFICIENT_FUNDS_FOR_RENT" | "SPONSOR_BALANCE_TOO_LOW" | "ORDER_EXPIRED" | "ORDER_IS_CANCELLED" | "TRANSFER_FROM_FAILED" | "TRANSFER_FAILED" | "SIGNATURE_EXPIRED" | "INVALID_SIGNATURE" | "INSUFFICIENT_NATIVE_TOKENS_SUPPLIED" | "TRANSFER_AMOUNT_EXCEEDS_ALLOWANCE" | "TRANSFER_AMOUNT_EXCEEDS_BALANCE" | "INVALID_SENDER" | "ACCOUNT_ABSTRACTION_INVALID_NONCE" | "ACCOUNT_ABSTRACTION_SIGNATURE_ERROR" | "SEAPORT_INEXACT_FRACTION" | "TOKEN_NOT_TRANSFERABLE" | "ZERO_SELL_AMOUNT" | "MINT_NOT_ACTIVE" | "ERC_1155_TOO_MANY_REQUESTED" | "INCORRECT_PAYMENT" | "INVALID_GAS_PRICE" | "FLUID_DEX_ERROR" | "ORDER_ALREADY_FILLED" | "SEAPORT_INVALID_FULFILLER" | "INVALID_SIGNER" | "MINT_QUANTITY_EXCEEDS_MAX_PER_WALLET" | "MINT_QUANTITY_EXCEEDS_MAX_SUPPLY" | "JUPITER_INVALID_TOKEN_ACCOUNT" | "INVALID_NONCE" | "ACCOUNT_ABSTRACTION_GAS_LIMIT" | "CONTRACT_PAUSED" | "SWAP_IMPACT_TOO_HIGH" | "INSUFFICIENT_POOL_LIQUIDITY" | "POOL_CAP_EXCEEDED" | "TTL_EXPIRED" | "DEPOSIT_CONFIRMATION_TIMEOUT" | "ORPHANED_DEPOSIT_REFUND" | "GASLESS_PERMIT_BALANCE_TOO_LOW" | "MANUAL_ADMIN_REFUND" | "QUOTED_GAS_LIMIT_EXCEEDED" | "DESTINATION_TOKEN_TRANSFER_REJECTED" | "DEPOSIT_REORGED" | "BLOCKED_WALLET" | "PROTOCOL_DEADLINE_EXPIRED" | "TRANSACTION_NOT_INCLUDED" | "TRANSACTION_SUBMISSION_FAILED" | "N/A";
9062
9050
  /** @description Filter requests by refund failure reason. */
9063
- refundFailReason?: "AMOUNT_TOO_LOW_TO_REFUND" | "NEGATIVE_NEW_AMOUNT_AFTER_FEES" | "SWAP_CURRENCY_NOT_ON_ORIGIN" | "REFUND_RECIPIENT_IS_VASP" | "MANUAL_REFUND_REQUIRED";
9064
- /** @description Filter requests by API key. Accepts a single value or a comma-separated list (e.g. key1,key2) — results include requests matching any of the supplied keys. */
9051
+ refundFailReason?: "AMOUNT_TOO_LOW_TO_REFUND" | "NEGATIVE_NEW_AMOUNT_AFTER_FEES" | "SWAP_CURRENCY_NOT_ON_ORIGIN" | "REFUND_RECIPIENT_IS_VASP" | "REFUND_RECIPIENT_IS_BLOCKED" | "MANUAL_REFUND_REQUIRED";
9052
+ /** @description Filter requests by API key. Accepts a single value or a comma-separated list (OR matching). Maximum 50 values across apiKey and apiKeyId. */
9065
9053
  apiKey?: string;
9054
+ /** @description Filter by App IDs (app_id_<uuid>, comma-separated, maximum 50) owned by your integrator. Matches indexed App attribution across current and revoked keys. */
9055
+ appId?: string;
9056
+ /** @description Filter by API key IDs (lowercase key_id_<uuid>, comma-separated), owned by your integrator. OR matching with apiKey; maximum 50 values combined. */
9057
+ apiKeyId?: string;
9066
9058
  /** @description Filter requests by requestType (case-insensitive). Supported values: Bridge, Crosschain Swap, Same-chain Swap, Send, Wrap, Unwrap, Call. */
9067
9059
  requestType?: string;
9068
- /** @description Filter requests by the exact `referrer` value supplied at quote time. Must be combined with the `apiKey` parameter, and every supplied key must belong to the authenticating integrator — referrer filtering only exposes your own requests. */
9060
+ /** @description Filter requests by the exact `referrer` value supplied at quote time. Without `apiKeyId` or `apiKey`, returns only matching public keyless requests. Every supplied key must belong to the authenticating integrator. Includes matching requests for the selected keys and public requests with neither a recorded API key nor a legacy fill API key, regardless of age. Existing visibility restrictions still apply; public requests are not assigned to your integrator. */
9069
9061
  referrer?: string;
9070
9062
  /** @description Filter by origin currency chain ID. */
9071
9063
  currencyInChainId?: number;
9072
- /** @description Filter by destination currency chain ID. */
9064
+ /** @description Filter by destination currency chain ID. Requests are limited to the caller’s integrator and requests without an API key. */
9073
9065
  currencyOutChainId?: number;
9074
9066
  /** @description Filter by origin currency contract address. */
9075
9067
  currencyInAddress?: string;
9076
- /** @description Filter by destination currency contract address. */
9068
+ /** @description Filter by destination currency contract address. Requests are limited to the caller’s integrator and requests without an API key. */
9077
9069
  currencyOutAddress?: string;
9078
9070
  /** @description Filter by origin currency symbol (e.g. USDC). Case-insensitive; matches across all chains. */
9079
9071
  currencyInSymbol?: string;
9080
- /** @description Filter by destination currency symbol (e.g. USDC). Case-insensitive; matches across all chains. */
9072
+ /** @description Filter by destination currency symbol (e.g. USDC). Case-insensitive; matches across all chains. Requests are limited to the caller’s integrator and requests without an API key. */
9081
9073
  currencyOutSymbol?: string;
9082
9074
  /** @description Field to sort by. */
9083
9075
  sortBy?: "createdAt" | "updatedAt" | "amountUsd";
@@ -9103,13 +9095,13 @@ export interface paths {
9103
9095
  fillTimeMin?: number;
9104
9096
  /** @description Filter requests with fill time ≤ this value (seconds). */
9105
9097
  fillTimeMax?: number;
9106
- /** @description Comma-separated feature flags to filter by. Requests must have at least one of the specified features. Supported values: gasless_execution, gasless_swap, fast_fill, gas_top_up, fixed_rate, app_fees, deposit_address. */
9098
+ /** @description Comma-separated feature flags to filter by. Requests must have at least one of the specified features. Supported values: gasless_execution, gasless_swap, fast_fill, gas_top_up, fixed_rate, app_fees, deposit_address, fee_sponsorship. */
9107
9099
  features?: string;
9108
9100
  /** @description When true, include fields available only to the authenticating integrator for their own requests. */
9109
9101
  includeAuthenticatedData?: boolean;
9110
9102
  /** @description Only effective when `id` is also provided. When true, returns the parent request AND any child requests. When false or omitted, only the exact `request_id` match is returned. */
9111
9103
  includeChildRequests?: boolean;
9112
- /** @description JSON-encoded array of filter-group objects. Fields within each group are AND'd; groups are OR'd. Prefix a key with 'not:' to negate it (must_not). Values can be a scalar or an array (OR semantics within the field). Example: [{"depositAddress":"0xabc","originChainId":8453},{"depositAddress":"0x123","originChainId":1}]. Negation example: [{"not:status":"failure"}]. Array value example: [{"not:status":["failure","refund"]}]. A value of null is a null-check ("is empty"/"is not empty") instead of an equality test, for any key. Null-check example: [{"depositAddress":null}] (is empty / does not exist), [{"not:depositAddress":null}] (is not empty / exists). null cannot be combined with real values in an array. Using a `referrer` key (or `not:referrer`) in any group requires the top-level `apiKey` parameter with keys owned by the authenticating integrator, which scopes the entire result set to your own requests. */
9104
+ /** @description JSON-encoded array of filter-group objects. Fields within each group are AND'd; groups are OR'd. Prefix a key with 'not:' to negate it (must_not). Values can be a scalar or an array (OR semantics within the field). Example: [{"depositAddress":"0xabc","originChainId":8453},{"depositAddress":"0x123","originChainId":1}]. Negation example: [{"not:status":"failure"}]. Array value example: [{"not:status":["failure","refund"]}]. A value of null is a null-check ("is empty"/"is not empty") instead of an equality test, for any key. Null-check example: [{"depositAddress":null}] (is empty / does not exist), [{"not:depositAddress":null}] (is not empty / exists). null cannot be combined with real values in an array. At most 50 distinct string values across id, term, and grouped id/term filters (including negations) are allowed; a top-level id with includeChildRequests is excluded from this limit. Requests are limited to the caller’s integrator and requests without an API key. A `referrer` key (or `not:referrer`) without top-level `apiKeyId` or `apiKey` limits that group to public keyless requests. Optional key parameters must contain keys owned by the authenticating integrator. Referrer groups also include matching public keyless requests regardless of age; groups without a referrer retain their existing scope unless a top-level referrer is supplied. */
9113
9105
  filters?: string;
9114
9106
  };
9115
9107
  header: {
@@ -9133,6 +9125,13 @@ export interface paths {
9133
9125
  refundTo?: string | null;
9134
9126
  /** @description Regenerated requestId that now owns the sweep/fill for a superseded deposit-address request. Currently only set for Bitcoin (BVM) deposit-address requests. */
9135
9127
  supersededByRequestId?: string | null;
9128
+ /** @description Persisted duplicate-deposit refund relationships, or null when none are recorded. Links can exist before a refund completes; check each linked request's status for its outcome. */
9129
+ duplicateDeposits?: ({
9130
+ /** @description Original request associated with this duplicate-deposit refund request, or null for a parent request. */
9131
+ parentRequestId?: string | null;
9132
+ /** @description Request IDs tracking refunds for duplicate deposits on this request. */
9133
+ refundRequestIds?: string[];
9134
+ }) | null;
9136
9135
  depositAddress?: ({
9137
9136
  address?: string;
9138
9137
  /** @enum {string} */
@@ -9143,11 +9142,21 @@ export interface paths {
9143
9142
  recoveryAddress?: string | null;
9144
9143
  }) | null;
9145
9144
  data?: {
9145
+ /**
9146
+ * @description Claim status stored on the request. New claims are recorded by a background job after recovery executes on the Hub; this does not confirm withdrawal to the user's wallet. Older records may predate recovery confirmation. Null when no claim status has been recorded. Historical claims require a separate backfill. Updated asynchronously after indexing.
9147
+ * @enum {string|null}
9148
+ */
9149
+ claimStatus?: "unclaimed" | "claimed" | null;
9150
+ /**
9151
+ * @description Withdrawal inferred from the Hub balance for confirmed claims. Withdrawn means the depositor's Hub balance for this token is zero; not_withdrawn means it is nonzero. Cached for up to three minutes. Balances are shared across deposits; this does not confirm receipt in the destination wallet. Null if not claimed or the balance lookup or deposit identity is unavailable or ambiguous.
9152
+ * @enum {string|null}
9153
+ */
9154
+ withdrawalStatus?: "not_withdrawn" | "withdrawn" | null;
9146
9155
  slippageTolerance?: string;
9147
9156
  /** @enum {string|null} */
9148
- failReason?: "UNKNOWN" | "SLIPPAGE" | "AMOUNT_TOO_LOW_TO_REFUND" | "DEPOSIT_ADDRESS_MISMATCH" | "DEPOSIT_CHAIN_MISMATCH" | "INCORRECT_DEPOSIT_CURRENCY" | "DOUBLE_SPEND" | "SOLVER_CAPACITY_EXCEEDED" | "SOLVER_BALANCE_TOO_LOW" | "DEPOSITED_AMOUNT_TOO_LOW_TO_FILL" | "NEGATIVE_NEW_AMOUNT_AFTER_FEES" | "NO_QUOTES" | "MISSING_REVERT_DATA" | "REVERSE_SWAP_FAILED" | "GENERATE_SWAP_FAILED" | "TOO_LITTLE_RECEIVED" | "EXECUTION_REVERTED" | "NEW_CALLDATA_INCLUDES_HIGHER_RENT_FEE" | "TRANSACTION_REVERTED" | "TRANSACTION_TOO_LARGE" | "ORIGIN_CURRENCY_MISMATCH" | "NO_INTERNAL_SWAP_ROUTES_FOUND" | "SWAP_USES_TOO_MUCH_GAS" | "INSUFFICIENT_FUNDS_FOR_RENT" | "SPONSOR_BALANCE_TOO_LOW" | "ORDER_EXPIRED" | "ORDER_IS_CANCELLED" | "TRANSFER_FROM_FAILED" | "TRANSFER_FAILED" | "SIGNATURE_EXPIRED" | "INVALID_SIGNATURE" | "INSUFFICIENT_NATIVE_TOKENS_SUPPLIED" | "TRANSFER_AMOUNT_EXCEEDS_ALLOWANCE" | "TRANSFER_AMOUNT_EXCEEDS_BALANCE" | "INVALID_SENDER" | "ACCOUNT_ABSTRACTION_INVALID_NONCE" | "ACCOUNT_ABSTRACTION_SIGNATURE_ERROR" | "SEAPORT_INEXACT_FRACTION" | "TOKEN_NOT_TRANSFERABLE" | "ZERO_SELL_AMOUNT" | "MINT_NOT_ACTIVE" | "ERC_1155_TOO_MANY_REQUESTED" | "INCORRECT_PAYMENT" | "INVALID_GAS_PRICE" | "FLUID_DEX_ERROR" | "ORDER_ALREADY_FILLED" | "SEAPORT_INVALID_FULFILLER" | "INVALID_SIGNER" | "MINT_QUANTITY_EXCEEDS_MAX_PER_WALLET" | "MINT_QUANTITY_EXCEEDS_MAX_SUPPLY" | "JUPITER_INVALID_TOKEN_ACCOUNT" | "INVALID_NONCE" | "ACCOUNT_ABSTRACTION_GAS_LIMIT" | "CONTRACT_PAUSED" | "SWAP_IMPACT_TOO_HIGH" | "INSUFFICIENT_POOL_LIQUIDITY" | "TTL_EXPIRED" | "DEPOSIT_CONFIRMATION_TIMEOUT" | "ORPHANED_DEPOSIT_REFUND" | "GASLESS_PERMIT_BALANCE_TOO_LOW" | "MANUAL_ADMIN_REFUND" | "QUOTED_GAS_LIMIT_EXCEEDED" | "DESTINATION_TOKEN_TRANSFER_REJECTED" | "DEPOSIT_REORGED" | "BLOCKED_WALLET" | "PROTOCOL_DEADLINE_EXPIRED" | "TRANSACTION_NOT_INCLUDED" | "TRANSACTION_SUBMISSION_FAILED" | "N/A" | null;
9157
+ failReason?: "UNKNOWN" | "SLIPPAGE" | "AMOUNT_TOO_LOW_TO_REFUND" | "DEPOSIT_ADDRESS_MISMATCH" | "DEPOSIT_CHAIN_MISMATCH" | "INCORRECT_DEPOSIT_CURRENCY" | "DOUBLE_SPEND" | "SOLVER_CAPACITY_EXCEEDED" | "SOLVER_BALANCE_TOO_LOW" | "DEPOSITED_AMOUNT_TOO_LOW_TO_FILL" | "NEGATIVE_NEW_AMOUNT_AFTER_FEES" | "NO_QUOTES" | "MISSING_REVERT_DATA" | "REVERSE_SWAP_FAILED" | "GENERATE_SWAP_FAILED" | "TOO_LITTLE_RECEIVED" | "EXECUTION_REVERTED" | "NEW_CALLDATA_INCLUDES_HIGHER_RENT_FEE" | "TRANSACTION_REVERTED" | "TRANSACTION_TOO_LARGE" | "ORIGIN_CURRENCY_MISMATCH" | "NO_INTERNAL_SWAP_ROUTES_FOUND" | "SWAP_USES_TOO_MUCH_GAS" | "INSUFFICIENT_FUNDS_FOR_RENT" | "SPONSOR_BALANCE_TOO_LOW" | "ORDER_EXPIRED" | "ORDER_IS_CANCELLED" | "TRANSFER_FROM_FAILED" | "TRANSFER_FAILED" | "SIGNATURE_EXPIRED" | "INVALID_SIGNATURE" | "INSUFFICIENT_NATIVE_TOKENS_SUPPLIED" | "TRANSFER_AMOUNT_EXCEEDS_ALLOWANCE" | "TRANSFER_AMOUNT_EXCEEDS_BALANCE" | "INVALID_SENDER" | "ACCOUNT_ABSTRACTION_INVALID_NONCE" | "ACCOUNT_ABSTRACTION_SIGNATURE_ERROR" | "SEAPORT_INEXACT_FRACTION" | "TOKEN_NOT_TRANSFERABLE" | "ZERO_SELL_AMOUNT" | "MINT_NOT_ACTIVE" | "ERC_1155_TOO_MANY_REQUESTED" | "INCORRECT_PAYMENT" | "INVALID_GAS_PRICE" | "FLUID_DEX_ERROR" | "ORDER_ALREADY_FILLED" | "SEAPORT_INVALID_FULFILLER" | "INVALID_SIGNER" | "MINT_QUANTITY_EXCEEDS_MAX_PER_WALLET" | "MINT_QUANTITY_EXCEEDS_MAX_SUPPLY" | "JUPITER_INVALID_TOKEN_ACCOUNT" | "INVALID_NONCE" | "ACCOUNT_ABSTRACTION_GAS_LIMIT" | "CONTRACT_PAUSED" | "SWAP_IMPACT_TOO_HIGH" | "INSUFFICIENT_POOL_LIQUIDITY" | "POOL_CAP_EXCEEDED" | "TTL_EXPIRED" | "DEPOSIT_CONFIRMATION_TIMEOUT" | "ORPHANED_DEPOSIT_REFUND" | "GASLESS_PERMIT_BALANCE_TOO_LOW" | "MANUAL_ADMIN_REFUND" | "QUOTED_GAS_LIMIT_EXCEEDED" | "DESTINATION_TOKEN_TRANSFER_REJECTED" | "DEPOSIT_REORGED" | "BLOCKED_WALLET" | "PROTOCOL_DEADLINE_EXPIRED" | "TRANSACTION_NOT_INCLUDED" | "TRANSACTION_SUBMISSION_FAILED" | "N/A" | null;
9149
9158
  /** @enum {string|null} */
9150
- refundFailReason?: "AMOUNT_TOO_LOW_TO_REFUND" | "NEGATIVE_NEW_AMOUNT_AFTER_FEES" | "SWAP_CURRENCY_NOT_ON_ORIGIN" | "REFUND_RECIPIENT_IS_VASP" | "MANUAL_REFUND_REQUIRED" | null;
9159
+ refundFailReason?: "AMOUNT_TOO_LOW_TO_REFUND" | "NEGATIVE_NEW_AMOUNT_AFTER_FEES" | "SWAP_CURRENCY_NOT_ON_ORIGIN" | "REFUND_RECIPIENT_IS_VASP" | "REFUND_RECIPIENT_IS_BLOCKED" | "MANUAL_REFUND_REQUIRED" | null;
9151
9160
  failedTxHash?: string;
9152
9161
  failedTxBlockNumber?: number;
9153
9162
  failedCallData?: {
@@ -9635,9 +9644,73 @@ export interface paths {
9635
9644
  };
9636
9645
  }) | null;
9637
9646
  /** @description Platform fee — only returned when the caller authenticates as the request's creator integrator. */
9638
- platformFee?: Record<string, unknown> | null;
9647
+ platformFee?: ({
9648
+ bucket?: string;
9649
+ ruleId?: string;
9650
+ relayFeeBps?: number;
9651
+ integratorFeeBps?: number;
9652
+ totalFeeBps?: number;
9653
+ relayFee?: {
9654
+ currency?: {
9655
+ chainId?: number;
9656
+ address?: string;
9657
+ symbol?: string;
9658
+ name?: string;
9659
+ decimals?: number;
9660
+ metadata?: {
9661
+ logoURI?: string;
9662
+ verified?: boolean;
9663
+ isNative?: boolean;
9664
+ };
9665
+ };
9666
+ amount?: string;
9667
+ amountFormatted?: string;
9668
+ amountUsd?: string;
9669
+ minimumAmount?: string;
9670
+ };
9671
+ integratorFee?: {
9672
+ currency?: {
9673
+ chainId?: number;
9674
+ address?: string;
9675
+ symbol?: string;
9676
+ name?: string;
9677
+ decimals?: number;
9678
+ metadata?: {
9679
+ logoURI?: string;
9680
+ verified?: boolean;
9681
+ isNative?: boolean;
9682
+ };
9683
+ };
9684
+ amount?: string;
9685
+ amountFormatted?: string;
9686
+ amountUsd?: string;
9687
+ minimumAmount?: string;
9688
+ };
9689
+ totalPlatformFee?: {
9690
+ currency?: {
9691
+ chainId?: number;
9692
+ address?: string;
9693
+ symbol?: string;
9694
+ name?: string;
9695
+ decimals?: number;
9696
+ metadata?: {
9697
+ logoURI?: string;
9698
+ verified?: boolean;
9699
+ isNative?: boolean;
9700
+ };
9701
+ };
9702
+ amount?: string;
9703
+ amountFormatted?: string;
9704
+ amountUsd?: string;
9705
+ minimumAmount?: string;
9706
+ };
9707
+ integratorFeeRecipient?: string | null;
9708
+ }) | null;
9639
9709
  /** @description Referrer — only returned when the caller authenticates as the request's creator integrator. */
9640
9710
  referrer?: string | null;
9711
+ /** @description Durable App attribution, returned only for your own requests with includeAuthenticatedData=true. Null when historical attribution is unavailable. */
9712
+ appId?: string | null;
9713
+ appName?: string | null;
9641
9714
  /** @description API key name — only returned when the caller authenticates as the request's creator integrator. */
9642
9715
  apiKeyName?: string | null;
9643
9716
  /** @description Address(es) that failed wallet screening and caused a BLOCKED_WALLET failure. Only returned when the caller authenticates as the request's creator integrator. Never includes screening-provider scores or reasons. */
@@ -9976,7 +10049,7 @@ export interface paths {
9976
10049
  };
9977
10050
  }) | null;
9978
10051
  requestType?: string | null;
9979
- features?: ("gasless_execution" | "gasless_swap" | "fast_fill" | "gas_top_up" | "fixed_rate" | "app_fees" | "deposit_address")[];
10052
+ features?: ("gasless_execution" | "gasless_swap" | "fast_fill" | "gas_top_up" | "fixed_rate" | "app_fees" | "deposit_address" | "fee_sponsorship")[];
9980
10053
  createdAt?: string;
9981
10054
  updatedAt?: string;
9982
10055
  })[];
@@ -9991,6 +10064,12 @@ export interface paths {
9991
10064
  };
9992
10065
  "/requests/metadata": {
9993
10066
  post: {
10067
+ parameters: {
10068
+ header?: {
10069
+ /** @description API key of the integrator that created the request. Required. */
10070
+ "x-api-key"?: string;
10071
+ };
10072
+ };
9994
10073
  requestBody: {
9995
10074
  content: {
9996
10075
  "application/json": {
@@ -10010,6 +10089,38 @@ export interface paths {
10010
10089
  };
10011
10090
  };
10012
10091
  };
10092
+ /** @description Default Response */
10093
+ 400: {
10094
+ content: {
10095
+ "application/json": {
10096
+ message?: string;
10097
+ };
10098
+ };
10099
+ };
10100
+ /** @description Default Response */
10101
+ 401: {
10102
+ content: {
10103
+ "application/json": {
10104
+ message?: string;
10105
+ };
10106
+ };
10107
+ };
10108
+ /** @description Default Response */
10109
+ 403: {
10110
+ content: {
10111
+ "application/json": {
10112
+ message?: string;
10113
+ };
10114
+ };
10115
+ };
10116
+ /** @description Default Response */
10117
+ 404: {
10118
+ content: {
10119
+ "application/json": {
10120
+ message?: string;
10121
+ };
10122
+ };
10123
+ };
10013
10124
  };
10014
10125
  };
10015
10126
  };
@@ -10055,6 +10166,14 @@ export interface paths {
10055
10166
  };
10056
10167
  };
10057
10168
  };
10169
+ /** @description Default Response */
10170
+ 503: {
10171
+ content: {
10172
+ "application/json": {
10173
+ message?: string;
10174
+ };
10175
+ };
10176
+ };
10058
10177
  };
10059
10178
  };
10060
10179
  };
@@ -10088,7 +10207,7 @@ export interface paths {
10088
10207
  };
10089
10208
  };
10090
10209
  "/transactions/deposit-address/reindex": {
10091
- /** @description Re-checks the balances of a previously-registered deposit address and queues a withdrawal for any currency with a non-zero balance. Useful when funds were sent to a deposit address but the normal indexer flow did not pick them up. */
10210
+ /** @description Re-checks the balances of a previously-registered deposit address and queues a withdrawal for any currency with a non-zero balance. Useful when funds were sent to a deposit address but the normal indexer flow did not pick them up. For a Deposit Address V2 address, queues a search for recent deposit transactions instead, at most once per hour for each currency. */
10092
10211
  post: {
10093
10212
  parameters: {
10094
10213
  header?: {
@@ -10109,6 +10228,8 @@ export interface paths {
10109
10228
  targetChainId?: number;
10110
10229
  /** @description Address of a specific currency to reindex. Defaults to checking every depositable currency on the chain. */
10111
10230
  currency?: string;
10231
+ /** @description Deposit Address V2 only. Transaction to reindex. Without it, the endpoint finds recent deposit transactions itself. */
10232
+ txHash?: string;
10112
10233
  };
10113
10234
  };
10114
10235
  };
@@ -10163,6 +10284,15 @@ export interface paths {
10163
10284
  };
10164
10285
  };
10165
10286
  /** @description Default Response */
10287
+ 409: {
10288
+ content: {
10289
+ "application/json": {
10290
+ /** @description Deposit Address V2 only. The transaction is still pending. */
10291
+ message?: string;
10292
+ };
10293
+ };
10294
+ };
10295
+ /** @description Default Response */
10166
10296
  429: {
10167
10297
  content: {
10168
10298
  "application/json": {
@@ -10200,85 +10330,8 @@ export interface paths {
10200
10330
  200: {
10201
10331
  content: {
10202
10332
  "application/json": {
10203
- /** @description An array of swap sources */
10204
- sources?: string[];
10205
- };
10206
- };
10207
- };
10208
- /** @description Default Response */
10209
- 400: {
10210
- content: {
10211
- "application/json": {
10212
- /** @description Descriptive error message */
10213
- message?: string;
10214
- };
10215
- };
10216
- };
10217
- };
10218
- };
10219
- };
10220
- "/loadforge.txt": {
10221
- get: {
10222
- responses: {
10223
- /** @description Verification string */
10224
- 200: {
10225
- content: {
10226
- "application/json": string;
10227
- };
10228
- };
10229
- /** @description Default Response */
10230
- 404: {
10231
- content: {
10232
- "application/json": {
10233
- message?: string;
10234
- };
10235
- };
10236
- };
10237
- };
10238
- };
10239
- };
10240
- "/conduit/install": {
10241
- post: {
10242
- parameters: {
10243
- header: {
10244
- "X-CONDUIT-INTEGRATION-SECRET": string;
10245
- };
10246
- };
10247
- requestBody: {
10248
- content: {
10249
- "application/json": {
10250
- /** @enum {string} */
10251
- event: "INSTALLED" | "UNINSTALLED" | "NETWORK_UPDATED" | "NETWORK_DELETED";
10252
- id: string;
10253
- chain_id?: number;
10254
- parent_chain_id?: number;
10255
- /** @enum {string} */
10256
- type?: "OPTIMISM" | "ARBITRUM";
10257
- name?: string;
10258
- rpc?: string;
10259
- ws?: string;
10260
- explorer?: string;
10261
- logo_url?: string;
10262
- icon_url?: string;
10263
- brand_color?: string;
10264
- native_currency?: {
10265
- name?: string;
10266
- symbol?: string;
10267
- decimals?: number;
10268
- contract?: string;
10269
- };
10270
- contracts?: Record<string, never>;
10271
- };
10272
- };
10273
- };
10274
- responses: {
10275
- /** @description Default Response */
10276
- 200: {
10277
- content: {
10278
- "application/json": {
10279
- id?: string;
10280
- status?: string;
10281
- eta_seconds?: number;
10333
+ /** @description An array of swap sources */
10334
+ sources?: string[];
10282
10335
  };
10283
10336
  };
10284
10337
  };
@@ -10286,28 +10339,28 @@ export interface paths {
10286
10339
  400: {
10287
10340
  content: {
10288
10341
  "application/json": {
10289
- failure_reason?: string;
10290
- code?: string;
10291
- status?: string;
10342
+ /** @description Descriptive error message */
10343
+ message?: string;
10292
10344
  };
10293
10345
  };
10294
10346
  };
10295
- /** @description Default Response */
10296
- 401: {
10347
+ };
10348
+ };
10349
+ };
10350
+ "/loadforge.txt": {
10351
+ get: {
10352
+ responses: {
10353
+ /** @description Verification string */
10354
+ 200: {
10297
10355
  content: {
10298
- "application/json": {
10299
- message?: string;
10300
- code?: string;
10301
- };
10356
+ "application/json": string;
10302
10357
  };
10303
10358
  };
10304
10359
  /** @description Default Response */
10305
- 500: {
10360
+ 404: {
10306
10361
  content: {
10307
10362
  "application/json": {
10308
- failure_reason?: string;
10309
- code?: string;
10310
- status?: string;
10363
+ message?: string;
10311
10364
  };
10312
10365
  };
10313
10366
  };
@@ -10326,7 +10379,6 @@ export interface paths {
10326
10379
  MATIC?: number;
10327
10380
  USDC?: number;
10328
10381
  XAI?: number;
10329
- SIPHER?: number;
10330
10382
  TG7?: number;
10331
10383
  POP?: number;
10332
10384
  OMI?: number;
@@ -10336,7 +10388,6 @@ export interface paths {
10336
10388
  G?: number;
10337
10389
  G7?: number;
10338
10390
  POWER?: number;
10339
- SYND?: number;
10340
10391
  };
10341
10392
  };
10342
10393
  };
@@ -10364,6 +10415,10 @@ export interface paths {
10364
10415
  address?: string;
10365
10416
  /** @description ID to search for a currency group */
10366
10417
  currencyId?: string;
10418
+ /** @description Filter by currency symbol */
10419
+ symbol?: string;
10420
+ /** @description Filter by currency group ID */
10421
+ groupID?: string;
10367
10422
  /** @description List of token addresses, like: chainId:address */
10368
10423
  tokens?: string[];
10369
10424
  /** @description Filter verified currencies */
@@ -10391,7 +10446,7 @@ export interface paths {
10391
10446
  name?: string;
10392
10447
  decimals?: number;
10393
10448
  /** @enum {string} */
10394
- vmType?: "bvm" | "evm" | "svm" | "tvm" | "tonvm" | "hypevm" | "lvm" | "xrpvm" | "hederavm";
10449
+ vmType?: "bvm" | "evm" | "svm" | "tvm" | "tonvm" | "hypevm" | "lvm" | "xrpvm" | "hederavm" | "atlasvm";
10395
10450
  metadata?: {
10396
10451
  logoURI?: string;
10397
10452
  verified?: boolean;
@@ -10424,6 +10479,10 @@ export interface paths {
10424
10479
  address?: string;
10425
10480
  /** @description ID to search for a currency */
10426
10481
  currencyId?: string;
10482
+ /** @description Filter by currency symbol */
10483
+ symbol?: string;
10484
+ /** @description Filter by currency group ID */
10485
+ groupID?: string;
10427
10486
  /** @description List of token addresses, like: chainId:address */
10428
10487
  tokens?: string[];
10429
10488
  /** @description Filter verified currencies */
@@ -10437,7 +10496,7 @@ export interface paths {
10437
10496
  includeAllChains?: boolean;
10438
10497
  /** @description Uses 3rd party API's to search for a token, in case relay does not have it indexed */
10439
10498
  useExternalSearch?: boolean;
10440
- /** @description Returns only currencies supported with deposit address bridging */
10499
+ /** @description Returns eligible deposit-address input currencies for the caller's DA mode. Eligibility does not guarantee availability for every destination and amount. */
10441
10500
  depositAddressOnly?: boolean;
10442
10501
  };
10443
10502
  };
@@ -10453,7 +10512,7 @@ export interface paths {
10453
10512
  name?: string;
10454
10513
  decimals?: number;
10455
10514
  /** @enum {string} */
10456
- vmType?: "bvm" | "evm" | "svm" | "tvm" | "tonvm" | "hypevm" | "lvm" | "xrpvm" | "hederavm";
10515
+ vmType?: "bvm" | "evm" | "svm" | "tvm" | "tonvm" | "hypevm" | "lvm" | "xrpvm" | "hederavm" | "atlasvm";
10457
10516
  metadata?: {
10458
10517
  logoURI?: string;
10459
10518
  verified?: boolean;
@@ -10557,7 +10616,7 @@ export interface paths {
10557
10616
  name?: string;
10558
10617
  decimals?: number;
10559
10618
  /** @enum {string} */
10560
- vmType?: "bvm" | "evm" | "svm" | "tvm" | "tonvm" | "hypevm" | "lvm" | "xrpvm" | "hederavm";
10619
+ vmType?: "bvm" | "evm" | "svm" | "tvm" | "tonvm" | "hypevm" | "lvm" | "xrpvm" | "hederavm" | "atlasvm";
10561
10620
  metadata?: {
10562
10621
  logoURI?: string;
10563
10622
  verified?: boolean;
@@ -10588,7 +10647,7 @@ export interface paths {
10588
10647
  name?: string;
10589
10648
  decimals?: number;
10590
10649
  /** @enum {string} */
10591
- vmType?: "bvm" | "evm" | "svm" | "tvm" | "tonvm" | "hypevm" | "lvm" | "xrpvm" | "hederavm";
10650
+ vmType?: "bvm" | "evm" | "svm" | "tvm" | "tonvm" | "hypevm" | "lvm" | "xrpvm" | "hederavm" | "atlasvm";
10592
10651
  metadata?: {
10593
10652
  logoURI?: string;
10594
10653
  verified?: boolean;
@@ -10706,6 +10765,21 @@ export interface paths {
10706
10765
  };
10707
10766
  };
10708
10767
  };
10768
+ "/currencies/classifications": {
10769
+ get: {
10770
+ responses: {
10771
+ /** @description Default Response */
10772
+ 200: {
10773
+ content: {
10774
+ "application/json": {
10775
+ major: string[];
10776
+ stable: string[];
10777
+ };
10778
+ };
10779
+ };
10780
+ };
10781
+ };
10782
+ };
10709
10783
  "/provision/chain": {
10710
10784
  post: {
10711
10785
  parameters: {
@@ -10870,6 +10944,21 @@ export interface paths {
10870
10944
  };
10871
10945
  };
10872
10946
  /** @description Default Response */
10947
+ 400: {
10948
+ content: {
10949
+ "application/json": {
10950
+ message: string;
10951
+ /** @enum {string} */
10952
+ errorCode?: "PROTECTED_RELAY_ADDRESS";
10953
+ errorData?: {
10954
+ address: string;
10955
+ addressTypes: string[];
10956
+ chainIds: number[];
10957
+ };
10958
+ };
10959
+ };
10960
+ };
10961
+ /** @description Default Response */
10873
10962
  401: {
10874
10963
  content: {
10875
10964
  "application/json": {
@@ -10938,13 +11027,27 @@ export interface paths {
10938
11027
  "application/json": {
10939
11028
  chainId: number;
10940
11029
  transactionId: string;
11030
+ hints?: {
11031
+ "atlas-vm"?: {
11032
+ depositor: string;
11033
+ };
11034
+ };
10941
11035
  };
10942
11036
  };
10943
11037
  };
10944
11038
  responses: {
10945
11039
  /** @description Default Response */
10946
11040
  200: {
10947
- content: never;
11041
+ content: {
11042
+ "application/json": {
11043
+ success: boolean;
11044
+ execution: {
11045
+ chainId: number;
11046
+ oracleAddress: string;
11047
+ idempotencyKey: string;
11048
+ };
11049
+ };
11050
+ };
10948
11051
  };
10949
11052
  };
10950
11053
  };
@@ -11001,8 +11104,142 @@ export interface paths {
11001
11104
  };
11002
11105
  };
11003
11106
  };
11107
+ "/withdrawals/balances": {
11108
+ /** @description Lists credited Hub balances for one recovery owner. Excludes deposits awaiting attestation or recovery; discovery is eventually consistent. */
11109
+ get: {
11110
+ parameters: {
11111
+ query: {
11112
+ recoveryAddress: string;
11113
+ ownerChainId: number;
11114
+ limit?: number;
11115
+ continuation?: string;
11116
+ };
11117
+ header?: {
11118
+ /** @description Optional API key for higher rate limits. */
11119
+ "x-api-key"?: string;
11120
+ };
11121
+ };
11122
+ responses: {
11123
+ /** @description Default Response */
11124
+ 200: {
11125
+ content: {
11126
+ "application/json": {
11127
+ balances: ({
11128
+ hubTokenId: string;
11129
+ currency: ({
11130
+ chainId: number;
11131
+ address: string;
11132
+ name: string | null;
11133
+ symbol: string | null;
11134
+ decimals: number | null;
11135
+ }) | null;
11136
+ amount: string;
11137
+ amountFormatted: string | null;
11138
+ amountUsd: string | null;
11139
+ })[];
11140
+ continuation: string | null;
11141
+ };
11142
+ };
11143
+ };
11144
+ /** @description Default Response */
11145
+ 400: {
11146
+ content: {
11147
+ "application/json": {
11148
+ message: string;
11149
+ errorCode: string;
11150
+ };
11151
+ };
11152
+ };
11153
+ /** @description Default Response */
11154
+ 500: {
11155
+ content: {
11156
+ "application/json": {
11157
+ message: string;
11158
+ errorCode: string;
11159
+ };
11160
+ };
11161
+ };
11162
+ };
11163
+ };
11164
+ };
11165
+ "/access-tokens": {
11166
+ /** @description Exchange a tier 2+ backend API key for a 15-minute public API session JWT. */
11167
+ post: {
11168
+ parameters: {
11169
+ header: {
11170
+ "x-api-key": string;
11171
+ };
11172
+ };
11173
+ requestBody?: {
11174
+ content: {
11175
+ "application/json": Record<string, never>;
11176
+ };
11177
+ };
11178
+ responses: {
11179
+ /** @description Default Response */
11180
+ 200: {
11181
+ content: {
11182
+ "application/json": {
11183
+ token: string;
11184
+ /** @enum {string} */
11185
+ tokenType: "Bearer";
11186
+ /** Format: date-time */
11187
+ expiresAt: string;
11188
+ /** @enum {string} */
11189
+ scope: "public-api";
11190
+ };
11191
+ };
11192
+ };
11193
+ /** @description Default Response */
11194
+ 400: {
11195
+ content: {
11196
+ "application/json": {
11197
+ message?: string;
11198
+ errorCode?: string;
11199
+ };
11200
+ };
11201
+ };
11202
+ /** @description Default Response */
11203
+ 401: {
11204
+ content: {
11205
+ "application/json": {
11206
+ message?: string;
11207
+ errorCode?: string;
11208
+ };
11209
+ };
11210
+ };
11211
+ /** @description Default Response */
11212
+ 403: {
11213
+ content: {
11214
+ "application/json": {
11215
+ message?: string;
11216
+ errorCode?: string;
11217
+ };
11218
+ };
11219
+ };
11220
+ /** @description Default Response */
11221
+ 429: {
11222
+ content: {
11223
+ "application/json": {
11224
+ message?: string;
11225
+ errorCode?: string;
11226
+ };
11227
+ };
11228
+ };
11229
+ /** @description Default Response */
11230
+ 500: {
11231
+ content: {
11232
+ "application/json": {
11233
+ message?: string;
11234
+ errorCode?: string;
11235
+ };
11236
+ };
11237
+ };
11238
+ };
11239
+ };
11240
+ };
11004
11241
  "/metrics/usage": {
11005
- /** @description Get API call counts for the authenticated API key, grouped by endpoint, status code, and error code. */
11242
+ /** @description Get API call counts for the authenticated API key, or owned keys and Apps using x-dev-portal-key. Rows are grouped by API key, endpoint, status code, and error code. */
11006
11243
  get: {
11007
11244
  parameters: {
11008
11245
  query?: {
@@ -11012,10 +11249,16 @@ export interface paths {
11012
11249
  startTimestamp?: number;
11013
11250
  /** @description End of the query window as a Unix timestamp (seconds). Defaults to now. */
11014
11251
  endTimestamp?: number;
11015
- /** @description Filter metrics by API key. Accepts a single value or a comma-separated list (e.g. key1,key2) — results include metrics matching any of the supplied keys. Maximum 50 keys. */
11252
+ /** @description Filter metrics by API key. Accepts a single value or a comma-separated list (e.g. key1,key2) — results include metrics matching any of the supplied keys. Maximum 50 values across apiKey, apiKeyId and appId. */
11016
11253
  apiKey?: string;
11254
+ /** @description Filter metrics by API key IDs (key_id_<uuid>, comma-separated) owned by your integrator when using x-dev-portal-key. OR matching with apiKey and appId; maximum 50 values combined. */
11255
+ apiKeyId?: string;
11256
+ /** @description Filter by owned Apps (app_id_<uuid>, comma-separated); requires x-dev-portal-key. Includes all current keys, including inactive keys. OR matching with apiKey and apiKeyId; maximum 50 filter values combined before expanding Apps to keys. Rows remain grouped by API key. App attribution is resolved at read time: hard-deleted keys drop out and reassigned keys attribute all retained usage to their current App. Retention is 24h minutely, 7d hourly, and 14d daily. */
11257
+ appId?: string;
11017
11258
  };
11018
11259
  header?: {
11260
+ /** @description Integrator portal credential required for appId filtering. */
11261
+ "x-dev-portal-key"?: string;
11019
11262
  /** @description Integrator API key. */
11020
11263
  "x-api-key"?: string;
11021
11264
  };
@@ -11025,15 +11268,124 @@ export interface paths {
11025
11268
  200: {
11026
11269
  content: {
11027
11270
  "application/json": {
11028
- metrics?: {
11271
+ metrics?: ({
11029
11272
  apiKey?: string;
11273
+ apiKeyId?: string | null;
11274
+ appId?: string | null;
11030
11275
  timestamp?: string;
11031
11276
  endpoint?: string;
11032
11277
  statusCode?: number;
11033
11278
  /** @description Only present on rows where statusCode is 400. Contains the machine-readable error code (e.g. AMOUNT_TOO_LOW). */
11034
11279
  errorCode?: string;
11035
11280
  count?: number;
11036
- }[];
11281
+ })[];
11282
+ };
11283
+ };
11284
+ };
11285
+ };
11286
+ };
11287
+ };
11288
+ "/protocol/executions/{id}": {
11289
+ get: {
11290
+ parameters: {
11291
+ path: {
11292
+ id: string;
11293
+ };
11294
+ };
11295
+ responses: {
11296
+ /** @description Default Response */
11297
+ 200: {
11298
+ content: {
11299
+ "application/json": {
11300
+ execution: {
11301
+ chainId: number;
11302
+ oracleAddress: string;
11303
+ idempotencyKey: string;
11304
+ };
11305
+ /** @enum {string} */
11306
+ status: "unknown" | "pending" | "executed" | "failed";
11307
+ txHash: string | null;
11308
+ };
11309
+ };
11310
+ };
11311
+ /** @description Default Response */
11312
+ 400: {
11313
+ content: {
11314
+ "application/json": {
11315
+ message: string;
11316
+ errorCode: string;
11317
+ };
11318
+ };
11319
+ };
11320
+ /** @description Default Response */
11321
+ 503: {
11322
+ content: {
11323
+ "application/json": {
11324
+ message: string;
11325
+ errorCode: string;
11326
+ };
11327
+ };
11328
+ };
11329
+ };
11330
+ };
11331
+ };
11332
+ "/protocol/transfers": {
11333
+ post: {
11334
+ requestBody: {
11335
+ content: {
11336
+ "application/json": {
11337
+ /** Format: uuid */
11338
+ requestId: string;
11339
+ asset: {
11340
+ chainId: number;
11341
+ currency: string;
11342
+ };
11343
+ owner: {
11344
+ chainId: number;
11345
+ address: string;
11346
+ signature?: string;
11347
+ };
11348
+ amount: string;
11349
+ recipient: string;
11350
+ expiration?: number;
11351
+ };
11352
+ };
11353
+ };
11354
+ responses: {
11355
+ /** @description Default Response */
11356
+ 200: {
11357
+ content: {
11358
+ "application/json": {
11359
+ execution: {
11360
+ chainId: number;
11361
+ oracleAddress: string;
11362
+ idempotencyKey: string;
11363
+ };
11364
+ /** @enum {string} */
11365
+ status: "awaiting_signature" | "pending" | "executed" | "failed";
11366
+ txHash: string | null;
11367
+ signing?: {
11368
+ message: string;
11369
+ expiration: number;
11370
+ };
11371
+ };
11372
+ };
11373
+ };
11374
+ /** @description Default Response */
11375
+ 400: {
11376
+ content: {
11377
+ "application/json": {
11378
+ message: string;
11379
+ errorCode: string;
11380
+ };
11381
+ };
11382
+ };
11383
+ /** @description Default Response */
11384
+ 503: {
11385
+ content: {
11386
+ "application/json": {
11387
+ message: string;
11388
+ errorCode: string;
11037
11389
  };
11038
11390
  };
11039
11391
  };