@polyester/sdk 0.36.0-devnet-20261117035807 → 0.36.0-devnet-20261118141710

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 (345) hide show
  1. package/CHANGELOG.md +66 -8
  2. package/dist/catalogs/index.d.ts +2 -2
  3. package/dist/catalogs/snapshot-validation.js +10 -1
  4. package/dist/catalogs/snapshot-validation.js.map +1 -1
  5. package/dist/catalogs/zipper-catalog.d.ts +2 -0
  6. package/dist/catalogs/zipper-catalog.d.ts.map +1 -1
  7. package/dist/catalogs/zipper-catalog.js.map +1 -1
  8. package/dist/catalogs/zipper-supply.d.ts +2 -0
  9. package/dist/catalogs/zipper-supply.d.ts.map +1 -1
  10. package/dist/catalogs/zipper-supply.js +7 -5
  11. package/dist/catalogs/zipper-supply.js.map +1 -1
  12. package/dist/client.d.ts +2 -0
  13. package/dist/client.d.ts.map +1 -1
  14. package/dist/client.js +2 -0
  15. package/dist/client.js.map +1 -1
  16. package/dist/gen/ai/v1/assistant_pb.d.ts +679 -13
  17. package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -1
  18. package/dist/gen/ai/v1/assistant_pb.js +355 -97
  19. package/dist/gen/ai/v1/assistant_pb.js.map +1 -1
  20. package/dist/gen/alerts/v1/price_alerts_pb.d.ts +33 -4
  21. package/dist/gen/alerts/v1/price_alerts_pb.d.ts.map +1 -1
  22. package/dist/gen/alerts/v1/price_alerts_pb.js +23 -2
  23. package/dist/gen/alerts/v1/price_alerts_pb.js.map +1 -1
  24. package/dist/gen/auth/v1/activity_pb.d.ts +148 -0
  25. package/dist/gen/auth/v1/activity_pb.d.ts.map +1 -0
  26. package/dist/gen/auth/v1/activity_pb.js +40 -0
  27. package/dist/gen/auth/v1/activity_pb.js.map +1 -0
  28. package/dist/gen/auth/v1/api_keys_pb.d.ts +10 -4
  29. package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
  30. package/dist/gen/auth/v1/api_keys_pb.js +3 -1
  31. package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
  32. package/dist/gen/auth/v1/auth_pb.d.ts +61 -5
  33. package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
  34. package/dist/gen/auth/v1/auth_pb.js +23 -6
  35. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  36. package/dist/gen/auth/v1/mfa_pb.d.ts +140 -2
  37. package/dist/gen/auth/v1/mfa_pb.d.ts.map +1 -1
  38. package/dist/gen/auth/v1/mfa_pb.js +80 -8
  39. package/dist/gen/auth/v1/mfa_pb.js.map +1 -1
  40. package/dist/gen/auth/v1/policies_pb.d.ts +18 -3
  41. package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
  42. package/dist/gen/auth/v1/policies_pb.js +18 -3
  43. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  44. package/dist/gen/auth/v1/social_verification_pb.d.ts +36 -15
  45. package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
  46. package/dist/gen/auth/v1/social_verification_pb.js +1 -1
  47. package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
  48. package/dist/gen/auth/v1/subaccounts_pb.d.ts +15 -1
  49. package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
  50. package/dist/gen/auth/v1/subaccounts_pb.js +1 -1
  51. package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
  52. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +6 -2
  53. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -1
  54. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
  55. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +104 -6
  56. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  57. package/dist/gen/chain/withdraw/v1/withdraw_pb.js +49 -3
  58. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  59. package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +76 -3
  60. package/dist/gen/chain/zipper/v1/zipper_pb.d.ts.map +1 -1
  61. package/dist/gen/chain/zipper/v1/zipper_pb.js +46 -2
  62. package/dist/gen/chain/zipper/v1/zipper_pb.js.map +1 -1
  63. package/dist/gen/index.d.ts +3 -1
  64. package/dist/gen/index.js +4 -2
  65. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +21 -139
  66. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts.map +1 -1
  67. package/dist/gen/ledger/read/v1/ledger_read_pb.js +16 -17
  68. package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
  69. package/dist/gen/ledger/read/v1/statement_export_pb.d.ts +236 -20
  70. package/dist/gen/ledger/read/v1/statement_export_pb.d.ts.map +1 -1
  71. package/dist/gen/ledger/read/v1/statement_export_pb.js +44 -10
  72. package/dist/gen/ledger/read/v1/statement_export_pb.js.map +1 -1
  73. package/dist/gen/ledger/v1/catalog_pb.d.ts +9 -1
  74. package/dist/gen/ledger/v1/catalog_pb.d.ts.map +1 -1
  75. package/dist/gen/ledger/v1/catalog_pb.js +9 -1
  76. package/dist/gen/ledger/v1/catalog_pb.js.map +1 -1
  77. package/dist/gen/marketdata/v1/asset_info_pb.d.ts +158 -7
  78. package/dist/gen/marketdata/v1/asset_info_pb.d.ts.map +1 -1
  79. package/dist/gen/marketdata/v1/asset_info_pb.js +56 -6
  80. package/dist/gen/marketdata/v1/asset_info_pb.js.map +1 -1
  81. package/dist/gen/notifications/v1/notifications_pb.d.ts +45 -6
  82. package/dist/gen/notifications/v1/notifications_pb.d.ts.map +1 -1
  83. package/dist/gen/notifications/v1/notifications_pb.js +23 -5
  84. package/dist/gen/notifications/v1/notifications_pb.js.map +1 -1
  85. package/dist/gen/orders/v1/orders_pb.d.ts +105 -29
  86. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  87. package/dist/gen/orders/v1/orders_pb.js +14 -2
  88. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  89. package/dist/gen/orders/v1/orders_read_pb.d.ts +50 -20
  90. package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
  91. package/dist/gen/orders/v1/orders_read_pb.js +1 -1
  92. package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
  93. package/dist/gen/polyester/api/options_pb.d.ts +11 -2
  94. package/dist/gen/polyester/api/options_pb.d.ts.map +1 -1
  95. package/dist/gen/polyester/api/options_pb.js +13 -3
  96. package/dist/gen/polyester/api/options_pb.js.map +1 -1
  97. package/dist/gen/privatews/v1/private_ws_pb.d.ts +13 -3
  98. package/dist/gen/privatews/v1/private_ws_pb.d.ts.map +1 -1
  99. package/dist/gen/privatews/v1/private_ws_pb.js.map +1 -1
  100. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +126 -10
  101. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
  102. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +14 -6
  103. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
  104. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts +665 -0
  105. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts.map +1 -0
  106. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js +216 -0
  107. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js.map +1 -0
  108. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +166 -52
  109. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  110. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +50 -12
  111. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  112. package/dist/gen/system/v1/system_pb.d.ts +49 -2
  113. package/dist/gen/system/v1/system_pb.d.ts.map +1 -1
  114. package/dist/gen/system/v1/system_pb.js +18 -6
  115. package/dist/gen/system/v1/system_pb.js.map +1 -1
  116. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +150 -71
  117. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
  118. package/dist/gen/transfer/v1/internal_transfer_pb.js +56 -34
  119. package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
  120. package/dist/gen/triggers/v1/triggers_pb.d.ts +117 -16
  121. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  122. package/dist/gen/triggers/v1/triggers_pb.js +45 -2
  123. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  124. package/dist/index.d.ts +13 -9
  125. package/dist/realtime/client.js +5 -1
  126. package/dist/realtime/client.js.map +1 -1
  127. package/dist/realtime/snapshot-then-stream.js +5 -3
  128. package/dist/realtime/snapshot-then-stream.js.map +1 -1
  129. package/dist/services/account-activity/account-activity.d.ts +22 -0
  130. package/dist/services/account-activity/account-activity.d.ts.map +1 -0
  131. package/dist/services/account-activity/account-activity.js +32 -0
  132. package/dist/services/account-activity/account-activity.js.map +1 -0
  133. package/dist/services/account-activity/account-activity.schemas.d.ts +78 -0
  134. package/dist/services/account-activity/account-activity.schemas.d.ts.map +1 -0
  135. package/dist/services/account-activity/account-activity.schemas.js +44 -0
  136. package/dist/services/account-activity/account-activity.schemas.js.map +1 -0
  137. package/dist/services/account-activity/account-activity.types.d.ts +2 -0
  138. package/dist/services/account-activity/service.d.ts +8 -0
  139. package/dist/services/account-activity/service.d.ts.map +1 -0
  140. package/dist/services/account-activity/service.js +9 -0
  141. package/dist/services/account-activity/service.js.map +1 -0
  142. package/dist/services/address-book/address-book.schemas.js +2 -2
  143. package/dist/services/api-keys/api-keys.schemas.js +2 -2
  144. package/dist/services/assistant/assistant-events.schemas.d.ts +81 -81
  145. package/dist/services/assistant/assistant.codecs.d.ts +7 -2
  146. package/dist/services/assistant/assistant.codecs.d.ts.map +1 -1
  147. package/dist/services/assistant/assistant.codecs.js +18 -2
  148. package/dist/services/assistant/assistant.codecs.js.map +1 -1
  149. package/dist/services/assistant/assistant.d.ts +29 -2
  150. package/dist/services/assistant/assistant.d.ts.map +1 -1
  151. package/dist/services/assistant/assistant.js +44 -2
  152. package/dist/services/assistant/assistant.js.map +1 -1
  153. package/dist/services/assistant/assistant.schemas.d.ts +111 -6
  154. package/dist/services/assistant/assistant.schemas.d.ts.map +1 -1
  155. package/dist/services/assistant/assistant.schemas.js +74 -6
  156. package/dist/services/assistant/assistant.schemas.js.map +1 -1
  157. package/dist/services/assistant/assistant.types.d.ts +3 -3
  158. package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts +3 -1
  159. package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts.map +1 -1
  160. package/dist/services/auto-withdraw/auto-withdraw.codecs.js.map +1 -1
  161. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +15 -13
  162. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -1
  163. package/dist/services/auto-withdraw/auto-withdraw.schemas.js +1 -0
  164. package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -1
  165. package/dist/services/balances/balances.d.ts +1 -13
  166. package/dist/services/balances/balances.d.ts.map +1 -1
  167. package/dist/services/balances/balances.js +1 -45
  168. package/dist/services/balances/balances.js.map +1 -1
  169. package/dist/services/balances/balances.schemas.d.ts +1 -67
  170. package/dist/services/balances/balances.schemas.d.ts.map +1 -1
  171. package/dist/services/balances/balances.schemas.js +1 -22
  172. package/dist/services/balances/balances.schemas.js.map +1 -1
  173. package/dist/services/balances/balances.types.d.ts +2 -2
  174. package/dist/services/candles/candles.schemas.d.ts +10 -10
  175. package/dist/services/changelog/changelog.schemas.d.ts +38 -38
  176. package/dist/services/checkpoints/checkpoints.schemas.d.ts +3 -3
  177. package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +11 -11
  178. package/dist/services/dust-conversion/dust-conversion.schemas.d.ts.map +1 -1
  179. package/dist/services/dust-conversion/dust-conversion.schemas.js +1 -1
  180. package/dist/services/dust-conversion/dust-conversion.schemas.js.map +1 -1
  181. package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
  182. package/dist/services/internal-transfers/internal-transfers.codecs.d.ts +11 -6
  183. package/dist/services/internal-transfers/internal-transfers.codecs.d.ts.map +1 -1
  184. package/dist/services/internal-transfers/internal-transfers.codecs.js +6 -6
  185. package/dist/services/internal-transfers/internal-transfers.codecs.js.map +1 -1
  186. package/dist/services/internal-transfers/internal-transfers.d.ts +17 -10
  187. package/dist/services/internal-transfers/internal-transfers.d.ts.map +1 -1
  188. package/dist/services/internal-transfers/internal-transfers.js +21 -10
  189. package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
  190. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +43 -31
  191. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts.map +1 -1
  192. package/dist/services/internal-transfers/internal-transfers.schemas.js +23 -12
  193. package/dist/services/internal-transfers/internal-transfers.schemas.js.map +1 -1
  194. package/dist/services/internal-transfers/internal-transfers.types.d.ts +2 -2
  195. package/dist/services/lifecycle/lifecycle.d.ts +1 -1
  196. package/dist/services/lifecycle/lifecycle.js +2 -3
  197. package/dist/services/lifecycle/lifecycle.js.map +1 -1
  198. package/dist/services/lifecycle/lifecycle.schemas.d.ts +40 -40
  199. package/dist/services/market-data/market-data.codecs.d.ts +8 -0
  200. package/dist/services/market-data/market-data.codecs.d.ts.map +1 -0
  201. package/dist/services/market-data/market-data.codecs.js +7 -1
  202. package/dist/services/market-data/market-data.codecs.js.map +1 -1
  203. package/dist/services/market-data/market-data.d.ts +3 -2
  204. package/dist/services/market-data/market-data.d.ts.map +1 -1
  205. package/dist/services/market-data/market-data.js +3 -2
  206. package/dist/services/market-data/market-data.js.map +1 -1
  207. package/dist/services/market-data/market-data.schemas.d.ts +332 -4
  208. package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
  209. package/dist/services/market-data/market-data.schemas.js +56 -8
  210. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  211. package/dist/services/market-data/market-data.types.d.ts +3 -2
  212. package/dist/services/notifications/notifications.codecs.d.ts +1 -1
  213. package/dist/services/notifications/notifications.codecs.d.ts.map +1 -1
  214. package/dist/services/notifications/notifications.codecs.js +2 -1
  215. package/dist/services/notifications/notifications.codecs.js.map +1 -1
  216. package/dist/services/notifications/notifications.d.ts +4 -2
  217. package/dist/services/notifications/notifications.d.ts.map +1 -1
  218. package/dist/services/notifications/notifications.js +4 -2
  219. package/dist/services/notifications/notifications.js.map +1 -1
  220. package/dist/services/notifications/notifications.schemas.d.ts +63 -7
  221. package/dist/services/notifications/notifications.schemas.d.ts.map +1 -1
  222. package/dist/services/notifications/notifications.schemas.js +5 -0
  223. package/dist/services/notifications/notifications.schemas.js.map +1 -1
  224. package/dist/services/orderbook/orderbook.js +3 -2
  225. package/dist/services/orderbook/orderbook.js.map +1 -1
  226. package/dist/services/orders/order-enums.codecs.d.ts +2 -0
  227. package/dist/services/orders/order-errors.schemas.d.ts +50 -5
  228. package/dist/services/orders/order-errors.schemas.d.ts.map +1 -1
  229. package/dist/services/orders/order-errors.schemas.js +13 -3
  230. package/dist/services/orders/order-errors.schemas.js.map +1 -1
  231. package/dist/services/orders/orders-batch.schemas.d.ts +310 -70
  232. package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
  233. package/dist/services/orders/orders-input.schemas.d.ts +58 -11
  234. package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
  235. package/dist/services/orders/orders-input.schemas.js +1 -1
  236. package/dist/services/orders/orders-output.schemas.d.ts +13 -13
  237. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
  238. package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +1 -1
  239. package/dist/services/policies/shared.codecs.js +12 -6
  240. package/dist/services/policies/shared.codecs.js.map +1 -1
  241. package/dist/services/policies/shared.d.ts +1 -1
  242. package/dist/services/policies/shared.js +1 -1
  243. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +9 -9
  244. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +4 -30
  245. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
  246. package/dist/services/price-alerts/price-alerts.d.ts +5 -2
  247. package/dist/services/price-alerts/price-alerts.d.ts.map +1 -1
  248. package/dist/services/price-alerts/price-alerts.js +5 -2
  249. package/dist/services/price-alerts/price-alerts.js.map +1 -1
  250. package/dist/services/price-alerts/price-alerts.schemas.js +1 -1
  251. package/dist/services/rewards/rewards.schemas.d.ts +4 -4
  252. package/dist/services/social-verification/social-verification.schemas.d.ts +9 -0
  253. package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
  254. package/dist/services/social-verification/social-verification.schemas.js +9 -2
  255. package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
  256. package/dist/services/statement-exports/statement-exports.codecs.d.ts +3 -2
  257. package/dist/services/statement-exports/statement-exports.codecs.d.ts.map +1 -1
  258. package/dist/services/statement-exports/statement-exports.codecs.js +2 -1
  259. package/dist/services/statement-exports/statement-exports.codecs.js.map +1 -1
  260. package/dist/services/statement-exports/statement-exports.d.ts +25 -10
  261. package/dist/services/statement-exports/statement-exports.d.ts.map +1 -1
  262. package/dist/services/statement-exports/statement-exports.js +33 -10
  263. package/dist/services/statement-exports/statement-exports.js.map +1 -1
  264. package/dist/services/statement-exports/statement-exports.schemas.d.ts +38 -10
  265. package/dist/services/statement-exports/statement-exports.schemas.d.ts.map +1 -1
  266. package/dist/services/statement-exports/statement-exports.schemas.js +25 -6
  267. package/dist/services/statement-exports/statement-exports.schemas.js.map +1 -1
  268. package/dist/services/statement-exports/statement-exports.types.d.ts +2 -2
  269. package/dist/services/subaccounts/subaccounts.codecs.js +112 -38
  270. package/dist/services/subaccounts/subaccounts.codecs.js.map +1 -1
  271. package/dist/services/subaccounts/subaccounts.d.ts +2 -1
  272. package/dist/services/subaccounts/subaccounts.d.ts.map +1 -1
  273. package/dist/services/subaccounts/subaccounts.js +3 -3
  274. package/dist/services/subaccounts/subaccounts.js.map +1 -1
  275. package/dist/services/subaccounts/subaccounts.schemas.d.ts +12 -5
  276. package/dist/services/subaccounts/subaccounts.schemas.d.ts.map +1 -1
  277. package/dist/services/subaccounts/subaccounts.schemas.js +10 -3
  278. package/dist/services/subaccounts/subaccounts.schemas.js.map +1 -1
  279. package/dist/services/system/system.d.ts +12 -1
  280. package/dist/services/system/system.d.ts.map +1 -1
  281. package/dist/services/system/system.js +5 -0
  282. package/dist/services/system/system.js.map +1 -1
  283. package/dist/services/system/system.schemas.d.ts +13 -13
  284. package/dist/services/system/system.types.d.ts +2 -2
  285. package/dist/services/trades/trades.schemas.d.ts +2 -2
  286. package/dist/services/trading-withdraws/trading-withdraws.codecs.d.ts +8 -0
  287. package/dist/services/trading-withdraws/trading-withdraws.codecs.d.ts.map +1 -0
  288. package/dist/services/trading-withdraws/trading-withdraws.codecs.js +7 -1
  289. package/dist/services/trading-withdraws/trading-withdraws.codecs.js.map +1 -1
  290. package/dist/services/trading-withdraws/trading-withdraws.d.ts +2 -1
  291. package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
  292. package/dist/services/trading-withdraws/trading-withdraws.js +2 -1
  293. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  294. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +15 -0
  295. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  296. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +16 -2
  297. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  298. package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +2 -1
  299. package/dist/services/transfers/transfers.schemas.d.ts +4 -4
  300. package/dist/services/triggers/trigger-child-order.schemas.js +1 -1
  301. package/dist/services/triggers/trigger-child-order.schemas.js.map +1 -1
  302. package/dist/services/triggers/trigger-input.schemas.d.ts +10 -10
  303. package/dist/services/triggers/triggers-output.schemas.d.ts +170 -52
  304. package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
  305. package/dist/services/triggers/triggers-output.schemas.js +13 -3
  306. package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
  307. package/dist/services/triggers/triggers.codecs.d.ts +10 -0
  308. package/dist/services/triggers/triggers.codecs.d.ts.map +1 -0
  309. package/dist/services/triggers/triggers.codecs.js +7 -1
  310. package/dist/services/triggers/triggers.codecs.js.map +1 -1
  311. package/dist/services/triggers/triggers.d.ts +2 -2
  312. package/dist/services/triggers/triggers.js +2 -2
  313. package/dist/services/triggers/triggers.js.map +1 -1
  314. package/dist/services/zipper/zipper.d.ts.map +1 -1
  315. package/dist/services/zipper/zipper.js +13 -7
  316. package/dist/services/zipper/zipper.js.map +1 -1
  317. package/dist/services/zipper/zipper.schemas.d.ts +7 -2
  318. package/dist/services/zipper/zipper.schemas.d.ts.map +1 -1
  319. package/dist/services/zipper/zipper.schemas.js +29 -9
  320. package/dist/services/zipper/zipper.schemas.js.map +1 -1
  321. package/dist/services/zipper/zipper.types.d.ts +2 -2
  322. package/dist/shared/catalog-config.d.ts +16 -2
  323. package/dist/shared/catalog-config.d.ts.map +1 -1
  324. package/dist/shared/catalog-config.js.map +1 -1
  325. package/dist/shared/connect-error-mapping.d.ts.map +1 -1
  326. package/dist/shared/connect-error-mapping.js +27 -4
  327. package/dist/shared/connect-error-mapping.js.map +1 -1
  328. package/dist/shared/error-detail.d.ts +10 -0
  329. package/dist/shared/error-detail.d.ts.map +1 -1
  330. package/dist/shared/error-detail.js.map +1 -1
  331. package/dist/shared/error-details/auth.js +6 -0
  332. package/dist/shared/error-details/auth.js.map +1 -1
  333. package/dist/shared/errors.d.ts +5 -1
  334. package/dist/shared/errors.d.ts.map +1 -1
  335. package/dist/shared/errors.js +3 -0
  336. package/dist/shared/errors.js.map +1 -1
  337. package/dist/shared/ledger-codes.d.ts +3 -1
  338. package/dist/shared/ledger-codes.d.ts.map +1 -1
  339. package/dist/shared/ledger-codes.js +6 -3
  340. package/dist/shared/ledger-codes.js.map +1 -1
  341. package/dist/shared/rate-limit.schemas.d.ts +1 -1
  342. package/dist/wired-services.d.ts.map +1 -1
  343. package/dist/wired-services.js +3 -1
  344. package/dist/wired-services.js.map +1 -1
  345. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"lifecycle.js","names":["#client","#authClient","#realtime","#resolver"],"sources":["../../../src/services/lifecycle/lifecycle.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport { create } from \"@bufbuild/protobuf\";\nimport {\n FlowDetailViewSchema,\n FlowSummaryViewSchema,\n GetFlowByIdRequestSchema,\n LifecycleReadService,\n} from \"../../gen/chain/lifecycle/v1/lifecycle_read_pb.js\";\nimport type { PolyesterRealtime } from \"../../realtime/types.js\";\nimport type { AuthAndPublicApiTransports } from \"../../shared/transports.js\";\nimport { resolveAccountScopedInput, type SubaccountResolver } from \"../subaccount-resolver.js\";\nimport type { BaseSubscribeInput } from \"../../shared/types.js\";\nimport {\n toConnectCallOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport { isDev } from \"../../utils/is-dev.js\";\nimport * as v from \"valibot\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n GetLifecycleAccountFlowInputSchema,\n GetLifecycleFlowInputSchema,\n GetLifecycleFlowOutputSchema,\n LifecycleFlowDetailSchema,\n LifecycleFlowSummarySchema,\n ListLifecycleFlowsByTxOutputSchema,\n ListLifecycleFlowsByTxInputSchema,\n ListLifecycleFlowsOutputSchema,\n ListLifecycleFlowsInputSchema,\n ListLifecycleAccountFlowsInputSchema,\n type GetLifecycleAccountFlowInput,\n type GetLifecycleFlowInput,\n type GetLifecycleFlowOutput,\n type LifecycleFlowDetail,\n type LifecycleFlowSummary,\n type ListLifecycleFlowsByTxInput,\n type ListLifecycleFlowsByTxOutput,\n type ListLifecycleFlowsInput,\n type ListLifecycleAccountFlowsInput,\n type ListLifecycleFlowsOutput,\n} from \"./lifecycle.schemas.js\";\n\ninterface SubscribeOpenLifecycleFlowsInput extends BaseSubscribeInput<LifecycleFlowSummary> {\n accountId?: string;\n}\n\ninterface SubscribeLifecycleFlowDetailInput extends BaseSubscribeInput<LifecycleFlowDetail> {\n flowId: string;\n}\n\n/**\n * Reads and streams chain lifecycle flow state, history, progress, and transaction matches.\n */\nexport class LifecycleService {\n #client: Client<typeof LifecycleReadService>;\n #authClient: Client<typeof LifecycleReadService>;\n #realtime: PolyesterRealtime;\n #resolver?: SubaccountResolver;\n\n constructor(\n transports: AuthAndPublicApiTransports,\n realtime: PolyesterRealtime,\n resolver?: SubaccountResolver,\n ) {\n this.#client = createClient(LifecycleReadService, transports.publicApi);\n this.#authClient = createClient(LifecycleReadService, transports.authApi);\n this.#realtime = realtime;\n this.#resolver = resolver;\n }\n\n /**\n * Returns paginated lifecycle flow summaries filtered by kind, state, scope, account selector, transaction reference, chain ids, and asset ids. The response is ordered by the selected timestamp and includes an opaque next page token.\n *\n * Lists only flows a chain transaction started. With an `accountSelector` (a smart\n * account address), the list holds the flows the account owns and the transfers it\n * receives from other accounts; each row's `participation` says which. Pass\n * `participation: \"owner\"` for the owned flows only. A `pageToken` only resumes the\n * request it came from: change nothing but `limit` between pages. Use `listAccountFlows`\n * for every flow of the signed-in account.\n */\n async listFlows(\n input: ListLifecycleFlowsInput,\n options?: PolyesterRequestOptions,\n ): Promise<ListLifecycleFlowsOutput> {\n const parsedInput = parse(ListLifecycleFlowsInputSchema, input);\n const response = await this.#client.listFlows(parsedInput, toConnectCallOptions(options));\n const res = parse(ListLifecycleFlowsOutputSchema, response);\n return res;\n }\n\n /**\n * Lists the signed-in account's flows: the ones it owns and the transfers it receives,\n * including flows no chain transaction started, such as transfers between Trading accounts.\n * Each row's `participation` says which. Takes the same filters as `listFlows`; a\n * `pageToken` only resumes the request it came from. API keys need `read-funding-flows`.\n */\n async listAccountFlows(\n input: ListLifecycleAccountFlowsInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<ListLifecycleFlowsOutput> {\n const resolved = resolveAccountScopedInput(input, this.#resolver);\n const request = parse(ListLifecycleAccountFlowsInputSchema, resolved);\n const response = await this.#authClient.listAccountFlows(\n request,\n toConnectCallOptions(options),\n );\n return parse(ListLifecycleFlowsOutputSchema, response);\n }\n\n /**\n * Fetches one flow the signed-in account owns or receives, including one no chain\n * transaction started. A flow the account takes no part in throws `ResourceNotFoundError`. API keys\n * need `read-funding-flows`.\n */\n async getAccountFlow(\n input: GetLifecycleAccountFlowInput,\n options?: PolyesterRequestOptions,\n ): Promise<GetLifecycleFlowOutput> {\n const resolved = resolveAccountScopedInput(input, this.#resolver);\n const request = parse(GetLifecycleAccountFlowInputSchema, resolved);\n const response = await this.#authClient.getAccountFlow(\n request,\n toConnectCallOptions(options),\n );\n return parse(GetLifecycleFlowOutputSchema, response);\n }\n\n /**\n * Fetches one lifecycle flow by its public flow id and returns summary, factual steps,\n * timeline, and live-state detail when available. Finds only flows a chain transaction\n * started; the account reads its other flows with `getAccountFlow`.\n */\n async getFlow(\n input: GetLifecycleFlowInput,\n options?: PolyesterRequestOptions,\n ): Promise<GetLifecycleFlowOutput> {\n const parsedInput = parse(GetLifecycleFlowInputSchema, input);\n const response = await this.#client.getFlowById(\n create(GetFlowByIdRequestSchema, parsedInput),\n toConnectCallOptions(options),\n );\n return parse(GetLifecycleFlowOutputSchema, response);\n }\n\n /**\n * Searches lifecycle flows that reference a 0x-prefixed transaction hash, using source-only or any-reference lookup mode. A single transaction may match zero, one, or many flows.\n */\n async listFlowsByTx(\n input: ListLifecycleFlowsByTxInput,\n options?: PolyesterRequestOptions,\n ): Promise<ListLifecycleFlowsByTxOutput> {\n const parsedInput = parse(ListLifecycleFlowsByTxInputSchema, input);\n const response = await this.#client.listFlowsByTx(\n parsedInput,\n toConnectCallOptions(options),\n );\n return parse(ListLifecycleFlowsByTxOutputSchema, response);\n }\n\n /**\n * Subscribes to open lifecycle flow summary updates, using private:chain:lifecycle:flows:{accountId}:proto when an account id is provided and the public flow channel otherwise.\n */\n subscribeOpenFlows(input: SubscribeOpenLifecycleFlowsInput): () => void {\n const accountId = input.accountId?.trim();\n const channel = accountId\n ? `private:chain:lifecycle:flows:${accountId}:proto`\n : \"public:chain:lifecycle:flows:proto\";\n return this.#realtime.connectProtoChannel({\n channel,\n schema: FlowSummaryViewSchema,\n onPublication: (data) => {\n const flow = parse(LifecycleFlowSummarySchema, data);\n input.onEvent(flow);\n },\n onConnected: input.onOpen,\n onDisconnected: input.onClose,\n onError: input.onError,\n });\n }\n\n /**\n * Subscribes to detail updates for one lifecycle flow on public:chain:lifecycle:flow:{flowId}:proto. Invalid flow ids are rejected locally with a no-op unsubscribe function.\n */\n subscribeFlowDetail(input: SubscribeLifecycleFlowDetailInput): () => void {\n const parsedFlowId = v.safeParse(GetLifecycleFlowInputSchema, { flowId: input.flowId });\n if (!parsedFlowId.success) {\n if (isDev()) {\n console.error(\n \"[LifecycleService] flowId is required for flow detail subscription.\",\n );\n }\n return () => {};\n }\n\n const channel = `public:chain:lifecycle:flow:${parsedFlowId.output.flowId}:proto`;\n return this.#realtime.connectProtoChannel({\n channel,\n schema: FlowDetailViewSchema,\n onPublication: (data) => {\n const flow = parse(LifecycleFlowDetailSchema, data);\n input.onEvent(flow);\n },\n onConnected: input.onOpen,\n onDisconnected: input.onClose,\n onError: input.onError,\n });\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAqDA,IAAa,mBAAb,MAA8B;CAC1B;CACA;CACA;CACA;CAEA,YACI,YACA,UACA,UACF;EACE,KAAKA,UAAU,aAAa,sBAAsB,WAAW,SAAS;EACtE,KAAKC,cAAc,aAAa,sBAAsB,WAAW,OAAO;EACxE,KAAKC,YAAY;EACjB,KAAKC,YAAY;CACrB;;;;;;;;;;;CAYA,MAAM,UACF,OACA,SACiC;EACjC,MAAM,cAAc,MAAM,+BAA+B,KAAK;EAC9D,MAAM,WAAW,MAAM,KAAKH,QAAQ,UAAU,aAAa,qBAAqB,OAAO,CAAC;EAExF,OADY,MAAM,gCAAgC,QACzC;CACb;;;;;;;CAQA,MAAM,iBACF,QAAwC,CAAC,GACzC,SACiC;EACjC,MAAM,WAAW,0BAA0B,OAAO,KAAKG,SAAS;EAChE,MAAM,UAAU,MAAM,sCAAsC,QAAQ;EACpE,MAAM,WAAW,MAAM,KAAKF,YAAY,iBACpC,SACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,gCAAgC,QAAQ;CACzD;;;;;;CAOA,MAAM,eACF,OACA,SAC+B;EAC/B,MAAM,WAAW,0BAA0B,OAAO,KAAKE,SAAS;EAChE,MAAM,UAAU,MAAM,oCAAoC,QAAQ;EAClE,MAAM,WAAW,MAAM,KAAKF,YAAY,eACpC,SACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,8BAA8B,QAAQ;CACvD;;;;;;CAOA,MAAM,QACF,OACA,SAC+B;EAC/B,MAAM,cAAc,MAAM,6BAA6B,KAAK;EAC5D,MAAM,WAAW,MAAM,KAAKD,QAAQ,YAChC,OAAO,0BAA0B,WAAW,GAC5C,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,8BAA8B,QAAQ;CACvD;;;;CAKA,MAAM,cACF,OACA,SACqC;EACrC,MAAM,cAAc,MAAM,mCAAmC,KAAK;EAClE,MAAM,WAAW,MAAM,KAAKA,QAAQ,cAChC,aACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,oCAAoC,QAAQ;CAC7D;;;;CAKA,mBAAmB,OAAqD;EACpE,MAAM,YAAY,MAAM,WAAW,KAAK;EACxC,MAAM,UAAU,YACV,iCAAiC,UAAU,UAC3C;EACN,OAAO,KAAKE,UAAU,oBAAoB;GACtC;GACA,QAAQ;GACR,gBAAgB,SAAS;IACrB,MAAM,OAAO,MAAM,4BAA4B,IAAI;IACnD,MAAM,QAAQ,IAAI;GACtB;GACA,aAAa,MAAM;GACnB,gBAAgB,MAAM;GACtB,SAAS,MAAM;EACnB,CAAC;CACL;;;;CAKA,oBAAoB,OAAsD;EACtE,MAAM,eAAe,EAAE,UAAU,6BAA6B,EAAE,QAAQ,MAAM,OAAO,CAAC;EACtF,IAAI,CAAC,aAAa,SAAS;GACvB,IAAI,MAAM,GACN,QAAQ,MACJ,qEACJ;GAEJ,aAAa,CAAC;EAClB;EAEA,MAAM,UAAU,+BAA+B,aAAa,OAAO,OAAO;EAC1E,OAAO,KAAKA,UAAU,oBAAoB;GACtC;GACA,QAAQ;GACR,gBAAgB,SAAS;IACrB,MAAM,OAAO,MAAM,2BAA2B,IAAI;IAClD,MAAM,QAAQ,IAAI;GACtB;GACA,aAAa,MAAM;GACnB,gBAAgB,MAAM;GACtB,SAAS,MAAM;EACnB,CAAC;CACL;AACJ"}
