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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/CHANGELOG.md +66 -8
  2. package/dist/catalogs/index.d.ts +2 -2
  3. package/dist/catalogs/snapshot-validation.js +10 -1
  4. package/dist/catalogs/snapshot-validation.js.map +1 -1
  5. package/dist/catalogs/zipper-catalog.d.ts +2 -0
  6. package/dist/catalogs/zipper-catalog.d.ts.map +1 -1
  7. package/dist/catalogs/zipper-catalog.js.map +1 -1
  8. package/dist/catalogs/zipper-supply.d.ts +2 -0
  9. package/dist/catalogs/zipper-supply.d.ts.map +1 -1
  10. package/dist/catalogs/zipper-supply.js +7 -5
  11. package/dist/catalogs/zipper-supply.js.map +1 -1
  12. package/dist/client.d.ts +2 -0
  13. package/dist/client.d.ts.map +1 -1
  14. package/dist/client.js +2 -0
  15. package/dist/client.js.map +1 -1
  16. package/dist/gen/ai/v1/assistant_pb.d.ts +679 -13
  17. package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -1
  18. package/dist/gen/ai/v1/assistant_pb.js +355 -97
  19. package/dist/gen/ai/v1/assistant_pb.js.map +1 -1
  20. package/dist/gen/alerts/v1/price_alerts_pb.d.ts +33 -4
  21. package/dist/gen/alerts/v1/price_alerts_pb.d.ts.map +1 -1
  22. package/dist/gen/alerts/v1/price_alerts_pb.js +23 -2
  23. package/dist/gen/alerts/v1/price_alerts_pb.js.map +1 -1
  24. package/dist/gen/auth/v1/activity_pb.d.ts +148 -0
  25. package/dist/gen/auth/v1/activity_pb.d.ts.map +1 -0
  26. package/dist/gen/auth/v1/activity_pb.js +40 -0
  27. package/dist/gen/auth/v1/activity_pb.js.map +1 -0
  28. package/dist/gen/auth/v1/api_keys_pb.d.ts +10 -4
  29. package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
  30. package/dist/gen/auth/v1/api_keys_pb.js +3 -1
  31. package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
  32. package/dist/gen/auth/v1/auth_pb.d.ts +61 -5
  33. package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
  34. package/dist/gen/auth/v1/auth_pb.js +23 -6
  35. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  36. package/dist/gen/auth/v1/mfa_pb.d.ts +140 -2
  37. package/dist/gen/auth/v1/mfa_pb.d.ts.map +1 -1
  38. package/dist/gen/auth/v1/mfa_pb.js +80 -8
  39. package/dist/gen/auth/v1/mfa_pb.js.map +1 -1
  40. package/dist/gen/auth/v1/policies_pb.d.ts +18 -3
  41. package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
  42. package/dist/gen/auth/v1/policies_pb.js +18 -3
  43. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  44. package/dist/gen/auth/v1/social_verification_pb.d.ts +36 -15
  45. package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
  46. package/dist/gen/auth/v1/social_verification_pb.js +1 -1
  47. package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
  48. package/dist/gen/auth/v1/subaccounts_pb.d.ts +15 -1
  49. package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
  50. package/dist/gen/auth/v1/subaccounts_pb.js +1 -1
  51. package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
  52. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +6 -2
  53. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -1
  54. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
  55. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +104 -6
  56. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  57. package/dist/gen/chain/withdraw/v1/withdraw_pb.js +49 -3
  58. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  59. package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +76 -3
  60. package/dist/gen/chain/zipper/v1/zipper_pb.d.ts.map +1 -1
  61. package/dist/gen/chain/zipper/v1/zipper_pb.js +46 -2
  62. package/dist/gen/chain/zipper/v1/zipper_pb.js.map +1 -1
  63. package/dist/gen/index.d.ts +3 -1
  64. package/dist/gen/index.js +4 -2
  65. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +21 -139
  66. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts.map +1 -1
  67. package/dist/gen/ledger/read/v1/ledger_read_pb.js +16 -17
  68. package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
  69. package/dist/gen/ledger/read/v1/statement_export_pb.d.ts +236 -20
  70. package/dist/gen/ledger/read/v1/statement_export_pb.d.ts.map +1 -1
  71. package/dist/gen/ledger/read/v1/statement_export_pb.js +44 -10
  72. package/dist/gen/ledger/read/v1/statement_export_pb.js.map +1 -1
  73. package/dist/gen/ledger/v1/catalog_pb.d.ts +9 -1
  74. package/dist/gen/ledger/v1/catalog_pb.d.ts.map +1 -1
  75. package/dist/gen/ledger/v1/catalog_pb.js +9 -1
  76. package/dist/gen/ledger/v1/catalog_pb.js.map +1 -1
  77. package/dist/gen/marketdata/v1/asset_info_pb.d.ts +158 -7
  78. package/dist/gen/marketdata/v1/asset_info_pb.d.ts.map +1 -1
  79. package/dist/gen/marketdata/v1/asset_info_pb.js +56 -6
  80. package/dist/gen/marketdata/v1/asset_info_pb.js.map +1 -1
  81. package/dist/gen/notifications/v1/notifications_pb.d.ts +45 -6
  82. package/dist/gen/notifications/v1/notifications_pb.d.ts.map +1 -1
  83. package/dist/gen/notifications/v1/notifications_pb.js +23 -5
  84. package/dist/gen/notifications/v1/notifications_pb.js.map +1 -1
  85. package/dist/gen/orders/v1/orders_pb.d.ts +105 -29
  86. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  87. package/dist/gen/orders/v1/orders_pb.js +14 -2
  88. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  89. package/dist/gen/orders/v1/orders_read_pb.d.ts +50 -20
  90. package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
  91. package/dist/gen/orders/v1/orders_read_pb.js +1 -1
  92. package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
  93. package/dist/gen/polyester/api/options_pb.d.ts +11 -2
  94. package/dist/gen/polyester/api/options_pb.d.ts.map +1 -1
  95. package/dist/gen/polyester/api/options_pb.js +13 -3
  96. package/dist/gen/polyester/api/options_pb.js.map +1 -1
  97. package/dist/gen/privatews/v1/private_ws_pb.d.ts +13 -3
  98. package/dist/gen/privatews/v1/private_ws_pb.d.ts.map +1 -1
  99. package/dist/gen/privatews/v1/private_ws_pb.js.map +1 -1
  100. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +126 -10
  101. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
  102. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +14 -6
  103. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
  104. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts +665 -0
  105. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts.map +1 -0
  106. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js +216 -0
  107. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js.map +1 -0
  108. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +166 -52
  109. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  110. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +50 -12
  111. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  112. package/dist/gen/system/v1/system_pb.d.ts +49 -2
  113. package/dist/gen/system/v1/system_pb.d.ts.map +1 -1
  114. package/dist/gen/system/v1/system_pb.js +18 -6
  115. package/dist/gen/system/v1/system_pb.js.map +1 -1
  116. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +150 -71
  117. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
  118. package/dist/gen/transfer/v1/internal_transfer_pb.js +56 -34
  119. package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
  120. package/dist/gen/triggers/v1/triggers_pb.d.ts +117 -16
  121. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  122. package/dist/gen/triggers/v1/triggers_pb.js +45 -2
  123. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  124. package/dist/index.d.ts +13 -9
  125. package/dist/realtime/client.js +5 -1
  126. package/dist/realtime/client.js.map +1 -1
  127. package/dist/realtime/snapshot-then-stream.js +5 -3
  128. package/dist/realtime/snapshot-then-stream.js.map +1 -1
  129. package/dist/services/account-activity/account-activity.d.ts +22 -0
  130. package/dist/services/account-activity/account-activity.d.ts.map +1 -0
  131. package/dist/services/account-activity/account-activity.js +32 -0
  132. package/dist/services/account-activity/account-activity.js.map +1 -0
  133. package/dist/services/account-activity/account-activity.schemas.d.ts +78 -0
  134. package/dist/services/account-activity/account-activity.schemas.d.ts.map +1 -0
  135. package/dist/services/account-activity/account-activity.schemas.js +44 -0
  136. package/dist/services/account-activity/account-activity.schemas.js.map +1 -0
  137. package/dist/services/account-activity/account-activity.types.d.ts +2 -0
  138. package/dist/services/account-activity/service.d.ts +8 -0
  139. package/dist/services/account-activity/service.d.ts.map +1 -0
  140. package/dist/services/account-activity/service.js +9 -0
  141. package/dist/services/account-activity/service.js.map +1 -0
  142. package/dist/services/address-book/address-book.schemas.js +2 -2
  143. package/dist/services/api-keys/api-keys.schemas.js +2 -2
  144. package/dist/services/assistant/assistant-events.schemas.d.ts +81 -81
  145. package/dist/services/assistant/assistant.codecs.d.ts +7 -2
  146. package/dist/services/assistant/assistant.codecs.d.ts.map +1 -1
  147. package/dist/services/assistant/assistant.codecs.js +18 -2
  148. package/dist/services/assistant/assistant.codecs.js.map +1 -1
  149. package/dist/services/assistant/assistant.d.ts +29 -2
  150. package/dist/services/assistant/assistant.d.ts.map +1 -1
  151. package/dist/services/assistant/assistant.js +44 -2
  152. package/dist/services/assistant/assistant.js.map +1 -1
  153. package/dist/services/assistant/assistant.schemas.d.ts +111 -6
  154. package/dist/services/assistant/assistant.schemas.d.ts.map +1 -1
  155. package/dist/services/assistant/assistant.schemas.js +74 -6
  156. package/dist/services/assistant/assistant.schemas.js.map +1 -1
  157. package/dist/services/assistant/assistant.types.d.ts +3 -3
  158. package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts +3 -1
  159. package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts.map +1 -1
  160. package/dist/services/auto-withdraw/auto-withdraw.codecs.js.map +1 -1
  161. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +15 -13
  162. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -1
  163. package/dist/services/auto-withdraw/auto-withdraw.schemas.js +1 -0
  164. package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -1
  165. package/dist/services/balances/balances.d.ts +1 -13
  166. package/dist/services/balances/balances.d.ts.map +1 -1
  167. package/dist/services/balances/balances.js +1 -45
  168. package/dist/services/balances/balances.js.map +1 -1
  169. package/dist/services/balances/balances.schemas.d.ts +1 -67
  170. package/dist/services/balances/balances.schemas.d.ts.map +1 -1
  171. package/dist/services/balances/balances.schemas.js +1 -22
  172. package/dist/services/balances/balances.schemas.js.map +1 -1
  173. package/dist/services/balances/balances.types.d.ts +2 -2
  174. package/dist/services/candles/candles.schemas.d.ts +10 -10
  175. package/dist/services/changelog/changelog.schemas.d.ts +38 -38
  176. package/dist/services/checkpoints/checkpoints.schemas.d.ts +3 -3
  177. package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +11 -11
  178. package/dist/services/dust-conversion/dust-conversion.schemas.d.ts.map +1 -1
  179. package/dist/services/dust-conversion/dust-conversion.schemas.js +1 -1
  180. package/dist/services/dust-conversion/dust-conversion.schemas.js.map +1 -1
  181. package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
  182. package/dist/services/internal-transfers/internal-transfers.codecs.d.ts +11 -6
  183. package/dist/services/internal-transfers/internal-transfers.codecs.d.ts.map +1 -1
  184. package/dist/services/internal-transfers/internal-transfers.codecs.js +6 -6
  185. package/dist/services/internal-transfers/internal-transfers.codecs.js.map +1 -1
  186. package/dist/services/internal-transfers/internal-transfers.d.ts +17 -10
  187. package/dist/services/internal-transfers/internal-transfers.d.ts.map +1 -1
  188. package/dist/services/internal-transfers/internal-transfers.js +21 -10
  189. package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
  190. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +43 -31
  191. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts.map +1 -1
  192. package/dist/services/internal-transfers/internal-transfers.schemas.js +23 -12
  193. package/dist/services/internal-transfers/internal-transfers.schemas.js.map +1 -1
  194. package/dist/services/internal-transfers/internal-transfers.types.d.ts +2 -2
  195. package/dist/services/lifecycle/lifecycle.d.ts +1 -1
  196. package/dist/services/lifecycle/lifecycle.js +2 -3
  197. package/dist/services/lifecycle/lifecycle.js.map +1 -1
  198. package/dist/services/lifecycle/lifecycle.schemas.d.ts +40 -40
  199. package/dist/services/market-data/market-data.codecs.d.ts +8 -0
  200. package/dist/services/market-data/market-data.codecs.d.ts.map +1 -0
  201. package/dist/services/market-data/market-data.codecs.js +7 -1
  202. package/dist/services/market-data/market-data.codecs.js.map +1 -1
  203. package/dist/services/market-data/market-data.d.ts +3 -2
  204. package/dist/services/market-data/market-data.d.ts.map +1 -1
  205. package/dist/services/market-data/market-data.js +3 -2
  206. package/dist/services/market-data/market-data.js.map +1 -1
  207. package/dist/services/market-data/market-data.schemas.d.ts +332 -4
  208. package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
  209. package/dist/services/market-data/market-data.schemas.js +56 -8
  210. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  211. package/dist/services/market-data/market-data.types.d.ts +3 -2
  212. package/dist/services/notifications/notifications.codecs.d.ts +1 -1
  213. package/dist/services/notifications/notifications.codecs.d.ts.map +1 -1
  214. package/dist/services/notifications/notifications.codecs.js +2 -1
  215. package/dist/services/notifications/notifications.codecs.js.map +1 -1
  216. package/dist/services/notifications/notifications.d.ts +4 -2
  217. package/dist/services/notifications/notifications.d.ts.map +1 -1
  218. package/dist/services/notifications/notifications.js +4 -2
  219. package/dist/services/notifications/notifications.js.map +1 -1
  220. package/dist/services/notifications/notifications.schemas.d.ts +63 -7
  221. package/dist/services/notifications/notifications.schemas.d.ts.map +1 -1
  222. package/dist/services/notifications/notifications.schemas.js +5 -0
  223. package/dist/services/notifications/notifications.schemas.js.map +1 -1
  224. package/dist/services/orderbook/orderbook.js +3 -2
  225. package/dist/services/orderbook/orderbook.js.map +1 -1
  226. package/dist/services/orders/order-enums.codecs.d.ts +2 -0
  227. package/dist/services/orders/order-errors.schemas.d.ts +50 -5
  228. package/dist/services/orders/order-errors.schemas.d.ts.map +1 -1
  229. package/dist/services/orders/order-errors.schemas.js +13 -3
  230. package/dist/services/orders/order-errors.schemas.js.map +1 -1
  231. package/dist/services/orders/orders-batch.schemas.d.ts +310 -70
  232. package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
  233. package/dist/services/orders/orders-input.schemas.d.ts +58 -11
  234. package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
  235. package/dist/services/orders/orders-input.schemas.js +1 -1
  236. package/dist/services/orders/orders-output.schemas.d.ts +13 -13
  237. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
  238. package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +1 -1
  239. package/dist/services/policies/shared.codecs.js +12 -6
  240. package/dist/services/policies/shared.codecs.js.map +1 -1
  241. package/dist/services/policies/shared.d.ts +1 -1
  242. package/dist/services/policies/shared.js +1 -1
  243. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +9 -9
  244. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +4 -30
  245. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
  246. package/dist/services/price-alerts/price-alerts.d.ts +5 -2
  247. package/dist/services/price-alerts/price-alerts.d.ts.map +1 -1
  248. package/dist/services/price-alerts/price-alerts.js +5 -2
  249. package/dist/services/price-alerts/price-alerts.js.map +1 -1
  250. package/dist/services/price-alerts/price-alerts.schemas.js +1 -1
  251. package/dist/services/rewards/rewards.schemas.d.ts +4 -4
  252. package/dist/services/social-verification/social-verification.schemas.d.ts +9 -0
  253. package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
  254. package/dist/services/social-verification/social-verification.schemas.js +9 -2
  255. package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
  256. package/dist/services/statement-exports/statement-exports.codecs.d.ts +3 -2
  257. package/dist/services/statement-exports/statement-exports.codecs.d.ts.map +1 -1
  258. package/dist/services/statement-exports/statement-exports.codecs.js +2 -1
  259. package/dist/services/statement-exports/statement-exports.codecs.js.map +1 -1
  260. package/dist/services/statement-exports/statement-exports.d.ts +25 -10
  261. package/dist/services/statement-exports/statement-exports.d.ts.map +1 -1
  262. package/dist/services/statement-exports/statement-exports.js +33 -10
  263. package/dist/services/statement-exports/statement-exports.js.map +1 -1
  264. package/dist/services/statement-exports/statement-exports.schemas.d.ts +38 -10
  265. package/dist/services/statement-exports/statement-exports.schemas.d.ts.map +1 -1
  266. package/dist/services/statement-exports/statement-exports.schemas.js +25 -6
  267. package/dist/services/statement-exports/statement-exports.schemas.js.map +1 -1
  268. package/dist/services/statement-exports/statement-exports.types.d.ts +2 -2
  269. package/dist/services/subaccounts/subaccounts.codecs.js +112 -38
  270. package/dist/services/subaccounts/subaccounts.codecs.js.map +1 -1
  271. package/dist/services/subaccounts/subaccounts.d.ts +2 -1
  272. package/dist/services/subaccounts/subaccounts.d.ts.map +1 -1
  273. package/dist/services/subaccounts/subaccounts.js +3 -3
  274. package/dist/services/subaccounts/subaccounts.js.map +1 -1
  275. package/dist/services/subaccounts/subaccounts.schemas.d.ts +12 -5
  276. package/dist/services/subaccounts/subaccounts.schemas.d.ts.map +1 -1
  277. package/dist/services/subaccounts/subaccounts.schemas.js +10 -3
  278. package/dist/services/subaccounts/subaccounts.schemas.js.map +1 -1
  279. package/dist/services/system/system.d.ts +12 -1
  280. package/dist/services/system/system.d.ts.map +1 -1
  281. package/dist/services/system/system.js +5 -0
  282. package/dist/services/system/system.js.map +1 -1
  283. package/dist/services/system/system.schemas.d.ts +13 -13
  284. package/dist/services/system/system.types.d.ts +2 -2
  285. package/dist/services/trades/trades.schemas.d.ts +2 -2
  286. package/dist/services/trading-withdraws/trading-withdraws.codecs.d.ts +8 -0
  287. package/dist/services/trading-withdraws/trading-withdraws.codecs.d.ts.map +1 -0
  288. package/dist/services/trading-withdraws/trading-withdraws.codecs.js +7 -1
  289. package/dist/services/trading-withdraws/trading-withdraws.codecs.js.map +1 -1
  290. package/dist/services/trading-withdraws/trading-withdraws.d.ts +2 -1
  291. package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
  292. package/dist/services/trading-withdraws/trading-withdraws.js +2 -1
  293. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  294. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +15 -0
  295. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  296. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +16 -2
  297. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  298. package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +2 -1
  299. package/dist/services/transfers/transfers.schemas.d.ts +4 -4
  300. package/dist/services/triggers/trigger-child-order.schemas.js +1 -1
  301. package/dist/services/triggers/trigger-child-order.schemas.js.map +1 -1
  302. package/dist/services/triggers/trigger-input.schemas.d.ts +10 -10
  303. package/dist/services/triggers/triggers-output.schemas.d.ts +170 -52
  304. package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
  305. package/dist/services/triggers/triggers-output.schemas.js +13 -3
  306. package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
  307. package/dist/services/triggers/triggers.codecs.d.ts +10 -0
  308. package/dist/services/triggers/triggers.codecs.d.ts.map +1 -0
  309. package/dist/services/triggers/triggers.codecs.js +7 -1
  310. package/dist/services/triggers/triggers.codecs.js.map +1 -1
  311. package/dist/services/triggers/triggers.d.ts +2 -2
  312. package/dist/services/triggers/triggers.js +2 -2
  313. package/dist/services/triggers/triggers.js.map +1 -1
  314. package/dist/services/zipper/zipper.d.ts.map +1 -1
  315. package/dist/services/zipper/zipper.js +13 -7
  316. package/dist/services/zipper/zipper.js.map +1 -1
  317. package/dist/services/zipper/zipper.schemas.d.ts +7 -2
  318. package/dist/services/zipper/zipper.schemas.d.ts.map +1 -1
  319. package/dist/services/zipper/zipper.schemas.js +29 -9
  320. package/dist/services/zipper/zipper.schemas.js.map +1 -1
  321. package/dist/services/zipper/zipper.types.d.ts +2 -2
  322. package/dist/shared/catalog-config.d.ts +16 -2
  323. package/dist/shared/catalog-config.d.ts.map +1 -1
  324. package/dist/shared/catalog-config.js.map +1 -1
  325. package/dist/shared/connect-error-mapping.d.ts.map +1 -1
  326. package/dist/shared/connect-error-mapping.js +27 -4
  327. package/dist/shared/connect-error-mapping.js.map +1 -1
  328. package/dist/shared/error-detail.d.ts +10 -0
  329. package/dist/shared/error-detail.d.ts.map +1 -1
  330. package/dist/shared/error-detail.js.map +1 -1
  331. package/dist/shared/error-details/auth.js +6 -0
  332. package/dist/shared/error-details/auth.js.map +1 -1
  333. package/dist/shared/errors.d.ts +5 -1
  334. package/dist/shared/errors.d.ts.map +1 -1
  335. package/dist/shared/errors.js +3 -0
  336. package/dist/shared/errors.js.map +1 -1
  337. package/dist/shared/ledger-codes.d.ts +3 -1
  338. package/dist/shared/ledger-codes.d.ts.map +1 -1
  339. package/dist/shared/ledger-codes.js +6 -3
  340. package/dist/shared/ledger-codes.js.map +1 -1
  341. package/dist/shared/rate-limit.schemas.d.ts +1 -1
  342. package/dist/wired-services.d.ts.map +1 -1
  343. package/dist/wired-services.js +3 -1
  344. package/dist/wired-services.js.map +1 -1
  345. package/package.json +1 -1
