tapimo 0.7.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/README.md +10 -7
  2. package/dist/ApiKey.d.ts +3 -0
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +10 -0
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +7 -3
  7. package/dist/ApiKeys.d.ts.map +1 -1
  8. package/dist/ApiKeys.js +9 -2
  9. package/dist/ApiKeys.js.map +1 -1
  10. package/dist/App.d.ts +20117 -19183
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +61 -4
  13. package/dist/App.js.map +1 -1
  14. package/dist/admin/App.d.ts +84 -74
  15. package/dist/admin/App.d.ts.map +1 -1
  16. package/dist/admin/apps/api-keys.d.ts +14 -1
  17. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  18. package/dist/admin/apps/api-keys.js +6 -2
  19. package/dist/admin/apps/api-keys.js.map +1 -1
  20. package/dist/admin/apps/organizations.d.ts +2 -0
  21. package/dist/admin/apps/organizations.d.ts.map +1 -1
  22. package/dist/admin/apps/verified-tokens.d.ts +11 -11
  23. package/dist/admin/ui.generated.d.ts +1 -1
  24. package/dist/admin/ui.generated.js +67 -67
  25. package/dist/admin/ui.generated.js.map +1 -1
  26. package/dist/analytics/Analytics.d.ts +2 -0
  27. package/dist/analytics/Analytics.d.ts.map +1 -1
  28. package/dist/analytics/Analytics.js +3 -0
  29. package/dist/analytics/Analytics.js.map +1 -1
  30. package/dist/apps/data/App.d.ts +11696 -13937
  31. package/dist/apps/data/App.d.ts.map +1 -1
  32. package/dist/apps/data/App.js +4 -8
  33. package/dist/apps/data/App.js.map +1 -1
  34. package/dist/apps/data/routes/activities.d.ts +271 -271
  35. package/dist/apps/data/routes/addresses.d.ts +398 -167
  36. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  37. package/dist/apps/data/routes/balances.d.ts +278 -8
  38. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  39. package/dist/apps/data/routes/balances.js +114 -2
  40. package/dist/apps/data/routes/balances.js.map +1 -1
  41. package/dist/apps/data/routes/blocks.d.ts +123 -123
  42. package/dist/apps/data/routes/coingecko.d.ts +170 -170
  43. package/dist/apps/data/routes/earn.d.ts +498 -6
  44. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  45. package/dist/apps/data/routes/earn.js +876 -4
  46. package/dist/apps/data/routes/earn.js.map +1 -1
  47. package/dist/apps/data/routes/exchanges.d.ts +10 -10
  48. package/dist/apps/data/routes/fee-amm.d.ts +2 -2
  49. package/dist/apps/data/routes/indexer.d.ts +6 -6
  50. package/dist/apps/data/routes/indexer.js +4 -1
  51. package/dist/apps/data/routes/indexer.js.map +1 -1
  52. package/dist/apps/data/routes/receipts.d.ts +235 -235
  53. package/dist/apps/data/routes/rpc.d.ts +31 -31
  54. package/dist/apps/data/routes/rpc.js +4 -1
  55. package/dist/apps/data/routes/rpc.js.map +1 -1
  56. package/dist/apps/data/routes/tokenlist.d.ts +36 -36
  57. package/dist/apps/data/routes/tokens.d.ts +449 -449
  58. package/dist/apps/data/routes/transactions.d.ts +2 -2
  59. package/dist/apps/data/routes/transfers.d.ts +81 -81
  60. package/dist/apps/data/routes/valuation.d.ts +1 -1
  61. package/dist/apps/data/routes/verified-tokens.d.ts +36 -36
  62. package/dist/apps/data/routes/webhooks.d.ts +9 -9
  63. package/dist/apps/data/routes/zones.d.ts +14 -14
  64. package/dist/apps/funding/Access.d.ts +16 -0
  65. package/dist/apps/funding/Access.d.ts.map +1 -0
  66. package/dist/apps/funding/Access.js +22 -0
  67. package/dist/apps/funding/Access.js.map +1 -0
  68. package/dist/apps/{data/routes/funding.d.ts → funding/App.d.ts} +1640 -3217
  69. package/dist/apps/funding/App.d.ts.map +1 -0
  70. package/dist/apps/funding/App.js +61 -0
  71. package/dist/apps/funding/App.js.map +1 -0
  72. package/dist/apps/funding/Inventory.d.ts +5 -0
  73. package/dist/apps/funding/Inventory.d.ts.map +1 -0
  74. package/dist/apps/funding/Inventory.js +25 -0
  75. package/dist/apps/funding/Inventory.js.map +1 -0
  76. package/dist/apps/funding/ProviderAttempts.d.ts +5 -0
  77. package/dist/apps/funding/ProviderAttempts.d.ts.map +1 -0
  78. package/dist/apps/funding/ProviderAttempts.js +24 -0
  79. package/dist/apps/funding/ProviderAttempts.js.map +1 -0
  80. package/dist/apps/funding/index.d.ts +2 -0
  81. package/dist/apps/funding/index.d.ts.map +1 -0
  82. package/dist/apps/funding/index.js +2 -0
  83. package/dist/apps/funding/index.js.map +1 -0
  84. package/dist/apps/funding/routes/chains.d.ts +169 -0
  85. package/dist/apps/funding/routes/chains.d.ts.map +1 -0
  86. package/dist/apps/funding/routes/chains.js +80 -0
  87. package/dist/apps/funding/routes/chains.js.map +1 -0
  88. package/dist/apps/funding/routes/deposit-addresses.d.ts +1997 -0
  89. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -0
  90. package/dist/apps/funding/routes/deposit-addresses.js +778 -0
  91. package/dist/apps/funding/routes/deposit-addresses.js.map +1 -0
  92. package/dist/apps/funding/routes/providers.d.ts +91 -0
  93. package/dist/apps/funding/routes/providers.d.ts.map +1 -0
  94. package/dist/apps/funding/routes/providers.js +56 -0
  95. package/dist/apps/funding/routes/providers.js.map +1 -0
  96. package/dist/apps/funding/routes/quotes.d.ts +426 -0
  97. package/dist/apps/funding/routes/quotes.d.ts.map +1 -0
  98. package/dist/apps/funding/routes/quotes.js +188 -0
  99. package/dist/apps/funding/routes/quotes.js.map +1 -0
  100. package/dist/apps/funding/routes/transfers.d.ts +1999 -0
  101. package/dist/apps/funding/routes/transfers.d.ts.map +1 -0
  102. package/dist/apps/funding/routes/transfers.js +614 -0
  103. package/dist/apps/funding/routes/transfers.js.map +1 -0
  104. package/dist/apps/index.d.ts +1 -0
  105. package/dist/apps/index.d.ts.map +1 -1
  106. package/dist/apps/index.js +1 -0
  107. package/dist/apps/index.js.map +1 -1
  108. package/dist/apps/management/App.d.ts +430 -165
  109. package/dist/apps/management/App.d.ts.map +1 -1
  110. package/dist/apps/management/routes/api-keys.d.ts +298 -21
  111. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  112. package/dist/apps/management/routes/api-keys.js +75 -1
  113. package/dist/apps/management/routes/api-keys.js.map +1 -1
  114. package/dist/apps/management/routes/billing.d.ts +6 -6
  115. package/dist/apps/management/routes/faucet.d.ts +35 -35
  116. package/dist/apps/management/routes/invitations.d.ts +122 -122
  117. package/dist/apps/management/routes/invite-links.d.ts +38 -38
  118. package/dist/apps/management/routes/members.d.ts +69 -69
  119. package/dist/apps/management/routes/orgs.d.ts +99 -99
  120. package/dist/apps/management/routes/projects.d.ts +25 -25
  121. package/dist/apps/management/routes/scopes.d.ts +1 -1
  122. package/dist/apps/management/routes/usage.d.ts +72 -72
  123. package/dist/apps/management/routes/verified-token-requests.d.ts +77 -77
  124. package/dist/apps/management/routes/webhooks.d.ts +128 -128
  125. package/dist/apps/mcp.d.ts +2 -3
  126. package/dist/apps/mcp.d.ts.map +1 -1
  127. package/dist/apps/mcp.js +16 -14
  128. package/dist/apps/mcp.js.map +1 -1
  129. package/dist/apps/metadata.d.ts +4 -0
  130. package/dist/apps/metadata.d.ts.map +1 -1
  131. package/dist/apps/metadata.js +10 -0
  132. package/dist/apps/metadata.js.map +1 -1
  133. package/dist/apps/mpp/App.d.ts +44 -44
  134. package/dist/cloudflare.d.ts +50 -0
  135. package/dist/cloudflare.d.ts.map +1 -1
  136. package/dist/cloudflare.js +178 -0
  137. package/dist/cloudflare.js.map +1 -1
  138. package/dist/db/Db.d.ts +2 -0
  139. package/dist/db/Db.d.ts.map +1 -1
  140. package/dist/db/Db.js +45 -0
  141. package/dist/db/Db.js.map +1 -1
  142. package/dist/db/Schema.d.ts +12 -0
  143. package/dist/db/Schema.d.ts.map +1 -1
  144. package/dist/db/Schema.js +20 -0
  145. package/dist/db/Schema.js.map +1 -1
  146. package/dist/db/tables/fundingDepositAddresses.d.ts +13 -0
  147. package/dist/db/tables/fundingDepositAddresses.d.ts.map +1 -1
  148. package/dist/db/tables/fundingDepositAddresses.js +12 -0
  149. package/dist/db/tables/fundingDepositAddresses.js.map +1 -1
  150. package/dist/db/tables/fundingDepositRequestObservations.d.ts +45 -0
  151. package/dist/db/tables/fundingDepositRequestObservations.d.ts.map +1 -0
  152. package/dist/db/tables/fundingDepositRequestObservations.js +46 -0
  153. package/dist/db/tables/fundingDepositRequestObservations.js.map +1 -0
  154. package/dist/db/tables/fundingDeposits.d.ts +74 -1
  155. package/dist/db/tables/fundingDeposits.d.ts.map +1 -1
  156. package/dist/db/tables/fundingDeposits.js +126 -0
  157. package/dist/db/tables/fundingDeposits.js.map +1 -1
  158. package/dist/internal/Auth.d.ts +15 -11
  159. package/dist/internal/Auth.d.ts.map +1 -1
  160. package/dist/internal/Auth.js +52 -17
  161. package/dist/internal/Auth.js.map +1 -1
  162. package/dist/internal/Cache.js +1 -1
  163. package/dist/internal/Cache.js.map +1 -1
  164. package/dist/internal/EdgeCache.d.ts +2 -2
  165. package/dist/internal/EdgeCache.d.ts.map +1 -1
  166. package/dist/internal/EdgeCache.js +10 -4
  167. package/dist/internal/EdgeCache.js.map +1 -1
  168. package/dist/internal/IpAllowlist.d.ts +15 -0
  169. package/dist/internal/IpAllowlist.d.ts.map +1 -0
  170. package/dist/internal/IpAllowlist.js +27 -0
  171. package/dist/internal/IpAllowlist.js.map +1 -0
  172. package/dist/internal/OpenApi.d.ts +1 -1
  173. package/dist/internal/OpenApi.js +1 -1
  174. package/dist/internal/OpenApi.js.map +1 -1
  175. package/dist/internal/Tidx.d.ts +6 -0
  176. package/dist/internal/Tidx.d.ts.map +1 -1
  177. package/dist/internal/Tidx.js +13 -3
  178. package/dist/internal/Tidx.js.map +1 -1
  179. package/dist/internal/Viem.d.ts +8 -0
  180. package/dist/internal/Viem.d.ts.map +1 -1
  181. package/dist/internal/Viem.js +12 -5
  182. package/dist/internal/Viem.js.map +1 -1
  183. package/dist/internal/funding/Deposit.d.ts +42 -0
  184. package/dist/internal/funding/Deposit.d.ts.map +1 -1
  185. package/dist/internal/funding/Deposit.js +37 -5
  186. package/dist/internal/funding/Deposit.js.map +1 -1
  187. package/dist/internal/funding/Evidence.d.ts +1 -5
  188. package/dist/internal/funding/Evidence.d.ts.map +1 -1
  189. package/dist/internal/funding/Evidence.js +4 -3
  190. package/dist/internal/funding/Evidence.js.map +1 -1
  191. package/dist/internal/funding/Provider.d.ts +102 -0
  192. package/dist/internal/funding/Provider.d.ts.map +1 -1
  193. package/dist/internal/funding/Provider.js +5 -0
  194. package/dist/internal/funding/Provider.js.map +1 -1
  195. package/dist/internal/funding/Reconciliation.d.ts +16 -2
  196. package/dist/internal/funding/Reconciliation.d.ts.map +1 -1
  197. package/dist/internal/funding/Reconciliation.js +348 -54
  198. package/dist/internal/funding/Reconciliation.js.map +1 -1
  199. package/dist/internal/funding/SourceObservation.d.ts +108 -0
  200. package/dist/internal/funding/SourceObservation.d.ts.map +1 -0
  201. package/dist/internal/funding/SourceObservation.js +143 -0
  202. package/dist/internal/funding/SourceObservation.js.map +1 -0
  203. package/dist/internal/funding/Subsidy.d.ts +2 -2
  204. package/dist/internal/funding/Subsidy.d.ts.map +1 -1
  205. package/dist/internal/funding/Subsidy.js +1 -1
  206. package/dist/internal/funding/Subsidy.js.map +1 -1
  207. package/dist/internal/funding/index.d.ts +1 -0
  208. package/dist/internal/funding/index.d.ts.map +1 -1
  209. package/dist/internal/funding/index.js +1 -0
  210. package/dist/internal/funding/index.js.map +1 -1
  211. package/dist/internal/funding/providers/relay.d.ts +43 -1
  212. package/dist/internal/funding/providers/relay.d.ts.map +1 -1
  213. package/dist/internal/funding/providers/relay.js +438 -27
  214. package/dist/internal/funding/providers/relay.js.map +1 -1
  215. package/package.json +3 -3
  216. package/src/ApiKey.test.ts +35 -0
  217. package/src/ApiKey.ts +27 -0
  218. package/src/ApiKeys.test.ts +29 -0
  219. package/src/ApiKeys.ts +11 -3
  220. package/src/App.test.ts +55 -5
  221. package/src/App.ts +79 -5
  222. package/src/Client.test-d.ts +203 -28
  223. package/src/admin/apps/api-keys.test.ts +25 -1
  224. package/src/admin/apps/api-keys.ts +6 -2
  225. package/src/admin/ui.generated.ts +67 -67
  226. package/src/analytics/Analytics.ts +4 -0
  227. package/src/apps/composition.test.ts +130 -3
  228. package/src/apps/data/App.test.ts +0 -12
  229. package/src/apps/data/App.ts +4 -8
  230. package/src/apps/data/routes/balances.test.ts +42 -0
  231. package/src/apps/data/routes/balances.ts +218 -85
  232. package/src/apps/data/routes/earn.test.ts +363 -0
  233. package/src/apps/data/routes/earn.ts +1141 -3
  234. package/src/apps/data/routes/indexer.ts +2 -1
  235. package/src/apps/data/routes/rpc.ts +2 -0
  236. package/src/apps/data/routes/tokens.test.ts +6 -8
  237. package/src/apps/funding/Access.ts +26 -0
  238. package/src/apps/funding/App.test.ts +78 -0
  239. package/src/apps/funding/App.ts +78 -0
  240. package/src/apps/funding/Inventory.ts +30 -0
  241. package/src/apps/funding/ProviderAttempts.ts +26 -0
  242. package/src/apps/funding/index.ts +1 -0
  243. package/src/apps/funding/routes/chains.test.ts +78 -0
  244. package/src/apps/funding/routes/chains.ts +101 -0
  245. package/src/apps/funding/routes/deposit-addresses.test.ts +1649 -0
  246. package/src/apps/funding/routes/deposit-addresses.ts +932 -0
  247. package/src/apps/funding/routes/providers.test.ts +165 -0
  248. package/src/apps/funding/routes/providers.ts +73 -0
  249. package/src/apps/funding/routes/quotes.test.ts +511 -0
  250. package/src/apps/funding/routes/quotes.ts +205 -0
  251. package/src/apps/funding/routes/transfers.test.ts +1236 -0
  252. package/src/apps/funding/routes/transfers.ts +704 -0
  253. package/src/apps/index.ts +1 -0
  254. package/src/apps/management/routes/api-keys.test.ts +98 -0
  255. package/src/apps/management/routes/api-keys.ts +96 -1
  256. package/src/apps/mcp.test.ts +17 -2
  257. package/src/apps/mcp.ts +18 -13
  258. package/src/apps/metadata.ts +12 -0
  259. package/src/apps/mpp/internal/Policy.test.ts +7 -1
  260. package/src/cloudflare.ts +279 -0
  261. package/src/db/Db.ts +71 -0
  262. package/src/db/Schema.ts +24 -0
  263. package/src/db/tables/fundingDepositAddresses.ts +28 -0
  264. package/src/db/tables/fundingDepositRequestObservations.test.ts +106 -0
  265. package/src/db/tables/fundingDepositRequestObservations.ts +99 -0
  266. package/src/db/tables/fundingDeposits.test.ts +239 -0
  267. package/src/db/tables/fundingDeposits.ts +214 -1
  268. package/src/internal/Auth.test.ts +205 -5
  269. package/src/internal/Auth.ts +63 -19
  270. package/src/internal/Cache.test.ts +37 -3
  271. package/src/internal/Cache.ts +1 -1
  272. package/src/internal/EdgeCache.test.ts +7 -7
  273. package/src/internal/EdgeCache.ts +13 -4
  274. package/src/internal/IpAllowlist.test.ts +52 -0
  275. package/src/internal/IpAllowlist.ts +39 -0
  276. package/src/internal/Log.test.ts +7 -1
  277. package/src/internal/OpenApi.ts +1 -1
  278. package/src/internal/Tidx.test.ts +28 -0
  279. package/src/internal/Tidx.ts +19 -3
  280. package/src/internal/Viem.test.ts +28 -0
  281. package/src/internal/Viem.ts +21 -5
  282. package/src/internal/funding/Deposit.ts +74 -5
  283. package/src/internal/funding/Evidence.test.ts +2 -2
  284. package/src/internal/funding/Evidence.ts +4 -9
  285. package/src/internal/funding/Provider.ts +115 -0
  286. package/src/internal/funding/Reconciliation.local.test.ts +7 -0
  287. package/src/internal/funding/Reconciliation.test.ts +1364 -109
  288. package/src/internal/funding/Reconciliation.ts +467 -88
  289. package/src/internal/funding/SourceObservation.test.ts +301 -0
  290. package/src/internal/funding/SourceObservation.ts +267 -0
  291. package/src/internal/funding/Subsidy.ts +2 -2
  292. package/src/internal/funding/index.test.ts +1 -0
  293. package/src/internal/funding/index.ts +1 -0
  294. package/src/internal/funding/providers/relay.test.ts +94 -4
  295. package/src/internal/funding/providers/relay.ts +533 -27
  296. package/dist/apps/data/routes/funding.d.ts.map +0 -1
  297. package/dist/apps/data/routes/funding.js +0 -1557
  298. package/dist/apps/data/routes/funding.js.map +0 -1
  299. package/src/apps/data/routes/funding.test.ts +0 -2994
  300. package/src/apps/data/routes/funding.ts +0 -1821