1
+ {"version":3,"file":"lifecycle.js","names":["#client","#authClient","#realtime","#resolver"],"sources":["../../../src/services/lifecycle/lifecycle.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport { create } from \"@bufbuild/protobuf\";\nimport {\n FlowDetailViewSchema,\n FlowSummaryViewSchema,\n GetFlowByIdRequestSchema,\n LifecycleReadService,\n} from \"../../gen/chain/lifecycle/v1/lifecycle_read_pb.js\";\nimport type { PolyesterRealtime } from \"../../realtime/types.js\";\nimport type { AuthAndPublicApiTransports } from \"../../shared/transports.js\";\nimport { resolveAccountScopedInput, type SubaccountResolver } from \"../subaccount-resolver.js\";\nimport type { BaseSubscribeInput } from \"../../shared/types.js\";\nimport {\n toConnectCallOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport { isDev } from \"../../utils/is-dev.js\";\nimport * as v from \"valibot\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n GetLifecycleAccountFlowInputSchema,\n GetLifecycleFlowInputSchema,\n GetLifecycleFlowOutputSchema,\n LifecycleFlowDetailSchema,\n LifecycleFlowSummarySchema,\n ListLifecycleFlowsByTxOutputSchema,\n ListLifecycleFlowsByTxInputSchema,\n ListLifecycleFlowsOutputSchema,\n ListLifecycleFlowsInputSchema,\n ListLifecycleAccountFlowsInputSchema,\n type GetLifecycleAccountFlowInput,\n type GetLifecycleFlowInput,\n type GetLifecycleFlowOutput,\n type LifecycleFlowDetail,\n type LifecycleFlowSummary,\n type ListLifecycleFlowsByTxInput,\n type ListLifecycleFlowsByTxOutput,\n type ListLifecycleFlowsInput,\n type ListLifecycleAccountFlowsInput,\n type ListLifecycleFlowsOutput,\n} from \"./lifecycle.schemas.js\";\n\ninterface SubscribeOpenLifecycleFlowsInput extends BaseSubscribeInput<LifecycleFlowSummary> {\n accountId?: string;\n}\n\ninterface SubscribeLifecycleFlowDetailInput extends BaseSubscribeInput<LifecycleFlowDetail> {\n flowId: string;\n}\n\n/**\n * Reads and streams chain lifecycle flow state, history, progress, and transaction matches.\n */\nexport class LifecycleService {\n #client: Client<typeof LifecycleReadService>;\n #authClient: Client<typeof LifecycleReadService>;\n #realtime: PolyesterRealtime;\n #resolver?: SubaccountResolver;\n\n constructor(\n transports: AuthAndPublicApiTransports,\n realtime: PolyesterRealtime,\n resolver?: SubaccountResolver,\n ) {\n this.#client = createClient(LifecycleReadService, transports.publicApi);\n this.#authClient = createClient(LifecycleReadService, transports.authApi);\n this.#realtime = realtime;\n this.#resolver = resolver;\n }\n\n /**\n * Returns paginated lifecycle flow summaries filtered by kind, state, scope, account selector, transaction reference, chain ids, and asset ids. The response is ordered by the selected timestamp and includes an opaque next page token.\n *\n * Lists only flows a chain transaction started. With an `accountSelector` (a smart\n * account address), the list holds the flows the account owns and the transfers it\n * receives from other accounts; each row's `participation` says which. Pass\n * `participation: \"owner\"` for the owned flows only. A `pageToken` only resumes the\n * request it came from: change nothing but `limit` between pages. Use `listAccountFlows`\n * for every flow of the signed-in account.\n */\n async listFlows(\n input: ListLifecycleFlowsInput,\n options?: PolyesterRequestOptions,\n ): Promise<ListLifecycleFlowsOutput> {\n const parsedInput = parse(ListLifecycleFlowsInputSchema, input);\n const response = await this.#client.listFlows(parsedInput, toConnectCallOptions(options));\n const res = parse(ListLifecycleFlowsOutputSchema, response);\n return res;\n }\n\n /**\n * Lists the signed-in account's flows: the ones it owns and the transfers it receives,\n * including flows no chain transaction started, such as transfers between Trading accounts.\n * Each row's `participation` says which. Takes the same filters as `listFlows`; a\n * `pageToken` only resumes the request it came from. API keys need `read-funding-flows`.\n */\n async listAccountFlows(\n input: ListLifecycleAccountFlowsInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<ListLifecycleFlowsOutput> {\n const resolved = resolveAccountScopedInput(input, this.#resolver);\n const request = parse(ListLifecycleAccountFlowsInputSchema, resolved);\n const response = await this.#authClient.listAccountFlows(\n request,\n toConnectCallOptions(options),\n );\n return parse(ListLifecycleFlowsOutputSchema, response);\n }\n\n /**\n * Fetches one flow the signed-in account owns or receives, including one no chain\n * transaction started. A flow the account takes no part in throws `ResourceNotFoundError`. API keys\n * need `read-funding-flows`.\n */\n async getAccountFlow(\n input: GetLifecycleAccountFlowInput,\n options?: PolyesterRequestOptions,\n ): Promise<GetLifecycleFlowOutput> {\n const resolved = resolveAccountScopedInput(input, this.#resolver);\n const request = parse(GetLifecycleAccountFlowInputSchema, resolved);\n const response = await this.#authClient.getAccountFlow(\n request,\n toConnectCallOptions(options),\n );\n return parse(GetLifecycleFlowOutputSchema, response);\n }\n\n /**\n * Fetches one lifecycle flow by its public flow id and returns summary, factual steps,\n * timeline, and live-state detail when available. Finds only flows a chain transaction\n * started; the account reads its other flows with `getAccountFlow`.\n */\n async getFlow(\n input: GetLifecycleFlowInput,\n options?: PolyesterRequestOptions,\n ): Promise<GetLifecycleFlowOutput> {\n const parsedInput = parse(GetLifecycleFlowInputSchema, input);\n const response = await this.#client.getFlowById(\n create(GetFlowByIdRequestSchema, parsedInput),\n toConnectCallOptions(options),\n );\n return parse(GetLifecycleFlowOutputSchema, response);\n }\n\n /**\n * Searches lifecycle flows that reference a 0x-prefixed transaction hash, using source-only or any-reference lookup mode. A single transaction may match zero, one, or many flows.\n */\n async listFlowsByTx(\n input: ListLifecycleFlowsByTxInput,\n options?: PolyesterRequestOptions,\n ): Promise<ListLifecycleFlowsByTxOutput> {\n const parsedInput = parse(ListLifecycleFlowsByTxInputSchema, input);\n const response = await this.#client.listFlowsByTx(\n parsedInput,\n toConnectCallOptions(options),\n );\n return parse(ListLifecycleFlowsByTxOutputSchema, response);\n }\n\n /**\n * Subscribes to open lifecycle flow summary updates, using private:chain:lifecycle:flows:{accountId}:proto when `accountId` is set and the public all-accounts flow channel only when it is omitted.\n */\n subscribeOpenFlows(input: SubscribeOpenLifecycleFlowsInput): () => void {\n const channel =\n input.accountId === undefined\n ? \"public:chain:lifecycle:flows:proto\"\n : `private:chain:lifecycle:flows:${input.accountId}:proto`;\n return this.#realtime.connectProtoChannel({\n channel,\n schema: FlowSummaryViewSchema,\n onPublication: (data) => {\n const flow = parse(LifecycleFlowSummarySchema, data);\n input.onEvent(flow);\n },\n onConnected: input.onOpen,\n onDisconnected: input.onClose,\n onError: input.onError,\n });\n }\n\n /**\n * Subscribes to detail updates for one lifecycle flow on public:chain:lifecycle:flow:{flowId}:proto. Invalid flow ids are rejected locally with a no-op unsubscribe function.\n */\n subscribeFlowDetail(input: SubscribeLifecycleFlowDetailInput): () => void {\n const parsedFlowId = v.safeParse(GetLifecycleFlowInputSchema, { flowId: input.flowId });\n if (!parsedFlowId.success) {\n if (isDev()) {\n console.error(\n \"[LifecycleService] flowId is required for flow detail subscription.\",\n );\n }\n return () => {};\n }\n\n const channel = `public:chain:lifecycle:flow:${parsedFlowId.output.flowId}:proto`;\n return this.#realtime.connectProtoChannel({\n channel,\n schema: FlowDetailViewSchema,\n onPublication: (data) => {\n const flow = parse(LifecycleFlowDetailSchema, data);\n input.onEvent(flow);\n },\n onConnected: input.onOpen,\n onDisconnected: input.onClose,\n onError: input.onError,\n });\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAqDA,IAAa,mBAAb,MAA8B;CAC1B;CACA;CACA;CACA;CAEA,YACI,YACA,UACA,UACF;EACE,KAAKA,UAAU,aAAa,sBAAsB,WAAW,SAAS;EACtE,KAAKC,cAAc,aAAa,sBAAsB,WAAW,OAAO;EACxE,KAAKC,YAAY;EACjB,KAAKC,YAAY;CACrB;;;;;;;;;;;CAYA,MAAM,UACF,OACA,SACiC;EACjC,MAAM,cAAc,MAAM,+BAA+B,KAAK;EAC9D,MAAM,WAAW,MAAM,KAAKH,QAAQ,UAAU,aAAa,qBAAqB,OAAO,CAAC;EAExF,OADY,MAAM,gCAAgC,QACzC;CACb;;;;;;;CAQA,MAAM,iBACF,QAAwC,CAAC,GACzC,SACiC;EACjC,MAAM,WAAW,0BAA0B,OAAO,KAAKG,SAAS;EAChE,MAAM,UAAU,MAAM,sCAAsC,QAAQ;EACpE,MAAM,WAAW,MAAM,KAAKF,YAAY,iBACpC,SACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,gCAAgC,QAAQ;CACzD;;;;;;CAOA,MAAM,eACF,OACA,SAC+B;EAC/B,MAAM,WAAW,0BAA0B,OAAO,KAAKE,SAAS;EAChE,MAAM,UAAU,MAAM,oCAAoC,QAAQ;EAClE,MAAM,WAAW,MAAM,KAAKF,YAAY,eACpC,SACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,8BAA8B,QAAQ;CACvD;;;;;;CAOA,MAAM,QACF,OACA,SAC+B;EAC/B,MAAM,cAAc,MAAM,6BAA6B,KAAK;EAC5D,MAAM,WAAW,MAAM,KAAKD,QAAQ,YAChC,OAAO,0BAA0B,WAAW,GAC5C,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,8BAA8B,QAAQ;CACvD;;;;CAKA,MAAM,cACF,OACA,SACqC;EACrC,MAAM,cAAc,MAAM,mCAAmC,KAAK;EAClE,MAAM,WAAW,MAAM,KAAKA,QAAQ,cAChC,aACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,oCAAoC,QAAQ;CAC7D;;;;CAKA,mBAAmB,OAAqD;EACpE,MAAM,UACF,MAAM,cAAc,KAAA,IACd,uCACA,iCAAiC,MAAM,UAAU;EAC3D,OAAO,KAAKE,UAAU,oBAAoB;GACtC;GACA,QAAQ;GACR,gBAAgB,SAAS;IACrB,MAAM,OAAO,MAAM,4BAA4B,IAAI;IACnD,MAAM,QAAQ,IAAI;GACtB;GACA,aAAa,MAAM;GACnB,gBAAgB,MAAM;GACtB,SAAS,MAAM;EACnB,CAAC;CACL;;;;CAKA,oBAAoB,OAAsD;EACtE,MAAM,eAAe,EAAE,UAAU,6BAA6B,EAAE,QAAQ,MAAM,OAAO,CAAC;EACtF,IAAI,CAAC,aAAa,SAAS;GACvB,IAAI,MAAM,GACN,QAAQ,MACJ,qEACJ;GAEJ,aAAa,CAAC;EAClB;EAEA,MAAM,UAAU,+BAA+B,aAAa,OAAO,OAAO;EAC1E,OAAO,KAAKA,UAAU,oBAAoB;GACtC;GACA,QAAQ;GACR,gBAAgB,SAAS;IACrB,MAAM,OAAO,MAAM,2BAA2B,IAAI;IAClD,MAAM,QAAQ,IAAI;GACtB;GACA,aAAa,MAAM;GACnB,gBAAgB,MAAM;GACtB,SAAS,MAAM;EACnB,CAAC;CACL;AACJ"}
@@ -277,7 +277,7 @@ declare const LifecycleFlowStepActivitySchema: v.SchemaWithPipe<readonly [v.Obje
277
277
  }>]>;
