@polyester/sdk 0.35.0-devnet-20261111025029 → 0.35.0-devnet-20261111140253

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 (261) hide show
  1. package/CHANGELOG.md +43 -1
  2. package/dist/catalogs/index.d.ts +2 -2
  3. package/dist/catalogs/snapshot-validation.js +7 -3
  4. package/dist/catalogs/snapshot-validation.js.map +1 -1
  5. package/dist/gen/ai/v1/assistant_pb.d.ts +4164 -0
  6. package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -0
  7. package/dist/gen/ai/v1/assistant_pb.js +1174 -0
  8. package/dist/gen/ai/v1/assistant_pb.js.map +1 -0
  9. package/dist/gen/alerts/v1/price_alerts_pb.d.ts +776 -0
  10. package/dist/gen/alerts/v1/price_alerts_pb.d.ts.map +1 -0
  11. package/dist/gen/alerts/v1/price_alerts_pb.js +378 -0
  12. package/dist/gen/alerts/v1/price_alerts_pb.js.map +1 -0
  13. package/dist/gen/auth/v1/address_book_pb.d.ts +6 -0
  14. package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
  15. package/dist/gen/auth/v1/address_book_pb.js +6 -0
  16. package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
  17. package/dist/gen/auth/v1/api_keys_pb.d.ts +247 -3
  18. package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
  19. package/dist/gen/auth/v1/api_keys_pb.js +81 -2
  20. package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
  21. package/dist/gen/auth/v1/auth_pb.d.ts +55 -6
  22. package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
  23. package/dist/gen/auth/v1/auth_pb.js +55 -6
  24. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  25. package/dist/gen/auth/v1/policies_pb.d.ts +186 -14
  26. package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
  27. package/dist/gen/auth/v1/policies_pb.js +163 -6
  28. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  29. package/dist/gen/auth/v1/profile_pb.d.ts +4 -2
  30. package/dist/gen/auth/v1/profile_pb.d.ts.map +1 -1
  31. package/dist/gen/auth/v1/profile_pb.js.map +1 -1
  32. package/dist/gen/auth/v1/resolve_pb.d.ts +1 -0
  33. package/dist/gen/auth/v1/resolve_pb.d.ts.map +1 -1
  34. package/dist/gen/auth/v1/resolve_pb.js.map +1 -1
  35. package/dist/gen/auth/v1/social_verification_pb.d.ts +170 -11
  36. package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
  37. package/dist/gen/auth/v1/social_verification_pb.js +41 -3
  38. package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
  39. package/dist/gen/auth/v1/subaccounts_pb.d.ts +25 -9
  40. package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
  41. package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
  42. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +4 -2
  43. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts.map +1 -1
  44. package/dist/gen/chain/deposit/v1/deposit_pb.js.map +1 -1
  45. package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +5 -0
  46. package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts.map +1 -1
  47. package/dist/gen/chain/guard/v1/guard_signer_pb.js.map +1 -1
  48. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +10 -0
  49. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts.map +1 -1
  50. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js +1 -1
  51. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
  52. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +32 -4
  53. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts.map +1 -1
  54. package/dist/gen/chain/lifecycle/v1/types_pb.js +32 -4
  55. package/dist/gen/chain/lifecycle/v1/types_pb.js.map +1 -1
  56. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +391 -42
  57. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -1
  58. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js +103 -17
  59. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
  60. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +172 -4
  61. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  62. package/dist/gen/chain/withdraw/v1/withdraw_pb.js +63 -2
  63. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  64. package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +57 -3
  65. package/dist/gen/chain/zipper/v1/zipper_pb.d.ts.map +1 -1
  66. package/dist/gen/chain/zipper/v1/zipper_pb.js +41 -3
  67. package/dist/gen/chain/zipper/v1/zipper_pb.js.map +1 -1
  68. package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +2 -1
  69. package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts.map +1 -1
  70. package/dist/gen/checkpoints/v1/checkpoints_pb.js.map +1 -1
  71. package/dist/gen/claims/v1/claims_pb.d.ts +20 -3
  72. package/dist/gen/claims/v1/claims_pb.d.ts.map +1 -1
  73. package/dist/gen/claims/v1/claims_pb.js +12 -3
  74. package/dist/gen/claims/v1/claims_pb.js.map +1 -1
  75. package/dist/gen/index.d.ts +9 -5
  76. package/dist/gen/index.js +5 -1
  77. package/dist/gen/ledger/v1/catalog_pb.d.ts +52 -1
  78. package/dist/gen/ledger/v1/catalog_pb.d.ts.map +1 -1
  79. package/dist/gen/ledger/v1/catalog_pb.js +52 -1
  80. package/dist/gen/ledger/v1/catalog_pb.js.map +1 -1
  81. package/dist/gen/marketdata/v1/heatmap_pb.d.ts +6 -0
  82. package/dist/gen/marketdata/v1/heatmap_pb.d.ts.map +1 -1
  83. package/dist/gen/marketdata/v1/heatmap_pb.js.map +1 -1
  84. package/dist/gen/marketdata/v1/marketdata_pb.d.ts +8 -0
  85. package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
  86. package/dist/gen/marketdata/v1/marketdata_pb.js +1 -1
  87. package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
  88. package/dist/gen/orders/v1/orders_pb.d.ts +29 -8
  89. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  90. package/dist/gen/orders/v1/orders_pb.js +18 -5
  91. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  92. package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +20 -1
  93. package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts.map +1 -1
  94. package/dist/gen/polyester/ratelimit/v1/types_pb.js +20 -1
  95. package/dist/gen/polyester/ratelimit/v1/types_pb.js.map +1 -1
  96. package/dist/gen/rewards/v1/rewards_pb.d.ts +74 -3
  97. package/dist/gen/rewards/v1/rewards_pb.d.ts.map +1 -1
  98. package/dist/gen/rewards/v1/rewards_pb.js +16 -4
  99. package/dist/gen/rewards/v1/rewards_pb.js.map +1 -1
  100. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +1268 -67
  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 +306 -5
  103. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
  104. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +298 -54
  105. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  106. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +183 -37
  107. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  108. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +933 -0
  109. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -0
  110. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +292 -0
  111. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -0
  112. package/dist/gen/system/v1/system_pb.d.ts +77 -0
  113. package/dist/gen/system/v1/system_pb.d.ts.map +1 -0
  114. package/dist/gen/system/v1/system_pb.js +34 -0
  115. package/dist/gen/system/v1/system_pb.js.map +1 -0
  116. package/dist/gen/tradews/v1/trade_ws_pb.d.ts +2 -2
  117. package/dist/gen/tradews/v1/trade_ws_pb.js.map +1 -1
  118. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +101 -2
  119. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
  120. package/dist/gen/transfer/v1/internal_transfer_pb.js +14 -2
  121. package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
  122. package/dist/gen/vip/v1/vip_pb.d.ts +1 -0
  123. package/dist/gen/vip/v1/vip_pb.d.ts.map +1 -1
  124. package/dist/gen/vip/v1/vip_pb.js.map +1 -1
  125. package/dist/index.d.ts +9 -9
  126. package/dist/index.js +2 -2
  127. package/dist/services/address-book/address-book.schemas.d.ts +2 -2
  128. package/dist/services/api-keys/api-keys.codecs.js +10 -1
  129. package/dist/services/api-keys/api-keys.codecs.js.map +1 -1
  130. package/dist/services/api-keys/api-keys.schemas.d.ts +4 -0
  131. package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
  132. package/dist/services/api-keys/api-keys.schemas.js +3 -1
  133. package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
  134. package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts +9 -2
  135. package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts.map +1 -1
  136. package/dist/services/auto-withdraw/auto-withdraw.codecs.js +9 -1
  137. package/dist/services/auto-withdraw/auto-withdraw.codecs.js.map +1 -1
  138. package/dist/services/auto-withdraw/auto-withdraw.d.ts +15 -4
  139. package/dist/services/auto-withdraw/auto-withdraw.d.ts.map +1 -1
  140. package/dist/services/auto-withdraw/auto-withdraw.js +24 -8
  141. package/dist/services/auto-withdraw/auto-withdraw.js.map +1 -1
  142. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +375 -7
  143. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -1
  144. package/dist/services/auto-withdraw/auto-withdraw.schemas.js +66 -11
  145. package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -1
  146. package/dist/services/auto-withdraw/auto-withdraw.types.d.ts +3 -3
  147. package/dist/services/changelog/changelog.schemas.d.ts +17 -17
  148. package/dist/services/checkpoints/checkpoints.schemas.d.ts +2 -2
  149. package/dist/services/claims/claims.d.ts +5 -2
  150. package/dist/services/claims/claims.d.ts.map +1 -1
  151. package/dist/services/claims/claims.js +5 -2
  152. package/dist/services/claims/claims.js.map +1 -1
  153. package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
  154. package/dist/services/internal-transfers/internal-transfers.d.ts +13 -4
  155. package/dist/services/internal-transfers/internal-transfers.d.ts.map +1 -1
  156. package/dist/services/internal-transfers/internal-transfers.js +17 -3
  157. package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
  158. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +59 -4
  159. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts.map +1 -1
  160. package/dist/services/internal-transfers/internal-transfers.schemas.js +32 -2
  161. package/dist/services/internal-transfers/internal-transfers.schemas.js.map +1 -1
  162. package/dist/services/internal-transfers/internal-transfers.types.d.ts +2 -2
  163. package/dist/services/lifecycle/lifecycle.codecs.d.ts +2 -2
  164. package/dist/services/lifecycle/lifecycle.codecs.d.ts.map +1 -1
  165. package/dist/services/lifecycle/lifecycle.codecs.js +3 -1
  166. package/dist/services/lifecycle/lifecycle.codecs.js.map +1 -1
  167. package/dist/services/lifecycle/lifecycle.schemas.d.ts +114 -90
  168. package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
  169. package/dist/services/lifecycle/lifecycle.schemas.js +7 -1
  170. package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
  171. package/dist/services/market-data/market-data.schemas.js +7 -2
  172. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  173. package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
  174. package/dist/services/orders/order-errors.schemas.d.ts +2 -2
  175. package/dist/services/orders/orders-batch.schemas.d.ts +54 -54
  176. package/dist/services/orders/orders-input.schemas.d.ts +7 -7
  177. package/dist/services/orders/orders-output.schemas.d.ts +19 -19
  178. package/dist/services/orders/orders.d.ts +2 -0
  179. package/dist/services/orders/orders.d.ts.map +1 -1
  180. package/dist/services/orders/orders.js +2 -0
  181. package/dist/services/orders/orders.js.map +1 -1
  182. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
  183. package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +1 -1
  184. package/dist/services/policies/shared.codecs.js +85 -3
  185. package/dist/services/policies/shared.codecs.js.map +1 -1
  186. package/dist/services/policies/shared.d.ts +1 -1
  187. package/dist/services/policies/shared.d.ts.map +1 -1
  188. package/dist/services/policies/shared.js +5 -14
  189. package/dist/services/policies/shared.js.map +1 -1
  190. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
  191. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +3 -3
  192. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
  193. package/dist/services/rewards/rewards.d.ts +13 -3
  194. package/dist/services/rewards/rewards.d.ts.map +1 -1
  195. package/dist/services/rewards/rewards.js +17 -3
  196. package/dist/services/rewards/rewards.js.map +1 -1
  197. package/dist/services/rewards/rewards.schemas.d.ts +101 -4
  198. package/dist/services/rewards/rewards.schemas.d.ts.map +1 -1
  199. package/dist/services/rewards/rewards.schemas.js +12 -2
  200. package/dist/services/rewards/rewards.schemas.js.map +1 -1
  201. package/dist/services/rewards/rewards.types.d.ts +2 -2
  202. package/dist/services/social-verification/social-verification.codecs.js +13 -5
  203. package/dist/services/social-verification/social-verification.codecs.js.map +1 -1
  204. package/dist/services/social-verification/social-verification.d.ts +18 -3
  205. package/dist/services/social-verification/social-verification.d.ts.map +1 -1
  206. package/dist/services/social-verification/social-verification.js +26 -3
  207. package/dist/services/social-verification/social-verification.js.map +1 -1
  208. package/dist/services/social-verification/social-verification.schemas.d.ts +33 -7
  209. package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
  210. package/dist/services/social-verification/social-verification.schemas.js +35 -10
  211. package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
  212. package/dist/services/social-verification/social-verification.types.d.ts +2 -2
  213. package/dist/services/subaccounts/subaccounts.schemas.d.ts +17 -17
  214. package/dist/services/trades/trades.schemas.d.ts +2 -2
  215. package/dist/services/trading-withdraws/trading-withdraws.d.ts +7 -1
  216. package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
  217. package/dist/services/trading-withdraws/trading-withdraws.js +11 -1
  218. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  219. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +42 -1
  220. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  221. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +19 -3
  222. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  223. package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +2 -2
  224. package/dist/services/transfers/transfers.schemas.d.ts +4 -4
  225. package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
  226. package/dist/services/triggers/triggers-output.schemas.d.ts +30 -30
  227. package/dist/services/zipper/zipper.schemas.d.ts +2 -2
  228. package/dist/services/zipper/zipper.schemas.d.ts.map +1 -1
  229. package/dist/services/zipper/zipper.schemas.js +13 -2
  230. package/dist/services/zipper/zipper.schemas.js.map +1 -1
  231. package/dist/services/zipper/zipper.types.d.ts +2 -2
  232. package/dist/shared/catalog-config.d.ts +18 -1
  233. package/dist/shared/catalog-config.d.ts.map +1 -1
  234. package/dist/shared/catalog-config.js +7 -1
  235. package/dist/shared/catalog-config.js.map +1 -1
  236. package/dist/shared/connect-error-mapping.d.ts.map +1 -1
  237. package/dist/shared/connect-error-mapping.js +5 -1
  238. package/dist/shared/connect-error-mapping.js.map +1 -1
  239. package/dist/shared/error-detail.d.ts +8 -0
  240. package/dist/shared/error-detail.d.ts.map +1 -1
  241. package/dist/shared/error-detail.js.map +1 -1
  242. package/dist/shared/error-details/claims.js +7 -2
  243. package/dist/shared/error-details/claims.js.map +1 -1
  244. package/dist/shared/error-details/withdraw.js +11 -2
  245. package/dist/shared/error-details/withdraw.js.map +1 -1
  246. package/dist/shared/errors.d.ts +20 -3
  247. package/dist/shared/errors.d.ts.map +1 -1
  248. package/dist/shared/errors.js +17 -1
  249. package/dist/shared/errors.js.map +1 -1
  250. package/dist/shared/ledger-codes.d.ts +7 -1
  251. package/dist/shared/ledger-codes.d.ts.map +1 -1
  252. package/dist/shared/ledger-codes.js +27 -3
  253. package/dist/shared/ledger-codes.js.map +1 -1
  254. package/dist/shared/rate-limit.schemas.d.ts +2 -2
  255. package/dist/shared/rate-limit.schemas.d.ts.map +1 -1
  256. package/dist/shared/rate-limit.schemas.js +4 -1
  257. package/dist/shared/rate-limit.schemas.js.map +1 -1
  258. package/dist/shared/transports.d.ts +2 -1
  259. package/dist/shared/transports.d.ts.map +1 -1
  260. package/dist/shared/transports.js.map +1 -1
  261. package/package.json +1 -1
