@polyester/sdk 0.4.0 → 0.4.2

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 (296) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/_virtual/_rolldown/runtime.js +1 -15
  3. package/dist/catalogs/snapshot-validation.js +63 -63
  4. package/dist/catalogs/snapshot-validation.js.map +1 -1
  5. package/dist/core-client.d.ts +9 -0
  6. package/dist/core-client.d.ts.map +1 -1
  7. package/dist/core-client.js +21 -0
  8. package/dist/core-client.js.map +1 -1
  9. package/dist/gen/fees/v1/fees_pb.d.ts +124 -0
  10. package/dist/gen/fees/v1/fees_pb.d.ts.map +1 -0
  11. package/dist/gen/fees/v1/fees_pb.js +39 -0
  12. package/dist/gen/fees/v1/fees_pb.js.map +1 -0
  13. package/dist/gen/index.d.ts +4 -1
  14. package/dist/gen/index.js +4 -1
  15. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +223 -0
  16. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts.map +1 -0
  17. package/dist/gen/ratelimit/v1/ratelimit_pb.js +86 -0
  18. package/dist/gen/ratelimit/v1/ratelimit_pb.js.map +1 -0
  19. package/dist/gen/vip/v1/vip_pb.d.ts +277 -0
  20. package/dist/gen/vip/v1/vip_pb.d.ts.map +1 -0
  21. package/dist/gen/vip/v1/vip_pb.js +60 -0
  22. package/dist/gen/vip/v1/vip_pb.js.map +1 -0
  23. package/dist/index.d.ts +8 -1
  24. package/dist/services/accounts/accounts.js +1 -1
  25. package/dist/services/accounts/accounts.js.map +1 -1
  26. package/dist/services/accounts/accounts.schemas.d.ts +13 -13
  27. package/dist/services/accounts/accounts.schemas.d.ts.map +1 -1
  28. package/dist/services/accounts/accounts.schemas.js +11 -11
  29. package/dist/services/accounts/accounts.schemas.js.map +1 -1
  30. package/dist/services/address-book/address-book.js.map +1 -1
  31. package/dist/services/address-book/address-book.schemas.d.ts +751 -751
  32. package/dist/services/address-book/address-book.schemas.d.ts.map +1 -1
  33. package/dist/services/address-book/address-book.schemas.js +160 -159
  34. package/dist/services/address-book/address-book.schemas.js.map +1 -1
  35. package/dist/services/api-keys/api-keys.d.ts +6 -6
  36. package/dist/services/api-keys/api-keys.d.ts.map +1 -1
  37. package/dist/services/api-keys/api-keys.js.map +1 -1
  38. package/dist/services/api-keys/api-keys.schemas.d.ts +62 -62
  39. package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
  40. package/dist/services/api-keys/api-keys.schemas.js +34 -34
  41. package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
  42. package/dist/services/auth/auth.d.ts +39 -39
  43. package/dist/services/auth/auth.d.ts.map +1 -1
  44. package/dist/services/auth/auth.js +19 -18
  45. package/dist/services/auth/auth.js.map +1 -1
  46. package/dist/services/auth/profile/profile.d.ts +2 -2
  47. package/dist/services/auth/profile/profile.d.ts.map +1 -1
  48. package/dist/services/auth/profile/profile.js +3 -2
  49. package/dist/services/auth/profile/profile.js.map +1 -1
  50. package/dist/services/auth/profile/profile.schemas.d.ts +41 -41
  51. package/dist/services/auth/profile/profile.schemas.d.ts.map +1 -1
  52. package/dist/services/auth/profile/profile.schemas.js +27 -27
  53. package/dist/services/auth/profile/profile.schemas.js.map +1 -1
  54. package/dist/services/auth/session.schemas.js +17 -17
  55. package/dist/services/auth/session.schemas.js.map +1 -1
  56. package/dist/services/balances/balances.d.ts.map +1 -1
  57. package/dist/services/balances/balances.js +3 -2
  58. package/dist/services/balances/balances.js.map +1 -1
  59. package/dist/services/balances/balances.schemas.d.ts +95 -95
  60. package/dist/services/balances/balances.schemas.d.ts.map +1 -1
  61. package/dist/services/balances/balances.schemas.js +61 -61
  62. package/dist/services/balances/balances.schemas.js.map +1 -1
  63. package/dist/services/candles/candles.d.ts.map +1 -1
  64. package/dist/services/candles/candles.js +5 -4
  65. package/dist/services/candles/candles.js.map +1 -1
  66. package/dist/services/candles/candles.schemas.d.ts +64 -64
  67. package/dist/services/candles/candles.schemas.d.ts.map +1 -1
  68. package/dist/services/candles/candles.schemas.js +47 -47
  69. package/dist/services/candles/candles.schemas.js.map +1 -1
  70. package/dist/services/chain-analytics/chain-analytics.js.map +1 -1
  71. package/dist/services/chain-analytics/chain-analytics.schemas.d.ts +68 -68
  72. package/dist/services/chain-analytics/chain-analytics.schemas.d.ts.map +1 -1
  73. package/dist/services/chain-analytics/chain-analytics.schemas.js +29 -29
  74. package/dist/services/chain-analytics/chain-analytics.schemas.js.map +1 -1
  75. package/dist/services/deposit/deposit.js.map +1 -1
  76. package/dist/services/deposit/deposit.schemas.d.ts +17 -17
  77. package/dist/services/deposit/deposit.schemas.d.ts.map +1 -1
  78. package/dist/services/deposit/deposit.schemas.js +11 -11
  79. package/dist/services/deposit/deposit.schemas.js.map +1 -1
  80. package/dist/services/fees/fees.d.ts +19 -0
  81. package/dist/services/fees/fees.d.ts.map +1 -0
  82. package/dist/services/fees/fees.js +32 -0
  83. package/dist/services/fees/fees.js.map +1 -0
  84. package/dist/services/fees/fees.schemas.d.ts +28 -0
  85. package/dist/services/fees/fees.schemas.d.ts.map +1 -0
  86. package/dist/services/fees/fees.schemas.js +25 -0
  87. package/dist/services/fees/fees.schemas.js.map +1 -0
  88. package/dist/services/fees/fees.types.d.ts +2 -0
  89. package/dist/services/fees/index.d.ts +3 -0
  90. package/dist/services/guard-signer/guard-signer.js.map +1 -1
  91. package/dist/services/guard-signer/guard-signer.schemas.d.ts +75 -75
  92. package/dist/services/guard-signer/guard-signer.schemas.d.ts.map +1 -1
  93. package/dist/services/guard-signer/guard-signer.schemas.js +42 -42
  94. package/dist/services/guard-signer/guard-signer.schemas.js.map +1 -1
  95. package/dist/services/heatmap/heatmap.d.ts.map +1 -1
  96. package/dist/services/heatmap/heatmap.js +5 -4
  97. package/dist/services/heatmap/heatmap.js.map +1 -1
  98. package/dist/services/heatmap/heatmap.schemas.d.ts +138 -138
  99. package/dist/services/heatmap/heatmap.schemas.d.ts.map +1 -1
  100. package/dist/services/heatmap/heatmap.schemas.js +47 -47
  101. package/dist/services/heatmap/heatmap.schemas.js.map +1 -1
  102. package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
  103. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +53 -53
  104. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts.map +1 -1
  105. package/dist/services/internal-transfers/internal-transfers.schemas.js +27 -27
  106. package/dist/services/internal-transfers/internal-transfers.schemas.js.map +1 -1
  107. package/dist/services/lifecycle/lifecycle.d.ts.map +1 -1
  108. package/dist/services/lifecycle/lifecycle.js +3 -2
  109. package/dist/services/lifecycle/lifecycle.js.map +1 -1
  110. package/dist/services/lifecycle/lifecycle.schemas.d.ts +614 -614
  111. package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
  112. package/dist/services/lifecycle/lifecycle.schemas.js +146 -146
  113. package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
  114. package/dist/services/market-data/market-data.d.ts.map +1 -1
  115. package/dist/services/market-data/market-data.js +4 -3
  116. package/dist/services/market-data/market-data.js.map +1 -1
  117. package/dist/services/market-data/market-data.schemas.d.ts +19 -19
  118. package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
  119. package/dist/services/market-data/market-data.schemas.js +50 -50
  120. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  121. package/dist/services/market-overview/market-overview.d.ts.map +1 -1
  122. package/dist/services/market-overview/market-overview.js +3 -2
  123. package/dist/services/market-overview/market-overview.js.map +1 -1
  124. package/dist/services/market-overview/market-overview.schemas.d.ts +37 -37
  125. package/dist/services/market-overview/market-overview.schemas.d.ts.map +1 -1
  126. package/dist/services/market-overview/market-overview.schemas.js +33 -33
  127. package/dist/services/market-overview/market-overview.schemas.js.map +1 -1
  128. package/dist/services/mfa/mfa.js +1 -1
  129. package/dist/services/mfa/mfa.js.map +1 -1
  130. package/dist/services/mfa/mfa.schemas.d.ts +206 -206
  131. package/dist/services/mfa/mfa.schemas.d.ts.map +1 -1
  132. package/dist/services/mfa/mfa.schemas.js +83 -83
  133. package/dist/services/mfa/mfa.schemas.js.map +1 -1
  134. package/dist/services/orderbook/orderbook.d.ts +2 -2
  135. package/dist/services/orderbook/orderbook.d.ts.map +1 -1
  136. package/dist/services/orderbook/orderbook.js +3 -2
  137. package/dist/services/orderbook/orderbook.js.map +1 -1
  138. package/dist/services/orderbook/orderbook.schemas.d.ts +23 -23
  139. package/dist/services/orderbook/orderbook.schemas.d.ts.map +1 -1
  140. package/dist/services/orderbook/orderbook.schemas.js +15 -15
  141. package/dist/services/orderbook/orderbook.schemas.js.map +1 -1
  142. package/dist/services/orders/order-errors.schemas.d.ts +18 -18
  143. package/dist/services/orders/order-errors.schemas.d.ts.map +1 -1
  144. package/dist/services/orders/order-errors.schemas.js +8 -8
  145. package/dist/services/orders/order-errors.schemas.js.map +1 -1
  146. package/dist/services/orders/orders-batch.schemas.d.ts +492 -492
  147. package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
  148. package/dist/services/orders/orders-batch.schemas.js +117 -117
  149. package/dist/services/orders/orders-batch.schemas.js.map +1 -1
  150. package/dist/services/orders/orders-identifiers.schemas.js +5 -5
  151. package/dist/services/orders/orders-identifiers.schemas.js.map +1 -1
  152. package/dist/services/orders/orders-input.schemas.d.ts +648 -648
  153. package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
  154. package/dist/services/orders/orders-input.schemas.js +95 -95
  155. package/dist/services/orders/orders-input.schemas.js.map +1 -1
  156. package/dist/services/orders/orders-modify.schemas.d.ts +351 -351
  157. package/dist/services/orders/orders-modify.schemas.d.ts.map +1 -1
  158. package/dist/services/orders/orders-modify.schemas.js +44 -44
  159. package/dist/services/orders/orders-modify.schemas.js.map +1 -1
  160. package/dist/services/orders/orders-output.schemas.d.ts +179 -179
  161. package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
  162. package/dist/services/orders/orders-output.schemas.js +49 -49
  163. package/dist/services/orders/orders-output.schemas.js.map +1 -1
  164. package/dist/services/orders/orders-risk.schemas.d.ts +226 -226
  165. package/dist/services/orders/orders-risk.schemas.d.ts.map +1 -1
  166. package/dist/services/orders/orders-risk.schemas.js +69 -69
  167. package/dist/services/orders/orders-risk.schemas.js.map +1 -1
  168. package/dist/services/orders/orders.d.ts +6 -6
  169. package/dist/services/orders/orders.d.ts.map +1 -1
  170. package/dist/services/orders/orders.js +4 -3
  171. package/dist/services/orders/orders.js.map +1 -1
  172. package/dist/services/policies/api-key-policies/api-key-policies.d.ts +6 -6
  173. package/dist/services/policies/api-key-policies/api-key-policies.d.ts.map +1 -1
  174. package/dist/services/policies/api-key-policies/api-key-policies.js.map +1 -1
  175. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +105 -105
  176. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts.map +1 -1
  177. package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +49 -49
  178. package/dist/services/policies/api-key-policies/api-key-policies.schemas.js.map +1 -1
  179. package/dist/services/policies/shared.d.ts +5 -5
  180. package/dist/services/policies/shared.d.ts.map +1 -1
  181. package/dist/services/policies/shared.js +10 -10
  182. package/dist/services/policies/shared.js.map +1 -1
  183. package/dist/services/policies/subaccount-policies/subaccount-policies.d.ts +6 -6
  184. package/dist/services/policies/subaccount-policies/subaccount-policies.d.ts.map +1 -1
  185. package/dist/services/policies/subaccount-policies/subaccount-policies.js +3 -2
  186. package/dist/services/policies/subaccount-policies/subaccount-policies.js.map +1 -1
  187. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +124 -124
  188. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts.map +1 -1
  189. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +75 -75
  190. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
  191. package/dist/services/rate-limits/index.d.ts +4 -0
  192. package/dist/services/rate-limits/rate-limits.codecs.d.ts +6 -0
  193. package/dist/services/rate-limits/rate-limits.codecs.d.ts.map +1 -0
  194. package/dist/services/rate-limits/rate-limits.codecs.js +11 -0
  195. package/dist/services/rate-limits/rate-limits.codecs.js.map +1 -0
  196. package/dist/services/rate-limits/rate-limits.d.ts +24 -0
  197. package/dist/services/rate-limits/rate-limits.d.ts.map +1 -0
  198. package/dist/services/rate-limits/rate-limits.js +40 -0
  199. package/dist/services/rate-limits/rate-limits.js.map +1 -0
  200. package/dist/services/rate-limits/rate-limits.schemas.d.ts +58 -0
  201. package/dist/services/rate-limits/rate-limits.schemas.d.ts.map +1 -0
  202. package/dist/services/rate-limits/rate-limits.schemas.js +30 -0
  203. package/dist/services/rate-limits/rate-limits.schemas.js.map +1 -0
  204. package/dist/services/rate-limits/rate-limits.types.d.ts +3 -0
  205. package/dist/services/shared.js +11 -11
  206. package/dist/services/shared.js.map +1 -1
  207. package/dist/services/social-verification/social-verification.d.ts +3 -3
  208. package/dist/services/social-verification/social-verification.d.ts.map +1 -1
  209. package/dist/services/social-verification/social-verification.js.map +1 -1
  210. package/dist/services/social-verification/social-verification.schemas.d.ts +54 -54
  211. package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
  212. package/dist/services/social-verification/social-verification.schemas.js +28 -28
  213. package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
  214. package/dist/services/subaccounts/subaccounts.d.ts +14 -14
  215. package/dist/services/subaccounts/subaccounts.d.ts.map +1 -1
  216. package/dist/services/subaccounts/subaccounts.js +9 -8
  217. package/dist/services/subaccounts/subaccounts.js.map +1 -1
  218. package/dist/services/subaccounts/subaccounts.schemas.d.ts +137 -137
  219. package/dist/services/subaccounts/subaccounts.schemas.d.ts.map +1 -1
  220. package/dist/services/subaccounts/subaccounts.schemas.js +72 -72
  221. package/dist/services/subaccounts/subaccounts.schemas.js.map +1 -1
  222. package/dist/services/trades/trades.d.ts +2 -2
  223. package/dist/services/trades/trades.d.ts.map +1 -1
  224. package/dist/services/trades/trades.js +3 -2
  225. package/dist/services/trades/trades.js.map +1 -1
  226. package/dist/services/trades/trades.schemas.d.ts +31 -31
  227. package/dist/services/trades/trades.schemas.d.ts.map +1 -1
  228. package/dist/services/trades/trades.schemas.js +24 -24
  229. package/dist/services/trades/trades.schemas.js.map +1 -1
  230. package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
  231. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  232. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +45 -45
  233. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  234. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +36 -36
  235. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  236. package/dist/services/transfers/transfers.d.ts.map +1 -1
  237. package/dist/services/transfers/transfers.js +3 -2
  238. package/dist/services/transfers/transfers.js.map +1 -1
  239. package/dist/services/transfers/transfers.schemas.d.ts +42 -42
  240. package/dist/services/transfers/transfers.schemas.d.ts.map +1 -1
  241. package/dist/services/transfers/transfers.schemas.js +30 -30
  242. package/dist/services/transfers/transfers.schemas.js.map +1 -1
  243. package/dist/services/triggers/trigger-child-order.schemas.js +23 -23
  244. package/dist/services/triggers/trigger-child-order.schemas.js.map +1 -1
  245. package/dist/services/triggers/trigger-input.schemas.d.ts +226 -226
  246. package/dist/services/triggers/trigger-input.schemas.d.ts.map +1 -1
  247. package/dist/services/triggers/trigger-input.schemas.js +53 -53
  248. package/dist/services/triggers/trigger-input.schemas.js.map +1 -1
  249. package/dist/services/triggers/triggers-output.schemas.d.ts +218 -218
  250. package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
  251. package/dist/services/triggers/triggers-output.schemas.js +152 -152
  252. package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
  253. package/dist/services/triggers/triggers.d.ts.map +1 -1
  254. package/dist/services/triggers/triggers.js +4 -3
  255. package/dist/services/triggers/triggers.js.map +1 -1
  256. package/dist/services/vip/index.d.ts +3 -0
  257. package/dist/services/vip/vip.d.ts +22 -0
  258. package/dist/services/vip/vip.d.ts.map +1 -0
  259. package/dist/services/vip/vip.js +35 -0
  260. package/dist/services/vip/vip.js.map +1 -0
  261. package/dist/services/vip/vip.schemas.d.ts +90 -0
  262. package/dist/services/vip/vip.schemas.d.ts.map +1 -0
  263. package/dist/services/vip/vip.schemas.js +47 -0
  264. package/dist/services/vip/vip.schemas.js.map +1 -0
  265. package/dist/services/vip/vip.types.d.ts +2 -0
  266. package/dist/services/whiteboard/whiteboard.js.map +1 -1
  267. package/dist/services/whiteboard/whiteboard.schemas.d.ts +379 -379
  268. package/dist/services/whiteboard/whiteboard.schemas.d.ts.map +1 -1
  269. package/dist/services/whiteboard/whiteboard.schemas.js +71 -71
  270. package/dist/services/whiteboard/whiteboard.schemas.js.map +1 -1
  271. package/dist/services/zipper/zipper.js.map +1 -1
  272. package/dist/services/zipper/zipper.schemas.d.ts +1 -1
  273. package/dist/services/zipper/zipper.schemas.js +54 -54
  274. package/dist/services/zipper/zipper.schemas.js.map +1 -1
  275. package/dist/shared/account-scope.d.ts +6 -6
  276. package/dist/shared/account-scope.d.ts.map +1 -1
  277. package/dist/shared/account-scope.js +3 -3
  278. package/dist/shared/account-scope.js.map +1 -1
  279. package/dist/shared/connect-error-mapping.js +2 -2
  280. package/dist/shared/connect-error-mapping.js.map +1 -1
  281. package/dist/shared/rate-limit.schemas.d.ts +12 -12
  282. package/dist/shared/rate-limit.schemas.d.ts.map +1 -1
  283. package/dist/shared/rate-limit.schemas.js +7 -7
  284. package/dist/shared/rate-limit.schemas.js.map +1 -1
  285. package/dist/shared/schemas.js +26 -26
  286. package/dist/shared/schemas.js.map +1 -1
  287. package/dist/shared/validation.js +1 -6
  288. package/dist/shared/validation.js.map +1 -1
  289. package/dist/utils/connect-order-errors.js +2 -2
  290. package/dist/utils/connect-order-errors.js.map +1 -1
  291. package/dist/wired-services.d.ts.map +1 -1
  292. package/dist/wired-services.js +6 -0
  293. package/dist/wired-services.js.map +1 -1
  294. package/package.json +3 -3
  295. package/dist/shared/validation.d.ts +0 -14
  296. package/d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C5C,oBAAoB,EAAE,mBAAmB;KACzC,4BAA4B,EAAE,mBAAmB;KACjD,4BAA4B,EAAE,mBAAmB;KACjD,sBAAsB,EAAE,mBAAmB;KAE3C,2BAA2B,EAAE,mBAAmB;KAChD,yBAAyB,EAAE,mBAAmB;KAC9C,+BAA+B,EAAE,mBAAmB;KAEpD,oBAAoB,EAAE,mBAAmB;KACzC,sBAAsB,EAAE,mBAAmB;KAE3C,+BAA+B,EAAE,mBAAmB;KACpD,qBAAqB,EAAE,mBAAmB;KAC1C,kBAAkB;KAClB,wBAAwB,EAAE,mBAAmB;KAC7C,uBAAuB;KACvB,qBAAqB;KACrB,gBAAgB;KAChB,wBAAwB;KACxB,4BAA4B;KAE5B,uBAAuB,EAAE,mBAAmB"}