278
278
  declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
279
279
  readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
280
- readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
280
+ readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
281
281
  readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
282
282
  readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
283
283
  readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -426,7 +426,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
426
426
  readonly refundAddress: v.OptionalSchema<v.StringSchema<undefined>, "">;
427
427
  }, undefined>, v.TransformAction<{
428
428
  sequence: number;
429
- step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
429
+ step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
430
430
  assetIds?: {
431
431
  zippedAssetId: number;
432
432
  unifiedAssetId: number;
@@ -490,7 +490,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
490
490
  refundAddress: string;
491
491
  }, Omit<{
492
492
  sequence: number;
493
- step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
493
+ step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
494
494
  assetIds?: {
495
495
  zippedAssetId: number;
496
496
  unifiedAssetId: number;
@@ -557,7 +557,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
557
557
  }>]>;
558
558
  declare const LifecycleFlowTimelineItemSchema: v.ObjectSchema<{
559
559
  readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
560
- readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
560
+ readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
561
561
  readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "planned" | "current">]>;
562
562
  readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
563
563
  }, undefined>;
@@ -576,7 +576,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
576
576
  readonly smartAccountAddress: v.StringSchema<undefined>;
577
577
  readonly flowId: v.StringSchema<undefined>;
578
578
  readonly flowKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