@@ -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 auto_withdraw_pb_d_exports {
6
- export { AutoWithdrawCadence, AutoWithdrawCadenceSchema, AutoWithdrawDestination, AutoWithdrawDestinationSchema, AutoWithdrawPause, AutoWithdrawPauseSchema, AutoWithdrawRule, AutoWithdrawRuleSchema, AutoWithdrawRun, AutoWithdrawRunSchema, AutoWithdrawRunState, AutoWithdrawRunStateSchema, AutoWithdrawSchedule, AutoWithdrawScheduleSchema, AutoWithdrawService, AutoWithdrawStep, AutoWithdrawStepSchema, AutoWithdrawStepState, AutoWithdrawStepStateSchema, AutoWithdrawWeekday, AutoWithdrawWeekdaySchema, DisableAutoWithdrawRuleRequest, DisableAutoWithdrawRuleRequestSchema, DisableAutoWithdrawRuleResponse, DisableAutoWithdrawRuleResponseSchema, GetAutoWithdrawRuleRequest, GetAutoWithdrawRuleRequestSchema, GetAutoWithdrawRuleResponse, GetAutoWithdrawRuleResponseSchema, ListAutoWithdrawRunsRequest, ListAutoWithdrawRunsRequestSchema, ListAutoWithdrawRunsResponse, ListAutoWithdrawRunsResponseSchema, SetAutoWithdrawRuleRequest, SetAutoWithdrawRuleRequestSchema, SetAutoWithdrawRuleResponse, SetAutoWithdrawRuleResponseSchema, file_chain_withdraw_v1_auto_withdraw };
6
+ export { AutoWithdrawCadence, AutoWithdrawCadenceSchema, AutoWithdrawDestination, AutoWithdrawDestinationSchema, AutoWithdrawPause, AutoWithdrawPauseSchema, AutoWithdrawPreviewAsset, AutoWithdrawPreviewAssetSchema, AutoWithdrawPreviewStatus, AutoWithdrawPreviewStatusSchema, AutoWithdrawRule, AutoWithdrawRuleSchema, AutoWithdrawRun, AutoWithdrawRunSchema, AutoWithdrawRunState, AutoWithdrawRunStateSchema, AutoWithdrawSchedule, AutoWithdrawScheduleSchema, AutoWithdrawService, AutoWithdrawStep, AutoWithdrawStepSchema, AutoWithdrawStepState, AutoWithdrawStepStateSchema, AutoWithdrawWeekday, AutoWithdrawWeekdaySchema, GetAutoWithdrawRuleRequest, GetAutoWithdrawRuleRequestSchema, GetAutoWithdrawRuleResponse, GetAutoWithdrawRuleResponseSchema, ListAutoWithdrawRunsRequest, ListAutoWithdrawRunsRequestSchema, ListAutoWithdrawRunsResponse, ListAutoWithdrawRunsResponseSchema, PreviewAutoWithdrawRunRequest, PreviewAutoWithdrawRunRequestSchema, PreviewAutoWithdrawRunResponse, PreviewAutoWithdrawRunResponseSchema, SetAutoWithdrawRuleEnabledRequest, SetAutoWithdrawRuleEnabledRequestSchema, SetAutoWithdrawRuleEnabledResponse, SetAutoWithdrawRuleEnabledResponseSchema, SetAutoWithdrawRuleRequest, SetAutoWithdrawRuleRequestSchema, SetAutoWithdrawRuleResponse, SetAutoWithdrawRuleResponseSchema, file_chain_withdraw_v1_auto_withdraw };
7
7
  }
