@polyester/sdk 0.31.0 → 0.32.0-devnet-20261102134326

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 (378) hide show
  1. package/CHANGELOG.md +116 -0
  2. package/README.md +7 -0
  3. package/dist/browser-core.d.ts.map +1 -1
  4. package/dist/browser-core.js.map +1 -1
  5. package/dist/catalogs/market-data-catalog.d.ts +2 -0
  6. package/dist/catalogs/market-data-catalog.d.ts.map +1 -1
  7. package/dist/catalogs/market-data-catalog.js +1 -0
  8. package/dist/catalogs/market-data-catalog.js.map +1 -1
  9. package/dist/catalogs/snapshot-validation.js +6 -0
  10. package/dist/catalogs/snapshot-validation.js.map +1 -1
  11. package/dist/client.d.ts +2 -2
  12. package/dist/client.js +2 -2
  13. package/dist/client.js.map +1 -1
  14. package/dist/core-client.d.ts.map +1 -1
  15. package/dist/core-client.js +1 -0
  16. package/dist/core-client.js.map +1 -1
  17. package/dist/gen/auth/v1/api_keys_pb.d.ts +6 -3
  18. package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
  19. package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
  20. package/dist/gen/auth/v1/auth_pb.d.ts +16 -2
  21. package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
  22. package/dist/gen/auth/v1/auth_pb.js +16 -2
  23. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  24. package/dist/gen/auth/v1/policies_pb.d.ts +26 -2
  25. package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
  26. package/dist/gen/auth/v1/policies_pb.js +26 -2
  27. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  28. package/dist/gen/auth/v1/subaccounts_pb.d.ts +41 -17
  29. package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
  30. package/dist/gen/auth/v1/subaccounts_pb.js +20 -3
  31. package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
  32. package/dist/gen/chain/analytics/v1/analytics_read_pb.d.ts.map +1 -1
  33. package/dist/gen/chain/analytics/v1/analytics_read_pb.js +2 -1
  34. package/dist/gen/chain/analytics/v1/analytics_read_pb.js.map +1 -1
  35. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +10 -6
  36. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts.map +1 -1
  37. package/dist/gen/chain/deposit/v1/deposit_pb.js +2 -1
  38. package/dist/gen/chain/deposit/v1/deposit_pb.js.map +1 -1
  39. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +32 -2
  40. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts.map +1 -1
  41. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js +2 -2
  42. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
  43. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +19 -3
  44. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts.map +1 -1
  45. package/dist/gen/chain/lifecycle/v1/types_pb.js +18 -2
  46. package/dist/gen/chain/lifecycle/v1/types_pb.js.map +1 -1
  47. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +840 -0
  48. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -0
  49. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js +351 -0
  50. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -0
  51. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +22 -2
  52. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  53. package/dist/gen/chain/withdraw/v1/withdraw_pb.js +17 -1
  54. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  55. package/dist/gen/chain/zipper/v1/reason_pb.d.ts +14 -0
  56. package/dist/gen/chain/zipper/v1/reason_pb.d.ts.map +1 -1
  57. package/dist/gen/chain/zipper/v1/reason_pb.js +15 -1
  58. package/dist/gen/chain/zipper/v1/reason_pb.js.map +1 -1
  59. package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +1134 -0
  60. package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts.map +1 -0
  61. package/dist/gen/checkpoints/v1/checkpoints_pb.js +327 -0
  62. package/dist/gen/checkpoints/v1/checkpoints_pb.js.map +1 -0
  63. package/dist/gen/claims/v1/claims_pb.d.ts +61 -4
  64. package/dist/gen/claims/v1/claims_pb.d.ts.map +1 -1
  65. package/dist/gen/claims/v1/claims_pb.js +26 -1
  66. package/dist/gen/claims/v1/claims_pb.js.map +1 -1
  67. package/dist/gen/fees/v1/fees_pb.d.ts.map +1 -1
  68. package/dist/gen/fees/v1/fees_pb.js +2 -1
  69. package/dist/gen/fees/v1/fees_pb.js.map +1 -1
  70. package/dist/gen/index.d.ts +7 -5
  71. package/dist/gen/index.js +12 -10
  72. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +45 -3
  73. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts.map +1 -1
  74. package/dist/gen/ledger/read/v1/ledger_read_pb.js +19 -7
  75. package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
  76. package/dist/gen/marketdata/v1/marketdata_pb.d.ts +248 -27
  77. package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
  78. package/dist/gen/marketdata/v1/marketdata_pb.js +73 -20
  79. package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
  80. package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +2 -1
  81. package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts.map +1 -1
  82. package/dist/gen/marketoverview/v1/marketoverview_pb.js.map +1 -1
  83. package/dist/gen/orderbook/v1/orderbook_pb.d.ts +16 -4
  84. package/dist/gen/orderbook/v1/orderbook_pb.d.ts.map +1 -1
  85. package/dist/gen/orderbook/v1/orderbook_pb.js +1 -1
  86. package/dist/gen/orderbook/v1/orderbook_pb.js.map +1 -1
  87. package/dist/gen/orders/v1/orders_pb.d.ts +1222 -63
  88. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  89. package/dist/gen/orders/v1/orders_pb.js +971 -44
  90. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  91. package/dist/gen/orders/v1/orders_read_pb.d.ts +214 -25
  92. package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
  93. package/dist/gen/orders/v1/orders_read_pb.js +159 -20
  94. package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
  95. package/dist/gen/polyester/api/options_pb.d.ts +8 -1
  96. package/dist/gen/polyester/api/options_pb.d.ts.map +1 -1
  97. package/dist/gen/polyester/api/options_pb.js +8 -1
  98. package/dist/gen/polyester/api/options_pb.js.map +1 -1
  99. package/dist/gen/privatews/v1/private_ws_pb.d.ts +1419 -0
  100. package/dist/gen/privatews/v1/private_ws_pb.d.ts.map +1 -0
  101. package/dist/gen/privatews/v1/private_ws_pb.js +551 -0
  102. package/dist/gen/privatews/v1/private_ws_pb.js.map +1 -0
  103. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +1 -0
  104. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts.map +1 -1
  105. package/dist/gen/ratelimit/v1/ratelimit_pb.js +1 -1
  106. package/dist/gen/ratelimit/v1/ratelimit_pb.js.map +1 -1
  107. package/dist/gen/rewards/v1/rewards_pb.d.ts +6 -0
  108. package/dist/gen/rewards/v1/rewards_pb.d.ts.map +1 -1
  109. package/dist/gen/rewards/v1/rewards_pb.js +1 -1
  110. package/dist/gen/rewards/v1/rewards_pb.js.map +1 -1
  111. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +2108 -0
  112. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -0
  113. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +522 -0
  114. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -0
  115. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +2296 -0
  116. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -0
  117. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +1014 -0
  118. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -0
  119. package/dist/gen/swap/v1/swap_pb.d.ts +958 -0
  120. package/dist/gen/swap/v1/swap_pb.d.ts.map +1 -0
  121. package/dist/gen/swap/v1/swap_pb.js +434 -0
  122. package/dist/gen/swap/v1/swap_pb.js.map +1 -0
  123. package/dist/gen/tradews/v1/trade_ws_pb.d.ts +68 -3
  124. package/dist/gen/tradews/v1/trade_ws_pb.d.ts.map +1 -1
  125. package/dist/gen/tradews/v1/trade_ws_pb.js +1 -1
  126. package/dist/gen/tradews/v1/trade_ws_pb.js.map +1 -1
  127. package/dist/gen/triggers/v1/triggers_pb.d.ts +612 -33
  128. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  129. package/dist/gen/triggers/v1/triggers_pb.js +437 -20
  130. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  131. package/dist/gen/vip/v1/vip_pb.d.ts +95 -7
  132. package/dist/gen/vip/v1/vip_pb.d.ts.map +1 -1
  133. package/dist/gen/vip/v1/vip_pb.js +53 -5
  134. package/dist/gen/vip/v1/vip_pb.js.map +1 -1
  135. package/dist/index.d.ts +9 -7
  136. package/dist/index.js +2 -2
  137. package/dist/realtime/client.d.ts +3 -0
  138. package/dist/realtime/client.d.ts.map +1 -1
  139. package/dist/realtime/client.js +76 -24
  140. package/dist/realtime/client.js.map +1 -1
  141. package/dist/realtime/index.d.ts +2 -1
  142. package/dist/realtime/private-orders.d.ts +38 -0
  143. package/dist/realtime/private-orders.d.ts.map +1 -0
  144. package/dist/realtime/private-orders.js +594 -0
  145. package/dist/realtime/private-orders.js.map +1 -0
  146. package/dist/realtime/ready-gated-subscription.js +10 -4
  147. package/dist/realtime/ready-gated-subscription.js.map +1 -1
  148. package/dist/realtime/types.d.ts +3 -0
  149. package/dist/realtime/types.d.ts.map +1 -1
  150. package/dist/services/auth/account-signer-auth.d.ts +5 -3
  151. package/dist/services/auth/account-signer-auth.d.ts.map +1 -1
  152. package/dist/services/auth/account-signer-auth.js +21 -3
  153. package/dist/services/auth/account-signer-auth.js.map +1 -1
  154. package/dist/services/auth/profile/profile.schemas.js +1 -1
  155. package/dist/services/balances/balances.js +1 -1
  156. package/dist/services/balances/balances.schemas.d.ts +3 -3
  157. package/dist/services/candles/candles.codecs.js +15 -0
  158. package/dist/services/candles/candles.codecs.js.map +1 -1
  159. package/dist/services/candles/candles.schemas.d.ts +13 -13
  160. package/dist/services/checkpoints/checkpoints.codecs.d.ts +8 -0
  161. package/dist/services/checkpoints/checkpoints.codecs.d.ts.map +1 -0
  162. package/dist/services/checkpoints/checkpoints.codecs.js +36 -0
  163. package/dist/services/checkpoints/checkpoints.codecs.js.map +1 -0
  164. package/dist/services/checkpoints/checkpoints.d.ts +22 -0
  165. package/dist/services/checkpoints/checkpoints.d.ts.map +1 -0
  166. package/dist/services/checkpoints/checkpoints.js +31 -0
  167. package/dist/services/checkpoints/checkpoints.js.map +1 -0
  168. package/dist/services/checkpoints/checkpoints.schemas.d.ts +437 -0
  169. package/dist/services/checkpoints/checkpoints.schemas.d.ts.map +1 -0
  170. package/dist/services/checkpoints/checkpoints.schemas.js +176 -0
  171. package/dist/services/checkpoints/checkpoints.schemas.js.map +1 -0
  172. package/dist/services/checkpoints/checkpoints.types.d.ts +3 -0
  173. package/dist/services/checkpoints/service.d.ts +8 -0
  174. package/dist/services/checkpoints/service.d.ts.map +1 -0
  175. package/dist/services/checkpoints/service.js +9 -0
  176. package/dist/services/checkpoints/service.js.map +1 -0
  177. package/dist/services/claims/claims.codecs.d.ts +1 -1
  178. package/dist/services/claims/claims.codecs.d.ts.map +1 -1
  179. package/dist/services/claims/claims.codecs.js +2 -1
  180. package/dist/services/claims/claims.codecs.js.map +1 -1
  181. package/dist/services/claims/claims.d.ts +13 -5
  182. package/dist/services/claims/claims.d.ts.map +1 -1
  183. package/dist/services/claims/claims.js +15 -6
  184. package/dist/services/claims/claims.js.map +1 -1
  185. package/dist/services/claims/claims.schemas.d.ts +13 -3
  186. package/dist/services/claims/claims.schemas.d.ts.map +1 -1
  187. package/dist/services/claims/claims.schemas.js +10 -4
  188. package/dist/services/claims/claims.schemas.js.map +1 -1
  189. package/dist/services/claims/claims.types.d.ts +2 -2
  190. package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
  191. package/dist/services/lifecycle/lifecycle.codecs.d.ts +1 -1
  192. package/dist/services/lifecycle/lifecycle.codecs.d.ts.map +1 -1
  193. package/dist/services/lifecycle/lifecycle.codecs.js +4 -2
  194. package/dist/services/lifecycle/lifecycle.codecs.js.map +1 -1
  195. package/dist/services/lifecycle/lifecycle.schemas.d.ts +185 -135
  196. package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
  197. package/dist/services/lifecycle/lifecycle.schemas.js +7 -1
  198. package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
  199. package/dist/services/market-data/market-data.codecs.js +2 -1
  200. package/dist/services/market-data/market-data.codecs.js.map +1 -1
  201. package/dist/services/market-data/market-data.d.ts +10 -1
  202. package/dist/services/market-data/market-data.d.ts.map +1 -1
  203. package/dist/services/market-data/market-data.js +21 -9
  204. package/dist/services/market-data/market-data.js.map +1 -1
  205. package/dist/services/market-data/market-data.schemas.d.ts +29 -2
  206. package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
  207. package/dist/services/market-data/market-data.schemas.js +53 -4
  208. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  209. package/dist/services/market-data/market-data.types.d.ts +2 -2
  210. package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
  211. package/dist/services/orderbook/orderbook.d.ts +2 -1
  212. package/dist/services/orderbook/orderbook.d.ts.map +1 -1
  213. package/dist/services/orderbook/orderbook.js +17 -2
  214. package/dist/services/orderbook/orderbook.js.map +1 -1
  215. package/dist/services/orderbook/orderbook.schemas.d.ts +5 -1
  216. package/dist/services/orderbook/orderbook.schemas.d.ts.map +1 -1
  217. package/dist/services/orderbook/orderbook.schemas.js +2 -0
  218. package/dist/services/orderbook/orderbook.schemas.js.map +1 -1
  219. package/dist/services/orders/order-enums.codecs.js +7 -1
  220. package/dist/services/orders/order-enums.codecs.js.map +1 -1
  221. package/dist/services/orders/order-errors.schemas.d.ts +4 -2
  222. package/dist/services/orders/order-errors.schemas.d.ts.map +1 -1
  223. package/dist/services/orders/order-errors.schemas.js +4 -1
  224. package/dist/services/orders/order-errors.schemas.js.map +1 -1
  225. package/dist/services/orders/orders-batch.schemas.d.ts +375 -54
  226. package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
  227. package/dist/services/orders/orders-batch.schemas.js +12 -2
  228. package/dist/services/orders/orders-batch.schemas.js.map +1 -1
  229. package/dist/services/orders/orders-input.schemas.d.ts +551 -9
  230. package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
  231. package/dist/services/orders/orders-input.schemas.js +23 -5
  232. package/dist/services/orders/orders-input.schemas.js.map +1 -1
  233. package/dist/services/orders/orders-modify.schemas.d.ts +106 -1
  234. package/dist/services/orders/orders-modify.schemas.d.ts.map +1 -1
  235. package/dist/services/orders/orders-modify.schemas.js +1 -1
  236. package/dist/services/orders/orders-output.schemas.d.ts +80 -61
  237. package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
  238. package/dist/services/orders/orders-output.schemas.js +15 -22
  239. package/dist/services/orders/orders-output.schemas.js.map +1 -1
  240. package/dist/services/orders/orders-risk.schemas.d.ts +69 -1
  241. package/dist/services/orders/orders-risk.schemas.d.ts.map +1 -1
  242. package/dist/services/orders/orders-risk.schemas.js +21 -11
  243. package/dist/services/orders/orders-risk.schemas.js.map +1 -1
  244. package/dist/services/orders/orders.codecs.js +26 -2
  245. package/dist/services/orders/orders.codecs.js.map +1 -1
  246. package/dist/services/orders/orders.d.ts +31 -5
  247. package/dist/services/orders/orders.d.ts.map +1 -1
  248. package/dist/services/orders/orders.js +53 -15
  249. package/dist/services/orders/orders.js.map +1 -1
  250. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
  251. package/dist/services/policies/shared.codecs.js +8 -2
  252. package/dist/services/policies/shared.codecs.js.map +1 -1
  253. package/dist/services/policies/shared.d.ts +1 -1
  254. package/dist/services/policies/shared.d.ts.map +1 -1
  255. package/dist/services/policies/shared.js +4 -1
  256. package/dist/services/policies/shared.js.map +1 -1
  257. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +9 -9
  258. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +1 -1
  259. package/dist/services/subaccounts/subaccounts.codecs.js +4 -1
  260. package/dist/services/subaccounts/subaccounts.codecs.js.map +1 -1
  261. package/dist/services/subaccounts/subaccounts.d.ts +1 -1
  262. package/dist/services/subaccounts/subaccounts.d.ts.map +1 -1
  263. package/dist/services/subaccounts/subaccounts.js +1 -2
  264. package/dist/services/subaccounts/subaccounts.js.map +1 -1
  265. package/dist/services/subaccounts/subaccounts.schemas.d.ts +10 -10
  266. package/dist/services/trades/trades.d.ts +2 -0
  267. package/dist/services/trades/trades.d.ts.map +1 -1
  268. package/dist/services/trades/trades.js +6 -6
  269. package/dist/services/trades/trades.js.map +1 -1
  270. package/dist/services/trades/trades.schemas.d.ts +2 -2
  271. package/dist/services/trades/trades.schemas.js +1 -1
  272. package/dist/services/trading-withdraws/trading-withdraws.d.ts +9 -5
  273. package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
  274. package/dist/services/trading-withdraws/trading-withdraws.js +45 -26
  275. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  276. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +12 -0
  277. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  278. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +26 -6
  279. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  280. package/dist/services/trailing-oneof-inputs.js +6 -1
  281. package/dist/services/trailing-oneof-inputs.js.map +1 -1
  282. package/dist/services/transfers/transfers.d.ts +2 -0
  283. package/dist/services/transfers/transfers.d.ts.map +1 -1
  284. package/dist/services/transfers/transfers.js +6 -11
  285. package/dist/services/transfers/transfers.js.map +1 -1
  286. package/dist/services/transfers/transfers.schemas.d.ts +4 -1
  287. package/dist/services/transfers/transfers.schemas.d.ts.map +1 -1
  288. package/dist/services/transfers/transfers.schemas.js +3 -1
  289. package/dist/services/transfers/transfers.schemas.js.map +1 -1
  290. package/dist/services/triggers/trigger-child-order.schemas.js +23 -18
  291. package/dist/services/triggers/trigger-child-order.schemas.js.map +1 -1
  292. package/dist/services/triggers/trigger-input.schemas.d.ts +291 -28
  293. package/dist/services/triggers/trigger-input.schemas.d.ts.map +1 -1
  294. package/dist/services/triggers/trigger-input.schemas.js +38 -22
  295. package/dist/services/triggers/trigger-input.schemas.js.map +1 -1
  296. package/dist/services/triggers/triggers-output.schemas.d.ts +183 -59
  297. package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
  298. package/dist/services/triggers/triggers-output.schemas.js +28 -20
  299. package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
  300. package/dist/services/triggers/triggers.codecs.js +66 -3
  301. package/dist/services/triggers/triggers.codecs.js.map +1 -1
  302. package/dist/services/triggers/triggers.d.ts +6 -2
  303. package/dist/services/triggers/triggers.d.ts.map +1 -1
  304. package/dist/services/triggers/triggers.js +10 -8
  305. package/dist/services/triggers/triggers.js.map +1 -1
  306. package/dist/services/vip/vip.js +1 -1
  307. package/dist/services/vip/vip.schemas.d.ts +23 -1
  308. package/dist/services/vip/vip.schemas.d.ts.map +1 -1
  309. package/dist/services/vip/vip.schemas.js +20 -2
  310. package/dist/services/vip/vip.schemas.js.map +1 -1
  311. package/dist/services/vip/vip.types.d.ts +2 -2
  312. package/dist/shared/catalog-config.d.ts +14 -2
  313. package/dist/shared/catalog-config.d.ts.map +1 -1
  314. package/dist/shared/catalog-config.js +2 -1
  315. package/dist/shared/catalog-config.js.map +1 -1
  316. package/dist/shared/connect-error-mapping.d.ts +3 -0
  317. package/dist/shared/connect-error-mapping.d.ts.map +1 -1
  318. package/dist/shared/connect-error-mapping.js +45 -6
  319. package/dist/shared/connect-error-mapping.js.map +1 -1
  320. package/dist/shared/errors.d.ts +79 -6
  321. package/dist/shared/errors.d.ts.map +1 -1
  322. package/dist/shared/errors.js +92 -4
  323. package/dist/shared/errors.js.map +1 -1
  324. package/dist/shared/rate-limit.schemas.d.ts +1 -1
  325. package/dist/shared/request-options.d.ts +7 -0
  326. package/dist/shared/request-options.d.ts.map +1 -1
  327. package/dist/shared/request-options.js +6 -1
  328. package/dist/shared/request-options.js.map +1 -1
  329. package/dist/shared/schemas.js +1 -1
  330. package/dist/shared/subscription-errors.js +12 -1
  331. package/dist/shared/subscription-errors.js.map +1 -1
  332. package/dist/shared/transports.d.ts.map +1 -1
  333. package/dist/shared/transports.js +9 -2
  334. package/dist/shared/transports.js.map +1 -1
  335. package/dist/shared/wire-bounds.js +3 -1
  336. package/dist/shared/wire-bounds.js.map +1 -1
  337. package/dist/smart-account/index.d.ts +2 -1
  338. package/dist/smart-account/index.js +2 -1
  339. package/dist/smart-account/smart-account.d.ts +5 -4
  340. package/dist/smart-account/smart-account.d.ts.map +1 -1
  341. package/dist/smart-account/smart-account.js +37 -8
  342. package/dist/smart-account/smart-account.js.map +1 -1
  343. package/dist/utils/numbers.js +4 -1
  344. package/dist/utils/numbers.js.map +1 -1
  345. package/dist/wired-services.js +5 -5
  346. package/dist/wired-services.js.map +1 -1
  347. package/package.json +9 -4
  348. package/dist/gen/collab/v1/whiteboard_pb.d.ts +0 -829
  349. package/dist/gen/collab/v1/whiteboard_pb.d.ts.map +0 -1
  350. package/dist/gen/collab/v1/whiteboard_pb.js +0 -250
  351. package/dist/gen/collab/v1/whiteboard_pb.js.map +0 -1
  352. package/dist/gen/layout/v1/layout_pb.d.ts +0 -1289
  353. package/dist/gen/layout/v1/layout_pb.d.ts.map +0 -1
  354. package/dist/gen/layout/v1/layout_pb.js +0 -313
  355. package/dist/gen/layout/v1/layout_pb.js.map +0 -1
  356. package/dist/gen/polychart/events/v1/polychart_events_pb.d.ts +0 -192
  357. package/dist/gen/polychart/events/v1/polychart_events_pb.d.ts.map +0 -1
  358. package/dist/gen/polychart/events/v1/polychart_events_pb.js +0 -57
  359. package/dist/gen/polychart/events/v1/polychart_events_pb.js.map +0 -1
  360. package/dist/gen/polychart/v1/polychart_pb.d.ts +0 -1208
  361. package/dist/gen/polychart/v1/polychart_pb.d.ts.map +0 -1
  362. package/dist/gen/polychart/v1/polychart_pb.js +0 -244
  363. package/dist/gen/polychart/v1/polychart_pb.js.map +0 -1
  364. package/dist/services/whiteboard/service.d.ts +0 -8
  365. package/dist/services/whiteboard/service.d.ts.map +0 -1
  366. package/dist/services/whiteboard/service.js +0 -9
  367. package/dist/services/whiteboard/service.js.map +0 -1
  368. package/dist/services/whiteboard/whiteboard.codecs.js +0 -55
  369. package/dist/services/whiteboard/whiteboard.codecs.js.map +0 -1
  370. package/dist/services/whiteboard/whiteboard.d.ts +0 -42
  371. package/dist/services/whiteboard/whiteboard.d.ts.map +0 -1
  372. package/dist/services/whiteboard/whiteboard.js +0 -76
  373. package/dist/services/whiteboard/whiteboard.js.map +0 -1
  374. package/dist/services/whiteboard/whiteboard.schemas.d.ts +0 -771
  375. package/dist/services/whiteboard/whiteboard.schemas.d.ts.map +0 -1
  376. package/dist/services/whiteboard/whiteboard.schemas.js +0 -132
  377. package/dist/services/whiteboard/whiteboard.schemas.js.map +0 -1
  378. package/dist/services/whiteboard/whiteboard.types.d.ts +0 -2