579
- readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
579
+ readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
580
580
  readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
581
581
  readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
582
582
  readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -656,7 +656,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
656
656
  }, undefined>, undefined>;
657
657
  readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
658
658
  readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
659
- readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
659
+ readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
660
660
  readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "planned" | "current">]>;
661
661
  readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
662
662
  }, undefined>, undefined>, readonly []>;
@@ -674,7 +674,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
674
674
  smartAccountAddress: string;
675
675
  flowId: string;
676
676
  flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
677
- currentStep: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
677
+ currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
678
678
  assetIds?: {
679
679
  zippedAssetId: number;
680
680
  unifiedAssetId: number;
@@ -726,7 +726,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
726
726
  } | undefined;
727
727
  progressTimeline: {
728
728
  sequence: number;
729
- step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
729
+ step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
730
730
  status: "unspecified" | "completed" | "planned" | "current";
731
731
  expectedDurationMs: number;
732
732
  }[];
@@ -737,7 +737,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
737
737
  smartAccountAddress: string;
738
738
  flowId: string;
739
739
  flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
740
- currentStep: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
740
+ currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
741
741
  assetIds?: {
742
742
  zippedAssetId: number;
743
743
  unifiedAssetId: number;
@@ -789,7 +789,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
789
789
  } | undefined;
