@nktkas/hyperliquid 0.26.0 → 0.27.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 (749) hide show
  1. package/README.md +84 -57
  2. package/bin/cli.ts +1 -0
  3. package/dist/bin/cli.js +1 -0
  4. package/dist/bin/cli.js.map +1 -1
  5. package/dist/src/api/_base.d.ts.map +1 -1
  6. package/dist/src/api/_base.js +3 -1
  7. package/dist/src/api/_base.js.map +1 -1
  8. package/dist/src/api/exchange/_base/_execute.d.ts +10 -0
  9. package/dist/src/api/exchange/_base/_execute.d.ts.map +1 -1
  10. package/dist/src/api/exchange/_base/_execute.js +20 -5
  11. package/dist/src/api/exchange/_base/_execute.js.map +1 -1
  12. package/dist/src/api/exchange/_base/_nonce.d.ts +4 -10
  13. package/dist/src/api/exchange/_base/_nonce.d.ts.map +1 -1
  14. package/dist/src/api/exchange/_base/_nonce.js +10 -1
  15. package/dist/src/api/exchange/_base/_nonce.js.map +1 -1
  16. package/dist/src/api/exchange/_base/_types.d.ts +44 -0
  17. package/dist/src/api/exchange/_base/_types.d.ts.map +1 -1
  18. package/dist/src/api/exchange/_base/mod.d.ts +0 -1
  19. package/dist/src/api/exchange/_base/mod.d.ts.map +1 -1
  20. package/dist/src/api/exchange/_base/mod.js +0 -1
  21. package/dist/src/api/exchange/_base/mod.js.map +1 -1
  22. package/dist/src/api/exchange/agentEnableDexAbstraction.d.ts +39 -7
  23. package/dist/src/api/exchange/agentEnableDexAbstraction.d.ts.map +1 -1
  24. package/dist/src/api/exchange/agentEnableDexAbstraction.js +20 -8
  25. package/dist/src/api/exchange/agentEnableDexAbstraction.js.map +1 -1
  26. package/dist/src/api/exchange/approveAgent.d.ts +38 -6
  27. package/dist/src/api/exchange/approveAgent.d.ts.map +1 -1
  28. package/dist/src/api/exchange/approveAgent.js +18 -6
  29. package/dist/src/api/exchange/approveAgent.js.map +1 -1
  30. package/dist/src/api/exchange/approveBuilderFee.d.ts +38 -6
  31. package/dist/src/api/exchange/approveBuilderFee.d.ts.map +1 -1
  32. package/dist/src/api/exchange/approveBuilderFee.js +18 -6
  33. package/dist/src/api/exchange/approveBuilderFee.js.map +1 -1
  34. package/dist/src/api/exchange/batchModify.d.ts +114 -6
  35. package/dist/src/api/exchange/batchModify.d.ts.map +1 -1
  36. package/dist/src/api/exchange/batchModify.js +17 -6
  37. package/dist/src/api/exchange/batchModify.js.map +1 -1
  38. package/dist/src/api/exchange/cDeposit.d.ts +38 -6
  39. package/dist/src/api/exchange/cDeposit.d.ts.map +1 -1
  40. package/dist/src/api/exchange/cDeposit.js +18 -6
  41. package/dist/src/api/exchange/cDeposit.js.map +1 -1
  42. package/dist/src/api/exchange/cSignerAction.d.ts +36 -11
  43. package/dist/src/api/exchange/cSignerAction.d.ts.map +1 -1
  44. package/dist/src/api/exchange/cSignerAction.js +16 -11
  45. package/dist/src/api/exchange/cSignerAction.js.map +1 -1
  46. package/dist/src/api/exchange/cValidatorAction.d.ts +36 -11
  47. package/dist/src/api/exchange/cValidatorAction.d.ts.map +1 -1
  48. package/dist/src/api/exchange/cValidatorAction.js +16 -11
  49. package/dist/src/api/exchange/cValidatorAction.js.map +1 -1
  50. package/dist/src/api/exchange/cWithdraw.d.ts +38 -6
  51. package/dist/src/api/exchange/cWithdraw.d.ts.map +1 -1
  52. package/dist/src/api/exchange/cWithdraw.js +18 -6
  53. package/dist/src/api/exchange/cWithdraw.js.map +1 -1
  54. package/dist/src/api/exchange/cancel.d.ts +9 -35
  55. package/dist/src/api/exchange/cancel.d.ts.map +1 -1
  56. package/dist/src/api/exchange/cancel.js +15 -22
  57. package/dist/src/api/exchange/cancel.js.map +1 -1
  58. package/dist/src/api/exchange/cancelByCloid.d.ts +46 -6
  59. package/dist/src/api/exchange/cancelByCloid.d.ts.map +1 -1
  60. package/dist/src/api/exchange/cancelByCloid.js +17 -6
  61. package/dist/src/api/exchange/cancelByCloid.js.map +1 -1
  62. package/dist/src/api/exchange/claimRewards.d.ts +35 -10
  63. package/dist/src/api/exchange/claimRewards.d.ts.map +1 -1
  64. package/dist/src/api/exchange/claimRewards.js +16 -11
  65. package/dist/src/api/exchange/claimRewards.js.map +1 -1
  66. package/dist/src/api/exchange/convertToMultiSigUser.d.ts +38 -17
  67. package/dist/src/api/exchange/convertToMultiSigUser.d.ts.map +1 -1
  68. package/dist/src/api/exchange/convertToMultiSigUser.js +19 -7
  69. package/dist/src/api/exchange/convertToMultiSigUser.js.map +1 -1
  70. package/dist/src/api/exchange/createSubAccount.d.ts +23 -10
  71. package/dist/src/api/exchange/createSubAccount.d.ts.map +1 -1
  72. package/dist/src/api/exchange/createSubAccount.js +26 -20
  73. package/dist/src/api/exchange/createSubAccount.js.map +1 -1
  74. package/dist/src/api/exchange/createVault.d.ts +23 -10
  75. package/dist/src/api/exchange/createVault.d.ts.map +1 -1
  76. package/dist/src/api/exchange/createVault.js +26 -20
  77. package/dist/src/api/exchange/createVault.js.map +1 -1
  78. package/dist/src/api/exchange/evmUserModify.d.ts +38 -6
  79. package/dist/src/api/exchange/evmUserModify.d.ts.map +1 -1
  80. package/dist/src/api/exchange/evmUserModify.js +18 -6
  81. package/dist/src/api/exchange/evmUserModify.js.map +1 -1
  82. package/dist/src/api/exchange/linkStakingUser.d.ts +38 -6
  83. package/dist/src/api/exchange/linkStakingUser.d.ts.map +1 -1
  84. package/dist/src/api/exchange/linkStakingUser.js +18 -6
  85. package/dist/src/api/exchange/linkStakingUser.js.map +1 -1
  86. package/dist/src/api/exchange/modify.d.ts +38 -6
  87. package/dist/src/api/exchange/modify.d.ts.map +1 -1
  88. package/dist/src/api/exchange/modify.js +18 -6
  89. package/dist/src/api/exchange/modify.js.map +1 -1
  90. package/dist/src/api/exchange/multiSig.d.ts +1362 -12
  91. package/dist/src/api/exchange/multiSig.d.ts.map +1 -1
  92. package/dist/src/api/exchange/multiSig.js +99 -45
  93. package/dist/src/api/exchange/multiSig.js.map +1 -1
  94. package/dist/src/api/exchange/noop.d.ts +37 -5
  95. package/dist/src/api/exchange/noop.d.ts.map +1 -1
  96. package/dist/src/api/exchange/noop.js +18 -6
  97. package/dist/src/api/exchange/noop.js.map +1 -1
  98. package/dist/src/api/exchange/order.d.ts +9 -111
  99. package/dist/src/api/exchange/order.d.ts.map +1 -1
  100. package/dist/src/api/exchange/order.js +15 -45
  101. package/dist/src/api/exchange/order.js.map +1 -1
  102. package/dist/src/api/exchange/perpDeploy.d.ts +38 -6
  103. package/dist/src/api/exchange/perpDeploy.d.ts.map +1 -1
  104. package/dist/src/api/exchange/perpDeploy.js +18 -6
  105. package/dist/src/api/exchange/perpDeploy.js.map +1 -1
  106. package/dist/src/api/exchange/registerReferrer.d.ts +36 -11
  107. package/dist/src/api/exchange/registerReferrer.d.ts.map +1 -1
  108. package/dist/src/api/exchange/registerReferrer.js +16 -11
  109. package/dist/src/api/exchange/registerReferrer.js.map +1 -1
  110. package/dist/src/api/exchange/reserveRequestWeight.d.ts +38 -6
  111. package/dist/src/api/exchange/reserveRequestWeight.d.ts.map +1 -1
  112. package/dist/src/api/exchange/reserveRequestWeight.js +18 -6
  113. package/dist/src/api/exchange/reserveRequestWeight.js.map +1 -1
  114. package/dist/src/api/exchange/scheduleCancel.d.ts +39 -7
  115. package/dist/src/api/exchange/scheduleCancel.d.ts.map +1 -1
  116. package/dist/src/api/exchange/scheduleCancel.js +17 -5
  117. package/dist/src/api/exchange/scheduleCancel.js.map +1 -1
  118. package/dist/src/api/exchange/sendAsset.d.ts +40 -8
  119. package/dist/src/api/exchange/sendAsset.d.ts.map +1 -1
  120. package/dist/src/api/exchange/sendAsset.js +20 -8
  121. package/dist/src/api/exchange/sendAsset.js.map +1 -1
  122. package/dist/src/api/exchange/setDisplayName.d.ts +36 -11
  123. package/dist/src/api/exchange/setDisplayName.d.ts.map +1 -1
  124. package/dist/src/api/exchange/setDisplayName.js +16 -11
  125. package/dist/src/api/exchange/setDisplayName.js.map +1 -1
  126. package/dist/src/api/exchange/setReferrer.d.ts +36 -11
  127. package/dist/src/api/exchange/setReferrer.d.ts.map +1 -1
  128. package/dist/src/api/exchange/setReferrer.js +16 -11
  129. package/dist/src/api/exchange/setReferrer.js.map +1 -1
  130. package/dist/src/api/exchange/spotDeploy.d.ts +38 -6
  131. package/dist/src/api/exchange/spotDeploy.d.ts.map +1 -1
  132. package/dist/src/api/exchange/spotDeploy.js +18 -6
  133. package/dist/src/api/exchange/spotDeploy.js.map +1 -1
  134. package/dist/src/api/exchange/spotSend.d.ts +38 -6
  135. package/dist/src/api/exchange/spotSend.d.ts.map +1 -1
  136. package/dist/src/api/exchange/spotSend.js +18 -6
  137. package/dist/src/api/exchange/spotSend.js.map +1 -1
  138. package/dist/src/api/exchange/spotUser.d.ts +36 -11
  139. package/dist/src/api/exchange/spotUser.d.ts.map +1 -1
  140. package/dist/src/api/exchange/spotUser.js +16 -11
  141. package/dist/src/api/exchange/spotUser.js.map +1 -1
  142. package/dist/src/api/exchange/subAccountModify.d.ts +36 -11
  143. package/dist/src/api/exchange/subAccountModify.d.ts.map +1 -1
  144. package/dist/src/api/exchange/subAccountModify.js +16 -11
  145. package/dist/src/api/exchange/subAccountModify.js.map +1 -1
  146. package/dist/src/api/exchange/subAccountSpotTransfer.d.ts +36 -11
  147. package/dist/src/api/exchange/subAccountSpotTransfer.d.ts.map +1 -1
  148. package/dist/src/api/exchange/subAccountSpotTransfer.js +16 -11
  149. package/dist/src/api/exchange/subAccountSpotTransfer.js.map +1 -1
  150. package/dist/src/api/exchange/subAccountTransfer.d.ts +36 -11
  151. package/dist/src/api/exchange/subAccountTransfer.d.ts.map +1 -1
  152. package/dist/src/api/exchange/subAccountTransfer.js +16 -11
  153. package/dist/src/api/exchange/subAccountTransfer.js.map +1 -1
  154. package/dist/src/api/exchange/tokenDelegate.d.ts +38 -6
  155. package/dist/src/api/exchange/tokenDelegate.d.ts.map +1 -1
  156. package/dist/src/api/exchange/tokenDelegate.js +18 -6
  157. package/dist/src/api/exchange/tokenDelegate.js.map +1 -1
  158. package/dist/src/api/exchange/twapCancel.d.ts +9 -35
  159. package/dist/src/api/exchange/twapCancel.d.ts.map +1 -1
  160. package/dist/src/api/exchange/twapCancel.js +15 -22
  161. package/dist/src/api/exchange/twapCancel.js.map +1 -1
  162. package/dist/src/api/exchange/twapOrder.d.ts +9 -59
  163. package/dist/src/api/exchange/twapOrder.d.ts.map +1 -1
  164. package/dist/src/api/exchange/twapOrder.js +15 -28
  165. package/dist/src/api/exchange/twapOrder.js.map +1 -1
  166. package/dist/src/api/exchange/updateIsolatedMargin.d.ts +38 -6
  167. package/dist/src/api/exchange/updateIsolatedMargin.d.ts.map +1 -1
  168. package/dist/src/api/exchange/updateIsolatedMargin.js +18 -6
  169. package/dist/src/api/exchange/updateIsolatedMargin.js.map +1 -1
  170. package/dist/src/api/exchange/updateLeverage.d.ts +38 -6
  171. package/dist/src/api/exchange/updateLeverage.d.ts.map +1 -1
  172. package/dist/src/api/exchange/updateLeverage.js +18 -6
  173. package/dist/src/api/exchange/updateLeverage.js.map +1 -1
  174. package/dist/src/api/exchange/usdClassTransfer.d.ts +38 -6
  175. package/dist/src/api/exchange/usdClassTransfer.d.ts.map +1 -1
  176. package/dist/src/api/exchange/usdClassTransfer.js +18 -6
  177. package/dist/src/api/exchange/usdClassTransfer.js.map +1 -1
  178. package/dist/src/api/exchange/usdSend.d.ts +38 -6
  179. package/dist/src/api/exchange/usdSend.d.ts.map +1 -1
  180. package/dist/src/api/exchange/usdSend.js +18 -6
  181. package/dist/src/api/exchange/usdSend.js.map +1 -1
  182. package/dist/src/api/exchange/userDexAbstraction.d.ts +44 -12
  183. package/dist/src/api/exchange/userDexAbstraction.d.ts.map +1 -1
  184. package/dist/src/api/exchange/userDexAbstraction.js +22 -10
  185. package/dist/src/api/exchange/userDexAbstraction.js.map +1 -1
  186. package/dist/src/api/exchange/validatorL1Stream.d.ts +116 -0
  187. package/dist/src/api/exchange/validatorL1Stream.d.ts.map +1 -0
  188. package/dist/src/api/exchange/validatorL1Stream.js +84 -0
  189. package/dist/src/api/exchange/validatorL1Stream.js.map +1 -0
  190. package/dist/src/api/exchange/vaultDistribute.d.ts +36 -11
  191. package/dist/src/api/exchange/vaultDistribute.d.ts.map +1 -1
  192. package/dist/src/api/exchange/vaultDistribute.js +16 -11
  193. package/dist/src/api/exchange/vaultDistribute.js.map +1 -1
  194. package/dist/src/api/exchange/vaultModify.d.ts +36 -11
  195. package/dist/src/api/exchange/vaultModify.d.ts.map +1 -1
  196. package/dist/src/api/exchange/vaultModify.js +16 -11
  197. package/dist/src/api/exchange/vaultModify.js.map +1 -1
  198. package/dist/src/api/exchange/vaultTransfer.d.ts +38 -6
  199. package/dist/src/api/exchange/vaultTransfer.d.ts.map +1 -1
  200. package/dist/src/api/exchange/vaultTransfer.js +18 -6
  201. package/dist/src/api/exchange/vaultTransfer.js.map +1 -1
  202. package/dist/src/api/exchange/withdraw3.d.ts +38 -6
  203. package/dist/src/api/exchange/withdraw3.d.ts.map +1 -1
  204. package/dist/src/api/exchange/withdraw3.js +18 -6
  205. package/dist/src/api/exchange/withdraw3.js.map +1 -1
  206. package/dist/src/api/exchange/~client.d.ts +121 -451
  207. package/dist/src/api/exchange/~client.d.ts.map +1 -1
  208. package/dist/src/api/exchange/~client.js +33 -21
  209. package/dist/src/api/exchange/~client.js.map +1 -1
  210. package/dist/src/api/exchange/~mod.d.ts +2 -1
  211. package/dist/src/api/exchange/~mod.d.ts.map +1 -1
  212. package/dist/src/api/exchange/~mod.js +2 -1
  213. package/dist/src/api/exchange/~mod.js.map +1 -1
  214. package/dist/src/api/info/activeAssetData.d.ts +2 -2
  215. package/dist/src/api/info/activeAssetData.d.ts.map +1 -1
  216. package/dist/src/api/info/activeAssetData.js +8 -2
  217. package/dist/src/api/info/activeAssetData.js.map +1 -1
  218. package/dist/src/api/info/alignedQuoteTokenInfo.d.ts +2 -2
  219. package/dist/src/api/info/alignedQuoteTokenInfo.d.ts.map +1 -1
  220. package/dist/src/api/info/alignedQuoteTokenInfo.js +8 -2
  221. package/dist/src/api/info/alignedQuoteTokenInfo.js.map +1 -1
  222. package/dist/src/api/info/allMids.d.ts +2 -2
  223. package/dist/src/api/info/allMids.d.ts.map +1 -1
  224. package/dist/src/api/info/allMids.js +8 -2
  225. package/dist/src/api/info/allMids.js.map +1 -1
  226. package/dist/src/api/info/allPerpMetas.d.ts +1 -1
  227. package/dist/src/api/info/allPerpMetas.d.ts.map +1 -1
  228. package/dist/src/api/info/allPerpMetas.js +7 -2
  229. package/dist/src/api/info/allPerpMetas.js.map +1 -1
  230. package/dist/src/api/info/blockDetails.d.ts +3 -3
  231. package/dist/src/api/info/blockDetails.d.ts.map +1 -1
  232. package/dist/src/api/info/blockDetails.js +8 -2
  233. package/dist/src/api/info/blockDetails.js.map +1 -1
  234. package/dist/src/api/info/candleSnapshot.d.ts +2 -2
  235. package/dist/src/api/info/candleSnapshot.d.ts.map +1 -1
  236. package/dist/src/api/info/candleSnapshot.js +8 -2
  237. package/dist/src/api/info/candleSnapshot.js.map +1 -1
  238. package/dist/src/api/info/clearinghouseState.d.ts +2 -2
  239. package/dist/src/api/info/clearinghouseState.d.ts.map +1 -1
  240. package/dist/src/api/info/clearinghouseState.js +8 -2
  241. package/dist/src/api/info/clearinghouseState.js.map +1 -1
  242. package/dist/src/api/info/delegations.d.ts +2 -2
  243. package/dist/src/api/info/delegations.d.ts.map +1 -1
  244. package/dist/src/api/info/delegations.js +8 -2
  245. package/dist/src/api/info/delegations.js.map +1 -1
  246. package/dist/src/api/info/delegatorHistory.d.ts +2 -2
  247. package/dist/src/api/info/delegatorHistory.d.ts.map +1 -1
  248. package/dist/src/api/info/delegatorHistory.js +8 -2
  249. package/dist/src/api/info/delegatorHistory.js.map +1 -1
  250. package/dist/src/api/info/delegatorRewards.d.ts +2 -2
  251. package/dist/src/api/info/delegatorRewards.d.ts.map +1 -1
  252. package/dist/src/api/info/delegatorRewards.js +8 -2
  253. package/dist/src/api/info/delegatorRewards.js.map +1 -1
  254. package/dist/src/api/info/delegatorSummary.d.ts +2 -2
  255. package/dist/src/api/info/delegatorSummary.d.ts.map +1 -1
  256. package/dist/src/api/info/delegatorSummary.js +8 -2
  257. package/dist/src/api/info/delegatorSummary.js.map +1 -1
  258. package/dist/src/api/info/exchangeStatus.d.ts +1 -1
  259. package/dist/src/api/info/exchangeStatus.d.ts.map +1 -1
  260. package/dist/src/api/info/exchangeStatus.js +8 -3
  261. package/dist/src/api/info/exchangeStatus.js.map +1 -1
  262. package/dist/src/api/info/extraAgents.d.ts +2 -2
  263. package/dist/src/api/info/extraAgents.d.ts.map +1 -1
  264. package/dist/src/api/info/extraAgents.js +8 -2
  265. package/dist/src/api/info/extraAgents.js.map +1 -1
  266. package/dist/src/api/info/frontendOpenOrders.d.ts +2 -2
  267. package/dist/src/api/info/frontendOpenOrders.d.ts.map +1 -1
  268. package/dist/src/api/info/frontendOpenOrders.js +8 -2
  269. package/dist/src/api/info/frontendOpenOrders.js.map +1 -1
  270. package/dist/src/api/info/fundingHistory.d.ts +2 -2
  271. package/dist/src/api/info/fundingHistory.d.ts.map +1 -1
  272. package/dist/src/api/info/fundingHistory.js +8 -2
  273. package/dist/src/api/info/fundingHistory.js.map +1 -1
  274. package/dist/src/api/info/gossipRootIps.d.ts +1 -1
  275. package/dist/src/api/info/gossipRootIps.d.ts.map +1 -1
  276. package/dist/src/api/info/gossipRootIps.js +7 -3
  277. package/dist/src/api/info/gossipRootIps.js.map +1 -1
  278. package/dist/src/api/info/historicalOrders.d.ts +2 -2
  279. package/dist/src/api/info/historicalOrders.d.ts.map +1 -1
  280. package/dist/src/api/info/historicalOrders.js +8 -2
  281. package/dist/src/api/info/historicalOrders.js.map +1 -1
  282. package/dist/src/api/info/isVip.d.ts +2 -2
  283. package/dist/src/api/info/isVip.d.ts.map +1 -1
  284. package/dist/src/api/info/isVip.js +8 -2
  285. package/dist/src/api/info/isVip.js.map +1 -1
  286. package/dist/src/api/info/l2Book.d.ts +2 -2
  287. package/dist/src/api/info/l2Book.d.ts.map +1 -1
  288. package/dist/src/api/info/l2Book.js +8 -2
  289. package/dist/src/api/info/l2Book.js.map +1 -1
  290. package/dist/src/api/info/leadingVaults.d.ts +2 -2
  291. package/dist/src/api/info/leadingVaults.d.ts.map +1 -1
  292. package/dist/src/api/info/leadingVaults.js +8 -2
  293. package/dist/src/api/info/leadingVaults.js.map +1 -1
  294. package/dist/src/api/info/legalCheck.d.ts +2 -2
  295. package/dist/src/api/info/legalCheck.d.ts.map +1 -1
  296. package/dist/src/api/info/legalCheck.js +8 -2
  297. package/dist/src/api/info/legalCheck.js.map +1 -1
  298. package/dist/src/api/info/liquidatable.d.ts +1 -1
  299. package/dist/src/api/info/liquidatable.d.ts.map +1 -1
  300. package/dist/src/api/info/liquidatable.js +7 -3
  301. package/dist/src/api/info/liquidatable.js.map +1 -1
  302. package/dist/src/api/info/marginTable.d.ts +2 -2
  303. package/dist/src/api/info/marginTable.d.ts.map +1 -1
  304. package/dist/src/api/info/marginTable.js +8 -2
  305. package/dist/src/api/info/marginTable.js.map +1 -1
  306. package/dist/src/api/info/maxBuilderFee.d.ts +2 -2
  307. package/dist/src/api/info/maxBuilderFee.d.ts.map +1 -1
  308. package/dist/src/api/info/maxBuilderFee.js +8 -2
  309. package/dist/src/api/info/maxBuilderFee.js.map +1 -1
  310. package/dist/src/api/info/maxMarketOrderNtls.d.ts +1 -1
  311. package/dist/src/api/info/maxMarketOrderNtls.d.ts.map +1 -1
  312. package/dist/src/api/info/maxMarketOrderNtls.js +8 -2
  313. package/dist/src/api/info/maxMarketOrderNtls.js.map +1 -1
  314. package/dist/src/api/info/meta.d.ts +2 -2
  315. package/dist/src/api/info/meta.d.ts.map +1 -1
  316. package/dist/src/api/info/meta.js +8 -2
  317. package/dist/src/api/info/meta.js.map +1 -1
  318. package/dist/src/api/info/metaAndAssetCtxs.d.ts +2 -2
  319. package/dist/src/api/info/metaAndAssetCtxs.d.ts.map +1 -1
  320. package/dist/src/api/info/metaAndAssetCtxs.js +8 -2
  321. package/dist/src/api/info/metaAndAssetCtxs.js.map +1 -1
  322. package/dist/src/api/info/openOrders.d.ts +2 -2
  323. package/dist/src/api/info/openOrders.d.ts.map +1 -1
  324. package/dist/src/api/info/openOrders.js +8 -2
  325. package/dist/src/api/info/openOrders.js.map +1 -1
  326. package/dist/src/api/info/orderStatus.d.ts +2 -2
  327. package/dist/src/api/info/orderStatus.d.ts.map +1 -1
  328. package/dist/src/api/info/orderStatus.js +8 -2
  329. package/dist/src/api/info/orderStatus.js.map +1 -1
  330. package/dist/src/api/info/perpDeployAuctionStatus.d.ts +1 -1
  331. package/dist/src/api/info/perpDeployAuctionStatus.d.ts.map +1 -1
  332. package/dist/src/api/info/perpDeployAuctionStatus.js +8 -3
  333. package/dist/src/api/info/perpDeployAuctionStatus.js.map +1 -1
  334. package/dist/src/api/info/perpDexLimits.d.ts +2 -2
  335. package/dist/src/api/info/perpDexLimits.d.ts.map +1 -1
  336. package/dist/src/api/info/perpDexLimits.js +8 -2
  337. package/dist/src/api/info/perpDexLimits.js.map +1 -1
  338. package/dist/src/api/info/perpDexs.d.ts +1 -1
  339. package/dist/src/api/info/perpDexs.d.ts.map +1 -1
  340. package/dist/src/api/info/perpDexs.js +8 -3
  341. package/dist/src/api/info/perpDexs.js.map +1 -1
  342. package/dist/src/api/info/perpsAtOpenInterestCap.d.ts +2 -2
  343. package/dist/src/api/info/perpsAtOpenInterestCap.d.ts.map +1 -1
  344. package/dist/src/api/info/perpsAtOpenInterestCap.js +7 -2
  345. package/dist/src/api/info/perpsAtOpenInterestCap.js.map +1 -1
  346. package/dist/src/api/info/portfolio.d.ts +2 -2
  347. package/dist/src/api/info/portfolio.d.ts.map +1 -1
  348. package/dist/src/api/info/portfolio.js +8 -2
  349. package/dist/src/api/info/portfolio.js.map +1 -1
  350. package/dist/src/api/info/preTransferCheck.d.ts +2 -2
  351. package/dist/src/api/info/preTransferCheck.d.ts.map +1 -1
  352. package/dist/src/api/info/preTransferCheck.js +8 -2
  353. package/dist/src/api/info/preTransferCheck.js.map +1 -1
  354. package/dist/src/api/info/predictedFundings.d.ts +1 -1
  355. package/dist/src/api/info/predictedFundings.d.ts.map +1 -1
  356. package/dist/src/api/info/predictedFundings.js +8 -3
  357. package/dist/src/api/info/predictedFundings.js.map +1 -1
  358. package/dist/src/api/info/recentTrades.d.ts +2 -2
  359. package/dist/src/api/info/recentTrades.d.ts.map +1 -1
  360. package/dist/src/api/info/recentTrades.js +8 -2
  361. package/dist/src/api/info/recentTrades.js.map +1 -1
  362. package/dist/src/api/info/referral.d.ts +2 -2
  363. package/dist/src/api/info/referral.d.ts.map +1 -1
  364. package/dist/src/api/info/referral.js +8 -2
  365. package/dist/src/api/info/referral.js.map +1 -1
  366. package/dist/src/api/info/spotClearinghouseState.d.ts +2 -2
  367. package/dist/src/api/info/spotClearinghouseState.d.ts.map +1 -1
  368. package/dist/src/api/info/spotClearinghouseState.js +8 -2
  369. package/dist/src/api/info/spotClearinghouseState.js.map +1 -1
  370. package/dist/src/api/info/spotDeployState.d.ts +2 -2
  371. package/dist/src/api/info/spotDeployState.d.ts.map +1 -1
  372. package/dist/src/api/info/spotDeployState.js +8 -2
  373. package/dist/src/api/info/spotDeployState.js.map +1 -1
  374. package/dist/src/api/info/spotMeta.d.ts +1 -1
  375. package/dist/src/api/info/spotMeta.d.ts.map +1 -1
  376. package/dist/src/api/info/spotMeta.js +8 -3
  377. package/dist/src/api/info/spotMeta.js.map +1 -1
  378. package/dist/src/api/info/spotMetaAndAssetCtxs.d.ts +1 -1
  379. package/dist/src/api/info/spotMetaAndAssetCtxs.d.ts.map +1 -1
  380. package/dist/src/api/info/spotMetaAndAssetCtxs.js +8 -3
  381. package/dist/src/api/info/spotMetaAndAssetCtxs.js.map +1 -1
  382. package/dist/src/api/info/spotPairDeployAuctionStatus.d.ts +1 -1
  383. package/dist/src/api/info/spotPairDeployAuctionStatus.d.ts.map +1 -1
  384. package/dist/src/api/info/spotPairDeployAuctionStatus.js +8 -3
  385. package/dist/src/api/info/spotPairDeployAuctionStatus.js.map +1 -1
  386. package/dist/src/api/info/subAccounts.d.ts +2 -2
  387. package/dist/src/api/info/subAccounts.d.ts.map +1 -1
  388. package/dist/src/api/info/subAccounts.js +8 -2
  389. package/dist/src/api/info/subAccounts.js.map +1 -1
  390. package/dist/src/api/info/subAccounts2.d.ts +2 -2
  391. package/dist/src/api/info/subAccounts2.d.ts.map +1 -1
  392. package/dist/src/api/info/subAccounts2.js +8 -2
  393. package/dist/src/api/info/subAccounts2.js.map +1 -1
  394. package/dist/src/api/info/tokenDetails.d.ts +2 -2
  395. package/dist/src/api/info/tokenDetails.d.ts.map +1 -1
  396. package/dist/src/api/info/tokenDetails.js +8 -2
  397. package/dist/src/api/info/tokenDetails.js.map +1 -1
  398. package/dist/src/api/info/twapHistory.d.ts +2 -2
  399. package/dist/src/api/info/twapHistory.d.ts.map +1 -1
  400. package/dist/src/api/info/twapHistory.js +8 -2
  401. package/dist/src/api/info/twapHistory.js.map +1 -1
  402. package/dist/src/api/info/txDetails.d.ts +3 -3
  403. package/dist/src/api/info/txDetails.d.ts.map +1 -1
  404. package/dist/src/api/info/txDetails.js +8 -2
  405. package/dist/src/api/info/txDetails.js.map +1 -1
  406. package/dist/src/api/info/userDetails.d.ts +3 -3
  407. package/dist/src/api/info/userDetails.d.ts.map +1 -1
  408. package/dist/src/api/info/userDetails.js +8 -2
  409. package/dist/src/api/info/userDetails.js.map +1 -1
  410. package/dist/src/api/info/userDexAbstraction.d.ts +8 -8
  411. package/dist/src/api/info/userDexAbstraction.d.ts.map +1 -1
  412. package/dist/src/api/info/userDexAbstraction.js +11 -5
  413. package/dist/src/api/info/userDexAbstraction.js.map +1 -1
  414. package/dist/src/api/info/userFees.d.ts +2 -2
  415. package/dist/src/api/info/userFees.d.ts.map +1 -1
  416. package/dist/src/api/info/userFees.js +8 -2
  417. package/dist/src/api/info/userFees.js.map +1 -1
  418. package/dist/src/api/info/userFills.d.ts +2 -2
  419. package/dist/src/api/info/userFills.d.ts.map +1 -1
  420. package/dist/src/api/info/userFills.js +8 -2
  421. package/dist/src/api/info/userFills.js.map +1 -1
  422. package/dist/src/api/info/userFillsByTime.d.ts +2 -2
  423. package/dist/src/api/info/userFillsByTime.d.ts.map +1 -1
  424. package/dist/src/api/info/userFillsByTime.js +8 -2
  425. package/dist/src/api/info/userFillsByTime.js.map +1 -1
  426. package/dist/src/api/info/userFunding.d.ts +2 -2
  427. package/dist/src/api/info/userFunding.d.ts.map +1 -1
  428. package/dist/src/api/info/userFunding.js +8 -2
  429. package/dist/src/api/info/userFunding.js.map +1 -1
  430. package/dist/src/api/info/userNonFundingLedgerUpdates.d.ts +2 -2
  431. package/dist/src/api/info/userNonFundingLedgerUpdates.d.ts.map +1 -1
  432. package/dist/src/api/info/userNonFundingLedgerUpdates.js +8 -2
  433. package/dist/src/api/info/userNonFundingLedgerUpdates.js.map +1 -1
  434. package/dist/src/api/info/userRateLimit.d.ts +2 -2
  435. package/dist/src/api/info/userRateLimit.d.ts.map +1 -1
  436. package/dist/src/api/info/userRateLimit.js +8 -2
  437. package/dist/src/api/info/userRateLimit.js.map +1 -1
  438. package/dist/src/api/info/userRole.d.ts +2 -2
  439. package/dist/src/api/info/userRole.d.ts.map +1 -1
  440. package/dist/src/api/info/userRole.js +8 -2
  441. package/dist/src/api/info/userRole.js.map +1 -1
  442. package/dist/src/api/info/userToMultiSigSigners.d.ts +2 -2
  443. package/dist/src/api/info/userToMultiSigSigners.d.ts.map +1 -1
  444. package/dist/src/api/info/userToMultiSigSigners.js +8 -2
  445. package/dist/src/api/info/userToMultiSigSigners.js.map +1 -1
  446. package/dist/src/api/info/userTwapSliceFills.d.ts +2 -2
  447. package/dist/src/api/info/userTwapSliceFills.d.ts.map +1 -1
  448. package/dist/src/api/info/userTwapSliceFills.js +8 -2
  449. package/dist/src/api/info/userTwapSliceFills.js.map +1 -1
  450. package/dist/src/api/info/userTwapSliceFillsByTime.d.ts +2 -2
  451. package/dist/src/api/info/userTwapSliceFillsByTime.d.ts.map +1 -1
  452. package/dist/src/api/info/userTwapSliceFillsByTime.js +8 -2
  453. package/dist/src/api/info/userTwapSliceFillsByTime.js.map +1 -1
  454. package/dist/src/api/info/userVaultEquities.d.ts +2 -2
  455. package/dist/src/api/info/userVaultEquities.d.ts.map +1 -1
  456. package/dist/src/api/info/userVaultEquities.js +8 -2
  457. package/dist/src/api/info/userVaultEquities.js.map +1 -1
  458. package/dist/src/api/info/validatorL1Votes.d.ts +1 -1
  459. package/dist/src/api/info/validatorL1Votes.d.ts.map +1 -1
  460. package/dist/src/api/info/validatorL1Votes.js +8 -3
  461. package/dist/src/api/info/validatorL1Votes.js.map +1 -1
  462. package/dist/src/api/info/validatorSummaries.d.ts +1 -1
  463. package/dist/src/api/info/validatorSummaries.d.ts.map +1 -1
  464. package/dist/src/api/info/validatorSummaries.js +8 -3
  465. package/dist/src/api/info/validatorSummaries.js.map +1 -1
  466. package/dist/src/api/info/vaultDetails.d.ts +2 -2
  467. package/dist/src/api/info/vaultDetails.d.ts.map +1 -1
  468. package/dist/src/api/info/vaultDetails.js +8 -2
  469. package/dist/src/api/info/vaultDetails.js.map +1 -1
  470. package/dist/src/api/info/vaultSummaries.d.ts +1 -1
  471. package/dist/src/api/info/vaultSummaries.d.ts.map +1 -1
  472. package/dist/src/api/info/vaultSummaries.js +8 -3
  473. package/dist/src/api/info/vaultSummaries.js.map +1 -1
  474. package/dist/src/api/info/webData2.d.ts +2 -2
  475. package/dist/src/api/info/webData2.d.ts.map +1 -1
  476. package/dist/src/api/info/webData2.js +8 -2
  477. package/dist/src/api/info/webData2.js.map +1 -1
  478. package/dist/src/api/info/~client.d.ts +134 -1344
  479. package/dist/src/api/info/~client.d.ts.map +1 -1
  480. package/dist/src/api/info/~client.js.map +1 -1
  481. package/dist/src/api/subscription/activeAssetCtx.d.ts +3 -3
  482. package/dist/src/api/subscription/activeAssetCtx.d.ts.map +1 -1
  483. package/dist/src/api/subscription/activeAssetCtx.js +8 -2
  484. package/dist/src/api/subscription/activeAssetCtx.js.map +1 -1
  485. package/dist/src/api/subscription/activeAssetData.d.ts +3 -3
  486. package/dist/src/api/subscription/activeAssetData.d.ts.map +1 -1
  487. package/dist/src/api/subscription/activeAssetData.js +8 -2
  488. package/dist/src/api/subscription/activeAssetData.js.map +1 -1
  489. package/dist/src/api/subscription/activeSpotAssetCtx.d.ts +3 -3
  490. package/dist/src/api/subscription/activeSpotAssetCtx.d.ts.map +1 -1
  491. package/dist/src/api/subscription/activeSpotAssetCtx.js +8 -2
  492. package/dist/src/api/subscription/activeSpotAssetCtx.js.map +1 -1
  493. package/dist/src/api/subscription/allMids.d.ts +3 -3
  494. package/dist/src/api/subscription/allMids.d.ts.map +1 -1
  495. package/dist/src/api/subscription/allMids.js +8 -2
  496. package/dist/src/api/subscription/allMids.js.map +1 -1
  497. package/dist/src/api/subscription/assetCtxs.d.ts +3 -3
  498. package/dist/src/api/subscription/assetCtxs.d.ts.map +1 -1
  499. package/dist/src/api/subscription/assetCtxs.js +8 -2
  500. package/dist/src/api/subscription/assetCtxs.js.map +1 -1
  501. package/dist/src/api/subscription/bbo.d.ts +3 -3
  502. package/dist/src/api/subscription/bbo.d.ts.map +1 -1
  503. package/dist/src/api/subscription/bbo.js +8 -2
  504. package/dist/src/api/subscription/bbo.js.map +1 -1
  505. package/dist/src/api/subscription/candle.d.ts +3 -3
  506. package/dist/src/api/subscription/candle.d.ts.map +1 -1
  507. package/dist/src/api/subscription/candle.js +7 -2
  508. package/dist/src/api/subscription/candle.js.map +1 -1
  509. package/dist/src/api/subscription/clearinghouseState.d.ts +3 -3
  510. package/dist/src/api/subscription/clearinghouseState.d.ts.map +1 -1
  511. package/dist/src/api/subscription/clearinghouseState.js +8 -2
  512. package/dist/src/api/subscription/clearinghouseState.js.map +1 -1
  513. package/dist/src/api/subscription/explorerBlock.d.ts +2 -2
  514. package/dist/src/api/subscription/explorerBlock.d.ts.map +1 -1
  515. package/dist/src/api/subscription/explorerBlock.js +8 -2
  516. package/dist/src/api/subscription/explorerBlock.js.map +1 -1
  517. package/dist/src/api/subscription/explorerTxs.d.ts +2 -2
  518. package/dist/src/api/subscription/explorerTxs.d.ts.map +1 -1
  519. package/dist/src/api/subscription/explorerTxs.js +8 -2
  520. package/dist/src/api/subscription/explorerTxs.js.map +1 -1
  521. package/dist/src/api/subscription/l2Book.d.ts +3 -3
  522. package/dist/src/api/subscription/l2Book.d.ts.map +1 -1
  523. package/dist/src/api/subscription/l2Book.js +8 -2
  524. package/dist/src/api/subscription/l2Book.js.map +1 -1
  525. package/dist/src/api/subscription/notification.d.ts +3 -3
  526. package/dist/src/api/subscription/notification.d.ts.map +1 -1
  527. package/dist/src/api/subscription/notification.js +8 -2
  528. package/dist/src/api/subscription/notification.js.map +1 -1
  529. package/dist/src/api/subscription/openOrders.d.ts +3 -3
  530. package/dist/src/api/subscription/openOrders.d.ts.map +1 -1
  531. package/dist/src/api/subscription/openOrders.js +8 -2
  532. package/dist/src/api/subscription/openOrders.js.map +1 -1
  533. package/dist/src/api/subscription/orderUpdates.d.ts +3 -3
  534. package/dist/src/api/subscription/orderUpdates.d.ts.map +1 -1
  535. package/dist/src/api/subscription/orderUpdates.js +8 -2
  536. package/dist/src/api/subscription/orderUpdates.js.map +1 -1
  537. package/dist/src/api/subscription/spotAssetCtxs.d.ts +67 -0
  538. package/dist/src/api/subscription/spotAssetCtxs.d.ts.map +1 -0
  539. package/dist/src/api/subscription/spotAssetCtxs.js +67 -0
  540. package/dist/src/api/subscription/spotAssetCtxs.js.map +1 -0
  541. package/dist/src/api/subscription/spotState.d.ts +3 -3
  542. package/dist/src/api/subscription/spotState.d.ts.map +1 -1
  543. package/dist/src/api/subscription/spotState.js +8 -2
  544. package/dist/src/api/subscription/spotState.js.map +1 -1
  545. package/dist/src/api/subscription/trades.d.ts +3 -3
  546. package/dist/src/api/subscription/trades.d.ts.map +1 -1
  547. package/dist/src/api/subscription/trades.js +7 -2
  548. package/dist/src/api/subscription/trades.js.map +1 -1
  549. package/dist/src/api/subscription/userEvents.d.ts +3 -3
  550. package/dist/src/api/subscription/userEvents.d.ts.map +1 -1
  551. package/dist/src/api/subscription/userEvents.js +8 -2
  552. package/dist/src/api/subscription/userEvents.js.map +1 -1
  553. package/dist/src/api/subscription/userFills.d.ts +3 -3
  554. package/dist/src/api/subscription/userFills.d.ts.map +1 -1
  555. package/dist/src/api/subscription/userFills.js +8 -2
  556. package/dist/src/api/subscription/userFills.js.map +1 -1
  557. package/dist/src/api/subscription/userFundings.d.ts +3 -3
  558. package/dist/src/api/subscription/userFundings.d.ts.map +1 -1
  559. package/dist/src/api/subscription/userFundings.js +8 -2
  560. package/dist/src/api/subscription/userFundings.js.map +1 -1
  561. package/dist/src/api/subscription/userHistoricalOrders.d.ts +3 -3
  562. package/dist/src/api/subscription/userHistoricalOrders.d.ts.map +1 -1
  563. package/dist/src/api/subscription/userHistoricalOrders.js +8 -2
  564. package/dist/src/api/subscription/userHistoricalOrders.js.map +1 -1
  565. package/dist/src/api/subscription/userNonFundingLedgerUpdates.d.ts +3 -3
  566. package/dist/src/api/subscription/userNonFundingLedgerUpdates.d.ts.map +1 -1
  567. package/dist/src/api/subscription/userNonFundingLedgerUpdates.js +8 -2
  568. package/dist/src/api/subscription/userNonFundingLedgerUpdates.js.map +1 -1
  569. package/dist/src/api/subscription/userTwapHistory.d.ts +3 -3
  570. package/dist/src/api/subscription/userTwapHistory.d.ts.map +1 -1
  571. package/dist/src/api/subscription/userTwapHistory.js +8 -2
  572. package/dist/src/api/subscription/userTwapHistory.js.map +1 -1
  573. package/dist/src/api/subscription/userTwapSliceFills.d.ts +3 -3
  574. package/dist/src/api/subscription/userTwapSliceFills.d.ts.map +1 -1
  575. package/dist/src/api/subscription/userTwapSliceFills.js +8 -2
  576. package/dist/src/api/subscription/userTwapSliceFills.js.map +1 -1
  577. package/dist/src/api/subscription/webData2.d.ts +3 -3
  578. package/dist/src/api/subscription/webData2.d.ts.map +1 -1
  579. package/dist/src/api/subscription/webData2.js +8 -2
  580. package/dist/src/api/subscription/webData2.js.map +1 -1
  581. package/dist/src/api/subscription/webData3.d.ts +3 -3
  582. package/dist/src/api/subscription/webData3.d.ts.map +1 -1
  583. package/dist/src/api/subscription/webData3.js +8 -2
  584. package/dist/src/api/subscription/webData3.js.map +1 -1
  585. package/dist/src/api/subscription/~client.d.ts +46 -25
  586. package/dist/src/api/subscription/~client.d.ts.map +1 -1
  587. package/dist/src/api/subscription/~client.js +22 -0
  588. package/dist/src/api/subscription/~client.js.map +1 -1
  589. package/dist/src/api/subscription/~mod.d.ts +1 -0
  590. package/dist/src/api/subscription/~mod.d.ts.map +1 -1
  591. package/dist/src/api/subscription/~mod.js +1 -0
  592. package/dist/src/api/subscription/~mod.js.map +1 -1
  593. package/dist/src/signing/mod.d.ts +6 -6
  594. package/dist/src/signing/mod.js +6 -6
  595. package/package.json +1 -1
  596. package/src/api/_base.ts +6 -2
  597. package/src/api/exchange/_base/_execute.ts +36 -5
  598. package/src/api/exchange/_base/_nonce.ts +12 -1
  599. package/src/api/exchange/_base/_types.ts +26 -0
  600. package/src/api/exchange/_base/mod.ts +0 -1
  601. package/src/api/exchange/agentEnableDexAbstraction.ts +36 -16
  602. package/src/api/exchange/approveAgent.ts +37 -16
  603. package/src/api/exchange/approveBuilderFee.ts +37 -16
  604. package/src/api/exchange/batchModify.ts +32 -16
  605. package/src/api/exchange/cDeposit.ts +37 -16
  606. package/src/api/exchange/cSignerAction.ts +34 -20
  607. package/src/api/exchange/cValidatorAction.ts +34 -20
  608. package/src/api/exchange/cWithdraw.ts +37 -16
  609. package/src/api/exchange/cancel.ts +27 -49
  610. package/src/api/exchange/cancelByCloid.ts +32 -15
  611. package/src/api/exchange/claimRewards.ts +32 -19
  612. package/src/api/exchange/convertToMultiSigUser.ts +38 -18
  613. package/src/api/exchange/createSubAccount.ts +50 -36
  614. package/src/api/exchange/createVault.ts +50 -36
  615. package/src/api/exchange/evmUserModify.ts +36 -15
  616. package/src/api/exchange/linkStakingUser.ts +37 -16
  617. package/src/api/exchange/modify.ts +36 -16
  618. package/src/api/exchange/multiSig.ts +118 -73
  619. package/src/api/exchange/noop.ts +34 -14
  620. package/src/api/exchange/order.ts +27 -99
  621. package/src/api/exchange/perpDeploy.ts +36 -15
  622. package/src/api/exchange/registerReferrer.ts +34 -20
  623. package/src/api/exchange/reserveRequestWeight.ts +36 -15
  624. package/src/api/exchange/scheduleCancel.ts +38 -17
  625. package/src/api/exchange/sendAsset.ts +39 -18
  626. package/src/api/exchange/setDisplayName.ts +34 -20
  627. package/src/api/exchange/setReferrer.ts +34 -20
  628. package/src/api/exchange/spotDeploy.ts +36 -15
  629. package/src/api/exchange/spotSend.ts +37 -16
  630. package/src/api/exchange/spotUser.ts +34 -20
  631. package/src/api/exchange/subAccountModify.ts +34 -20
  632. package/src/api/exchange/subAccountSpotTransfer.ts +34 -20
  633. package/src/api/exchange/subAccountTransfer.ts +34 -20
  634. package/src/api/exchange/tokenDelegate.ts +37 -16
  635. package/src/api/exchange/twapCancel.ts +27 -49
  636. package/src/api/exchange/twapOrder.ts +27 -61
  637. package/src/api/exchange/updateIsolatedMargin.ts +36 -15
  638. package/src/api/exchange/updateLeverage.ts +36 -15
  639. package/src/api/exchange/usdClassTransfer.ts +37 -16
  640. package/src/api/exchange/usdSend.ts +37 -16
  641. package/src/api/exchange/userDexAbstraction.ts +48 -27
  642. package/src/api/exchange/validatorL1Stream.ts +136 -0
  643. package/src/api/exchange/vaultDistribute.ts +34 -20
  644. package/src/api/exchange/vaultModify.ts +34 -20
  645. package/src/api/exchange/vaultTransfer.ts +36 -15
  646. package/src/api/exchange/withdraw3.ts +37 -16
  647. package/src/api/exchange/~client.ts +225 -121
  648. package/src/api/exchange/~mod.ts +2 -1
  649. package/src/api/info/activeAssetData.ts +11 -4
  650. package/src/api/info/alignedQuoteTokenInfo.ts +11 -4
  651. package/src/api/info/allMids.ts +11 -4
  652. package/src/api/info/allPerpMetas.ts +10 -5
  653. package/src/api/info/blockDetails.ts +12 -5
  654. package/src/api/info/candleSnapshot.ts +11 -5
  655. package/src/api/info/clearinghouseState.ts +11 -4
  656. package/src/api/info/delegations.ts +11 -4
  657. package/src/api/info/delegatorHistory.ts +11 -4
  658. package/src/api/info/delegatorRewards.ts +11 -4
  659. package/src/api/info/delegatorSummary.ts +11 -4
  660. package/src/api/info/exchangeStatus.ts +11 -4
  661. package/src/api/info/extraAgents.ts +11 -4
  662. package/src/api/info/frontendOpenOrders.ts +11 -5
  663. package/src/api/info/fundingHistory.ts +11 -4
  664. package/src/api/info/gossipRootIps.ts +9 -4
  665. package/src/api/info/historicalOrders.ts +11 -5
  666. package/src/api/info/isVip.ts +11 -4
  667. package/src/api/info/l2Book.ts +11 -5
  668. package/src/api/info/leadingVaults.ts +11 -4
  669. package/src/api/info/legalCheck.ts +11 -4
  670. package/src/api/info/liquidatable.ts +9 -4
  671. package/src/api/info/marginTable.ts +11 -4
  672. package/src/api/info/maxBuilderFee.ts +11 -4
  673. package/src/api/info/maxMarketOrderNtls.ts +11 -4
  674. package/src/api/info/meta.ts +11 -5
  675. package/src/api/info/metaAndAssetCtxs.ts +11 -5
  676. package/src/api/info/openOrders.ts +11 -5
  677. package/src/api/info/orderStatus.ts +11 -5
  678. package/src/api/info/perpDeployAuctionStatus.ts +11 -4
  679. package/src/api/info/perpDexLimits.ts +11 -4
  680. package/src/api/info/perpDexs.ts +11 -4
  681. package/src/api/info/perpsAtOpenInterestCap.ts +9 -4
  682. package/src/api/info/portfolio.ts +11 -4
  683. package/src/api/info/preTransferCheck.ts +11 -4
  684. package/src/api/info/predictedFundings.ts +11 -4
  685. package/src/api/info/recentTrades.ts +11 -4
  686. package/src/api/info/referral.ts +11 -4
  687. package/src/api/info/spotClearinghouseState.ts +11 -5
  688. package/src/api/info/spotDeployState.ts +11 -4
  689. package/src/api/info/spotMeta.ts +11 -4
  690. package/src/api/info/spotMetaAndAssetCtxs.ts +11 -5
  691. package/src/api/info/spotPairDeployAuctionStatus.ts +11 -4
  692. package/src/api/info/subAccounts.ts +11 -5
  693. package/src/api/info/subAccounts2.ts +11 -5
  694. package/src/api/info/tokenDetails.ts +11 -4
  695. package/src/api/info/twapHistory.ts +11 -5
  696. package/src/api/info/txDetails.ts +12 -5
  697. package/src/api/info/userDetails.ts +12 -6
  698. package/src/api/info/userDexAbstraction.ts +19 -12
  699. package/src/api/info/userFees.ts +11 -4
  700. package/src/api/info/userFills.ts +11 -5
  701. package/src/api/info/userFillsByTime.ts +11 -5
  702. package/src/api/info/userFunding.ts +11 -4
  703. package/src/api/info/userNonFundingLedgerUpdates.ts +11 -4
  704. package/src/api/info/userRateLimit.ts +11 -4
  705. package/src/api/info/userRole.ts +11 -4
  706. package/src/api/info/userToMultiSigSigners.ts +11 -4
  707. package/src/api/info/userTwapSliceFills.ts +11 -5
  708. package/src/api/info/userTwapSliceFillsByTime.ts +11 -5
  709. package/src/api/info/userVaultEquities.ts +11 -4
  710. package/src/api/info/validatorL1Votes.ts +11 -4
  711. package/src/api/info/validatorSummaries.ts +11 -4
  712. package/src/api/info/vaultDetails.ts +11 -5
  713. package/src/api/info/vaultSummaries.ts +11 -4
  714. package/src/api/info/webData2.ts +11 -5
  715. package/src/api/info/~client.ts +263 -141
  716. package/src/api/subscription/activeAssetCtx.ts +12 -5
  717. package/src/api/subscription/activeAssetData.ts +12 -6
  718. package/src/api/subscription/activeSpotAssetCtx.ts +12 -5
  719. package/src/api/subscription/allMids.ts +12 -5
  720. package/src/api/subscription/assetCtxs.ts +12 -5
  721. package/src/api/subscription/bbo.ts +12 -6
  722. package/src/api/subscription/candle.ts +11 -6
  723. package/src/api/subscription/clearinghouseState.ts +12 -6
  724. package/src/api/subscription/explorerBlock.ts +12 -5
  725. package/src/api/subscription/explorerTxs.ts +12 -5
  726. package/src/api/subscription/l2Book.ts +12 -6
  727. package/src/api/subscription/notification.ts +12 -5
  728. package/src/api/subscription/openOrders.ts +12 -6
  729. package/src/api/subscription/orderUpdates.ts +12 -6
  730. package/src/api/subscription/spotAssetCtxs.ts +118 -0
  731. package/src/api/subscription/spotState.ts +12 -6
  732. package/src/api/subscription/trades.ts +11 -6
  733. package/src/api/subscription/userEvents.ts +12 -6
  734. package/src/api/subscription/userFills.ts +12 -6
  735. package/src/api/subscription/userFundings.ts +12 -5
  736. package/src/api/subscription/userHistoricalOrders.ts +12 -6
  737. package/src/api/subscription/userNonFundingLedgerUpdates.ts +12 -6
  738. package/src/api/subscription/userTwapHistory.ts +12 -6
  739. package/src/api/subscription/userTwapSliceFills.ts +12 -6
  740. package/src/api/subscription/webData2.ts +12 -6
  741. package/src/api/subscription/webData3.ts +12 -6
  742. package/src/api/subscription/~client.ts +104 -25
  743. package/src/api/subscription/~mod.ts +1 -0
  744. package/src/signing/mod.ts +6 -6
  745. package/dist/src/api/exchange/_base/_helpers.d.ts +0 -11
  746. package/dist/src/api/exchange/_base/_helpers.d.ts.map +0 -1
  747. package/dist/src/api/exchange/_base/_helpers.js +0 -18
  748. package/dist/src/api/exchange/_base/_helpers.js.map +0 -1
  749. package/src/api/exchange/_base/_helpers.ts +0 -26