8
8
  /**
9
9
  * Describes the file chain/withdraw/v1/auto_withdraw.proto.
@@ -91,7 +91,7 @@ type AutoWithdrawDestination = Message<"chain.withdraw.v1.AutoWithdrawDestinatio
91
91
  * A run pays this asset only when the payable amount reaches this
92
92
  * minimum, in 18-decimal asset units, and the rule's min_usd_value_e18;
93
93
  * otherwise the balance stays on the account for a later run. Must be at
94
- * least the route's withdrawal minimum.
94
+ * least min_floor_e18 when the rule is set.
95
95
  *
96
96
  * @generated from field: polyester.type.v1.U128 min_amount_e18 = 4;
97
97
  */
@@ -104,6 +104,19 @@ type AutoWithdrawDestination = Message<"chain.withdraw.v1.AutoWithdrawDestinatio
104
104
  * @generated from field: polyester.type.v1.U128 max_amount_e18 = 5;
105
105
  */
106
106
  maxAmountE18?: U128 | undefined;
107
+ /**
108
+ * Returned in responses only; ignored in requests. The least amount one
109
+ * payout to this destination can pay now, in 18-decimal asset units: the
110
+ * route's withdrawal minimum, and more than its current network fee. It
111
+ * follows the network fee, so it can change between reads. A run pays at
112
+ * least this floor and min_amount_e18, and a new rule needs a
113
+ * min_amount_e18 of at least the floor. Unset when the route or its network
114
+ * fee is not known now; a new rule for that destination is then refused
115
+ * with FEE_UNAVAILABLE or a route code.
116
+ *
117
+ * @generated from field: polyester.type.v1.U128 min_floor_e18 = 6;
118
+ */
119
+ minFloorE18?: U128 | undefined;
107
120
  };
108
121
  /**
109
122
  * Describes the message chain.withdraw.v1.AutoWithdrawDestination.
@@ -117,7 +130,7 @@ declare const AutoWithdrawDestinationSchema: GenMessage<AutoWithdrawDestination>
117
130
  */