790
790
  progressTimeline: {
791
791
  sequence: number;
792
- step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
792
+ step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
793
793
  status: "unspecified" | "completed" | "planned" | "current";
794
794
  expectedDurationMs: number;
795
795
  }[];
@@ -804,7 +804,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
804
804
  readonly smartAccountAddress: v.StringSchema<undefined>;
805
805
  readonly flowId: v.StringSchema<undefined>;
806
806
  readonly flowKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
807
- readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
807
+ readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
808
808
  readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
809
809
  readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
810
810
  readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -884,7 +884,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
884
884
  }, undefined>, undefined>;
885
885
  readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
886
886
  readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
887
- readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
887
+ readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
888
888
  readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "planned" | "current">]>;
889
889
  readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
890
890
  }, undefined>, undefined>, readonly []>;
@@ -902,7 +902,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
902
902
  smartAccountAddress: string;
903
903
  flowId: string;
904
904
  flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
905
- currentStep: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
905
+ currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
906
906
  assetIds?: {
907
907
  zippedAssetId: number;
908
908
  unifiedAssetId: number;
@@ -954,7 +954,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
954
954
  } | undefined;
955
955
  progressTimeline: {
956
956
  sequence: number;
957
- step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
957
+ step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
958
958
  status: "unspecified" | "completed" | "planned" | "current";
959
959
  expectedDurationMs: number;
960
960
  }[];
@@ -965,7 +965,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
965
965
  smartAccountAddress: string;
966
966
  flowId: string;
967
967
  flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
968
- currentStep: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
968
+ currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
969
969
  assetIds?: {
970
970
  zippedAssetId: number;
971
971
  unifiedAssetId: number;
@@ -1017,7 +1017,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
1017
1017
  } | undefined;
1018
1018
  progressTimeline: {
1019
1019
  sequence: number;
1020
- step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1020
+ step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1021
1021
  status: "unspecified" | "completed" | "planned" | "current";
1022
1022
  expectedDurationMs: number;
1023
1023
  }[];
@@ -1029,7 +1029,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
1029
1029
  }>]>, undefined>;
1030
1030
  readonly observedSteps: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
1031
1031
  readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1032
- readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
1032
+ readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
1033
1033
  readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
1034
1034
  readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1035
1035
  readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -1178,7 +1178,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
1178
1178
  readonly refundAddress: v.OptionalSchema<v.StringSchema<undefined>, "">;
1179
1179
  }, undefined>, v.TransformAction<{
1180
1180
  sequence: number;
1181
- step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1181
+ step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1182
1182
  assetIds?: {
1183
1183
  zippedAssetId: number;
1184
1184
  unifiedAssetId: number;
@@ -1242,7 +1242,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
1242
1242
  refundAddress: string;
1243
1243
  }, Omit<{
1244
1244
  sequence: number;
1245
- step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1245
+ step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1246
1246
  assetIds?: {
1247
1247
  zippedAssetId: number;
1248
1248
  unifiedAssetId: number;
@@ -1314,7 +1314,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
1314
1314
  readonly smartAccountAddress: v.StringSchema<undefined>;
1315
1315
  readonly flowId: v.StringSchema<undefined>;
1316
1316
  readonly flowKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
1317
- readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
1317
+ readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
1318
1318
  readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
1319
1319
  readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1320
1320
  readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -1394,7 +1394,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
1394
1394
  }, undefined>, undefined>;
1395
1395
  readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1396
1396
  readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1397
- readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
1397
+ readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
1398
1398
  readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "planned" | "current">]>;
1399
1399
  readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
1400
1400
  }, undefined>, undefined>, readonly []>;
@@ -1412,7 +1412,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
1412
1412
  smartAccountAddress: string;
1413
1413
  flowId: string;
1414
1414
  flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
1415
- currentStep: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1415
+ currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1416
1416
  assetIds?: {
1417
1417
  zippedAssetId: number;
1418
1418
  unifiedAssetId: number;
@@ -1464,7 +1464,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
1464
1464
  } | undefined;
1465
1465
  progressTimeline: {
1466
1466
  sequence: number;
1467
- step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1467
+ step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1468
1468
  status: "unspecified" | "completed" | "planned" | "current";
1469
1469
  expectedDurationMs: number;
1470
1470
  }[];
@@ -1475,7 +1475,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
1475
1475
  smartAccountAddress: string;
1476
1476
  flowId: string;
1477
1477
  flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
1478
- currentStep: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1478
+ currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1479
1479
  assetIds?: {
1480
1480
  zippedAssetId: number;
1481
1481
  unifiedAssetId: number;
@@ -1527,7 +1527,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
1527
1527
  } | undefined;