@@ -0,0 +1,36 @@
1
+ import "../../gen/checkpoints/v1/checkpoints_pb.js";
2
+ //#region src/services/checkpoints/checkpoints.codecs.ts
3
+ const CheckpointBadgeCodec = { protoToOutput: {
4
+ [0]: "unspecified",
5
+ [1]: "first_trade",
6
+ [2]: "seven_day_streak",
7
+ [3]: "three_markets",
8
+ [4]: "volume_1000_usd",
9
+ [5]: "hundred_trades",
10
+ [6]: "ten_markets",
11
+ [7]: "thirty_day_streak",
12
+ [8]: "every_order_tool"
13
+ } };
14
+ const CheckpointFieldCodec = { protoToOutput: {
15
+ [0]: "unspecified",
16
+ [1]: "volume",
17
+ [2]: "top_pairs",
18
+ [3]: "order_types",
19
+ [4]: "time_in_force",
20
+ [5]: "order_status",
21
+ [6]: "tools",
22
+ [7]: "median_limit_rest",
23
+ [8]: "deposits",
24
+ [9]: "withdrawals",
25
+ [10]: "internal_transfers",
26
+ [11]: "daily_claim_amounts",
27
+ [12]: "portfolio_value",
28
+ [13]: "trading_balances",
29
+ [14]: "funding_balances",
30
+ [15]: "transfers",
31
+ [16]: "season_result"
32
+ } };
33
+ //#endregion
34
+ export { CheckpointBadgeCodec, CheckpointFieldCodec };
35
+
36
+ //# sourceMappingURL=checkpoints.codecs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkpoints.codecs.js","names":[],"sources":["../../../src/services/checkpoints/checkpoints.codecs.ts"],"sourcesContent":["import * as Proto from \"../../gen/checkpoints/v1/checkpoints_pb.js\";\nimport type { ProtoToOutput } from \"../../utils/types.js\";\n\nexport const CHECKPOINT_BADGE_VALUES = [\n \"unspecified\",\n \"first_trade\",\n \"seven_day_streak\",\n \"three_markets\",\n \"volume_1000_usd\",\n \"hundred_trades\",\n \"ten_markets\",\n \"thirty_day_streak\",\n \"every_order_tool\",\n] as const;\nexport type CheckpointBadge = (typeof CHECKPOINT_BADGE_VALUES)[number];\n\nexport const CHECKPOINT_FIELD_VALUES = [\n \"unspecified\",\n \"volume\",\n \"top_pairs\",\n \"order_types\",\n \"time_in_force\",\n \"order_status\",\n \"tools\",\n \"median_limit_rest\",\n \"deposits\",\n \"withdrawals\",\n \"internal_transfers\",\n \"daily_claim_amounts\",\n \"portfolio_value\",\n \"trading_balances\",\n \"funding_balances\",\n \"transfers\",\n \"season_result\",\n] as const;\nexport type CheckpointField = (typeof CHECKPOINT_FIELD_VALUES)[number];\n\nexport const CheckpointBadgeCodec = {\n protoToOutput: {\n [Proto.CheckpointBadge.BADGE_UNSPECIFIED]: \"unspecified\",\n [Proto.CheckpointBadge.FIRST_TRADE]: \"first_trade\",\n [Proto.CheckpointBadge.SEVEN_DAY_STREAK]: \"seven_day_streak\",\n [Proto.CheckpointBadge.THREE_MARKETS]: \"three_markets\",\n [Proto.CheckpointBadge.VOLUME_1000_USD]: \"volume_1000_usd\",\n [Proto.CheckpointBadge.HUNDRED_TRADES]: \"hundred_trades\",\n [Proto.CheckpointBadge.TEN_MARKETS]: \"ten_markets\",\n [Proto.CheckpointBadge.THIRTY_DAY_STREAK]: \"thirty_day_streak\",\n [Proto.CheckpointBadge.EVERY_ORDER_TOOL]: \"every_order_tool\",\n } satisfies ProtoToOutput<Proto.CheckpointBadge, CheckpointBadge>,\n} as const;\n\nexport const CheckpointFieldCodec = {\n protoToOutput: {\n [Proto.CheckpointField.FIELD_UNSPECIFIED]: \"unspecified\",\n [Proto.CheckpointField.VOLUME]: \"volume\",\n [Proto.CheckpointField.TOP_PAIRS]: \"top_pairs\",\n [Proto.CheckpointField.ORDER_TYPES]: \"order_types\",\n [Proto.CheckpointField.TIME_IN_FORCE]: \"time_in_force\",\n [Proto.CheckpointField.ORDER_STATUS]: \"order_status\",\n [Proto.CheckpointField.TOOLS]: \"tools\",\n [Proto.CheckpointField.MEDIAN_LIMIT_REST]: \"median_limit_rest\",\n [Proto.CheckpointField.DEPOSITS]: \"deposits\",\n [Proto.CheckpointField.WITHDRAWALS]: \"withdrawals\",\n [Proto.CheckpointField.INTERNAL_TRANSFERS]: \"internal_transfers\",\n [Proto.CheckpointField.DAILY_CLAIM_AMOUNTS]: \"daily_claim_amounts\",\n [Proto.CheckpointField.PORTFOLIO_VALUE]: \"portfolio_value\",\n [Proto.CheckpointField.TRADING_BALANCES]: \"trading_balances\",\n [Proto.CheckpointField.FUNDING_BALANCES]: \"funding_balances\",\n [Proto.CheckpointField.TRANSFERS]: \"transfers\",\n [Proto.CheckpointField.SEASON_RESULT]: \"season_result\",\n } satisfies ProtoToOutput<Proto.CheckpointField, CheckpointField>,\n} as const;\n"],"mappings":";;AAqCA,MAAa,uBAAuB,EAChC,eAAe;EACgC,IAAA;EACN,IAAA;EACK,IAAA;EACH,IAAA;EACE,IAAA;EACD,IAAA;EACH,IAAA;EACM,IAAA;EACD,IAAA;AAC9C,EACJ;AAEA,MAAa,uBAAuB,EAChC,eAAe;EACgC,IAAA;EACX,IAAA;EACG,IAAA;EACE,IAAA;EACE,IAAA;EACD,IAAA;EACP,IAAA;EACY,IAAA;EACT,IAAA;EACG,IAAA;EACO,KAAA;EACC,KAAA;EACJ,KAAA;EACC,KAAA;EACA,KAAA;EACP,KAAA;EACI,KAAA;AAC3C,EACJ"}
@@ -0,0 +1,22 @@
1
+ import { AuthApiTransports } from "../../shared/transports.js";
2
+ import { PolyesterRequestOptions } from "../../shared/request-options.js";
3
+ import { Checkpoint, ListCheckpointsInput } from "./checkpoints.schemas.js";
4
+ //#region src/services/checkpoints/checkpoints.d.ts
5
+ /**
6
+ * Reads the signed-in account's frozen testnet season recaps. The server accepts session JWTs
7
+ * for this service; API keys are refused with `PERMISSION_DENIED`.
8
+ */
9
+ declare class CheckpointsService {
10
+ #private;
11
+ constructor(transports: AuthApiTransports);
12
+ /**
13
+ * Lists every checkpoint of the signed-in root account, newest first, at most one per duration.
14
+ * A checkpoint covers the root account and all of its subaccounts, so `subaccountId` resolves
15
+ * to its root account, which must be the caller's own. An account without checkpoints gets an
16
+ * empty list.
17
+ */
18
+ list(input?: ListCheckpointsInput, options?: PolyesterRequestOptions): Promise<Checkpoint[]>;
19
+ }
20
+ //#endregion
21
+ export { CheckpointsService };
22
+ //# sourceMappingURL=checkpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkpoints.d.ts","names":[],"sources":["../../../src/services/checkpoints/checkpoints.ts"],"mappings":";;;;;;;;cAmBa;;EAGG,YAAA,YAAY;;;;;;;EAUlB,KACF,QAAO,sBACP,UAAU,0BACX,QAAQ"}
@@ -0,0 +1,31 @@
1
+ import { parse } from "../../shared/validation.js";
2
+ import { toConnectCallOptions } from "../../shared/request-options.js";
3
+ import { CheckpointService } from "../../gen/checkpoints/v1/checkpoints_pb.js";
4
+ import { ListCheckpointsInputSchema, ListCheckpointsResultSchema } from "./checkpoints.schemas.js";
5
+ import { createClient } from "@connectrpc/connect";
6
+ //#region src/services/checkpoints/checkpoints.ts
7
+ /**
8
+ * Reads the signed-in account's frozen testnet season recaps. The server accepts session JWTs
9
+ * for this service; API keys are refused with `PERMISSION_DENIED`.
10
+ */
11
+ var CheckpointsService = class {
12
+ #client;
13
+ constructor(transports) {
14
+ this.#client = createClient(CheckpointService, transports.authApi);
15
+ }
16
+ /**
17
+ * Lists every checkpoint of the signed-in root account, newest first, at most one per duration.
18
+ * A checkpoint covers the root account and all of its subaccounts, so `subaccountId` resolves
19
+ * to its root account, which must be the caller's own. An account without checkpoints gets an
20
+ * empty list.
21
+ */
22
+ async list(input = {}, options) {
23
+ const { subaccountId } = parse(ListCheckpointsInputSchema, input);
24
+ const response = await this.#client.listMyCheckpoints({ subaccountId }, toConnectCallOptions(options));
25
+ return parse(ListCheckpointsResultSchema, response).checkpoints;
26
+ }
27
+ };
28
+ //#endregion
29
+ export { CheckpointsService };
30
+
31
+ //# sourceMappingURL=checkpoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkpoints.js","names":["#client","Proto.CheckpointService"],"sources":["../../../src/services/checkpoints/checkpoints.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/checkpoints/v1/checkpoints_pb.js\";\nimport {\n toConnectCallOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n ListCheckpointsInputSchema,\n ListCheckpointsResultSchema,\n type Checkpoint,\n type ListCheckpointsInput,\n} from \"./checkpoints.schemas.js\";\n\n/**\n * Reads the signed-in account's frozen testnet season recaps. The server accepts session JWTs\n * for this service; API keys are refused with `PERMISSION_DENIED`.\n */\nexport class CheckpointsService {\n #client: Client<typeof Proto.CheckpointService>;\n\n constructor(transports: AuthApiTransports) {\n this.#client = createClient(Proto.CheckpointService, transports.authApi);\n }\n\n /**\n * Lists every checkpoint of the signed-in root account, newest first, at most one per duration.\n * A checkpoint covers the root account and all of its subaccounts, so `subaccountId` resolves\n * to its root account, which must be the caller's own. An account without checkpoints gets an\n * empty list.\n */\n async list(\n input: ListCheckpointsInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<Checkpoint[]> {\n const { subaccountId } = parse(ListCheckpointsInputSchema, input);\n const response = await this.#client.listMyCheckpoints(\n { subaccountId },\n toConnectCallOptions(options),\n );\n return parse(ListCheckpointsResultSchema, response).checkpoints;\n }\n}\n"],"mappings":";;;;;;;;;;AAmBA,IAAa,qBAAb,MAAgC;CAC5B;CAEA,YAAY,YAA+B;EACvC,KAAKA,UAAU,aAAaC,mBAAyB,WAAW,OAAO;CAC3E;;;;;;;CAQA,MAAM,KACF,QAA8B,CAAC,GAC/B,SACqB;EACrB,MAAM,EAAE,iBAAiB,MAAM,4BAA4B,KAAK;EAChE,MAAM,WAAW,MAAM,KAAKD,QAAQ,kBAChC,EAAE,aAAa,GACf,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,6BAA6B,QAAQ,CAAC,CAAC;CACxD;AACJ"}
@@ -0,0 +1,437 @@
1
+ import * as v from "valibot";
2
+ //#region src/services/checkpoints/checkpoints.schemas.d.ts
3
+ declare const CheckpointVolumePointSchema: v.ObjectSchema<{
4
+ readonly day: v.SchemaWithPipe<readonly [v.ObjectSchema<{
5
+ readonly seconds: v.BigintSchema<undefined>;
6
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
7
+ }, undefined>, v.TransformAction<{
8
+ seconds: bigint;
9
+ nanos: number;
10
+ }, number>]>;
11
+ readonly usd: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
12
+ readonly approximate: v.BooleanSchema<undefined>;
13
+ readonly trades: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
14
+ }, undefined>;
15
+ type CheckpointVolumePoint = v.InferOutput<typeof CheckpointVolumePointSchema>;
16
+ declare const CheckpointPortfolioValuePointSchema: v.ObjectSchema<{
17
+ readonly hour: v.SchemaWithPipe<readonly [v.ObjectSchema<{
18
+ readonly seconds: v.BigintSchema<undefined>;
19
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
20
+ }, undefined>, v.TransformAction<{
21
+ seconds: bigint;
22
+ nanos: number;
23
+ }, number>]>;
24
+ readonly usd: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
25
+ readonly approximate: v.BooleanSchema<undefined>;
26
+ }, undefined>;
27
+ type CheckpointPortfolioValuePoint = v.InferOutput<typeof CheckpointPortfolioValuePointSchema>;
28
+ declare const CheckpointPairActivitySchema: v.ObjectSchema<{
29
+ readonly symbolId: v.NumberSchema<undefined>;
30
+ readonly symbol: v.StringSchema<undefined>;
31
+ readonly volumeUsd: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
32
+ readonly trades: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
33
+ }, undefined>;
34
+ type CheckpointPairActivity = v.InferOutput<typeof CheckpointPairActivitySchema>;
35
+ declare const CheckpointBiggestTradeSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
36
+ readonly symbolId: v.NumberSchema<undefined>;
37
+ readonly symbol: v.StringSchema<undefined>;
38
+ readonly side: v.NumberSchema<undefined>;
39
+ readonly at: v.SchemaWithPipe<readonly [v.ObjectSchema<{
40
+ readonly seconds: v.BigintSchema<undefined>;
41
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
42
+ }, undefined>, v.TransformAction<{
43
+ seconds: bigint;
44
+ nanos: number;
45
+ }, number>]>;
46
+ }, undefined>, v.TransformAction<{
47
+ symbolId: number;
48
+ symbol: string;
49
+ side: number;
50
+ at: number;
51
+ }, {
52
+ side: "buy" | "sell" | "unspecified";
53
+ symbolId: number;
54
+ symbol: string;
55
+ at: number;
56
+ }>]>;
57
+ type CheckpointBiggestTrade = v.InferOutput<typeof CheckpointBiggestTradeSchema>;
58
+ declare const CheckpointOrderTypeCountsSchema: v.ObjectSchema<{
59
+ readonly limit: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
60
+ readonly market: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
61
+ }, undefined>;
62
+ type CheckpointOrderTypeCounts = v.InferOutput<typeof CheckpointOrderTypeCountsSchema>;
63
+ declare const CheckpointTimeInForceCountsSchema: v.ObjectSchema<{
64
+ readonly gtc: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
65
+ readonly ioc: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
66
+ readonly fok: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
67
+ readonly gtd: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
68
+ }, undefined>;
69
+ type CheckpointTimeInForceCounts = v.InferOutput<typeof CheckpointTimeInForceCountsSchema>;
70
+ declare const CheckpointOrderToolCountsSchema: v.ObjectSchema<{
71
+ readonly stopLoss: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
72
+ readonly takeProfit: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
73
+ readonly trailingStop: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
74
+ readonly twap: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
75
+ readonly ladder: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
76
+ }, undefined>;
77
+ type CheckpointOrderToolCounts = v.InferOutput<typeof CheckpointOrderToolCountsSchema>;
78
+ declare const CheckpointVipTierChangeSchema: v.ObjectSchema<{
79
+ readonly date: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
80
+ readonly tier: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 10, undefined>]>;
81
+ }, undefined>;
82
+ type CheckpointVipTierChange = v.InferOutput<typeof CheckpointVipTierChangeSchema>;
83
+ declare const CheckpointEarnedBadgeSchema: v.ObjectSchema<{
84
+ readonly badge: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "first_trade" | "seven_day_streak" | "three_markets" | "volume_1000_usd" | "hundred_trades" | "ten_markets" | "thirty_day_streak" | "every_order_tool">]>;
85
+ readonly earnedAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
86
+ readonly seconds: v.BigintSchema<undefined>;
87
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
88
+ }, undefined>, v.TransformAction<{
89
+ seconds: bigint;
90
+ nanos: number;
91
+ }, number>]>;
92
+ }, undefined>;
93
+ type CheckpointEarnedBadge = v.InferOutput<typeof CheckpointEarnedBadgeSchema>;
94
+ /**
95
+ * `usd` is `undefined` when the asset had no USD price at the required time; it is not zero.
96
+ * `excludedFromValue` marks an asset that is not account equity, such as a testnet faucet
97
+ * token: it is listed by amount only, never has `usd`, and is left out of every USD total.
98
+ */
99
+ declare const CheckpointAssetAmountSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
100
+ readonly asset: v.StringSchema<undefined>;
101
+ readonly amount: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
102
+ readonly usd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
103
+ readonly excludedFromValue: v.BooleanSchema<undefined>;
104
+ }, undefined>, v.CheckAction<{
105
+ asset: string;
106
+ amount: string;
107
+ usd?: string | undefined;
108
+ excludedFromValue: boolean;
109
+ }, "usd: must be absent for an asset excluded from value">]>;
110
+ type CheckpointAssetAmount = v.InferOutput<typeof CheckpointAssetAmountSchema>;
111
+ /** `usd` is `undefined` when any operation had no USD value; it is not zero. */
112
+ declare const CheckpointFlowTotalSchema: v.ObjectSchema<{
113
+ readonly count: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
114
+ readonly usd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
115
+ }, undefined>;
116
+ type CheckpointFlowTotal = v.InferOutput<typeof CheckpointFlowTotalSchema>;
117
+ declare const CheckpointChainFlowSchema: v.ObjectSchema<{
118
+ readonly polyesterChainId: v.NumberSchema<undefined>;
119
+ readonly chainName: v.StringSchema<undefined>;
120
+ readonly total: v.OptionalSchema<v.ObjectSchema<{
121
+ readonly count: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
122
+ readonly usd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
123
+ }, undefined>, {
124
+ count: bigint;
125
+ }>;
126
+ }, undefined>;
127
+ type CheckpointChainFlow = v.InferOutput<typeof CheckpointChainFlowSchema>;
128
+ declare const CheckpointFundingFlowSummarySchema: v.ObjectSchema<{
129
+ readonly count: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
130
+ readonly chains: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
131
+ readonly polyesterChainId: v.NumberSchema<undefined>;
132
+ readonly chainName: v.StringSchema<undefined>;
133
+ readonly total: v.OptionalSchema<v.ObjectSchema<{
134
+ readonly count: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
135
+ readonly usd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
136
+ }, undefined>, {
137
+ count: bigint;
138
+ }>;
139
+ }, undefined>, undefined>, readonly []>;
140
+ readonly amounts: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
141
+ readonly asset: v.StringSchema<undefined>;
142
+ readonly amount: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
143
+ readonly usd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
144
+ readonly excludedFromValue: v.BooleanSchema<undefined>;
145
+ }, undefined>, v.CheckAction<{
146
+ asset: string;
147
+ amount: string;
148
+ usd?: string | undefined;
149
+ excludedFromValue: boolean;
150
+ }, "usd: must be absent for an asset excluded from value">]>, undefined>, readonly []>;
151
+ }, undefined>;
152
+ type CheckpointFundingFlowSummary = v.InferOutput<typeof CheckpointFundingFlowSummarySchema>;
153
+ declare const CheckpointFundingDaySchema: v.ObjectSchema<{
154
+ readonly date: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
155
+ readonly depositUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
156
+ readonly withdrawalUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
157
+ }, undefined>;
158
+ type CheckpointFundingDay = v.InferOutput<typeof CheckpointFundingDaySchema>;
159
+ declare const CheckpointSchema: v.ObjectSchema<{
160
+ readonly number: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
161
+ readonly seasonStart: v.SchemaWithPipe<readonly [v.ObjectSchema<{
162
+ readonly seconds: v.BigintSchema<undefined>;
163
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
164
+ }, undefined>, v.TransformAction<{
165
+ seconds: bigint;
166
+ nanos: number;
167
+ }, number>]>;
168
+ readonly seasonEnd: v.SchemaWithPipe<readonly [v.ObjectSchema<{
169
+ readonly seconds: v.BigintSchema<undefined>;
170
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
171
+ }, undefined>, v.TransformAction<{
172
+ seconds: bigint;
173
+ nanos: number;
174
+ }, number>]>;
175
+ readonly takenAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
176
+ readonly seconds: v.BigintSchema<undefined>;
177
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
178
+ }, undefined>, v.TransformAction<{
179
+ seconds: bigint;
180
+ nanos: number;
181
+ }, number>]>;
182
+ readonly volumeUsd: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
183
+ readonly trades: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
184
+ readonly orders: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
185
+ readonly daysActive: v.NumberSchema<undefined>;
186
+ readonly longestStreak: v.NumberSchema<undefined>;
187
+ readonly topPairs: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
188
+ readonly symbolId: v.NumberSchema<undefined>;
189
+ readonly symbol: v.StringSchema<undefined>;
190
+ readonly volumeUsd: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
191
+ readonly trades: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
192
+ }, undefined>, undefined>, readonly []>;
193
+ readonly marketsTraded: v.NumberSchema<undefined>;
194
+ readonly makerTrades: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
195
+ readonly takerTrades: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
196
+ readonly selfTrades: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
197
+ readonly tradesByWeekdayHour: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
198
+ readonly hours: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>, undefined>, v.LengthAction<number[], 24, undefined>]>;
199
+ }, undefined>, v.TransformAction<{
200
+ hours: number[];
201
+ }, number[]>]>, undefined>, v.LengthAction<number[][], 7, undefined>]>;
202
+ readonly dailyVolume: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
203
+ readonly day: v.SchemaWithPipe<readonly [v.ObjectSchema<{
204
+ readonly seconds: v.BigintSchema<undefined>;
205
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
206
+ }, undefined>, v.TransformAction<{
207
+ seconds: bigint;
208
+ nanos: number;
209
+ }, number>]>;
210
+ readonly usd: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
211
+ readonly approximate: v.BooleanSchema<undefined>;
212
+ readonly trades: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
213
+ }, undefined>, undefined>, readonly []>;
214
+ readonly biggestTradeUsd: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
215
+ readonly biggestTrade: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
216
+ readonly symbolId: v.NumberSchema<undefined>;
217
+ readonly symbol: v.StringSchema<undefined>;
218
+ readonly side: v.NumberSchema<undefined>;
219
+ readonly at: v.SchemaWithPipe<readonly [v.ObjectSchema<{
220
+ readonly seconds: v.BigintSchema<undefined>;
221
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
222
+ }, undefined>, v.TransformAction<{
223
+ seconds: bigint;
224
+ nanos: number;
225
+ }, number>]>;
226
+ }, undefined>, v.TransformAction<{
227
+ symbolId: number;
228
+ symbol: string;
229
+ side: number;
230
+ at: number;
231
+ }, {
232
+ side: "buy" | "sell" | "unspecified";
233
+ symbolId: number;
234
+ symbol: string;
235
+ at: number;
236
+ }>]>, undefined>;
237
+ readonly orderTypes: v.OptionalSchema<v.ObjectSchema<{
238
+ readonly limit: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
239
+ readonly market: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
240
+ }, undefined>, {
241
+ readonly limit: 0n;
242
+ readonly market: 0n;
243
+ }>;
244
+ readonly timeInForce: v.OptionalSchema<v.ObjectSchema<{
245
+ readonly gtc: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
246
+ readonly ioc: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
247
+ readonly fok: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
248
+ readonly gtd: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
249
+ }, undefined>, {
250
+ readonly gtc: 0n;
251
+ readonly ioc: 0n;
252
+ readonly fok: 0n;
253
+ readonly gtd: 0n;
254
+ }>;
255
+ readonly tools: v.OptionalSchema<v.ObjectSchema<{
256
+ readonly stopLoss: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
257
+ readonly takeProfit: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
258
+ readonly trailingStop: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
259
+ readonly twap: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
260
+ readonly ladder: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
261
+ }, undefined>, {
262
+ readonly stopLoss: 0n;
263
+ readonly takeProfit: 0n;
264
+ readonly trailingStop: 0n;
265
+ readonly twap: 0n;
266
+ readonly ladder: 0n;
267
+ }>;
268
+ readonly postOnly: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
269
+ readonly amends: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
270
+ readonly filledOrders: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
271
+ readonly partiallyFilledOrders: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
272
+ readonly canceledOrders: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
273
+ readonly rejectedOrders: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
274
+ readonly fillRate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
275
+ readonly cancelRatio: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
276
+ readonly medianLimitRestMs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>, undefined>;
277
+ readonly firstTradeAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
278
+ readonly seconds: v.BigintSchema<undefined>;
279
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
280
+ }, undefined>, undefined>, v.TransformAction<{
281
+ seconds: bigint;
282
+ nanos: number;
283
+ } | undefined, number | undefined>]>;
284
+ readonly busiestDay: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
285
+ readonly mostActiveHourUtc: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 23, undefined>]>, undefined>;
286
+ readonly vipTierAtCheckpoint: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 10, undefined>]>;
287
+ readonly peakVipTier: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 10, undefined>]>;
288
+ readonly vipTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
289
+ readonly date: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
290
+ readonly tier: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 10, undefined>]>;
291
+ }, undefined>, undefined>, readonly []>;
292
+ readonly badges: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
293
+ readonly badge: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "first_trade" | "seven_day_streak" | "three_markets" | "volume_1000_usd" | "hundred_trades" | "ten_markets" | "thirty_day_streak" | "every_order_tool">]>;
294
+ readonly earnedAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
295
+ readonly seconds: v.BigintSchema<undefined>;
296
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
297
+ }, undefined>, v.TransformAction<{
298
+ seconds: bigint;
299
+ nanos: number;
300
+ }, number>]>;
301
+ }, undefined>, undefined>, readonly []>;
302
+ readonly portfolioValue: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
303
+ readonly hour: v.SchemaWithPipe<readonly [v.ObjectSchema<{
304
+ readonly seconds: v.BigintSchema<undefined>;
305
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
306
+ }, undefined>, v.TransformAction<{
307
+ seconds: bigint;
308
+ nanos: number;
309
+ }, number>]>;
310
+ readonly usd: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
311
+ readonly approximate: v.BooleanSchema<undefined>;
312
+ }, undefined>, undefined>, readonly []>;
313
+ readonly tradingBalances: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
314
+ readonly asset: v.StringSchema<undefined>;
315
+ readonly amount: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
316
+ readonly usd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
317
+ readonly excludedFromValue: v.BooleanSchema<undefined>;
318
+ }, undefined>, v.CheckAction<{
319
+ asset: string;
320
+ amount: string;
321
+ usd?: string | undefined;
322
+ excludedFromValue: boolean;
323
+ }, "usd: must be absent for an asset excluded from value">]>, undefined>, readonly []>;
324
+ readonly fundingBalances: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
325
+ readonly asset: v.StringSchema<undefined>;
326
+ readonly amount: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
327
+ readonly usd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
328
+ readonly excludedFromValue: v.BooleanSchema<undefined>;
329
+ }, undefined>, v.CheckAction<{
330
+ asset: string;
331
+ amount: string;
332
+ usd?: string | undefined;
333
+ excludedFromValue: boolean;
334
+ }, "usd: must be absent for an asset excluded from value">]>, undefined>, readonly []>;
335
+ readonly deposits: v.OptionalSchema<v.ObjectSchema<{
336
+ readonly count: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
337
+ readonly chains: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
338
+ readonly polyesterChainId: v.NumberSchema<undefined>;
339
+ readonly chainName: v.StringSchema<undefined>;
340
+ readonly total: v.OptionalSchema<v.ObjectSchema<{
341
+ readonly count: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
342
+ readonly usd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
343
+ }, undefined>, {
344
+ count: bigint;
345
+ }>;
346
+ }, undefined>, undefined>, readonly []>;
347
+ readonly amounts: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
348
+ readonly asset: v.StringSchema<undefined>;
349
+ readonly amount: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
350
+ readonly usd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
351
+ readonly excludedFromValue: v.BooleanSchema<undefined>;
352
+ }, undefined>, v.CheckAction<{
353
+ asset: string;
354
+ amount: string;
355
+ usd?: string | undefined;
356
+ excludedFromValue: boolean;
357
+ }, "usd: must be absent for an asset excluded from value">]>, undefined>, readonly []>;
358
+ }, undefined>, {
359
+ count: bigint;
360
+ }>;
361
+ readonly withdrawals: v.OptionalSchema<v.ObjectSchema<{
362
+ readonly count: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
363
+ readonly chains: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
364
+ readonly polyesterChainId: v.NumberSchema<undefined>;
365
+ readonly chainName: v.StringSchema<undefined>;
366
+ readonly total: v.OptionalSchema<v.ObjectSchema<{
367
+ readonly count: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
368
+ readonly usd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
369
+ }, undefined>, {
370
+ count: bigint;
371
+ }>;
372
+ }, undefined>, undefined>, readonly []>;
373
+ readonly amounts: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
374
+ readonly asset: v.StringSchema<undefined>;
375
+ readonly amount: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
376
+ readonly usd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
377
+ readonly excludedFromValue: v.BooleanSchema<undefined>;
378
+ }, undefined>, v.CheckAction<{
379
+ asset: string;
380
+ amount: string;
381
+ usd?: string | undefined;
382
+ excludedFromValue: boolean;
383
+ }, "usd: must be absent for an asset excluded from value">]>, undefined>, readonly []>;
384
+ }, undefined>, {
385
+ count: bigint;
386
+ }>;
387
+ readonly fundingByDay: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
388
+ readonly date: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
389
+ readonly depositUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
390
+ readonly withdrawalUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
391
+ }, undefined>, undefined>, readonly []>;
392
+ readonly transfersIn: v.OptionalSchema<v.ObjectSchema<{
393
+ readonly count: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
394
+ readonly usd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
395
+ }, undefined>, {
396
+ count: bigint;
397
+ }>;
398
+ readonly transfersOut: v.OptionalSchema<v.ObjectSchema<{
399
+ readonly count: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
400
+ readonly usd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
401
+ }, undefined>, {
402
+ count: bigint;
403
+ }>;
404
+ readonly internalTransfers: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
405
+ readonly dailyClaims: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
406
+ readonly dailyClaimAmounts: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
407
+ readonly asset: v.StringSchema<undefined>;
408
+ readonly amount: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
409
+ readonly usd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
410
+ readonly excludedFromValue: v.BooleanSchema<undefined>;
411
+ }, undefined>, v.CheckAction<{
412
+ asset: string;
413
+ amount: string;
414
+ usd?: string | undefined;
415
+ excludedFromValue: boolean;
416
+ }, "usd: must be absent for an asset excluded from value">]>, undefined>, readonly []>;
417
+ readonly inflowUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
418
+ readonly outflowUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
419
+ readonly netInflowUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
420
+ readonly finalValueUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
421
+ readonly seasonResultUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
422
+ readonly subaccounts: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
423
+ /** Values computed from partial evidence; show them with an approximation marker. */
424
+ readonly incomplete: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "tools" | "deposits" | "withdrawals" | "volume" | "top_pairs" | "order_types" | "time_in_force" | "order_status" | "median_limit_rest" | "internal_transfers" | "daily_claim_amounts" | "portfolio_value" | "trading_balances" | "funding_balances" | "transfers" | "season_result">]>, undefined>, readonly []>;
425
+ }, undefined>;
426
+ /**
427
+ * One frozen season recap of a root account and all of its subaccounts. An absent USD value
428
+ * means the value was unavailable, not zero.
429
+ */
430
+ type Checkpoint = v.InferOutput<typeof CheckpointSchema>;
431
+ declare const ListCheckpointsInputSchema: v.StrictObjectSchema<{
432
+ readonly subaccountId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, bigint | undefined>]>, v.CheckAction<bigint | undefined, "subaccountId: must be greater than zero">]>;
433
+ }, undefined>;
434
+ type ListCheckpointsInput = v.InferInput<typeof ListCheckpointsInputSchema>;
435
+ //#endregion
436
+ export { Checkpoint, CheckpointAssetAmount, CheckpointAssetAmountSchema, CheckpointBiggestTrade, CheckpointBiggestTradeSchema, CheckpointChainFlow, CheckpointChainFlowSchema, CheckpointEarnedBadge, CheckpointEarnedBadgeSchema, CheckpointFlowTotal, CheckpointFlowTotalSchema, CheckpointFundingDay, CheckpointFundingDaySchema, CheckpointFundingFlowSummary, CheckpointFundingFlowSummarySchema, CheckpointOrderToolCounts, CheckpointOrderToolCountsSchema, CheckpointOrderTypeCounts, CheckpointOrderTypeCountsSchema, CheckpointPairActivity, CheckpointPairActivitySchema, CheckpointPortfolioValuePoint, CheckpointPortfolioValuePointSchema, CheckpointSchema, CheckpointTimeInForceCounts, CheckpointTimeInForceCountsSchema, CheckpointVipTierChange, CheckpointVipTierChangeSchema, CheckpointVolumePoint, CheckpointVolumePointSchema, ListCheckpointsInput, ListCheckpointsInputSchema };
437
+ //# sourceMappingURL=checkpoints.schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkpoints.schemas.d.ts","names":[],"sources":["../../../src/services/checkpoints/checkpoints.schemas.ts"],"mappings":";;cA2Ba,6BAA2B,EAAA;;;;;;;;;;;;KAO5B,wBAAwB,EAAE,mBAAmB;cAE5C,qCAAmC,EAAA;;;;;;;;;;;KAMpC,gCAAgC,EAAE,mBACnC;cAcE,8BAA4B,EAAA;;;;;;KAO7B,yBAAyB,EAAE,mBAAmB;cAE7C,8BAA4B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;KAa7B,yBAAyB,EAAE,mBAAmB;cAE7C,iCAA+B,EAAA;;;;KAKhC,4BAA4B,EAAE,mBAAmB;cAEhD,mCAAiC,EAAA;;;;;;KAOlC,8BAA8B,EAAE,mBAAmB;cAElD,iCAA+B,EAAA;;;;;;;KAQhC,4BAA4B,EAAE,mBAAmB;cAEhD,+BAA6B,EAAA;;;;KAK9B,0BAA0B,EAAE,mBAAmB;cAE9C,6BAA2B,EAAA;;;;;;;;;;KAK5B,wBAAwB,EAAE,mBAAmB;;;;;;cAO5C,6BAA2B,EAAA,yBAAA,EAAA;;;;;;;;;;;KAa5B,wBAAwB,EAAE,mBAAmB;;cAG5C,2BAAyB,EAAA;;;;KAK1B,sBAAsB,EAAE,mBAAmB;cAI1C,2BAAyB,EAAA;;;;;;;;;;KAM1B,sBAAsB,EAAE,mBAAmB;cAE1C,oCAAkC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;KAMnC,+BAA+B,EAAE,mBAAmB;cAInD,4BAA0B,EAAA;;;;;KAM3B,uBAAuB,EAAE,mBAAmB;cAE3C,kBAAgB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0EjB,aAAa,EAAE,mBAAmB;cAOjC,4BAA0B,EAAA;;;KAO3B,uBAAuB,EAAE,kBAAkB"}