118
131
  type AutoWithdrawPause = Message<"chain.withdraw.v1.AutoWithdrawPause"> & {
119
132
  /**
120
- * Asset whose payout paused the rule.
133
+ * Asset whose payout paused the rule; zero when no payout did.
121
134
  *
122
135
  * @generated from field: uint32 asset_id = 1;
123
136
  */
@@ -127,7 +140,11 @@ type AutoWithdrawPause = Message<"chain.withdraw.v1.AutoWithdrawPause"> & {
127
140
  * destination left the account's external withdraw whitelist,
128
141
  * destination_invalid when it is no longer a valid destination, or
129
142
  * authority_revoked when the person who set the rule may no longer change
130
- * it or withdraw from the account.
143
+ * it or withdraw from the account. On a broker vault the rule pauses with
144
+ * authority_revoked as soon as its author's broker role changes in any
145
+ * way: removed, demoted, or promoted (for example Finance to Owner), and
146
+ * also when the author is removed and added back. An Owner or Finance
147
+ * member resumes it with a fresh step-up.
131
148
  *
132
149
  * @generated from field: string reason = 2;
133
150
  */
@@ -146,9 +163,9 @@ type AutoWithdrawPause = Message<"chain.withdraw.v1.AutoWithdrawPause"> & {
146
163
  declare const AutoWithdrawPauseSchema: GenMessage<AutoWithdrawPause>;
147
164
  /**
148
165
  * AutoWithdrawRule is one version of an account's auto-withdraw rule. Each
149
- * change or disable creates the next version; only the latest version runs,
150
- * and a run in progress keeps the version it started with but pays nothing
151
- * further once that version is no longer the latest.
166
+ * change, pause or resume creates the next version; only the latest version
167
+ * runs, and a run in progress keeps the version it started with but pays
168
+ * nothing further once that version is no longer the latest.
152
169
  *
153
170
  * @generated from message chain.withdraw.v1.AutoWithdrawRule
154
171
  */
@@ -166,7 +183,9 @@ type AutoWithdrawRule = Message<"chain.withdraw.v1.AutoWithdrawRule"> & {
166
183
  */
167
184
  version: number;
168
185
  /**
169
- * Whether the rule runs. A disabled version has no destinations.
186
+ * Whether the rule runs. A paused version (enabled false) keeps its
187
+ * schedule and destinations, so it resumes to the same destinations. The
188
+ * rule runs only while enabled and without a pause.
170
189
  *
171
190
  * @generated from field: bool enabled = 3;
172
191
  */
@@ -178,7 +197,8 @@ type AutoWithdrawRule = Message<"chain.withdraw.v1.AutoWithdrawRule"> & {
178
197
  */
179
198
  schedule?: AutoWithdrawSchedule | undefined;
180
199
  /**
181
- * One destination per paid asset, ordered by asset_id.
200
+ * One destination per paid asset, ordered by asset_id. Empty only on a
201
+ * version that was disabled before pausing kept destinations.
182
202
  *
183
203
  * @generated from field: repeated chain.withdraw.v1.AutoWithdrawDestination destinations = 5;
184
204
  */
@@ -190,7 +210,8 @@ type AutoWithdrawRule = Message<"chain.withdraw.v1.AutoWithdrawRule"> & {
190
210
  */
191
211
  createdAt?: Timestamp | undefined;
192
212
  /**
193
- * Set when the rule paused itself; a new version resumes it.
213
+ * Set when the rule paused itself; resuming it or setting a new rule
214
+ * clears it.
194
215
  *
195
216
  * @generated from field: chain.withdraw.v1.AutoWithdrawPause pause = 7;
196
217
  */
@@ -202,6 +223,12 @@ type AutoWithdrawRule = Message<"chain.withdraw.v1.AutoWithdrawRule"> & {
202
223
  * @generated from field: polyester.type.v1.U128 min_usd_value_e18 = 8;
203
224
  */
204
225
  minUsdValueE18?: U128 | undefined;
226
+ /**
227
+ * Public account ID of the person who created this version.
228
+ *
229
+ * @generated from field: fixed64 created_by_account_id = 9;
230
+ */
231
+ createdByAccountId: bigint;
205
232
  };
206
233
  /**
207
234
  * Describes the message chain.withdraw.v1.AutoWithdrawRule.
@@ -277,12 +304,12 @@ type SetAutoWithdrawRuleResponse = Message<"chain.withdraw.v1.SetAutoWithdrawRul
277
304
  */
278
305
  declare const SetAutoWithdrawRuleResponseSchema: GenMessage<SetAutoWithdrawRuleResponse>;
279
306
  /**
280
- * DisableAutoWithdrawRuleRequest stops the rule of the root account or one
281
- * subaccount.
307
+ * SetAutoWithdrawRuleEnabledRequest pauses or resumes the rule of the root
308
+ * account or one subaccount, keeping its schedule and destinations.
282
309
  *
283
- * @generated from message chain.withdraw.v1.DisableAutoWithdrawRuleRequest
310
+ * @generated from message chain.withdraw.v1.SetAutoWithdrawRuleEnabledRequest
284
311
  */
285
- type DisableAutoWithdrawRuleRequest = Message<"chain.withdraw.v1.DisableAutoWithdrawRuleRequest"> & {
312
+ type SetAutoWithdrawRuleEnabledRequest = Message<"chain.withdraw.v1.SetAutoWithdrawRuleEnabledRequest"> & {
286
313
  /**
287
314
  * Public subaccount ID; omit for the root account.
288
315
  *
@@ -290,35 +317,43 @@ type DisableAutoWithdrawRuleRequest = Message<"chain.withdraw.v1.DisableAutoWith
290
317
  */
291
318
  subaccountId: bigint;
292
319
  /**
293
- * The account's latest rule version.
320
+ * The account's latest rule version. A mismatch is rejected so concurrent
321
+ * changes never overwrite each other.
294
322
  *
295
323
  * @generated from field: uint32 expected_version = 2;
296
324
  */
297
325
  expectedVersion: number;
326
+ /**
327
+ * false pauses the rule; true resumes it.
328
+ *
329
+ * @generated from field: bool enabled = 3;
330
+ */
331
+ enabled: boolean;
298
332
  };
299
333
  /**
300
- * Describes the message chain.withdraw.v1.DisableAutoWithdrawRuleRequest.
301
- * Use `create(DisableAutoWithdrawRuleRequestSchema)` to create a new message.
334
+ * Describes the message chain.withdraw.v1.SetAutoWithdrawRuleEnabledRequest.
335
+ * Use `create(SetAutoWithdrawRuleEnabledRequestSchema)` to create a new message.
302
336
  */
303
- declare const DisableAutoWithdrawRuleRequestSchema: GenMessage<DisableAutoWithdrawRuleRequest>;
337
+ declare const SetAutoWithdrawRuleEnabledRequestSchema: GenMessage<SetAutoWithdrawRuleEnabledRequest>;
304
338
  /**
305
- * DisableAutoWithdrawRuleResponse returns the disabled version.
339
+ * SetAutoWithdrawRuleEnabledResponse returns the rule's latest version.
306
340
  *
307
- * @generated from message chain.withdraw.v1.DisableAutoWithdrawRuleResponse
341
+ * @generated from message chain.withdraw.v1.SetAutoWithdrawRuleEnabledResponse
308
342
  */
309
- type DisableAutoWithdrawRuleResponse = Message<"chain.withdraw.v1.DisableAutoWithdrawRuleResponse"> & {
343
+ type SetAutoWithdrawRuleEnabledResponse = Message<"chain.withdraw.v1.SetAutoWithdrawRuleEnabledResponse"> & {
310
344
  /**
311
- * The created, disabled version.
345
+ * The created version, or the latest version unchanged when the rule was
346
+ * already in the requested state.
312
347
  *
313
348
  * @generated from field: chain.withdraw.v1.AutoWithdrawRule rule = 1;
314
349
  */
315
350
  rule?: AutoWithdrawRule | undefined;
316
351
  };
317
352
  /**
318
- * Describes the message chain.withdraw.v1.DisableAutoWithdrawRuleResponse.
319
- * Use `create(DisableAutoWithdrawRuleResponseSchema)` to create a new message.
353
+ * Describes the message chain.withdraw.v1.SetAutoWithdrawRuleEnabledResponse.
354
+ * Use `create(SetAutoWithdrawRuleEnabledResponseSchema)` to create a new message.
320
355
  */
321
- declare const DisableAutoWithdrawRuleResponseSchema: GenMessage<DisableAutoWithdrawRuleResponse>;
356
+ declare const SetAutoWithdrawRuleEnabledResponseSchema: GenMessage<SetAutoWithdrawRuleEnabledResponse>;
322
357
  /**
323
358
  * GetAutoWithdrawRuleRequest reads the latest rule version.
324
359
  *
@@ -404,9 +439,11 @@ type AutoWithdrawStep = Message<"chain.withdraw.v1.AutoWithdrawStep"> & {
404
439
  * Machine-readable reason for a skipped or failed step, such as
405
440
  * below_minimum, price_unavailable (the rule has a USD minimum and no
406
441
  * current price valued the asset; the funds stay for a later run),
407
- * rule_superseded, destination_not_whitelisted, authority_revoked,
408
- * gateway_capacity_insufficient (the funds stay for a later run),
409
- * withdrawal_released or withdrawal_failed; empty otherwise.
442
+ * rule_superseded, destination_not_whitelisted, destination_cooling_down
443
+ * (a broker vault's destination added to its external withdraw whitelist
444
+ * less than 24 hours ago; the funds stay for a later run),
445
+ * authority_revoked, gateway_capacity_insufficient (the funds stay for a
446
+ * later run), withdrawal_released or withdrawal_failed; empty otherwise.
410
447
  *
411
448
  * @generated from field: string reason = 7;
412
449
  */
@@ -432,6 +469,17 @@ type AutoWithdrawStep = Message<"chain.withdraw.v1.AutoWithdrawStep"> & {
432
469
  * @generated from field: polyester.type.v1.U128 value_usd_e18 = 10;
433
470
  */
434
471
  valueUsdE18?: U128 | undefined;
472
+ /**
473
+ * The network fee charged on the withdrawal, in 18-decimal asset units.
474
+ * Once it completed: taken out of amount_e18, so the destination received
475
+ * amount_e18 minus this fee. Once Zipper rejected it or its execution
476
+ * failed: the fee Zipper kept, which is not refunded. Unset until the step
477
+ * is final, when it was skipped or failed before it reached Zipper, and
478
+ * when the fee was not reported.
479
+ *
480
+ * @generated from field: polyester.type.v1.U128 network_fee_e18 = 11;
481
+ */
482
+ networkFeeE18?: U128 | undefined;
435
483
  };
436
484
  /**
437
485
  * Describes the message chain.withdraw.v1.AutoWithdrawStep.
@@ -557,6 +605,203 @@ type ListAutoWithdrawRunsResponse = Message<"chain.withdraw.v1.ListAutoWithdrawR
557
605
  * Use `create(ListAutoWithdrawRunsResponseSchema)` to create a new message.
558
606
  */
559
607
  declare const ListAutoWithdrawRunsResponseSchema: GenMessage<ListAutoWithdrawRunsResponse>;
608
+ /**
609
+ * PreviewAutoWithdrawRunRequest previews the next run of the rule of the
610
+ * root account or one subaccount.
611
+ *
612
+ * @generated from message chain.withdraw.v1.PreviewAutoWithdrawRunRequest
613
+ */
614
+ type PreviewAutoWithdrawRunRequest = Message<"chain.withdraw.v1.PreviewAutoWithdrawRunRequest"> & {
615
+ /**
616
+ * Public subaccount ID; omit for the root account.
617
+ *
618
+ * @generated from field: fixed64 subaccount_id = 1;
619
+ */
620
+ subaccountId: bigint;
621
+ };
622
+ /**
623
+ * Describes the message chain.withdraw.v1.PreviewAutoWithdrawRunRequest.
624
+ * Use `create(PreviewAutoWithdrawRunRequestSchema)` to create a new message.
625
+ */
626
+ declare const PreviewAutoWithdrawRunRequestSchema: GenMessage<PreviewAutoWithdrawRunRequest>;
627
+ /**
628
+ * AutoWithdrawPreviewAsset is what the next run would do with one asset,
629
+ * sized from the account's balance now.
630
+ *
631
+ * @generated from message chain.withdraw.v1.AutoWithdrawPreviewAsset
632
+ */
633
+ type AutoWithdrawPreviewAsset = Message<"chain.withdraw.v1.AutoWithdrawPreviewAsset"> & {
634
+ /**
635
+ * Ledger asset.
636
+ *
637
+ * @generated from field: uint32 asset_id = 1;
638
+ */
639
+ assetId: number;
640
+ /**
641
+ * External destination chain identifier; zero when the rule has no
642
+ * destination for the asset.
643
+ *
644
+ * @generated from field: uint64 destination_chain_id = 2;
645
+ */
646
+ destinationChainId: bigint;
647
+ /**
648
+ * Canonical destination address; empty when the rule has no destination
649
+ * for the asset.
650
+ *
651
+ * @generated from field: string destination_address = 3;
652
+ */
653
+ destinationAddress: string;
654
+ /**
655
+ * The account's available balance of the asset now, in 18-decimal asset
656
+ * units.
657
+ *
658
+ * @generated from field: polyester.type.v1.U128 available_e18 = 4;
659
+ */
660
+ availableE18?: U128 | undefined;
661
+ /**
662
+ * What the run would pay, in 18-decimal asset units: the available balance
663
+ * up to max_amount_e18, rounded down to whole on-chain units, or zero when
664
+ * it holds. The network fee is taken out of it on the way.
665
+ *
666
+ * @generated from field: polyester.type.v1.U128 payable_e18 = 5;
667
+ */
668
+ payableE18?: U128 | undefined;
669
+ /**
670
+ * What would stay on the account, in 18-decimal asset units:
671
+ * available_e18 minus payable_e18.
672
+ *
673
+ * @generated from field: polyester.type.v1.U128 held_back_e18 = 6;
674
+ */
675
+ heldBackE18?: U128 | undefined;
676
+ /**
677
+ * Why held_back_e18 stays, or why nothing pays: below_minimum (below
678
+ * minimum_e18 or the rule's min_usd_value_e18), price_unavailable (the
679
+ * rule has a USD minimum and no current price values the asset),
680
+ * no_destination (the rule pays no destination for the asset),
681
+ * destination_cooling_down (a broker vault pays a destination only once
682
+ * it has been on the vault's external withdraw whitelist for 24 hours;
683
+ * see payable_from), above_max (the balance above max_amount_e18 stays)
684
+ * or dust (less than one whole on-chain unit stays); empty when the whole
685
+ * balance pays.
686
+ *
687
+ * @generated from field: string hold_reason = 7;
688
+ */
689
+ holdReason: string;
690
+ /**
691
+ * The least one payout of the asset pays, in 18-decimal asset units: the
692
+ * destination's min_amount_e18, or its min_floor_e18 when that is higher
693
+ * and known now. Unset when the rule has no destination for the asset.
694
+ *
695
+ * @generated from field: polyester.type.v1.U128 minimum_e18 = 8;
696
+ */
697
+ minimumE18?: U128 | undefined;
698
+ /**
699
+ * USD value, in 18-decimal USD units, of what the asset pays before its
700
+ * minimums (the available balance up to max_amount_e18, rounded down to
701
+ * whole on-chain units), at the current price as of priced_at. A rule with
702
+ * a USD minimum compares this value with it. Unset when no current price
703
+ * values the asset or the rule has no destination for it.
704
+ *
705
+ * @generated from field: polyester.type.v1.U128 value_usd_e18 = 9;
706
+ */
707
+ valueUsdE18?: U128 | undefined;
708
+ /**
709
+ * When the price behind value_usd_e18 was observed; unset with it.
710
+ *
711
+ * @generated from field: google.protobuf.Timestamp priced_at = 10;
712
+ */
713
+ pricedAt?: Timestamp | undefined;
714
+ /**
715
+ * The network fee a payout to the destination is expected to be charged
716
+ * now, in 18-decimal asset units: the route's latest sampled network fee,
717
+ * the same figure min_floor_e18 stays above. It is taken out of the
718
+ * payout, so the destination receives about payable_e18 minus this fee.
719
+ * Unset when the rule has no destination for the asset or the fee is not
720
+ * known now.
721
+ *
722
+ * @generated from field: polyester.type.v1.U128 network_fee_e18 = 11;
723
+ */
724
+ networkFeeE18?: U128 | undefined;
725
+ /**
726
+ * When network_fee_e18 was sampled; unset with it.
727
+ *
728
+ * @generated from field: google.protobuf.Timestamp network_fee_sampled_at = 12;
729
+ */
730
+ networkFeeSampledAt?: Timestamp | undefined;
731
+ /**
732
+ * Set only on a broker vault while the destination is cooling down: when
733
+ * it can be paid, 24 hours after it was added to the vault's external
734
+ * withdraw whitelist. Unset with hold_reason destination_cooling_down
735
+ * when that time is not known yet.
736
+ *
737
+ * @generated from field: google.protobuf.Timestamp payable_from = 13;
738
+ */
739
+ payableFrom?: Timestamp | undefined;
740
+ };
741
+ /**
742
+ * Describes the message chain.withdraw.v1.AutoWithdrawPreviewAsset.
743
+ * Use `create(AutoWithdrawPreviewAssetSchema)` to create a new message.
744
+ */
745
+ declare const AutoWithdrawPreviewAssetSchema: GenMessage<AutoWithdrawPreviewAsset>;
746
+ /**
747
+ * PreviewAutoWithdrawRunResponse previews the next run.
748
+ *
749
+ * @generated from message chain.withdraw.v1.PreviewAutoWithdrawRunResponse
750
+ */
751
+ type PreviewAutoWithdrawRunResponse = Message<"chain.withdraw.v1.PreviewAutoWithdrawRunResponse"> & {
752
+ /**
753
+ * Whether the next run would pay.
754
+ *
755
+ * @generated from field: chain.withdraw.v1.AutoWithdrawPreviewStatus status = 1;
756
+ */
757
+ status: AutoWithdrawPreviewStatus;
758
+ /**
759
+ * When the next run starts: its UTC slot, or, while a due slot waits for
760
+ * the scheduler, that slot. For an hourly rule, the next hourly check.
761
+ * Unset when the account has no rule or the rule is paused.
762
+ *
763
+ * @generated from field: google.protobuf.Timestamp next_run_at = 2;
764
+ */
765
+ nextRunAt?: Timestamp | undefined;
766
+ /**
767
+ * The latest rule version; zero when the account has no rule.
768
+ *
769
+ * @generated from field: uint32 rule_version = 3;
770
+ */
771
+ ruleVersion: number;
772
+ /**
773
+ * Set when the rule paused itself; a rule paused by a person has none.
774
+ *
775
+ * @generated from field: chain.withdraw.v1.AutoWithdrawPause pause = 4;
776
+ */
777
+ pause?: AutoWithdrawPause | undefined;
778
+ /**
779
+ * The rule's least USD value of one payout, in 18-decimal USD units; zero
780
+ * means no USD minimum. Unset when the account has no rule.
781
+ *
782
+ * @generated from field: polyester.type.v1.U128 min_usd_value_e18 = 5;
783
+ */
784
+ minUsdValueE18?: U128 | undefined;
785
+ /**
786
+ * One entry per destination of the rule, then per other asset with a
787
+ * positive balance, ordered by asset_id. Empty when the account has no
788
+ * rule or the rule is paused.
789
+ *
790
+ * @generated from field: repeated chain.withdraw.v1.AutoWithdrawPreviewAsset assets = 6;
791
+ */
792
+ assets: AutoWithdrawPreviewAsset[];
793
+ /**
794
+ * When the balances, prices and fees the preview used were read.
795
+ *
796
+ * @generated from field: google.protobuf.Timestamp computed_at = 7;
797
+ */
798
+ computedAt?: Timestamp | undefined;
799
+ };
800
+ /**
801
+ * Describes the message chain.withdraw.v1.PreviewAutoWithdrawRunResponse.
802
+ * Use `create(PreviewAutoWithdrawRunResponseSchema)` to create a new message.
803
+ */
804
+ declare const PreviewAutoWithdrawRunResponseSchema: GenMessage<PreviewAutoWithdrawRunResponse>;
560
805
  /**
561
806
  * AutoWithdrawCadence is how often an auto-withdraw rule runs. Every slot
562
807
  * is a UTC time, with no daylight-saving shift.
@@ -702,13 +947,15 @@ declare enum AutoWithdrawRunState {
702
947
  */
703
948
  RUN_COMPLETED = 3,
704
949
  /**
705
- * Some payouts failed; their funds are back on the account.
950
+ * Some payouts failed. Each failed step says where its funds are
951
+ * (STEP_FAILED).
706
952
  *
707
953
  * @generated from enum value: RUN_PARTIALLY_FAILED = 4;
708
954
  */
709
955
  RUN_PARTIALLY_FAILED = 4,
710
956
  /**
711
- * Every attempted payout failed; the funds are back on the account.
957
+ * Every attempted payout failed. Each failed step says where its funds are
958
+ * (STEP_FAILED).
712
959
  *
713
960
  * @generated from enum value: RUN_FAILED = 5;
714
961
  */
@@ -762,7 +1009,16 @@ declare enum AutoWithdrawStepState {
762
1009
  */
763
1010
  STEP_COMPLETED = 4,
764
1011
  /**
765
- * The withdrawal failed; its funds are back on the account.
1012
+ * The withdrawal failed. Where its funds are depends on when it failed,
1013
+ * which its withdrawal flow shows:
1014
+ * - before it left the account: they stay on the account;
1015
+ * - rejected by Zipper (flow REFUNDED, reason ZIPPER_VALIDATION_REJECTED or
1016
+ * ZIPPER_EXECUTION_REJECTED): amount_e18 less network_fee_e18 is
1017
+ * refunded, as zTokens, to the account's smart account wallet, not to
1018
+ * the account's balance, and the network fee is not refunded;
1019
+ * - its execution failed after its destination transaction was sent (flow
1020
+ * FAILED, reason ZIPPER_WITHDRAW_EXECUTION_FAILED): Zipper reviews it and
1021
+ * settles it outside Polyester Chain; nothing is returned to the account.
766
1022
  *
767
1023
  * @generated from enum value: STEP_FAILED = 5;
768
1024
  */
@@ -778,15 +1034,69 @@ declare enum AutoWithdrawStepState {
778
1034
  * Describes the enum chain.withdraw.v1.AutoWithdrawStepState.
779
1035
  */
780
1036
  declare const AutoWithdrawStepStateSchema: GenEnum<AutoWithdrawStepState>;
1037
+ /**
1038
+ * AutoWithdrawPreviewStatus is whether the next run would pay, judged from
1039
+ * the account's balances now.
1040
+ *
1041
+ * @generated from enum chain.withdraw.v1.AutoWithdrawPreviewStatus
1042
+ */
1043
+ declare enum AutoWithdrawPreviewStatus {
1044
+ /**
1045
+ * Never returned.
1046
+ *
1047
+ * @generated from enum value: PREVIEW_STATUS_UNSPECIFIED = 0;
1048
+ */
1049
+ PREVIEW_STATUS_UNSPECIFIED = 0,
1050
+ /**
1051
+ * At least one asset would pay.
1052
+ *
1053
+ * @generated from enum value: WILL_PAY = 1;
1054
+ */
1055
+ WILL_PAY = 1,
1056
+ /**
1057
+ * Nothing would pay: every asset with a destination is below its minimum
1058
+ * or the rule's USD minimum, has no current price for that minimum, or
1059
+ * pays a broker vault's destination that is still cooling down. The
1060
+ * balance stays on the account for a later run.
1061
+ *
1062
+ * @generated from enum value: ROLLS_OVER = 2;
1063
+ */
1064
+ ROLLS_OVER = 2,
1065
+ /**
1066
+ * Nothing would pay, and every positive balance is in an asset the rule
1067
+ * has no destination for.
1068
+ *
1069
+ * @generated from enum value: NO_DESTINATION = 3;
1070
+ */
1071
+ NO_DESTINATION = 3,
1072
+ /**
1073
+ * The rule is paused, by a person or by itself (see pause); no run starts
1074
+ * until it is resumed.
1075
+ *
1076
+ * @generated from enum value: PAUSED = 4;
1077
+ */
1078
+ PAUSED = 4,
1079
+ /**
1080
+ * The account has no rule.
1081
+ *
1082
+ * @generated from enum value: NO_RULE = 5;
1083
+ */
1084
+ NO_RULE = 5
1085
+ }
1086
+ /**
1087
+ * Describes the enum chain.withdraw.v1.AutoWithdrawPreviewStatus.
1088
+ */
1089
+ declare const AutoWithdrawPreviewStatusSchema: GenEnum<AutoWithdrawPreviewStatus>;
781
1090
  /**
782
1091
  * AutoWithdrawService manages scheduled in-kind auto-withdraw rules for a
783
1092
  * root account or subaccount. A rule pays each asset's balance out on an
784
1093
  * hourly, daily, weekly, biweekly or monthly UTC slot, through the normal
785
1094
  * withdraw path, only to destinations on the account's external withdraw
786
- * whitelist. Changing a
787
- * rule requires a person with withdraw rights and a fresh single-use MFA
788
- * step-up; API keys can read rules and runs but never change them. An API
789
- * key reads only when its policy grants READ_AUTO_WITHDRAW (or
1095
+ * whitelist. Changing or
1096
+ * resuming a rule requires a person with withdraw rights and a fresh
1097
+ * single-use MFA step-up, and pausing it requires such a person without a
1098
+ * step-up; API keys can read rules, runs and previews but never change
1099
+ * them. An API key reads only when its policy grants READ_AUTO_WITHDRAW (or
790
1100
  * MANAGE_AUTO_WITHDRAW), and only its own account: a root-account key reads
791
1101
  * the root account, and a subaccount key reads its subaccount.
792
1102
  *
@@ -799,6 +1109,14 @@ declare const AutoWithdrawService: GenService<{
799
1109
  * a fresh single-use step-up; every destination must be on the account's
800
1110
  * external withdraw whitelist.
801
1111
  *
1112
+ * A refused destination answers a typed code whose ErrorDetail.field_path
1113
+ * names the field, such as destinations[0].min_amount_e18:
1114
+ * EXTERNAL_DESTINATION_NOT_WHITELISTED, DESTINATION_INVALID (not a valid
1115
+ * address on its chain), ROUTE_UNSUPPORTED (no enabled withdrawal route
1116
+ * pays the asset to that chain) or MIN_AMOUNT_BELOW_FLOOR (its
1117
+ * ErrorDetail.min_floor_e18 is the floor). A stale expected_version
1118
+ * answers VERSION_CONFLICT.
1119
+ *
802
1120
  * @generated from rpc chain.withdraw.v1.AutoWithdrawService.SetAutoWithdrawRule
803
1121
  */
804
1122
  setAutoWithdrawRule: {
@@ -807,15 +1125,22 @@ declare const AutoWithdrawService: GenService<{
807
1125
  output: typeof SetAutoWithdrawRuleResponseSchema;
808
1126
  };
809
1127
  /**
810
- * Disable the account's rule. Requires a session login with withdraw
811
- * rights on the account and a fresh single-use step-up.
1128
+ * Pause or resume the account's rule, keeping its schedule and
1129
+ * destinations. Requires a session login with withdraw rights on the
1130
+ * account. Pausing needs no step-up. Resuming needs a fresh single-use
1131
+ * step-up, checks again that every destination is still a valid
1132
+ * destination on the account's external withdraw whitelist, and clears a
1133
+ * pause the rule set itself; a refused destination answers the typed codes
1134
+ * of SetAutoWithdrawRule, and the rule stays paused. A rule already in the
1135
+ * requested state is returned unchanged. A stale expected_version answers
1136
+ * VERSION_CONFLICT.
812
1137
  *
813
- * @generated from rpc chain.withdraw.v1.AutoWithdrawService.DisableAutoWithdrawRule
1138
+ * @generated from rpc chain.withdraw.v1.AutoWithdrawService.SetAutoWithdrawRuleEnabled
814
1139
  */
815
- disableAutoWithdrawRule: {
1140
+ setAutoWithdrawRuleEnabled: {
816
1141
  methodKind: "unary";
817
- input: typeof DisableAutoWithdrawRuleRequestSchema;
818
- output: typeof DisableAutoWithdrawRuleResponseSchema;
1142
+ input: typeof SetAutoWithdrawRuleEnabledRequestSchema;
1143
+ output: typeof SetAutoWithdrawRuleEnabledResponseSchema;
819
1144
  };
820
1145
  /**
821
1146
  * Read the account's latest rule version.
@@ -849,7 +1174,31 @@ declare const AutoWithdrawService: GenService<{
849
1174
  input: typeof ListAutoWithdrawRunsRequestSchema;
850
1175
  output: typeof ListAutoWithdrawRunsResponseSchema;
851
1176
  };
1177
+ /**
1178
+ * Preview the account's next auto-withdraw run from its balances now:
1179
+ * when it starts, whether it would pay, and per asset what it would pay,
1180
+ * what would stay and why, its USD value and the expected network fee. It
1181
+ * plans exactly as the run does; balances, prices and fees can change
1182
+ * before the run starts. A price that is not current leaves the value
1183
+ * unset instead of failing the read. When prices cannot be read at all,
1184
+ * the values stay unset too, unless the rule has a USD minimum: prices
1185
+ * then decide what pays, so the read answers UNAVAILABLE and can be
1186
+ * retried.
1187
+ *
1188
+ * An API key needs READ_AUTO_WITHDRAW in its policy and reads only its own
1189
+ * account. Both refusals answer PERMISSION_DENIED: a key whose policy lacks
1190
+ * the action gets "api key policy does not allow READ_AUTO_WITHDRAW", and a
1191
+ * key that names an account other than its own, such as a root-account key
1192
+ * naming a subaccount, gets "api key target scope mismatch".
1193
+ *
1194
+ * @generated from rpc chain.withdraw.v1.AutoWithdrawService.PreviewAutoWithdrawRun
1195
+ */
1196
+ previewAutoWithdrawRun: {
1197
+ methodKind: "unary";
1198
+ input: typeof PreviewAutoWithdrawRunRequestSchema;
1199
+ output: typeof PreviewAutoWithdrawRunResponseSchema;
1200
+ };
852
1201
  }>;
853
1202
  //#endregion
854
- export { AutoWithdrawCadence, AutoWithdrawCadenceSchema, AutoWithdrawDestination, AutoWithdrawDestinationSchema, AutoWithdrawPause, AutoWithdrawPauseSchema, AutoWithdrawRule, AutoWithdrawRuleSchema, AutoWithdrawRun, AutoWithdrawRunSchema, AutoWithdrawRunState, AutoWithdrawRunStateSchema, AutoWithdrawSchedule, AutoWithdrawScheduleSchema, AutoWithdrawService, AutoWithdrawStep, AutoWithdrawStepSchema, AutoWithdrawStepState, AutoWithdrawStepStateSchema, AutoWithdrawWeekday, AutoWithdrawWeekdaySchema, DisableAutoWithdrawRuleRequest, DisableAutoWithdrawRuleRequestSchema, DisableAutoWithdrawRuleResponse, DisableAutoWithdrawRuleResponseSchema, GetAutoWithdrawRuleRequest, GetAutoWithdrawRuleRequestSchema, GetAutoWithdrawRuleResponse, GetAutoWithdrawRuleResponseSchema, ListAutoWithdrawRunsRequest, ListAutoWithdrawRunsRequestSchema, ListAutoWithdrawRunsResponse, ListAutoWithdrawRunsResponseSchema, SetAutoWithdrawRuleRequest, SetAutoWithdrawRuleRequestSchema, SetAutoWithdrawRuleResponse, SetAutoWithdrawRuleResponseSchema, auto_withdraw_pb_d_exports, file_chain_withdraw_v1_auto_withdraw };
1203
+ export { AutoWithdrawCadence, AutoWithdrawCadenceSchema, AutoWithdrawDestination, AutoWithdrawDestinationSchema, AutoWithdrawPause, AutoWithdrawPauseSchema, AutoWithdrawPreviewAsset, AutoWithdrawPreviewAssetSchema, AutoWithdrawPreviewStatus, AutoWithdrawPreviewStatusSchema, AutoWithdrawRule, AutoWithdrawRuleSchema, AutoWithdrawRun, AutoWithdrawRunSchema, AutoWithdrawRunState, AutoWithdrawRunStateSchema, AutoWithdrawSchedule, AutoWithdrawScheduleSchema, AutoWithdrawService, AutoWithdrawStep, AutoWithdrawStepSchema, AutoWithdrawStepState, AutoWithdrawStepStateSchema, AutoWithdrawWeekday, AutoWithdrawWeekdaySchema, GetAutoWithdrawRuleRequest, GetAutoWithdrawRuleRequestSchema, GetAutoWithdrawRuleResponse, GetAutoWithdrawRuleResponseSchema, ListAutoWithdrawRunsRequest, ListAutoWithdrawRunsRequestSchema, ListAutoWithdrawRunsResponse, ListAutoWithdrawRunsResponseSchema, PreviewAutoWithdrawRunRequest, PreviewAutoWithdrawRunRequestSchema, PreviewAutoWithdrawRunResponse, PreviewAutoWithdrawRunResponseSchema, SetAutoWithdrawRuleEnabledRequest, SetAutoWithdrawRuleEnabledRequestSchema, SetAutoWithdrawRuleEnabledResponse, SetAutoWithdrawRuleEnabledResponseSchema, SetAutoWithdrawRuleRequest, SetAutoWithdrawRuleRequestSchema, SetAutoWithdrawRuleResponse, SetAutoWithdrawRuleResponseSchema, auto_withdraw_pb_d_exports, file_chain_withdraw_v1_auto_withdraw };
855
1204
  //# sourceMappingURL=auto_withdraw_pb.d.ts.map
@@ -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;;;;;;cAOJ,+BAA+B,WAAW;;;;;;KAQ3C,oBAAoB;;;;;;EAM9B;;;;;;;;;;EAWA;;;;;;EAOA,WAAW;;;;;;cAOA,yBAAyB,WAAW;;;;;;;;;KAWr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