1528
1528
  progressTimeline: {
1529
1529
  sequence: number;
1530
- step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1530
+ step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1531
1531
  status: "unspecified" | "completed" | "planned" | "current";
1532
1532
  expectedDurationMs: number;
1533
1533
  }[];
@@ -1545,7 +1545,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1545
1545
  readonly smartAccountAddress: v.StringSchema<undefined>;
1546
1546
  readonly flowId: v.StringSchema<undefined>;
1547
1547
  readonly flowKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
1548
- readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
1548
+ readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
1549
1549
  readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
1550
1550
  readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1551
1551
  readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -1625,7 +1625,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1625
1625
  }, undefined>, undefined>;
1626
1626
  readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1627
1627
  readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1628
- readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
1628
+ readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
1629
1629
  readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "planned" | "current">]>;
1630
1630
  readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
1631
1631
  }, undefined>, undefined>, readonly []>;
@@ -1643,7 +1643,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1643
1643
  smartAccountAddress: string;
1644
1644
  flowId: string;
1645
1645
  flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
1646
- currentStep: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1646
+ currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1647
1647
  assetIds?: {
1648
1648
  zippedAssetId: number;
1649
1649
  unifiedAssetId: number;
@@ -1695,7 +1695,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1695
1695
  } | undefined;
1696
1696
  progressTimeline: {
1697
1697
  sequence: number;
1698
- step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1698
+ step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1699
1699
  status: "unspecified" | "completed" | "planned" | "current";
1700
1700
  expectedDurationMs: number;
1701
1701
  }[];
@@ -1706,7 +1706,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1706
1706
  smartAccountAddress: string;
1707
1707
  flowId: string;
1708
1708
  flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
1709
- currentStep: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1709
+ currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1710
1710
  assetIds?: {
1711
1711
  zippedAssetId: number;
1712
1712
  unifiedAssetId: number;
@@ -1758,7 +1758,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1758
1758
  } | undefined;
1759
1759
  progressTimeline: {
1760
1760
  sequence: number;
1761
- step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1761
+ step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1762
1762
  status: "unspecified" | "completed" | "planned" | "current";
1763
1763
  expectedDurationMs: number;
1764
1764
  }[];
@@ -1770,7 +1770,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1770
1770
  }>]>, undefined>;
1771
1771
  readonly observedSteps: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
1772
1772
  readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1773
- readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
1773
+ readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
1774
1774
  readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
1775
1775
  readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1776
1776
  readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -1919,7 +1919,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1919
1919
  readonly refundAddress: v.OptionalSchema<v.StringSchema<undefined>, "">;