@@ -1,12 +1,4 @@
1
1
  import * as v from "valibot";
2
- import { type DeepImmutable } from "../_base.ts";
3
- import { type ExchangeRequestConfig, type ExtractRequestAction, type ExtractRequestOptions } from "./_base/mod.ts";
4
- import { CancelSuccessResponse } from "./cancel.ts";
5
- import { CreateSubAccountResponse } from "./createSubAccount.ts";
6
- import { CreateVaultResponse } from "./createVault.ts";
7
- import { OrderSuccessResponse } from "./order.ts";
8
- import { TwapOrderSuccessResponse } from "./twapOrder.ts";
9
- import { TwapCancelSuccessResponse } from "./twapCancel.ts";
10
2
  /**
11
3
  * A multi-signature request.
12
4
  * @see https://hyperliquid.gitbook.io/hyperliquid-docs/hypercore/multi-sig
@@ -2882,12 +2874,1370 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
2882
2874
  expiresAfter?: number | undefined;
2883
2875
  }, "A multi-signature request.">]>;
2884
2876
  export type MultiSigRequest = v.InferOutput<typeof MultiSigRequest>;
2885
- import { SuccessResponse } from "./_base/mod.ts";
2886
- export { CancelSuccessResponse, CreateSubAccountResponse, CreateVaultResponse, OrderSuccessResponse, SuccessResponse, TwapCancelSuccessResponse, TwapOrderSuccessResponse, };
2877
+ /**
2878
+ * A response related to an action.
2879
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/hypercore/multi-sig
2880
+ */
2881
+ export declare const MultiSigResponse: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
2882
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
2883
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
2884
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
2885
+ }, undefined>, v.DescriptionAction<{
2886
+ type: "default";
2887
+ }, "Response details.">]>;
2888
+ }, undefined>, v.DescriptionAction<{
2889
+ status: "ok";
2890
+ response: {
2891
+ type: "default";
2892
+ };
2893
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
2894
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
2895
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
2896
+ }, undefined>, v.DescriptionAction<{
2897
+ status: "err";
2898
+ response: string;
2899
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
2900
+ status: "err";
2901
+ response: string;
2902
+ } | {
2903
+ status: "ok";
2904
+ response: {
2905
+ type: "default";
2906
+ };
2907
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
2908
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
2909
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
2910
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
2911
+ }, undefined>, v.DescriptionAction<{
2912
+ type: "default";
2913
+ }, "Response details.">]>;
2914
+ }, undefined>, v.DescriptionAction<{
2915
+ status: "ok";
2916
+ response: {
2917
+ type: "default";
2918
+ };
2919
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
2920
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
2921
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
2922
+ }, undefined>, v.DescriptionAction<{
2923
+ status: "err";
2924
+ response: string;
2925
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
2926
+ status: "err";
2927
+ response: string;
2928
+ } | {
2929
+ status: "ok";
2930
+ response: {
2931
+ type: "default";
2932
+ };
2933
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
2934
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
2935
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
2936
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"order", undefined>, v.DescriptionAction<"order", "Type of response.">]>;
2937
+ readonly data: v.SchemaWithPipe<readonly [v.ObjectSchema<{
2938
+ readonly statuses: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
2939
+ readonly resting: v.SchemaWithPipe<readonly [v.ObjectSchema<{
2940
+ readonly oid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Order ID.">]>;
2941
+ readonly cloid: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | undefined, "Client Order ID.">]>;
2942
+ }, undefined>, v.DescriptionAction<{
2943
+ oid: number;
2944
+ cloid?: `0x${string}` | undefined;
2945
+ }, "Resting order status.">]>;
2946
+ }, undefined>, v.ObjectSchema<{
2947
+ readonly filled: v.SchemaWithPipe<readonly [v.ObjectSchema<{
2948
+ readonly totalSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total size filled.">]>;
2949
+ readonly avgPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Average price of fill.">]>;
2950
+ readonly oid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Order ID.">]>;
2951
+ readonly cloid: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | undefined, "Client Order ID.">]>;
2952
+ }, undefined>, v.DescriptionAction<{
2953
+ totalSz: string;
2954
+ avgPx: string;
2955
+ oid: number;
2956
+ cloid?: `0x${string}` | undefined;
2957
+ }, "Filled order status.">]>;
2958
+ }, undefined>, v.ObjectSchema<{
2959
+ readonly error: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
2960
+ }, undefined>], undefined>, undefined>, v.DescriptionAction<({
2961
+ resting: {
2962
+ oid: number;
2963
+ cloid?: `0x${string}` | undefined;
2964
+ };
2965
+ } | {
2966
+ filled: {
2967
+ totalSz: string;
2968
+ avgPx: string;
2969
+ oid: number;
2970
+ cloid?: `0x${string}` | undefined;
2971
+ };
2972
+ } | {
2973
+ error: string;
2974
+ })[], "Array of statuses or error messages.">]>;
2975
+ }, undefined>, v.DescriptionAction<{
2976
+ statuses: ({
2977
+ resting: {
2978
+ oid: number;
2979
+ cloid?: `0x${string}` | undefined;
2980
+ };
2981
+ } | {
2982
+ filled: {
2983
+ totalSz: string;
2984
+ avgPx: string;
2985
+ oid: number;
2986
+ cloid?: `0x${string}` | undefined;
2987
+ };
2988
+ } | {
2989
+ error: string;
2990
+ })[];
2991
+ }, "Specific data.">]>;
2992
+ }, undefined>, v.DescriptionAction<{
2993
+ type: "order";
2994
+ data: {
2995
+ statuses: ({
2996
+ resting: {
2997
+ oid: number;
2998
+ cloid?: `0x${string}` | undefined;
2999
+ };
3000
+ } | {
3001
+ filled: {
3002
+ totalSz: string;
3003
+ avgPx: string;
3004
+ oid: number;
3005
+ cloid?: `0x${string}` | undefined;
3006
+ };
3007
+ } | {
3008
+ error: string;
3009
+ })[];
3010
+ };
3011
+ }, "Response details.">]>;
3012
+ }, undefined>, v.DescriptionAction<{
3013
+ status: "ok";
3014
+ response: {
3015
+ type: "order";
3016
+ data: {
3017
+ statuses: ({
3018
+ resting: {
3019
+ oid: number;
3020
+ cloid?: `0x${string}` | undefined;
3021
+ };
3022
+ } | {
3023
+ filled: {
3024
+ totalSz: string;
3025
+ avgPx: string;
3026
+ oid: number;
3027
+ cloid?: `0x${string}` | undefined;
3028
+ };
3029
+ } | {
3030
+ error: string;
3031
+ })[];
3032
+ };
3033
+ };
3034
+ }, "Response for order placement and batch modifications.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3035
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3036
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3037
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cancel", undefined>, v.DescriptionAction<"cancel", "Type of response.">]>;
3038
+ readonly data: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3039
+ readonly statuses: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.ObjectSchema<{
3040
+ readonly error: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3041
+ }, undefined>], undefined>, undefined>, v.DescriptionAction<("success" | {
3042
+ error: string;
3043
+ })[], "Array of statuses or error messages.">]>;
3044
+ }, undefined>, v.DescriptionAction<{
3045
+ statuses: ("success" | {
3046
+ error: string;
3047
+ })[];
3048
+ }, "Specific data.">]>;
3049
+ }, undefined>, v.DescriptionAction<{
3050
+ type: "cancel";
3051
+ data: {
3052
+ statuses: ("success" | {
3053
+ error: string;
3054
+ })[];
3055
+ };
3056
+ }, "Response details.">]>;
3057
+ }, undefined>, v.DescriptionAction<{
3058
+ status: "ok";
3059
+ response: {
3060
+ type: "cancel";
3061
+ data: {
3062
+ statuses: ("success" | {
3063
+ error: string;
3064
+ })[];
3065
+ };
3066
+ };
3067
+ }, "Response for order cancellation.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3068
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3069
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3070
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cancel", undefined>, v.DescriptionAction<"cancel", "Type of response.">]>;
3071
+ readonly data: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3072
+ readonly statuses: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.ObjectSchema<{
3073
+ readonly error: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3074
+ }, undefined>], undefined>, undefined>, v.DescriptionAction<("success" | {
3075
+ error: string;
3076
+ })[], "Array of statuses or error messages.">]>;
3077
+ }, undefined>, v.DescriptionAction<{
3078
+ statuses: ("success" | {
3079
+ error: string;
3080
+ })[];
3081
+ }, "Specific data.">]>;
3082
+ }, undefined>, v.DescriptionAction<{
3083
+ type: "cancel";
3084
+ data: {
3085
+ statuses: ("success" | {
3086
+ error: string;
3087
+ })[];
3088
+ };
3089
+ }, "Response details.">]>;
3090
+ }, undefined>, v.DescriptionAction<{
3091
+ status: "ok";
3092
+ response: {
3093
+ type: "cancel";
3094
+ data: {
3095
+ statuses: ("success" | {
3096
+ error: string;
3097
+ })[];
3098
+ };
3099
+ };
3100
+ }, "Response for order cancellation.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3101
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3102
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3103
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3104
+ }, undefined>, v.DescriptionAction<{
3105
+ type: "default";
3106
+ }, "Response details.">]>;
3107
+ }, undefined>, v.DescriptionAction<{
3108
+ status: "ok";
3109
+ response: {
3110
+ type: "default";
3111
+ };
3112
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3113
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3114
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3115
+ }, undefined>, v.DescriptionAction<{
3116
+ status: "err";
3117
+ response: string;
3118
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3119
+ status: "err";
3120
+ response: string;
3121
+ } | {
3122
+ status: "ok";
3123
+ response: {
3124
+ type: "default";
3125
+ };
3126
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3127
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3128
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3129
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3130
+ }, undefined>, v.DescriptionAction<{
3131
+ type: "default";
3132
+ }, "Response details.">]>;
3133
+ }, undefined>, v.DescriptionAction<{
3134
+ status: "ok";
3135
+ response: {
3136
+ type: "default";
3137
+ };
3138
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3139
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3140
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3141
+ }, undefined>, v.DescriptionAction<{
3142
+ status: "err";
3143
+ response: string;
3144
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3145
+ status: "err";
3146
+ response: string;
3147
+ } | {
3148
+ status: "ok";
3149
+ response: {
3150
+ type: "default";
3151
+ };
3152
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3153
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3154
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3155
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3156
+ }, undefined>, v.DescriptionAction<{
3157
+ type: "default";
3158
+ }, "Response details.">]>;
3159
+ }, undefined>, v.DescriptionAction<{
3160
+ status: "ok";
3161
+ response: {
3162
+ type: "default";
3163
+ };
3164
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3165
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3166
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3167
+ }, undefined>, v.DescriptionAction<{
3168
+ status: "err";
3169
+ response: string;
3170
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3171
+ status: "err";
3172
+ response: string;
3173
+ } | {
3174
+ status: "ok";
3175
+ response: {
3176
+ type: "default";
3177
+ };
3178
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3179
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3180
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3181
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"createSubAccount", undefined>, v.DescriptionAction<"createSubAccount", "Type of response.">]>;
3182
+ readonly data: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Sub-account address.">]>;
3183
+ }, undefined>, v.DescriptionAction<{
3184
+ type: "createSubAccount";
3185
+ data: `0x${string}`;
3186
+ }, "Response details.">]>;
3187
+ }, undefined>, v.DescriptionAction<{
3188
+ status: "ok";
3189
+ response: {
3190
+ type: "createSubAccount";
3191
+ data: `0x${string}`;
3192
+ };
3193
+ }, "Successful response for creating a sub-account">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3194
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3195
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3196
+ }, undefined>, v.DescriptionAction<{
3197
+ status: "err";
3198
+ response: string;
3199
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3200
+ status: "err";
3201
+ response: string;
3202
+ } | {
3203
+ status: "ok";
3204
+ response: {
3205
+ type: "createSubAccount";
3206
+ data: `0x${string}`;
3207
+ };
3208
+ }, "Response for creating a sub-account.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3209
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3210
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3211
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"createVault", undefined>, v.DescriptionAction<"createVault", "Type of response.">]>;
3212
+ readonly data: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Vault address.">]>;
3213
+ }, undefined>, v.DescriptionAction<{
3214
+ type: "createVault";
3215
+ data: `0x${string}`;
3216
+ }, "Response details.">]>;
3217
+ }, undefined>, v.DescriptionAction<{
3218
+ status: "ok";
3219
+ response: {
3220
+ type: "createVault";
3221
+ data: `0x${string}`;
3222
+ };
3223
+ }, "Successful response for creating a vault">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3224
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3225
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3226
+ }, undefined>, v.DescriptionAction<{
3227
+ status: "err";
3228
+ response: string;
3229
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3230
+ status: "err";
3231
+ response: string;
3232
+ } | {
3233
+ status: "ok";
3234
+ response: {
3235
+ type: "createVault";
3236
+ data: `0x${string}`;
3237
+ };
3238
+ }, "Response for creating a vault.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3239
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3240
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3241
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3242
+ }, undefined>, v.DescriptionAction<{
3243
+ type: "default";
3244
+ }, "Response details.">]>;
3245
+ }, undefined>, v.DescriptionAction<{
3246
+ status: "ok";
3247
+ response: {
3248
+ type: "default";
3249
+ };
3250
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3251
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3252
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3253
+ }, undefined>, v.DescriptionAction<{
3254
+ status: "err";
3255
+ response: string;
3256
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3257
+ status: "err";
3258
+ response: string;
3259
+ } | {
3260
+ status: "ok";
3261
+ response: {
3262
+ type: "default";
3263
+ };
3264
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3265
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3266
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3267
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3268
+ }, undefined>, v.DescriptionAction<{
3269
+ type: "default";
3270
+ }, "Response details.">]>;
3271
+ }, undefined>, v.DescriptionAction<{
3272
+ status: "ok";
3273
+ response: {
3274
+ type: "default";
3275
+ };
3276
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3277
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3278
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3279
+ }, undefined>, v.DescriptionAction<{
3280
+ status: "err";
3281
+ response: string;
3282
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3283
+ status: "err";
3284
+ response: string;
3285
+ } | {
3286
+ status: "ok";
3287
+ response: {
3288
+ type: "default";
3289
+ };
3290
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3291
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3292
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3293
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3294
+ }, undefined>, v.DescriptionAction<{
3295
+ type: "default";
3296
+ }, "Response details.">]>;
3297
+ }, undefined>, v.DescriptionAction<{
3298
+ status: "ok";
3299
+ response: {
3300
+ type: "default";
3301
+ };
3302
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3303
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3304
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3305
+ }, undefined>, v.DescriptionAction<{
3306
+ status: "err";
3307
+ response: string;
3308
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3309
+ status: "err";
3310
+ response: string;
3311
+ } | {
3312
+ status: "ok";
3313
+ response: {
3314
+ type: "default";
3315
+ };
3316
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3317
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3318
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3319
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3320
+ }, undefined>, v.DescriptionAction<{
3321
+ type: "default";
3322
+ }, "Response details.">]>;
3323
+ }, undefined>, v.DescriptionAction<{
3324
+ status: "ok";
3325
+ response: {
3326
+ type: "default";
3327
+ };
3328
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3329
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3330
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3331
+ }, undefined>, v.DescriptionAction<{
3332
+ status: "err";
3333
+ response: string;
3334
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3335
+ status: "err";
3336
+ response: string;
3337
+ } | {
3338
+ status: "ok";
3339
+ response: {
3340
+ type: "default";
3341
+ };
3342
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3343
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3344
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3345
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3346
+ }, undefined>, v.DescriptionAction<{
3347
+ type: "default";
3348
+ }, "Response details.">]>;
3349
+ }, undefined>, v.DescriptionAction<{
3350
+ status: "ok";
3351
+ response: {
3352
+ type: "default";
3353
+ };
3354
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3355
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3356
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3357
+ }, undefined>, v.DescriptionAction<{
3358
+ status: "err";
3359
+ response: string;
3360
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3361
+ status: "err";
3362
+ response: string;
3363
+ } | {
3364
+ status: "ok";
3365
+ response: {
3366
+ type: "default";
3367
+ };
3368
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3369
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3370
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3371
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3372
+ }, undefined>, v.DescriptionAction<{
3373
+ type: "default";
3374
+ }, "Response details.">]>;
3375
+ }, undefined>, v.DescriptionAction<{
3376
+ status: "ok";
3377
+ response: {
3378
+ type: "default";
3379
+ };
3380
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3381
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3382
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3383
+ }, undefined>, v.DescriptionAction<{
3384
+ status: "err";
3385
+ response: string;
3386
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3387
+ status: "err";
3388
+ response: string;
3389
+ } | {
3390
+ status: "ok";
3391
+ response: {
3392
+ type: "default";
3393
+ };
3394
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3395
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3396
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3397
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"order", undefined>, v.DescriptionAction<"order", "Type of response.">]>;
3398
+ readonly data: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3399
+ readonly statuses: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
3400
+ readonly resting: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3401
+ readonly oid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Order ID.">]>;
3402
+ readonly cloid: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | undefined, "Client Order ID.">]>;
3403
+ }, undefined>, v.DescriptionAction<{
3404
+ oid: number;
3405
+ cloid?: `0x${string}` | undefined;
3406
+ }, "Resting order status.">]>;
3407
+ }, undefined>, v.ObjectSchema<{
3408
+ readonly filled: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3409
+ readonly totalSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total size filled.">]>;
3410
+ readonly avgPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Average price of fill.">]>;
3411
+ readonly oid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Order ID.">]>;
3412
+ readonly cloid: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | undefined, "Client Order ID.">]>;
3413
+ }, undefined>, v.DescriptionAction<{
3414
+ totalSz: string;
3415
+ avgPx: string;
3416
+ oid: number;
3417
+ cloid?: `0x${string}` | undefined;
3418
+ }, "Filled order status.">]>;
3419
+ }, undefined>, v.ObjectSchema<{
3420
+ readonly error: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3421
+ }, undefined>], undefined>, undefined>, v.DescriptionAction<({
3422
+ resting: {
3423
+ oid: number;
3424
+ cloid?: `0x${string}` | undefined;
3425
+ };
3426
+ } | {
3427
+ filled: {
3428
+ totalSz: string;
3429
+ avgPx: string;
3430
+ oid: number;
3431
+ cloid?: `0x${string}` | undefined;
3432
+ };
3433
+ } | {
3434
+ error: string;
3435
+ })[], "Array of statuses or error messages.">]>;
3436
+ }, undefined>, v.DescriptionAction<{
3437
+ statuses: ({
3438
+ resting: {
3439
+ oid: number;
3440
+ cloid?: `0x${string}` | undefined;
3441
+ };
3442
+ } | {
3443
+ filled: {
3444
+ totalSz: string;
3445
+ avgPx: string;
3446
+ oid: number;
3447
+ cloid?: `0x${string}` | undefined;
3448
+ };
3449
+ } | {
3450
+ error: string;
3451
+ })[];
3452
+ }, "Specific data.">]>;
3453
+ }, undefined>, v.DescriptionAction<{
3454
+ type: "order";
3455
+ data: {
3456
+ statuses: ({
3457
+ resting: {
3458
+ oid: number;
3459
+ cloid?: `0x${string}` | undefined;
3460
+ };
3461
+ } | {
3462
+ filled: {
3463
+ totalSz: string;
3464
+ avgPx: string;
3465
+ oid: number;
3466
+ cloid?: `0x${string}` | undefined;
3467
+ };
3468
+ } | {
3469
+ error: string;
3470
+ })[];
3471
+ };
3472
+ }, "Response details.">]>;
3473
+ }, undefined>, v.DescriptionAction<{
3474
+ status: "ok";
3475
+ response: {
3476
+ type: "order";
3477
+ data: {
3478
+ statuses: ({
3479
+ resting: {
3480
+ oid: number;
3481
+ cloid?: `0x${string}` | undefined;
3482
+ };
3483
+ } | {
3484
+ filled: {
3485
+ totalSz: string;
3486
+ avgPx: string;
3487
+ oid: number;
3488
+ cloid?: `0x${string}` | undefined;
3489
+ };
3490
+ } | {
3491
+ error: string;
3492
+ })[];
3493
+ };
3494
+ };
3495
+ }, "Response for order placement and batch modifications.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3496
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3497
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3498
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3499
+ }, undefined>, v.DescriptionAction<{
3500
+ type: "default";
3501
+ }, "Response details.">]>;
3502
+ }, undefined>, v.DescriptionAction<{
3503
+ status: "ok";
3504
+ response: {
3505
+ type: "default";
3506
+ };
3507
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3508
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3509
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3510
+ }, undefined>, v.DescriptionAction<{
3511
+ status: "err";
3512
+ response: string;
3513
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3514
+ status: "err";
3515
+ response: string;
3516
+ } | {
3517
+ status: "ok";
3518
+ response: {
3519
+ type: "default";
3520
+ };
3521
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3522
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3523
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3524
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3525
+ }, undefined>, v.DescriptionAction<{
3526
+ type: "default";
3527
+ }, "Response details.">]>;
3528
+ }, undefined>, v.DescriptionAction<{
3529
+ status: "ok";
3530
+ response: {
3531
+ type: "default";
3532
+ };
3533
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3534
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3535
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3536
+ }, undefined>, v.DescriptionAction<{
3537
+ status: "err";
3538
+ response: string;
3539
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3540
+ status: "err";
3541
+ response: string;
3542
+ } | {
3543
+ status: "ok";
3544
+ response: {
3545
+ type: "default";
3546
+ };
3547
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3548
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3549
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3550
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3551
+ }, undefined>, v.DescriptionAction<{
3552
+ type: "default";
3553
+ }, "Response details.">]>;
3554
+ }, undefined>, v.DescriptionAction<{
3555
+ status: "ok";
3556
+ response: {
3557
+ type: "default";
3558
+ };
3559
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3560
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3561
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3562
+ }, undefined>, v.DescriptionAction<{
3563
+ status: "err";
3564
+ response: string;
3565
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3566
+ status: "err";
3567
+ response: string;
3568
+ } | {
3569
+ status: "ok";
3570
+ response: {
3571
+ type: "default";
3572
+ };
3573
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3574
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3575
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3576
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3577
+ }, undefined>, v.DescriptionAction<{
3578
+ type: "default";
3579
+ }, "Response details.">]>;
3580
+ }, undefined>, v.DescriptionAction<{
3581
+ status: "ok";
3582
+ response: {
3583
+ type: "default";
3584
+ };
3585
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3586
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3587
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3588
+ }, undefined>, v.DescriptionAction<{
3589
+ status: "err";
3590
+ response: string;
3591
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3592
+ status: "err";
3593
+ response: string;
3594
+ } | {
3595
+ status: "ok";
3596
+ response: {
3597
+ type: "default";
3598
+ };
3599
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3600
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3601
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3602
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3603
+ }, undefined>, v.DescriptionAction<{
3604
+ type: "default";
3605
+ }, "Response details.">]>;
3606
+ }, undefined>, v.DescriptionAction<{
3607
+ status: "ok";
3608
+ response: {
3609
+ type: "default";
3610
+ };
3611
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3612
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3613
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3614
+ }, undefined>, v.DescriptionAction<{
3615
+ status: "err";
3616
+ response: string;
3617
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3618
+ status: "err";
3619
+ response: string;
3620
+ } | {
3621
+ status: "ok";
3622
+ response: {
3623
+ type: "default";
3624
+ };
3625
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3626
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3627
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3628
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3629
+ }, undefined>, v.DescriptionAction<{
3630
+ type: "default";
3631
+ }, "Response details.">]>;
3632
+ }, undefined>, v.DescriptionAction<{
3633
+ status: "ok";
3634
+ response: {
3635
+ type: "default";
3636
+ };
3637
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3638
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3639
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3640
+ }, undefined>, v.DescriptionAction<{
3641
+ status: "err";
3642
+ response: string;
3643
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3644
+ status: "err";
3645
+ response: string;
3646
+ } | {
3647
+ status: "ok";
3648
+ response: {
3649
+ type: "default";
3650
+ };
3651
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3652
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3653
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3654
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3655
+ }, undefined>, v.DescriptionAction<{
3656
+ type: "default";
3657
+ }, "Response details.">]>;
3658
+ }, undefined>, v.DescriptionAction<{
3659
+ status: "ok";
3660
+ response: {
3661
+ type: "default";
3662
+ };
3663
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3664
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3665
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3666
+ }, undefined>, v.DescriptionAction<{
3667
+ status: "err";
3668
+ response: string;
3669
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3670
+ status: "err";
3671
+ response: string;
3672
+ } | {
3673
+ status: "ok";
3674
+ response: {
3675
+ type: "default";
3676
+ };
3677
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3678
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3679
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3680
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3681
+ }, undefined>, v.DescriptionAction<{
3682
+ type: "default";
3683
+ }, "Response details.">]>;
3684
+ }, undefined>, v.DescriptionAction<{
3685
+ status: "ok";
3686
+ response: {
3687
+ type: "default";
3688
+ };
3689
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3690
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3691
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3692
+ }, undefined>, v.DescriptionAction<{
3693
+ status: "err";
3694
+ response: string;
3695
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3696
+ status: "err";
3697
+ response: string;
3698
+ } | {
3699
+ status: "ok";
3700
+ response: {
3701
+ type: "default";
3702
+ };
3703
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3704
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3705
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3706
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3707
+ }, undefined>, v.DescriptionAction<{
3708
+ type: "default";
3709
+ }, "Response details.">]>;
3710
+ }, undefined>, v.DescriptionAction<{
3711
+ status: "ok";
3712
+ response: {
3713
+ type: "default";
3714
+ };
3715
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3716
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3717
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3718
+ }, undefined>, v.DescriptionAction<{
3719
+ status: "err";
3720
+ response: string;
3721
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3722
+ status: "err";
3723
+ response: string;
3724
+ } | {
3725
+ status: "ok";
3726
+ response: {
3727
+ type: "default";
3728
+ };
3729
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3730
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3731
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3732
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3733
+ }, undefined>, v.DescriptionAction<{
3734
+ type: "default";
3735
+ }, "Response details.">]>;
3736
+ }, undefined>, v.DescriptionAction<{
3737
+ status: "ok";
3738
+ response: {
3739
+ type: "default";
3740
+ };
3741
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3742
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3743
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3744
+ }, undefined>, v.DescriptionAction<{
3745
+ status: "err";
3746
+ response: string;
3747
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3748
+ status: "err";
3749
+ response: string;
3750
+ } | {
3751
+ status: "ok";
3752
+ response: {
3753
+ type: "default";
3754
+ };
3755
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3756
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3757
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3758
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3759
+ }, undefined>, v.DescriptionAction<{
3760
+ type: "default";
3761
+ }, "Response details.">]>;
3762
+ }, undefined>, v.DescriptionAction<{
3763
+ status: "ok";
3764
+ response: {
3765
+ type: "default";
3766
+ };
3767
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3768
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3769
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3770
+ }, undefined>, v.DescriptionAction<{
3771
+ status: "err";
3772
+ response: string;
3773
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3774
+ status: "err";
3775
+ response: string;
3776
+ } | {
3777
+ status: "ok";
3778
+ response: {
3779
+ type: "default";
3780
+ };
3781
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3782
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3783
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3784
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3785
+ }, undefined>, v.DescriptionAction<{
3786
+ type: "default";
3787
+ }, "Response details.">]>;
3788
+ }, undefined>, v.DescriptionAction<{
3789
+ status: "ok";
3790
+ response: {
3791
+ type: "default";
3792
+ };
3793
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3794
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3795
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3796
+ }, undefined>, v.DescriptionAction<{
3797
+ status: "err";
3798
+ response: string;
3799
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3800
+ status: "err";
3801
+ response: string;
3802
+ } | {
3803
+ status: "ok";
3804
+ response: {
3805
+ type: "default";
3806
+ };
3807
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3808
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3809
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3810
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3811
+ }, undefined>, v.DescriptionAction<{
3812
+ type: "default";
3813
+ }, "Response details.">]>;
3814
+ }, undefined>, v.DescriptionAction<{
3815
+ status: "ok";
3816
+ response: {
3817
+ type: "default";
3818
+ };
3819
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3820
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3821
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3822
+ }, undefined>, v.DescriptionAction<{
3823
+ status: "err";
3824
+ response: string;
3825
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3826
+ status: "err";
3827
+ response: string;
3828
+ } | {
3829
+ status: "ok";
3830
+ response: {
3831
+ type: "default";
3832
+ };
3833
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3834
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3835
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3836
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3837
+ }, undefined>, v.DescriptionAction<{
3838
+ type: "default";
3839
+ }, "Response details.">]>;
3840
+ }, undefined>, v.DescriptionAction<{
3841
+ status: "ok";
3842
+ response: {
3843
+ type: "default";
3844
+ };
3845
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3846
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3847
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3848
+ }, undefined>, v.DescriptionAction<{
3849
+ status: "err";
3850
+ response: string;
3851
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3852
+ status: "err";
3853
+ response: string;
3854
+ } | {
3855
+ status: "ok";
3856
+ response: {
3857
+ type: "default";
3858
+ };
3859
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3860
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3861
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3862
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"twapCancel", undefined>, v.DescriptionAction<"twapCancel", "Type of response.">]>;
3863
+ readonly data: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3864
+ readonly status: v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.ObjectSchema<{
3865
+ readonly error: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3866
+ }, undefined>], undefined>, v.DescriptionAction<string | {
3867
+ error: string;
3868
+ }, "Status of the operation or error message.">]>;
3869
+ }, undefined>, v.DescriptionAction<{
3870
+ status: string | {
3871
+ error: string;
3872
+ };
3873
+ }, "Specific data.">]>;
3874
+ }, undefined>, v.DescriptionAction<{
3875
+ type: "twapCancel";
3876
+ data: {
3877
+ status: string | {
3878
+ error: string;
3879
+ };
3880
+ };
3881
+ }, "Response details.">]>;
3882
+ }, undefined>, v.DescriptionAction<{
3883
+ status: "ok";
3884
+ response: {
3885
+ type: "twapCancel";
3886
+ data: {
3887
+ status: string | {
3888
+ error: string;
3889
+ };
3890
+ };
3891
+ };
3892
+ }, "Response for canceling a TWAP order.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3893
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3894
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3895
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"twapOrder", undefined>, v.DescriptionAction<"twapOrder", "Type of response.">]>;
3896
+ readonly data: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3897
+ readonly status: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
3898
+ readonly running: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3899
+ readonly twapId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "TWAP ID.">]>;
3900
+ }, undefined>, v.DescriptionAction<{
3901
+ twapId: number;
3902
+ }, "Running order status.">]>;
3903
+ }, undefined>, v.ObjectSchema<{
3904
+ readonly error: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3905
+ }, undefined>], undefined>, v.DescriptionAction<{
3906
+ running: {
3907
+ twapId: number;
3908
+ };
3909
+ } | {
3910
+ error: string;
3911
+ }, "Status of the operation or error message.">]>;
3912
+ }, undefined>, v.DescriptionAction<{
3913
+ status: {
3914
+ running: {
3915
+ twapId: number;
3916
+ };
3917
+ } | {
3918
+ error: string;
3919
+ };
3920
+ }, "Specific data.">]>;
3921
+ }, undefined>, v.DescriptionAction<{
3922
+ type: "twapOrder";
3923
+ data: {
3924
+ status: {
3925
+ running: {
3926
+ twapId: number;
3927
+ };
3928
+ } | {
3929
+ error: string;
3930
+ };
3931
+ };
3932
+ }, "Response details.">]>;
3933
+ }, undefined>, v.DescriptionAction<{
3934
+ status: "ok";
3935
+ response: {
3936
+ type: "twapOrder";
3937
+ data: {
3938
+ status: {
3939
+ running: {
3940
+ twapId: number;
3941
+ };
3942
+ } | {
3943
+ error: string;
3944
+ };
3945
+ };
3946
+ };
3947
+ }, "Response for creating a TWAP order.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3948
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3949
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3950
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3951
+ }, undefined>, v.DescriptionAction<{
3952
+ type: "default";
3953
+ }, "Response details.">]>;
3954
+ }, undefined>, v.DescriptionAction<{
3955
+ status: "ok";
3956
+ response: {
3957
+ type: "default";
3958
+ };
3959
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3960
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3961
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3962
+ }, undefined>, v.DescriptionAction<{
3963
+ status: "err";
3964
+ response: string;
3965
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3966
+ status: "err";
3967
+ response: string;
3968
+ } | {
3969
+ status: "ok";
3970
+ response: {
3971
+ type: "default";
3972
+ };
3973
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3974
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
3975
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3976
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
3977
+ }, undefined>, v.DescriptionAction<{
3978
+ type: "default";
3979
+ }, "Response details.">]>;
3980
+ }, undefined>, v.DescriptionAction<{
3981
+ status: "ok";
3982
+ response: {
3983
+ type: "default";
3984
+ };
3985
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
3986
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
3987
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
3988
+ }, undefined>, v.DescriptionAction<{
3989
+ status: "err";
3990
+ response: string;
3991
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
3992
+ status: "err";
3993
+ response: string;
3994
+ } | {
3995
+ status: "ok";
3996
+ response: {
3997
+ type: "default";
3998
+ };
3999
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
4000
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
4001
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
4002
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
4003
+ }, undefined>, v.DescriptionAction<{
4004
+ type: "default";
4005
+ }, "Response details.">]>;
4006
+ }, undefined>, v.DescriptionAction<{
4007
+ status: "ok";
4008
+ response: {
4009
+ type: "default";
4010
+ };
4011
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
4012
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
4013
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
4014
+ }, undefined>, v.DescriptionAction<{
4015
+ status: "err";
4016
+ response: string;
4017
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
4018
+ status: "err";
4019
+ response: string;
4020
+ } | {
4021
+ status: "ok";
4022
+ response: {
4023
+ type: "default";
4024
+ };
4025
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
4026
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
4027
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
4028
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
4029
+ }, undefined>, v.DescriptionAction<{
4030
+ type: "default";
4031
+ }, "Response details.">]>;
4032
+ }, undefined>, v.DescriptionAction<{
4033
+ status: "ok";
4034
+ response: {
4035
+ type: "default";
4036
+ };
4037
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
4038
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
4039
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
4040
+ }, undefined>, v.DescriptionAction<{
4041
+ status: "err";
4042
+ response: string;
4043
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
4044
+ status: "err";
4045
+ response: string;
4046
+ } | {
4047
+ status: "ok";
4048
+ response: {
4049
+ type: "default";
4050
+ };
4051
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
4052
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
4053
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
4054
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
4055
+ }, undefined>, v.DescriptionAction<{
4056
+ type: "default";
4057
+ }, "Response details.">]>;
4058
+ }, undefined>, v.DescriptionAction<{
4059
+ status: "ok";
4060
+ response: {
4061
+ type: "default";
4062
+ };
4063
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
4064
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
4065
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
4066
+ }, undefined>, v.DescriptionAction<{
4067
+ status: "err";
4068
+ response: string;
4069
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
4070
+ status: "err";
4071
+ response: string;
4072
+ } | {
4073
+ status: "ok";
4074
+ response: {
4075
+ type: "default";
4076
+ };
4077
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
4078
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
4079
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
4080
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
4081
+ }, undefined>, v.DescriptionAction<{
4082
+ type: "default";
4083
+ }, "Response details.">]>;
4084
+ }, undefined>, v.DescriptionAction<{
4085
+ status: "ok";
4086
+ response: {
4087
+ type: "default";
4088
+ };
4089
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
4090
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
4091
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
4092
+ }, undefined>, v.DescriptionAction<{
4093
+ status: "err";
4094
+ response: string;
4095
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
4096
+ status: "err";
4097
+ response: string;
4098
+ } | {
4099
+ status: "ok";
4100
+ response: {
4101
+ type: "default";
4102
+ };
4103
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
4104
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
4105
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
4106
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
4107
+ }, undefined>, v.DescriptionAction<{
4108
+ type: "default";
4109
+ }, "Response details.">]>;
4110
+ }, undefined>, v.DescriptionAction<{
4111
+ status: "ok";
4112
+ response: {
4113
+ type: "default";
4114
+ };
4115
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
4116
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
4117
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
4118
+ }, undefined>, v.DescriptionAction<{
4119
+ status: "err";
4120
+ response: string;
4121
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
4122
+ status: "err";
4123
+ response: string;
4124
+ } | {
4125
+ status: "ok";
4126
+ response: {
4127
+ type: "default";
4128
+ };
4129
+ }, "Successful response without specific data or error response.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
4130
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
4131
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
4132
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
4133
+ }, undefined>, v.DescriptionAction<{
4134
+ type: "default";
4135
+ }, "Response details.">]>;
4136
+ }, undefined>, v.DescriptionAction<{
4137
+ status: "ok";
4138
+ response: {
4139
+ type: "default";
4140
+ };
4141
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
4142
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
4143
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
4144
+ }, undefined>, v.DescriptionAction<{
4145
+ status: "err";
4146
+ response: string;
4147
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
4148
+ status: "err";
4149
+ response: string;
4150
+ } | {
4151
+ status: "ok";
4152
+ response: {
4153
+ type: "default";
4154
+ };
4155
+ }, "Successful response without specific data or error response.">]>], undefined>, v.DescriptionAction<{
4156
+ status: "err";
4157
+ response: string;
4158
+ } | {
4159
+ status: "ok";
4160
+ response: {
4161
+ type: "default";
4162
+ };
4163
+ } | {
4164
+ status: "ok";
4165
+ response: {
4166
+ type: "cancel";
4167
+ data: {
4168
+ statuses: ("success" | {
4169
+ error: string;
4170
+ })[];
4171
+ };
4172
+ };
4173
+ } | {
4174
+ status: "ok";
4175
+ response: {
4176
+ type: "createSubAccount";
4177
+ data: `0x${string}`;
4178
+ };
4179
+ } | {
4180
+ status: "ok";
4181
+ response: {
4182
+ type: "createVault";
4183
+ data: `0x${string}`;
4184
+ };
4185
+ } | {
4186
+ status: "ok";
4187
+ response: {
4188
+ type: "order";
4189
+ data: {
4190
+ statuses: ({
4191
+ resting: {
4192
+ oid: number;
4193
+ cloid?: `0x${string}` | undefined;
4194
+ };
4195
+ } | {
4196
+ filled: {
4197
+ totalSz: string;
4198
+ avgPx: string;
4199
+ oid: number;
4200
+ cloid?: `0x${string}` | undefined;
4201
+ };
4202
+ } | {
4203
+ error: string;
4204
+ })[];
4205
+ };
4206
+ };
4207
+ } | {
4208
+ status: "ok";
4209
+ response: {
4210
+ type: "twapOrder";
4211
+ data: {
4212
+ status: {
4213
+ running: {
4214
+ twapId: number;
4215
+ };
4216
+ } | {
4217
+ error: string;
4218
+ };
4219
+ };
4220
+ };
4221
+ } | {
4222
+ status: "ok";
4223
+ response: {
4224
+ type: "twapCancel";
4225
+ data: {
4226
+ status: string | {
4227
+ error: string;
4228
+ };
4229
+ };
4230
+ };
4231
+ }, "A response related to an action.">]>;
4232
+ export type MultiSigResponse = v.InferOutput<typeof MultiSigResponse>;
4233
+ import { type DeepImmutable } from "../_base.ts";
4234
+ import { type ExchangeRequestConfig, type ExcludeErrorResponse, type ExtractRequestAction, type ExtractRequestOptions } from "./_base/mod.ts";
2887
4235
  /** Action parameters for the {@linkcode multiSig} function. */