@@ -1,4 +1,3 @@
1
- import { validation_exports } from "../../shared/validation.js";
2
1
  import { requiredEnumLabel } from "../../shared/proto-enum-codec.js";
3
2
  import { idToBigInt } from "../../utils/base58-id.js";
4
3
  import { PublicIdSchema } from "../../shared/schemas.js";
@@ -7,9 +6,10 @@ import { fromU128 } from "../../utils/u128.js";
7
6
  import { FlowDomain, FlowKind, FlowState, LifecycleSource, RequestFeeStatus } from "../../gen/chain/lifecycle/v1/types_pb.js";
8
7
  import { FlowStep, FlowStepActivityKind, FlowTimelineStatus } from "../../gen/chain/lifecycle/v1/lifecycle_read_pb.js";
9
8
  import { LIFECYCLE_FLOW_KIND_VALUES, LIFECYCLE_FLOW_STATE_VALUES, LIFECYCLE_LIST_ORDER_BY_VALUES, LIFECYCLE_LIST_SCOPE_VALUES, LIFECYCLE_SORT_VALUES, LIFECYCLE_TX_LOOKUP_KIND_VALUES, LifecycleFlowDomainCodec, LifecycleFlowKindCodec, LifecycleFlowStateCodec, LifecycleFlowStepActivityKindCodec, LifecycleFlowStepCodec, LifecycleFlowTimelineStatusCodec, LifecycleListOrderByCodec, LifecycleListScopeCodec, LifecycleRequestFeeStatusCodec, LifecycleSortCodec, LifecycleSourceCodec, LifecycleTxLookupKindCodec, lifecycleReasonFromCode } from "./lifecycle.codecs.js";
9
+ import * as v from "valibot";
10
10
  //#region src/services/lifecycle/lifecycle.schemas.ts
11
- const FlowKindSchema = validation_exports.picklist(LIFECYCLE_FLOW_KIND_VALUES);
12
- const FlowStateSchema = validation_exports.picklist(LIFECYCLE_FLOW_STATE_VALUES);
11
+ const FlowKindSchema = v.picklist(LIFECYCLE_FLOW_KIND_VALUES);
12
+ const FlowStateSchema = v.picklist(LIFECYCLE_FLOW_STATE_VALUES);
13
13
  const canonicalTxHashPattern = /^0x[0-9a-fA-F]{64}$/;
14
14
  const chainTxHexPattern = /^[0-9a-fA-F]{64}$/;
15
15
  const chainNativeTxIdPattern = /^[A-Za-z0-9]{8,128}$/;
@@ -25,23 +25,23 @@ function normalizeChainTxIdentifier(value) {
25
25
  if (chainTxHexPattern.test(value)) return value;
26
26
  return value;
27
27
  }