1920
1920
  }, undefined>, v.TransformAction<{
1921
1921
  sequence: number;
1922
- step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1922
+ step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1923
1923
  assetIds?: {
1924
1924
  zippedAssetId: number;
1925
1925
  unifiedAssetId: number;
@@ -1983,7 +1983,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1983
1983
  refundAddress: string;
1984
1984
  }, Omit<{
1985
1985
  sequence: number;
1986
- step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1986
+ step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
1987
1987
  assetIds?: {
1988
1988
  zippedAssetId: number;
1989
1989
  unifiedAssetId: number;
@@ -2060,7 +2060,7 @@ declare const LifecycleFlowTxMatchSchema: v.SchemaWithPipe<readonly [v.ObjectSch
2060
2060
  readonly txOccurrenceIndex: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, number>]>;
2061
2061
  readonly sourceDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
2062
2062
  readonly destinationDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
2063
- readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
2063
+ readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
2064
2064
  readonly isOpen: v.BooleanSchema<undefined>;
2065
2065
  readonly isTerminal: v.BooleanSchema<undefined>;
2066
2066
  readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
@@ -2093,7 +2093,7 @@ declare const LifecycleFlowTxMatchSchema: v.SchemaWithPipe<readonly [v.ObjectSch
2093
2093
  txOccurrenceIndex?: number | undefined;
2094
2094
  sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
2095
2095
  destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
2096
- currentStep: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
2096
+ currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
2097
2097
  isOpen: boolean;
2098
2098
  isTerminal: boolean;
2099
2099
  assetIds?: {
@@ -2120,7 +2120,7 @@ declare const LifecycleFlowTxMatchSchema: v.SchemaWithPipe<readonly [v.ObjectSch
2120
2120
  txOccurrenceIndex?: number | undefined;
2121
2121
  sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
2122
2122
  destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
2123
- currentStep: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
2123
+ currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
2124
2124
  isOpen: boolean;
2125
2125
  isTerminal: boolean;
2126
2126
  assetIds?: {
@@ -2152,7 +2152,7 @@ declare const ListLifecycleFlowsByTxOutputSchema: v.ObjectSchema<{
2152
2152
  readonly txOccurrenceIndex: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, number>]>;
2153
2153
  readonly sourceDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
2154
2154
  readonly destinationDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
2155
- readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
2155
+ readonly currentStep: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
2156
2156
  readonly isOpen: v.BooleanSchema<undefined>;
2157
2157
  readonly isTerminal: v.BooleanSchema<undefined>;
2158
2158
  readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
@@ -2185,7 +2185,7 @@ declare const ListLifecycleFlowsByTxOutputSchema: v.ObjectSchema<{
2185
2185
  txOccurrenceIndex?: number | undefined;
2186
2186
  sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
2187
2187
  destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
2188
- currentStep: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
2188
+ currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
2189
2189
  isOpen: boolean;
2190
2190
  isTerminal: boolean;
2191
2191
  assetIds?: {
@@ -2212,7 +2212,7 @@ declare const ListLifecycleFlowsByTxOutputSchema: v.ObjectSchema<{
2212
2212
  txOccurrenceIndex?: number | undefined;
2213
2213
  sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
2214
2214
  destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
2215
- currentStep: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
2215
+ currentStep: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
2216
2216
  isOpen: boolean;
2217
2217
  isTerminal: boolean;
2218
2218
  assetIds?: {
@@ -0,0 +1,8 @@
1
+ import "../../gen/marketdata/v1/marketdata_pb.js";
2
+ //#region src/services/market-data/market-data.codecs.d.ts
3
+ declare const ASSET_DATA_SOURCE_VALUES: readonly ["coinmarketcap", "polyester"];
4
+ /** Who supplied a market value; show "Source: CoinMarketCap" with a `coinmarketcap` one. */
5
+ type AssetDataSourceValue = (typeof ASSET_DATA_SOURCE_VALUES)[number];
6
+ //#endregion
7
+ export { ASSET_DATA_SOURCE_VALUES, AssetDataSourceValue };
8
+ //# sourceMappingURL=market-data.codecs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"market-data.codecs.d.ts","names":[],"sources":["../../../src/services/market-data/market-data.codecs.ts"],"mappings":";;cAca;;KAED,+BAA+B"}
@@ -1,9 +1,15 @@
1
+ import "../../gen/marketdata/v1/asset_info_pb.js";
1
2
  import "../../gen/marketdata/v1/marketdata_pb.js";
2
3
  //#region src/services/market-data/market-data.codecs.ts
3
4
  const SideFilterCodec = { inputToProto: {
4
5
  buy: 1,
5
6
  sell: 2
6
7
  } };
8
+ const AssetDataSourceCodec = { protoToOutput: {
9
+ [0]: "unspecified",
10
+ [1]: "coinmarketcap",
11
+ [2]: "polyester"
12
+ } };
7
13
  const PairStatusCodec = { protoToOutput: {
8
14
  [0]: "unknown",
9
15
  [1]: "enabled",
@@ -14,6 +20,6 @@ const PairStatusCodec = { protoToOutput: {
14
20
  [6]: "halted"
15
21
  } };
16
22
  //#endregion
17
- export { PairStatusCodec, SideFilterCodec };
23
+ export { AssetDataSourceCodec, PairStatusCodec, SideFilterCodec };
18
24
 
19
25
  //# sourceMappingURL=market-data.codecs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"market-data.codecs.js","names":[],"sources":["../../../src/services/market-data/market-data.codecs.ts"],"sourcesContent":["import * as Proto from \"../../gen/marketdata/v1/marketdata_pb.js\";\n\nexport const SIDE_FILTER_VALUES = [\"buy\", \"sell\"] as const;\nexport type SideFilterValue = (typeof SIDE_FILTER_VALUES)[number];\n\nexport const SideFilterCodec = {\n inputToProto: {\n buy: Proto.SideFilter.BUY,\n sell: Proto.SideFilter.SELL,\n } satisfies Record<SideFilterValue, Proto.SideFilter>,\n} as const;\n\nexport const PairStatusCodec = {\n protoToOutput: {\n [Proto.PairStatus.UNSPECIFIED]: \"unknown\",\n [Proto.PairStatus.ENABLED]: \"enabled\",\n [Proto.PairStatus.DISABLED]: \"disabled\",\n [Proto.PairStatus.CANCEL_ONLY]: \"cancel_only\",\n [Proto.PairStatus.POST_ONLY]: \"post_only\",\n [Proto.PairStatus.REDUCE_ONLY]: \"reduce_only\",\n [Proto.PairStatus.HALTED]: \"halted\",\n },\n} as const;\n"],"mappings":";;AAKA,MAAa,kBAAkB,EAC3B,cAAc;CACV,KAAA;CACA,MAAA;AACJ,EACJ;AAEA,MAAa,kBAAkB,EAC3B,eAAe;EACqB,IAAA;EACJ,IAAA;EACC,IAAA;EACG,IAAA;EACF,IAAA;EACE,IAAA;EACL,IAAA;AAC/B,EACJ"}
1
+ {"version":3,"file":"market-data.codecs.js","names":[],"sources":["../../../src/services/market-data/market-data.codecs.ts"],"sourcesContent":["import { AssetDataSource } from \"../../gen/marketdata/v1/asset_info_pb.js\";\nimport * as Proto from \"../../gen/marketdata/v1/marketdata_pb.js\";\nimport type { ProtoToOutput } from \"../../utils/types.js\";\n\nexport const SIDE_FILTER_VALUES = [\"buy\", \"sell\"] as const;\nexport type SideFilterValue = (typeof SIDE_FILTER_VALUES)[number];\n\nexport const SideFilterCodec = {\n inputToProto: {\n buy: Proto.SideFilter.BUY,\n sell: Proto.SideFilter.SELL,\n } satisfies Record<SideFilterValue, Proto.SideFilter>,\n} as const;\n\nexport const ASSET_DATA_SOURCE_VALUES = [\"coinmarketcap\", \"polyester\"] as const;\n/** Who supplied a market value; show \"Source: CoinMarketCap\" with a `coinmarketcap` one. */\nexport type AssetDataSourceValue = (typeof ASSET_DATA_SOURCE_VALUES)[number];\n\nexport const AssetDataSourceCodec = {\n protoToOutput: {\n [AssetDataSource.SOURCE_UNSPECIFIED]: \"unspecified\",\n [AssetDataSource.COINMARKETCAP]: \"coinmarketcap\",\n [AssetDataSource.POLYESTER]: \"polyester\",\n } satisfies ProtoToOutput<AssetDataSource, AssetDataSourceValue>,\n} as const;\n\nexport const PairStatusCodec = {\n protoToOutput: {\n [Proto.PairStatus.UNSPECIFIED]: \"unknown\",\n [Proto.PairStatus.ENABLED]: \"enabled\",\n [Proto.PairStatus.DISABLED]: \"disabled\",\n [Proto.PairStatus.CANCEL_ONLY]: \"cancel_only\",\n [Proto.PairStatus.POST_ONLY]: \"post_only\",\n [Proto.PairStatus.REDUCE_ONLY]: \"reduce_only\",\n [Proto.PairStatus.HALTED]: \"halted\",\n },\n} as const;\n"],"mappings":";;;AAOA,MAAa,kBAAkB,EAC3B,cAAc;CACV,KAAA;CACA,MAAA;AACJ,EACJ;AAMA,MAAa,uBAAuB,EAChC,eAAe;EAC2B,IAAA;EACL,IAAA;EACJ,IAAA;AACjC,EACJ;AAEA,MAAa,kBAAkB,EAC3B,eAAe;EACqB,IAAA;EACJ,IAAA;EACC,IAAA;EACG,IAAA;EACF,IAAA;EACE,IAAA;EACL,IAAA;AAC/B,EACJ"}
@@ -39,8 +39,9 @@ declare class MarketDataService {
39
39
  getSpotConfig(options?: PolyesterRequestOptions): Promise<SpotConfig>;
40
40
  /**
41
41
  * Returns team-maintained asset information (description, official links, launch date and
42
- * price) for the requested ledger asset IDs, or for every asset with saved information,
43
- * ordered by `assetId`. Assets never edited are omitted. Public and cacheable; no pagination.
42
+ * price) and market statistics (supplies, market caps and rank) for the requested ledger
43
+ * asset IDs, or for every asset with either, ordered by `assetId`. Assets with neither are
44
+ * omitted. Public and cacheable; no pagination.
44
45
  */
45
46
  listAssetInfo(input?: ListAssetInfoInput, options?: PolyesterRequestOptions): Promise<AssetInfo[]>;
46
47
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"market-data.d.ts","names":[],"sources":["../../../src/services/market-data/market-data.ts"],"mappings":";;;;;;;;UAkCU,6BAA6B,mBAAmB;EACtD;;;;;cAMS;;EAKG,YAAA,YAAY,qBAAqB,UAAU,mBAAmB,QAAQ;;;;;;;;;;EAe5E,WACF,OAAO,sBACP,UAAU,0BACX;IAAU,QAAQ;IAAe;IAAuB,WAAW;;;;;;;;;EAsBhE,cAAc,UAAU,0BAA0B,QAAQ;;;;;;EAU1D,cACF,QAAO,oBACP,UAAU,0BACX,QAAQ;;;;;;EAWX,gBAAgB,OAAO"}
1
+ {"version":3,"file":"market-data.d.ts","names":[],"sources":["../../../src/services/market-data/market-data.ts"],"mappings":";;;;;;;;UAkCU,6BAA6B,mBAAmB;EACtD;;;;;cAMS;;EAKG,YAAA,YAAY,qBAAqB,UAAU,mBAAmB,QAAQ;;;;;;;;;;EAe5E,WACF,OAAO,sBACP,UAAU,0BACX;IAAU,QAAQ;IAAe;IAAuB,WAAW;;;;;;;;;EAsBhE,cAAc,UAAU,0BAA0B,QAAQ;;;;;;;EAW1D,cACF,QAAO,oBACP,UAAU,0BACX,QAAQ;;;;;;EAWX,gBAAgB,OAAO"}
@@ -58,8 +58,9 @@ var MarketDataService = class {
58
58
  }
59
59
  /**
60
60
  * Returns team-maintained asset information (description, official links, launch date and
61
- * price) for the requested ledger asset IDs, or for every asset with saved information,
62
- * ordered by `assetId`. Assets never edited are omitted. Public and cacheable; no pagination.
61
+ * price) and market statistics (supplies, market caps and rank) for the requested ledger
62
+ * asset IDs, or for every asset with either, ordered by `assetId`. Assets with neither are
63
+ * omitted. Public and cacheable; no pagination.
63
64
  */
64
65
  async listAssetInfo(input = {}, options) {
65
66
  const request = parse(ListAssetInfoInputSchema, input);
@@ -1 +1 @@
1
- {"version":3,"file":"market-data.js","names":["#client","Proto.MarketDataService","#realtime","#scales","Proto.MarketTradeBatchSchema"],"sources":["../../../src/services/market-data/market-data.ts"],"sourcesContent":["import * as Proto from \"../../gen/marketdata/v1/marketdata_pb.js\";\nimport { SymbolIdInputSchema } from \"../shared.js\";\nimport type { PolyesterRealtime } from \"../../realtime/types.js\";\nimport { createClient, type Client } from \"@connectrpc/connect\";\nimport {\n deliverBatch,\n type SdkSubscriptionErrorContext,\n} from \"../../shared/subscription-errors.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport type { BaseSubscribeInput } from \"../../shared/types.js\";\nimport { connectReadyGatedProtoChannel } from \"../../realtime/ready-gated-subscription.js\";\nimport {\n toConnectCallOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport type { SdkScales } from \"../../shared/decimal-surface.js\";\nimport type { PublicApiTransports } from \"../../shared/transports.js\";\nimport * as v from \"valibot\";\nimport {\n AssetInfoSchema,\n GetMarketTradesInputSchema,\n ListAssetInfoInputSchema,\n type AssetInfo,\n type ListAssetInfoInput,\n formatMarketTrade,\n type GetMarketTradesInput,\n type SpotConfig,\n SpotConfigSchema,\n type MarketTrade,\n TradeBackfillSchema,\n type TradeBackfill,\n} from \"./market-data.schemas.js\";\nimport { isDev } from \"../../utils/is-dev.js\";\n\ninterface SubscribeTradesInput extends BaseSubscribeInput<MarketTrade> {\n symbolId: number;\n}\n\n/**\n * Exposes public spot trades, spot configuration, and live trade streams.\n */\nexport class MarketDataService {\n #client: Client<typeof Proto.MarketDataService>;\n #realtime: PolyesterRealtime;\n #scales: SdkScales;\n\n constructor(transports: PublicApiTransports, realtime: PolyesterRealtime, scales: SdkScales) {\n this.#client = createClient(Proto.MarketDataService, transports.publicApi);\n this.#realtime = realtime;\n this.#scales = scales;\n }\n\n /**\n * Returns recent public trades for one spot market, ordered newest-first by execution timestamp with match id as a tie-breaker. Supports limit, time bounds, side filtering, and match-id pagination.\n *\n * With `afterTradeId`, it instead walks the symbol's trades by `matchId`, oldest first and\n * gap-free, to backfill trades missed on a live stream, and the result carries `backfill`.\n * Start from `\"0\"`, then pass `backfill.nextAfterTradeId`; when it equals the `afterTradeId`\n * sent, nothing newer is available yet, so retry later with backoff. `afterTradeId` cannot\n * be combined with `side`, `startTsNs`, `endTsNs` or `pageToken`.\n */\n async listTrades(\n input: GetMarketTradesInput,\n options?: PolyesterRequestOptions,\n ): Promise<{ trades: MarketTrade[]; nextPageToken: string; backfill?: TradeBackfill }> {\n await this.#scales.ready();\n const validatedInput = parse(GetMarketTradesInputSchema, input);\n const res = await this.#client.getTrades(validatedInput, toConnectCallOptions(options));\n const trades = res.trades.map((trade) => formatMarketTrade(this.#scales, trade));\n if (validatedInput.afterTradeId === undefined) {\n return { trades, nextPageToken: res.nextPageToken };\n }\n return {\n trades,\n nextPageToken: res.nextPageToken,\n backfill: parse(TradeBackfillSchema, res),\n };\n }\n\n /**\n * Returns the cacheable spot reference-data snapshot, including asset metadata, pair trading constraints, display scales, statuses, and market slippage defaults.\n *\n * This is the catalog's own data source, so it must never wait on catalog\n * readiness (that would deadlock the initial catalog refresh) and carries\n * no decimal conversion.\n */\n async getSpotConfig(options?: PolyesterRequestOptions): Promise<SpotConfig> {\n const res = await this.#client.getSpotConfig({}, toConnectCallOptions(options));\n return parse(SpotConfigSchema, res);\n }\n\n /**\n * Returns team-maintained asset information (description, official links, launch date and\n * price) for the requested ledger asset IDs, or for every asset with saved information,\n * ordered by `assetId`. Assets never edited are omitted. Public and cacheable; no pagination.\n */\n async listAssetInfo(\n input: ListAssetInfoInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<AssetInfo[]> {\n const request = parse(ListAssetInfoInputSchema, input);\n const res = await this.#client.listAssetInfo(request, toConnectCallOptions(options));\n return parse(v.array(AssetInfoSchema), res.assetInfo);\n }\n\n /**\n * Subscribes to public trade prints on public:spot:market:trades:{symbolId}:proto for the requested symbol and emits parsed market trades.\n * Each publication batches trades, emitted one at a time in execution order; a trade\n * whose `matchId` was already emitted replaces the earlier copy.\n */\n subscribeTrades(input: SubscribeTradesInput): () => void {\n const symbolId = parse(SymbolIdInputSchema, input.symbolId);\n const channel = `public:spot:market:trades:${symbolId}:proto`;\n const notifyError = (error: SdkSubscriptionErrorContext) => {\n if (isDev()) {\n console.error(\"Market trades subscription error\", error);\n }\n input.onError?.(error);\n };\n return connectReadyGatedProtoChannel(this.#realtime, {\n channel,\n schema: Proto.MarketTradeBatchSchema,\n ready: () => this.#scales.ready(),\n onPublication: (batch) =>\n deliverBatch(\n channel,\n batch.events,\n (trade) => input.onEvent(formatMarketTrade(this.#scales, trade)),\n notifyError,\n ),\n onConnected: () => input.onOpen?.(),\n onDisconnected: () => input.onClose?.(),\n onError: notifyError,\n });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAyCA,IAAa,oBAAb,MAA+B;CAC3B;CACA;CACA;CAEA,YAAY,YAAiC,UAA6B,QAAmB;EACzF,KAAKA,UAAU,aAAaC,qBAAyB,WAAW,SAAS;EACzE,KAAKC,YAAY;EACjB,KAAKC,UAAU;CACnB;;;;;;;;;;CAWA,MAAM,WACF,OACA,SACmF;EACnF,MAAM,KAAKA,QAAQ,MAAM;EACzB,MAAM,iBAAiB,MAAM,4BAA4B,KAAK;EAC9D,MAAM,MAAM,MAAM,KAAKH,QAAQ,UAAU,gBAAgB,qBAAqB,OAAO,CAAC;EACtF,MAAM,SAAS,IAAI,OAAO,KAAK,UAAU,kBAAkB,KAAKG,SAAS,KAAK,CAAC;EAC/E,IAAI,eAAe,iBAAiB,KAAA,GAChC,OAAO;GAAE;GAAQ,eAAe,IAAI;EAAc;EAEtD,OAAO;GACH;GACA,eAAe,IAAI;GACnB,UAAU,MAAM,qBAAqB,GAAG;EAC5C;CACJ;;;;;;;;CASA,MAAM,cAAc,SAAwD;EACxE,MAAM,MAAM,MAAM,KAAKH,QAAQ,cAAc,CAAC,GAAG,qBAAqB,OAAO,CAAC;EAC9E,OAAO,MAAM,kBAAkB,GAAG;CACtC;;;;;;CAOA,MAAM,cACF,QAA4B,CAAC,GAC7B,SACoB;EACpB,MAAM,UAAU,MAAM,0BAA0B,KAAK;EACrD,MAAM,MAAM,MAAM,KAAKA,QAAQ,cAAc,SAAS,qBAAqB,OAAO,CAAC;EACnF,OAAO,MAAM,EAAE,MAAM,eAAe,GAAG,IAAI,SAAS;CACxD;;;;;;CAOA,gBAAgB,OAAyC;EAErD,MAAM,UAAU,6BADC,MAAM,qBAAqB,MAAM,QACE,EAAE;EACtD,MAAM,eAAe,UAAuC;GACxD,IAAI,MAAM,GACN,QAAQ,MAAM,oCAAoC,KAAK;GAE3D,MAAM,UAAU,KAAK;EACzB;EACA,OAAO,8BAA8B,KAAKE,WAAW;GACjD;GACA,QAAQE;GACR,aAAa,KAAKD,QAAQ,MAAM;GAChC,gBAAgB,UACZ,aACI,SACA,MAAM,SACL,UAAU,MAAM,QAAQ,kBAAkB,KAAKA,SAAS,KAAK,CAAC,GAC/D,WACJ;GACJ,mBAAmB,MAAM,SAAS;GAClC,sBAAsB,MAAM,UAAU;GACtC,SAAS;EACb,CAAC;CACL;AACJ"}
1
+ {"version":3,"file":"market-data.js","names":["#client","Proto.MarketDataService","#realtime","#scales","Proto.MarketTradeBatchSchema"],"sources":["../../../src/services/market-data/market-data.ts"],"sourcesContent":["import * as Proto from \"../../gen/marketdata/v1/marketdata_pb.js\";\nimport { SymbolIdInputSchema } from \"../shared.js\";\nimport type { PolyesterRealtime } from \"../../realtime/types.js\";\nimport { createClient, type Client } from \"@connectrpc/connect\";\nimport {\n deliverBatch,\n type SdkSubscriptionErrorContext,\n} from \"../../shared/subscription-errors.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport type { BaseSubscribeInput } from \"../../shared/types.js\";\nimport { connectReadyGatedProtoChannel } from \"../../realtime/ready-gated-subscription.js\";\nimport {\n toConnectCallOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport type { SdkScales } from \"../../shared/decimal-surface.js\";\nimport type { PublicApiTransports } from \"../../shared/transports.js\";\nimport * as v from \"valibot\";\nimport {\n AssetInfoSchema,\n GetMarketTradesInputSchema,\n ListAssetInfoInputSchema,\n type AssetInfo,\n type ListAssetInfoInput,\n formatMarketTrade,\n type GetMarketTradesInput,\n type SpotConfig,\n SpotConfigSchema,\n type MarketTrade,\n TradeBackfillSchema,\n type TradeBackfill,\n} from \"./market-data.schemas.js\";\nimport { isDev } from \"../../utils/is-dev.js\";\n\ninterface SubscribeTradesInput extends BaseSubscribeInput<MarketTrade> {\n symbolId: number;\n}\n\n/**\n * Exposes public spot trades, spot configuration, and live trade streams.\n */\nexport class MarketDataService {\n #client: Client<typeof Proto.MarketDataService>;\n #realtime: PolyesterRealtime;\n #scales: SdkScales;\n\n constructor(transports: PublicApiTransports, realtime: PolyesterRealtime, scales: SdkScales) {\n this.#client = createClient(Proto.MarketDataService, transports.publicApi);\n this.#realtime = realtime;\n this.#scales = scales;\n }\n\n /**\n * Returns recent public trades for one spot market, ordered newest-first by execution timestamp with match id as a tie-breaker. Supports limit, time bounds, side filtering, and match-id pagination.\n *\n * With `afterTradeId`, it instead walks the symbol's trades by `matchId`, oldest first and\n * gap-free, to backfill trades missed on a live stream, and the result carries `backfill`.\n * Start from `\"0\"`, then pass `backfill.nextAfterTradeId`; when it equals the `afterTradeId`\n * sent, nothing newer is available yet, so retry later with backoff. `afterTradeId` cannot\n * be combined with `side`, `startTsNs`, `endTsNs` or `pageToken`.\n */\n async listTrades(\n input: GetMarketTradesInput,\n options?: PolyesterRequestOptions,\n ): Promise<{ trades: MarketTrade[]; nextPageToken: string; backfill?: TradeBackfill }> {\n await this.#scales.ready();\n const validatedInput = parse(GetMarketTradesInputSchema, input);\n const res = await this.#client.getTrades(validatedInput, toConnectCallOptions(options));\n const trades = res.trades.map((trade) => formatMarketTrade(this.#scales, trade));\n if (validatedInput.afterTradeId === undefined) {\n return { trades, nextPageToken: res.nextPageToken };\n }\n return {\n trades,\n nextPageToken: res.nextPageToken,\n backfill: parse(TradeBackfillSchema, res),\n };\n }\n\n /**\n * Returns the cacheable spot reference-data snapshot, including asset metadata, pair trading constraints, display scales, statuses, and market slippage defaults.\n *\n * This is the catalog's own data source, so it must never wait on catalog\n * readiness (that would deadlock the initial catalog refresh) and carries\n * no decimal conversion.\n */\n async getSpotConfig(options?: PolyesterRequestOptions): Promise<SpotConfig> {\n const res = await this.#client.getSpotConfig({}, toConnectCallOptions(options));\n return parse(SpotConfigSchema, res);\n }\n\n /**\n * Returns team-maintained asset information (description, official links, launch date and\n * price) and market statistics (supplies, market caps and rank) for the requested ledger\n * asset IDs, or for every asset with either, ordered by `assetId`. Assets with neither are\n * omitted. Public and cacheable; no pagination.\n */\n async listAssetInfo(\n input: ListAssetInfoInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<AssetInfo[]> {\n const request = parse(ListAssetInfoInputSchema, input);\n const res = await this.#client.listAssetInfo(request, toConnectCallOptions(options));\n return parse(v.array(AssetInfoSchema), res.assetInfo);\n }\n\n /**\n * Subscribes to public trade prints on public:spot:market:trades:{symbolId}:proto for the requested symbol and emits parsed market trades.\n * Each publication batches trades, emitted one at a time in execution order; a trade\n * whose `matchId` was already emitted replaces the earlier copy.\n */\n subscribeTrades(input: SubscribeTradesInput): () => void {\n const symbolId = parse(SymbolIdInputSchema, input.symbolId);\n const channel = `public:spot:market:trades:${symbolId}:proto`;\n const notifyError = (error: SdkSubscriptionErrorContext) => {\n if (isDev()) {\n console.error(\"Market trades subscription error\", error);\n }\n input.onError?.(error);\n };\n return connectReadyGatedProtoChannel(this.#realtime, {\n channel,\n schema: Proto.MarketTradeBatchSchema,\n ready: () => this.#scales.ready(),\n onPublication: (batch) =>\n deliverBatch(\n channel,\n batch.events,\n (trade) => input.onEvent(formatMarketTrade(this.#scales, trade)),\n notifyError,\n ),\n onConnected: () => input.onOpen?.(),\n onDisconnected: () => input.onClose?.(),\n onError: notifyError,\n });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAyCA,IAAa,oBAAb,MAA+B;CAC3B;CACA;CACA;CAEA,YAAY,YAAiC,UAA6B,QAAmB;EACzF,KAAKA,UAAU,aAAaC,qBAAyB,WAAW,SAAS;EACzE,KAAKC,YAAY;EACjB,KAAKC,UAAU;CACnB;;;;;;;;;;CAWA,MAAM,WACF,OACA,SACmF;EACnF,MAAM,KAAKA,QAAQ,MAAM;EACzB,MAAM,iBAAiB,MAAM,4BAA4B,KAAK;EAC9D,MAAM,MAAM,MAAM,KAAKH,QAAQ,UAAU,gBAAgB,qBAAqB,OAAO,CAAC;EACtF,MAAM,SAAS,IAAI,OAAO,KAAK,UAAU,kBAAkB,KAAKG,SAAS,KAAK,CAAC;EAC/E,IAAI,eAAe,iBAAiB,KAAA,GAChC,OAAO;GAAE;GAAQ,eAAe,IAAI;EAAc;EAEtD,OAAO;GACH;GACA,eAAe,IAAI;GACnB,UAAU,MAAM,qBAAqB,GAAG;EAC5C;CACJ;;;;;;;;CASA,MAAM,cAAc,SAAwD;EACxE,MAAM,MAAM,MAAM,KAAKH,QAAQ,cAAc,CAAC,GAAG,qBAAqB,OAAO,CAAC;EAC9E,OAAO,MAAM,kBAAkB,GAAG;CACtC;;;;;;;CAQA,MAAM,cACF,QAA4B,CAAC,GAC7B,SACoB;EACpB,MAAM,UAAU,MAAM,0BAA0B,KAAK;EACrD,MAAM,MAAM,MAAM,KAAKA,QAAQ,cAAc,SAAS,qBAAqB,OAAO,CAAC;EACnF,OAAO,MAAM,EAAE,MAAM,eAAe,GAAG,IAAI,SAAS;CACxD;;;;;;CAOA,gBAAgB,OAAyC;EAErD,MAAM,UAAU,6BADC,MAAM,qBAAqB,MAAM,QACE,EAAE;EACtD,MAAM,eAAe,UAAuC;GACxD,IAAI,MAAM,GACN,QAAQ,MAAM,oCAAoC,KAAK;GAE3D,MAAM,UAAU,KAAK;EACzB;EACA,OAAO,8BAA8B,KAAKE,WAAW;GACjD;GACA,QAAQE;GACR,aAAa,KAAKD,QAAQ,MAAM;GAChC,gBAAgB,UACZ,aACI,SACA,MAAM,SACL,UAAU,MAAM,QAAQ,kBAAkB,KAAKA,SAAS,KAAK,CAAC,GAC/D,WACJ;GACJ,mBAAmB,MAAM,SAAS;GAClC,sBAAsB,MAAM,UAAU;GACtC,SAAS;EACb,CAAC;CACL;AACJ"}