@@ -74,7 +74,9 @@ type AutoWithdrawDestination = Message<"chain.withdraw.v1.AutoWithdrawDestinatio
74
74
  */
75
75
  assetId: number;
76
76
  /**
77
- * External destination chain identifier.
77
+ * Polyester chain id of the destination network: ChainConfig.chain_id
78
+ * from GetDepositWithdrawConfig, not the network's native chain id
79
+ * (ChainConfig.native_chain_id).
78
80
  *
79
81
  * @generated from field: uint64 destination_chain_id = 2;
80
82
  */
@@ -444,7 +446,9 @@ type AutoWithdrawStep = Message<"chain.withdraw.v1.AutoWithdrawStep"> & {
444
446
  * less than 24 hours ago; the funds stay for a later run), route_suspended
445
447
  * (withdrawals of the asset to the destination network are suspended, as
446
448
  * its withdrawal_status SUSPENDED in the deposit and withdraw config shows;
447
- * the funds stay for a later run), authority_revoked,
449
+ * the funds stay for a later run), supply_unavailable (the destination
450
+ * route's supply_status in the deposit and withdraw config is MISSING or
451
+ * STALE; the funds stay for a later run), authority_revoked,
448
452
  * gateway_capacity_insufficient (the funds stay for a later run),
449
453
  * withdrawal_released or withdrawal_failed; empty otherwise.
450
454
  *