2888
4236
  export type MultiSigParameters = ExtractRequestAction<v.InferInput<typeof MultiSigRequest>> & Pick<v.InferInput<typeof MultiSigRequest>, "nonce">;
2889
4237
  /** Request options for the {@linkcode multiSig} function. */
2890
4238
  export type MultiSigOptions = ExtractRequestOptions<v.InferInput<typeof MultiSigRequest>>;
4239
+ /** Successful variant of {@linkcode MultiSigResponse} without errors. */
4240
+ export type MultiSigSuccessResponse = ExcludeErrorResponse<MultiSigResponse>;
2891
4241
  /** EIP-712 types for the {@linkcode multiSig} function. */
2892
4242
  export declare const MultiSigTypes: {
2893
4243
  "HyperliquidTransaction:SendMultiSig": {
@@ -2911,7 +4261,7 @@ export declare const MultiSigTypes: {
2911
4261
  * import { HttpTransport } from "@nktkas/hyperliquid";
2912
4262
  * import { multiSig, parser, ScheduleCancelRequest } from "@nktkas/hyperliquid/api/exchange";
2913
4263
  * import { signL1Action } from "@nktkas/hyperliquid/signing";
2914
- * import { privateKeyToAccount } from "npm:viem/accounts";
4264
+ * import { privateKeyToAccount } from "viem/accounts";
2915
4265
  *
2916
4266
  * const wallet = privateKeyToAccount("0x..."); // viem or ethers
2917
4267
  * const multiSigUser = "0x...";
@@ -2960,5 +4310,5 @@ export declare const MultiSigTypes: {
2960
4310
  * );
2961
4311
  * ```
2962
4312
  */
2963
- export declare function multiSig<T extends SuccessResponse | CancelSuccessResponse | CreateSubAccountResponse | CreateVaultResponse | OrderSuccessResponse | TwapOrderSuccessResponse | TwapCancelSuccessResponse>(config: ExchangeRequestConfig, paramsAndNonce: DeepImmutable<MultiSigParameters>, opts?: MultiSigOptions): Promise<T>;
4313
+ export declare function multiSig(config: ExchangeRequestConfig, paramsAndNonce: DeepImmutable<MultiSigParameters>, opts?: MultiSigOptions): Promise<MultiSigSuccessResponse>;
2964
4314
  //# sourceMappingURL=multiSig.d.ts.map