@@ -0,0 +1,1997 @@
1
+ import * as z from 'zod/mini';
2
+ import type * as App from '../../../App.js';
3
+ import * as FundingDepositAddress from '../../../internal/funding/DepositAddress.js';
4
+ import * as FundingProvider from '../../../internal/funding/Provider.js';
5
+ import * as Response from '../../../internal/Response.js';
6
+ /** Zod schemas owned by funding deposit-address resources. */
7
+ export declare namespace schema {
8
+ /** One reusable funding deposit address. */
9
+ const DepositAddress: z.ZodMiniObject<{
10
+ address: z.ZodMiniString<string>;
11
+ createdAt: z.ZodMiniString<string>;
12
+ destinationChain: z.ZodMiniObject<{
13
+ addressFormat: z.ZodMiniEnum<{
14
+ base58: "base58";
15
+ base58check: "base58check";
16
+ hex: "hex";
17
+ }>;
18
+ id: z.ZodMiniString<string>;
19
+ kind: z.ZodMiniEnum<{
20
+ evm: "evm";
21
+ solana: "solana";
22
+ tron: "tron";
23
+ }>;
24
+ name: z.ZodMiniString<string>;
25
+ }, z.core.$strip>;
26
+ destinationToken: z.ZodMiniObject<{
27
+ address: z.ZodMiniString<string>;
28
+ currency: z.ZodMiniString<string>;
29
+ decimals: z.ZodMiniNumber<number>;
30
+ name: z.ZodMiniString<string>;
31
+ standard: z.ZodMiniString<string>;
32
+ symbol: z.ZodMiniString<string>;
33
+ tokenKey: z.ZodMiniString<string>;
34
+ verified: z.ZodMiniBoolean<boolean>;
35
+ }, z.core.$strip>;
36
+ id: z.ZodMiniString<string>;
37
+ provider: z.ZodMiniObject<{
38
+ id: z.ZodMiniString<string>;
39
+ name: z.ZodMiniString<string>;
40
+ }, z.core.$strip>;
41
+ recipient: z.ZodMiniString<string>;
42
+ refundAddress: z.ZodMiniString<string>;
43
+ sourceChain: z.ZodMiniObject<{
44
+ addressFormat: z.ZodMiniEnum<{
45
+ base58: "base58";
46
+ base58check: "base58check";
47
+ hex: "hex";
48
+ }>;
49
+ id: z.ZodMiniString<string>;
50
+ kind: z.ZodMiniEnum<{
51
+ evm: "evm";
52
+ solana: "solana";
53
+ tron: "tron";
54
+ }>;
55
+ name: z.ZodMiniString<string>;
56
+ }, z.core.$strip>;
57
+ sourceToken: z.ZodMiniObject<{
58
+ address: z.ZodMiniString<string>;
59
+ currency: z.ZodMiniString<string>;
60
+ decimals: z.ZodMiniNumber<number>;
61
+ name: z.ZodMiniString<string>;
62
+ standard: z.ZodMiniString<string>;
63
+ symbol: z.ZodMiniString<string>;
64
+ tokenKey: z.ZodMiniString<string>;
65
+ verified: z.ZodMiniBoolean<boolean>;
66
+ }, z.core.$strip>;
67
+ status: z.ZodMiniEnum<{
68
+ "action-required": "action-required";
69
+ active: "active";
70
+ }>;
71
+ subsidize: z.ZodMiniBoolean<boolean>;
72
+ updatedAt: z.ZodMiniString<string>;
73
+ }, z.core.$strip>;
74
+ /** One detected funding deposit. */
75
+ const Deposit: z.ZodMiniObject<{
76
+ createdAt: z.ZodMiniString<string>;
77
+ depositAddressId: z.ZodMiniString<string>;
78
+ detectionTrigger: z.ZodMiniOptional<z.ZodMiniEnum<{
79
+ chain: "chain";
80
+ manual: "manual";
81
+ poll: "poll";
82
+ webhook: "webhook";
83
+ }>>;
84
+ destinationAmount: z.ZodMiniOptional<z.ZodMiniObject<{
85
+ baseUnits: z.ZodMiniString<string>;
86
+ currency: z.ZodMiniString<string>;
87
+ decimals: z.ZodMiniNumber<number>;
88
+ formatted: z.ZodMiniString<string>;
89
+ }, z.core.$strip>>;
90
+ destinationAmountRequired: z.ZodMiniOptional<z.ZodMiniObject<{
91
+ baseUnits: z.ZodMiniString<string>;
92
+ currency: z.ZodMiniString<string>;
93
+ decimals: z.ZodMiniNumber<number>;
94
+ formatted: z.ZodMiniString<string>;
95
+ }, z.core.$strip>>;
96
+ destinationChain: z.ZodMiniObject<{
97
+ addressFormat: z.ZodMiniEnum<{
98
+ base58: "base58";
99
+ base58check: "base58check";
100
+ hex: "hex";
101
+ }>;
102
+ id: z.ZodMiniString<string>;
103
+ kind: z.ZodMiniEnum<{
104
+ evm: "evm";
105
+ solana: "solana";
106
+ tron: "tron";
107
+ }>;
108
+ name: z.ZodMiniString<string>;
109
+ }, z.core.$strip>;
110
+ destinationToken: z.ZodMiniObject<{
111
+ address: z.ZodMiniString<string>;
112
+ currency: z.ZodMiniString<string>;
113
+ decimals: z.ZodMiniNumber<number>;
114
+ name: z.ZodMiniString<string>;
115
+ standard: z.ZodMiniString<string>;
116
+ symbol: z.ZodMiniString<string>;
117
+ tokenKey: z.ZodMiniString<string>;
118
+ verified: z.ZodMiniBoolean<boolean>;
119
+ }, z.core.$strip>;
120
+ destinationTransactionHashes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
121
+ id: z.ZodMiniString<string>;
122
+ provider: z.ZodMiniObject<{
123
+ id: z.ZodMiniString<string>;
124
+ name: z.ZodMiniString<string>;
125
+ }, z.core.$strip>;
126
+ recipient: z.ZodMiniString<string>;
127
+ refundAddress: z.ZodMiniString<string>;
128
+ refundAmount: z.ZodMiniOptional<z.ZodMiniObject<{
129
+ baseUnits: z.ZodMiniString<string>;
130
+ currency: z.ZodMiniString<string>;
131
+ decimals: z.ZodMiniNumber<number>;
132
+ formatted: z.ZodMiniString<string>;
133
+ }, z.core.$strip>>;
134
+ refundTransactionHashes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
135
+ sender: z.ZodMiniOptional<z.ZodMiniString<string>>;
136
+ sourceAmount: z.ZodMiniOptional<z.ZodMiniObject<{
137
+ baseUnits: z.ZodMiniString<string>;
138
+ currency: z.ZodMiniString<string>;
139
+ decimals: z.ZodMiniNumber<number>;
140
+ formatted: z.ZodMiniString<string>;
141
+ }, z.core.$strip>>;
142
+ sourceChain: z.ZodMiniObject<{
143
+ addressFormat: z.ZodMiniEnum<{
144
+ base58: "base58";
145
+ base58check: "base58check";
146
+ hex: "hex";
147
+ }>;
148
+ id: z.ZodMiniString<string>;
149
+ kind: z.ZodMiniEnum<{
150
+ evm: "evm";
151
+ solana: "solana";
152
+ tron: "tron";
153
+ }>;
154
+ name: z.ZodMiniString<string>;
155
+ }, z.core.$strip>;
156
+ sourceToken: z.ZodMiniObject<{
157
+ address: z.ZodMiniString<string>;
158
+ currency: z.ZodMiniString<string>;
159
+ decimals: z.ZodMiniNumber<number>;
160
+ name: z.ZodMiniString<string>;
161
+ standard: z.ZodMiniString<string>;
162
+ symbol: z.ZodMiniString<string>;
163
+ tokenKey: z.ZodMiniString<string>;
164
+ verified: z.ZodMiniBoolean<boolean>;
165
+ }, z.core.$strip>;
166
+ sourceTransactionHashes: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
167
+ sourceTransferIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
168
+ status: z.ZodMiniEnum<{
169
+ "action-required": "action-required";
170
+ bridging: "bridging";
171
+ completed: "completed";
172
+ detected: "detected";
173
+ refunded: "refunded";
174
+ refunding: "refunding";
175
+ settling: "settling";
176
+ }>;
177
+ statusReason: z.ZodMiniOptional<z.ZodMiniObject<{
178
+ code: z.ZodMiniEnum<{
179
+ delivery_failed: "delivery_failed";
180
+ delivery_liquidity_unavailable: "delivery_liquidity_unavailable";
181
+ manual_recovery_required: "manual_recovery_required";
182
+ refund_failed: "refund_failed";
183
+ source_amount_not_supported: "source_amount_not_supported";
184
+ source_token_mismatch: "source_token_mismatch";
185
+ subsidy_balance_unavailable: "subsidy_balance_unavailable";
186
+ subsidy_failed: "subsidy_failed";
187
+ }>;
188
+ message: z.ZodMiniString<string>;
189
+ }, z.core.$strip>>;
190
+ updatedAt: z.ZodMiniString<string>;
191
+ }, z.core.$strip>;
192
+ /** Schemas for the createFundingDepositAddress operation. */
193
+ namespace createFundingDepositAddress {
194
+ /** Funding deposit address creation request body. */
195
+ const Body: z.ZodMiniObject<{
196
+ amount: z.ZodMiniString<string>;
197
+ destinationToken: z.ZodMiniString<string>;
198
+ recipient: z.ZodMiniString<string>;
199
+ refundAddress: z.ZodMiniString<string>;
200
+ sourceChain: z.ZodMiniString<string>;
201
+ sourceToken: z.ZodMiniString<string>;
202
+ subsidize: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
203
+ }, z.core.$strict>;
204
+ /** Required headers for funding deposit address creation. */
205
+ const Headers: z.ZodMiniObject<{
206
+ 'idempotency-key': z.ZodMiniString<string>;
207
+ }, z.core.$strip>;
208
+ /** The reusable address, with quoted terms only when the provider address was newly stored. */
209
+ const Response: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
210
+ address: z.ZodMiniString<string>;
211
+ createdAt: z.ZodMiniString<string>;
212
+ destinationChain: z.ZodMiniObject<{
213
+ addressFormat: z.ZodMiniEnum<{
214
+ base58: "base58";
215
+ base58check: "base58check";
216
+ hex: "hex";
217
+ }>;
218
+ id: z.ZodMiniString<string>;
219
+ kind: z.ZodMiniEnum<{
220
+ evm: "evm";
221
+ solana: "solana";
222
+ tron: "tron";
223
+ }>;
224
+ name: z.ZodMiniString<string>;
225
+ }, z.core.$strip>;
226
+ destinationToken: z.ZodMiniObject<{
227
+ address: z.ZodMiniString<string>;
228
+ currency: z.ZodMiniString<string>;
229
+ decimals: z.ZodMiniNumber<number>;
230
+ name: z.ZodMiniString<string>;
231
+ standard: z.ZodMiniString<string>;
232
+ symbol: z.ZodMiniString<string>;
233
+ tokenKey: z.ZodMiniString<string>;
234
+ verified: z.ZodMiniBoolean<boolean>;
235
+ }, z.core.$strip>;
236
+ id: z.ZodMiniString<string>;
237
+ provider: z.ZodMiniObject<{
238
+ id: z.ZodMiniString<string>;
239
+ name: z.ZodMiniString<string>;
240
+ }, z.core.$strip>;
241
+ recipient: z.ZodMiniString<string>;
242
+ refundAddress: z.ZodMiniString<string>;
243
+ sourceChain: z.ZodMiniObject<{
244
+ addressFormat: z.ZodMiniEnum<{
245
+ base58: "base58";
246
+ base58check: "base58check";
247
+ hex: "hex";
248
+ }>;
249
+ id: z.ZodMiniString<string>;
250
+ kind: z.ZodMiniEnum<{
251
+ evm: "evm";
252
+ solana: "solana";
253
+ tron: "tron";
254
+ }>;
255
+ name: z.ZodMiniString<string>;
256
+ }, z.core.$strip>;
257
+ sourceToken: z.ZodMiniObject<{
258
+ address: z.ZodMiniString<string>;
259
+ currency: z.ZodMiniString<string>;
260
+ decimals: z.ZodMiniNumber<number>;
261
+ name: z.ZodMiniString<string>;
262
+ standard: z.ZodMiniString<string>;
263
+ symbol: z.ZodMiniString<string>;
264
+ tokenKey: z.ZodMiniString<string>;
265
+ verified: z.ZodMiniBoolean<boolean>;
266
+ }, z.core.$strip>;
267
+ status: z.ZodMiniEnum<{
268
+ "action-required": "action-required";
269
+ active: "active";
270
+ }>;
271
+ subsidize: z.ZodMiniBoolean<boolean>;
272
+ updatedAt: z.ZodMiniString<string>;
273
+ destinationAmount: z.ZodMiniObject<{
274
+ baseUnits: z.ZodMiniString<string>;
275
+ currency: z.ZodMiniString<string>;
276
+ decimals: z.ZodMiniNumber<number>;
277
+ formatted: z.ZodMiniString<string>;
278
+ }, z.core.$strip>;
279
+ destinationAmountMin: z.ZodMiniOptional<z.ZodMiniObject<{
280
+ baseUnits: z.ZodMiniString<string>;
281
+ currency: z.ZodMiniString<string>;
282
+ decimals: z.ZodMiniNumber<number>;
283
+ formatted: z.ZodMiniString<string>;
284
+ }, z.core.$strip>>;
285
+ fees: z.ZodMiniArray<z.ZodMiniObject<{
286
+ amount: z.ZodMiniObject<{
287
+ baseUnits: z.ZodMiniString<string>;
288
+ currency: z.ZodMiniString<string>;
289
+ decimals: z.ZodMiniNumber<number>;
290
+ formatted: z.ZodMiniString<string>;
291
+ }, z.core.$strip>;
292
+ side: z.ZodMiniEnum<{
293
+ destination: "destination";
294
+ source: "source";
295
+ }>;
296
+ token: z.ZodMiniObject<{
297
+ address: z.ZodMiniString<string>;
298
+ currency: z.ZodMiniString<string>;
299
+ decimals: z.ZodMiniNumber<number>;
300
+ name: z.ZodMiniString<string>;
301
+ standard: z.ZodMiniString<string>;
302
+ symbol: z.ZodMiniString<string>;
303
+ tokenKey: z.ZodMiniString<string>;
304
+ verified: z.ZodMiniBoolean<boolean>;
305
+ }, z.core.$strip>;
306
+ type: z.ZodMiniEnum<{
307
+ provider: "provider";
308
+ }>;
309
+ }, z.core.$strip>>;
310
+ quote: z.ZodMiniObject<{
311
+ expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
312
+ sampledAt: z.ZodMiniISODateTime;
313
+ }, z.core.$strip>;
314
+ sourceAmount: z.ZodMiniObject<{
315
+ baseUnits: z.ZodMiniString<string>;
316
+ currency: z.ZodMiniString<string>;
317
+ decimals: z.ZodMiniNumber<number>;
318
+ formatted: z.ZodMiniString<string>;
319
+ }, z.core.$strip>;
320
+ }, z.core.$strip>, z.ZodMiniObject<{
321
+ address: z.ZodMiniString<string>;
322
+ createdAt: z.ZodMiniString<string>;
323
+ destinationChain: z.ZodMiniObject<{
324
+ addressFormat: z.ZodMiniEnum<{
325
+ base58: "base58";
326
+ base58check: "base58check";
327
+ hex: "hex";
328
+ }>;
329
+ id: z.ZodMiniString<string>;
330
+ kind: z.ZodMiniEnum<{
331
+ evm: "evm";
332
+ solana: "solana";
333
+ tron: "tron";
334
+ }>;
335
+ name: z.ZodMiniString<string>;
336
+ }, z.core.$strip>;
337
+ destinationToken: z.ZodMiniObject<{
338
+ address: z.ZodMiniString<string>;
339
+ currency: z.ZodMiniString<string>;
340
+ decimals: z.ZodMiniNumber<number>;
341
+ name: z.ZodMiniString<string>;
342
+ standard: z.ZodMiniString<string>;
343
+ symbol: z.ZodMiniString<string>;
344
+ tokenKey: z.ZodMiniString<string>;
345
+ verified: z.ZodMiniBoolean<boolean>;
346
+ }, z.core.$strip>;
347
+ id: z.ZodMiniString<string>;
348
+ provider: z.ZodMiniObject<{
349
+ id: z.ZodMiniString<string>;
350
+ name: z.ZodMiniString<string>;
351
+ }, z.core.$strip>;
352
+ recipient: z.ZodMiniString<string>;
353
+ refundAddress: z.ZodMiniString<string>;
354
+ sourceChain: z.ZodMiniObject<{
355
+ addressFormat: z.ZodMiniEnum<{
356
+ base58: "base58";
357
+ base58check: "base58check";
358
+ hex: "hex";
359
+ }>;
360
+ id: z.ZodMiniString<string>;
361
+ kind: z.ZodMiniEnum<{
362
+ evm: "evm";
363
+ solana: "solana";
364
+ tron: "tron";
365
+ }>;
366
+ name: z.ZodMiniString<string>;
367
+ }, z.core.$strip>;
368
+ sourceToken: z.ZodMiniObject<{
369
+ address: z.ZodMiniString<string>;
370
+ currency: z.ZodMiniString<string>;
371
+ decimals: z.ZodMiniNumber<number>;
372
+ name: z.ZodMiniString<string>;
373
+ standard: z.ZodMiniString<string>;
374
+ symbol: z.ZodMiniString<string>;
375
+ tokenKey: z.ZodMiniString<string>;
376
+ verified: z.ZodMiniBoolean<boolean>;
377
+ }, z.core.$strip>;
378
+ status: z.ZodMiniEnum<{
379
+ "action-required": "action-required";
380
+ active: "active";
381
+ }>;
382
+ subsidize: z.ZodMiniBoolean<boolean>;
383
+ updatedAt: z.ZodMiniString<string>;
384
+ }, z.core.$strip>]>;
385
+ }
386
+ /** Schemas for the getFundingDepositAddress operation. */
387
+ namespace getFundingDepositAddress {
388
+ /** Path parameters for reading a funding deposit address. */
389
+ const Params: z.ZodMiniObject<{
390
+ id: z.ZodMiniString<string>;
391
+ }, z.core.$strip>;
392
+ /** One reusable funding deposit address. */
393
+ const Response: z.ZodMiniObject<{
394
+ address: z.ZodMiniString<string>;
395
+ createdAt: z.ZodMiniString<string>;
396
+ destinationChain: z.ZodMiniObject<{
397
+ addressFormat: z.ZodMiniEnum<{
398
+ base58: "base58";
399
+ base58check: "base58check";
400
+ hex: "hex";
401
+ }>;
402
+ id: z.ZodMiniString<string>;
403
+ kind: z.ZodMiniEnum<{
404
+ evm: "evm";
405
+ solana: "solana";
406
+ tron: "tron";
407
+ }>;
408
+ name: z.ZodMiniString<string>;
409
+ }, z.core.$strip>;
410
+ destinationToken: z.ZodMiniObject<{
411
+ address: z.ZodMiniString<string>;
412
+ currency: z.ZodMiniString<string>;
413
+ decimals: z.ZodMiniNumber<number>;
414
+ name: z.ZodMiniString<string>;
415
+ standard: z.ZodMiniString<string>;
416
+ symbol: z.ZodMiniString<string>;
417
+ tokenKey: z.ZodMiniString<string>;
418
+ verified: z.ZodMiniBoolean<boolean>;
419
+ }, z.core.$strip>;
420
+ id: z.ZodMiniString<string>;
421
+ provider: z.ZodMiniObject<{
422
+ id: z.ZodMiniString<string>;
423
+ name: z.ZodMiniString<string>;
424
+ }, z.core.$strip>;
425
+ recipient: z.ZodMiniString<string>;
426
+ refundAddress: z.ZodMiniString<string>;
427
+ sourceChain: z.ZodMiniObject<{
428
+ addressFormat: z.ZodMiniEnum<{
429
+ base58: "base58";
430
+ base58check: "base58check";
431
+ hex: "hex";
432
+ }>;
433
+ id: z.ZodMiniString<string>;
434
+ kind: z.ZodMiniEnum<{
435
+ evm: "evm";
436
+ solana: "solana";
437
+ tron: "tron";
438
+ }>;
439
+ name: z.ZodMiniString<string>;
440
+ }, z.core.$strip>;
441
+ sourceToken: z.ZodMiniObject<{
442
+ address: z.ZodMiniString<string>;
443
+ currency: z.ZodMiniString<string>;
444
+ decimals: z.ZodMiniNumber<number>;
445
+ name: z.ZodMiniString<string>;
446
+ standard: z.ZodMiniString<string>;
447
+ symbol: z.ZodMiniString<string>;
448
+ tokenKey: z.ZodMiniString<string>;
449
+ verified: z.ZodMiniBoolean<boolean>;
450
+ }, z.core.$strip>;
451
+ status: z.ZodMiniEnum<{
452
+ "action-required": "action-required";
453
+ active: "active";
454
+ }>;
455
+ subsidize: z.ZodMiniBoolean<boolean>;
456
+ updatedAt: z.ZodMiniString<string>;
457
+ }, z.core.$strip>;
458
+ }
459
+ /** Schemas for the reconcileFundingDepositAddress operation. */
460
+ namespace reconcileFundingDepositAddress {
461
+ /** Path parameters for reconciling a funding deposit address. */
462
+ const Params: z.ZodMiniObject<{
463
+ id: z.ZodMiniString<string>;
464
+ }, z.core.$strip>;
465
+ }
466
+ /** Schemas for the listFundingDeposits operation. */
467
+ namespace listFundingDeposits {
468
+ /** Query parameters for listing funding deposits. */
469
+ const Query: z.ZodMiniObject<{
470
+ depositAddress: z.ZodMiniOptional<z.ZodMiniString<string>>;
471
+ cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
472
+ limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
473
+ recipient: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
474
+ }, z.core.$strip>;
475
+ /** One page of detected deposits. */
476
+ const Response: z.ZodMiniObject<{
477
+ data: z.ZodMiniArray<z.ZodMiniObject<{
478
+ createdAt: z.ZodMiniString<string>;
479
+ depositAddressId: z.ZodMiniString<string>;
480
+ detectionTrigger: z.ZodMiniOptional<z.ZodMiniEnum<{
481
+ chain: "chain";
482
+ manual: "manual";
483
+ poll: "poll";
484
+ webhook: "webhook";
485
+ }>>;
486
+ destinationAmount: z.ZodMiniOptional<z.ZodMiniObject<{
487
+ baseUnits: z.ZodMiniString<string>;
488
+ currency: z.ZodMiniString<string>;
489
+ decimals: z.ZodMiniNumber<number>;
490
+ formatted: z.ZodMiniString<string>;
491
+ }, z.core.$strip>>;
492
+ destinationAmountRequired: z.ZodMiniOptional<z.ZodMiniObject<{
493
+ baseUnits: z.ZodMiniString<string>;
494
+ currency: z.ZodMiniString<string>;
495
+ decimals: z.ZodMiniNumber<number>;
496
+ formatted: z.ZodMiniString<string>;
497
+ }, z.core.$strip>>;
498
+ destinationChain: z.ZodMiniObject<{
499
+ addressFormat: z.ZodMiniEnum<{
500
+ base58: "base58";
501
+ base58check: "base58check";
502
+ hex: "hex";
503
+ }>;
504
+ id: z.ZodMiniString<string>;
505
+ kind: z.ZodMiniEnum<{
506
+ evm: "evm";
507
+ solana: "solana";
508
+ tron: "tron";
509
+ }>;
510
+ name: z.ZodMiniString<string>;
511
+ }, z.core.$strip>;
512
+ destinationToken: z.ZodMiniObject<{
513
+ address: z.ZodMiniString<string>;
514
+ currency: z.ZodMiniString<string>;
515
+ decimals: z.ZodMiniNumber<number>;
516
+ name: z.ZodMiniString<string>;
517
+ standard: z.ZodMiniString<string>;
518
+ symbol: z.ZodMiniString<string>;
519
+ tokenKey: z.ZodMiniString<string>;
520
+ verified: z.ZodMiniBoolean<boolean>;
521
+ }, z.core.$strip>;
522
+ destinationTransactionHashes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
523
+ id: z.ZodMiniString<string>;
524
+ provider: z.ZodMiniObject<{
525
+ id: z.ZodMiniString<string>;
526
+ name: z.ZodMiniString<string>;
527
+ }, z.core.$strip>;
528
+ recipient: z.ZodMiniString<string>;
529
+ refundAddress: z.ZodMiniString<string>;
530
+ refundAmount: z.ZodMiniOptional<z.ZodMiniObject<{
531
+ baseUnits: z.ZodMiniString<string>;
532
+ currency: z.ZodMiniString<string>;
533
+ decimals: z.ZodMiniNumber<number>;
534
+ formatted: z.ZodMiniString<string>;
535
+ }, z.core.$strip>>;
536
+ refundTransactionHashes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
537
+ sender: z.ZodMiniOptional<z.ZodMiniString<string>>;
538
+ sourceAmount: z.ZodMiniOptional<z.ZodMiniObject<{
539
+ baseUnits: z.ZodMiniString<string>;
540
+ currency: z.ZodMiniString<string>;
541
+ decimals: z.ZodMiniNumber<number>;
542
+ formatted: z.ZodMiniString<string>;
543
+ }, z.core.$strip>>;
544
+ sourceChain: z.ZodMiniObject<{
545
+ addressFormat: z.ZodMiniEnum<{
546
+ base58: "base58";
547
+ base58check: "base58check";
548
+ hex: "hex";
549
+ }>;
550
+ id: z.ZodMiniString<string>;
551
+ kind: z.ZodMiniEnum<{
552
+ evm: "evm";
553
+ solana: "solana";
554
+ tron: "tron";
555
+ }>;
556
+ name: z.ZodMiniString<string>;
557
+ }, z.core.$strip>;
558
+ sourceToken: z.ZodMiniObject<{
559
+ address: z.ZodMiniString<string>;
560
+ currency: z.ZodMiniString<string>;
561
+ decimals: z.ZodMiniNumber<number>;
562
+ name: z.ZodMiniString<string>;
563
+ standard: z.ZodMiniString<string>;
564
+ symbol: z.ZodMiniString<string>;
565
+ tokenKey: z.ZodMiniString<string>;
566
+ verified: z.ZodMiniBoolean<boolean>;
567
+ }, z.core.$strip>;
568
+ sourceTransactionHashes: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
569
+ sourceTransferIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
570
+ status: z.ZodMiniEnum<{
571
+ "action-required": "action-required";
572
+ bridging: "bridging";
573
+ completed: "completed";
574
+ detected: "detected";
575
+ refunded: "refunded";
576
+ refunding: "refunding";
577
+ settling: "settling";
578
+ }>;
579
+ statusReason: z.ZodMiniOptional<z.ZodMiniObject<{
580
+ code: z.ZodMiniEnum<{
581
+ delivery_failed: "delivery_failed";
582
+ delivery_liquidity_unavailable: "delivery_liquidity_unavailable";
583
+ manual_recovery_required: "manual_recovery_required";
584
+ refund_failed: "refund_failed";
585
+ source_amount_not_supported: "source_amount_not_supported";
586
+ source_token_mismatch: "source_token_mismatch";
587
+ subsidy_balance_unavailable: "subsidy_balance_unavailable";
588
+ subsidy_failed: "subsidy_failed";
589
+ }>;
590
+ message: z.ZodMiniString<string>;
591
+ }, z.core.$strip>>;
592
+ updatedAt: z.ZodMiniString<string>;
593
+ }, z.core.$strip>>;
594
+ nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
595
+ }, z.core.$strip>;
596
+ }
597
+ /** Schemas for the getFundingDeposit operation. */
598
+ namespace getFundingDeposit {
599
+ /** Path parameters for reading a funding deposit. */
600
+ const Params: z.ZodMiniObject<{
601
+ id: z.ZodMiniString<string>;
602
+ }, z.core.$strip>;
603
+ /** One detected funding deposit. */
604
+ const Response: z.ZodMiniObject<{
605
+ createdAt: z.ZodMiniString<string>;
606
+ depositAddressId: z.ZodMiniString<string>;
607
+ detectionTrigger: z.ZodMiniOptional<z.ZodMiniEnum<{
608
+ chain: "chain";
609
+ manual: "manual";
610
+ poll: "poll";
611
+ webhook: "webhook";
612
+ }>>;
613
+ destinationAmount: z.ZodMiniOptional<z.ZodMiniObject<{
614
+ baseUnits: z.ZodMiniString<string>;
615
+ currency: z.ZodMiniString<string>;
616
+ decimals: z.ZodMiniNumber<number>;
617
+ formatted: z.ZodMiniString<string>;
618
+ }, z.core.$strip>>;
619
+ destinationAmountRequired: z.ZodMiniOptional<z.ZodMiniObject<{
620
+ baseUnits: z.ZodMiniString<string>;
621
+ currency: z.ZodMiniString<string>;
622
+ decimals: z.ZodMiniNumber<number>;
623
+ formatted: z.ZodMiniString<string>;
624
+ }, z.core.$strip>>;
625
+ destinationChain: z.ZodMiniObject<{
626
+ addressFormat: z.ZodMiniEnum<{
627
+ base58: "base58";
628
+ base58check: "base58check";
629
+ hex: "hex";
630
+ }>;
631
+ id: z.ZodMiniString<string>;
632
+ kind: z.ZodMiniEnum<{
633
+ evm: "evm";
634
+ solana: "solana";
635
+ tron: "tron";
636
+ }>;
637
+ name: z.ZodMiniString<string>;
638
+ }, z.core.$strip>;
639
+ destinationToken: z.ZodMiniObject<{
640
+ address: z.ZodMiniString<string>;
641
+ currency: z.ZodMiniString<string>;
642
+ decimals: z.ZodMiniNumber<number>;
643
+ name: z.ZodMiniString<string>;
644
+ standard: z.ZodMiniString<string>;
645
+ symbol: z.ZodMiniString<string>;
646
+ tokenKey: z.ZodMiniString<string>;
647
+ verified: z.ZodMiniBoolean<boolean>;
648
+ }, z.core.$strip>;
649
+ destinationTransactionHashes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
650
+ id: z.ZodMiniString<string>;
651
+ provider: z.ZodMiniObject<{
652
+ id: z.ZodMiniString<string>;
653
+ name: z.ZodMiniString<string>;
654
+ }, z.core.$strip>;
655
+ recipient: z.ZodMiniString<string>;
656
+ refundAddress: z.ZodMiniString<string>;
657
+ refundAmount: z.ZodMiniOptional<z.ZodMiniObject<{
658
+ baseUnits: z.ZodMiniString<string>;
659
+ currency: z.ZodMiniString<string>;
660
+ decimals: z.ZodMiniNumber<number>;
661
+ formatted: z.ZodMiniString<string>;
662
+ }, z.core.$strip>>;
663
+ refundTransactionHashes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
664
+ sender: z.ZodMiniOptional<z.ZodMiniString<string>>;
665
+ sourceAmount: z.ZodMiniOptional<z.ZodMiniObject<{
666
+ baseUnits: z.ZodMiniString<string>;
667
+ currency: z.ZodMiniString<string>;
668
+ decimals: z.ZodMiniNumber<number>;
669
+ formatted: z.ZodMiniString<string>;
670
+ }, z.core.$strip>>;
671
+ sourceChain: z.ZodMiniObject<{
672
+ addressFormat: z.ZodMiniEnum<{
673
+ base58: "base58";
674
+ base58check: "base58check";
675
+ hex: "hex";
676
+ }>;
677
+ id: z.ZodMiniString<string>;
678
+ kind: z.ZodMiniEnum<{
679
+ evm: "evm";
680
+ solana: "solana";
681
+ tron: "tron";
682
+ }>;
683
+ name: z.ZodMiniString<string>;
684
+ }, z.core.$strip>;
685
+ sourceToken: z.ZodMiniObject<{
686
+ address: z.ZodMiniString<string>;
687
+ currency: z.ZodMiniString<string>;
688
+ decimals: z.ZodMiniNumber<number>;
689
+ name: z.ZodMiniString<string>;
690
+ standard: z.ZodMiniString<string>;
691
+ symbol: z.ZodMiniString<string>;
692
+ tokenKey: z.ZodMiniString<string>;
693
+ verified: z.ZodMiniBoolean<boolean>;
694
+ }, z.core.$strip>;
695
+ sourceTransactionHashes: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
696
+ sourceTransferIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
697
+ status: z.ZodMiniEnum<{
698
+ "action-required": "action-required";
699
+ bridging: "bridging";
700
+ completed: "completed";
701
+ detected: "detected";
702
+ refunded: "refunded";
703
+ refunding: "refunding";
704
+ settling: "settling";
705
+ }>;
706
+ statusReason: z.ZodMiniOptional<z.ZodMiniObject<{
707
+ code: z.ZodMiniEnum<{
708
+ delivery_failed: "delivery_failed";
709
+ delivery_liquidity_unavailable: "delivery_liquidity_unavailable";
710
+ manual_recovery_required: "manual_recovery_required";
711
+ refund_failed: "refund_failed";
712
+ source_amount_not_supported: "source_amount_not_supported";
713
+ source_token_mismatch: "source_token_mismatch";
714
+ subsidy_balance_unavailable: "subsidy_balance_unavailable";
715
+ subsidy_failed: "subsidy_failed";
716
+ }>;
717
+ message: z.ZodMiniString<string>;
718
+ }, z.core.$strip>>;
719
+ updatedAt: z.ZodMiniString<string>;
720
+ }, z.core.$strip>;
721
+ }
722
+ }
723
+ /** Mounts reusable deposit-address and detected-deposit routes. */
724
+ export declare function depositAddresses(options?: depositAddresses.Options): import("hono/hono-base").HonoBase<App.Environment, {
725
+ "/webhooks/funding/:providerId": {
726
+ $post: {
727
+ output: null;
728
+ outputFormat: "body";
729
+ status: 204;
730
+ input: {
731
+ param: {
732
+ providerId: string;
733
+ };
734
+ };
735
+ } | {
736
+ output: null;
737
+ outputFormat: "body";
738
+ status: 400;
739
+ input: {
740
+ param: {
741
+ providerId: string;
742
+ };
743
+ };
744
+ } | {
745
+ output: null;
746
+ outputFormat: "body";
747
+ status: 401;
748
+ input: {
749
+ param: {
750
+ providerId: string;
751
+ };
752
+ };
753
+ } | {
754
+ output: null;
755
+ outputFormat: "body";
756
+ status: 404;
757
+ input: {
758
+ param: {
759
+ providerId: string;
760
+ };
761
+ };
762
+ };
763
+ };
764
+ } & {
765
+ "/v1/funding/deposit-addresses": {
766
+ $post: {
767
+ output: {
768
+ error: {
769
+ code: "api_key_malformed";
770
+ details?: readonly Response.error.Detail[] | undefined;
771
+ message: string;
772
+ };
773
+ requestId: string;
774
+ };
775
+ outputFormat: "json";
776
+ status: 400;
777
+ input: {
778
+ header: {
779
+ 'idempotency-key': string;
780
+ };
781
+ } & {
782
+ json: {
783
+ amount: string;
784
+ destinationToken: string;
785
+ recipient: string;
786
+ refundAddress: string;
787
+ sourceChain: string;
788
+ sourceToken: string;
789
+ subsidize?: boolean | undefined;
790
+ };
791
+ };
792
+ } | {
793
+ output: {
794
+ error: {
795
+ code: "api_key_invalid" | "api_key_missing";
796
+ details?: readonly Response.error.Detail[] | undefined;
797
+ message: string;
798
+ };
799
+ requestId: string;
800
+ };
801
+ outputFormat: "json";
802
+ status: 401;
803
+ input: {
804
+ header: {
805
+ 'idempotency-key': string;
806
+ };
807
+ } & {
808
+ json: {
809
+ amount: string;
810
+ destinationToken: string;
811
+ recipient: string;
812
+ refundAddress: string;
813
+ sourceChain: string;
814
+ sourceToken: string;
815
+ subsidize?: boolean | undefined;
816
+ };
817
+ };
818
+ } | {
819
+ output: {
820
+ error: {
821
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
822
+ details?: readonly Response.error.Detail[] | undefined;
823
+ message: string;
824
+ };
825
+ requestId: string;
826
+ };
827
+ outputFormat: "json";
828
+ status: 403;
829
+ input: {
830
+ header: {
831
+ 'idempotency-key': string;
832
+ };
833
+ } & {
834
+ json: {
835
+ amount: string;
836
+ destinationToken: string;
837
+ recipient: string;
838
+ refundAddress: string;
839
+ sourceChain: string;
840
+ sourceToken: string;
841
+ subsidize?: boolean | undefined;
842
+ };
843
+ };
844
+ } | {
845
+ output: {
846
+ error: {
847
+ code: "payment_required" | "rate_limit_exceeded";
848
+ details?: readonly Response.error.Detail[] | undefined;
849
+ message: string;
850
+ };
851
+ requestId: string;
852
+ };
853
+ outputFormat: "json";
854
+ status: 429;
855
+ input: {
856
+ header: {
857
+ 'idempotency-key': string;
858
+ };
859
+ } & {
860
+ json: {
861
+ amount: string;
862
+ destinationToken: string;
863
+ recipient: string;
864
+ refundAddress: string;
865
+ sourceChain: string;
866
+ sourceToken: string;
867
+ subsidize?: boolean | undefined;
868
+ };
869
+ };
870
+ } | {
871
+ output: {
872
+ error: {
873
+ code: "upstream_error";
874
+ details?: readonly Response.error.Detail[] | undefined;
875
+ message: string;
876
+ };
877
+ requestId: string;
878
+ };
879
+ outputFormat: "json";
880
+ status: 502;
881
+ input: {
882
+ header: {
883
+ 'idempotency-key': string;
884
+ };
885
+ } & {
886
+ json: {
887
+ amount: string;
888
+ destinationToken: string;
889
+ recipient: string;
890
+ refundAddress: string;
891
+ sourceChain: string;
892
+ sourceToken: string;
893
+ subsidize?: boolean | undefined;
894
+ };
895
+ };
896
+ } | {
897
+ output: {
898
+ error: {
899
+ code: "body_invalid";
900
+ details?: readonly Response.error.Detail[] | undefined;
901
+ message: string;
902
+ };
903
+ requestId: string;
904
+ };
905
+ outputFormat: "json";
906
+ status: 400;
907
+ input: {
908
+ header: {
909
+ 'idempotency-key': string;
910
+ };
911
+ } & {
912
+ json: {
913
+ amount: string;
914
+ destinationToken: string;
915
+ recipient: string;
916
+ refundAddress: string;
917
+ sourceChain: string;
918
+ sourceToken: string;
919
+ subsidize?: boolean | undefined;
920
+ };
921
+ };
922
+ } | {
923
+ output: {
924
+ error: {
925
+ code: "unauthorized";
926
+ details?: readonly Response.error.Detail[] | undefined;
927
+ message: string;
928
+ };
929
+ requestId: string;
930
+ };
931
+ outputFormat: "json";
932
+ status: 401;
933
+ input: {
934
+ header: {
935
+ 'idempotency-key': string;
936
+ };
937
+ } & {
938
+ json: {
939
+ amount: string;
940
+ destinationToken: string;
941
+ recipient: string;
942
+ refundAddress: string;
943
+ sourceChain: string;
944
+ sourceToken: string;
945
+ subsidize?: boolean | undefined;
946
+ };
947
+ };
948
+ } | {
949
+ output: {
950
+ error: {
951
+ code: "idempotency_conflict";
952
+ details?: readonly Response.error.Detail[] | undefined;
953
+ message: string;
954
+ };
955
+ requestId: string;
956
+ };
957
+ outputFormat: "json";
958
+ status: 409;
959
+ input: {
960
+ header: {
961
+ 'idempotency-key': string;
962
+ };
963
+ } & {
964
+ json: {
965
+ amount: string;
966
+ destinationToken: string;
967
+ recipient: string;
968
+ refundAddress: string;
969
+ sourceChain: string;
970
+ sourceToken: string;
971
+ subsidize?: boolean | undefined;
972
+ };
973
+ };
974
+ } | {
975
+ output: {
976
+ error: {
977
+ code: "idempotency_in_progress";
978
+ details?: readonly Response.error.Detail[] | undefined;
979
+ message: string;
980
+ };
981
+ requestId: string;
982
+ };
983
+ outputFormat: "json";
984
+ status: 409;
985
+ input: {
986
+ header: {
987
+ 'idempotency-key': string;
988
+ };
989
+ } & {
990
+ json: {
991
+ amount: string;
992
+ destinationToken: string;
993
+ recipient: string;
994
+ refundAddress: string;
995
+ sourceChain: string;
996
+ sourceToken: string;
997
+ subsidize?: boolean | undefined;
998
+ };
999
+ };
1000
+ } | {
1001
+ output: {
1002
+ error: {
1003
+ code: "deposit_address_not_available";
1004
+ details?: readonly Response.error.Detail[] | undefined;
1005
+ message: string;
1006
+ };
1007
+ requestId: string;
1008
+ };
1009
+ outputFormat: "json";
1010
+ status: 404;
1011
+ input: {
1012
+ header: {
1013
+ 'idempotency-key': string;
1014
+ };
1015
+ } & {
1016
+ json: {
1017
+ amount: string;
1018
+ destinationToken: string;
1019
+ recipient: string;
1020
+ refundAddress: string;
1021
+ sourceChain: string;
1022
+ sourceToken: string;
1023
+ subsidize?: boolean | undefined;
1024
+ };
1025
+ };
1026
+ } | {
1027
+ output: {
1028
+ address: string;
1029
+ createdAt: string;
1030
+ destinationChain: {
1031
+ addressFormat: "base58" | "base58check" | "hex";
1032
+ id: string;
1033
+ kind: "evm" | "solana" | "tron";
1034
+ name: string;
1035
+ };
1036
+ destinationToken: {
1037
+ address: string;
1038
+ currency: string;
1039
+ decimals: number;
1040
+ name: string;
1041
+ standard: string;
1042
+ symbol: string;
1043
+ tokenKey: string;
1044
+ verified: boolean;
1045
+ };
1046
+ id: string;
1047
+ provider: {
1048
+ id: string;
1049
+ name: string;
1050
+ };
1051
+ recipient: string;
1052
+ refundAddress: string;
1053
+ sourceChain: {
1054
+ addressFormat: "base58" | "base58check" | "hex";
1055
+ id: string;
1056
+ kind: "evm" | "solana" | "tron";
1057
+ name: string;
1058
+ };
1059
+ sourceToken: {
1060
+ address: string;
1061
+ currency: string;
1062
+ decimals: number;
1063
+ name: string;
1064
+ standard: string;
1065
+ symbol: string;
1066
+ tokenKey: string;
1067
+ verified: boolean;
1068
+ };
1069
+ status: "action-required" | "active";
1070
+ subsidize: boolean;
1071
+ updatedAt: string;
1072
+ } | {
1073
+ address: string;
1074
+ createdAt: string;
1075
+ destinationChain: {
1076
+ addressFormat: "base58" | "base58check" | "hex";
1077
+ id: string;
1078
+ kind: "evm" | "solana" | "tron";
1079
+ name: string;
1080
+ };
1081
+ destinationToken: {
1082
+ address: string;
1083
+ currency: string;
1084
+ decimals: number;
1085
+ name: string;
1086
+ standard: string;
1087
+ symbol: string;
1088
+ tokenKey: string;
1089
+ verified: boolean;
1090
+ };
1091
+ id: string;
1092
+ provider: {
1093
+ id: string;
1094
+ name: string;
1095
+ };
1096
+ recipient: string;
1097
+ refundAddress: string;
1098
+ sourceChain: {
1099
+ addressFormat: "base58" | "base58check" | "hex";
1100
+ id: string;
1101
+ kind: "evm" | "solana" | "tron";
1102
+ name: string;
1103
+ };
1104
+ sourceToken: {
1105
+ address: string;
1106
+ currency: string;
1107
+ decimals: number;
1108
+ name: string;
1109
+ standard: string;
1110
+ symbol: string;
1111
+ tokenKey: string;
1112
+ verified: boolean;
1113
+ };
1114
+ status: "action-required" | "active";
1115
+ subsidize: boolean;
1116
+ updatedAt: string;
1117
+ destinationAmount: {
1118
+ baseUnits: string;
1119
+ currency: string;
1120
+ decimals: number;
1121
+ formatted: string;
1122
+ };
1123
+ destinationAmountMin?: {
1124
+ baseUnits: string;
1125
+ currency: string;
1126
+ decimals: number;
1127
+ formatted: string;
1128
+ } | undefined;
1129
+ fees: {
1130
+ amount: {
1131
+ baseUnits: string;
1132
+ currency: string;
1133
+ decimals: number;
1134
+ formatted: string;
1135
+ };
1136
+ side: "destination" | "source";
1137
+ token: {
1138
+ address: string;
1139
+ currency: string;
1140
+ decimals: number;
1141
+ name: string;
1142
+ standard: string;
1143
+ symbol: string;
1144
+ tokenKey: string;
1145
+ verified: boolean;
1146
+ };
1147
+ type: "provider";
1148
+ }[];
1149
+ quote: {
1150
+ expiresAt?: string | undefined;
1151
+ sampledAt: string;
1152
+ };
1153
+ sourceAmount: {
1154
+ baseUnits: string;
1155
+ currency: string;
1156
+ decimals: number;
1157
+ formatted: string;
1158
+ };
1159
+ };
1160
+ outputFormat: "json";
1161
+ status: 200;
1162
+ input: {
1163
+ header: {
1164
+ 'idempotency-key': string;
1165
+ };
1166
+ } & {
1167
+ json: {
1168
+ amount: string;
1169
+ destinationToken: string;
1170
+ recipient: string;
1171
+ refundAddress: string;
1172
+ sourceChain: string;
1173
+ sourceToken: string;
1174
+ subsidize?: boolean | undefined;
1175
+ };
1176
+ };
1177
+ };
1178
+ };
1179
+ } & {
1180
+ "/v1/funding/deposit-addresses/:id{fda_[A-Za-z0-9_-]+}": {
1181
+ $get: {
1182
+ output: {
1183
+ error: {
1184
+ code: "api_key_malformed";
1185
+ details?: readonly Response.error.Detail[] | undefined;
1186
+ message: string;
1187
+ };
1188
+ requestId: string;
1189
+ };
1190
+ outputFormat: "json";
1191
+ status: 400;
1192
+ input: {
1193
+ param: {
1194
+ id: string;
1195
+ };
1196
+ };
1197
+ } | {
1198
+ output: {
1199
+ error: {
1200
+ code: "api_key_invalid" | "api_key_missing";
1201
+ details?: readonly Response.error.Detail[] | undefined;
1202
+ message: string;
1203
+ };
1204
+ requestId: string;
1205
+ };
1206
+ outputFormat: "json";
1207
+ status: 401;
1208
+ input: {
1209
+ param: {
1210
+ id: string;
1211
+ };
1212
+ };
1213
+ } | {
1214
+ output: {
1215
+ error: {
1216
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1217
+ details?: readonly Response.error.Detail[] | undefined;
1218
+ message: string;
1219
+ };
1220
+ requestId: string;
1221
+ };
1222
+ outputFormat: "json";
1223
+ status: 403;
1224
+ input: {
1225
+ param: {
1226
+ id: string;
1227
+ };
1228
+ };
1229
+ } | {
1230
+ output: {
1231
+ error: {
1232
+ code: "payment_required" | "rate_limit_exceeded";
1233
+ details?: readonly Response.error.Detail[] | undefined;
1234
+ message: string;
1235
+ };
1236
+ requestId: string;
1237
+ };
1238
+ outputFormat: "json";
1239
+ status: 429;
1240
+ input: {
1241
+ param: {
1242
+ id: string;
1243
+ };
1244
+ };
1245
+ } | {
1246
+ output: {
1247
+ error: {
1248
+ code: "upstream_error";
1249
+ details?: readonly Response.error.Detail[] | undefined;
1250
+ message: string;
1251
+ };
1252
+ requestId: string;
1253
+ };
1254
+ outputFormat: "json";
1255
+ status: 502;
1256
+ input: {
1257
+ param: {
1258
+ id: string;
1259
+ };
1260
+ };
1261
+ } | {
1262
+ output: {
1263
+ error: {
1264
+ code: "unauthorized";
1265
+ details?: readonly Response.error.Detail[] | undefined;
1266
+ message: string;
1267
+ };
1268
+ requestId: string;
1269
+ };
1270
+ outputFormat: "json";
1271
+ status: 401;
1272
+ input: {
1273
+ param: {
1274
+ id: string;
1275
+ };
1276
+ };
1277
+ } | {
1278
+ output: {
1279
+ address: string;
1280
+ createdAt: string;
1281
+ destinationChain: {
1282
+ addressFormat: "base58" | "base58check" | "hex";
1283
+ id: string;
1284
+ kind: "evm" | "solana" | "tron";
1285
+ name: string;
1286
+ };
1287
+ destinationToken: {
1288
+ address: string;
1289
+ currency: string;
1290
+ decimals: number;
1291
+ name: string;
1292
+ standard: string;
1293
+ symbol: string;
1294
+ tokenKey: string;
1295
+ verified: boolean;
1296
+ };
1297
+ id: string;
1298
+ provider: {
1299
+ id: string;
1300
+ name: string;
1301
+ };
1302
+ recipient: string;
1303
+ refundAddress: string;
1304
+ sourceChain: {
1305
+ addressFormat: "base58" | "base58check" | "hex";
1306
+ id: string;
1307
+ kind: "evm" | "solana" | "tron";
1308
+ name: string;
1309
+ };
1310
+ sourceToken: {
1311
+ address: string;
1312
+ currency: string;
1313
+ decimals: number;
1314
+ name: string;
1315
+ standard: string;
1316
+ symbol: string;
1317
+ tokenKey: string;
1318
+ verified: boolean;
1319
+ };
1320
+ status: "action-required" | "active";
1321
+ subsidize: boolean;
1322
+ updatedAt: string;
1323
+ };
1324
+ outputFormat: "json";
1325
+ status: 200;
1326
+ input: {
1327
+ param: {
1328
+ id: string;
1329
+ };
1330
+ };
1331
+ } | {
1332
+ output: {
1333
+ error: {
1334
+ code: "param_invalid";
1335
+ details?: readonly Response.error.Detail[] | undefined;
1336
+ message: string;
1337
+ };
1338
+ requestId: string;
1339
+ };
1340
+ outputFormat: "json";
1341
+ status: 400;
1342
+ input: {
1343
+ param: {
1344
+ id: string;
1345
+ };
1346
+ };
1347
+ } | {
1348
+ output: {
1349
+ error: {
1350
+ code: "funding_deposit_address_not_found";
1351
+ details?: readonly Response.error.Detail[] | undefined;
1352
+ message: string;
1353
+ };
1354
+ requestId: string;
1355
+ };
1356
+ outputFormat: "json";
1357
+ status: 404;
1358
+ input: {
1359
+ param: {
1360
+ id: string;
1361
+ };
1362
+ };
1363
+ };
1364
+ };
1365
+ } & {
1366
+ "/v1/funding/deposit-addresses/:id{fda_[A-Za-z0-9_-]+}/reconcile": {
1367
+ $post: {
1368
+ output: null;
1369
+ outputFormat: "body";
1370
+ status: 202;
1371
+ input: {
1372
+ param: {
1373
+ id: string;
1374
+ };
1375
+ };
1376
+ } | {
1377
+ output: {
1378
+ error: {
1379
+ code: "api_key_malformed";
1380
+ details?: readonly Response.error.Detail[] | undefined;
1381
+ message: string;
1382
+ };
1383
+ requestId: string;
1384
+ };
1385
+ outputFormat: "json";
1386
+ status: 400;
1387
+ input: {
1388
+ param: {
1389
+ id: string;
1390
+ };
1391
+ };
1392
+ } | {
1393
+ output: {
1394
+ error: {
1395
+ code: "api_key_invalid" | "api_key_missing";
1396
+ details?: readonly Response.error.Detail[] | undefined;
1397
+ message: string;
1398
+ };
1399
+ requestId: string;
1400
+ };
1401
+ outputFormat: "json";
1402
+ status: 401;
1403
+ input: {
1404
+ param: {
1405
+ id: string;
1406
+ };
1407
+ };
1408
+ } | {
1409
+ output: {
1410
+ error: {
1411
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1412
+ details?: readonly Response.error.Detail[] | undefined;
1413
+ message: string;
1414
+ };
1415
+ requestId: string;
1416
+ };
1417
+ outputFormat: "json";
1418
+ status: 403;
1419
+ input: {
1420
+ param: {
1421
+ id: string;
1422
+ };
1423
+ };
1424
+ } | {
1425
+ output: {
1426
+ error: {
1427
+ code: "payment_required" | "rate_limit_exceeded";
1428
+ details?: readonly Response.error.Detail[] | undefined;
1429
+ message: string;
1430
+ };
1431
+ requestId: string;
1432
+ };
1433
+ outputFormat: "json";
1434
+ status: 429;
1435
+ input: {
1436
+ param: {
1437
+ id: string;
1438
+ };
1439
+ };
1440
+ } | {
1441
+ output: {
1442
+ error: {
1443
+ code: "upstream_error";
1444
+ details?: readonly Response.error.Detail[] | undefined;
1445
+ message: string;
1446
+ };
1447
+ requestId: string;
1448
+ };
1449
+ outputFormat: "json";
1450
+ status: 502;
1451
+ input: {
1452
+ param: {
1453
+ id: string;
1454
+ };
1455
+ };
1456
+ } | {
1457
+ output: {
1458
+ error: {
1459
+ code: "unauthorized";
1460
+ details?: readonly Response.error.Detail[] | undefined;
1461
+ message: string;
1462
+ };
1463
+ requestId: string;
1464
+ };
1465
+ outputFormat: "json";
1466
+ status: 401;
1467
+ input: {
1468
+ param: {
1469
+ id: string;
1470
+ };
1471
+ };
1472
+ } | {
1473
+ output: {
1474
+ error: {
1475
+ code: "param_invalid";
1476
+ details?: readonly Response.error.Detail[] | undefined;
1477
+ message: string;
1478
+ };
1479
+ requestId: string;
1480
+ };
1481
+ outputFormat: "json";
1482
+ status: 400;
1483
+ input: {
1484
+ param: {
1485
+ id: string;
1486
+ };
1487
+ };
1488
+ } | {
1489
+ output: {
1490
+ error: {
1491
+ code: "funding_deposit_address_not_found";
1492
+ details?: readonly Response.error.Detail[] | undefined;
1493
+ message: string;
1494
+ };
1495
+ requestId: string;
1496
+ };
1497
+ outputFormat: "json";
1498
+ status: 404;
1499
+ input: {
1500
+ param: {
1501
+ id: string;
1502
+ };
1503
+ };
1504
+ } | {
1505
+ output: {
1506
+ error: {
1507
+ code: "funding_deposit_address_not_active";
1508
+ details?: readonly Response.error.Detail[] | undefined;
1509
+ message: string;
1510
+ };
1511
+ requestId: string;
1512
+ };
1513
+ outputFormat: "json";
1514
+ status: 409;
1515
+ input: {
1516
+ param: {
1517
+ id: string;
1518
+ };
1519
+ };
1520
+ } | {
1521
+ output: {
1522
+ error: {
1523
+ code: "not_implemented";
1524
+ details?: readonly Response.error.Detail[] | undefined;
1525
+ message: string;
1526
+ };
1527
+ requestId: string;
1528
+ };
1529
+ outputFormat: "json";
1530
+ status: 501;
1531
+ input: {
1532
+ param: {
1533
+ id: string;
1534
+ };
1535
+ };
1536
+ };
1537
+ };
1538
+ } & {
1539
+ "/v1/funding/deposits": {
1540
+ $get: {
1541
+ output: {
1542
+ error: {
1543
+ code: "api_key_malformed";
1544
+ details?: readonly Response.error.Detail[] | undefined;
1545
+ message: string;
1546
+ };
1547
+ requestId: string;
1548
+ };
1549
+ outputFormat: "json";
1550
+ status: 400;
1551
+ input: {
1552
+ query?: {
1553
+ depositAddress?: string | string[];
1554
+ cursor?: string | string[];
1555
+ limit?: string | string[];
1556
+ recipient?: string | string[];
1557
+ } | undefined;
1558
+ };
1559
+ } | {
1560
+ output: {
1561
+ error: {
1562
+ code: "api_key_invalid" | "api_key_missing";
1563
+ details?: readonly Response.error.Detail[] | undefined;
1564
+ message: string;
1565
+ };
1566
+ requestId: string;
1567
+ };
1568
+ outputFormat: "json";
1569
+ status: 401;
1570
+ input: {
1571
+ query?: {
1572
+ depositAddress?: string | string[];
1573
+ cursor?: string | string[];
1574
+ limit?: string | string[];
1575
+ recipient?: string | string[];
1576
+ } | undefined;
1577
+ };
1578
+ } | {
1579
+ output: {
1580
+ error: {
1581
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1582
+ details?: readonly Response.error.Detail[] | undefined;
1583
+ message: string;
1584
+ };
1585
+ requestId: string;
1586
+ };
1587
+ outputFormat: "json";
1588
+ status: 403;
1589
+ input: {
1590
+ query?: {
1591
+ depositAddress?: string | string[];
1592
+ cursor?: string | string[];
1593
+ limit?: string | string[];
1594
+ recipient?: string | string[];
1595
+ } | undefined;
1596
+ };
1597
+ } | {
1598
+ output: {
1599
+ error: {
1600
+ code: "payment_required" | "rate_limit_exceeded";
1601
+ details?: readonly Response.error.Detail[] | undefined;
1602
+ message: string;
1603
+ };
1604
+ requestId: string;
1605
+ };
1606
+ outputFormat: "json";
1607
+ status: 429;
1608
+ input: {
1609
+ query?: {
1610
+ depositAddress?: string | string[];
1611
+ cursor?: string | string[];
1612
+ limit?: string | string[];
1613
+ recipient?: string | string[];
1614
+ } | undefined;
1615
+ };
1616
+ } | {
1617
+ output: {
1618
+ error: {
1619
+ code: "query_invalid";
1620
+ details?: readonly Response.error.Detail[] | undefined;
1621
+ message: string;
1622
+ };
1623
+ requestId: string;
1624
+ };
1625
+ outputFormat: "json";
1626
+ status: 400;
1627
+ input: {
1628
+ query?: {
1629
+ depositAddress?: string | string[];
1630
+ cursor?: string | string[];
1631
+ limit?: string | string[];
1632
+ recipient?: string | string[];
1633
+ } | undefined;
1634
+ };
1635
+ } | {
1636
+ output: {
1637
+ error: {
1638
+ code: "upstream_error";
1639
+ details?: readonly Response.error.Detail[] | undefined;
1640
+ message: string;
1641
+ };
1642
+ requestId: string;
1643
+ };
1644
+ outputFormat: "json";
1645
+ status: 502;
1646
+ input: {
1647
+ query?: {
1648
+ depositAddress?: string | string[];
1649
+ cursor?: string | string[];
1650
+ limit?: string | string[];
1651
+ recipient?: string | string[];
1652
+ } | undefined;
1653
+ };
1654
+ } | {
1655
+ output: {
1656
+ error: {
1657
+ code: "unauthorized";
1658
+ details?: readonly Response.error.Detail[] | undefined;
1659
+ message: string;
1660
+ };
1661
+ requestId: string;
1662
+ };
1663
+ outputFormat: "json";
1664
+ status: 401;
1665
+ input: {
1666
+ query?: {
1667
+ depositAddress?: string | string[];
1668
+ cursor?: string | string[];
1669
+ limit?: string | string[];
1670
+ recipient?: string | string[];
1671
+ } | undefined;
1672
+ };
1673
+ } | {
1674
+ output: {
1675
+ data: {
1676
+ createdAt: string;
1677
+ depositAddressId: string;
1678
+ detectionTrigger?: "chain" | "manual" | "poll" | "webhook" | undefined;
1679
+ destinationAmount?: {
1680
+ baseUnits: string;
1681
+ currency: string;
1682
+ decimals: number;
1683
+ formatted: string;
1684
+ } | undefined;
1685
+ destinationAmountRequired?: {
1686
+ baseUnits: string;
1687
+ currency: string;
1688
+ decimals: number;
1689
+ formatted: string;
1690
+ } | undefined;
1691
+ destinationChain: {
1692
+ addressFormat: "base58" | "base58check" | "hex";
1693
+ id: string;
1694
+ kind: "evm" | "solana" | "tron";
1695
+ name: string;
1696
+ };
1697
+ destinationToken: {
1698
+ address: string;
1699
+ currency: string;
1700
+ decimals: number;
1701
+ name: string;
1702
+ standard: string;
1703
+ symbol: string;
1704
+ tokenKey: string;
1705
+ verified: boolean;
1706
+ };
1707
+ destinationTransactionHashes?: readonly string[] | undefined;
1708
+ id: string;
1709
+ provider: {
1710
+ id: string;
1711
+ name: string;
1712
+ };
1713
+ recipient: string;
1714
+ refundAddress: string;
1715
+ refundAmount?: {
1716
+ baseUnits: string;
1717
+ currency: string;
1718
+ decimals: number;
1719
+ formatted: string;
1720
+ } | undefined;
1721
+ refundTransactionHashes?: readonly string[] | undefined;
1722
+ sender?: string | undefined;
1723
+ sourceAmount?: {
1724
+ baseUnits: string;
1725
+ currency: string;
1726
+ decimals: number;
1727
+ formatted: string;
1728
+ } | undefined;
1729
+ sourceChain: {
1730
+ addressFormat: "base58" | "base58check" | "hex";
1731
+ id: string;
1732
+ kind: "evm" | "solana" | "tron";
1733
+ name: string;
1734
+ };
1735
+ sourceToken: {
1736
+ address: string;
1737
+ currency: string;
1738
+ decimals: number;
1739
+ name: string;
1740
+ standard: string;
1741
+ symbol: string;
1742
+ tokenKey: string;
1743
+ verified: boolean;
1744
+ };
1745
+ sourceTransactionHashes: readonly string[];
1746
+ sourceTransferIndex?: number | undefined;
1747
+ status: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling";
1748
+ statusReason?: {
1749
+ code: "delivery_failed" | "delivery_liquidity_unavailable" | "manual_recovery_required" | "refund_failed" | "source_amount_not_supported" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
1750
+ message: string;
1751
+ } | undefined;
1752
+ updatedAt: string;
1753
+ }[];
1754
+ nextCursor: string | null;
1755
+ };
1756
+ outputFormat: "json";
1757
+ status: 200;
1758
+ input: {
1759
+ query?: {
1760
+ depositAddress?: string | string[];
1761
+ cursor?: string | string[];
1762
+ limit?: string | string[];
1763
+ recipient?: string | string[];
1764
+ } | undefined;
1765
+ };
1766
+ };
1767
+ };
1768
+ } & {
1769
+ "/v1/funding/deposits/:id{fdp_[A-Za-z0-9_-]+}": {
1770
+ $get: {
1771
+ output: {
1772
+ error: {
1773
+ code: "api_key_malformed";
1774
+ details?: readonly Response.error.Detail[] | undefined;
1775
+ message: string;
1776
+ };
1777
+ requestId: string;
1778
+ };
1779
+ outputFormat: "json";
1780
+ status: 400;
1781
+ input: {
1782
+ param: {
1783
+ id: string;
1784
+ };
1785
+ };
1786
+ } | {
1787
+ output: {
1788
+ error: {
1789
+ code: "api_key_invalid" | "api_key_missing";
1790
+ details?: readonly Response.error.Detail[] | undefined;
1791
+ message: string;
1792
+ };
1793
+ requestId: string;
1794
+ };
1795
+ outputFormat: "json";
1796
+ status: 401;
1797
+ input: {
1798
+ param: {
1799
+ id: string;
1800
+ };
1801
+ };
1802
+ } | {
1803
+ output: {
1804
+ error: {
1805
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1806
+ details?: readonly Response.error.Detail[] | undefined;
1807
+ message: string;
1808
+ };
1809
+ requestId: string;
1810
+ };
1811
+ outputFormat: "json";
1812
+ status: 403;
1813
+ input: {
1814
+ param: {
1815
+ id: string;
1816
+ };
1817
+ };
1818
+ } | {
1819
+ output: {
1820
+ error: {
1821
+ code: "payment_required" | "rate_limit_exceeded";
1822
+ details?: readonly Response.error.Detail[] | undefined;
1823
+ message: string;
1824
+ };
1825
+ requestId: string;
1826
+ };
1827
+ outputFormat: "json";
1828
+ status: 429;
1829
+ input: {
1830
+ param: {
1831
+ id: string;
1832
+ };
1833
+ };
1834
+ } | {
1835
+ output: {
1836
+ error: {
1837
+ code: "upstream_error";
1838
+ details?: readonly Response.error.Detail[] | undefined;
1839
+ message: string;
1840
+ };
1841
+ requestId: string;
1842
+ };
1843
+ outputFormat: "json";
1844
+ status: 502;
1845
+ input: {
1846
+ param: {
1847
+ id: string;
1848
+ };
1849
+ };
1850
+ } | {
1851
+ output: {
1852
+ error: {
1853
+ code: "unauthorized";
1854
+ details?: readonly Response.error.Detail[] | undefined;
1855
+ message: string;
1856
+ };
1857
+ requestId: string;
1858
+ };
1859
+ outputFormat: "json";
1860
+ status: 401;
1861
+ input: {
1862
+ param: {
1863
+ id: string;
1864
+ };
1865
+ };
1866
+ } | {
1867
+ output: {
1868
+ error: {
1869
+ code: "param_invalid";
1870
+ details?: readonly Response.error.Detail[] | undefined;
1871
+ message: string;
1872
+ };
1873
+ requestId: string;
1874
+ };
1875
+ outputFormat: "json";
1876
+ status: 400;
1877
+ input: {
1878
+ param: {
1879
+ id: string;
1880
+ };
1881
+ };
1882
+ } | {
1883
+ output: {
1884
+ error: {
1885
+ code: "funding_deposit_not_found";
1886
+ details?: readonly Response.error.Detail[] | undefined;
1887
+ message: string;
1888
+ };
1889
+ requestId: string;
1890
+ };
1891
+ outputFormat: "json";
1892
+ status: 404;
1893
+ input: {
1894
+ param: {
1895
+ id: string;
1896
+ };
1897
+ };
1898
+ } | {
1899
+ output: {
1900
+ createdAt: string;
1901
+ depositAddressId: string;
1902
+ detectionTrigger?: "chain" | "manual" | "poll" | "webhook" | undefined;
1903
+ destinationAmount?: {
1904
+ baseUnits: string;
1905
+ currency: string;
1906
+ decimals: number;
1907
+ formatted: string;
1908
+ } | undefined;
1909
+ destinationAmountRequired?: {
1910
+ baseUnits: string;
1911
+ currency: string;
1912
+ decimals: number;
1913
+ formatted: string;
1914
+ } | undefined;
1915
+ destinationChain: {
1916
+ addressFormat: "base58" | "base58check" | "hex";
1917
+ id: string;
1918
+ kind: "evm" | "solana" | "tron";
1919
+ name: string;
1920
+ };
1921
+ destinationToken: {
1922
+ address: string;
1923
+ currency: string;
1924
+ decimals: number;
1925
+ name: string;
1926
+ standard: string;
1927
+ symbol: string;
1928
+ tokenKey: string;
1929
+ verified: boolean;
1930
+ };
1931
+ destinationTransactionHashes?: readonly string[] | undefined;
1932
+ id: string;
1933
+ provider: {
1934
+ id: string;
1935
+ name: string;
1936
+ };
1937
+ recipient: string;
1938
+ refundAddress: string;
1939
+ refundAmount?: {
1940
+ baseUnits: string;
1941
+ currency: string;
1942
+ decimals: number;
1943
+ formatted: string;
1944
+ } | undefined;
1945
+ refundTransactionHashes?: readonly string[] | undefined;
1946
+ sender?: string | undefined;
1947
+ sourceAmount?: {
1948
+ baseUnits: string;
1949
+ currency: string;
1950
+ decimals: number;
1951
+ formatted: string;
1952
+ } | undefined;
1953
+ sourceChain: {
1954
+ addressFormat: "base58" | "base58check" | "hex";
1955
+ id: string;
1956
+ kind: "evm" | "solana" | "tron";
1957
+ name: string;
1958
+ };
1959
+ sourceToken: {
1960
+ address: string;
1961
+ currency: string;
1962
+ decimals: number;
1963
+ name: string;
1964
+ standard: string;
1965
+ symbol: string;
1966
+ tokenKey: string;
1967
+ verified: boolean;
1968
+ };
1969
+ sourceTransactionHashes: readonly string[];
1970
+ sourceTransferIndex?: number | undefined;
1971
+ status: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling";
1972
+ statusReason?: {
1973
+ code: "delivery_failed" | "delivery_liquidity_unavailable" | "manual_recovery_required" | "refund_failed" | "source_amount_not_supported" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
1974
+ message: string;
1975
+ } | undefined;
1976
+ updatedAt: string;
1977
+ };
1978
+ outputFormat: "json";
1979
+ status: 200;
1980
+ input: {
1981
+ param: {
1982
+ id: string;
1983
+ };
1984
+ };
1985
+ };
1986
+ };
1987
+ }, "/", "/v1/funding/deposits/:id{fdp_[A-Za-z0-9_-]+}">;
1988
+ export declare namespace depositAddresses {
1989
+ /** Deposit-address route dependencies. */
1990
+ type Options = {
1991
+ /** Enqueues one deposit address for asynchronous reconciliation. */
1992
+ dispatchReconciliation?: ((message: FundingProvider.Webhook.receive.Dispatchable) => Promise<void>) | undefined;
1993
+ /** Registers a created address with a source-chain observer. */
1994
+ registerDepositAddress?: ((address: FundingDepositAddress.Public) => Promise<void>) | undefined;
1995
+ };
1996
+ }
1997
+ //# sourceMappingURL=deposit-addresses.d.ts.map