28
- const ChainTxIdentifierSchema = validation_exports.pipe(validation_exports.string(), validation_exports.trim(), validation_exports.minLength(1, "txHash is required."), validation_exports.check(isChainTxIdentifier, "txHash must be a valid EVM hash or chain-native transaction id."), validation_exports.transform(normalizeChainTxIdentifier));
29
- const AccountSelectorIdSchema = validation_exports.pipe(validation_exports.string(), validation_exports.trim(), validation_exports.minLength(1));
30
- const SmartAccountAddressSchema = validation_exports.pipe(validation_exports.string(), validation_exports.trim(), validation_exports.regex(smartAccountAddressPattern, "smartAccountAddress must be a canonical 0x address."));
31
- const LifecycleAccountSelectorInputSchema = validation_exports.pipe(validation_exports.variant("kind", [
32
- validation_exports.strictObject({
33
- kind: validation_exports.literal("accountId"),
28
+ const ChainTxIdentifierSchema = v.pipe(v.string(), v.trim(), v.minLength(1, "txHash is required."), v.check(isChainTxIdentifier, "txHash must be a valid EVM hash or chain-native transaction id."), v.transform(normalizeChainTxIdentifier));
29
+ const AccountSelectorIdSchema = v.pipe(v.string(), v.trim(), v.minLength(1));
30
+ const SmartAccountAddressSchema = v.pipe(v.string(), v.trim(), v.regex(smartAccountAddressPattern, "smartAccountAddress must be a canonical 0x address."));
31
+ const LifecycleAccountSelectorInputSchema = v.pipe(v.variant("kind", [
32
+ v.strictObject({
33
+ kind: v.literal("accountId"),
34
34
  accountId: AccountSelectorIdSchema
35
35
  }),
36
- validation_exports.strictObject({
37
- kind: validation_exports.literal("ownerAccountId"),
36
+ v.strictObject({
37
+ kind: v.literal("ownerAccountId"),
38
38
  ownerAccountId: AccountSelectorIdSchema
39
39
  }),
40
- validation_exports.strictObject({
41
- kind: validation_exports.literal("smartAccountAddress"),
40
+ v.strictObject({
41
+ kind: v.literal("smartAccountAddress"),
42
42
  smartAccountAddress: SmartAccountAddressSchema
43
43
  })
44
- ]), validation_exports.transform((selector) => {
44
+ ]), v.transform((selector) => {
45
45
  switch (selector.kind) {
46
46
  case "accountId": return {
47
47
  case: "ownerAccountId",
@@ -57,17 +57,17 @@ const LifecycleAccountSelectorInputSchema = validation_exports.pipe(validation_e
57
57
  };
58
58
  }
59
59
  }));
60
- const Uint32Schema = validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.gtValue(0), validation_exports.maxValue(maxUint32));
61
- const LifecycleU128RawSchema = validation_exports.object({
62
- hi: validation_exports.bigint(),
63
- lo: validation_exports.bigint()
60
+ const Uint32Schema = v.pipe(v.number(), v.integer(), v.gtValue(0), v.maxValue(maxUint32));
61
+ const LifecycleU128RawSchema = v.object({
62
+ hi: v.bigint(),
63
+ lo: v.bigint()
64
64
  });
65
65
  /**
66
66
  * Wire `amount_e18` u128 → public decimal string. On-chain unified-asset
67
67
  * amounts are always 18-decimal scaled, so the conversion uses the constant
68
68
  * E18 scale and needs no catalog access.
69
69
  */
70
- const LifecycleAmountSchema = validation_exports.pipe(LifecycleU128RawSchema, validation_exports.transform((v) => scaledToDecimalOutput(fromU128(v), 18)));
70
+ const LifecycleAmountSchema = v.pipe(LifecycleU128RawSchema, v.transform((v) => scaledToDecimalOutput(fromU128(v), 18)));
71
71
  /**
72
72
  * Renames the wire `amountE18` key to the public decimal `amount` field.
73
73
  * Preserves optional semantics exactly: when the wire field is unset, the
@@ -80,17 +80,17 @@ function renameAmountE18(value) {
80
80
  amount: amountE18
81
81
  };
82
82
  }
83
- const LifecycleAssetIdsSchema = validation_exports.object({
84
- zippedAssetId: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
85
- unifiedAssetId: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0))
83
+ const LifecycleAssetIdsSchema = v.object({
84
+ zippedAssetId: v.pipe(v.number(), v.integer(), v.minValue(0)),
85
+ unifiedAssetId: v.pipe(v.number(), v.integer(), v.minValue(0))
86
86
  });
87
- const LifecycleFlowStepEnumSchema = validation_exports.pipe(validation_exports.enum(FlowStep), validation_exports.transform((v) => requiredEnumLabel(LifecycleFlowStepCodec.protoToOutput, v, "LifecycleFlowStepSchema", "step")));
88
- const LifecycleSourceEnumSchema = validation_exports.pipe(validation_exports.enum(LifecycleSource), validation_exports.transform((v) => requiredEnumLabel(LifecycleSourceCodec.protoToOutput, v, "LifecycleSourceSchema", "source")));
89
- const LifecycleFlowKindEnumSchema = validation_exports.pipe(validation_exports.enum(FlowKind), validation_exports.transform((v) => requiredEnumLabel(LifecycleFlowKindCodec.protoToOutput, v, "LifecycleFlowKindSchema", "flow kind")));
90
- const LifecycleFlowDomainEnumSchema = validation_exports.pipe(validation_exports.enum(FlowDomain), validation_exports.transform((v) => requiredEnumLabel(LifecycleFlowDomainCodec.protoToOutput, v, "LifecycleFlowDomainSchema", "flow domain")));
91
- validation_exports.pipe(validation_exports.enum(FlowState), validation_exports.transform((v) => requiredEnumLabel(LifecycleFlowStateCodec.protoToOutput, v, "LifecycleFlowStateSchema", "flow state")));
92
- const LifecycleFlowStepActivityKindEnumSchema = validation_exports.pipe(validation_exports.enum(FlowStepActivityKind), validation_exports.transform((v) => requiredEnumLabel(LifecycleFlowStepActivityKindCodec.protoToOutput, v, "LifecycleFlowStepActivityKindSchema", "activity kind")));
93
- const LifecycleFlowTimelineStatusEnumSchema = validation_exports.pipe(validation_exports.enum(FlowTimelineStatus), validation_exports.transform((v) => requiredEnumLabel(LifecycleFlowTimelineStatusCodec.protoToOutput, v, "LifecycleFlowTimelineStatusSchema", "timeline status")));
87
+ const LifecycleFlowStepEnumSchema = v.pipe(v.enum(FlowStep), v.transform((v) => requiredEnumLabel(LifecycleFlowStepCodec.protoToOutput, v, "LifecycleFlowStepSchema", "step")));
88
+ const LifecycleSourceEnumSchema = v.pipe(v.enum(LifecycleSource), v.transform((v) => requiredEnumLabel(LifecycleSourceCodec.protoToOutput, v, "LifecycleSourceSchema", "source")));
89
+ const LifecycleFlowKindEnumSchema = v.pipe(v.enum(FlowKind), v.transform((v) => requiredEnumLabel(LifecycleFlowKindCodec.protoToOutput, v, "LifecycleFlowKindSchema", "flow kind")));
90
+ const LifecycleFlowDomainEnumSchema = v.pipe(v.enum(FlowDomain), v.transform((v) => requiredEnumLabel(LifecycleFlowDomainCodec.protoToOutput, v, "LifecycleFlowDomainSchema", "flow domain")));
91
+ v.pipe(v.enum(FlowState), v.transform((v) => requiredEnumLabel(LifecycleFlowStateCodec.protoToOutput, v, "LifecycleFlowStateSchema", "flow state")));
92
+ const LifecycleFlowStepActivityKindEnumSchema = v.pipe(v.enum(FlowStepActivityKind), v.transform((v) => requiredEnumLabel(LifecycleFlowStepActivityKindCodec.protoToOutput, v, "LifecycleFlowStepActivityKindSchema", "activity kind")));
93
+ const LifecycleFlowTimelineStatusEnumSchema = v.pipe(v.enum(FlowTimelineStatus), v.transform((v) => requiredEnumLabel(LifecycleFlowTimelineStatusCodec.protoToOutput, v, "LifecycleFlowTimelineStatusSchema", "timeline status")));
94
94
  /**
95
95
  * `REASON_UNSPECIFIED` (0) is the normal wire value for flows without a
96
96
  * notable reason, so this schema accepts zero unlike the other lifecycle enum
@@ -99,30 +99,30 @@ const LifecycleFlowTimelineStatusEnumSchema = validation_exports.pipe(validation
99
99
  * a strict enum here froze failed flows out of the UI when the backend shipped
100
100
  * new reason codes.
101
101
  */
102
- const LifecycleReasonEnumSchema = validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0), validation_exports.transform((value) => lifecycleReasonFromCode(value)));
103
- const LifecycleRequestFeeStatusEnumSchema = validation_exports.pipe(validation_exports.enum(RequestFeeStatus), validation_exports.transform((v) => requiredEnumLabel(LifecycleRequestFeeStatusCodec.protoToOutput, v, "LifecycleRequestFeeStatusSchema", "request fee status")));
104
- const LifecycleMsSchema = validation_exports.pipe(validation_exports.bigint(), validation_exports.transform((v) => Number(v)));
105
- const LifecycleTxOccurrenceIndexSchema = validation_exports.pipe(validation_exports.optional(validation_exports.bigint()), validation_exports.transform((v) => Number(v ?? 0n)));
106
- const LifecycleLedgerTransferIdSchema = validation_exports.optional(validation_exports.string(), "");
107
- const LifecycleZipperReasonSchema = validation_exports.object({
108
- code: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
109
- reasonId: validation_exports.string(),
110
- message: validation_exports.string()
102
+ const LifecycleReasonEnumSchema = v.pipe(v.number(), v.integer(), v.minValue(0), v.transform((value) => lifecycleReasonFromCode(value)));
103
+ const LifecycleRequestFeeStatusEnumSchema = v.pipe(v.enum(RequestFeeStatus), v.transform((v) => requiredEnumLabel(LifecycleRequestFeeStatusCodec.protoToOutput, v, "LifecycleRequestFeeStatusSchema", "request fee status")));
104
+ const LifecycleMsSchema = v.pipe(v.bigint(), v.transform((v) => Number(v)));
105
+ const LifecycleTxOccurrenceIndexSchema = v.pipe(v.optional(v.bigint()), v.transform((v) => Number(v ?? 0n)));
106
+ const LifecycleLedgerTransferIdSchema = v.optional(v.string(), "");
107
+ const LifecycleZipperReasonSchema = v.object({
108
+ code: v.pipe(v.number(), v.integer(), v.minValue(0)),
109
+ reasonId: v.string(),
110
+ message: v.string()
111
111
  });
112
- const ListLifecycleFlowsInputSchema = validation_exports.pipe(validation_exports.strictObject({
113
- limit: validation_exports.optional(validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.gtValue(0), validation_exports.maxValue(500)), 100),
114
- sort: validation_exports.pipe(validation_exports.optional(validation_exports.picklist(LIFECYCLE_SORT_VALUES), "newest"), validation_exports.transform((value) => LifecycleSortCodec.inputToProto[value])),
115
- flowKind: validation_exports.pipe(validation_exports.optional(FlowKindSchema), validation_exports.transform((v) => v ? LifecycleFlowKindCodec.inputToProto[v] : 0)),
116
- flowState: validation_exports.pipe(validation_exports.optional(FlowStateSchema), validation_exports.transform((v) => v ? LifecycleFlowStateCodec.inputToProto[v] : 0)),
117
- txRef: validation_exports.optional(ChainTxIdentifierSchema),
118
- scope: validation_exports.pipe(validation_exports.optional(validation_exports.picklist(LIFECYCLE_LIST_SCOPE_VALUES), "all"), validation_exports.transform((v) => LifecycleListScopeCodec.inputToProto[v ?? "all"])),
119
- accountSelector: validation_exports.optional(LifecycleAccountSelectorInputSchema),
120
- polyesterChainIds: validation_exports.optional(validation_exports.array(Uint32Schema)),
121
- zippedAssetIds: validation_exports.optional(validation_exports.array(Uint32Schema)),
122
- unifiedAssetIds: validation_exports.optional(validation_exports.array(Uint32Schema)),
123
- pageToken: validation_exports.optional(validation_exports.pipe(validation_exports.string(), validation_exports.trim()), ""),
124
- orderBy: validation_exports.pipe(validation_exports.optional(validation_exports.picklist(LIFECYCLE_LIST_ORDER_BY_VALUES), "last_activity"), validation_exports.transform((value) => LifecycleListOrderByCodec.inputToProto[value]))
125
- }), validation_exports.transform((value) => {
112
+ const ListLifecycleFlowsInputSchema = v.pipe(v.strictObject({
113
+ limit: v.optional(v.pipe(v.number(), v.integer(), v.gtValue(0), v.maxValue(500)), 100),
114
+ sort: v.pipe(v.optional(v.picklist(LIFECYCLE_SORT_VALUES), "newest"), v.transform((value) => LifecycleSortCodec.inputToProto[value])),
115
+ flowKind: v.pipe(v.optional(FlowKindSchema), v.transform((v) => v ? LifecycleFlowKindCodec.inputToProto[v] : 0)),
116
+ flowState: v.pipe(v.optional(FlowStateSchema), v.transform((v) => v ? LifecycleFlowStateCodec.inputToProto[v] : 0)),
117
+ txRef: v.optional(ChainTxIdentifierSchema),
118
+ scope: v.pipe(v.optional(v.picklist(LIFECYCLE_LIST_SCOPE_VALUES), "all"), v.transform((v) => LifecycleListScopeCodec.inputToProto[v ?? "all"])),
119
+ accountSelector: v.optional(LifecycleAccountSelectorInputSchema),
120
+ polyesterChainIds: v.optional(v.array(Uint32Schema)),
121
+ zippedAssetIds: v.optional(v.array(Uint32Schema)),
122
+ unifiedAssetIds: v.optional(v.array(Uint32Schema)),
123
+ pageToken: v.optional(v.pipe(v.string(), v.trim()), ""),
124
+ orderBy: v.pipe(v.optional(v.picklist(LIFECYCLE_LIST_ORDER_BY_VALUES), "last_activity"), v.transform((value) => LifecycleListOrderByCodec.inputToProto[value]))
125
+ }), v.transform((value) => {
126
126
  return {
127
127
  limit: value.limit,
128
128
  sort: value.sort,
@@ -138,143 +138,143 @@ const ListLifecycleFlowsInputSchema = validation_exports.pipe(validation_exports
138
138
  orderBy: value.orderBy
139
139
  };
140
140
  }));
141
- const LifecycleRequestFeeSchema = validation_exports.pipe(validation_exports.object({
142
- assetIds: validation_exports.optional(LifecycleAssetIdsSchema),
143
- amountE18: validation_exports.optional(LifecycleAmountSchema),
144
- recipientAddress: validation_exports.string(),
141
+ const LifecycleRequestFeeSchema = v.pipe(v.object({
142
+ assetIds: v.optional(LifecycleAssetIdsSchema),
143
+ amountE18: v.optional(LifecycleAmountSchema),
144
+ recipientAddress: v.string(),
145
145
  status: LifecycleRequestFeeStatusEnumSchema
146
- }), validation_exports.transform((value) => renameAmountE18(value)));
147
- const GetLifecycleFlowInputSchema = validation_exports.pipe(validation_exports.strictObject({ flowId: validation_exports.pipe(validation_exports.string(), validation_exports.trim(), validation_exports.minLength(1, "flowId is required.")) }), validation_exports.transform((value) => ({ flowId: value.flowId })));
148
- const ListLifecycleFlowsByTxInputSchema = validation_exports.strictObject({
146
+ }), v.transform((value) => renameAmountE18(value)));
147
+ const GetLifecycleFlowInputSchema = v.pipe(v.strictObject({ flowId: v.pipe(v.string(), v.trim(), v.minLength(1, "flowId is required.")) }), v.transform((value) => ({ flowId: value.flowId })));
148
+ const ListLifecycleFlowsByTxInputSchema = v.strictObject({
149
149
  txHash: ChainTxIdentifierSchema,
150
- lookupKind: validation_exports.pipe(validation_exports.picklist(LIFECYCLE_TX_LOOKUP_KIND_VALUES), validation_exports.transform((v) => LifecycleTxLookupKindCodec.inputToProto[v])),
151
- limit: validation_exports.optional(validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.gtValue(0), validation_exports.maxValue(500)), 100),
152
- pageToken: validation_exports.optional(validation_exports.pipe(validation_exports.string(), validation_exports.trim()), "")
150
+ lookupKind: v.pipe(v.picklist(LIFECYCLE_TX_LOOKUP_KIND_VALUES), v.transform((v) => LifecycleTxLookupKindCodec.inputToProto[v])),
151
+ limit: v.optional(v.pipe(v.number(), v.integer(), v.gtValue(0), v.maxValue(500)), 100),
152
+ pageToken: v.optional(v.pipe(v.string(), v.trim()), "")
153
153
  });
154
- const LifecycleFlowStepActivitySchema = validation_exports.pipe(validation_exports.object({
155
- sequence: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
156
- txRef: validation_exports.string(),
154
+ const LifecycleFlowStepActivitySchema = v.pipe(v.object({
155
+ sequence: v.pipe(v.number(), v.integer(), v.minValue(0)),
156
+ txRef: v.string(),
157
157
  occurredAtUnixMs: LifecycleMsSchema,
158
158
  lifecycleSource: LifecycleSourceEnumSchema,
159
159
  lifecycleReason: LifecycleReasonEnumSchema,
160
- zipperReason: validation_exports.optional(LifecycleZipperReasonSchema),
161
- currentConfirmations: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
162
- requiredConfirmations: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
163
- approveCount: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
164
- rejectCount: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
165
- validatorCount: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
160
+ zipperReason: v.optional(LifecycleZipperReasonSchema),
161
+ currentConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),
162
+ requiredConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),
163
+ approveCount: v.pipe(v.number(), v.integer(), v.minValue(0)),
164
+ rejectCount: v.pipe(v.number(), v.integer(), v.minValue(0)),
165
+ validatorCount: v.pipe(v.number(), v.integer(), v.minValue(0)),
166
166
  kind: LifecycleFlowStepActivityKindEnumSchema,
167
- requiredApprovals: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
168
- requiredRejections: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
169
- amountE18: validation_exports.optional(LifecycleAmountSchema),
167
+ requiredApprovals: v.pipe(v.number(), v.integer(), v.minValue(0)),
168
+ requiredRejections: v.pipe(v.number(), v.integer(), v.minValue(0)),
169
+ amountE18: v.optional(LifecycleAmountSchema),
170
170
  ledgerTransferId: LifecycleLedgerTransferIdSchema
171
- }), validation_exports.transform((value) => renameAmountE18(value)));
172
- const LifecycleFlowStepSchema = validation_exports.pipe(validation_exports.object({
173
- sequence: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
171
+ }), v.transform((value) => renameAmountE18(value)));
172
+ const LifecycleFlowStepSchema = v.pipe(v.object({
173
+ sequence: v.pipe(v.number(), v.integer(), v.minValue(0)),
174
174
  step: LifecycleFlowStepEnumSchema,
175
- assetIds: validation_exports.optional(LifecycleAssetIdsSchema),
176
- polyesterChainId: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
177
- amountE18: validation_exports.optional(LifecycleAmountSchema),
178
- requestFee: validation_exports.optional(LifecycleRequestFeeSchema),
179
- milestoneTxRef: validation_exports.string(),
175
+ assetIds: v.optional(LifecycleAssetIdsSchema),
176
+ polyesterChainId: v.pipe(v.number(), v.integer(), v.minValue(0)),
177
+ amountE18: v.optional(LifecycleAmountSchema),
178
+ requestFee: v.optional(LifecycleRequestFeeSchema),
179
+ milestoneTxRef: v.string(),
180
180
  lifecycleSource: LifecycleSourceEnumSchema,
181
181
  lifecycleReason: LifecycleReasonEnumSchema,
182
- zipperReason: validation_exports.optional(LifecycleZipperReasonSchema),
183
- currentConfirmations: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
184
- requiredConfirmations: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
185
- approveCount: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
186
- rejectCount: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
187
- validatorCount: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
188
- requiredApprovals: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
189
- requiredRejections: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
182
+ zipperReason: v.optional(LifecycleZipperReasonSchema),
183
+ currentConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),
184
+ requiredConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),
185
+ approveCount: v.pipe(v.number(), v.integer(), v.minValue(0)),
186
+ rejectCount: v.pipe(v.number(), v.integer(), v.minValue(0)),
187
+ validatorCount: v.pipe(v.number(), v.integer(), v.minValue(0)),
188
+ requiredApprovals: v.pipe(v.number(), v.integer(), v.minValue(0)),
189
+ requiredRejections: v.pipe(v.number(), v.integer(), v.minValue(0)),
190
190
  occurredAtUnixMs: LifecycleMsSchema,
191
191
  blockTimeMovingAverageMs: LifecycleMsSchema,
192
- activities: validation_exports.optional(validation_exports.array(LifecycleFlowStepActivitySchema), [])
193
- }), validation_exports.transform((value) => renameAmountE18(value)));
194
- const LifecycleFlowTimelineItemSchema = validation_exports.object({
195
- sequence: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
192
+ activities: v.optional(v.array(LifecycleFlowStepActivitySchema), [])
193
+ }), v.transform((value) => renameAmountE18(value)));
194
+ const LifecycleFlowTimelineItemSchema = v.object({
195
+ sequence: v.pipe(v.number(), v.integer(), v.minValue(0)),
196
196
  step: LifecycleFlowStepEnumSchema,
197
197
  status: LifecycleFlowTimelineStatusEnumSchema,
198
198
  expectedDurationMs: LifecycleMsSchema
199
199
  });
200
- const LifecycleFlowSummaryProgressSchema = validation_exports.object({
200
+ const LifecycleFlowSummaryProgressSchema = v.object({
201
201
  currentStepStartedAtUnixMs: LifecycleMsSchema,
202
202
  currentStepExpectedDurationMs: LifecycleMsSchema,
203
- currentConfirmations: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
204
- requiredConfirmations: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
205
- approveCount: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
206
- rejectCount: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
207
- validatorCount: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
208
- requiredApprovals: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
209
- requiredRejections: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0))
203
+ currentConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),
204
+ requiredConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),
205
+ approveCount: v.pipe(v.number(), v.integer(), v.minValue(0)),
206
+ rejectCount: v.pipe(v.number(), v.integer(), v.minValue(0)),
207
+ validatorCount: v.pipe(v.number(), v.integer(), v.minValue(0)),
208
+ requiredApprovals: v.pipe(v.number(), v.integer(), v.minValue(0)),
209
+ requiredRejections: v.pipe(v.number(), v.integer(), v.minValue(0))
210
210
  });
211
- const LifecycleFlowSummarySchema = validation_exports.pipe(validation_exports.object({
211
+ const LifecycleFlowSummarySchema = v.pipe(v.object({
212
212
  ownerAccountId: PublicIdSchema,
213
- smartAccountAddress: validation_exports.string(),
214
- flowId: validation_exports.string(),
213
+ smartAccountAddress: v.string(),
214
+ flowId: v.string(),
215
215
  flowKind: LifecycleFlowKindEnumSchema,
216
216
  currentStep: LifecycleFlowStepEnumSchema,
217
- assetIds: validation_exports.optional(LifecycleAssetIdsSchema),
218
- polyesterChainId: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
219
- amountE18: validation_exports.optional(LifecycleAmountSchema),
220
- requestFee: validation_exports.optional(LifecycleRequestFeeSchema),
221
- sourceTxHash: validation_exports.string(),
217
+ assetIds: v.optional(LifecycleAssetIdsSchema),
218
+ polyesterChainId: v.pipe(v.number(), v.integer(), v.minValue(0)),
219
+ amountE18: v.optional(LifecycleAmountSchema),
220
+ requestFee: v.optional(LifecycleRequestFeeSchema),
221
+ sourceTxHash: v.string(),
222
222
  txOccurrenceIndex: LifecycleTxOccurrenceIndexSchema,
223
- sourceAddress: validation_exports.string(),
224
- destinationAddress: validation_exports.string(),
223
+ sourceAddress: v.string(),
224
+ destinationAddress: v.string(),
225
225
  sourceDomain: LifecycleFlowDomainEnumSchema,
226
226
  destinationDomain: LifecycleFlowDomainEnumSchema,
227
- latestTxRef: validation_exports.string(),
227
+ latestTxRef: v.string(),
228
228
  latestLifecycleSource: LifecycleSourceEnumSchema,
229
229
  lifecycleReason: LifecycleReasonEnumSchema,
230
- zipperReason: validation_exports.optional(LifecycleZipperReasonSchema),
230
+ zipperReason: v.optional(LifecycleZipperReasonSchema),
231
231
  startedAtUnixMs: LifecycleMsSchema,
232
232
  updatedAtUnixMs: LifecycleMsSchema,
233
233
  terminalAtUnixMs: LifecycleMsSchema,
234
234
  lastActivityAtUnixMs: LifecycleMsSchema,
235
- isOpen: validation_exports.boolean(),
236
- isTerminal: validation_exports.boolean(),
237
- currentStepSequence: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
238
- currentProgress: validation_exports.optional(LifecycleFlowSummaryProgressSchema),
239
- progressTimeline: validation_exports.optional(validation_exports.array(LifecycleFlowTimelineItemSchema), []),
235
+ isOpen: v.boolean(),
236
+ isTerminal: v.boolean(),
237
+ currentStepSequence: v.pipe(v.number(), v.integer(), v.minValue(0)),
238
+ currentProgress: v.optional(LifecycleFlowSummaryProgressSchema),
239
+ progressTimeline: v.optional(v.array(LifecycleFlowTimelineItemSchema), []),
240
240
  estimatedCompletionUnixMs: LifecycleMsSchema
241
- }), validation_exports.transform((value) => renameAmountE18(value)));
242
- const LifecycleFlowDetailSchema = validation_exports.object({
243
- summary: validation_exports.optional(LifecycleFlowSummarySchema),
244
- observedSteps: validation_exports.optional(validation_exports.array(LifecycleFlowStepSchema), []),
245
- fromLiveState: validation_exports.boolean()
241
+ }), v.transform((value) => renameAmountE18(value)));
242
+ const LifecycleFlowDetailSchema = v.object({
243
+ summary: v.optional(LifecycleFlowSummarySchema),
244
+ observedSteps: v.optional(v.array(LifecycleFlowStepSchema), []),
245
+ fromLiveState: v.boolean()
246
246
  });
247
- const ListLifecycleFlowsOutputSchema = validation_exports.object({
248
- flows: validation_exports.optional(validation_exports.array(LifecycleFlowSummarySchema), []),
249
- nextPageToken: validation_exports.optional(validation_exports.string(), "")
247
+ const ListLifecycleFlowsOutputSchema = v.object({
248
+ flows: v.optional(v.array(LifecycleFlowSummarySchema), []),
249
+ nextPageToken: v.optional(v.string(), "")
250
250
  });
251
- const GetLifecycleFlowOutputSchema = validation_exports.object({ flow: validation_exports.optional(LifecycleFlowDetailSchema) });
252
- const LifecycleFlowTxMatchSchema = validation_exports.pipe(validation_exports.object({
251
+ const GetLifecycleFlowOutputSchema = v.object({ flow: v.optional(LifecycleFlowDetailSchema) });
252
+ const LifecycleFlowTxMatchSchema = v.pipe(v.object({
253
253
  ownerAccountId: PublicIdSchema,
254
- smartAccountAddress: validation_exports.string(),
255
- flowId: validation_exports.string(),
254
+ smartAccountAddress: v.string(),
255
+ flowId: v.string(),
256
256
  flowKind: LifecycleFlowKindEnumSchema,
257
- sourceTxHash: validation_exports.string(),
258
- latestTxRef: validation_exports.string(),
257
+ sourceTxHash: v.string(),
258
+ latestTxRef: v.string(),
259
259
  txOccurrenceIndex: LifecycleTxOccurrenceIndexSchema,
260
260
  sourceDomain: LifecycleFlowDomainEnumSchema,
261
261
  destinationDomain: LifecycleFlowDomainEnumSchema,
262
262
  currentStep: LifecycleFlowStepEnumSchema,
263
- isOpen: validation_exports.boolean(),
264
- isTerminal: validation_exports.boolean(),
265
- assetIds: validation_exports.optional(LifecycleAssetIdsSchema),
266
- polyesterChainId: validation_exports.pipe(validation_exports.number(), validation_exports.integer(), validation_exports.minValue(0)),
267
- amountE18: validation_exports.optional(LifecycleAmountSchema),
268
- sourceAddress: validation_exports.string(),
269
- destinationAddress: validation_exports.string(),
263
+ isOpen: v.boolean(),
264
+ isTerminal: v.boolean(),
265
+ assetIds: v.optional(LifecycleAssetIdsSchema),
266
+ polyesterChainId: v.pipe(v.number(), v.integer(), v.minValue(0)),
267
+ amountE18: v.optional(LifecycleAmountSchema),
268
+ sourceAddress: v.string(),
269
+ destinationAddress: v.string(),
270
270
  lifecycleReason: LifecycleReasonEnumSchema,
271
- zipperReason: validation_exports.optional(LifecycleZipperReasonSchema),
271
+ zipperReason: v.optional(LifecycleZipperReasonSchema),
272
272
  lastActivityAtUnixMs: LifecycleMsSchema
273
- }), validation_exports.transform((value) => renameAmountE18(value)));
274
- const ListLifecycleFlowsByTxOutputSchema = validation_exports.object({
275
- txHash: validation_exports.string(),
276
- matches: validation_exports.optional(validation_exports.array(LifecycleFlowTxMatchSchema), []),
277
- nextPageToken: validation_exports.optional(validation_exports.string(), "")
273
+ }), v.transform((value) => renameAmountE18(value)));
274
+ const ListLifecycleFlowsByTxOutputSchema = v.object({
275
+ txHash: v.string(),
276
+ matches: v.optional(v.array(LifecycleFlowTxMatchSchema), []),
277
+ nextPageToken: v.optional(v.string(), "")
278
278
  });
279
279
  //#endregion
280
280
  export { GetLifecycleFlowInputSchema, GetLifecycleFlowOutputSchema, LifecycleFlowDetailSchema, LifecycleFlowStepActivitySchema, LifecycleFlowStepSchema, LifecycleFlowSummaryProgressSchema, LifecycleFlowSummarySchema, LifecycleFlowTimelineItemSchema, LifecycleFlowTxMatchSchema, LifecycleRequestFeeSchema, ListLifecycleFlowsByTxInputSchema, ListLifecycleFlowsByTxOutputSchema, ListLifecycleFlowsInputSchema, ListLifecycleFlowsOutputSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"lifecycle.schemas.js","names":["v","ProtoRead.FlowStep","Proto.LifecycleSource","Proto.FlowKind","Proto.FlowDomain","Proto.FlowState","ProtoRead.FlowStepActivityKind","ProtoRead.FlowTimelineStatus","Proto.RequestFeeStatus"],"sources":["../../../src/services/lifecycle/lifecycle.schemas.ts"],"sourcesContent":["import * as v from \"../../shared/validation.js\";\nimport * as Proto from \"../../gen/chain/lifecycle/v1/types_pb.js\";\nimport * as ProtoRead from \"../../gen/chain/lifecycle/v1/lifecycle_read_pb.js\";\nimport {\n LIFECYCLE_FLOW_KIND_VALUES,\n LIFECYCLE_FLOW_STATE_VALUES,\n LIFECYCLE_LIST_SCOPE_VALUES,\n LIFECYCLE_LIST_ORDER_BY_VALUES,\n LIFECYCLE_SORT_VALUES,\n LIFECYCLE_TX_LOOKUP_KIND_VALUES,\n LifecycleFlowDomainCodec,\n LifecycleFlowKindCodec,\n lifecycleReasonFromCode,\n LifecycleFlowStateCodec,\n LifecycleFlowStepActivityKindCodec,\n LifecycleFlowStepCodec,\n LifecycleFlowTimelineStatusCodec,\n LifecycleListOrderByCodec,\n LifecycleListScopeCodec,\n LifecycleRequestFeeStatusCodec,\n LifecycleSortCodec,\n LifecycleSourceCodec,\n LifecycleTxLookupKindCodec,\n type LifecycleReasonValue,\n type LifecycleListOrderByValue,\n type LifecycleListScopeValue,\n type LifecycleRequestFeeStatusValue,\n type LifecycleSortValue,\n type LifecycleTxLookupKindValue,\n} from \"./lifecycle.codecs.js\";\nimport { idToBigInt } from \"../../utils/base58-id.js\";\nimport { fromU128 } from \"../../utils/u128.js\";\nimport { requiredEnumLabel } from \"../../shared/proto-enum-codec.js\";\nimport { PublicIdSchema } from \"../../shared/schemas.js\";\nimport { E18_SCALE, scaledToDecimalOutput } from \"../../shared/decimal-surface.js\";\n\nconst FlowKindSchema = v.picklist(LIFECYCLE_FLOW_KIND_VALUES);\nconst FlowStateSchema = v.picklist(LIFECYCLE_FLOW_STATE_VALUES);\n\nconst canonicalTxHashPattern = /^0x[0-9a-fA-F]{64}$/;\nconst chainTxHexPattern = /^[0-9a-fA-F]{64}$/;\nconst chainNativeTxIdPattern = /^[A-Za-z0-9]{8,128}$/;\nconst smartAccountAddressPattern = /^0x[0-9a-fA-F]{40}$/;\nconst maxUint32 = 4_294_967_295;\n\nfunction isChainTxIdentifier(value: string): boolean {\n if (canonicalTxHashPattern.test(value)) return true;\n if (chainTxHexPattern.test(value)) return true;\n return chainNativeTxIdPattern.test(value);\n}\n\nfunction normalizeChainTxIdentifier(value: string): string {\n if (canonicalTxHashPattern.test(value)) return value.toLowerCase();\n // Preserve caller casing — XRP and other chains may be case-sensitive on the API.\n if (chainTxHexPattern.test(value)) return value;\n return value;\n}\n\nconst ChainTxIdentifierSchema = v.pipe(\n v.string(),\n v.trim(),\n v.minLength(1, \"txHash is required.\"),\n v.check(isChainTxIdentifier, \"txHash must be a valid EVM hash or chain-native transaction id.\"),\n v.transform(normalizeChainTxIdentifier),\n);\n\nconst AccountSelectorIdSchema = v.pipe(v.string(), v.trim(), v.minLength(1));\nconst SmartAccountAddressSchema = v.pipe(\n v.string(),\n v.trim(),\n v.regex(smartAccountAddressPattern, \"smartAccountAddress must be a canonical 0x address.\"),\n);\n\nconst LifecycleAccountSelectorInputSchema = v.pipe(\n v.variant(\"kind\", [\n v.strictObject({\n kind: v.literal(\"accountId\"),\n accountId: AccountSelectorIdSchema,\n }),\n v.strictObject({\n kind: v.literal(\"ownerAccountId\"),\n ownerAccountId: AccountSelectorIdSchema,\n }),\n v.strictObject({\n kind: v.literal(\"smartAccountAddress\"),\n smartAccountAddress: SmartAccountAddressSchema,\n }),\n ]),\n v.transform((selector) => {\n switch (selector.kind) {\n case \"accountId\":\n return {\n case: \"ownerAccountId\" as const,\n value: idToBigInt(selector.accountId, \"accountId\"),\n };\n case \"ownerAccountId\":\n return {\n case: \"ownerAccountId\" as const,\n value: idToBigInt(selector.ownerAccountId, \"ownerAccountId\"),\n };\n case \"smartAccountAddress\":\n return {\n case: \"smartAccountAddress\" as const,\n value: selector.smartAccountAddress,\n };\n }\n }),\n);\n\nconst Uint32Schema = v.pipe(v.number(), v.integer(), v.gtValue(0), v.maxValue(maxUint32));\n\nconst LifecycleU128RawSchema = v.object({\n hi: v.bigint(),\n lo: v.bigint(),\n});\n\n/**\n * Wire `amount_e18` u128 → public decimal string. On-chain unified-asset\n * amounts are always 18-decimal scaled, so the conversion uses the constant\n * E18 scale and needs no catalog access.\n */\nconst LifecycleAmountSchema = v.pipe(\n LifecycleU128RawSchema,\n v.transform((v) => scaledToDecimalOutput(fromU128(v), E18_SCALE)),\n);\n\n/**\n * Renames the wire `amountE18` key to the public decimal `amount` field.\n * Preserves optional semantics exactly: when the wire field is unset, the\n * output carries no `amount` key.\n */\nfunction renameAmountE18<T extends { amountE18?: string }>(\n value: T,\n): Omit<T, \"amountE18\"> & { amount?: string } {\n const { amountE18, ...rest } = value;\n return amountE18 === undefined ? rest : { ...rest, amount: amountE18 };\n}\n\nconst LifecycleAssetIdsSchema = v.object({\n zippedAssetId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n unifiedAssetId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n});\n\nconst LifecycleFlowStepEnumSchema = v.pipe(\n v.enum(ProtoRead.FlowStep),\n v.transform((v) =>\n requiredEnumLabel(\n LifecycleFlowStepCodec.protoToOutput,\n v,\n \"LifecycleFlowStepSchema\",\n \"step\",\n ),\n ),\n);\nconst LifecycleSourceEnumSchema = v.pipe(\n v.enum(Proto.LifecycleSource),\n v.transform((v) =>\n requiredEnumLabel(LifecycleSourceCodec.protoToOutput, v, \"LifecycleSourceSchema\", \"source\"),\n ),\n);\nconst LifecycleFlowKindEnumSchema = v.pipe(\n v.enum(Proto.FlowKind),\n v.transform((v) =>\n requiredEnumLabel(\n LifecycleFlowKindCodec.protoToOutput,\n v,\n \"LifecycleFlowKindSchema\",\n \"flow kind\",\n ),\n ),\n);\n\nconst LifecycleFlowDomainEnumSchema = v.pipe(\n v.enum(Proto.FlowDomain),\n v.transform((v) =>\n requiredEnumLabel(\n LifecycleFlowDomainCodec.protoToOutput,\n v,\n \"LifecycleFlowDomainSchema\",\n \"flow domain\",\n ),\n ),\n);\nconst LifecycleFlowStateEnumSchema = v.pipe(\n v.enum(Proto.FlowState),\n v.transform((v) =>\n requiredEnumLabel(\n LifecycleFlowStateCodec.protoToOutput,\n v,\n \"LifecycleFlowStateSchema\",\n \"flow state\",\n ),\n ),\n);\nconst LifecycleFlowStepActivityKindEnumSchema = v.pipe(\n v.enum(ProtoRead.FlowStepActivityKind),\n v.transform((v) =>\n requiredEnumLabel(\n LifecycleFlowStepActivityKindCodec.protoToOutput,\n v,\n \"LifecycleFlowStepActivityKindSchema\",\n \"activity kind\",\n ),\n ),\n);\nconst LifecycleFlowTimelineStatusEnumSchema = v.pipe(\n v.enum(ProtoRead.FlowTimelineStatus),\n v.transform((v) =>\n requiredEnumLabel(\n LifecycleFlowTimelineStatusCodec.protoToOutput,\n v,\n \"LifecycleFlowTimelineStatusSchema\",\n \"timeline status\",\n ),\n ),\n);\n/**\n * `REASON_UNSPECIFIED` (0) is the normal wire value for flows without a\n * notable reason, so this schema accepts zero unlike the other lifecycle enum\n * schemas. The catalog also grows on the backend ahead of SDK regeneration, so\n * uncataloged codes decode to `unknown_reason_${code}` instead of rejecting the whole flow —\n * a strict enum here froze failed flows out of the UI when the backend shipped\n * new reason codes.\n */\nconst LifecycleReasonEnumSchema = v.pipe(\n v.number(),\n v.integer(),\n v.minValue(0),\n v.transform((value) => lifecycleReasonFromCode(value)),\n);\nconst LifecycleRequestFeeStatusEnumSchema = v.pipe(\n v.enum(Proto.RequestFeeStatus),\n v.transform((v) =>\n requiredEnumLabel(\n LifecycleRequestFeeStatusCodec.protoToOutput,\n v,\n \"LifecycleRequestFeeStatusSchema\",\n \"request fee status\",\n ),\n ),\n);\nconst LifecycleMsSchema = v.pipe(\n v.bigint(),\n v.transform((v) => Number(v)),\n);\nconst LifecycleTxOccurrenceIndexSchema = v.pipe(\n v.optional(v.bigint()),\n v.transform((v) => Number(v ?? 0n)),\n);\nconst LifecycleLedgerTransferIdSchema = v.optional(v.string(), \"\");\nconst LifecycleZipperReasonSchema = v.object({\n code: v.pipe(v.number(), v.integer(), v.minValue(0)),\n reasonId: v.string(),\n message: v.string(),\n});\n\nexport const ListLifecycleFlowsInputSchema = v.pipe(\n v.strictObject({\n limit: v.optional(v.pipe(v.number(), v.integer(), v.gtValue(0), v.maxValue(500)), 100),\n sort: v.pipe(\n v.optional(v.picklist(LIFECYCLE_SORT_VALUES), \"newest\"),\n v.transform((value) => LifecycleSortCodec.inputToProto[value]),\n ),\n flowKind: v.pipe(\n v.optional(FlowKindSchema),\n v.transform((v) =>\n v ? LifecycleFlowKindCodec.inputToProto[v] : Proto.FlowKind.KIND_UNSPECIFIED,\n ),\n ),\n flowState: v.pipe(\n v.optional(FlowStateSchema),\n v.transform((v) =>\n v ? LifecycleFlowStateCodec.inputToProto[v] : Proto.FlowState.STATE_UNSPECIFIED,\n ),\n ),\n txRef: v.optional(ChainTxIdentifierSchema),\n scope: v.pipe(\n v.optional(v.picklist(LIFECYCLE_LIST_SCOPE_VALUES), \"all\"),\n v.transform((v) => LifecycleListScopeCodec.inputToProto[v ?? \"all\"]),\n ),\n accountSelector: v.optional(LifecycleAccountSelectorInputSchema),\n polyesterChainIds: v.optional(v.array(Uint32Schema)),\n zippedAssetIds: v.optional(v.array(Uint32Schema)),\n unifiedAssetIds: v.optional(v.array(Uint32Schema)),\n pageToken: v.optional(v.pipe(v.string(), v.trim()), \"\"),\n orderBy: v.pipe(\n v.optional(v.picklist(LIFECYCLE_LIST_ORDER_BY_VALUES), \"last_activity\"),\n v.transform((value) => LifecycleListOrderByCodec.inputToProto[value]),\n ),\n }),\n v.transform((value) => {\n return {\n limit: value.limit,\n sort: value.sort,\n flowKind: value.flowKind,\n flowState: value.flowState,\n txRef: value.txRef,\n scope: value.scope,\n accountSelector: value.accountSelector,\n polyesterChainIds: value.polyesterChainIds,\n zippedAssetIds: value.zippedAssetIds,\n unifiedAssetIds: value.unifiedAssetIds,\n pageToken: value.pageToken,\n orderBy: value.orderBy,\n };\n }),\n);\n\nexport const LifecycleRequestFeeSchema = v.pipe(\n v.object({\n assetIds: v.optional(LifecycleAssetIdsSchema),\n amountE18: v.optional(LifecycleAmountSchema),\n recipientAddress: v.string(),\n status: LifecycleRequestFeeStatusEnumSchema,\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport function createLifecycleRequestFeeSchema() {\n return LifecycleRequestFeeSchema;\n}\n\nexport const GetLifecycleFlowInputSchema = v.pipe(\n v.strictObject({\n flowId: v.pipe(v.string(), v.trim(), v.minLength(1, \"flowId is required.\")),\n }),\n v.transform((value) => ({\n flowId: value.flowId,\n })),\n);\n\nexport const ListLifecycleFlowsByTxInputSchema = v.strictObject({\n txHash: ChainTxIdentifierSchema,\n lookupKind: v.pipe(\n v.picklist(LIFECYCLE_TX_LOOKUP_KIND_VALUES),\n v.transform((v) => LifecycleTxLookupKindCodec.inputToProto[v]),\n ),\n limit: v.optional(v.pipe(v.number(), v.integer(), v.gtValue(0), v.maxValue(500)), 100),\n pageToken: v.optional(v.pipe(v.string(), v.trim()), \"\"),\n});\n\nexport const LifecycleFlowStepActivitySchema = v.pipe(\n v.object({\n sequence: v.pipe(v.number(), v.integer(), v.minValue(0)),\n txRef: v.string(),\n occurredAtUnixMs: LifecycleMsSchema,\n lifecycleSource: LifecycleSourceEnumSchema,\n lifecycleReason: LifecycleReasonEnumSchema,\n zipperReason: v.optional(LifecycleZipperReasonSchema),\n currentConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n approveCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n rejectCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n validatorCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n kind: LifecycleFlowStepActivityKindEnumSchema,\n requiredApprovals: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredRejections: v.pipe(v.number(), v.integer(), v.minValue(0)),\n amountE18: v.optional(LifecycleAmountSchema),\n ledgerTransferId: LifecycleLedgerTransferIdSchema,\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport const LifecycleFlowStepSchema = v.pipe(\n v.object({\n sequence: v.pipe(v.number(), v.integer(), v.minValue(0)),\n step: LifecycleFlowStepEnumSchema,\n assetIds: v.optional(LifecycleAssetIdsSchema),\n polyesterChainId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n amountE18: v.optional(LifecycleAmountSchema),\n requestFee: v.optional(LifecycleRequestFeeSchema),\n milestoneTxRef: v.string(),\n lifecycleSource: LifecycleSourceEnumSchema,\n lifecycleReason: LifecycleReasonEnumSchema,\n zipperReason: v.optional(LifecycleZipperReasonSchema),\n currentConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n approveCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n rejectCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n validatorCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredApprovals: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredRejections: v.pipe(v.number(), v.integer(), v.minValue(0)),\n occurredAtUnixMs: LifecycleMsSchema,\n blockTimeMovingAverageMs: LifecycleMsSchema,\n activities: v.optional(v.array(LifecycleFlowStepActivitySchema), []),\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport function createLifecycleFlowStepSchema() {\n return LifecycleFlowStepSchema;\n}\n\nexport const LifecycleFlowTimelineItemSchema = v.object({\n sequence: v.pipe(v.number(), v.integer(), v.minValue(0)),\n step: LifecycleFlowStepEnumSchema,\n status: LifecycleFlowTimelineStatusEnumSchema,\n expectedDurationMs: LifecycleMsSchema,\n});\n\nexport const LifecycleFlowSummaryProgressSchema = v.object({\n currentStepStartedAtUnixMs: LifecycleMsSchema,\n currentStepExpectedDurationMs: LifecycleMsSchema,\n currentConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n approveCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n rejectCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n validatorCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredApprovals: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredRejections: v.pipe(v.number(), v.integer(), v.minValue(0)),\n});\n\nexport const LifecycleFlowSummarySchema = v.pipe(\n v.object({\n ownerAccountId: PublicIdSchema,\n smartAccountAddress: v.string(),\n flowId: v.string(),\n flowKind: LifecycleFlowKindEnumSchema,\n currentStep: LifecycleFlowStepEnumSchema,\n assetIds: v.optional(LifecycleAssetIdsSchema),\n polyesterChainId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n amountE18: v.optional(LifecycleAmountSchema),\n requestFee: v.optional(LifecycleRequestFeeSchema),\n sourceTxHash: v.string(),\n txOccurrenceIndex: LifecycleTxOccurrenceIndexSchema,\n sourceAddress: v.string(),\n destinationAddress: v.string(),\n sourceDomain: LifecycleFlowDomainEnumSchema,\n destinationDomain: LifecycleFlowDomainEnumSchema,\n latestTxRef: v.string(),\n latestLifecycleSource: LifecycleSourceEnumSchema,\n lifecycleReason: LifecycleReasonEnumSchema,\n zipperReason: v.optional(LifecycleZipperReasonSchema),\n startedAtUnixMs: LifecycleMsSchema,\n updatedAtUnixMs: LifecycleMsSchema,\n terminalAtUnixMs: LifecycleMsSchema,\n lastActivityAtUnixMs: LifecycleMsSchema,\n isOpen: v.boolean(),\n isTerminal: v.boolean(),\n currentStepSequence: v.pipe(v.number(), v.integer(), v.minValue(0)),\n currentProgress: v.optional(LifecycleFlowSummaryProgressSchema),\n progressTimeline: v.optional(v.array(LifecycleFlowTimelineItemSchema), []),\n estimatedCompletionUnixMs: LifecycleMsSchema,\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport function createLifecycleFlowSummarySchema() {\n return LifecycleFlowSummarySchema;\n}\n\nexport const LifecycleFlowDetailSchema = v.object({\n summary: v.optional(LifecycleFlowSummarySchema),\n observedSteps: v.optional(v.array(LifecycleFlowStepSchema), []),\n fromLiveState: v.boolean(),\n});\n\nexport function createLifecycleFlowDetailSchema() {\n return LifecycleFlowDetailSchema;\n}\n\nexport const ListLifecycleFlowsOutputSchema = v.object({\n flows: v.optional(v.array(LifecycleFlowSummarySchema), []),\n nextPageToken: v.optional(v.string(), \"\"),\n});\n\nexport function createListLifecycleFlowsOutputSchema() {\n return ListLifecycleFlowsOutputSchema;\n}\n\nexport const GetLifecycleFlowOutputSchema = v.object({\n flow: v.optional(LifecycleFlowDetailSchema),\n});\n\nexport function createGetLifecycleFlowOutputSchema() {\n return GetLifecycleFlowOutputSchema;\n}\n\nexport const LifecycleFlowTxMatchSchema = v.pipe(\n v.object({\n ownerAccountId: PublicIdSchema,\n smartAccountAddress: v.string(),\n flowId: v.string(),\n flowKind: LifecycleFlowKindEnumSchema,\n sourceTxHash: v.string(),\n latestTxRef: v.string(),\n txOccurrenceIndex: LifecycleTxOccurrenceIndexSchema,\n sourceDomain: LifecycleFlowDomainEnumSchema,\n destinationDomain: LifecycleFlowDomainEnumSchema,\n currentStep: LifecycleFlowStepEnumSchema,\n isOpen: v.boolean(),\n isTerminal: v.boolean(),\n assetIds: v.optional(LifecycleAssetIdsSchema),\n polyesterChainId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n amountE18: v.optional(LifecycleAmountSchema),\n sourceAddress: v.string(),\n destinationAddress: v.string(),\n lifecycleReason: LifecycleReasonEnumSchema,\n zipperReason: v.optional(LifecycleZipperReasonSchema),\n lastActivityAtUnixMs: LifecycleMsSchema,\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport function createLifecycleFlowTxMatchSchema() {\n return LifecycleFlowTxMatchSchema;\n}\n\nexport const ListLifecycleFlowsByTxOutputSchema = v.object({\n txHash: v.string(),\n matches: v.optional(v.array(LifecycleFlowTxMatchSchema), []),\n nextPageToken: v.optional(v.string(), \"\"),\n});\n\nexport function createListLifecycleFlowsByTxOutputSchema() {\n return ListLifecycleFlowsByTxOutputSchema;\n}\n\nexport type ListLifecycleFlowsInput = v.InferInput<typeof ListLifecycleFlowsInputSchema>;\nexport type ParsedListLifecycleFlowsInput = v.InferOutput<typeof ListLifecycleFlowsInputSchema>;\n\nexport type GetLifecycleFlowInput = v.InferInput<typeof GetLifecycleFlowInputSchema>;\nexport type ParsedGetLifecycleFlowInput = v.InferOutput<typeof GetLifecycleFlowInputSchema>;\n\nexport type ListLifecycleFlowsByTxInput = v.InferInput<typeof ListLifecycleFlowsByTxInputSchema>;\nexport type ParsedListLifecycleFlowsByTxInput = v.InferOutput<\n typeof ListLifecycleFlowsByTxInputSchema\n>;\n\nexport type LifecycleFlowSummary = v.InferOutput<typeof LifecycleFlowSummarySchema>;\nexport type LifecycleFlowStep = v.InferOutput<typeof LifecycleFlowStepSchema>;\nexport type LifecycleFlowStepActivity = v.InferOutput<typeof LifecycleFlowStepActivitySchema>;\nexport type LifecycleFlowTimelineItem = v.InferOutput<typeof LifecycleFlowTimelineItemSchema>;\nexport type LifecycleFlowDetail = v.InferOutput<typeof LifecycleFlowDetailSchema>;\n\nexport type ListLifecycleFlowsOutput = v.InferOutput<typeof ListLifecycleFlowsOutputSchema>;\nexport type GetLifecycleFlowOutput = v.InferOutput<typeof GetLifecycleFlowOutputSchema>;\nexport type ListLifecycleFlowsByTxOutput = v.InferOutput<typeof ListLifecycleFlowsByTxOutputSchema>;\n\nexport type LifecycleAssetIds = v.InferOutput<typeof LifecycleAssetIdsSchema>;\nexport type LifecycleRequestFee = v.InferOutput<typeof LifecycleRequestFeeSchema>;\n\nexport type LifecycleFlowSummaryProgress = v.InferOutput<typeof LifecycleFlowSummaryProgressSchema>;\nexport type LifecycleFlowState = v.InferOutput<typeof LifecycleFlowStateEnumSchema>;\nexport type LifecycleReason = LifecycleReasonValue;\nexport type LifecycleZipperReason = v.InferOutput<typeof LifecycleZipperReasonSchema>;\nexport type LifecycleListOrderBy = LifecycleListOrderByValue;\nexport type LifecycleListScope = LifecycleListScopeValue;\nexport type LifecycleSort = LifecycleSortValue;\nexport type LifecycleTxLookupKind = LifecycleTxLookupKindValue;\nexport type LifecycleRequestFeeStatus = LifecycleRequestFeeStatusValue;\n\nexport type LifecycleFlowTxMatch = v.InferOutput<typeof LifecycleFlowTxMatchSchema>;\n"],"mappings":";;;;;;;;;;AAoCA,MAAM,iBAAiBA,mBAAE,SAAS,0BAA0B;AAC5D,MAAM,kBAAkBA,mBAAE,SAAS,2BAA2B;AAE9D,MAAM,yBAAyB;AAC/B,MAAM,oBAAoB;AAC1B,MAAM,yBAAyB;AAC/B,MAAM,6BAA6B;AACnC,MAAM,YAAY;AAElB,SAAS,oBAAoB,OAAwB;CACjD,IAAI,uBAAuB,KAAK,KAAK,GAAG,OAAO;CAC/C,IAAI,kBAAkB,KAAK,KAAK,GAAG,OAAO;CAC1C,OAAO,uBAAuB,KAAK,KAAK;AAC5C;AAEA,SAAS,2BAA2B,OAAuB;CACvD,IAAI,uBAAuB,KAAK,KAAK,GAAG,OAAO,MAAM,YAAY;CAEjE,IAAI,kBAAkB,KAAK,KAAK,GAAG,O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AE,SAASA,mBAAE,MAAM,0BAA0B,GAAG,CAAC,CAAC;CAC3D,eAAeA,mBAAE,SAASA,mBAAE,OAAO,GAAG,EAAE;AAC5C,CAAC"}
1
+ {"version":3,"file":"lifecycle.schemas.js","names":["ProtoRead.FlowStep","Proto.LifecycleSource","Proto.FlowKind","Proto.FlowDomain","Proto.FlowState","ProtoRead.FlowStepActivityKind","ProtoRead.FlowTimelineStatus","Proto.RequestFeeStatus"],"sources":["../../../src/services/lifecycle/lifecycle.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport * as Proto from \"../../gen/chain/lifecycle/v1/types_pb.js\";\nimport * as ProtoRead from \"../../gen/chain/lifecycle/v1/lifecycle_read_pb.js\";\nimport {\n LIFECYCLE_FLOW_KIND_VALUES,\n LIFECYCLE_FLOW_STATE_VALUES,\n LIFECYCLE_LIST_SCOPE_VALUES,\n LIFECYCLE_LIST_ORDER_BY_VALUES,\n LIFECYCLE_SORT_VALUES,\n LIFECYCLE_TX_LOOKUP_KIND_VALUES,\n LifecycleFlowDomainCodec,\n LifecycleFlowKindCodec,\n lifecycleReasonFromCode,\n LifecycleFlowStateCodec,\n LifecycleFlowStepActivityKindCodec,\n LifecycleFlowStepCodec,\n LifecycleFlowTimelineStatusCodec,\n LifecycleListOrderByCodec,\n LifecycleListScopeCodec,\n LifecycleRequestFeeStatusCodec,\n LifecycleSortCodec,\n LifecycleSourceCodec,\n LifecycleTxLookupKindCodec,\n type LifecycleReasonValue,\n type LifecycleListOrderByValue,\n type LifecycleListScopeValue,\n type LifecycleRequestFeeStatusValue,\n type LifecycleSortValue,\n type LifecycleTxLookupKindValue,\n} from \"./lifecycle.codecs.js\";\nimport { idToBigInt } from \"../../utils/base58-id.js\";\nimport { fromU128 } from \"../../utils/u128.js\";\nimport { requiredEnumLabel } from \"../../shared/proto-enum-codec.js\";\nimport { PublicIdSchema } from \"../../shared/schemas.js\";\nimport { E18_SCALE, scaledToDecimalOutput } from \"../../shared/decimal-surface.js\";\n\nconst FlowKindSchema = v.picklist(LIFECYCLE_FLOW_KIND_VALUES);\nconst FlowStateSchema = v.picklist(LIFECYCLE_FLOW_STATE_VALUES);\n\nconst canonicalTxHashPattern = /^0x[0-9a-fA-F]{64}$/;\nconst chainTxHexPattern = /^[0-9a-fA-F]{64}$/;\nconst chainNativeTxIdPattern = /^[A-Za-z0-9]{8,128}$/;\nconst smartAccountAddressPattern = /^0x[0-9a-fA-F]{40}$/;\nconst maxUint32 = 4_294_967_295;\n\nfunction isChainTxIdentifier(value: string): boolean {\n if (canonicalTxHashPattern.test(value)) return true;\n if (chainTxHexPattern.test(value)) return true;\n return chainNativeTxIdPattern.test(value);\n}\n\nfunction normalizeChainTxIdentifier(value: string): string {\n if (canonicalTxHashPattern.test(value)) return value.toLowerCase();\n // Preserve caller casing — XRP and other chains may be case-sensitive on the API.\n if (chainTxHexPattern.test(value)) return value;\n return value;\n}\n\nconst ChainTxIdentifierSchema = v.pipe(\n v.string(),\n v.trim(),\n v.minLength(1, \"txHash is required.\"),\n v.check(isChainTxIdentifier, \"txHash must be a valid EVM hash or chain-native transaction id.\"),\n v.transform(normalizeChainTxIdentifier),\n);\n\nconst AccountSelectorIdSchema = v.pipe(v.string(), v.trim(), v.minLength(1));\nconst SmartAccountAddressSchema = v.pipe(\n v.string(),\n v.trim(),\n v.regex(smartAccountAddressPattern, \"smartAccountAddress must be a canonical 0x address.\"),\n);\n\nconst LifecycleAccountSelectorInputSchema = v.pipe(\n v.variant(\"kind\", [\n v.strictObject({\n kind: v.literal(\"accountId\"),\n accountId: AccountSelectorIdSchema,\n }),\n v.strictObject({\n kind: v.literal(\"ownerAccountId\"),\n ownerAccountId: AccountSelectorIdSchema,\n }),\n v.strictObject({\n kind: v.literal(\"smartAccountAddress\"),\n smartAccountAddress: SmartAccountAddressSchema,\n }),\n ]),\n v.transform((selector) => {\n switch (selector.kind) {\n case \"accountId\":\n return {\n case: \"ownerAccountId\" as const,\n value: idToBigInt(selector.accountId, \"accountId\"),\n };\n case \"ownerAccountId\":\n return {\n case: \"ownerAccountId\" as const,\n value: idToBigInt(selector.ownerAccountId, \"ownerAccountId\"),\n };\n case \"smartAccountAddress\":\n return {\n case: \"smartAccountAddress\" as const,\n value: selector.smartAccountAddress,\n };\n }\n }),\n);\n\nconst Uint32Schema = v.pipe(v.number(), v.integer(), v.gtValue(0), v.maxValue(maxUint32));\n\nconst LifecycleU128RawSchema = v.object({\n hi: v.bigint(),\n lo: v.bigint(),\n});\n\n/**\n * Wire `amount_e18` u128 → public decimal string. On-chain unified-asset\n * amounts are always 18-decimal scaled, so the conversion uses the constant\n * E18 scale and needs no catalog access.\n */\nconst LifecycleAmountSchema = v.pipe(\n LifecycleU128RawSchema,\n v.transform((v) => scaledToDecimalOutput(fromU128(v), E18_SCALE)),\n);\n\n/**\n * Renames the wire `amountE18` key to the public decimal `amount` field.\n * Preserves optional semantics exactly: when the wire field is unset, the\n * output carries no `amount` key.\n */\nfunction renameAmountE18<T extends { amountE18?: string }>(\n value: T,\n): Omit<T, \"amountE18\"> & { amount?: string } {\n const { amountE18, ...rest } = value;\n return amountE18 === undefined ? rest : { ...rest, amount: amountE18 };\n}\n\nconst LifecycleAssetIdsSchema = v.object({\n zippedAssetId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n unifiedAssetId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n});\n\nconst LifecycleFlowStepEnumSchema = v.pipe(\n v.enum(ProtoRead.FlowStep),\n v.transform((v) =>\n requiredEnumLabel(\n LifecycleFlowStepCodec.protoToOutput,\n v,\n \"LifecycleFlowStepSchema\",\n \"step\",\n ),\n ),\n);\nconst LifecycleSourceEnumSchema = v.pipe(\n v.enum(Proto.LifecycleSource),\n v.transform((v) =>\n requiredEnumLabel(LifecycleSourceCodec.protoToOutput, v, \"LifecycleSourceSchema\", \"source\"),\n ),\n);\nconst LifecycleFlowKindEnumSchema = v.pipe(\n v.enum(Proto.FlowKind),\n v.transform((v) =>\n requiredEnumLabel(\n LifecycleFlowKindCodec.protoToOutput,\n v,\n \"LifecycleFlowKindSchema\",\n \"flow kind\",\n ),\n ),\n);\n\nconst LifecycleFlowDomainEnumSchema = v.pipe(\n v.enum(Proto.FlowDomain),\n v.transform((v) =>\n requiredEnumLabel(\n LifecycleFlowDomainCodec.protoToOutput,\n v,\n \"LifecycleFlowDomainSchema\",\n \"flow domain\",\n ),\n ),\n);\nconst LifecycleFlowStateEnumSchema = v.pipe(\n v.enum(Proto.FlowState),\n v.transform((v) =>\n requiredEnumLabel(\n LifecycleFlowStateCodec.protoToOutput,\n v,\n \"LifecycleFlowStateSchema\",\n \"flow state\",\n ),\n ),\n);\nconst LifecycleFlowStepActivityKindEnumSchema = v.pipe(\n v.enum(ProtoRead.FlowStepActivityKind),\n v.transform((v) =>\n requiredEnumLabel(\n LifecycleFlowStepActivityKindCodec.protoToOutput,\n v,\n \"LifecycleFlowStepActivityKindSchema\",\n \"activity kind\",\n ),\n ),\n);\nconst LifecycleFlowTimelineStatusEnumSchema = v.pipe(\n v.enum(ProtoRead.FlowTimelineStatus),\n v.transform((v) =>\n requiredEnumLabel(\n LifecycleFlowTimelineStatusCodec.protoToOutput,\n v,\n \"LifecycleFlowTimelineStatusSchema\",\n \"timeline status\",\n ),\n ),\n);\n/**\n * `REASON_UNSPECIFIED` (0) is the normal wire value for flows without a\n * notable reason, so this schema accepts zero unlike the other lifecycle enum\n * schemas. The catalog also grows on the backend ahead of SDK regeneration, so\n * uncataloged codes decode to `unknown_reason_${code}` instead of rejecting the whole flow —\n * a strict enum here froze failed flows out of the UI when the backend shipped\n * new reason codes.\n */\nconst LifecycleReasonEnumSchema = v.pipe(\n v.number(),\n v.integer(),\n v.minValue(0),\n v.transform((value) => lifecycleReasonFromCode(value)),\n);\nconst LifecycleRequestFeeStatusEnumSchema = v.pipe(\n v.enum(Proto.RequestFeeStatus),\n v.transform((v) =>\n requiredEnumLabel(\n LifecycleRequestFeeStatusCodec.protoToOutput,\n v,\n \"LifecycleRequestFeeStatusSchema\",\n \"request fee status\",\n ),\n ),\n);\nconst LifecycleMsSchema = v.pipe(\n v.bigint(),\n v.transform((v) => Number(v)),\n);\nconst LifecycleTxOccurrenceIndexSchema = v.pipe(\n v.optional(v.bigint()),\n v.transform((v) => Number(v ?? 0n)),\n);\nconst LifecycleLedgerTransferIdSchema = v.optional(v.string(), \"\");\nconst LifecycleZipperReasonSchema = v.object({\n code: v.pipe(v.number(), v.integer(), v.minValue(0)),\n reasonId: v.string(),\n message: v.string(),\n});\n\nexport const ListLifecycleFlowsInputSchema = v.pipe(\n v.strictObject({\n limit: v.optional(v.pipe(v.number(), v.integer(), v.gtValue(0), v.maxValue(500)), 100),\n sort: v.pipe(\n v.optional(v.picklist(LIFECYCLE_SORT_VALUES), \"newest\"),\n v.transform((value) => LifecycleSortCodec.inputToProto[value]),\n ),\n flowKind: v.pipe(\n v.optional(FlowKindSchema),\n v.transform((v) =>\n v ? LifecycleFlowKindCodec.inputToProto[v] : Proto.FlowKind.KIND_UNSPECIFIED,\n ),\n ),\n flowState: v.pipe(\n v.optional(FlowStateSchema),\n v.transform((v) =>\n v ? LifecycleFlowStateCodec.inputToProto[v] : Proto.FlowState.STATE_UNSPECIFIED,\n ),\n ),\n txRef: v.optional(ChainTxIdentifierSchema),\n scope: v.pipe(\n v.optional(v.picklist(LIFECYCLE_LIST_SCOPE_VALUES), \"all\"),\n v.transform((v) => LifecycleListScopeCodec.inputToProto[v ?? \"all\"]),\n ),\n accountSelector: v.optional(LifecycleAccountSelectorInputSchema),\n polyesterChainIds: v.optional(v.array(Uint32Schema)),\n zippedAssetIds: v.optional(v.array(Uint32Schema)),\n unifiedAssetIds: v.optional(v.array(Uint32Schema)),\n pageToken: v.optional(v.pipe(v.string(), v.trim()), \"\"),\n orderBy: v.pipe(\n v.optional(v.picklist(LIFECYCLE_LIST_ORDER_BY_VALUES), \"last_activity\"),\n v.transform((value) => LifecycleListOrderByCodec.inputToProto[value]),\n ),\n }),\n v.transform((value) => {\n return {\n limit: value.limit,\n sort: value.sort,\n flowKind: value.flowKind,\n flowState: value.flowState,\n txRef: value.txRef,\n scope: value.scope,\n accountSelector: value.accountSelector,\n polyesterChainIds: value.polyesterChainIds,\n zippedAssetIds: value.zippedAssetIds,\n unifiedAssetIds: value.unifiedAssetIds,\n pageToken: value.pageToken,\n orderBy: value.orderBy,\n };\n }),\n);\n\nexport const LifecycleRequestFeeSchema = v.pipe(\n v.object({\n assetIds: v.optional(LifecycleAssetIdsSchema),\n amountE18: v.optional(LifecycleAmountSchema),\n recipientAddress: v.string(),\n status: LifecycleRequestFeeStatusEnumSchema,\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport function createLifecycleRequestFeeSchema() {\n return LifecycleRequestFeeSchema;\n}\n\nexport const GetLifecycleFlowInputSchema = v.pipe(\n v.strictObject({\n flowId: v.pipe(v.string(), v.trim(), v.minLength(1, \"flowId is required.\")),\n }),\n v.transform((value) => ({\n flowId: value.flowId,\n })),\n);\n\nexport const ListLifecycleFlowsByTxInputSchema = v.strictObject({\n txHash: ChainTxIdentifierSchema,\n lookupKind: v.pipe(\n v.picklist(LIFECYCLE_TX_LOOKUP_KIND_VALUES),\n v.transform((v) => LifecycleTxLookupKindCodec.inputToProto[v]),\n ),\n limit: v.optional(v.pipe(v.number(), v.integer(), v.gtValue(0), v.maxValue(500)), 100),\n pageToken: v.optional(v.pipe(v.string(), v.trim()), \"\"),\n});\n\nexport const LifecycleFlowStepActivitySchema = v.pipe(\n v.object({\n sequence: v.pipe(v.number(), v.integer(), v.minValue(0)),\n txRef: v.string(),\n occurredAtUnixMs: LifecycleMsSchema,\n lifecycleSource: LifecycleSourceEnumSchema,\n lifecycleReason: LifecycleReasonEnumSchema,\n zipperReason: v.optional(LifecycleZipperReasonSchema),\n currentConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n approveCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n rejectCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n validatorCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n kind: LifecycleFlowStepActivityKindEnumSchema,\n requiredApprovals: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredRejections: v.pipe(v.number(), v.integer(), v.minValue(0)),\n amountE18: v.optional(LifecycleAmountSchema),\n ledgerTransferId: LifecycleLedgerTransferIdSchema,\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport const LifecycleFlowStepSchema = v.pipe(\n v.object({\n sequence: v.pipe(v.number(), v.integer(), v.minValue(0)),\n step: LifecycleFlowStepEnumSchema,\n assetIds: v.optional(LifecycleAssetIdsSchema),\n polyesterChainId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n amountE18: v.optional(LifecycleAmountSchema),\n requestFee: v.optional(LifecycleRequestFeeSchema),\n milestoneTxRef: v.string(),\n lifecycleSource: LifecycleSourceEnumSchema,\n lifecycleReason: LifecycleReasonEnumSchema,\n zipperReason: v.optional(LifecycleZipperReasonSchema),\n currentConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n approveCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n rejectCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n validatorCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredApprovals: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredRejections: v.pipe(v.number(), v.integer(), v.minValue(0)),\n occurredAtUnixMs: LifecycleMsSchema,\n blockTimeMovingAverageMs: LifecycleMsSchema,\n activities: v.optional(v.array(LifecycleFlowStepActivitySchema), []),\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport function createLifecycleFlowStepSchema() {\n return LifecycleFlowStepSchema;\n}\n\nexport const LifecycleFlowTimelineItemSchema = v.object({\n sequence: v.pipe(v.number(), v.integer(), v.minValue(0)),\n step: LifecycleFlowStepEnumSchema,\n status: LifecycleFlowTimelineStatusEnumSchema,\n expectedDurationMs: LifecycleMsSchema,\n});\n\nexport const LifecycleFlowSummaryProgressSchema = v.object({\n currentStepStartedAtUnixMs: LifecycleMsSchema,\n currentStepExpectedDurationMs: LifecycleMsSchema,\n currentConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n approveCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n rejectCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n validatorCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredApprovals: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredRejections: v.pipe(v.number(), v.integer(), v.minValue(0)),\n});\n\nexport const LifecycleFlowSummarySchema = v.pipe(\n v.object({\n ownerAccountId: PublicIdSchema,\n smartAccountAddress: v.string(),\n flowId: v.string(),\n flowKind: LifecycleFlowKindEnumSchema,\n currentStep: LifecycleFlowStepEnumSchema,\n assetIds: v.optional(LifecycleAssetIdsSchema),\n polyesterChainId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n amountE18: v.optional(LifecycleAmountSchema),\n requestFee: v.optional(LifecycleRequestFeeSchema),\n sourceTxHash: v.string(),\n txOccurrenceIndex: LifecycleTxOccurrenceIndexSchema,\n sourceAddress: v.string(),\n destinationAddress: v.string(),\n sourceDomain: LifecycleFlowDomainEnumSchema,\n destinationDomain: LifecycleFlowDomainEnumSchema,\n latestTxRef: v.string(),\n latestLifecycleSource: LifecycleSourceEnumSchema,\n lifecycleReason: LifecycleReasonEnumSchema,\n zipperReason: v.optional(LifecycleZipperReasonSchema),\n startedAtUnixMs: LifecycleMsSchema,\n updatedAtUnixMs: LifecycleMsSchema,\n terminalAtUnixMs: LifecycleMsSchema,\n lastActivityAtUnixMs: LifecycleMsSchema,\n isOpen: v.boolean(),\n isTerminal: v.boolean(),\n currentStepSequence: v.pipe(v.number(), v.integer(), v.minValue(0)),\n currentProgress: v.optional(LifecycleFlowSummaryProgressSchema),\n progressTimeline: v.optional(v.array(LifecycleFlowTimelineItemSchema), []),\n estimatedCompletionUnixMs: LifecycleMsSchema,\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport function createLifecycleFlowSummarySchema() {\n return LifecycleFlowSummarySchema;\n}\n\nexport const LifecycleFlowDetailSchema = v.object({\n summary: v.optional(LifecycleFlowSummarySchema),\n observedSteps: v.optional(v.array(LifecycleFlowStepSchema), []),\n fromLiveState: v.boolean(),\n});\n\nexport function createLifecycleFlowDetailSchema() {\n return LifecycleFlowDetailSchema;\n}\n\nexport const ListLifecycleFlowsOutputSchema = v.object({\n flows: v.optional(v.array(LifecycleFlowSummarySchema), []),\n nextPageToken: v.optional(v.string(), \"\"),\n});\n\nexport function createListLifecycleFlowsOutputSchema() {\n return ListLifecycleFlowsOutputSchema;\n}\n\nexport const GetLifecycleFlowOutputSchema = v.object({\n flow: v.optional(LifecycleFlowDetailSchema),\n});\n\nexport function createGetLifecycleFlowOutputSchema() {\n return GetLifecycleFlowOutputSchema;\n}\n\nexport const LifecycleFlowTxMatchSchema = v.pipe(\n v.object({\n ownerAccountId: PublicIdSchema,\n smartAccountAddress: v.string(),\n flowId: v.string(),\n flowKind: LifecycleFlowKindEnumSchema,\n sourceTxHash: v.string(),\n latestTxRef: v.string(),\n txOccurrenceIndex: LifecycleTxOccurrenceIndexSchema,\n sourceDomain: LifecycleFlowDomainEnumSchema,\n destinationDomain: LifecycleFlowDomainEnumSchema,\n currentStep: LifecycleFlowStepEnumSchema,\n isOpen: v.boolean(),\n isTerminal: v.boolean(),\n assetIds: v.optional(LifecycleAssetIdsSchema),\n polyesterChainId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n amountE18: v.optional(LifecycleAmountSchema),\n sourceAddress: v.string(),\n destinationAddress: v.string(),\n lifecycleReason: LifecycleReasonEnumSchema,\n zipperReason: v.optional(LifecycleZipperReasonSchema),\n lastActivityAtUnixMs: LifecycleMsSchema,\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport function createLifecycleFlowTxMatchSchema() {\n return LifecycleFlowTxMatchSchema;\n}\n\nexport const ListLifecycleFlowsByTxOutputSchema = v.object({\n txHash: v.string(),\n matches: v.optional(v.array(LifecycleFlowTxMatchSchema), []),\n nextPageToken: v.optional(v.string(), \"\"),\n});\n\nexport function createListLifecycleFlowsByTxOutputSchema() {\n return ListLifecycleFlowsByTxOutputSchema;\n}\n\nexport type ListLifecycleFlowsInput = v.InferInput<typeof ListLifecycleFlowsInputSchema>;\nexport type ParsedListLifecycleFlowsInput = v.InferOutput<typeof ListLifecycleFlowsInputSchema>;\n\nexport type GetLifecycleFlowInput = v.InferInput<typeof GetLifecycleFlowInputSchema>;\nexport type ParsedGetLifecycleFlowInput = v.InferOutput<typeof GetLifecycleFlowInputSchema>;\n\nexport type ListLifecycleFlowsByTxInput = v.InferInput<typeof ListLifecycleFlowsByTxInputSchema>;\nexport type ParsedListLifecycleFlowsByTxInput = v.InferOutput<\n typeof ListLifecycleFlowsByTxInputSchema\n>;\n\nexport type LifecycleFlowSummary = v.InferOutput<typeof LifecycleFlowSummarySchema>;\nexport type LifecycleFlowStep = v.InferOutput<typeof LifecycleFlowStepSchema>;\nexport type LifecycleFlowStepActivity = v.InferOutput<typeof LifecycleFlowStepActivitySchema>;\nexport type LifecycleFlowTimelineItem = v.InferOutput<typeof LifecycleFlowTimelineItemSchema>;\nexport type LifecycleFlowDetail = v.InferOutput<typeof LifecycleFlowDetailSchema>;\n\nexport type ListLifecycleFlowsOutput = v.InferOutput<typeof ListLifecycleFlowsOutputSchema>;\nexport type GetLifecycleFlowOutput = v.InferOutput<typeof GetLifecycleFlowOutputSchema>;\nexport type ListLifecycleFlowsByTxOutput = v.InferOutput<typeof ListLifecycleFlowsByTxOutputSchema>;\n\nexport type LifecycleAssetIds = v.InferOutput<typeof LifecycleAssetIdsSchema>;\nexport type LifecycleRequestFee = v.InferOutput<typeof LifecycleRequestFeeSchema>;\n\nexport type LifecycleFlowSummaryProgress = v.InferOutput<typeof LifecycleFlowSummaryProgressSchema>;\nexport type LifecycleFlowState = v.InferOutput<typeof LifecycleFlowStateEnumSchema>;\nexport type LifecycleReason = LifecycleReasonValue;\nexport type LifecycleZipperReason = v.InferOutput<typeof LifecycleZipperReasonSchema>;\nexport type LifecycleListOrderBy = LifecycleListOrderByValue;\nexport type LifecycleListScope = LifecycleListScopeValue;\nexport type LifecycleSort = LifecycleSortValue;\nexport type LifecycleTxLookupKind = LifecycleTxLookupKindValue;\nexport type LifecycleRequestFeeStatus = LifecycleRequestFeeStatusValue;\n\nexport type LifecycleFlowTxMatch = v.InferOutput<typeof LifecycleFlowTxMatchSchema>;\n"],"mappings":";;;;;;;;;;AAoCA,MAAM,iBAAiB,EAAE,SAAS,0BAA0B;AAC5D,MAAM,kBAAkB,EAAE,SAAS,2BAA2B;AAE9D,MAAM,yBAAyB;AAC/B,MAAM,oBAAoB;AAC1B,MAAM,yBAAyB;AAC/B,MAAM,6BAA6B;AACnC,MAAM,YAAY;AAElB,SAAS,oBAAoB,OAAwB;CACjD,IAAI,uBAAuB,KAAK,KAAK,GAAG,OAAO;CAC/C,IAAI,kBAAkB,KAAK,KAAK,GAAG,OAAO;CAC1C,OAAO,uBAAuB,KAAK,KAAK;AAC5C;AAEA,SAAS,2BAA2B,OAAuB;CACvD,IAAI,uBAAuB,KAAK,KAAK,GAAG,OAAO,MAAM,YAAY;CAEjE,IAAI,kBAAkB,KAAK,KAAK,GAAG,OAAO;CAC1C,OAAO;AACX;AAEA,MAAM,0BAA0B,EAAE,KAC9B,EAAE,OAAO,GACT,EAAE,KAAK,GACP,EAAE,UAAU,GAAG,qBAAqB,GACpC,EAAE,MAAM,qBAAqB,iEAAiE,GAC9F,EAAE,UAAU,0BAA0B,CAC1C;AAEA,MAAM,0BAA0B,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,CAAC,CAAC;AAC3E,MAAM,4BAA4B,EAAE,KAChC,EAAE,OAAO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pD,sBAAsB;AAC1B,CAAC,GACD,EAAE,WAAW,UAAU,gBAAgB,KAAK,CAAC,CACjD;AAMA,MAAa,qCAAqC,EAAE,OAAO;CACvD,QAAQ,EAAE,OAAO;CACjB,SAAS,EAAE,SAAS,EAAE,MAAM,0BAA0B,GAAG,CAAC,CAAC;CAC3D,eAAe,EAAE,SAAS,EAAE,OAAO,GAAG,EAAE;AAC5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"market-data.d.ts","names":[],"sources":["../../../src/services/market-data/market-data.ts"],"mappings":";;;;;;;;UAwBU,6BAA6B,mBAAmB;EACtD;;;;;cAMS;;EAMG,YAAA,WAAW,WAAW,UAAU,mBAAmB,QAAQ;;;;EAUjE,WACF,OAAO,sBACP,UAAU,0BACX;IAAU,QAAQ;IAAe;;;;;;;;;EAiB9B,cAAc,UAAU,0BAA0B,QAAQ;;;;EAQhE,gBAAgB,OAAO"}
1
+ {"version":3,"file":"market-data.d.ts","names":[],"sources":["../../../src/services/market-data/market-data.ts"],"mappings":";;;;;;;;UAyBU,6BAA6B,mBAAmB;EACtD;;;;;cAMS;;EAMG,YAAA,WAAW,WAAW,UAAU,mBAAmB,QAAQ;;;;EAUjE,WACF,OAAO,sBACP,UAAU,0BACX;IAAU,QAAQ;IAAe;;;;;;;;;EAiB9B,cAAc,UAAU,0BAA0B,QAAQ;;;;EAQhE,gBAAgB,OAAO"}