@@ -1 +1 @@
1
- {"version":3,"file":"auto_withdraw_pb.d.ts","names":[],"sources":["../../../../../src/gen/chain/withdraw/v1/auto_withdraw_pb.ts"],"mappings":";;;;;;;;;;cAgBa,sCAAsC;;;;;;;KASvC,uBAAuB;;;;;;EAMjC,SAAS;;;;;;EAOT,SAAS;;;;;;;EAQT;;;;;;EAOA;;;;;;EAOA;;;;;;;EAQA;;;;;;cAOW,4BAA4B,WAAW;;;;;;;KASxC,0BAA0B;;;;;;EAMpC;;;;;;EAOA;;;;;;;;EASA;;;;;;;;;EAUA,eAAe;;;;;;;;EASf,eAAe;;;;;;;;;;;;;EAcf,cAAc;;;;;;cAOH,+BAA+B,WAAW;;;;;;KAQ3C,oBAAoB;;;;;;EAM9B;;;;;;;;;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/withdraw/v1/auto_withdraw_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file chain/withdraw/v1/auto_withdraw.proto (package chain.withdraw.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../../polyester/api/options_pb.js\";\nimport type { U128 } from \"../../../polyester/type/v1/u128_pb.js\";\nimport { file_polyester_type_v1_u128 } from \"../../../polyester/type/v1/u128_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file chain/withdraw/v1/auto_withdraw.proto.\n */\nexport const file_chain_withdraw_v1_auto_withdraw: GenFile = /*@__PURE__*/\n fileDesc(\"CiVjaGFpbi93aXRoZHJhdy92MS9hdXRvX3dpdGhkcmF3LnByb3RvEhFjaGFpbi53aXRoZHJhdy52MSLuAQoUQXV0b1dpdGhkcmF3U2NoZWR1bGUSOQoHY2FkZW5jZRgBIAEoDjImLmNoYWluLndpdGhkcmF3LnYxLkF1dG9XaXRoZHJhd0NhZGVuY2VCABI5Cgd3ZWVrZGF5GAIgASgOMiYuY2hhaW4ud2l0aGRyYXcudjEuQXV0b1dpdGhkcmF3V2Vla2RheUIAEhcKDW1pbnV0ZV9vZl9kYXkYAyABKA1CABIYCg5taW51dGVfb2ZfaG91chgEIAEoDUIAEhYKDGRheV9vZl9tb250aBgFIAEoDUIAEhUKC2FuY2hvcl9kYXRlGAYgASgJQgAiggIKF0F1dG9XaXRoZHJhd0Rlc3RpbmF0aW9uEhIKCGFzc2V0X2lkGAEgASgNQgASHgoUZGVzdGluYXRpb25fY2hhaW5faWQYAiABKARCABIdChNkZXN0a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ZXRBdXRvV2l0aGRyYXdSdWxlEi0uY2hhaW4ud2l0aGRyYXcudjEuU2V0QXV0b1dpdGhkcmF3UnVsZVJlcXVlc3QaLi5jaGFpbi53aXRoZHJhdy52MS5TZXRBdXRvV2l0aGRyYXdSdWxlUmVzcG9uc2UiABKLAQoaU2V0QXV0b1dpdGhkcmF3UnVsZUVuYWJsZWQSNC5jaGFpbi53aXRoZHJhdy52MS5TZXRBdXRvV2l0aGRyYXdSdWxlRW5hYmxlZFJlcXVlc3QaNS5jaGFpbi53aXRoZHJhdy52MS5TZXRBdXRvV2l0aGRyYXdSdWxlRW5hYmxlZFJlc3BvbnNlIgASdgoTR2V0QXV0b1dpdGhkcmF3UnVsZRItLmNoYWluLndpdGhkcmF3LnYxLkdldEF1dG9XaXRoZHJhd1J1bGVSZXF1ZXN0Gi4uY2hhaW4ud2l0aGRyYXcudjEuR2V0QXV0b1dpdGhkcmF3UnVsZVJlc3BvbnNlIgASeQoUTGlzdEF1dG9XaXRoZHJhd1J1bnMSLi5jaGFpbi53aXRoZHJhdy52MS5MaXN0QXV0b1dpdGhkcmF3UnVuc1JlcXVlc3QaLy5jaGFpbi53aXRoZHJhdy52MS5MaXN0QXV0b1dpdGhkcmF3UnVuc1Jlc3BvbnNlIgASfwoWUHJldmlld0F1dG9XaXRoZHJhd1J1bhIwLmNoYWluLndpdGhkcmF3LnYxLlByZXZpZXdBdXRvV2l0aGRyYXdSdW5SZXF1ZXN0GjEuY2hhaW4ud2l0aGRyYXcudjEuUHJldmlld0F1dG9XaXRoZHJhd1J1blJlc3BvbnNlIgAaAEJPWk1naXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL2NoYWluL3dpdGhkcmF3L3YxO2NoYWlud2l0aGRyYXd2MWIGcHJvdG8z\", [file_google_protobuf_timestamp, file_polyester_api_options, file_polyester_type_v1_u128]);\n\n/**\n * AutoWithdrawSchedule is a rule's UTC run slot. Only the fields of its\n * cadence may be set; the others must be zero or empty.\n *\n * @generated from message chain.withdraw.v1.AutoWithdrawSchedule\n */\nexport type AutoWithdrawSchedule = Message<\"chain.withdraw.v1.AutoWithdrawSchedule\"> & {\n /**\n * How often the rule runs.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawCadence cadence = 1;\n */\n cadence: AutoWithdrawCadence;\n\n /**\n * Run day of a weekly or biweekly rule.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawWeekday weekday = 2;\n */\n weekday: AutoWithdrawWeekday;\n\n /**\n * Minute after 00:00 UTC the run starts, 0 to 1439, for every cadence but\n * HOURLY; must be 0 for an hourly rule.\n *\n * @generated from field: uint32 minute_of_day = 3;\n */\n minuteOfDay: number;\n\n /**\n * Minute past every hour an HOURLY rule is checked, 0 to 59.\n *\n * @generated from field: uint32 minute_of_hour = 4;\n */\n minuteOfHour: number;\n\n /**\n * Run day of a MONTHLY rule, 1 to 31; see MONTHLY for shorter months.\n *\n * @generated from field: uint32 day_of_month = 5;\n */\n dayOfMonth: number;\n\n /**\n * A UTC date (YYYY-MM-DD) in a week a BIWEEKLY rule runs; weeks start on\n * Monday. Responses return the Monday that starts that week.\n *\n * @generated from field: string anchor_date = 6;\n */\n anchorDate: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.AutoWithdrawSchedule.\n * Use `create(AutoWithdrawScheduleSchema)` to create a new message.\n */\nexport const AutoWithdrawScheduleSchema: GenMessage<AutoWithdrawSchedule> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 0);\n\n/**\n * AutoWithdrawDestination pays one asset, in kind, to one external-chain\n * address.\n *\n * @generated from message chain.withdraw.v1.AutoWithdrawDestination\n */\nexport type AutoWithdrawDestination = Message<\"chain.withdraw.v1.AutoWithdrawDestination\"> & {\n /**\n * Ledger asset paid. At most one destination per asset.\n *\n * @generated from field: uint32 asset_id = 1;\n */\n assetId: number;\n\n /**\n * External destination chain identifier.\n *\n * @generated from field: uint64 destination_chain_id = 2;\n */\n destinationChainId: bigint;\n\n /**\n * Destination address on destination_chain_id. It must be on the\n * account's external withdraw whitelist when the rule is written and\n * whenever a run pays it. Responses carry its canonical form.\n *\n * @generated from field: string destination_address = 3;\n */\n destinationAddress: string;\n\n /**\n * A run pays this asset only when the payable amount reaches this\n * minimum, in 18-decimal asset units, and the rule's min_usd_value_e18;\n * otherwise the balance stays on the account for a later run. Must be at\n * least min_floor_e18 when the rule is set.\n *\n * @generated from field: polyester.type.v1.U128 min_amount_e18 = 4;\n */\n minAmountE18?: U128 | undefined;\n\n /**\n * The most one run pays this asset, in 18-decimal asset units; at least\n * min_amount_e18. A larger balance pays this ceiling and the rest stays on\n * the account.\n *\n * @generated from field: polyester.type.v1.U128 max_amount_e18 = 5;\n */\n maxAmountE18?: U128 | undefined;\n\n /**\n * Returned in responses only; ignored in requests. The least amount one\n * payout to this destination can pay now, in 18-decimal asset units: the\n * route's withdrawal minimum, and more than its current network fee. It\n * follows the network fee, so it can change between reads. A run pays at\n * least this floor and min_amount_e18, and a new rule needs a\n * min_amount_e18 of at least the floor. Unset when the route or its network\n * fee is not known now; a new rule for that destination is then refused\n * with FEE_UNAVAILABLE or a route code.\n *\n * @generated from field: polyester.type.v1.U128 min_floor_e18 = 6;\n */\n minFloorE18?: U128 | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.AutoWithdrawDestination.\n * Use `create(AutoWithdrawDestinationSchema)` to create a new message.\n */\nexport const AutoWithdrawDestinationSchema: GenMessage<AutoWithdrawDestination> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 1);\n\n/**\n * AutoWithdrawPause reports why a rule stopped running on its own.\n *\n * @generated from message chain.withdraw.v1.AutoWithdrawPause\n */\nexport type AutoWithdrawPause = Message<\"chain.withdraw.v1.AutoWithdrawPause\"> & {\n /**\n * Asset whose payout paused the rule; zero when no payout did.\n *\n * @generated from field: uint32 asset_id = 1;\n */\n assetId: number;\n\n /**\n * Machine-readable reason: destination_not_whitelisted when the\n * destination left the account's external withdraw whitelist,\n * destination_invalid when it is no longer a valid destination, or\n * authority_revoked when the person who set the rule may no longer change\n * it or withdraw from the account. On a broker vault the rule pauses with\n * authority_revoked as soon as its author's broker role changes in any\n * way: removed, demoted, or promoted (for example Finance to Owner), and\n * also when the author is removed and added back. An Owner or Finance\n * member resumes it with a fresh step-up.\n *\n * @generated from field: string reason = 2;\n */\n reason: string;\n\n /**\n * When the rule was paused.\n *\n * @generated from field: google.protobuf.Timestamp paused_at = 3;\n */\n pausedAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.AutoWithdrawPause.\n * Use `create(AutoWithdrawPauseSchema)` to create a new message.\n */\nexport const AutoWithdrawPauseSchema: GenMessage<AutoWithdrawPause> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 2);\n\n/**\n * AutoWithdrawRule is one version of an account's auto-withdraw rule. Each\n * change, pause or resume creates the next version; only the latest version\n * runs, and a run in progress keeps the version it started with but pays\n * nothing further once that version is no longer the latest.\n *\n * @generated from message chain.withdraw.v1.AutoWithdrawRule\n */\nexport type AutoWithdrawRule = Message<\"chain.withdraw.v1.AutoWithdrawRule\"> & {\n /**\n * Public subaccount ID the rule belongs to; zero for the root account.\n *\n * @generated from field: fixed64 subaccount_id = 1;\n */\n subaccountId: bigint;\n\n /**\n * Rule version, starting at 1.\n *\n * @generated from field: uint32 version = 2;\n */\n version: number;\n\n /**\n * Whether the rule runs. A paused version (enabled false) keeps its\n * schedule and destinations, so it resumes to the same destinations. The\n * rule runs only while enabled and without a pause.\n *\n * @generated from field: bool enabled = 3;\n */\n enabled: boolean;\n\n /**\n * When the rule runs.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawSchedule schedule = 4;\n */\n schedule?: AutoWithdrawSchedule | undefined;\n\n /**\n * One destination per paid asset, ordered by asset_id. Empty only on a\n * version that was disabled before pausing kept destinations.\n *\n * @generated from field: repeated chain.withdraw.v1.AutoWithdrawDestination destinations = 5;\n */\n destinations: AutoWithdrawDestination[];\n\n /**\n * When this version was created.\n *\n * @generated from field: google.protobuf.Timestamp created_at = 6;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * Set when the rule paused itself; resuming it or setting a new rule\n * clears it.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawPause pause = 7;\n */\n pause?: AutoWithdrawPause | undefined;\n\n /**\n * Least USD value one payout of the rule pays, in 18-decimal USD units;\n * zero means no USD minimum.\n *\n * @generated from field: polyester.type.v1.U128 min_usd_value_e18 = 8;\n */\n minUsdValueE18?: U128 | undefined;\n\n /**\n * Public account ID of the person who created this version.\n *\n * @generated from field: fixed64 created_by_account_id = 9;\n */\n createdByAccountId: bigint;\n};\n\n/**\n * Describes the message chain.withdraw.v1.AutoWithdrawRule.\n * Use `create(AutoWithdrawRuleSchema)` to create a new message.\n */\nexport const AutoWithdrawRuleSchema: GenMessage<AutoWithdrawRule> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 3);\n\n/**\n * SetAutoWithdrawRuleRequest creates or replaces the rule of the root\n * account or one subaccount.\n *\n * @generated from message chain.withdraw.v1.SetAutoWithdrawRuleRequest\n */\nexport type SetAutoWithdrawRuleRequest = Message<\"chain.withdraw.v1.SetAutoWithdrawRuleRequest\"> & {\n /**\n * Public subaccount ID; omit for the root account.\n *\n * @generated from field: fixed64 subaccount_id = 1;\n */\n subaccountId: bigint;\n\n /**\n * The version the change replaces: 0 when the account has no rule yet,\n * otherwise its latest version. A mismatch is rejected so concurrent\n * changes never overwrite each other.\n *\n * @generated from field: uint32 expected_version = 2;\n */\n expectedVersion: number;\n\n /**\n * When the rule runs.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawSchedule schedule = 3;\n */\n schedule?: AutoWithdrawSchedule | undefined;\n\n /**\n * Destinations, one per asset, 1 to 32.\n *\n * @generated from field: repeated chain.withdraw.v1.AutoWithdrawDestination destinations = 4;\n */\n destinations: AutoWithdrawDestination[];\n\n /**\n * Least USD value one payout pays, in 18-decimal USD units; unset or zero\n * for no USD minimum. Each run values each asset's payable amount at the\n * current index price. A smaller amount stays on the account for a later\n * run, and the asset is skipped with reason price_unavailable when no\n * current price is available. A payout never goes below its destination's\n * min_amount_e18 or the route's withdrawal minimum.\n *\n * @generated from field: polyester.type.v1.U128 min_usd_value_e18 = 5;\n */\n minUsdValueE18?: U128 | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.SetAutoWithdrawRuleRequest.\n * Use `create(SetAutoWithdrawRuleRequestSchema)` to create a new message.\n */\nexport const SetAutoWithdrawRuleRequestSchema: GenMessage<SetAutoWithdrawRuleRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 4);\n\n/**\n * SetAutoWithdrawRuleResponse returns the new rule version.\n *\n * @generated from message chain.withdraw.v1.SetAutoWithdrawRuleResponse\n */\nexport type SetAutoWithdrawRuleResponse = Message<\"chain.withdraw.v1.SetAutoWithdrawRuleResponse\"> & {\n /**\n * The created version.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawRule rule = 1;\n */\n rule?: AutoWithdrawRule | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.SetAutoWithdrawRuleResponse.\n * Use `create(SetAutoWithdrawRuleResponseSchema)` to create a new message.\n */\nexport const SetAutoWithdrawRuleResponseSchema: GenMessage<SetAutoWithdrawRuleResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 5);\n\n/**\n * SetAutoWithdrawRuleEnabledRequest pauses or resumes the rule of the root\n * account or one subaccount, keeping its schedule and destinations.\n *\n * @generated from message chain.withdraw.v1.SetAutoWithdrawRuleEnabledRequest\n */\nexport type SetAutoWithdrawRuleEnabledRequest = Message<\"chain.withdraw.v1.SetAutoWithdrawRuleEnabledRequest\"> & {\n /**\n * Public subaccount ID; omit for the root account.\n *\n * @generated from field: fixed64 subaccount_id = 1;\n */\n subaccountId: bigint;\n\n /**\n * The account's latest rule version. A mismatch is rejected so concurrent\n * changes never overwrite each other.\n *\n * @generated from field: uint32 expected_version = 2;\n */\n expectedVersion: number;\n\n /**\n * false pauses the rule; true resumes it.\n *\n * @generated from field: bool enabled = 3;\n */\n enabled: boolean;\n};\n\n/**\n * Describes the message chain.withdraw.v1.SetAutoWithdrawRuleEnabledRequest.\n * Use `create(SetAutoWithdrawRuleEnabledRequestSchema)` to create a new message.\n */\nexport const SetAutoWithdrawRuleEnabledRequestSchema: GenMessage<SetAutoWithdrawRuleEnabledRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 6);\n\n/**\n * SetAutoWithdrawRuleEnabledResponse returns the rule's latest version.\n *\n * @generated from message chain.withdraw.v1.SetAutoWithdrawRuleEnabledResponse\n */\nexport type SetAutoWithdrawRuleEnabledResponse = Message<\"chain.withdraw.v1.SetAutoWithdrawRuleEnabledResponse\"> & {\n /**\n * The created version, or the latest version unchanged when the rule was\n * already in the requested state.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawRule rule = 1;\n */\n rule?: AutoWithdrawRule | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.SetAutoWithdrawRuleEnabledResponse.\n * Use `create(SetAutoWithdrawRuleEnabledResponseSchema)` to create a new message.\n */\nexport const SetAutoWithdrawRuleEnabledResponseSchema: GenMessage<SetAutoWithdrawRuleEnabledResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 7);\n\n/**\n * GetAutoWithdrawRuleRequest reads the latest rule version.\n *\n * @generated from message chain.withdraw.v1.GetAutoWithdrawRuleRequest\n */\nexport type GetAutoWithdrawRuleRequest = Message<\"chain.withdraw.v1.GetAutoWithdrawRuleRequest\"> & {\n /**\n * Public subaccount ID; omit for the root account.\n *\n * @generated from field: fixed64 subaccount_id = 1;\n */\n subaccountId: bigint;\n};\n\n/**\n * Describes the message chain.withdraw.v1.GetAutoWithdrawRuleRequest.\n * Use `create(GetAutoWithdrawRuleRequestSchema)` to create a new message.\n */\nexport const GetAutoWithdrawRuleRequestSchema: GenMessage<GetAutoWithdrawRuleRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 8);\n\n/**\n * GetAutoWithdrawRuleResponse returns the latest rule version.\n *\n * @generated from message chain.withdraw.v1.GetAutoWithdrawRuleResponse\n */\nexport type GetAutoWithdrawRuleResponse = Message<\"chain.withdraw.v1.GetAutoWithdrawRuleResponse\"> & {\n /**\n * The latest version; unset when the account never had a rule.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawRule rule = 1;\n */\n rule?: AutoWithdrawRule | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.GetAutoWithdrawRuleResponse.\n * Use `create(GetAutoWithdrawRuleResponseSchema)` to create a new message.\n */\nexport const GetAutoWithdrawRuleResponseSchema: GenMessage<GetAutoWithdrawRuleResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 9);\n\n/**\n * AutoWithdrawStep is one asset's payout in a run.\n *\n * @generated from message chain.withdraw.v1.AutoWithdrawStep\n */\nexport type AutoWithdrawStep = Message<\"chain.withdraw.v1.AutoWithdrawStep\"> & {\n /**\n * Ledger asset paid.\n *\n * @generated from field: uint32 asset_id = 1;\n */\n assetId: number;\n\n /**\n * External destination chain identifier.\n *\n * @generated from field: uint64 destination_chain_id = 2;\n */\n destinationChainId: bigint;\n\n /**\n * Canonical destination address.\n *\n * @generated from field: string destination_address = 3;\n */\n destinationAddress: string;\n\n /**\n * The account's available balance of the asset when the run started, in\n * 18-decimal asset units.\n *\n * @generated from field: polyester.type.v1.U128 available_e18 = 4;\n */\n availableE18?: U128 | undefined;\n\n /**\n * What the step pays, in 18-decimal asset units: the available balance\n * up to the ceiling, rounded down to whole on-chain units. Zero when\n * skipped. The remainder stays on the account.\n *\n * @generated from field: polyester.type.v1.U128 amount_e18 = 5;\n */\n amountE18?: U128 | undefined;\n\n /**\n * Where the payout stands.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawStepState state = 6;\n */\n state: AutoWithdrawStepState;\n\n /**\n * Machine-readable reason for a skipped or failed step, such as\n * below_minimum, price_unavailable (the rule has a USD minimum and no\n * current price valued the asset; the funds stay for a later run),\n * rule_superseded, destination_not_whitelisted, destination_cooling_down\n * (a broker vault's destination added to its external withdraw whitelist\n * less than 24 hours ago; the funds stay for a later run), route_suspended\n * (withdrawals of the asset to the destination network are suspended, as\n * its withdrawal_status SUSPENDED in the deposit and withdraw config shows;\n * the funds stay for a later run), authority_revoked,\n * gateway_capacity_insufficient (the funds stay for a later run),\n * withdrawal_released or withdrawal_failed; empty otherwise.\n *\n * @generated from field: string reason = 7;\n */\n reason: string;\n\n /**\n * Withdraw intent identifier once the withdrawal is accepted; follows the\n * same lifecycle as a user withdrawal.\n *\n * @generated from field: string intent_id = 8;\n */\n intentId: string;\n\n /**\n * Destination-network transaction hash, set once Zipper committed the\n * withdrawal's destination transaction and empty before. On a completed\n * step it is the delivery. When the withdrawal's execution failed after\n * that commit, the step fails with withdrawal_failed and keeps this hash:\n * the funds were not returned to the account, and the bridge operator\n * reviews the withdrawal.\n *\n * @generated from field: string tx_hash = 9;\n */\n txHash: string;\n\n /**\n * USD value of the payable amount when the run started, in 18-decimal USD\n * units, checked against the rule's min_usd_value_e18. Unset when the rule\n * has no USD minimum or no current price was available.\n *\n * @generated from field: polyester.type.v1.U128 value_usd_e18 = 10;\n */\n valueUsdE18?: U128 | undefined;\n\n /**\n * The network fee charged on the withdrawal, in 18-decimal asset units.\n * Once it completed: taken out of amount_e18, so the destination received\n * amount_e18 minus this fee. Once Zipper rejected it or its execution\n * failed: the fee Zipper kept, which is not refunded. Unset until the step\n * is final, when it was skipped or failed before it reached Zipper, and\n * when the fee was not reported.\n *\n * @generated from field: polyester.type.v1.U128 network_fee_e18 = 11;\n */\n networkFeeE18?: U128 | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.AutoWithdrawStep.\n * Use `create(AutoWithdrawStepSchema)` to create a new message.\n */\nexport const AutoWithdrawStepSchema: GenMessage<AutoWithdrawStep> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 10);\n\n/**\n * AutoWithdrawRun is one scheduled run of an account's rule.\n *\n * @generated from message chain.withdraw.v1.AutoWithdrawRun\n */\nexport type AutoWithdrawRun = Message<\"chain.withdraw.v1.AutoWithdrawRun\"> & {\n /**\n * The account's run number, increasing by one per run.\n *\n * @generated from field: uint64 run_seq = 1;\n */\n runSeq: bigint;\n\n /**\n * The rule version the run executes.\n *\n * @generated from field: uint32 rule_version = 2;\n */\n ruleVersion: number;\n\n /**\n * The scheduled slot the run belongs to.\n *\n * @generated from field: google.protobuf.Timestamp scheduled_for = 3;\n */\n scheduledFor?: Timestamp | undefined;\n\n /**\n * Where the run stands.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawRunState state = 4;\n */\n state: AutoWithdrawRunState;\n\n /**\n * Machine-readable reason for a skipped run: nothing_to_pay,\n * price_unavailable (an asset was not paid because no current price valued\n * it) or rule_superseded; empty otherwise.\n *\n * @generated from field: string reason = 5;\n */\n reason: string;\n\n /**\n * One step per destination of the rule version, ordered by asset_id.\n * Empty while the run is planned.\n *\n * @generated from field: repeated chain.withdraw.v1.AutoWithdrawStep steps = 6;\n */\n steps: AutoWithdrawStep[];\n\n /**\n * When the run started.\n *\n * @generated from field: google.protobuf.Timestamp created_at = 7;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * When the run ended; unset while it is in progress.\n *\n * @generated from field: google.protobuf.Timestamp finished_at = 8;\n */\n finishedAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.AutoWithdrawRun.\n * Use `create(AutoWithdrawRunSchema)` to create a new message.\n */\nexport const AutoWithdrawRunSchema: GenMessage<AutoWithdrawRun> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 11);\n\n/**\n * ListAutoWithdrawRunsRequest pages through an account's runs, newest first.\n *\n * @generated from message chain.withdraw.v1.ListAutoWithdrawRunsRequest\n */\nexport type ListAutoWithdrawRunsRequest = Message<\"chain.withdraw.v1.ListAutoWithdrawRunsRequest\"> & {\n /**\n * Public subaccount ID; omit for the root account.\n *\n * @generated from field: fixed64 subaccount_id = 1;\n */\n subaccountId: bigint;\n\n /**\n * Maximum number of runs to return: 0 means 20, at most 100.\n *\n * @generated from field: uint32 limit = 2;\n */\n limit: number;\n\n /**\n * Opaque, exclusive, keyset-backed cursor from a previous response,\n * bound to the caller's account or subaccount and the newest-first\n * run_seq order. Empty for the first page.\n *\n * @generated from field: string page_token = 3;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.ListAutoWithdrawRunsRequest.\n * Use `create(ListAutoWithdrawRunsRequestSchema)` to create a new message.\n */\nexport const ListAutoWithdrawRunsRequestSchema: GenMessage<ListAutoWithdrawRunsRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 12);\n\n/**\n * ListAutoWithdrawRunsResponse returns one page of runs, newest first.\n *\n * @generated from message chain.withdraw.v1.ListAutoWithdrawRunsResponse\n */\nexport type ListAutoWithdrawRunsResponse = Message<\"chain.withdraw.v1.ListAutoWithdrawRunsResponse\"> & {\n /**\n * Runs ordered by run_seq, newest first.\n *\n * @generated from field: repeated chain.withdraw.v1.AutoWithdrawRun runs = 1;\n */\n runs: AutoWithdrawRun[];\n\n /**\n * Cursor for the next page. Empty when no more results exist.\n *\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.ListAutoWithdrawRunsResponse.\n * Use `create(ListAutoWithdrawRunsResponseSchema)` to create a new message.\n */\nexport const ListAutoWithdrawRunsResponseSchema: GenMessage<ListAutoWithdrawRunsResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 13);\n\n/**\n * PreviewAutoWithdrawRunRequest previews the next run of the rule of the\n * root account or one subaccount.\n *\n * @generated from message chain.withdraw.v1.PreviewAutoWithdrawRunRequest\n */\nexport type PreviewAutoWithdrawRunRequest = Message<\"chain.withdraw.v1.PreviewAutoWithdrawRunRequest\"> & {\n /**\n * Public subaccount ID; omit for the root account.\n *\n * @generated from field: fixed64 subaccount_id = 1;\n */\n subaccountId: bigint;\n};\n\n/**\n * Describes the message chain.withdraw.v1.PreviewAutoWithdrawRunRequest.\n * Use `create(PreviewAutoWithdrawRunRequestSchema)` to create a new message.\n */\nexport const PreviewAutoWithdrawRunRequestSchema: GenMessage<PreviewAutoWithdrawRunRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 14);\n\n/**\n * AutoWithdrawPreviewAsset is what the next run would do with one asset,\n * sized from the account's balance now.\n *\n * @generated from message chain.withdraw.v1.AutoWithdrawPreviewAsset\n */\nexport type AutoWithdrawPreviewAsset = Message<\"chain.withdraw.v1.AutoWithdrawPreviewAsset\"> & {\n /**\n * Ledger asset.\n *\n * @generated from field: uint32 asset_id = 1;\n */\n assetId: number;\n\n /**\n * External destination chain identifier; zero when the rule has no\n * destination for the asset.\n *\n * @generated from field: uint64 destination_chain_id = 2;\n */\n destinationChainId: bigint;\n\n /**\n * Canonical destination address; empty when the rule has no destination\n * for the asset.\n *\n * @generated from field: string destination_address = 3;\n */\n destinationAddress: string;\n\n /**\n * The account's available balance of the asset now, in 18-decimal asset\n * units.\n *\n * @generated from field: polyester.type.v1.U128 available_e18 = 4;\n */\n availableE18?: U128 | undefined;\n\n /**\n * What the run would pay, in 18-decimal asset units: the available balance\n * up to max_amount_e18, rounded down to whole on-chain units, or zero when\n * it holds. The network fee is taken out of it on the way.\n *\n * @generated from field: polyester.type.v1.U128 payable_e18 = 5;\n */\n payableE18?: U128 | undefined;\n\n /**\n * What would stay on the account, in 18-decimal asset units:\n * available_e18 minus payable_e18.\n *\n * @generated from field: polyester.type.v1.U128 held_back_e18 = 6;\n */\n heldBackE18?: U128 | undefined;\n\n /**\n * Why held_back_e18 stays, or why nothing pays: below_minimum (below\n * minimum_e18 or the rule's min_usd_value_e18), price_unavailable (the\n * rule has a USD minimum and no current price values the asset),\n * no_destination (the rule pays no destination for the asset),\n * destination_cooling_down (a broker vault pays a destination only once\n * it has been on the vault's external withdraw whitelist for 24 hours;\n * see payable_from), above_max (the balance above max_amount_e18 stays)\n * or dust (less than one whole on-chain unit stays); empty when the whole\n * balance pays.\n *\n * @generated from field: string hold_reason = 7;\n */\n holdReason: string;\n\n /**\n * The least one payout of the asset pays, in 18-decimal asset units: the\n * destination's min_amount_e18, or its min_floor_e18 when that is higher\n * and known now. Unset when the rule has no destination for the asset.\n *\n * @generated from field: polyester.type.v1.U128 minimum_e18 = 8;\n */\n minimumE18?: U128 | undefined;\n\n /**\n * USD value, in 18-decimal USD units, of what the asset pays before its\n * minimums (the available balance up to max_amount_e18, rounded down to\n * whole on-chain units), at the current price as of priced_at. A rule with\n * a USD minimum compares this value with it. Unset when no current price\n * values the asset or the rule has no destination for it.\n *\n * @generated from field: polyester.type.v1.U128 value_usd_e18 = 9;\n */\n valueUsdE18?: U128 | undefined;\n\n /**\n * When the price behind value_usd_e18 was observed; unset with it.\n *\n * @generated from field: google.protobuf.Timestamp priced_at = 10;\n */\n pricedAt?: Timestamp | undefined;\n\n /**\n * The network fee a payout to the destination is expected to be charged\n * now, in 18-decimal asset units: the route's latest sampled network fee,\n * the same figure min_floor_e18 stays above. It is taken out of the\n * payout, so the destination receives about payable_e18 minus this fee.\n * Unset when the rule has no destination for the asset or the fee is not\n * known now.\n *\n * @generated from field: polyester.type.v1.U128 network_fee_e18 = 11;\n */\n networkFeeE18?: U128 | undefined;\n\n /**\n * When network_fee_e18 was sampled; unset with it.\n *\n * @generated from field: google.protobuf.Timestamp network_fee_sampled_at = 12;\n */\n networkFeeSampledAt?: Timestamp | undefined;\n\n /**\n * Set only on a broker vault while the destination is cooling down: when\n * it can be paid, 24 hours after it was added to the vault's external\n * withdraw whitelist. Unset with hold_reason destination_cooling_down\n * when that time is not known yet.\n *\n * @generated from field: google.protobuf.Timestamp payable_from = 13;\n */\n payableFrom?: Timestamp | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.AutoWithdrawPreviewAsset.\n * Use `create(AutoWithdrawPreviewAssetSchema)` to create a new message.\n */\nexport const AutoWithdrawPreviewAssetSchema: GenMessage<AutoWithdrawPreviewAsset> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 15);\n\n/**\n * PreviewAutoWithdrawRunResponse previews the next run.\n *\n * @generated from message chain.withdraw.v1.PreviewAutoWithdrawRunResponse\n */\nexport type PreviewAutoWithdrawRunResponse = Message<\"chain.withdraw.v1.PreviewAutoWithdrawRunResponse\"> & {\n /**\n * Whether the next run would pay.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawPreviewStatus status = 1;\n */\n status: AutoWithdrawPreviewStatus;\n\n /**\n * When the next run starts: its UTC slot, or, while a due slot waits for\n * the scheduler, that slot. For an hourly rule, the next hourly check.\n * Unset when the account has no rule or the rule is paused.\n *\n * @generated from field: google.protobuf.Timestamp next_run_at = 2;\n */\n nextRunAt?: Timestamp | undefined;\n\n /**\n * The latest rule version; zero when the account has no rule.\n *\n * @generated from field: uint32 rule_version = 3;\n */\n ruleVersion: number;\n\n /**\n * Set when the rule paused itself; a rule paused by a person has none.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawPause pause = 4;\n */\n pause?: AutoWithdrawPause | undefined;\n\n /**\n * The rule's least USD value of one payout, in 18-decimal USD units; zero\n * means no USD minimum. Unset when the account has no rule.\n *\n * @generated from field: polyester.type.v1.U128 min_usd_value_e18 = 5;\n */\n minUsdValueE18?: U128 | undefined;\n\n /**\n * One entry per destination of the rule, then per other asset with a\n * positive balance, ordered by asset_id. Empty when the account has no\n * rule or the rule is paused.\n *\n * @generated from field: repeated chain.withdraw.v1.AutoWithdrawPreviewAsset assets = 6;\n */\n assets: AutoWithdrawPreviewAsset[];\n\n /**\n * When the balances, prices and fees the preview used were read.\n *\n * @generated from field: google.protobuf.Timestamp computed_at = 7;\n */\n computedAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.PreviewAutoWithdrawRunResponse.\n * Use `create(PreviewAutoWithdrawRunResponseSchema)` to create a new message.\n */\nexport const PreviewAutoWithdrawRunResponseSchema: GenMessage<PreviewAutoWithdrawRunResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 16);\n\n/**\n * AutoWithdrawCadence is how often an auto-withdraw rule runs. Every slot\n * is a UTC time, with no daylight-saving shift.\n *\n * @generated from enum chain.withdraw.v1.AutoWithdrawCadence\n */\nexport enum AutoWithdrawCadence {\n /**\n * Not set; rejected.\n *\n * @generated from enum value: CADENCE_UNSPECIFIED = 0;\n */\n CADENCE_UNSPECIFIED = 0,\n\n /**\n * Once a day at minute_of_day UTC.\n *\n * @generated from enum value: DAILY = 1;\n */\n DAILY = 1,\n\n /**\n * Once a week on weekday at minute_of_day UTC.\n *\n * @generated from enum value: WEEKLY = 2;\n */\n WEEKLY = 2,\n\n /**\n * Checked every hour at minute_of_hour UTC; pays only an asset whose\n * payable amount has reached its minimums, so a payout follows within the\n * hour of the balance reaching them. An hour with nothing to pay records\n * no run.\n *\n * @generated from enum value: HOURLY = 3;\n */\n HOURLY = 3,\n\n /**\n * Every two weeks on weekday at minute_of_day UTC: in the week of\n * anchor_date and every second week before or after it.\n *\n * @generated from enum value: BIWEEKLY = 4;\n */\n BIWEEKLY = 4,\n\n /**\n * Once a month on day_of_month at minute_of_day UTC. A month without that\n * day runs on its last day: day 31 runs on April 30 and on February 28 or\n * 29, and days 29 and 30 run on the last day of February.\n *\n * @generated from enum value: MONTHLY = 5;\n */\n MONTHLY = 5,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.AutoWithdrawCadence.\n */\nexport const AutoWithdrawCadenceSchema: GenEnum<AutoWithdrawCadence> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_auto_withdraw, 0);\n\n/**\n * AutoWithdrawWeekday is the run day of a weekly or biweekly rule.\n *\n * @generated from enum chain.withdraw.v1.AutoWithdrawWeekday\n */\nexport enum AutoWithdrawWeekday {\n /**\n * Not set; required for a weekly or biweekly rule and must be unset for\n * any other cadence.\n *\n * @generated from enum value: WEEKDAY_UNSPECIFIED = 0;\n */\n WEEKDAY_UNSPECIFIED = 0,\n\n /**\n * Monday.\n *\n * @generated from enum value: MONDAY = 1;\n */\n MONDAY = 1,\n\n /**\n * Tuesday.\n *\n * @generated from enum value: TUESDAY = 2;\n */\n TUESDAY = 2,\n\n /**\n * Wednesday.\n *\n * @generated from enum value: WEDNESDAY = 3;\n */\n WEDNESDAY = 3,\n\n /**\n * Thursday.\n *\n * @generated from enum value: THURSDAY = 4;\n */\n THURSDAY = 4,\n\n /**\n * Friday.\n *\n * @generated from enum value: FRIDAY = 5;\n */\n FRIDAY = 5,\n\n /**\n * Saturday.\n *\n * @generated from enum value: SATURDAY = 6;\n */\n SATURDAY = 6,\n\n /**\n * Sunday.\n *\n * @generated from enum value: SUNDAY = 7;\n */\n SUNDAY = 7,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.AutoWithdrawWeekday.\n */\nexport const AutoWithdrawWeekdaySchema: GenEnum<AutoWithdrawWeekday> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_auto_withdraw, 1);\n\n/**\n * AutoWithdrawRunState is where one auto-withdraw run stands.\n *\n * @generated from enum chain.withdraw.v1.AutoWithdrawRunState\n */\nexport enum AutoWithdrawRunState {\n /**\n * Never returned.\n *\n * @generated from enum value: RUN_STATE_UNSPECIFIED = 0;\n */\n RUN_STATE_UNSPECIFIED = 0,\n\n /**\n * The run is reading the account's balances.\n *\n * @generated from enum value: RUN_PLANNED = 1;\n */\n RUN_PLANNED = 1,\n\n /**\n * The run's payouts are in progress.\n *\n * @generated from enum value: RUN_PAYING = 2;\n */\n RUN_PAYING = 2,\n\n /**\n * Every payout completed or was skipped, and at least one paid.\n *\n * @generated from enum value: RUN_COMPLETED = 3;\n */\n RUN_COMPLETED = 3,\n\n /**\n * Some payouts failed. Each failed step says where its funds are\n * (STEP_FAILED).\n *\n * @generated from enum value: RUN_PARTIALLY_FAILED = 4;\n */\n RUN_PARTIALLY_FAILED = 4,\n\n /**\n * Every attempted payout failed. Each failed step says where its funds are\n * (STEP_FAILED).\n *\n * @generated from enum value: RUN_FAILED = 5;\n */\n RUN_FAILED = 5,\n\n /**\n * Nothing was paid: every asset was below its minimum, no current price\n * valued it, or the rule was no longer current.\n *\n * @generated from enum value: RUN_SKIPPED = 6;\n */\n RUN_SKIPPED = 6,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.AutoWithdrawRunState.\n */\nexport const AutoWithdrawRunStateSchema: GenEnum<AutoWithdrawRunState> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_auto_withdraw, 2);\n\n/**\n * AutoWithdrawStepState is where one asset's payout of a run stands.\n *\n * @generated from enum chain.withdraw.v1.AutoWithdrawStepState\n */\nexport enum AutoWithdrawStepState {\n /**\n * Never returned.\n *\n * @generated from enum value: STEP_STATE_UNSPECIFIED = 0;\n */\n STEP_STATE_UNSPECIFIED = 0,\n\n /**\n * Planned; not yet requested.\n *\n * @generated from enum value: STEP_PENDING = 1;\n */\n STEP_PENDING = 1,\n\n /**\n * Being requested.\n *\n * @generated from enum value: STEP_SUBMITTING = 2;\n */\n STEP_SUBMITTING = 2,\n\n /**\n * Withdrawal accepted; waiting for it to complete on chain.\n *\n * @generated from enum value: STEP_SUBMITTED = 3;\n */\n STEP_SUBMITTED = 3,\n\n /**\n * The withdrawal completed on chain.\n *\n * @generated from enum value: STEP_COMPLETED = 4;\n */\n STEP_COMPLETED = 4,\n\n /**\n * The withdrawal failed. Where its funds are depends on when it failed,\n * which its withdrawal flow shows:\n * - before it left the account: they stay on the account;\n * - rejected by Zipper (flow REFUNDED, reason ZIPPER_VALIDATION_REJECTED or\n * ZIPPER_EXECUTION_REJECTED): amount_e18 less network_fee_e18 is\n * refunded, as zTokens, to the account's smart account wallet, not to\n * the account's balance, and the network fee is not refunded;\n * - its execution failed after its destination transaction was sent (flow\n * FAILED, reason ZIPPER_WITHDRAW_EXECUTION_FAILED): Zipper reviews it and\n * settles it outside Polyester Chain; nothing is returned to the account.\n *\n * @generated from enum value: STEP_FAILED = 5;\n */\n STEP_FAILED = 5,\n\n /**\n * Nothing was paid for this asset in this run.\n *\n * @generated from enum value: STEP_SKIPPED = 6;\n */\n STEP_SKIPPED = 6,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.AutoWithdrawStepState.\n */\nexport const AutoWithdrawStepStateSchema: GenEnum<AutoWithdrawStepState> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_auto_withdraw, 3);\n\n/**\n * AutoWithdrawPreviewStatus is whether the next run would pay, judged from\n * the account's balances now.\n *\n * @generated from enum chain.withdraw.v1.AutoWithdrawPreviewStatus\n */\nexport enum AutoWithdrawPreviewStatus {\n /**\n * Never returned.\n *\n * @generated from enum value: PREVIEW_STATUS_UNSPECIFIED = 0;\n */\n PREVIEW_STATUS_UNSPECIFIED = 0,\n\n /**\n * At least one asset would pay.\n *\n * @generated from enum value: WILL_PAY = 1;\n */\n WILL_PAY = 1,\n\n /**\n * Nothing would pay: every asset with a destination is below its minimum\n * or the rule's USD minimum, has no current price for that minimum, or\n * pays a broker vault's destination that is still cooling down. The\n * balance stays on the account for a later run.\n *\n * @generated from enum value: ROLLS_OVER = 2;\n */\n ROLLS_OVER = 2,\n\n /**\n * Nothing would pay, and every positive balance is in an asset the rule\n * has no destination for.\n *\n * @generated from enum value: NO_DESTINATION = 3;\n */\n NO_DESTINATION = 3,\n\n /**\n * The rule is paused, by a person or by itself (see pause); no run starts\n * until it is resumed.\n *\n * @generated from enum value: PAUSED = 4;\n */\n PAUSED = 4,\n\n /**\n * The account has no rule.\n *\n * @generated from enum value: NO_RULE = 5;\n */\n NO_RULE = 5,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.AutoWithdrawPreviewStatus.\n */\nexport const AutoWithdrawPreviewStatusSchema: GenEnum<AutoWithdrawPreviewStatus> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_auto_withdraw, 4);\n\n/**\n * AutoWithdrawService manages scheduled in-kind auto-withdraw rules for a\n * root account or subaccount. A rule pays each asset's balance out on an\n * hourly, daily, weekly, biweekly or monthly UTC slot, through the normal\n * withdraw path, only to destinations on the account's external withdraw\n * whitelist. Changing or\n * resuming a rule requires a person with withdraw rights and a fresh\n * single-use MFA step-up, and pausing it requires such a person without a\n * step-up; API keys can read rules, runs and previews but never change\n * them. An API key reads only when its policy grants READ_AUTO_WITHDRAW (or\n * MANAGE_AUTO_WITHDRAW), and only its own account: a root-account key reads\n * the root account, and a subaccount key reads its subaccount.\n *\n * @generated from service chain.withdraw.v1.AutoWithdrawService\n */\nexport const AutoWithdrawService: GenService<{\n /**\n * Create the account's rule, or replace its latest version with a new\n * one. Requires a session login with withdraw rights on the account and\n * a fresh single-use step-up; every destination must be on the account's\n * external withdraw whitelist.\n *\n * A refused destination answers a typed code whose ErrorDetail.field_path\n * names the field, such as destinations[0].min_amount_e18:\n * EXTERNAL_DESTINATION_NOT_WHITELISTED, DESTINATION_INVALID (not a valid\n * address on its chain), ROUTE_UNSUPPORTED (no enabled withdrawal route\n * pays the asset to that chain) or MIN_AMOUNT_BELOW_FLOOR (its\n * ErrorDetail.min_floor_e18 is the floor). A stale expected_version\n * answers VERSION_CONFLICT.\n *\n * @generated from rpc chain.withdraw.v1.AutoWithdrawService.SetAutoWithdrawRule\n */\n setAutoWithdrawRule: {\n methodKind: \"unary\";\n input: typeof SetAutoWithdrawRuleRequestSchema;\n output: typeof SetAutoWithdrawRuleResponseSchema;\n },\n /**\n * Pause or resume the account's rule, keeping its schedule and\n * destinations. Requires a session login with withdraw rights on the\n * account. Pausing needs no step-up. Resuming needs a fresh single-use\n * step-up, checks again that every destination is still a valid\n * destination on the account's external withdraw whitelist, and clears a\n * pause the rule set itself; a refused destination answers the typed codes\n * of SetAutoWithdrawRule, and the rule stays paused. A rule already in the\n * requested state is returned unchanged. A stale expected_version answers\n * VERSION_CONFLICT.\n *\n * @generated from rpc chain.withdraw.v1.AutoWithdrawService.SetAutoWithdrawRuleEnabled\n */\n setAutoWithdrawRuleEnabled: {\n methodKind: \"unary\";\n input: typeof SetAutoWithdrawRuleEnabledRequestSchema;\n output: typeof SetAutoWithdrawRuleEnabledResponseSchema;\n },\n /**\n * Read the account's latest rule version.\n *\n * An API key needs READ_AUTO_WITHDRAW in its policy and reads only its own\n * account. Both refusals answer PERMISSION_DENIED: a key whose policy lacks\n * the action gets \"api key policy does not allow READ_AUTO_WITHDRAW\", and a\n * key that names an account other than its own, such as a root-account key\n * naming a subaccount, gets \"api key target scope mismatch\".\n *\n * @generated from rpc chain.withdraw.v1.AutoWithdrawService.GetAutoWithdrawRule\n */\n getAutoWithdrawRule: {\n methodKind: \"unary\";\n input: typeof GetAutoWithdrawRuleRequestSchema;\n output: typeof GetAutoWithdrawRuleResponseSchema;\n },\n /**\n * List the account's auto-withdraw runs with their payouts, newest first.\n *\n * An API key needs READ_AUTO_WITHDRAW in its policy and reads only its own\n * account. Both refusals answer PERMISSION_DENIED: a key whose policy lacks\n * the action gets \"api key policy does not allow READ_AUTO_WITHDRAW\", and a\n * key that names an account other than its own, such as a root-account key\n * naming a subaccount, gets \"api key target scope mismatch\".\n *\n * @generated from rpc chain.withdraw.v1.AutoWithdrawService.ListAutoWithdrawRuns\n */\n listAutoWithdrawRuns: {\n methodKind: \"unary\";\n input: typeof ListAutoWithdrawRunsRequestSchema;\n output: typeof ListAutoWithdrawRunsResponseSchema;\n },\n /**\n * Preview the account's next auto-withdraw run from its balances now:\n * when it starts, whether it would pay, and per asset what it would pay,\n * what would stay and why, its USD value and the expected network fee. It\n * plans exactly as the run does; balances, prices and fees can change\n * before the run starts. A price that is not current leaves the value\n * unset instead of failing the read. When prices cannot be read at all,\n * the values stay unset too, unless the rule has a USD minimum: prices\n * then decide what pays, so the read answers UNAVAILABLE and can be\n * retried.\n *\n * An API key needs READ_AUTO_WITHDRAW in its policy and reads only its own\n * account. Both refusals answer PERMISSION_DENIED: a key whose policy lacks\n * the action gets \"api key policy does not allow READ_AUTO_WITHDRAW\", and a\n * key that names an account other than its own, such as a root-account key\n * naming a subaccount, gets \"api key target scope mismatch\".\n *\n * @generated from rpc chain.withdraw.v1.AutoWithdrawService.PreviewAutoWithdrawRun\n */\n previewAutoWithdrawRun: {\n methodKind: \"unary\";\n input: typeof PreviewAutoWithdrawRunRequestSchema;\n output: typeof PreviewAutoWithdrawRunResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_chain_withdraw_v1_auto_withdraw, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,MAAa,uCACX,uBAAS,wrNAAwrN;CAAC;CAAgC;CAA4B;AAA2B,CAAC;;;;;AA0D5xN,MAAa,6BACX,0BAAY,sCAAsC,CAAC;;;;;AAsErD,MAAa,gCACX,0BAAY,sCAAsC,CAAC;;;;;AA0CrD,MAAa,0BACX,0BAAY,sCAAsC,CAAC;;;;;AAoFrD,MAAa,yBACX,0BAAY,sCAAsC,CAAC;;;;;AAwDrD,MAAa,mCACX,0BAAY,sCAAsC,CAAC;;;;;AAoBrD,MAAa,oCACX,0BAAY,sCAAsC,CAAC;;;;;AAoCrD,MAAa,0CACX,0BAAY,sCAAsC,CAAC;;;;;AAqBrD,MAAa,2CACX,0BAAY,sCAAsC,CAAC;;;;;AAoBrD,MAAa,mCACX,0BAAY,sCAAsC,CAAC;;;;;AAoBrD,MAAa,oCACX,0BAAY,sCAAsC,CAAC;;;;;AAoHrD,MAAa,yBACX,0BAAY,sCAAsC,EAAE;;;;;AAwEtD,MAAa,wBACX,0BAAY,sCAAsC,EAAE;;;;;AAoCtD,MAAa,oCACX,0BAAY,sCAAsC,EAAE;;;;;AA2BtD,MAAa,qCACX,0BAAY,sCAAsC,EAAE;;;;;AAqBtD,MAAa,sCACX,0BAAY,sCAAsC,EAAE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,sCAAsC,CAAC;;;;;;AAOlD,IAAY,wBAAL,yBAAA,uBAAA;;;;;;CAML,sBAAA,sBAAA,4BAAA,KAAA;;;;;;CAOA,sBAAA,sBAAA,kBAAA,KAAA;;;;;;CAOA,sBAAA,sBAAA,qBAAA,KAAA;;;;;;CAOA,sBAAA,sBAAA,oBAAA,KAAA;;;;;;CAOA,sBAAA,sBAAA,oBAAA,KAAA;;;;;;;;;;;;;;;CAgBA,sBAAA,sBAAA,iBAAA,KAAA;;;;;;CAOA,sBAAA,sBAAA,kBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,8BACX,uBAAS,sCAAsC,CAAC;;;;;;;AAQlD,IAAY,4BAAL,yBAAA,2BAAA;;;;;;CAML,0BAAA,0BAAA,gCAAA,KAAA;;;;;;CAOA,0BAAA,0BAAA,cAAA,KAAA;;;;;;;;;CAUA,0BAAA,0BAAA,gBAAA,KAAA;;;;;;;CAQA,0BAAA,0BAAA,oBAAA,KAAA;;;;;;;CAQA,0BAAA,0BAAA,YAAA,KAAA;;;;;;CAOA,0BAAA,0BAAA,aAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,kCACX,uBAAS,sCAAsC,CAAC;;;;;;;;;;;;;;;;AAiBlD,MAAa,sBAiGX,0BAAY,sCAAsC,CAAC"}
1
+ {"version":3,"file":"auto_withdraw_pb.js","names":[],"sources":["../../../../../src/gen/chain/withdraw/v1/auto_withdraw_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file chain/withdraw/v1/auto_withdraw.proto (package chain.withdraw.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../../polyester/api/options_pb.js\";\nimport type { U128 } from \"../../../polyester/type/v1/u128_pb.js\";\nimport { file_polyester_type_v1_u128 } from \"../../../polyester/type/v1/u128_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file chain/withdraw/v1/auto_withdraw.proto.\n */\nexport const file_chain_withdraw_v1_auto_withdraw: GenFile = /*@__PURE__*/\n fileDesc(\"CiVjaGFpbi93aXRoZHJhdy92MS9hdXRvX3dpdGhkcmF3LnByb3RvEhFjaGFpbi53aXRoZHJhdy52MSLuAQoUQXV0b1dpdGhkcmF3U2NoZWR1bGUSOQoHY2FkZW5jZRgBIAEoDjImLmNoYWluLndpdGhkcmF3LnYxLkF1dG9XaXRoZHJhd0NhZGVuY2VCABI5Cgd3ZWVrZGF5GAIgASgOMiYuY2hhaW4ud2l0aGRyYXcudjEuQXV0b1dpdGhkcmF3V2Vla2RheUIAEhcKDW1pbnV0ZV9vZl9kYXkYAyABKA1CABIYCg5taW51dGVfb2ZfaG91chgEIAEoDUIAEhYKDGRheV9vZl9tb250aBgFIAEoDUIAEhUKC2FuY2hvcl9kYXRlGAYgASgJQgAiggIKF0F1dG9XaXRoZHJhd0Rlc3RpbmF0aW9uEhIKCGFzc2V0X2lkGAEgASgNQgASHgoUZGVzdGluYXRpb25fY2hhaW5faWQYAiABKARCABIdChNkZXN0aW5hdGlvbl9hZGRyZXNzGAMgASgJQgASMQoObWluX2Ftb3VudF9lMTgYBCABKAsyFy5wb2x5ZXN0ZXIudHlwZS52MS5VMTI4QgASMQoObWF4X2Ftb3VudF9lMTgYBSABKAsyFy5wb2x5ZXN0ZXIudHlwZS52MS5VMTI4QgASLgoNbWluX2Zsb29yX2UxOBgGIAEoCzIXLnBvbHllc3Rlci50eXBlLnYxLlUxMjgiZAoRQXV0b1dpdGhkcmF3UGF1c2USEAoIYXNzZXRfaWQYASABKA0SDgoGcmVhc29uGAIgASgJEi0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XRBdXRvV2l0aGRyYXdSdWxlRW5hYmxlZFJlc3BvbnNlIgASdgoTR2V0QXV0b1dpdGhkcmF3UnVsZRItLmNoYWluLndpdGhkcmF3LnYxLkdldEF1dG9XaXRoZHJhd1J1bGVSZXF1ZXN0Gi4uY2hhaW4ud2l0aGRyYXcudjEuR2V0QXV0b1dpdGhkcmF3UnVsZVJlc3BvbnNlIgASeQoUTGlzdEF1dG9XaXRoZHJhd1J1bnMSLi5jaGFpbi53aXRoZHJhdy52MS5MaXN0QXV0b1dpdGhkcmF3UnVuc1JlcXVlc3QaLy5jaGFpbi53aXRoZHJhdy52MS5MaXN0QXV0b1dpdGhkcmF3UnVuc1Jlc3BvbnNlIgASfwoWUHJldmlld0F1dG9XaXRoZHJhd1J1bhIwLmNoYWluLndpdGhkcmF3LnYxLlByZXZpZXdBdXRvV2l0aGRyYXdSdW5SZXF1ZXN0GjEuY2hhaW4ud2l0aGRyYXcudjEuUHJldmlld0F1dG9XaXRoZHJhd1J1blJlc3BvbnNlIgAaAEJPWk1naXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL2NoYWluL3dpdGhkcmF3L3YxO2NoYWlud2l0aGRyYXd2MWIGcHJvdG8z\", [file_google_protobuf_timestamp, file_polyester_api_options, file_polyester_type_v1_u128]);\n\n/**\n * AutoWithdrawSchedule is a rule's UTC run slot. Only the fields of its\n * cadence may be set; the others must be zero or empty.\n *\n * @generated from message chain.withdraw.v1.AutoWithdrawSchedule\n */\nexport type AutoWithdrawSchedule = Message<\"chain.withdraw.v1.AutoWithdrawSchedule\"> & {\n /**\n * How often the rule runs.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawCadence cadence = 1;\n */\n cadence: AutoWithdrawCadence;\n\n /**\n * Run day of a weekly or biweekly rule.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawWeekday weekday = 2;\n */\n weekday: AutoWithdrawWeekday;\n\n /**\n * Minute after 00:00 UTC the run starts, 0 to 1439, for every cadence but\n * HOURLY; must be 0 for an hourly rule.\n *\n * @generated from field: uint32 minute_of_day = 3;\n */\n minuteOfDay: number;\n\n /**\n * Minute past every hour an HOURLY rule is checked, 0 to 59.\n *\n * @generated from field: uint32 minute_of_hour = 4;\n */\n minuteOfHour: number;\n\n /**\n * Run day of a MONTHLY rule, 1 to 31; see MONTHLY for shorter months.\n *\n * @generated from field: uint32 day_of_month = 5;\n */\n dayOfMonth: number;\n\n /**\n * A UTC date (YYYY-MM-DD) in a week a BIWEEKLY rule runs; weeks start on\n * Monday. Responses return the Monday that starts that week.\n *\n * @generated from field: string anchor_date = 6;\n */\n anchorDate: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.AutoWithdrawSchedule.\n * Use `create(AutoWithdrawScheduleSchema)` to create a new message.\n */\nexport const AutoWithdrawScheduleSchema: GenMessage<AutoWithdrawSchedule> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 0);\n\n/**\n * AutoWithdrawDestination pays one asset, in kind, to one external-chain\n * address.\n *\n * @generated from message chain.withdraw.v1.AutoWithdrawDestination\n */\nexport type AutoWithdrawDestination = Message<\"chain.withdraw.v1.AutoWithdrawDestination\"> & {\n /**\n * Ledger asset paid. At most one destination per asset.\n *\n * @generated from field: uint32 asset_id = 1;\n */\n assetId: number;\n\n /**\n * Polyester chain id of the destination network: ChainConfig.chain_id\n * from GetDepositWithdrawConfig, not the network's native chain id\n * (ChainConfig.native_chain_id).\n *\n * @generated from field: uint64 destination_chain_id = 2;\n */\n destinationChainId: bigint;\n\n /**\n * Destination address on destination_chain_id. It must be on the\n * account's external withdraw whitelist when the rule is written and\n * whenever a run pays it. Responses carry its canonical form.\n *\n * @generated from field: string destination_address = 3;\n */\n destinationAddress: string;\n\n /**\n * A run pays this asset only when the payable amount reaches this\n * minimum, in 18-decimal asset units, and the rule's min_usd_value_e18;\n * otherwise the balance stays on the account for a later run. Must be at\n * least min_floor_e18 when the rule is set.\n *\n * @generated from field: polyester.type.v1.U128 min_amount_e18 = 4;\n */\n minAmountE18?: U128 | undefined;\n\n /**\n * The most one run pays this asset, in 18-decimal asset units; at least\n * min_amount_e18. A larger balance pays this ceiling and the rest stays on\n * the account.\n *\n * @generated from field: polyester.type.v1.U128 max_amount_e18 = 5;\n */\n maxAmountE18?: U128 | undefined;\n\n /**\n * Returned in responses only; ignored in requests. The least amount one\n * payout to this destination can pay now, in 18-decimal asset units: the\n * route's withdrawal minimum, and more than its current network fee. It\n * follows the network fee, so it can change between reads. A run pays at\n * least this floor and min_amount_e18, and a new rule needs a\n * min_amount_e18 of at least the floor. Unset when the route or its network\n * fee is not known now; a new rule for that destination is then refused\n * with FEE_UNAVAILABLE or a route code.\n *\n * @generated from field: polyester.type.v1.U128 min_floor_e18 = 6;\n */\n minFloorE18?: U128 | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.AutoWithdrawDestination.\n * Use `create(AutoWithdrawDestinationSchema)` to create a new message.\n */\nexport const AutoWithdrawDestinationSchema: GenMessage<AutoWithdrawDestination> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 1);\n\n/**\n * AutoWithdrawPause reports why a rule stopped running on its own.\n *\n * @generated from message chain.withdraw.v1.AutoWithdrawPause\n */\nexport type AutoWithdrawPause = Message<\"chain.withdraw.v1.AutoWithdrawPause\"> & {\n /**\n * Asset whose payout paused the rule; zero when no payout did.\n *\n * @generated from field: uint32 asset_id = 1;\n */\n assetId: number;\n\n /**\n * Machine-readable reason: destination_not_whitelisted when the\n * destination left the account's external withdraw whitelist,\n * destination_invalid when it is no longer a valid destination, or\n * authority_revoked when the person who set the rule may no longer change\n * it or withdraw from the account. On a broker vault the rule pauses with\n * authority_revoked as soon as its author's broker role changes in any\n * way: removed, demoted, or promoted (for example Finance to Owner), and\n * also when the author is removed and added back. An Owner or Finance\n * member resumes it with a fresh step-up.\n *\n * @generated from field: string reason = 2;\n */\n reason: string;\n\n /**\n * When the rule was paused.\n *\n * @generated from field: google.protobuf.Timestamp paused_at = 3;\n */\n pausedAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.AutoWithdrawPause.\n * Use `create(AutoWithdrawPauseSchema)` to create a new message.\n */\nexport const AutoWithdrawPauseSchema: GenMessage<AutoWithdrawPause> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 2);\n\n/**\n * AutoWithdrawRule is one version of an account's auto-withdraw rule. Each\n * change, pause or resume creates the next version; only the latest version\n * runs, and a run in progress keeps the version it started with but pays\n * nothing further once that version is no longer the latest.\n *\n * @generated from message chain.withdraw.v1.AutoWithdrawRule\n */\nexport type AutoWithdrawRule = Message<\"chain.withdraw.v1.AutoWithdrawRule\"> & {\n /**\n * Public subaccount ID the rule belongs to; zero for the root account.\n *\n * @generated from field: fixed64 subaccount_id = 1;\n */\n subaccountId: bigint;\n\n /**\n * Rule version, starting at 1.\n *\n * @generated from field: uint32 version = 2;\n */\n version: number;\n\n /**\n * Whether the rule runs. A paused version (enabled false) keeps its\n * schedule and destinations, so it resumes to the same destinations. The\n * rule runs only while enabled and without a pause.\n *\n * @generated from field: bool enabled = 3;\n */\n enabled: boolean;\n\n /**\n * When the rule runs.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawSchedule schedule = 4;\n */\n schedule?: AutoWithdrawSchedule | undefined;\n\n /**\n * One destination per paid asset, ordered by asset_id. Empty only on a\n * version that was disabled before pausing kept destinations.\n *\n * @generated from field: repeated chain.withdraw.v1.AutoWithdrawDestination destinations = 5;\n */\n destinations: AutoWithdrawDestination[];\n\n /**\n * When this version was created.\n *\n * @generated from field: google.protobuf.Timestamp created_at = 6;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * Set when the rule paused itself; resuming it or setting a new rule\n * clears it.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawPause pause = 7;\n */\n pause?: AutoWithdrawPause | undefined;\n\n /**\n * Least USD value one payout of the rule pays, in 18-decimal USD units;\n * zero means no USD minimum.\n *\n * @generated from field: polyester.type.v1.U128 min_usd_value_e18 = 8;\n */\n minUsdValueE18?: U128 | undefined;\n\n /**\n * Public account ID of the person who created this version.\n *\n * @generated from field: fixed64 created_by_account_id = 9;\n */\n createdByAccountId: bigint;\n};\n\n/**\n * Describes the message chain.withdraw.v1.AutoWithdrawRule.\n * Use `create(AutoWithdrawRuleSchema)` to create a new message.\n */\nexport const AutoWithdrawRuleSchema: GenMessage<AutoWithdrawRule> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 3);\n\n/**\n * SetAutoWithdrawRuleRequest creates or replaces the rule of the root\n * account or one subaccount.\n *\n * @generated from message chain.withdraw.v1.SetAutoWithdrawRuleRequest\n */\nexport type SetAutoWithdrawRuleRequest = Message<\"chain.withdraw.v1.SetAutoWithdrawRuleRequest\"> & {\n /**\n * Public subaccount ID; omit for the root account.\n *\n * @generated from field: fixed64 subaccount_id = 1;\n */\n subaccountId: bigint;\n\n /**\n * The version the change replaces: 0 when the account has no rule yet,\n * otherwise its latest version. A mismatch is rejected so concurrent\n * changes never overwrite each other.\n *\n * @generated from field: uint32 expected_version = 2;\n */\n expectedVersion: number;\n\n /**\n * When the rule runs.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawSchedule schedule = 3;\n */\n schedule?: AutoWithdrawSchedule | undefined;\n\n /**\n * Destinations, one per asset, 1 to 32.\n *\n * @generated from field: repeated chain.withdraw.v1.AutoWithdrawDestination destinations = 4;\n */\n destinations: AutoWithdrawDestination[];\n\n /**\n * Least USD value one payout pays, in 18-decimal USD units; unset or zero\n * for no USD minimum. Each run values each asset's payable amount at the\n * current index price. A smaller amount stays on the account for a later\n * run, and the asset is skipped with reason price_unavailable when no\n * current price is available. A payout never goes below its destination's\n * min_amount_e18 or the route's withdrawal minimum.\n *\n * @generated from field: polyester.type.v1.U128 min_usd_value_e18 = 5;\n */\n minUsdValueE18?: U128 | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.SetAutoWithdrawRuleRequest.\n * Use `create(SetAutoWithdrawRuleRequestSchema)` to create a new message.\n */\nexport const SetAutoWithdrawRuleRequestSchema: GenMessage<SetAutoWithdrawRuleRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 4);\n\n/**\n * SetAutoWithdrawRuleResponse returns the new rule version.\n *\n * @generated from message chain.withdraw.v1.SetAutoWithdrawRuleResponse\n */\nexport type SetAutoWithdrawRuleResponse = Message<\"chain.withdraw.v1.SetAutoWithdrawRuleResponse\"> & {\n /**\n * The created version.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawRule rule = 1;\n */\n rule?: AutoWithdrawRule | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.SetAutoWithdrawRuleResponse.\n * Use `create(SetAutoWithdrawRuleResponseSchema)` to create a new message.\n */\nexport const SetAutoWithdrawRuleResponseSchema: GenMessage<SetAutoWithdrawRuleResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 5);\n\n/**\n * SetAutoWithdrawRuleEnabledRequest pauses or resumes the rule of the root\n * account or one subaccount, keeping its schedule and destinations.\n *\n * @generated from message chain.withdraw.v1.SetAutoWithdrawRuleEnabledRequest\n */\nexport type SetAutoWithdrawRuleEnabledRequest = Message<\"chain.withdraw.v1.SetAutoWithdrawRuleEnabledRequest\"> & {\n /**\n * Public subaccount ID; omit for the root account.\n *\n * @generated from field: fixed64 subaccount_id = 1;\n */\n subaccountId: bigint;\n\n /**\n * The account's latest rule version. A mismatch is rejected so concurrent\n * changes never overwrite each other.\n *\n * @generated from field: uint32 expected_version = 2;\n */\n expectedVersion: number;\n\n /**\n * false pauses the rule; true resumes it.\n *\n * @generated from field: bool enabled = 3;\n */\n enabled: boolean;\n};\n\n/**\n * Describes the message chain.withdraw.v1.SetAutoWithdrawRuleEnabledRequest.\n * Use `create(SetAutoWithdrawRuleEnabledRequestSchema)` to create a new message.\n */\nexport const SetAutoWithdrawRuleEnabledRequestSchema: GenMessage<SetAutoWithdrawRuleEnabledRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 6);\n\n/**\n * SetAutoWithdrawRuleEnabledResponse returns the rule's latest version.\n *\n * @generated from message chain.withdraw.v1.SetAutoWithdrawRuleEnabledResponse\n */\nexport type SetAutoWithdrawRuleEnabledResponse = Message<\"chain.withdraw.v1.SetAutoWithdrawRuleEnabledResponse\"> & {\n /**\n * The created version, or the latest version unchanged when the rule was\n * already in the requested state.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawRule rule = 1;\n */\n rule?: AutoWithdrawRule | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.SetAutoWithdrawRuleEnabledResponse.\n * Use `create(SetAutoWithdrawRuleEnabledResponseSchema)` to create a new message.\n */\nexport const SetAutoWithdrawRuleEnabledResponseSchema: GenMessage<SetAutoWithdrawRuleEnabledResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 7);\n\n/**\n * GetAutoWithdrawRuleRequest reads the latest rule version.\n *\n * @generated from message chain.withdraw.v1.GetAutoWithdrawRuleRequest\n */\nexport type GetAutoWithdrawRuleRequest = Message<\"chain.withdraw.v1.GetAutoWithdrawRuleRequest\"> & {\n /**\n * Public subaccount ID; omit for the root account.\n *\n * @generated from field: fixed64 subaccount_id = 1;\n */\n subaccountId: bigint;\n};\n\n/**\n * Describes the message chain.withdraw.v1.GetAutoWithdrawRuleRequest.\n * Use `create(GetAutoWithdrawRuleRequestSchema)` to create a new message.\n */\nexport const GetAutoWithdrawRuleRequestSchema: GenMessage<GetAutoWithdrawRuleRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 8);\n\n/**\n * GetAutoWithdrawRuleResponse returns the latest rule version.\n *\n * @generated from message chain.withdraw.v1.GetAutoWithdrawRuleResponse\n */\nexport type GetAutoWithdrawRuleResponse = Message<\"chain.withdraw.v1.GetAutoWithdrawRuleResponse\"> & {\n /**\n * The latest version; unset when the account never had a rule.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawRule rule = 1;\n */\n rule?: AutoWithdrawRule | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.GetAutoWithdrawRuleResponse.\n * Use `create(GetAutoWithdrawRuleResponseSchema)` to create a new message.\n */\nexport const GetAutoWithdrawRuleResponseSchema: GenMessage<GetAutoWithdrawRuleResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 9);\n\n/**\n * AutoWithdrawStep is one asset's payout in a run.\n *\n * @generated from message chain.withdraw.v1.AutoWithdrawStep\n */\nexport type AutoWithdrawStep = Message<\"chain.withdraw.v1.AutoWithdrawStep\"> & {\n /**\n * Ledger asset paid.\n *\n * @generated from field: uint32 asset_id = 1;\n */\n assetId: number;\n\n /**\n * External destination chain identifier.\n *\n * @generated from field: uint64 destination_chain_id = 2;\n */\n destinationChainId: bigint;\n\n /**\n * Canonical destination address.\n *\n * @generated from field: string destination_address = 3;\n */\n destinationAddress: string;\n\n /**\n * The account's available balance of the asset when the run started, in\n * 18-decimal asset units.\n *\n * @generated from field: polyester.type.v1.U128 available_e18 = 4;\n */\n availableE18?: U128 | undefined;\n\n /**\n * What the step pays, in 18-decimal asset units: the available balance\n * up to the ceiling, rounded down to whole on-chain units. Zero when\n * skipped. The remainder stays on the account.\n *\n * @generated from field: polyester.type.v1.U128 amount_e18 = 5;\n */\n amountE18?: U128 | undefined;\n\n /**\n * Where the payout stands.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawStepState state = 6;\n */\n state: AutoWithdrawStepState;\n\n /**\n * Machine-readable reason for a skipped or failed step, such as\n * below_minimum, price_unavailable (the rule has a USD minimum and no\n * current price valued the asset; the funds stay for a later run),\n * rule_superseded, destination_not_whitelisted, destination_cooling_down\n * (a broker vault's destination added to its external withdraw whitelist\n * less than 24 hours ago; the funds stay for a later run), route_suspended\n * (withdrawals of the asset to the destination network are suspended, as\n * its withdrawal_status SUSPENDED in the deposit and withdraw config shows;\n * the funds stay for a later run), supply_unavailable (the destination\n * route's supply_status in the deposit and withdraw config is MISSING or\n * STALE; the funds stay for a later run), authority_revoked,\n * gateway_capacity_insufficient (the funds stay for a later run),\n * withdrawal_released or withdrawal_failed; empty otherwise.\n *\n * @generated from field: string reason = 7;\n */\n reason: string;\n\n /**\n * Withdraw intent identifier once the withdrawal is accepted; follows the\n * same lifecycle as a user withdrawal.\n *\n * @generated from field: string intent_id = 8;\n */\n intentId: string;\n\n /**\n * Destination-network transaction hash, set once Zipper committed the\n * withdrawal's destination transaction and empty before. On a completed\n * step it is the delivery. When the withdrawal's execution failed after\n * that commit, the step fails with withdrawal_failed and keeps this hash:\n * the funds were not returned to the account, and the bridge operator\n * reviews the withdrawal.\n *\n * @generated from field: string tx_hash = 9;\n */\n txHash: string;\n\n /**\n * USD value of the payable amount when the run started, in 18-decimal USD\n * units, checked against the rule's min_usd_value_e18. Unset when the rule\n * has no USD minimum or no current price was available.\n *\n * @generated from field: polyester.type.v1.U128 value_usd_e18 = 10;\n */\n valueUsdE18?: U128 | undefined;\n\n /**\n * The network fee charged on the withdrawal, in 18-decimal asset units.\n * Once it completed: taken out of amount_e18, so the destination received\n * amount_e18 minus this fee. Once Zipper rejected it or its execution\n * failed: the fee Zipper kept, which is not refunded. Unset until the step\n * is final, when it was skipped or failed before it reached Zipper, and\n * when the fee was not reported.\n *\n * @generated from field: polyester.type.v1.U128 network_fee_e18 = 11;\n */\n networkFeeE18?: U128 | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.AutoWithdrawStep.\n * Use `create(AutoWithdrawStepSchema)` to create a new message.\n */\nexport const AutoWithdrawStepSchema: GenMessage<AutoWithdrawStep> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 10);\n\n/**\n * AutoWithdrawRun is one scheduled run of an account's rule.\n *\n * @generated from message chain.withdraw.v1.AutoWithdrawRun\n */\nexport type AutoWithdrawRun = Message<\"chain.withdraw.v1.AutoWithdrawRun\"> & {\n /**\n * The account's run number, increasing by one per run.\n *\n * @generated from field: uint64 run_seq = 1;\n */\n runSeq: bigint;\n\n /**\n * The rule version the run executes.\n *\n * @generated from field: uint32 rule_version = 2;\n */\n ruleVersion: number;\n\n /**\n * The scheduled slot the run belongs to.\n *\n * @generated from field: google.protobuf.Timestamp scheduled_for = 3;\n */\n scheduledFor?: Timestamp | undefined;\n\n /**\n * Where the run stands.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawRunState state = 4;\n */\n state: AutoWithdrawRunState;\n\n /**\n * Machine-readable reason for a skipped run: nothing_to_pay,\n * price_unavailable (an asset was not paid because no current price valued\n * it) or rule_superseded; empty otherwise.\n *\n * @generated from field: string reason = 5;\n */\n reason: string;\n\n /**\n * One step per destination of the rule version, ordered by asset_id.\n * Empty while the run is planned.\n *\n * @generated from field: repeated chain.withdraw.v1.AutoWithdrawStep steps = 6;\n */\n steps: AutoWithdrawStep[];\n\n /**\n * When the run started.\n *\n * @generated from field: google.protobuf.Timestamp created_at = 7;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * When the run ended; unset while it is in progress.\n *\n * @generated from field: google.protobuf.Timestamp finished_at = 8;\n */\n finishedAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.AutoWithdrawRun.\n * Use `create(AutoWithdrawRunSchema)` to create a new message.\n */\nexport const AutoWithdrawRunSchema: GenMessage<AutoWithdrawRun> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 11);\n\n/**\n * ListAutoWithdrawRunsRequest pages through an account's runs, newest first.\n *\n * @generated from message chain.withdraw.v1.ListAutoWithdrawRunsRequest\n */\nexport type ListAutoWithdrawRunsRequest = Message<\"chain.withdraw.v1.ListAutoWithdrawRunsRequest\"> & {\n /**\n * Public subaccount ID; omit for the root account.\n *\n * @generated from field: fixed64 subaccount_id = 1;\n */\n subaccountId: bigint;\n\n /**\n * Maximum number of runs to return: 0 means 20, at most 100.\n *\n * @generated from field: uint32 limit = 2;\n */\n limit: number;\n\n /**\n * Opaque, exclusive, keyset-backed cursor from a previous response,\n * bound to the caller's account or subaccount and the newest-first\n * run_seq order. Empty for the first page.\n *\n * @generated from field: string page_token = 3;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.ListAutoWithdrawRunsRequest.\n * Use `create(ListAutoWithdrawRunsRequestSchema)` to create a new message.\n */\nexport const ListAutoWithdrawRunsRequestSchema: GenMessage<ListAutoWithdrawRunsRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 12);\n\n/**\n * ListAutoWithdrawRunsResponse returns one page of runs, newest first.\n *\n * @generated from message chain.withdraw.v1.ListAutoWithdrawRunsResponse\n */\nexport type ListAutoWithdrawRunsResponse = Message<\"chain.withdraw.v1.ListAutoWithdrawRunsResponse\"> & {\n /**\n * Runs ordered by run_seq, newest first.\n *\n * @generated from field: repeated chain.withdraw.v1.AutoWithdrawRun runs = 1;\n */\n runs: AutoWithdrawRun[];\n\n /**\n * Cursor for the next page. Empty when no more results exist.\n *\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.ListAutoWithdrawRunsResponse.\n * Use `create(ListAutoWithdrawRunsResponseSchema)` to create a new message.\n */\nexport const ListAutoWithdrawRunsResponseSchema: GenMessage<ListAutoWithdrawRunsResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 13);\n\n/**\n * PreviewAutoWithdrawRunRequest previews the next run of the rule of the\n * root account or one subaccount.\n *\n * @generated from message chain.withdraw.v1.PreviewAutoWithdrawRunRequest\n */\nexport type PreviewAutoWithdrawRunRequest = Message<\"chain.withdraw.v1.PreviewAutoWithdrawRunRequest\"> & {\n /**\n * Public subaccount ID; omit for the root account.\n *\n * @generated from field: fixed64 subaccount_id = 1;\n */\n subaccountId: bigint;\n};\n\n/**\n * Describes the message chain.withdraw.v1.PreviewAutoWithdrawRunRequest.\n * Use `create(PreviewAutoWithdrawRunRequestSchema)` to create a new message.\n */\nexport const PreviewAutoWithdrawRunRequestSchema: GenMessage<PreviewAutoWithdrawRunRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 14);\n\n/**\n * AutoWithdrawPreviewAsset is what the next run would do with one asset,\n * sized from the account's balance now.\n *\n * @generated from message chain.withdraw.v1.AutoWithdrawPreviewAsset\n */\nexport type AutoWithdrawPreviewAsset = Message<\"chain.withdraw.v1.AutoWithdrawPreviewAsset\"> & {\n /**\n * Ledger asset.\n *\n * @generated from field: uint32 asset_id = 1;\n */\n assetId: number;\n\n /**\n * External destination chain identifier; zero when the rule has no\n * destination for the asset.\n *\n * @generated from field: uint64 destination_chain_id = 2;\n */\n destinationChainId: bigint;\n\n /**\n * Canonical destination address; empty when the rule has no destination\n * for the asset.\n *\n * @generated from field: string destination_address = 3;\n */\n destinationAddress: string;\n\n /**\n * The account's available balance of the asset now, in 18-decimal asset\n * units.\n *\n * @generated from field: polyester.type.v1.U128 available_e18 = 4;\n */\n availableE18?: U128 | undefined;\n\n /**\n * What the run would pay, in 18-decimal asset units: the available balance\n * up to max_amount_e18, rounded down to whole on-chain units, or zero when\n * it holds. The network fee is taken out of it on the way.\n *\n * @generated from field: polyester.type.v1.U128 payable_e18 = 5;\n */\n payableE18?: U128 | undefined;\n\n /**\n * What would stay on the account, in 18-decimal asset units:\n * available_e18 minus payable_e18.\n *\n * @generated from field: polyester.type.v1.U128 held_back_e18 = 6;\n */\n heldBackE18?: U128 | undefined;\n\n /**\n * Why held_back_e18 stays, or why nothing pays: below_minimum (below\n * minimum_e18 or the rule's min_usd_value_e18), price_unavailable (the\n * rule has a USD minimum and no current price values the asset),\n * no_destination (the rule pays no destination for the asset),\n * destination_cooling_down (a broker vault pays a destination only once\n * it has been on the vault's external withdraw whitelist for 24 hours;\n * see payable_from), above_max (the balance above max_amount_e18 stays)\n * or dust (less than one whole on-chain unit stays); empty when the whole\n * balance pays.\n *\n * @generated from field: string hold_reason = 7;\n */\n holdReason: string;\n\n /**\n * The least one payout of the asset pays, in 18-decimal asset units: the\n * destination's min_amount_e18, or its min_floor_e18 when that is higher\n * and known now. Unset when the rule has no destination for the asset.\n *\n * @generated from field: polyester.type.v1.U128 minimum_e18 = 8;\n */\n minimumE18?: U128 | undefined;\n\n /**\n * USD value, in 18-decimal USD units, of what the asset pays before its\n * minimums (the available balance up to max_amount_e18, rounded down to\n * whole on-chain units), at the current price as of priced_at. A rule with\n * a USD minimum compares this value with it. Unset when no current price\n * values the asset or the rule has no destination for it.\n *\n * @generated from field: polyester.type.v1.U128 value_usd_e18 = 9;\n */\n valueUsdE18?: U128 | undefined;\n\n /**\n * When the price behind value_usd_e18 was observed; unset with it.\n *\n * @generated from field: google.protobuf.Timestamp priced_at = 10;\n */\n pricedAt?: Timestamp | undefined;\n\n /**\n * The network fee a payout to the destination is expected to be charged\n * now, in 18-decimal asset units: the route's latest sampled network fee,\n * the same figure min_floor_e18 stays above. It is taken out of the\n * payout, so the destination receives about payable_e18 minus this fee.\n * Unset when the rule has no destination for the asset or the fee is not\n * known now.\n *\n * @generated from field: polyester.type.v1.U128 network_fee_e18 = 11;\n */\n networkFeeE18?: U128 | undefined;\n\n /**\n * When network_fee_e18 was sampled; unset with it.\n *\n * @generated from field: google.protobuf.Timestamp network_fee_sampled_at = 12;\n */\n networkFeeSampledAt?: Timestamp | undefined;\n\n /**\n * Set only on a broker vault while the destination is cooling down: when\n * it can be paid, 24 hours after it was added to the vault's external\n * withdraw whitelist. Unset with hold_reason destination_cooling_down\n * when that time is not known yet.\n *\n * @generated from field: google.protobuf.Timestamp payable_from = 13;\n */\n payableFrom?: Timestamp | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.AutoWithdrawPreviewAsset.\n * Use `create(AutoWithdrawPreviewAssetSchema)` to create a new message.\n */\nexport const AutoWithdrawPreviewAssetSchema: GenMessage<AutoWithdrawPreviewAsset> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 15);\n\n/**\n * PreviewAutoWithdrawRunResponse previews the next run.\n *\n * @generated from message chain.withdraw.v1.PreviewAutoWithdrawRunResponse\n */\nexport type PreviewAutoWithdrawRunResponse = Message<\"chain.withdraw.v1.PreviewAutoWithdrawRunResponse\"> & {\n /**\n * Whether the next run would pay.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawPreviewStatus status = 1;\n */\n status: AutoWithdrawPreviewStatus;\n\n /**\n * When the next run starts: its UTC slot, or, while a due slot waits for\n * the scheduler, that slot. For an hourly rule, the next hourly check.\n * Unset when the account has no rule or the rule is paused.\n *\n * @generated from field: google.protobuf.Timestamp next_run_at = 2;\n */\n nextRunAt?: Timestamp | undefined;\n\n /**\n * The latest rule version; zero when the account has no rule.\n *\n * @generated from field: uint32 rule_version = 3;\n */\n ruleVersion: number;\n\n /**\n * Set when the rule paused itself; a rule paused by a person has none.\n *\n * @generated from field: chain.withdraw.v1.AutoWithdrawPause pause = 4;\n */\n pause?: AutoWithdrawPause | undefined;\n\n /**\n * The rule's least USD value of one payout, in 18-decimal USD units; zero\n * means no USD minimum. Unset when the account has no rule.\n *\n * @generated from field: polyester.type.v1.U128 min_usd_value_e18 = 5;\n */\n minUsdValueE18?: U128 | undefined;\n\n /**\n * One entry per destination of the rule, then per other asset with a\n * positive balance, ordered by asset_id. Empty when the account has no\n * rule or the rule is paused.\n *\n * @generated from field: repeated chain.withdraw.v1.AutoWithdrawPreviewAsset assets = 6;\n */\n assets: AutoWithdrawPreviewAsset[];\n\n /**\n * When the balances, prices and fees the preview used were read.\n *\n * @generated from field: google.protobuf.Timestamp computed_at = 7;\n */\n computedAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message chain.withdraw.v1.PreviewAutoWithdrawRunResponse.\n * Use `create(PreviewAutoWithdrawRunResponseSchema)` to create a new message.\n */\nexport const PreviewAutoWithdrawRunResponseSchema: GenMessage<PreviewAutoWithdrawRunResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_auto_withdraw, 16);\n\n/**\n * AutoWithdrawCadence is how often an auto-withdraw rule runs. Every slot\n * is a UTC time, with no daylight-saving shift.\n *\n * @generated from enum chain.withdraw.v1.AutoWithdrawCadence\n */\nexport enum AutoWithdrawCadence {\n /**\n * Not set; rejected.\n *\n * @generated from enum value: CADENCE_UNSPECIFIED = 0;\n */\n CADENCE_UNSPECIFIED = 0,\n\n /**\n * Once a day at minute_of_day UTC.\n *\n * @generated from enum value: DAILY = 1;\n */\n DAILY = 1,\n\n /**\n * Once a week on weekday at minute_of_day UTC.\n *\n * @generated from enum value: WEEKLY = 2;\n */\n WEEKLY = 2,\n\n /**\n * Checked every hour at minute_of_hour UTC; pays only an asset whose\n * payable amount has reached its minimums, so a payout follows within the\n * hour of the balance reaching them. An hour with nothing to pay records\n * no run.\n *\n * @generated from enum value: HOURLY = 3;\n */\n HOURLY = 3,\n\n /**\n * Every two weeks on weekday at minute_of_day UTC: in the week of\n * anchor_date and every second week before or after it.\n *\n * @generated from enum value: BIWEEKLY = 4;\n */\n BIWEEKLY = 4,\n\n /**\n * Once a month on day_of_month at minute_of_day UTC. A month without that\n * day runs on its last day: day 31 runs on April 30 and on February 28 or\n * 29, and days 29 and 30 run on the last day of February.\n *\n * @generated from enum value: MONTHLY = 5;\n */\n MONTHLY = 5,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.AutoWithdrawCadence.\n */\nexport const AutoWithdrawCadenceSchema: GenEnum<AutoWithdrawCadence> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_auto_withdraw, 0);\n\n/**\n * AutoWithdrawWeekday is the run day of a weekly or biweekly rule.\n *\n * @generated from enum chain.withdraw.v1.AutoWithdrawWeekday\n */\nexport enum AutoWithdrawWeekday {\n /**\n * Not set; required for a weekly or biweekly rule and must be unset for\n * any other cadence.\n *\n * @generated from enum value: WEEKDAY_UNSPECIFIED = 0;\n */\n WEEKDAY_UNSPECIFIED = 0,\n\n /**\n * Monday.\n *\n * @generated from enum value: MONDAY = 1;\n */\n MONDAY = 1,\n\n /**\n * Tuesday.\n *\n * @generated from enum value: TUESDAY = 2;\n */\n TUESDAY = 2,\n\n /**\n * Wednesday.\n *\n * @generated from enum value: WEDNESDAY = 3;\n */\n WEDNESDAY = 3,\n\n /**\n * Thursday.\n *\n * @generated from enum value: THURSDAY = 4;\n */\n THURSDAY = 4,\n\n /**\n * Friday.\n *\n * @generated from enum value: FRIDAY = 5;\n */\n FRIDAY = 5,\n\n /**\n * Saturday.\n *\n * @generated from enum value: SATURDAY = 6;\n */\n SATURDAY = 6,\n\n /**\n * Sunday.\n *\n * @generated from enum value: SUNDAY = 7;\n */\n SUNDAY = 7,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.AutoWithdrawWeekday.\n */\nexport const AutoWithdrawWeekdaySchema: GenEnum<AutoWithdrawWeekday> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_auto_withdraw, 1);\n\n/**\n * AutoWithdrawRunState is where one auto-withdraw run stands.\n *\n * @generated from enum chain.withdraw.v1.AutoWithdrawRunState\n */\nexport enum AutoWithdrawRunState {\n /**\n * Never returned.\n *\n * @generated from enum value: RUN_STATE_UNSPECIFIED = 0;\n */\n RUN_STATE_UNSPECIFIED = 0,\n\n /**\n * The run is reading the account's balances.\n *\n * @generated from enum value: RUN_PLANNED = 1;\n */\n RUN_PLANNED = 1,\n\n /**\n * The run's payouts are in progress.\n *\n * @generated from enum value: RUN_PAYING = 2;\n */\n RUN_PAYING = 2,\n\n /**\n * Every payout completed or was skipped, and at least one paid.\n *\n * @generated from enum value: RUN_COMPLETED = 3;\n */\n RUN_COMPLETED = 3,\n\n /**\n * Some payouts failed. Each failed step says where its funds are\n * (STEP_FAILED).\n *\n * @generated from enum value: RUN_PARTIALLY_FAILED = 4;\n */\n RUN_PARTIALLY_FAILED = 4,\n\n /**\n * Every attempted payout failed. Each failed step says where its funds are\n * (STEP_FAILED).\n *\n * @generated from enum value: RUN_FAILED = 5;\n */\n RUN_FAILED = 5,\n\n /**\n * Nothing was paid: every asset was below its minimum, no current price\n * valued it, or the rule was no longer current.\n *\n * @generated from enum value: RUN_SKIPPED = 6;\n */\n RUN_SKIPPED = 6,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.AutoWithdrawRunState.\n */\nexport const AutoWithdrawRunStateSchema: GenEnum<AutoWithdrawRunState> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_auto_withdraw, 2);\n\n/**\n * AutoWithdrawStepState is where one asset's payout of a run stands.\n *\n * @generated from enum chain.withdraw.v1.AutoWithdrawStepState\n */\nexport enum AutoWithdrawStepState {\n /**\n * Never returned.\n *\n * @generated from enum value: STEP_STATE_UNSPECIFIED = 0;\n */\n STEP_STATE_UNSPECIFIED = 0,\n\n /**\n * Planned; not yet requested.\n *\n * @generated from enum value: STEP_PENDING = 1;\n */\n STEP_PENDING = 1,\n\n /**\n * Being requested.\n *\n * @generated from enum value: STEP_SUBMITTING = 2;\n */\n STEP_SUBMITTING = 2,\n\n /**\n * Withdrawal accepted; waiting for it to complete on chain.\n *\n * @generated from enum value: STEP_SUBMITTED = 3;\n */\n STEP_SUBMITTED = 3,\n\n /**\n * The withdrawal completed on chain.\n *\n * @generated from enum value: STEP_COMPLETED = 4;\n */\n STEP_COMPLETED = 4,\n\n /**\n * The withdrawal failed. Where its funds are depends on when it failed,\n * which its withdrawal flow shows:\n * - before it left the account: they stay on the account;\n * - rejected by Zipper (flow REFUNDED, reason ZIPPER_VALIDATION_REJECTED or\n * ZIPPER_EXECUTION_REJECTED): amount_e18 less network_fee_e18 is\n * refunded, as zTokens, to the account's smart account wallet, not to\n * the account's balance, and the network fee is not refunded;\n * - its execution failed after its destination transaction was sent (flow\n * FAILED, reason ZIPPER_WITHDRAW_EXECUTION_FAILED): Zipper reviews it and\n * settles it outside Polyester Chain; nothing is returned to the account.\n *\n * @generated from enum value: STEP_FAILED = 5;\n */\n STEP_FAILED = 5,\n\n /**\n * Nothing was paid for this asset in this run.\n *\n * @generated from enum value: STEP_SKIPPED = 6;\n */\n STEP_SKIPPED = 6,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.AutoWithdrawStepState.\n */\nexport const AutoWithdrawStepStateSchema: GenEnum<AutoWithdrawStepState> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_auto_withdraw, 3);\n\n/**\n * AutoWithdrawPreviewStatus is whether the next run would pay, judged from\n * the account's balances now.\n *\n * @generated from enum chain.withdraw.v1.AutoWithdrawPreviewStatus\n */\nexport enum AutoWithdrawPreviewStatus {\n /**\n * Never returned.\n *\n * @generated from enum value: PREVIEW_STATUS_UNSPECIFIED = 0;\n */\n PREVIEW_STATUS_UNSPECIFIED = 0,\n\n /**\n * At least one asset would pay.\n *\n * @generated from enum value: WILL_PAY = 1;\n */\n WILL_PAY = 1,\n\n /**\n * Nothing would pay: every asset with a destination is below its minimum\n * or the rule's USD minimum, has no current price for that minimum, or\n * pays a broker vault's destination that is still cooling down. The\n * balance stays on the account for a later run.\n *\n * @generated from enum value: ROLLS_OVER = 2;\n */\n ROLLS_OVER = 2,\n\n /**\n * Nothing would pay, and every positive balance is in an asset the rule\n * has no destination for.\n *\n * @generated from enum value: NO_DESTINATION = 3;\n */\n NO_DESTINATION = 3,\n\n /**\n * The rule is paused, by a person or by itself (see pause); no run starts\n * until it is resumed.\n *\n * @generated from enum value: PAUSED = 4;\n */\n PAUSED = 4,\n\n /**\n * The account has no rule.\n *\n * @generated from enum value: NO_RULE = 5;\n */\n NO_RULE = 5,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.AutoWithdrawPreviewStatus.\n */\nexport const AutoWithdrawPreviewStatusSchema: GenEnum<AutoWithdrawPreviewStatus> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_auto_withdraw, 4);\n\n/**\n * AutoWithdrawService manages scheduled in-kind auto-withdraw rules for a\n * root account or subaccount. A rule pays each asset's balance out on an\n * hourly, daily, weekly, biweekly or monthly UTC slot, through the normal\n * withdraw path, only to destinations on the account's external withdraw\n * whitelist. Changing or\n * resuming a rule requires a person with withdraw rights and a fresh\n * single-use MFA step-up, and pausing it requires such a person without a\n * step-up; API keys can read rules, runs and previews but never change\n * them. An API key reads only when its policy grants READ_AUTO_WITHDRAW (or\n * MANAGE_AUTO_WITHDRAW), and only its own account: a root-account key reads\n * the root account, and a subaccount key reads its subaccount.\n *\n * @generated from service chain.withdraw.v1.AutoWithdrawService\n */\nexport const AutoWithdrawService: GenService<{\n /**\n * Create the account's rule, or replace its latest version with a new\n * one. Requires a session login with withdraw rights on the account and\n * a fresh single-use step-up; every destination must be on the account's\n * external withdraw whitelist.\n *\n * A refused destination answers a typed code whose ErrorDetail.field_path\n * names the field, such as destinations[0].min_amount_e18:\n * EXTERNAL_DESTINATION_NOT_WHITELISTED, DESTINATION_INVALID (not a valid\n * address on its chain), ROUTE_UNSUPPORTED (no enabled withdrawal route\n * pays the asset to that chain) or MIN_AMOUNT_BELOW_FLOOR (its\n * ErrorDetail.min_floor_e18 is the floor). A stale expected_version\n * answers VERSION_CONFLICT.\n *\n * @generated from rpc chain.withdraw.v1.AutoWithdrawService.SetAutoWithdrawRule\n */\n setAutoWithdrawRule: {\n methodKind: \"unary\";\n input: typeof SetAutoWithdrawRuleRequestSchema;\n output: typeof SetAutoWithdrawRuleResponseSchema;\n },\n /**\n * Pause or resume the account's rule, keeping its schedule and\n * destinations. Requires a session login with withdraw rights on the\n * account. Pausing needs no step-up. Resuming needs a fresh single-use\n * step-up, checks again that every destination is still a valid\n * destination on the account's external withdraw whitelist, and clears a\n * pause the rule set itself; a refused destination answers the typed codes\n * of SetAutoWithdrawRule, and the rule stays paused. A rule already in the\n * requested state is returned unchanged. A stale expected_version answers\n * VERSION_CONFLICT.\n *\n * @generated from rpc chain.withdraw.v1.AutoWithdrawService.SetAutoWithdrawRuleEnabled\n */\n setAutoWithdrawRuleEnabled: {\n methodKind: \"unary\";\n input: typeof SetAutoWithdrawRuleEnabledRequestSchema;\n output: typeof SetAutoWithdrawRuleEnabledResponseSchema;\n },\n /**\n * Read the account's latest rule version.\n *\n * An API key needs READ_AUTO_WITHDRAW in its policy and reads only its own\n * account. Both refusals answer PERMISSION_DENIED: a key whose policy lacks\n * the action gets \"api key policy does not allow READ_AUTO_WITHDRAW\", and a\n * key that names an account other than its own, such as a root-account key\n * naming a subaccount, gets \"api key target scope mismatch\".\n *\n * @generated from rpc chain.withdraw.v1.AutoWithdrawService.GetAutoWithdrawRule\n */\n getAutoWithdrawRule: {\n methodKind: \"unary\";\n input: typeof GetAutoWithdrawRuleRequestSchema;\n output: typeof GetAutoWithdrawRuleResponseSchema;\n },\n /**\n * List the account's auto-withdraw runs with their payouts, newest first.\n *\n * An API key needs READ_AUTO_WITHDRAW in its policy and reads only its own\n * account. Both refusals answer PERMISSION_DENIED: a key whose policy lacks\n * the action gets \"api key policy does not allow READ_AUTO_WITHDRAW\", and a\n * key that names an account other than its own, such as a root-account key\n * naming a subaccount, gets \"api key target scope mismatch\".\n *\n * @generated from rpc chain.withdraw.v1.AutoWithdrawService.ListAutoWithdrawRuns\n */\n listAutoWithdrawRuns: {\n methodKind: \"unary\";\n input: typeof ListAutoWithdrawRunsRequestSchema;\n output: typeof ListAutoWithdrawRunsResponseSchema;\n },\n /**\n * Preview the account's next auto-withdraw run from its balances now:\n * when it starts, whether it would pay, and per asset what it would pay,\n * what would stay and why, its USD value and the expected network fee. It\n * plans exactly as the run does; balances, prices and fees can change\n * before the run starts. A price that is not current leaves the value\n * unset instead of failing the read. When prices cannot be read at all,\n * the values stay unset too, unless the rule has a USD minimum: prices\n * then decide what pays, so the read answers UNAVAILABLE and can be\n * retried.\n *\n * An API key needs READ_AUTO_WITHDRAW in its policy and reads only its own\n * account. Both refusals answer PERMISSION_DENIED: a key whose policy lacks\n * the action gets \"api key policy does not allow READ_AUTO_WITHDRAW\", and a\n * key that names an account other than its own, such as a root-account key\n * naming a subaccount, gets \"api key target scope mismatch\".\n *\n * @generated from rpc chain.withdraw.v1.AutoWithdrawService.PreviewAutoWithdrawRun\n */\n previewAutoWithdrawRun: {\n methodKind: \"unary\";\n input: typeof PreviewAutoWithdrawRunRequestSchema;\n output: typeof PreviewAutoWithdrawRunResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_chain_withdraw_v1_auto_withdraw, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,MAAa,uCACX,uBAAS,wrNAAwrN;CAAC;CAAgC;CAA4B;AAA2B,CAAC;;;;;AA0D5xN,MAAa,6BACX,0BAAY,sCAAsC,CAAC;;;;;AAwErD,MAAa,gCACX,0BAAY,sCAAsC,CAAC;;;;;AA0CrD,MAAa,0BACX,0BAAY,sCAAsC,CAAC;;;;;AAoFrD,MAAa,yBACX,0BAAY,sCAAsC,CAAC;;;;;AAwDrD,MAAa,mCACX,0BAAY,sCAAsC,CAAC;;;;;AAoBrD,MAAa,oCACX,0BAAY,sCAAsC,CAAC;;;;;AAoCrD,MAAa,0CACX,0BAAY,sCAAsC,CAAC;;;;;AAqBrD,MAAa,2CACX,0BAAY,sCAAsC,CAAC;;;;;AAoBrD,MAAa,mCACX,0BAAY,sCAAsC,CAAC;;;;;AAoBrD,MAAa,oCACX,0BAAY,sCAAsC,CAAC;;;;;AAsHrD,MAAa,yBACX,0BAAY,sCAAsC,EAAE;;;;;AAwEtD,MAAa,wBACX,0BAAY,sCAAsC,EAAE;;;;;AAoCtD,MAAa,oCACX,0BAAY,sCAAsC,EAAE;;;;;AA2BtD,MAAa,qCACX,0BAAY,sCAAsC,EAAE;;;;;AAqBtD,MAAa,sCACX,0BAAY,sCAAsC,EAAE;;;;;AAqItD,MAAa,iCACX,0BAAY,sCAAsC,EAAE;;;;;AAmEtD,MAAa,uCACX,0BAAY,sCAAsC,EAAE;;;;;;;AAQtD,IAAY,sBAAL,yBAAA,qBAAA;;;;;;CAML,oBAAA,oBAAA,yBAAA,KAAA;;;;;;CAOA,oBAAA,oBAAA,WAAA,KAAA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A;;;;;;CAOA,sBAAA,sBAAA,oBAAA,KAAA;;;;;;;;;;;;;;;CAgBA,sBAAA,sBAAA,iBAAA,KAAA;;;;;;CAOA,sBAAA,sBAAA,kBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,8BACX,uBAAS,sCAAsC,CAAC;;;;;;;AAQlD,IAAY,4BAAL,yBAAA,2BAAA;;;;;;CAML,0BAAA,0BAAA,gCAAA,KAAA;;;;;;CAOA,0BAAA,0BAAA,cAAA,KAAA;;;;;;;;;CAUA,0BAAA,0BAAA,gBAAA,KAAA;;;;;;;CAQA,0BAAA,0BAAA,oBAAA,KAAA;;;;;;;CAQA,0BAAA,0BAAA,YAAA,KAAA;;;;;;CAOA,0BAAA,0BAAA,aAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,kCACX,uBAAS,sCAAsC,CAAC;;;;;;;;;;;;;;;;AAiBlD,MAAa,sBAiGX,0BAAY,sCAAsC,CAAC"}
@@ -3,7 +3,7 @@ import { Message } from "@bufbuild/protobuf";
3
3
  import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
4
4
  import { Timestamp } from "@bufbuild/protobuf/wkt";
5
5
  declare namespace withdraw_pb_d_exports {
6
- export { CreateTradingWithdrawRequest, CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponse, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequest, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponse, CreateWalletTradingWithdrawResponseSchema, ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, GetWalletBalancesRequest, GetWalletBalancesRequestSchema, GetWalletBalancesResponse, GetWalletBalancesResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayload, TradingWithdrawIntentPayloadSchema, ValidateWithdrawDestinationRequest, ValidateWithdrawDestinationRequestSchema, ValidateWithdrawDestinationResponse, ValidateWithdrawDestinationResponseSchema, WalletBalance, WalletBalanceSchema, WithdrawDestinationValidationCode, WithdrawDestinationValidationCodeSchema, WithdrawService, file_chain_withdraw_v1_withdraw };
6
+ export { CreateTradingWithdrawRequest, CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponse, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequest, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponse, CreateWalletTradingWithdrawResponseSchema, ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, GetWalletBalancesRequest, GetWalletBalancesRequestSchema, GetWalletBalancesResponse, GetWalletBalancesResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayload, TradingWithdrawIntentPayloadSchema, UnavailableWalletAsset, UnavailableWalletAssetSchema, ValidateWithdrawDestinationRequest, ValidateWithdrawDestinationRequestSchema, ValidateWithdrawDestinationResponse, ValidateWithdrawDestinationResponseSchema, WalletAssetUnavailableReason, WalletAssetUnavailableReasonSchema, WalletBalance, WalletBalanceSchema, WithdrawDestinationValidationCode, WithdrawDestinationValidationCodeSchema, WithdrawService, file_chain_withdraw_v1_withdraw };
7
7
  }
8
8
  /**
9
9
  * Describes the file chain/withdraw/v1/withdraw.proto.
@@ -113,7 +113,11 @@ type TradingWithdrawIntentPayload = Message<"chain.withdraw.v1.TradingWithdrawIn
113
113
  */
114
114
  assetId: number;
115
115
  /**
116
- * External network id for TO_EXTERNAL_CHAIN. Omit for TO_FUNDING.
116
+ * Polyester chain id of the destination network for TO_EXTERNAL_CHAIN:
117
+ * ChainConfig.chain_id from GetDepositWithdrawConfig, not the network's
118
+ * native chain id (ChainConfig.native_chain_id, such as 11155111 for
119
+ * Ethereum Sepolia). An unknown id is refused with
120
+ * ERROR_CODE_INVALID_DESTINATION_CHAIN. Omit for TO_FUNDING.
117
121
  *
118
122
  * @generated from field: uint64 destination_chain_id = 3;
119
123
  */
@@ -239,7 +243,10 @@ declare const CreateWalletTradingWithdrawRequestSchema: GenMessage<CreateWalletT
239
243
  */
240
244
  type ValidateWithdrawDestinationRequest = Message<"chain.withdraw.v1.ValidateWithdrawDestinationRequest"> & {
241
245
  /**
242
- * External destination chain identifier.
246
+ * Polyester chain id of the destination network: ChainConfig.chain_id
247
+ * from GetDepositWithdrawConfig, not the network's native chain id
248
+ * (ChainConfig.native_chain_id, such as 11155111 for Ethereum Sepolia).
249
+ * An unknown id answers valid false with UNSUPPORTED_CHAIN.
243
250
  *
244
251
  * @generated from field: uint64 destination_chain_id = 1;
245
252
  */
@@ -372,17 +379,71 @@ type GetWalletBalancesResponse = Message<"chain.withdraw.v1.GetWalletBalancesRes
372
379
  smartAccountAddress: string;
373
380
  /**
374
381
  * Every zToken the wallet holds a nonzero balance of, ordered by
375
- * zipped_asset_id. Empty when it holds none.
382
+ * zipped_asset_id. Empty when it holds none. An asset whose balance could
383
+ * not be read is in unavailable_assets instead.
376
384
  *
377
385
  * @generated from field: repeated chain.withdraw.v1.WalletBalance balances = 2;
378
386
  */
379
387
  balances: WalletBalance[];
388
+ /**
389
+ * Zipped assets whose zToken balance could not be read, ordered by
390
+ * zipped_asset_id. The wallet's balance of each is unknown, not zero: read
391
+ * again later. Empty when every balance was read. When no balance can be
392
+ * read at all, the request fails as unavailable instead.
393
+ *
394
+ * @generated from field: repeated chain.withdraw.v1.UnavailableWalletAsset unavailable_assets = 3;
395
+ */
396
+ unavailableAssets: UnavailableWalletAsset[];
380
397
  };
381
398
  /**
382
399
  * Describes the message chain.withdraw.v1.GetWalletBalancesResponse.
383
400
  * Use `create(GetWalletBalancesResponseSchema)` to create a new message.
384
401
  */
385
402
  declare const GetWalletBalancesResponseSchema: GenMessage<GetWalletBalancesResponse>;
403
+ /**
404
+ * UnavailableWalletAsset is a zipped asset whose zToken balance could not be
405
+ * read from Polyester Chain.
406
+ *
407
+ * @generated from message chain.withdraw.v1.UnavailableWalletAsset
408
+ */
409
+ type UnavailableWalletAsset = Message<"chain.withdraw.v1.UnavailableWalletAsset"> & {
410
+ /**
411
+ * Zipped asset of the zToken, as WalletBalance.zipped_asset_id names it.
412
+ *
413
+ * @generated from field: uint32 zipped_asset_id = 1;
414
+ */
415
+ zippedAssetId: number;
416
+ /**
417
+ * Unified asset the zToken stands for, as WalletBalance.unified_asset_id
418
+ * names it.
419
+ *
420
+ * @generated from field: uint32 unified_asset_id = 2;
421
+ */
422
+ unifiedAssetId: number;
423
+ /**
424
+ * External network of the zipped asset, as WalletBalance.chain_id names it.
425
+ *
426
+ * @generated from field: uint32 chain_id = 3;
427
+ */
428
+ chainId: number;
429
+ /**
430
+ * zToken contract address on Polyester Chain listed for the zipped asset.
431
+ *
432
+ * @generated from field: string ztoken_address = 4;
433
+ */
434
+ ztokenAddress: string;
435
+ /**
436
+ * Why the balance could not be read.
437
+ *
438
+ * @generated from field: chain.withdraw.v1.WalletAssetUnavailableReason reason = 5;
439
+ */
440
+ reason: WalletAssetUnavailableReason;
441
+ };
442
+ /**
443
+ * Describes the message chain.withdraw.v1.UnavailableWalletAsset.
444
+ * Use `create(UnavailableWalletAssetSchema)` to create a new message.
445
+ */
446
+ declare const UnavailableWalletAssetSchema: GenMessage<UnavailableWalletAsset>;
386
447
  /**
387
448
  * ErrorCode identifies stable, machine-readable Withdraw API errors.
388
449
  * Values mirror the REST problem+json code field.
@@ -608,7 +669,9 @@ declare enum ErrorCode {
608
669
  */
609
670
  FEE_UNAVAILABLE = 35,
610
671
  /**
611
- * Required zipped-asset supply data is unavailable.
672
+ * The zToken supply of the destination route is not known, or not
673
+ * current: AssetChainVariant.supply_status is MISSING or STALE. Nothing was
674
+ * reserved; retry once the status is AVAILABLE again.
612
675
  *
613
676
  * @generated from enum value: ERROR_CODE_SUPPLY_UNAVAILABLE = 36;
614
677
  */
@@ -795,6 +858,41 @@ declare enum WithdrawDestinationValidationCode {
795
858
  * Describes the enum chain.withdraw.v1.WithdrawDestinationValidationCode.
796
859
  */
797
860
  declare const WithdrawDestinationValidationCodeSchema: GenEnum<WithdrawDestinationValidationCode>;
861
+ /**
862
+ * WalletAssetUnavailableReason says why a zToken balance could not be read.
863
+ *
864
+ * @generated from enum chain.withdraw.v1.WalletAssetUnavailableReason
865
+ */
866
+ declare enum WalletAssetUnavailableReason {
867
+ /**
868
+ * No reason was given.
869
+ *
870
+ * @generated from enum value: UNAVAILABLE_UNSPECIFIED = 0;
871
+ */
872
+ UNAVAILABLE_UNSPECIFIED = 0,
873
+ /**
874
+ * No zToken contract exists at the listed address on Polyester Chain.
875
+ *
876
+ * @generated from enum value: NO_CONTRACT = 1;
877
+ */
878
+ NO_CONTRACT = 1,
879
+ /**
880
+ * Polyester Chain answered the balance read with an error.
881
+ *
882
+ * @generated from enum value: READ_FAILED = 2;
883
+ */
884
+ READ_FAILED = 2,
885
+ /**
886
+ * The balance read returned a value that is not a valid balance.
887
+ *
888
+ * @generated from enum value: INVALID_BALANCE = 3;
889
+ */
890
+ INVALID_BALANCE = 3
891
+ }
892
+ /**
893
+ * Describes the enum chain.withdraw.v1.WalletAssetUnavailableReason.
894
+ */
895
+ declare const WalletAssetUnavailableReasonSchema: GenEnum<WalletAssetUnavailableReason>;
798
896
  /**
799
897
  * WithdrawService manages authenticated chain-facing withdraw request intake.
800
898
  *
@@ -851,5 +949,5 @@ declare const WithdrawService: GenService<{
851
949
  };
852
950
  }>;
853
951
  //#endregion
854
- export { CreateTradingWithdrawRequest, CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponse, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequest, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponse, CreateWalletTradingWithdrawResponseSchema, ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, GetWalletBalancesRequest, GetWalletBalancesRequestSchema, GetWalletBalancesResponse, GetWalletBalancesResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayload, TradingWithdrawIntentPayloadSchema, ValidateWithdrawDestinationRequest, ValidateWithdrawDestinationRequestSchema, ValidateWithdrawDestinationResponse, ValidateWithdrawDestinationResponseSchema, WalletBalance, WalletBalanceSchema, WithdrawDestinationValidationCode, WithdrawDestinationValidationCodeSchema, WithdrawService, file_chain_withdraw_v1_withdraw, withdraw_pb_d_exports };
952
+ export { CreateTradingWithdrawRequest, CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponse, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequest, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponse, CreateWalletTradingWithdrawResponseSchema, ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, GetWalletBalancesRequest, GetWalletBalancesRequestSchema, GetWalletBalancesResponse, GetWalletBalancesResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayload, TradingWithdrawIntentPayloadSchema, UnavailableWalletAsset, UnavailableWalletAssetSchema, ValidateWithdrawDestinationRequest, ValidateWithdrawDestinationRequestSchema, ValidateWithdrawDestinationResponse, ValidateWithdrawDestinationResponseSchema, WalletAssetUnavailableReason, WalletAssetUnavailableReasonSchema, WalletBalance, WalletBalanceSchema, WithdrawDestinationValidationCode, WithdrawDestinationValidationCodeSchema, WithdrawService, file_chain_withdraw_v1_withdraw, withdraw_pb_d_exports };
855
953
  //# sourceMappingURL=withdraw_pb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withdraw_pb.d.ts","names":[],"sources":["../../../../../src/gen/chain/withdraw/v1/withdraw_pb.ts"],"mappings":";;;;;;;;;;cAgBa,iCAAiC;;;;;;;KASlC,gCAAgC;;;;;;;EAO1C;;;;;;cAOW,qCAAqC,WAAW;;;;;;;KASjD,sCAAsC;;;;;;;EAOhD;;;;;;cAOW,2CAA2C,WAAW;;;;;;KAQvD,cAAc;;;;;;EAMxB,MAAM;;;;;;;;;;;EAYN;;;;;;;EAQA,cAAc;;;;;;;EAQd,cAAc;;;;;;cAOH,mBAAmB,WAAW;;;;;;;KAS/B,+BAA+B;;;;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;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;;EAQA;;;;;;;;;EAUA;;;;;;;EAQA;;;;;;;;EASA;;;;;;;EAQA;;;;;;;EAQA;;;;;;;;;EAUA;;;;;;;;;EAUA;;;;;cAMW,iBAAiB,QAAQ;;;;;;aAQ1B;;;;EAIV;;;;EAKA;;;;EAKA;;;;;cAMW,6BAA6B,QAAQ;;;;;;;aAStC;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;;EAQA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,yCAAyC,QAAQ;;;;;;aAQlD;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,oCAAoC,QAAQ;;;;;;cAQ5C,iBAAiB;;;;;;;;;EAS5B;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;EASjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;;EAUjB;IACE;IACA,cAAc;IACd,eAAe"}
@@ -17,8 +17,11 @@ var withdraw_pb_exports = /* @__PURE__ */ __exportAll({
17
17
  TradingWithdrawAction: () => TradingWithdrawAction,
18
18
  TradingWithdrawActionSchema: () => TradingWithdrawActionSchema,
19
19
  TradingWithdrawIntentPayloadSchema: () => TradingWithdrawIntentPayloadSchema,
20
+ UnavailableWalletAssetSchema: () => UnavailableWalletAssetSchema,
20
21
  ValidateWithdrawDestinationRequestSchema: () => ValidateWithdrawDestinationRequestSchema,
21
22
  ValidateWithdrawDestinationResponseSchema: () => ValidateWithdrawDestinationResponseSchema,
23
+ WalletAssetUnavailableReason: () => WalletAssetUnavailableReason,
24
+ WalletAssetUnavailableReasonSchema: () => WalletAssetUnavailableReasonSchema,
22
25
  WalletBalanceSchema: () => WalletBalanceSchema,
23
26
  WithdrawDestinationValidationCode: () => WithdrawDestinationValidationCode,
24
27
  WithdrawDestinationValidationCodeSchema: () => WithdrawDestinationValidationCodeSchema,
@@ -28,7 +31,7 @@ var withdraw_pb_exports = /* @__PURE__ */ __exportAll({
28
31
  /**
29
32
  * Describes the file chain/withdraw/v1/withdraw.proto.
30
33
  */
31
- const file_chain_withdraw_v1_withdraw = /*@__PURE__*/ fileDesc("CiBjaGFpbi93aXRoZHJhdy92MS93aXRoZHJhdy5wcm90bxIRY2hhaW4ud2l0aGRyYXcudjEiMgodQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVzcG9uc2USEQoJaW50ZW50X2lkGAEgASgJIjgKI0NyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhd1Jlc3BvbnNlEhEKCWludGVudF9pZBgBIAEoCSKvAQoLRXJyb3JEZXRhaWwSKgoEY29kZRgBIAEoDjIcLmNoYWluLndpdGhkcmF3LnYxLkVycm9yQ29kZRISCgpmaWVsZF9wYXRoGAIgASgJEi4KDW1pbl9mbG9vcl9lMTgYAyABKAsyFy5wb2x5ZXN0ZXIudHlwZS52MS5VMTI4EjAKDHBheWFibGVfZnJvbRgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiuAIKHFRyYWRpbmdXaXRoZHJhd0ludGVudFBheWxvYWQSOgoGYWN0aW9uGAEgASgOMiguY2hhaW4ud2l0aGRyYXcudjEuVHJhZGluZ1dpdGhkcmF3QWN0aW9uQgASEgoIYXNzZXRfaWQYAiABKA1CABIcChRkZXN0aW5hdGlvbl9jaGFpbl9pZBgDIAEoBBItCgphbW91bnRfZTE4GAQgASgLMhcucG9seWVzdGVyLnR5cGUudjEuVTEyOEIAEhkKD2RlYWRsaW5lX3RzX3NlYxgFIAEoBEIAEigKBW5vbmNlGAYgASgLMhcucG9seWVzdGVyLnR5cGUudjEuVTEyOEIAEhsKE2Rlc3RpbmF0aW9uX2FkZHJlc3MYByABKAkSGQoPaWRlbXBvdGVuY3lfa2V5GAggASgJQgAifwocQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVxdWVzdBJCCgdwYXlsb2FkGA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V0V2FsbGV0QmFsYW5jZXNSZXF1ZXN0GiwuY2hhaW4ud2l0aGRyYXcudjEuR2V0V2FsbGV0QmFsYW5jZXNSZXNwb25zZSIAEo4BChtWYWxpZGF0ZVdpdGhkcmF3RGVzdGluYXRpb24SNS5jaGFpbi53aXRoZHJhdy52MS5WYWxpZGF0ZVdpdGhkcmF3RGVzdGluYXRpb25SZXF1ZXN0GjYuY2hhaW4ud2l0aGRyYXcudjEuVmFsaWRhdGVXaXRoZHJhd0Rlc3RpbmF0aW9uUmVzcG9uc2UiABJ8ChVDcmVhdGVUcmFkaW5nV2l0aGRyYXcSLy5jaGFpbi53aXRoZHJhdy52MS5DcmVhdGVUcmFkaW5nV2l0aGRyYXdSZXF1ZXN0GjAuY2hhaW4ud2l0aGRyYXcudjEuQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVzcG9uc2UiABKOAQobQ3JlYXRlV2FsbGV0VHJhZGluZ1dpdGhkcmF3EjUuY2hhaW4ud2l0aGRyYXcudjEuQ3JlYXRlV2FsbGV0VHJhZGluZ1dpdGhkcmF3UmVxdWVzdBo2LmNoYWluLndpdGhkcmF3LnYxLkNyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhd1Jlc3BvbnNlIgAaAEJPWk1naXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL2NoYWluL3dpdGhkcmF3L3YxO2NoYWlud2l0aGRyYXd2MWIGcHJvdG8z", [
32
35
  file_google_protobuf_timestamp,
33
36
  file_polyester_api_options,
34
37
  file_polyester_type_v1_u128
@@ -89,6 +92,11 @@ const WalletBalanceSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_wit
89
92
  */
90
93
  const GetWalletBalancesResponseSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw, 10);
91
94
  /**
95
+ * Describes the message chain.withdraw.v1.UnavailableWalletAsset.
96
+ * Use `create(UnavailableWalletAssetSchema)` to create a new message.
97
+ */
98
+ const UnavailableWalletAssetSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw, 11);
99
+ /**
92
100
  * ErrorCode identifies stable, machine-readable Withdraw API errors.
93
101
  * Values mirror the REST problem+json code field.
94
102
  *
@@ -313,7 +321,9 @@ let ErrorCode = /* @__PURE__ */ function(ErrorCode) {
313
321
  */
314
322
  ErrorCode[ErrorCode["FEE_UNAVAILABLE"] = 35] = "FEE_UNAVAILABLE";
315
323
  /**
316
- * Required zipped-asset supply data is unavailable.
324
+ * The zToken supply of the destination route is not known, or not
325
+ * current: AssetChainVariant.supply_status is MISSING or STALE. Nothing was
326
+ * reserved; retry once the status is AVAILABLE again.
317
327
  *
318
328
  * @generated from enum value: ERROR_CODE_SUPPLY_UNAVAILABLE = 36;
319
329
  */
@@ -504,12 +514,48 @@ let WithdrawDestinationValidationCode = /* @__PURE__ */ function(WithdrawDestina
504
514
  */
505
515
  const WithdrawDestinationValidationCodeSchema = /*@__PURE__*/ enumDesc(file_chain_withdraw_v1_withdraw, 2);
506
516
  /**
517
+ * WalletAssetUnavailableReason says why a zToken balance could not be read.
518
+ *
519
+ * @generated from enum chain.withdraw.v1.WalletAssetUnavailableReason
520
+ */
521
+ let WalletAssetUnavailableReason = /* @__PURE__ */ function(WalletAssetUnavailableReason) {
522
+ /**
523
+ * No reason was given.
524
+ *
525
+ * @generated from enum value: UNAVAILABLE_UNSPECIFIED = 0;
526
+ */
527
+ WalletAssetUnavailableReason[WalletAssetUnavailableReason["UNAVAILABLE_UNSPECIFIED"] = 0] = "UNAVAILABLE_UNSPECIFIED";
528
+ /**
529
+ * No zToken contract exists at the listed address on Polyester Chain.
530
+ *
531
+ * @generated from enum value: NO_CONTRACT = 1;
532
+ */
533
+ WalletAssetUnavailableReason[WalletAssetUnavailableReason["NO_CONTRACT"] = 1] = "NO_CONTRACT";
534
+ /**
535
+ * Polyester Chain answered the balance read with an error.
536
+ *
537
+ * @generated from enum value: READ_FAILED = 2;
538
+ */
539
+ WalletAssetUnavailableReason[WalletAssetUnavailableReason["READ_FAILED"] = 2] = "READ_FAILED";
540
+ /**
541
+ * The balance read returned a value that is not a valid balance.
542
+ *
543
+ * @generated from enum value: INVALID_BALANCE = 3;
544
+ */
545
+ WalletAssetUnavailableReason[WalletAssetUnavailableReason["INVALID_BALANCE"] = 3] = "INVALID_BALANCE";
546
+ return WalletAssetUnavailableReason;
547
+ }({});
548
+ /**
549
+ * Describes the enum chain.withdraw.v1.WalletAssetUnavailableReason.
550
+ */
551
+ const WalletAssetUnavailableReasonSchema = /*@__PURE__*/ enumDesc(file_chain_withdraw_v1_withdraw, 3);
552
+ /**
507
553
  * WithdrawService manages authenticated chain-facing withdraw request intake.
508
554
  *
509
555
  * @generated from service chain.withdraw.v1.WithdrawService
510
556
  */
511
557
  const WithdrawService = /*@__PURE__*/ serviceDesc(file_chain_withdraw_v1_withdraw, 0);
512
558
  //#endregion
513
- export { CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponseSchema, ErrorCode, ErrorCodeSchema, ErrorDetailSchema, GetWalletBalancesRequestSchema, GetWalletBalancesResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayloadSchema, ValidateWithdrawDestinationRequestSchema, ValidateWithdrawDestinationResponseSchema, WalletBalanceSchema, WithdrawDestinationValidationCode, WithdrawDestinationValidationCodeSchema, WithdrawService, file_chain_withdraw_v1_withdraw, withdraw_pb_exports };
559
+ export { CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponseSchema, ErrorCode, ErrorCodeSchema, ErrorDetailSchema, GetWalletBalancesRequestSchema, GetWalletBalancesResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayloadSchema, UnavailableWalletAssetSchema, ValidateWithdrawDestinationRequestSchema, ValidateWithdrawDestinationResponseSchema, WalletAssetUnavailableReason, WalletAssetUnavailableReasonSchema, WalletBalanceSchema, WithdrawDestinationValidationCode, WithdrawDestinationValidationCodeSchema, WithdrawService, file_chain_withdraw_v1_withdraw, withdraw_pb_exports };
514
560
 
515
561
  //# sourceMappingURL=withdraw_pb.js.map