@polyester/sdk 0.36.0-devnet-20261113022813 → 0.36.0-devnet-20261114152753

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 (237) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/dist/browser-core.js +1 -1
  3. package/dist/catalogs/index.d.ts +2 -2
  4. package/dist/catalogs/snapshot-validation.js +3 -1
  5. package/dist/catalogs/snapshot-validation.js.map +1 -1
  6. package/dist/catalogs/zipper-catalog.d.ts +2 -0
  7. package/dist/catalogs/zipper-catalog.d.ts.map +1 -1
  8. package/dist/catalogs/zipper-catalog.js.map +1 -1
  9. package/dist/gen/ai/v1/assistant_pb.d.ts +1 -1
  10. package/dist/gen/ai/v1/assistant_pb.js +1 -1
  11. package/dist/gen/alerts/v1/price_alerts_pb.d.ts +1 -1
  12. package/dist/gen/auth/v1/address_book_pb.d.ts +1 -1
  13. package/dist/gen/auth/v1/api_keys_pb.d.ts +6 -6
  14. package/dist/gen/auth/v1/api_keys_pb.js +5 -5
  15. package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
  16. package/dist/gen/auth/v1/auth_pb.d.ts +1 -1
  17. package/dist/gen/auth/v1/mfa_pb.d.ts +1 -1
  18. package/dist/gen/auth/v1/policies_pb.d.ts +10 -2
  19. package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
  20. package/dist/gen/auth/v1/policies_pb.js +9 -1
  21. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  22. package/dist/gen/auth/v1/profile_pb.d.ts +1 -1
  23. package/dist/gen/auth/v1/resolve_pb.d.ts +1 -1
  24. package/dist/gen/auth/v1/social_verification_pb.d.ts +1 -1
  25. package/dist/gen/auth/v1/subaccounts_pb.d.ts +8 -2
  26. package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
  27. package/dist/gen/auth/v1/subaccounts_pb.js +8 -2
  28. package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
  29. package/dist/gen/chain/analytics/v1/analytics_read_pb.d.ts +1 -1
  30. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +1 -1
  31. package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +1 -1
  32. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +1 -1
  33. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +1 -1
  34. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +1 -1
  35. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +1 -1
  36. package/dist/gen/chain/zipper/v1/reason_pb.d.ts +1 -1
  37. package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +48 -3
  38. package/dist/gen/chain/zipper/v1/zipper_pb.d.ts.map +1 -1
  39. package/dist/gen/chain/zipper/v1/zipper_pb.js +36 -2
  40. package/dist/gen/chain/zipper/v1/zipper_pb.js.map +1 -1
  41. package/dist/gen/changelog/v1/changelog_pb.d.ts +7 -4
  42. package/dist/gen/changelog/v1/changelog_pb.d.ts.map +1 -1
  43. package/dist/gen/changelog/v1/changelog_pb.js +2 -1
  44. package/dist/gen/changelog/v1/changelog_pb.js.map +1 -1
  45. package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +1 -1
  46. package/dist/gen/claims/v1/claims_pb.d.ts +1 -1
  47. package/dist/gen/fees/v1/fees_pb.d.ts +1 -1
  48. package/dist/gen/index.d.ts +2 -1
  49. package/dist/gen/index.js +22 -21
  50. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +126 -3
  51. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts.map +1 -1
  52. package/dist/gen/ledger/read/v1/ledger_read_pb.js +17 -3
  53. package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
  54. package/dist/gen/marketdata/v1/asset_info_pb.d.ts +178 -0
  55. package/dist/gen/marketdata/v1/asset_info_pb.d.ts.map +1 -0
  56. package/dist/gen/marketdata/v1/asset_info_pb.js +45 -0
  57. package/dist/gen/marketdata/v1/asset_info_pb.js.map +1 -0
  58. package/dist/gen/marketdata/v1/heatmap_pb.d.ts +1 -1
  59. package/dist/gen/marketdata/v1/marketdata_pb.d.ts +13 -1
  60. package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
  61. package/dist/gen/marketdata/v1/marketdata_pb.js +6 -1
  62. package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
  63. package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +1 -1
  64. package/dist/gen/notifications/v1/notifications_pb.d.ts +1 -1
  65. package/dist/gen/orderbook/v1/orderbook_pb.d.ts +1 -1
  66. package/dist/gen/orders/v1/orders_pb.d.ts +1 -1
  67. package/dist/gen/orders/v1/orders_read_pb.d.ts +1 -1
  68. package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +1 -1
  69. package/dist/gen/polyester/type/v1/u128_pb.d.ts +1 -1
  70. package/dist/gen/privatews/v1/private_ws_pb.d.ts +1 -1
  71. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +1 -1
  72. package/dist/gen/rewards/v1/rewards_pb.d.ts +1 -1
  73. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +13 -1
  74. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
  75. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +12 -0
  76. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
  77. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +14 -10
  78. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  79. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +10 -7
  80. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  81. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +3 -3
  82. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -1
  83. package/dist/gen/swap/v1/swap_pb.d.ts +1 -1
  84. package/dist/gen/system/v1/system_pb.d.ts +408 -3
  85. package/dist/gen/system/v1/system_pb.d.ts.map +1 -1
  86. package/dist/gen/system/v1/system_pb.js +221 -3
  87. package/dist/gen/system/v1/system_pb.js.map +1 -1
  88. package/dist/gen/tradews/v1/trade_ws_pb.d.ts +1 -1
  89. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +1 -1
  90. package/dist/gen/triggers/v1/triggers_pb.d.ts +7 -5
  91. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  92. package/dist/gen/triggers/v1/triggers_pb.js +6 -4
  93. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  94. package/dist/gen/vip/v1/vip_pb.d.ts +1 -1
  95. package/dist/index.d.ts +7 -4
  96. package/dist/index.js +1 -1
  97. package/dist/realtime/snapshot-then-stream.js +1 -1
  98. package/dist/server-core.js +3 -3
  99. package/dist/services/accounts/accounts.js +1 -1
  100. package/dist/services/accounts/accounts.schemas.js +1 -1
  101. package/dist/services/address-book/address-book.js +1 -1
  102. package/dist/services/api-keys/api-keys.codecs.d.ts +2 -2
  103. package/dist/services/api-keys/api-keys.codecs.js +2 -2
  104. package/dist/services/api-keys/api-keys.codecs.js.map +1 -1
  105. package/dist/services/api-keys/api-keys.js +1 -1
  106. package/dist/services/api-keys/api-keys.schemas.js +1 -1
  107. package/dist/services/assistant/assistant-events.schemas.d.ts +96 -67
  108. package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -1
  109. package/dist/services/assistant/assistant.js +1 -1
  110. package/dist/services/assistant/assistant.schemas.d.ts +1 -1
  111. package/dist/services/assistant/assistant.schemas.js +1 -1
  112. package/dist/services/auth/account-signer-auth.js +2 -2
  113. package/dist/services/auth/auth.js +1 -1
  114. package/dist/services/auth/profile/profile.js +2 -2
  115. package/dist/services/auto-withdraw/auto-withdraw.js +1 -1
  116. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +6 -6
  117. package/dist/services/auto-withdraw/auto-withdraw.schemas.js +1 -1
  118. package/dist/services/balances/balances.d.ts +12 -1
  119. package/dist/services/balances/balances.d.ts.map +1 -1
  120. package/dist/services/balances/balances.js +38 -2
  121. package/dist/services/balances/balances.js.map +1 -1
  122. package/dist/services/balances/balances.schemas.d.ts +55 -1
  123. package/dist/services/balances/balances.schemas.d.ts.map +1 -1
  124. package/dist/services/balances/balances.schemas.js +22 -1
  125. package/dist/services/balances/balances.schemas.js.map +1 -1
  126. package/dist/services/balances/balances.types.d.ts +2 -2
  127. package/dist/services/candles/candles.js +2 -2
  128. package/dist/services/chain-analytics/chain-analytics.js +1 -1
  129. package/dist/services/changelog/changelog.js +1 -1
  130. package/dist/services/checkpoints/checkpoints.js +1 -1
  131. package/dist/services/checkpoints/checkpoints.schemas.d.ts +3 -3
  132. package/dist/services/claims/claims.js +1 -1
  133. package/dist/services/claims/claims.schemas.js +1 -1
  134. package/dist/services/deposit/deposit.js +1 -1
  135. package/dist/services/fees/fees.js +1 -1
  136. package/dist/services/guard-signer/guard-signer.js +1 -1
  137. package/dist/services/guard-signer/guard-signer.schemas.js +1 -1
  138. package/dist/services/heatmap/heatmap.js +2 -2
  139. package/dist/services/internal-transfers/internal-transfers.js +1 -1
  140. package/dist/services/lifecycle/lifecycle.js +3 -3
  141. package/dist/services/lifecycle/lifecycle.schemas.d.ts +53 -53
  142. package/dist/services/lifecycle/lifecycle.schemas.js +2 -2
  143. package/dist/services/market-data/market-data.d.ts +7 -1
  144. package/dist/services/market-data/market-data.d.ts.map +1 -1
  145. package/dist/services/market-data/market-data.js +14 -3
  146. package/dist/services/market-data/market-data.js.map +1 -1
  147. package/dist/services/market-data/market-data.schemas.d.ts +108 -1
  148. package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
  149. package/dist/services/market-data/market-data.schemas.js +42 -2
  150. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  151. package/dist/services/market-data/market-data.types.d.ts +2 -2
  152. package/dist/services/market-overview/market-overview.js +2 -2
  153. package/dist/services/market-overview/market-overview.schemas.js +1 -1
  154. package/dist/services/notifications/notifications.js +1 -1
  155. package/dist/services/notifications/notifications.schemas.d.ts +1 -1
  156. package/dist/services/orderbook/orderbook.js +1 -1
  157. package/dist/services/orders/order-errors.schemas.d.ts +2 -2
  158. package/dist/services/orders/order-errors.schemas.js +1 -1
  159. package/dist/services/orders/orders-batch.schemas.d.ts +40 -40
  160. package/dist/services/orders/orders-batch.schemas.js +2 -2
  161. package/dist/services/orders/orders-input.schemas.d.ts +6 -6
  162. package/dist/services/orders/orders-input.schemas.js +2 -2
  163. package/dist/services/orders/orders-modify.schemas.js +2 -2
  164. package/dist/services/orders/orders-output.schemas.d.ts +11 -11
  165. package/dist/services/orders/orders-output.schemas.js +1 -1
  166. package/dist/services/orders/orders-risk.schemas.js +3 -3
  167. package/dist/services/orders/orders.js +2 -2
  168. package/dist/services/policies/api-key-policies/api-key-policies.js +1 -1
  169. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
  170. package/dist/services/policies/shared.codecs.js +7 -4
  171. package/dist/services/policies/shared.codecs.js.map +1 -1
  172. package/dist/services/policies/shared.d.ts +1 -1
  173. package/dist/services/policies/subaccount-policies/subaccount-policies.js +2 -2
  174. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
  175. package/dist/services/price-alerts/price-alerts.js +1 -1
  176. package/dist/services/rate-limits/rate-limits.js +1 -1
  177. package/dist/services/rewards/rewards.js +1 -1
  178. package/dist/services/social-verification/social-verification.js +1 -1
  179. package/dist/services/social-verification/social-verification.schemas.js +1 -1
  180. package/dist/services/subaccounts/subaccounts.codecs.js +2 -1
  181. package/dist/services/subaccounts/subaccounts.codecs.js.map +1 -1
  182. package/dist/services/subaccounts/subaccounts.js +3 -3
  183. package/dist/services/subaccounts/subaccounts.schemas.d.ts +10 -10
  184. package/dist/services/system/system.codecs.d.ts +20 -0
  185. package/dist/services/system/system.codecs.d.ts.map +1 -0
  186. package/dist/services/system/system.codecs.js +57 -0
  187. package/dist/services/system/system.codecs.js.map +1 -0
  188. package/dist/services/system/system.d.ts +7 -0
  189. package/dist/services/system/system.d.ts.map +1 -1
  190. package/dist/services/system/system.js +14 -1
  191. package/dist/services/system/system.js.map +1 -1
  192. package/dist/services/system/system.schemas.d.ts +234 -0
  193. package/dist/services/system/system.schemas.d.ts.map +1 -0
  194. package/dist/services/system/system.schemas.js +78 -0
  195. package/dist/services/system/system.schemas.js.map +1 -0
  196. package/dist/services/system/system.types.d.ts +4 -0
  197. package/dist/services/trades/trades.js +2 -2
  198. package/dist/services/trades/trades.schemas.d.ts +2 -2
  199. package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
  200. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +1 -1
  201. package/dist/services/trading-withdraws/wallet-message.js +1 -1
  202. package/dist/services/transfers/transfers.js +2 -2
  203. package/dist/services/triggers/trigger-child-order.schemas.js +3 -3
  204. package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
  205. package/dist/services/triggers/trigger-input.schemas.js +2 -2
  206. package/dist/services/triggers/triggers-output.schemas.d.ts +47 -47
  207. package/dist/services/triggers/triggers.js +2 -2
  208. package/dist/services/vip/vip.js +1 -1
  209. package/dist/services/vip/vip.schemas.d.ts +3 -3
  210. package/dist/services/vip/vip.schemas.js +1 -1
  211. package/dist/services/zipper/zipper.js +1 -1
  212. package/dist/services/zipper/zipper.schemas.d.ts +2 -2
  213. package/dist/services/zipper/zipper.schemas.d.ts.map +1 -1
  214. package/dist/services/zipper/zipper.schemas.js +10 -3
  215. package/dist/services/zipper/zipper.schemas.js.map +1 -1
  216. package/dist/services/zipper/zipper.types.d.ts +2 -2
  217. package/dist/shared/catalog-config.d.ts +13 -1
  218. package/dist/shared/catalog-config.d.ts.map +1 -1
  219. package/dist/shared/catalog-config.js +6 -1
  220. package/dist/shared/catalog-config.js.map +1 -1
  221. package/dist/shared/error-details/alerts.js +1 -1
  222. package/dist/shared/error-details/assistant.js +1 -1
  223. package/dist/shared/error-details/auth.js +1 -1
  224. package/dist/shared/error-details/claims.js +1 -1
  225. package/dist/shared/error-details/internal-transfer.js +1 -1
  226. package/dist/shared/error-details/ledger.js +1 -1
  227. package/dist/shared/error-details/market-overview.js +1 -1
  228. package/dist/shared/error-details/notifications.js +1 -1
  229. package/dist/shared/error-details/orders.js +1 -1
  230. package/dist/shared/error-details/profile.js +1 -1
  231. package/dist/shared/error-details/rate-limit.js +1 -1
  232. package/dist/shared/error-details/withdraw.js +1 -1
  233. package/dist/shared/rate-limit.schemas.d.ts +1 -1
  234. package/dist/shared/rate-limit.schemas.js +1 -1
  235. package/dist/utils/cookies.js +1 -1
  236. package/dist/wired-services.js +17 -17
  237. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @polyester/sdk
2
2
 
3
- ## 0.36.0-devnet-20261113022813
3
+ ## 0.36.0-devnet-20261114152753
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -28,6 +28,8 @@
28
28
 
29
29
  - `client.assistant.getTelegramApprovalLimits` and `setTelegramApprovalLimits` read and replace the per-approval and rolling 24-hour US dollar limits on what can be approved from Telegram. Available on devnet only. ([#251](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/251))
30
30
 
31
+ - `client.balances.exportStatement` returns one page of the account statement for a period as CSV: every balance movement with its fee and the balance after it. `exportStatementCsv` follows the pages and returns the whole statement. ([#256](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/256))
32
+
31
33
  - Changelog entries can carry the `assistant` surface, and `changelog.listChanges` can filter by it. ([#251](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/251))
32
34
 
33
35
  - `client.changelog.listDeploymentGroups` and `getDeploymentGroup` read the deployments that brought releases to the environment, with their release posts, changes that need attention and highlights. ([#255](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/255))
@@ -36,6 +38,8 @@
36
38
 
37
39
  - Docs: the `trading_withdraw_request_fee` and `withdraw_failed` transfer types are the whole debit of a rejected or failed withdrawal, not a fee. ([#255](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/255))
38
40
 
41
+ - `client.marketData.listAssetInfo` reads team-maintained asset information: description, official links and launch date and price. ([#256](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/256))
42
+
39
43
  - `client.notifications` decodes `broker_allowlist_change` notices about QuickSwap broker vault payout address changes. These previously decoded as `"unspecified"`. Available on devnet only. ([#255](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/255))
40
44
 
41
45
  - `client.notifications` lists, reads, counts and marks the caller's notifications with a session; API keys are refused. Available on devnet only. ([#251](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/251))
@@ -54,10 +58,14 @@
54
58
 
55
59
  - `PolicyAction` adds `read-price-alerts` and `manage-price-alerts`, which API keys now need for `priceAlerts.list` and for `create`, `update` and `cancel`. Both are main-account permissions, so sub-account policies reject them, and like price alerts they are available on devnet only. ([#251](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/251))
56
60
 
61
+ - `PolicyAction` adds `read-statements` and sub-account permissions add `read_statements`, which API keys and members need to export account statements. ([#256](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/256))
62
+
57
63
  - Spot config pairs and the catalog add an optional `priceBand` (`lowerBps`, `upperBps`, `referenceWindowMs`), absent when the pair has no band, and orders report the cancel reason `price_band` when the band stopped a market order. Older snapshots without it still validate. ([#251](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/251))
58
64
 
59
65
  - Sub-account activity events add the `requested` and `applied` actions: a requested change records a later `applied` or `failed` event. ([#251](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/251))
60
66
 
67
+ - `client.system.listStatusEvents` lists scheduled maintenance and incidents, with their affected services, markets and assets and their progress notes. ([#256](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/256))
68
+
61
69
  - Order error code `TRIGGER_ACTIVATION_PRICE_NOT_MODIFIABLE` rejects a trigger patch that sets a new activation price after a trailing stop started tracking. ([#255](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/255))
62
70
 
63
71
  - `triggers.batchCancel({ triggerIds })` cancels 1 to 50 triggers in one request and answers each, in order, as `accepted` or `rejected` with a `code`. A `requestId` is generated when omitted; retry a timed-out batch with the same one. ([#251](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/251))
@@ -68,8 +76,12 @@
68
76
 
69
77
  - `triggers.createOco` creates an OCO, a take-profit and a stop-loss that share one reserved quantity the account already holds and cancel each other, and returns its `orderListId` with both legs' trigger IDs. `triggers.cancelOco({ orderListId })` cancels both legs. ([#251](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/251))
70
78
 
79
+ - `@polyester/sdk/unstable/gen` adds `assetInfoPb` (asset information). ([#256](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/256))
80
+
71
81
  - `@polyester/sdk/unstable/gen` adds `notificationsPb` (notifications, devnet only). `quickswapBrokerPb` adds the vault ledger and vault allowlist methods, and `quickswapPb` adds execution slices to execution progress. ([#251](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/251))
72
82
 
83
+ - Zipper chain variants carry `depositStatus` and `withdrawalStatus` (`normal` or `suspended`); treat `"unspecified"` or an absent value as not available. Older snapshots without them still validate. ([#256](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/256))
84
+
73
85
  ## 0.35.0
74
86
 
75
87
  ### Minor Changes
@@ -1,8 +1,8 @@
1
+ import { AuthSessionStore } from "./services/auth/session.js";
1
2
  import { AuthenticationError } from "./shared/errors.js";
2
3
  import { loadErrorDetailDecoders } from "./shared/error-detail.js";
3
4
  import { toPolyesterError } from "./shared/connect-error-mapping.js";
4
5
  import { PolyesterCore, parsePolyesterClientConfig, pickPolyesterCatalogConfig } from "./core-client.js";
5
- import { AuthSessionStore } from "./services/auth/session.js";
6
6
  import { createMemoryAuthTokenStorage } from "./services/auth/token-storage.js";
7
7
  import { AccountSignerAuthService } from "./services/auth/account-signer-auth.js";
8
8
  //#region src/browser-core.ts
@@ -1,4 +1,4 @@
1
- import { AssetConfig, DepositWithdrawConfig, PAIR_STATUSES, PairConfig, PairMarketDataConfig, PairStatus, SpotConfig, ZipperAssetChainVariant, ZipperAssetConfig, ZipperChainConfig, ZipperChainContractConfig, ZipperMemoRequirement } from "../shared/catalog-config.js";
1
+ import { AssetConfig, DepositWithdrawConfig, PAIR_STATUSES, PairConfig, PairMarketDataConfig, PairStatus, SpotConfig, ZipperAssetChainVariant, ZipperAssetConfig, ZipperChainConfig, ZipperChainContractConfig, ZipperMemoRequirement, ZipperRouteStatus } from "../shared/catalog-config.js";
2
2
  import { EnrichedPairConfig, MarketCatalogData, MarketCatalogSeed } from "./market-data-catalog.js";
3
3
  import { ZipperCatalogData, ZipperCatalogSeed, ZipperContractName, ZipperEnrichedAssetChain, ZipperEnrichedAssetConfig } from "./zipper-catalog.js";
4
4
  import { AssetCatalogKey, CatalogConversionError, CatalogLookupDomain, CatalogLookupError, CatalogNotReadyError, CatalogReader, CatalogRefreshSource, CatalogSnapshot, CatalogSnapshotCell, CatalogSnapshotSource, CatalogState, CatalogStateSource, CatalogValidationError, CatalogValidationFailedError, CatalogValidationResult, ChainCatalogKey, ClientCatalog, CreatePolyesterCatalogOptions, LedgerCatalogReader, MarketCatalogReader, OrdersCatalogReader, PairCatalogKey, ParsedCatalogAmount, ScaledIntegerLike, SpotOrderConstraints, SpotOrderDecimalInput, ZipperAssetChainRoute, ZipperCatalogReader } from "./types.js";
@@ -7,4 +7,4 @@ import { createCatalogSnapshotReader } from "./readers.js";
7
7
  import { CatalogSnapshotInput, buildCatalogSnapshot } from "./snapshot.js";
8
8
  import { ZippedAssetSupplyCatalogUpdate, patchZipperCatalogSupply } from "./zipper-supply.js";
9
9
  import { UNKNOWN_ASSET_LABEL, UNKNOWN_LEDGER_ASSET_ID, isUnknownLedgerAsset, isUnknownZipperAsset, unknownLedgerAsset, unknownZipperAsset } from "./unknown-asset.js";
10
- export { type AssetCatalogKey, type AssetConfig, CatalogConversionError, type CatalogLookupDomain, CatalogLookupError, CatalogNotReadyError, type CatalogReader, type CatalogRefreshSource, type CatalogSnapshot, type CatalogSnapshotCell, type CatalogSnapshotInput, type CatalogSnapshotSource, type CatalogState, type CatalogStateSource, type CatalogValidationError, CatalogValidationFailedError, type CatalogValidationResult, type ChainCatalogKey, type ClientCatalog, type CreatePolyesterCatalogOptions, type DepositWithdrawConfig, type EnrichedPairConfig, type LedgerCatalogReader, type MarketCatalogData, type MarketCatalogReader, type MarketCatalogSeed, type OrdersCatalogReader, PAIR_STATUSES, type PairCatalogKey, type PairConfig, type PairMarketDataConfig, type PairStatus, type ParsedCatalogAmount, type ScaledIntegerLike, type SpotConfig, type SpotOrderConstraints, type SpotOrderDecimalInput, UNKNOWN_ASSET_LABEL, UNKNOWN_LEDGER_ASSET_ID, type ZippedAssetSupplyCatalogUpdate, type ZipperAssetChainRoute, type ZipperAssetChainVariant, type ZipperAssetConfig, type ZipperCatalogData, type ZipperCatalogReader, type ZipperCatalogSeed, type ZipperChainConfig, type ZipperChainContractConfig, type ZipperContractName, type ZipperEnrichedAssetChain, type ZipperEnrichedAssetConfig, type ZipperMemoRequirement, buildCatalogSnapshot, createCatalogSnapshotReader, createPolyesterCatalog, isUnknownLedgerAsset, isUnknownZipperAsset, patchZipperCatalogSupply, unknownLedgerAsset, unknownZipperAsset };
10
+ export { type AssetCatalogKey, type AssetConfig, CatalogConversionError, type CatalogLookupDomain, CatalogLookupError, CatalogNotReadyError, type CatalogReader, type CatalogRefreshSource, type CatalogSnapshot, type CatalogSnapshotCell, type CatalogSnapshotInput, type CatalogSnapshotSource, type CatalogState, type CatalogStateSource, type CatalogValidationError, CatalogValidationFailedError, type CatalogValidationResult, type ChainCatalogKey, type ClientCatalog, type CreatePolyesterCatalogOptions, type DepositWithdrawConfig, type EnrichedPairConfig, type LedgerCatalogReader, type MarketCatalogData, type MarketCatalogReader, type MarketCatalogSeed, type OrdersCatalogReader, PAIR_STATUSES, type PairCatalogKey, type PairConfig, type PairMarketDataConfig, type PairStatus, type ParsedCatalogAmount, type ScaledIntegerLike, type SpotConfig, type SpotOrderConstraints, type SpotOrderDecimalInput, UNKNOWN_ASSET_LABEL, UNKNOWN_LEDGER_ASSET_ID, type ZippedAssetSupplyCatalogUpdate, type ZipperAssetChainRoute, type ZipperAssetChainVariant, type ZipperAssetConfig, type ZipperCatalogData, type ZipperCatalogReader, type ZipperCatalogSeed, type ZipperChainConfig, type ZipperChainContractConfig, type ZipperContractName, type ZipperEnrichedAssetChain, type ZipperEnrichedAssetConfig, type ZipperMemoRequirement, type ZipperRouteStatus, buildCatalogSnapshot, createCatalogSnapshotReader, createPolyesterCatalog, isUnknownLedgerAsset, isUnknownZipperAsset, patchZipperCatalogSupply, unknownLedgerAsset, unknownZipperAsset };
@@ -1,5 +1,5 @@
1
1
  import { ValidationError } from "../shared/errors.js";
2
- import { PAIR_STATUSES, ZIPPER_MEMO_REQUIREMENTS } from "../shared/catalog-config.js";
2
+ import { PAIR_STATUSES, ZIPPER_MEMO_REQUIREMENTS, ZIPPER_ROUTE_STATUSES } from "../shared/catalog-config.js";
3
3
  import * as v from "valibot";
4
4
  //#region src/catalogs/snapshot-validation.ts
5
5
  const FiniteNumberSchema = v.pipe(v.number(), v.finite());
@@ -75,6 +75,8 @@ const ZipperEnrichedAssetChainSchema = v.object({
75
75
  depositMinAmount: v.optional(v.string()),
76
76
  withdrawMinAmount: v.optional(v.string()),
77
77
  supply: v.optional(v.string()),
78
+ depositStatus: v.optional(v.picklist(ZIPPER_ROUTE_STATUSES)),
79
+ withdrawalStatus: v.optional(v.picklist(ZIPPER_ROUTE_STATUSES)),
78
80
  sourceToken: ZipperTokenConfigSchema,
79
81
  zToken: ZipperTokenConfigSchema
80
82
  });
@@ -1 +1 @@
1
- {"version":3,"file":"snapshot-validation.js","names":[],"sources":["../../src/catalogs/snapshot-validation.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { ValidationError } from \"../shared/errors.js\";\nimport { PAIR_STATUSES, ZIPPER_MEMO_REQUIREMENTS } from \"../shared/catalog-config.js\";\nimport type { CatalogSnapshot } from \"./types.js\";\nimport type { ZippedAssetSupplyCatalogUpdate } from \"./zipper-supply.js\";\n\nconst FiniteNumberSchema = v.pipe(v.number(), v.finite());\nconst IntegerSchema = v.pipe(FiniteNumberSchema, v.safeInteger());\n\nconst AssetConfigSchema = v.object({\n symbol: v.string(),\n ledgerId: IntegerSchema,\n name: v.string(),\n quantityDisplayDecimals: IntegerSchema,\n quantityScale: IntegerSchema,\n marketDataVolumeScale: v.optional(IntegerSchema),\n includedInEquity: v.optional(v.boolean()),\n});\n\nconst PairMarketDataConfigSchema = v.object({\n orderbookPriceBuckets: v.array(FiniteNumberSchema),\n});\n\nconst EnrichedPairConfigSchema = v.object({\n symbolId: IntegerSchema,\n symbol: v.string(),\n baseAsset: AssetConfigSchema,\n quoteAsset: AssetConfigSchema,\n tickSize: v.string(),\n stepSize: v.string(),\n minNotionalQuote: v.string(),\n minQtyBase: v.string(),\n maxLimitQtyBase: v.optional(v.string()),\n maxMarketQtyBase: v.optional(v.string()),\n maxOrderNotionalQuote: v.optional(v.string()),\n maxMarketNotionalQuote: v.optional(v.string()),\n maxOpenOrdersPerPair: v.optional(IntegerSchema),\n priceBand: v.optional(\n v.object({\n lowerBps: IntegerSchema,\n upperBps: IntegerSchema,\n referenceWindowMs: IntegerSchema,\n }),\n ),\n allowBuyFeeFromBase: v.boolean(),\n defaultMarketSlippagePctBuy: FiniteNumberSchema,\n defaultMarketSlippagePctSell: FiniteNumberSchema,\n maxClientRefDriftPct: FiniteNumberSchema,\n baseQuantityScale: v.optional(IntegerSchema),\n quoteQuantityScale: v.optional(IntegerSchema),\n referencePriceScale: v.optional(IntegerSchema),\n marketdata: v.optional(PairMarketDataConfigSchema),\n listingAt: v.nullable(FiniteNumberSchema),\n delistingAt: v.nullable(FiniteNumberSchema),\n status: v.picklist([...PAIR_STATUSES, \"unknown\"]),\n});\n\nconst ZipperChainConfigSchema = v.object({\n chainId: IntegerSchema,\n code: v.string(),\n name: v.string(),\n nativeChainId: v.string(),\n nativeCurrencySymbol: v.string(),\n explorerUrl: v.string(),\n icon: v.string(),\n requiredConfirmations: IntegerSchema,\n confirmationTimeSeconds: IntegerSchema,\n isCaseSensitive: v.boolean(),\n minAddressLength: IntegerSchema,\n maxAddressLength: IntegerSchema,\n memoRequirement: v.optional(v.picklist(ZIPPER_MEMO_REQUIREMENTS)),\n memoLabel: v.optional(v.string()),\n memoFormatHint: v.optional(v.string()),\n});\n\nconst ZipperTokenConfigSchema = v.object({\n address: v.string(),\n decimals: IntegerSchema,\n});\n\nconst ZipperEnrichedAssetChainSchema = v.object({\n ...ZipperChainConfigSchema.entries,\n zippedAssetId: IntegerSchema,\n isNativeAsset: v.boolean(),\n networkFee: v.optional(v.string()),\n networkFeeTsSec: v.optional(FiniteNumberSchema),\n depositMinAmount: v.optional(v.string()),\n withdrawMinAmount: v.optional(v.string()),\n supply: v.optional(v.string()),\n sourceToken: ZipperTokenConfigSchema,\n zToken: ZipperTokenConfigSchema,\n});\n\nconst ZipperEnrichedAssetConfigSchema = v.object({\n asset: v.string(),\n ledgerId: IntegerSchema,\n name: v.string(),\n icon: v.string(),\n quantityScale: IntegerSchema,\n quantityDisplayDecimals: IntegerSchema,\n uAssetId: v.string(),\n chains: v.array(ZipperEnrichedAssetChainSchema),\n});\n\nconst ZipperChainContractConfigSchema = v.object({\n name: v.string(),\n address: v.string(),\n type: v.string(),\n description: v.string(),\n version: IntegerSchema,\n});\n\nexport const CatalogSnapshotShapeSchema = v.object({\n source: v.picklist([\"api\", \"snapshot\"]),\n tsMs: FiniteNumberSchema,\n version: IntegerSchema,\n market: v.object({\n assets: v.array(AssetConfigSchema),\n pairs: v.array(EnrichedPairConfigSchema),\n maxOpenOrdersTotal: v.optional(IntegerSchema),\n tsSec: v.optional(FiniteNumberSchema),\n }),\n zipper: v.object({\n chains: v.array(ZipperChainConfigSchema),\n assets: v.array(ZipperEnrichedAssetConfigSchema),\n contracts: v.array(ZipperChainContractConfigSchema),\n tsMs: v.optional(FiniteNumberSchema),\n }),\n});\n\nconst ZippedAssetSupplyCatalogUpdatesSchema = v.array(\n v.object({\n zippedAssetId: IntegerSchema,\n supply: v.string(),\n }),\n);\n\nconst parsedSnapshots = new WeakMap<object, CatalogSnapshot>();\n\nfunction hasValidRelationships(\n snapshot: v.InferOutput<typeof CatalogSnapshotShapeSchema>,\n): boolean {\n const assetSymbols = new Set(snapshot.market.assets.map((asset) => asset.symbol));\n if (\n snapshot.market.pairs.some(\n (pair) =>\n !assetSymbols.has(pair.baseAsset.symbol) ||\n !assetSymbols.has(pair.quoteAsset.symbol),\n )\n ) {\n return false;\n }\n\n const chainIds = new Set(snapshot.zipper.chains.map((chain) => chain.chainId));\n return snapshot.zipper.assets.every((asset) =>\n asset.chains.every((chain) => chainIds.has(chain.chainId)),\n );\n}\n\nconst CatalogSnapshotSchema = v.custom<CatalogSnapshot>((value) => {\n const result = v.safeParse(CatalogSnapshotShapeSchema, value);\n return result.success && hasValidRelationships(result.output);\n});\n\n/** Parses and caches untrusted SSR or JavaScript input as a catalog snapshot. */\nexport function parseCatalogSnapshot(value: unknown): CatalogSnapshot {\n if (typeof value !== \"object\" || value === null) {\n throw new ValidationError(\"Catalog snapshot is malformed.\");\n }\n\n const cached = parsedSnapshots.get(value);\n if (cached) return cached;\n\n const result = v.safeParse(CatalogSnapshotSchema, value);\n if (!result.success) {\n throw new ValidationError(\"Catalog snapshot is malformed.\");\n }\n\n const snapshot: CatalogSnapshot = result.output;\n parsedSnapshots.set(value, snapshot);\n parsedSnapshots.set(snapshot, snapshot);\n return snapshot;\n}\n\n/** Caches a snapshot built only from already-parsed parts so later parses skip validation. */\nexport function markCatalogSnapshotParsed(snapshot: CatalogSnapshot): CatalogSnapshot {\n parsedSnapshots.set(snapshot, snapshot);\n return snapshot;\n}\n\n/** Parses supply updates before they can advance a snapshot's version or timestamp. */\nexport function parseZippedAssetSupplyCatalogUpdates(\n value: unknown,\n): readonly ZippedAssetSupplyCatalogUpdate[] {\n const result = v.safeParse(ZippedAssetSupplyCatalogUpdatesSchema, value);\n if (!result.success) {\n throw new ValidationError(\"Zipper catalog supply updates are malformed.\");\n }\n return result.output;\n}\n"],"mappings":";;;;AAMA,MAAM,qBAAqB,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC;AACxD,MAAM,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,YAAY,CAAC;AAEhE,MAAM,oBAAoB,EAAE,OAAO;CAC/B,QAAQ,EAAE,OAAO;CACjB,UAAU;CACV,MAAM,EAAE,OAAO;CACf,yBAAyB;CACzB,eAAe;CACf,uBAAuB,EAAE,SAAS,aAAa;CAC/C,kBAAkB,EAAE,SAAS,EAAE,QAAQ,CAAC;AAC5C,CAAC;AAED,MAAM,6BAA6B,EAAE,OAAO,EACxC,uBAAuB,EAAE,MAAM,kBAAkB,EACrD,CAAC;AAED,MAAM,2BAA2B,EAAE,OAAO;CACtC,UAAU;CACV,QAAQ,EAAE,OAAO;CACjB,WAAW;CACX,YAAY;CACZ,UAAU,EAAE,OAAO;CACnB,UAAU,EAAE,OAAO;CACnB,kBAAkB,EAAE,OAAO;CAC3B,YAAY,EAAE,OAAO;CACrB,iBAAiB,EAAE,SAAS,EAAE,OAAO,CAAC;CACtC,kBAAkB,EAAE,SAAS,EAAE,OAAO,CAAC;CACvC,uBAAuB,EAAE,SAAS,EAAE,OAAO,CAAC;CAC5C,wBAAwB,EAAE,SAAS,EAAE,OAAO,CAAC;CAC7C,sBAAsB,EAAE,SAAS,aAAa;CAC9C,WAAW,EAAE,SACT,EAAE,OAAO;EACL,UAAU;EACV,UAAU;EACV,mBAAmB;CACvB,CAAC,CACL;CACA,qBAAqB,EAAE,QAAQ;CAC/B,6BAA6B;CAC7B,8BAA8B;CAC9B,sBAAsB;CACtB,mBAAmB,EAAE,SAAS,aAAa;CAC3C,oBAAoB,EAAE,SAAS,aAAa;CAC5C,qBAAqB,EAAE,SAAS,aAAa;CAC7C,YAAY,EAAE,SAAS,0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,OAAO,MAAM;AAChE,CAAC;;AAGD,SAAgB,qBAAqB,OAAiC;CAClE,IAAI,OAAO,UAAU,YAAY,UAAU,MACvC,MAAM,IAAI,gBAAgB,gCAAgC;CAG9D,MAAM,SAAS,gBAAgB,IAAI,KAAK;CACxC,IAAI,QAAQ,OAAO;CAEnB,MAAM,SAAS,EAAE,UAAU,uBAAuB,KAAK;CACvD,IAAI,CAAC,OAAO,SACR,MAAM,IAAI,gBAAgB,gCAAgC;CAG9D,MAAM,WAA4B,OAAO;CACzC,gBAAgB,IAAI,OAAO,QAAQ;CACnC,gBAAgB,IAAI,UAAU,QAAQ;CACtC,OAAO;AACX;;AAGA,SAAgB,0BAA0B,UAA4C;CAClF,gBAAgB,IAAI,UAAU,QAAQ;CACtC,OAAO;AACX;;AAGA,SAAgB,qCACZ,OACyC;CACzC,MAAM,SAAS,EAAE,UAAU,uCAAuC,KAAK;CACvE,IAAI,CAAC,OAAO,SACR,MAAM,IAAI,gBAAgB,8CAA8C;CAE5E,OAAO,OAAO;AAClB"}
1
+ {"version":3,"file":"snapshot-validation.js","names":[],"sources":["../../src/catalogs/snapshot-validation.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { ValidationError } from \"../shared/errors.js\";\nimport {\n PAIR_STATUSES,\n ZIPPER_MEMO_REQUIREMENTS,\n ZIPPER_ROUTE_STATUSES,\n} from \"../shared/catalog-config.js\";\nimport type { CatalogSnapshot } from \"./types.js\";\nimport type { ZippedAssetSupplyCatalogUpdate } from \"./zipper-supply.js\";\n\nconst FiniteNumberSchema = v.pipe(v.number(), v.finite());\nconst IntegerSchema = v.pipe(FiniteNumberSchema, v.safeInteger());\n\nconst AssetConfigSchema = v.object({\n symbol: v.string(),\n ledgerId: IntegerSchema,\n name: v.string(),\n quantityDisplayDecimals: IntegerSchema,\n quantityScale: IntegerSchema,\n marketDataVolumeScale: v.optional(IntegerSchema),\n includedInEquity: v.optional(v.boolean()),\n});\n\nconst PairMarketDataConfigSchema = v.object({\n orderbookPriceBuckets: v.array(FiniteNumberSchema),\n});\n\nconst EnrichedPairConfigSchema = v.object({\n symbolId: IntegerSchema,\n symbol: v.string(),\n baseAsset: AssetConfigSchema,\n quoteAsset: AssetConfigSchema,\n tickSize: v.string(),\n stepSize: v.string(),\n minNotionalQuote: v.string(),\n minQtyBase: v.string(),\n maxLimitQtyBase: v.optional(v.string()),\n maxMarketQtyBase: v.optional(v.string()),\n maxOrderNotionalQuote: v.optional(v.string()),\n maxMarketNotionalQuote: v.optional(v.string()),\n maxOpenOrdersPerPair: v.optional(IntegerSchema),\n priceBand: v.optional(\n v.object({\n lowerBps: IntegerSchema,\n upperBps: IntegerSchema,\n referenceWindowMs: IntegerSchema,\n }),\n ),\n allowBuyFeeFromBase: v.boolean(),\n defaultMarketSlippagePctBuy: FiniteNumberSchema,\n defaultMarketSlippagePctSell: FiniteNumberSchema,\n maxClientRefDriftPct: FiniteNumberSchema,\n baseQuantityScale: v.optional(IntegerSchema),\n quoteQuantityScale: v.optional(IntegerSchema),\n referencePriceScale: v.optional(IntegerSchema),\n marketdata: v.optional(PairMarketDataConfigSchema),\n listingAt: v.nullable(FiniteNumberSchema),\n delistingAt: v.nullable(FiniteNumberSchema),\n status: v.picklist([...PAIR_STATUSES, \"unknown\"]),\n});\n\nconst ZipperChainConfigSchema = v.object({\n chainId: IntegerSchema,\n code: v.string(),\n name: v.string(),\n nativeChainId: v.string(),\n nativeCurrencySymbol: v.string(),\n explorerUrl: v.string(),\n icon: v.string(),\n requiredConfirmations: IntegerSchema,\n confirmationTimeSeconds: IntegerSchema,\n isCaseSensitive: v.boolean(),\n minAddressLength: IntegerSchema,\n maxAddressLength: IntegerSchema,\n memoRequirement: v.optional(v.picklist(ZIPPER_MEMO_REQUIREMENTS)),\n memoLabel: v.optional(v.string()),\n memoFormatHint: v.optional(v.string()),\n});\n\nconst ZipperTokenConfigSchema = v.object({\n address: v.string(),\n decimals: IntegerSchema,\n});\n\nconst ZipperEnrichedAssetChainSchema = v.object({\n ...ZipperChainConfigSchema.entries,\n zippedAssetId: IntegerSchema,\n isNativeAsset: v.boolean(),\n networkFee: v.optional(v.string()),\n networkFeeTsSec: v.optional(FiniteNumberSchema),\n depositMinAmount: v.optional(v.string()),\n withdrawMinAmount: v.optional(v.string()),\n supply: v.optional(v.string()),\n depositStatus: v.optional(v.picklist(ZIPPER_ROUTE_STATUSES)),\n withdrawalStatus: v.optional(v.picklist(ZIPPER_ROUTE_STATUSES)),\n sourceToken: ZipperTokenConfigSchema,\n zToken: ZipperTokenConfigSchema,\n});\n\nconst ZipperEnrichedAssetConfigSchema = v.object({\n asset: v.string(),\n ledgerId: IntegerSchema,\n name: v.string(),\n icon: v.string(),\n quantityScale: IntegerSchema,\n quantityDisplayDecimals: IntegerSchema,\n uAssetId: v.string(),\n chains: v.array(ZipperEnrichedAssetChainSchema),\n});\n\nconst ZipperChainContractConfigSchema = v.object({\n name: v.string(),\n address: v.string(),\n type: v.string(),\n description: v.string(),\n version: IntegerSchema,\n});\n\nexport const CatalogSnapshotShapeSchema = v.object({\n source: v.picklist([\"api\", \"snapshot\"]),\n tsMs: FiniteNumberSchema,\n version: IntegerSchema,\n market: v.object({\n assets: v.array(AssetConfigSchema),\n pairs: v.array(EnrichedPairConfigSchema),\n maxOpenOrdersTotal: v.optional(IntegerSchema),\n tsSec: v.optional(FiniteNumberSchema),\n }),\n zipper: v.object({\n chains: v.array(ZipperChainConfigSchema),\n assets: v.array(ZipperEnrichedAssetConfigSchema),\n contracts: v.array(ZipperChainContractConfigSchema),\n tsMs: v.optional(FiniteNumberSchema),\n }),\n});\n\nconst ZippedAssetSupplyCatalogUpdatesSchema = v.array(\n v.object({\n zippedAssetId: IntegerSchema,\n supply: v.string(),\n }),\n);\n\nconst parsedSnapshots = new WeakMap<object, CatalogSnapshot>();\n\nfunction hasValidRelationships(\n snapshot: v.InferOutput<typeof CatalogSnapshotShapeSchema>,\n): boolean {\n const assetSymbols = new Set(snapshot.market.assets.map((asset) => asset.symbol));\n if (\n snapshot.market.pairs.some(\n (pair) =>\n !assetSymbols.has(pair.baseAsset.symbol) ||\n !assetSymbols.has(pair.quoteAsset.symbol),\n )\n ) {\n return false;\n }\n\n const chainIds = new Set(snapshot.zipper.chains.map((chain) => chain.chainId));\n return snapshot.zipper.assets.every((asset) =>\n asset.chains.every((chain) => chainIds.has(chain.chainId)),\n );\n}\n\nconst CatalogSnapshotSchema = v.custom<CatalogSnapshot>((value) => {\n const result = v.safeParse(CatalogSnapshotShapeSchema, value);\n return result.success && hasValidRelationships(result.output);\n});\n\n/** Parses and caches untrusted SSR or JavaScript input as a catalog snapshot. */\nexport function parseCatalogSnapshot(value: unknown): CatalogSnapshot {\n if (typeof value !== \"object\" || value === null) {\n throw new ValidationError(\"Catalog snapshot is malformed.\");\n }\n\n const cached = parsedSnapshots.get(value);\n if (cached) return cached;\n\n const result = v.safeParse(CatalogSnapshotSchema, value);\n if (!result.success) {\n throw new ValidationError(\"Catalog snapshot is malformed.\");\n }\n\n const snapshot: CatalogSnapshot = result.output;\n parsedSnapshots.set(value, snapshot);\n parsedSnapshots.set(snapshot, snapshot);\n return snapshot;\n}\n\n/** Caches a snapshot built only from already-parsed parts so later parses skip validation. */\nexport function markCatalogSnapshotParsed(snapshot: CatalogSnapshot): CatalogSnapshot {\n parsedSnapshots.set(snapshot, snapshot);\n return snapshot;\n}\n\n/** Parses supply updates before they can advance a snapshot's version or timestamp. */\nexport function parseZippedAssetSupplyCatalogUpdates(\n value: unknown,\n): readonly ZippedAssetSupplyCatalogUpdate[] {\n const result = v.safeParse(ZippedAssetSupplyCatalogUpdatesSchema, value);\n if (!result.success) {\n throw new ValidationError(\"Zipper catalog supply updates are malformed.\");\n }\n return result.output;\n}\n"],"mappings":";;;;AAUA,MAAM,qBAAqB,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC;AACxD,MAAM,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,YAAY,CAAC;AAEhE,MAAM,oBAAoB,EAAE,OA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I,QAAQ,OAAO;CAEnB,MAAM,SAAS,EAAE,UAAU,uBAAuB,KAAK;CACvD,IAAI,CAAC,OAAO,SACR,MAAM,IAAI,gBAAgB,gCAAgC;CAG9D,MAAM,WAA4B,OAAO;CACzC,gBAAgB,IAAI,OAAO,QAAQ;CACnC,gBAAgB,IAAI,UAAU,QAAQ;CACtC,OAAO;AACX;;AAGA,SAAgB,0BAA0B,UAA4C;CAClF,gBAAgB,IAAI,UAAU,QAAQ;CACtC,OAAO;AACX;;AAGA,SAAgB,qCACZ,OACyC;CACzC,MAAM,SAAS,EAAE,UAAU,uCAAuC,KAAK;CACvE,IAAI,CAAC,OAAO,SACR,MAAM,IAAI,gBAAgB,8CAA8C;CAE5E,OAAO,OAAO;AAClB"}
@@ -10,6 +10,8 @@ type ZipperEnrichedAssetChain = ZipperChainConfig & {
10
10
  depositMinAmount?: ZipperAssetChainVariant["depositMinAmount"];
11
11
  withdrawMinAmount?: ZipperAssetChainVariant["withdrawMinAmount"];
12
12
  supply?: ZipperAssetChainVariant["supply"];
13
+ depositStatus?: ZipperAssetChainVariant["depositStatus"];
14
+ withdrawalStatus?: ZipperAssetChainVariant["withdrawalStatus"];
13
15
  sourceToken: ZipperAssetChainVariant["sourceToken"];
14
16
  zToken: ZipperAssetChainVariant["zToken"];
15
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"zipper-catalog.d.ts","names":[],"sources":["../../src/catalogs/zipper-catalog.ts"],"mappings":";;;KASY;KAaA,2BAA2B;EACnC,eAAe;EACf,eAAe;EACf,aAAa;EACb,kBAAkB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,SAAS;EACT,aAAa;EACb,QAAQ;;KAGA,4BAA4B,KAAK;EACzC,QAAQ;;UAGK;WACJ,iBAAiB;WACjB,iBAAiB;WACjB,oBAAoB;WACpB;;KAGD,oBACN;WAEa,iBAAiB;WACjB,kBAAkB,oBAAoB;WACtC,qBAAqB;WACrB"}
1
+ {"version":3,"file":"zipper-catalog.d.ts","names":[],"sources":["../../src/catalogs/zipper-catalog.ts"],"mappings":";;;KASY;KAaA,2BAA2B;EACnC,eAAe;EACf,eAAe;EACf,aAAa;EACb,kBAAkB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,SAAS;EACT,gBAAgB;EAChB,mBAAmB;EACnB,aAAa;EACb,QAAQ;;KAGA,4BAA4B,KAAK;EACzC,QAAQ;;UAGK;WACJ,iBAAiB;WACjB,iBAAiB;WACjB,oBAAoB;WACpB;;KAGD,oBACN;WAEa,iBAAiB;WACjB,kBAAkB,oBAAoB;WACtC,qBAAqB;WACrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"zipper-catalog.js","names":[],"sources":["../../src/catalogs/zipper-catalog.ts"],"sourcesContent":["import type {\n DepositWithdrawConfig,\n ZipperAssetChainVariant,\n ZipperAssetConfig,\n ZipperChainConfig,\n ZipperChainContractConfig,\n} from \"../shared/catalog-config.js\";\n\n/** Known stable contract names plus a string escape hatch for new contracts. */\nexport type ZipperContractName =\n | \"fundingAccount\"\n | \"guardRegistry\"\n | \"tradingGateway\"\n | (string & {});\n\nexport type {\n DepositWithdrawConfig,\n ZipperAssetConfig,\n ZipperChainConfig,\n ZipperChainContractConfig,\n};\n\nexport type ZipperEnrichedAssetChain = ZipperChainConfig & {\n zippedAssetId: ZipperAssetChainVariant[\"zippedAssetId\"];\n isNativeAsset: ZipperAssetChainVariant[\"isNativeAsset\"];\n networkFee?: ZipperAssetChainVariant[\"networkFee\"];\n networkFeeTsSec?: ZipperAssetChainVariant[\"networkFeeTsSec\"];\n depositMinAmount?: ZipperAssetChainVariant[\"depositMinAmount\"];\n withdrawMinAmount?: ZipperAssetChainVariant[\"withdrawMinAmount\"];\n supply?: ZipperAssetChainVariant[\"supply\"];\n sourceToken: ZipperAssetChainVariant[\"sourceToken\"];\n zToken: ZipperAssetChainVariant[\"zToken\"];\n};\n\nexport type ZipperEnrichedAssetConfig = Omit<ZipperAssetConfig, \"variants\"> & {\n chains: ZipperEnrichedAssetChain[];\n};\n\nexport interface ZipperCatalogData {\n readonly chains: readonly ZipperChainConfig[];\n readonly assets: readonly ZipperEnrichedAssetConfig[];\n readonly contracts: readonly ZipperChainContractConfig[];\n readonly tsMs?: number;\n}\n\nexport type ZipperCatalogSeed =\n | DepositWithdrawConfig\n | {\n readonly chains: readonly ZipperChainConfig[];\n readonly assets: readonly (ZipperAssetConfig | ZipperEnrichedAssetConfig)[];\n readonly contracts?: readonly ZipperChainContractConfig[];\n readonly tsMs?: number;\n };\n\nfunction isEnrichedZipperAsset(\n asset: ZipperAssetConfig | ZipperEnrichedAssetConfig,\n): asset is ZipperEnrichedAssetConfig {\n return \"chains\" in asset;\n}\n\n/**\n * Adds derived display metadata to Zipper asset records.\n */\nexport function enrichZipperAssets(\n assets: readonly (ZipperAssetConfig | ZipperEnrichedAssetConfig)[],\n chains: readonly ZipperChainConfig[],\n): readonly ZipperEnrichedAssetConfig[] {\n const chainById = new Map(chains.map((chain) => [chain.chainId, chain]));\n const enrichedAssets: ZipperEnrichedAssetConfig[] = [];\n\n for (const asset of assets) {\n if (isEnrichedZipperAsset(asset)) {\n enrichedAssets.push(asset);\n continue;\n }\n\n const { variants, ...rest } = asset;\n const enrichedChains: ZipperEnrichedAssetChain[] = [];\n\n for (const variant of variants) {\n const chain = chainById.get(variant.chainId);\n if (!chain) {\n throw new Error(\n `[catalog] zipper asset ${asset.asset} references unknown chainId: ${variant.chainId}`,\n );\n }\n\n enrichedChains.push({\n ...chain,\n ...variant,\n });\n }\n\n enrichedAssets.push({\n ...rest,\n chains: enrichedChains,\n });\n }\n\n return enrichedAssets;\n}\n\nexport function buildZipperCatalogData(seed: ZipperCatalogSeed): ZipperCatalogData {\n const chains = [...seed.chains];\n const assets = enrichZipperAssets(seed.assets, chains);\n return Object.freeze({\n chains: Object.freeze(chains),\n assets: Object.freeze([...assets]),\n contracts: Object.freeze([...(seed.contracts ?? [])]),\n tsMs: seed.tsMs,\n });\n}\n"],"mappings":";AAsDA,SAAS,sBACL,OACkC;CAClC,OAAO,YAAY;AACvB;;;;AAKA,SAAgB,mBACZ,QACA,QACoC;CACpC,MAAM,YAAY,IAAI,IAAI,OAAO,KAAK,UAAU,CAAC,MAAM,SAAS,KAAK,CAAC,CAAC;CACvE,MAAM,iBAA8C,CAAC;CAErD,KAAK,MAAM,SAAS,QAAQ;EACxB,IAAI,sBAAsB,KAAK,GAAG;GAC9B,eAAe,KAAK,KAAK;GACzB;EACJ;EAEA,MAAM,EAAE,UAAU,GAAG,SAAS;EAC9B,MAAM,iBAA6C,CAAC;EAEpD,KAAK,MAAM,WAAW,UAAU;GAC5B,MAAM,QAAQ,UAAU,IAAI,QAAQ,OAAO;GAC3C,IAAI,CAAC,OACD,MAAM,IAAI,MACN,0BAA0B,MAAM,MAAM,+BAA+B,QAAQ,SACjF;GAGJ,eAAe,KAAK;IAChB,GAAG;IACH,GAAG;GACP,CAAC;EACL;EAEA,eAAe,KAAK;GAChB,GAAG;GACH,QAAQ;EACZ,CAAC;CACL;CAEA,OAAO;AACX;AAEA,SAAgB,uBAAuB,MAA4C;CAC/E,MAAM,SAAS,CAAC,GAAG,KAAK,MAAM;CAC9B,MAAM,SAAS,mBAAmB,KAAK,QAAQ,MAAM;CACrD,OAAO,OAAO,OAAO;EACjB,QAAQ,OAAO,OAAO,MAAM;EAC5B,QAAQ,OAAO,OAAO,CAAC,GAAG,MAAM,CAAC;EACjC,WAAW,OAAO,OAAO,CAAC,GAAI,KAAK,aAAa,CAAC,CAAE,CAAC;EACpD,MAAM,KAAK;CACf,CAAC;AACL"}
1
+ {"version":3,"file":"zipper-catalog.js","names":[],"sources":["../../src/catalogs/zipper-catalog.ts"],"sourcesContent":["import type {\n DepositWithdrawConfig,\n ZipperAssetChainVariant,\n ZipperAssetConfig,\n ZipperChainConfig,\n ZipperChainContractConfig,\n} from \"../shared/catalog-config.js\";\n\n/** Known stable contract names plus a string escape hatch for new contracts. */\nexport type ZipperContractName =\n | \"fundingAccount\"\n | \"guardRegistry\"\n | \"tradingGateway\"\n | (string & {});\n\nexport type {\n DepositWithdrawConfig,\n ZipperAssetConfig,\n ZipperChainConfig,\n ZipperChainContractConfig,\n};\n\nexport type ZipperEnrichedAssetChain = ZipperChainConfig & {\n zippedAssetId: ZipperAssetChainVariant[\"zippedAssetId\"];\n isNativeAsset: ZipperAssetChainVariant[\"isNativeAsset\"];\n networkFee?: ZipperAssetChainVariant[\"networkFee\"];\n networkFeeTsSec?: ZipperAssetChainVariant[\"networkFeeTsSec\"];\n depositMinAmount?: ZipperAssetChainVariant[\"depositMinAmount\"];\n withdrawMinAmount?: ZipperAssetChainVariant[\"withdrawMinAmount\"];\n supply?: ZipperAssetChainVariant[\"supply\"];\n depositStatus?: ZipperAssetChainVariant[\"depositStatus\"];\n withdrawalStatus?: ZipperAssetChainVariant[\"withdrawalStatus\"];\n sourceToken: ZipperAssetChainVariant[\"sourceToken\"];\n zToken: ZipperAssetChainVariant[\"zToken\"];\n};\n\nexport type ZipperEnrichedAssetConfig = Omit<ZipperAssetConfig, \"variants\"> & {\n chains: ZipperEnrichedAssetChain[];\n};\n\nexport interface ZipperCatalogData {\n readonly chains: readonly ZipperChainConfig[];\n readonly assets: readonly ZipperEnrichedAssetConfig[];\n readonly contracts: readonly ZipperChainContractConfig[];\n readonly tsMs?: number;\n}\n\nexport type ZipperCatalogSeed =\n | DepositWithdrawConfig\n | {\n readonly chains: readonly ZipperChainConfig[];\n readonly assets: readonly (ZipperAssetConfig | ZipperEnrichedAssetConfig)[];\n readonly contracts?: readonly ZipperChainContractConfig[];\n readonly tsMs?: number;\n };\n\nfunction isEnrichedZipperAsset(\n asset: ZipperAssetConfig | ZipperEnrichedAssetConfig,\n): asset is ZipperEnrichedAssetConfig {\n return \"chains\" in asset;\n}\n\n/**\n * Adds derived display metadata to Zipper asset records.\n */\nexport function enrichZipperAssets(\n assets: readonly (ZipperAssetConfig | ZipperEnrichedAssetConfig)[],\n chains: readonly ZipperChainConfig[],\n): readonly ZipperEnrichedAssetConfig[] {\n const chainById = new Map(chains.map((chain) => [chain.chainId, chain]));\n const enrichedAssets: ZipperEnrichedAssetConfig[] = [];\n\n for (const asset of assets) {\n if (isEnrichedZipperAsset(asset)) {\n enrichedAssets.push(asset);\n continue;\n }\n\n const { variants, ...rest } = asset;\n const enrichedChains: ZipperEnrichedAssetChain[] = [];\n\n for (const variant of variants) {\n const chain = chainById.get(variant.chainId);\n if (!chain) {\n throw new Error(\n `[catalog] zipper asset ${asset.asset} references unknown chainId: ${variant.chainId}`,\n );\n }\n\n enrichedChains.push({\n ...chain,\n ...variant,\n });\n }\n\n enrichedAssets.push({\n ...rest,\n chains: enrichedChains,\n });\n }\n\n return enrichedAssets;\n}\n\nexport function buildZipperCatalogData(seed: ZipperCatalogSeed): ZipperCatalogData {\n const chains = [...seed.chains];\n const assets = enrichZipperAssets(seed.assets, chains);\n return Object.freeze({\n chains: Object.freeze(chains),\n assets: Object.freeze([...assets]),\n contracts: Object.freeze([...(seed.contracts ?? [])]),\n tsMs: seed.tsMs,\n });\n}\n"],"mappings":";AAwDA,SAAS,sBACL,OACkC;CAClC,OAAO,YAAY;AACvB;;;;AAKA,SAAgB,mBACZ,QACA,QACoC;CACpC,MAAM,YAAY,IAAI,IAAI,OAAO,KAAK,UAAU,CAAC,MAAM,SAAS,KAAK,CAAC,CAAC;CACvE,MAAM,iBAA8C,CAAC;CAErD,KAAK,MAAM,SAAS,QAAQ;EACxB,IAAI,sBAAsB,KAAK,GAAG;GAC9B,eAAe,KAAK,KAAK;GACzB;EACJ;EAEA,MAAM,EAAE,UAAU,GAAG,SAAS;EAC9B,MAAM,iBAA6C,CAAC;EAEpD,KAAK,MAAM,WAAW,UAAU;GAC5B,MAAM,QAAQ,UAAU,IAAI,QAAQ,OAAO;GAC3C,IAAI,CAAC,OACD,MAAM,IAAI,MACN,0BAA0B,MAAM,MAAM,+BAA+B,QAAQ,SACjF;GAGJ,eAAe,KAAK;IAChB,GAAG;IACH,GAAG;GACP,CAAC;EACL;EAEA,eAAe,KAAK;GAChB,GAAG;GACH,QAAQ;EACZ,CAAC;CACL;CAEA,OAAO;AACX;AAEA,SAAgB,uBAAuB,MAA4C;CAC/E,MAAM,SAAS,CAAC,GAAG,KAAK,MAAM;CAC9B,MAAM,SAAS,mBAAmB,KAAK,QAAQ,MAAM;CACrD,OAAO,OAAO,OAAO;EACjB,QAAQ,OAAO,OAAO,MAAM;EAC5B,QAAQ,OAAO,OAAO,CAAC,GAAG,MAAM,CAAC;EACjC,WAAW,OAAO,OAAO,CAAC,GAAI,KAAK,aAAa,CAAC,CAAE,CAAC;EACpD,MAAM,KAAK;CACf,CAAC;AACL"}
@@ -5,9 +5,9 @@ import { Candle, Timeframe } from "../../marketdata/v1/marketdata_pb.js";
5
5
  import { Side, TimeInForce, TriggerPriceSource } from "../../orders/v1/orders_pb.js";
6
6
  import { Order } from "../../orders/v1/orders_read_pb.js";
7
7
  import { Trigger, TriggerStatus, TriggerType } from "../../triggers/v1/triggers_pb.js";
8
- import { JsonObject, Message as Message$1 } from "@bufbuild/protobuf";
9
8
  import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
10
9
  import { Timestamp } from "@bufbuild/protobuf/wkt";
10
+ import { JsonObject, Message as Message$1 } from "@bufbuild/protobuf";
11
11
  declare namespace assistant_pb_d_exports {
12
12
  export { ApprovalDecision, ApprovalDecisionSchema, ApprovalParameter, ApprovalParameterSchema, ApprovalRequested, ApprovalRequestedSchema, ApprovalResolved, ApprovalResolvedSchema, ApprovalStatus, ApprovalStatusSchema, AssistantKey, AssistantKeyAccount, AssistantKeyAccountSchema, AssistantKeySchema, AssistantKeyState, AssistantKeyStateSchema, AssistantService, AttachedExit, AttachedExitSchema, AttachedExits, AttachedExitsSchema, AttachedTrailingStop, AttachedTrailingStopSchema, BalanceHistoryChart, BalanceHistoryChartSchema, BalancesTable, BalancesTableSchema, CancelOrdersPreview, CancelOrdersPreviewSchema, CancelRunRequest, CancelRunRequestSchema, CancelRunResponse, CancelRunResponseSchema, CancelTriggerPreview, CancelTriggerPreviewSchema, CompleteAssistantKeysRequest, CompleteAssistantKeysRequestSchema, CompleteAssistantKeysResponse, CompleteAssistantKeysResponseSchema, Conversation, ConversationSchema, CurrentPage, CurrentPageSchema, DecideApprovalRequest, DecideApprovalRequestSchema, DecideApprovalResponse, DecideApprovalResponseSchema, DeleteMemoryRequest, DeleteMemoryRequestSchema, DeleteMemoryResponse, DeleteMemoryResponseSchema, DepositAddressCard, DepositAddressCardSchema, Destination, DestinationSchema, DestinationsSuggested, DestinationsSuggestedSchema, DiscardPartial, DiscardPartialSchema, DisplaySetting, DisplaySettingAction, DisplaySettingActionSchema, DisplaySettingSchema, EquityHistoryChart, EquityHistoryChartSchema, ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, FailureCategory, FailureCategorySchema, GetTelegramApprovalLimitsRequest, GetTelegramApprovalLimitsRequestSchema, GetTelegramApprovalLimitsResponse, GetTelegramApprovalLimitsResponseSchema, LadderLevel, LadderLevelSchema, LadderPreview, LadderPreviewSchema, LimitOrderPreview, LimitOrderPreviewSchema, ListAssistantKeysRequest, ListAssistantKeysRequestSchema, ListAssistantKeysResponse, ListAssistantKeysResponseSchema, ListConversationsRequest, ListConversationsRequestSchema, ListConversationsResponse, ListConversationsResponseSchema, ListMemoriesRequest, ListMemoriesRequestSchema, ListMemoriesResponse, ListMemoriesResponseSchema, ListMessagesRequest, ListMessagesRequestSchema, ListMessagesResponse, ListMessagesResponseSchema, MarkdownTable, MarkdownTableRow, MarkdownTableRowSchema, MarkdownTableSchema, MarketOrderPreview, MarketOrderPreviewSchema, MemoriesRecalled, MemoriesRecalledSchema, Memory, MemoryKind, MemoryKindSchema, MemorySchema, Message, MessageRole, MessageRoleSchema, MessageSchema, OrderChange, OrderChangePreview, OrderChangePreviewSchema, OrderChangeSchema, OrderPreview, OrderPreviewSchema, OrderPriceField, OrderPriceFieldSchema, OrderToCancel, OrderToCancelSchema, OrdersTable, OrdersTableSchema, PlaceOrdersPreview, PlaceOrdersPreviewSchema, PrepareAssistantKeysRequest, PrepareAssistantKeysRequestSchema, PrepareAssistantKeysResponse, PrepareAssistantKeysResponseSchema, PreparedAssistantKey, PreparedAssistantKeySchema, PriceChart, PriceChartSchema, PriceOffsetDirection, PriceOffsetDirectionSchema, PriceRounding, PriceRoundingSchema, QuoteValue, QuoteValueSchema, RecalledMemory, RecalledMemorySchema, ReferencePrice, ReferencePriceSchema, ReferencePriceSource, ReferencePriceSourceSchema, RelativePrice, RelativePriceSchema, RunCompleted, RunCompletedSchema, RunEvent, RunEventSchema, RunFailed, RunFailedSchema, SendMessageRequest, SendMessageRequestSchema, SendMessageResponse, SendMessageResponseSchema, SetTelegramApprovalLimitsRequest, SetTelegramApprovalLimitsRequestSchema, SetTelegramApprovalLimitsResponse, SetTelegramApprovalLimitsResponseSchema, SkillLoaded, SkillLoadedSchema, StopOrderPreview, StopOrderPreviewSchema, SubagentFinished, SubagentFinishedSchema, SubagentStarted, SubagentStartedSchema, SwapLegPreview, SwapLegPreviewSchema, SwapPreview, SwapPreviewSchema, TelegramApprovalLimits, TelegramApprovalLimitsSchema, TextDelta, TextDeltaSchema, ToolFinished, ToolFinishedSchema, ToolStarted, ToolStartedSchema, TrailingStopPreview, TrailingStopPreviewSchema, TransfersTable, TransfersTableSchema, TriggerChangeAction, TriggerChangeActionSchema, TriggerChangePreview, TriggerChangePreviewSchema, TriggerDirection, TriggerDirectionSchema, TriggerSettings, TriggerSettingsSchema, TriggersTable, TriggersTableSchema, TwapPreview, TwapPreviewSchema, UnfilledSlicePolicy, UnfilledSlicePolicySchema, Usage, UsageSchema, View, ViewSchema, WatchRunRequest, WatchRunRequestSchema, WatchRunResponse, WatchRunResponseSchema, file_ai_v1_assistant };
13
13
  }
@@ -1,8 +1,8 @@
1
1
  import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
2
2
  import { file_polyester_api_options } from "../../polyester/api/options_pb.js";
3
- import { file_ledger_read_v1_ledger_read } from "../../ledger/read/v1/ledger_read_pb.js";
4
3
  import { file_alerts_v1_price_alerts } from "../../alerts/v1/price_alerts_pb.js";
5
4
  import { file_chain_deposit_v1_deposit } from "../../chain/deposit/v1/deposit_pb.js";
5
+ import { file_ledger_read_v1_ledger_read } from "../../ledger/read/v1/ledger_read_pb.js";
6
6
  import { file_marketdata_v1_marketdata } from "../../marketdata/v1/marketdata_pb.js";
7
7
  import { file_orders_v1_orders } from "../../orders/v1/orders_pb.js";
8
8
  import { file_orders_v1_orders_read } from "../../orders/v1/orders_read_pb.js";
@@ -1,6 +1,6 @@
1
- import { Message } from "@bufbuild/protobuf";
2
1
  import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
3
2
  import { FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import { Message } from "@bufbuild/protobuf";
4
4
  declare namespace price_alerts_pb_d_exports {
5
5
  export { AlertChannel, AlertChannelSchema, AlertDirection, AlertDirectionSchema, AlertPriceSource, AlertPriceSourceSchema, AlertStatus, AlertStatusSchema, AlertUpdate, AlertUpdateSchema, CancelAlertRequest, CancelAlertRequestSchema, CancelAlertResponse, CancelAlertResponseSchema, CreateAlertRequest, CreateAlertRequestSchema, CreateAlertResponse, CreateAlertResponseSchema, ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, ListAlertsRequest, ListAlertsRequestSchema, ListAlertsResponse, ListAlertsResponseSchema, PriceAlert, PriceAlertSchema, PriceAlertService, UpdateAlertRequest, UpdateAlertRequestSchema, UpdateAlertResponse, UpdateAlertResponseSchema, UpdateOutcome, UpdateOutcomeSchema, file_alerts_v1_price_alerts };
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import { SubaccountRole } from "./subaccounts_pb.js";
2
- import { Message } from "@bufbuild/protobuf";
3
2
  import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
4
3
  import { FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
4
+ import { Message } from "@bufbuild/protobuf";
5
5
  declare namespace address_book_pb_d_exports {
6
6
  export { AccountScopeRef, AccountScopeRefSchema, AccountScopeType, AccountScopeTypeSchema, AddressBook, AddressBookEntriesView, AddressBookEntriesViewSchema, AddressBookEntry, AddressBookEntryKind, AddressBookEntryKindSchema, AddressBookEntrySchema, AddressBookEntryUpdateSpec, AddressBookEntryUpdateSpecSchema, AddressBookRecentDestinationsView, AddressBookRecentDestinationsViewSchema, AddressBookSchema, AddressBookService, AddressBookTag, AddressBookTagInput, AddressBookTagInputSchema, AddressBookTagSchema, AddressBookTagSummary, AddressBookTagSummarySchema, AddressBookViewInvalidated, AddressBookViewInvalidatedSchema, CopyAddressBookEntryRequest, CopyAddressBookEntryRequestSchema, CopyAddressBookEntryResponse, CopyAddressBookEntryResponseSchema, CreateAddressBookEntryRequest, CreateAddressBookEntryRequestSchema, CreateAddressBookEntryResponse, CreateAddressBookEntryResponseSchema, CreateAddressBookTagRequest, CreateAddressBookTagRequestSchema, CreateAddressBookTagResponse, CreateAddressBookTagResponseSchema, DeleteAddressBookEntryRequest, DeleteAddressBookEntryRequestSchema, DeleteAddressBookEntryResponse, DeleteAddressBookEntryResponseSchema, DeleteAddressBookTagRequest, DeleteAddressBookTagRequestSchema, DeleteAddressBookTagResponse, DeleteAddressBookTagResponseSchema, DestinationWhitelistStatus, DestinationWhitelistStatusSchema, ExternalAddressBookEntry, ExternalAddressBookEntrySchema, ExternalRecentDestination, ExternalRecentDestinationSchema, ExternalWithdrawAddress, ExternalWithdrawAddressSchema, GetAddressBookViewRequest, GetAddressBookViewRequestSchema, GetAddressBookViewResponse, GetAddressBookViewResponseSchema, GetWithdrawWhitelistViewRequest, GetWithdrawWhitelistViewRequestSchema, GetWithdrawWhitelistViewResponse, GetWithdrawWhitelistViewResponseSchema, InternalAddressBookEntry, InternalAddressBookEntrySchema, InternalRecentDestination, InternalRecentDestinationSchema, InternalTransferAccount, InternalTransferAccountSchema, InternalTransferWhitelistEntry, InternalTransferWhitelistEntrySchema, InternalWhitelistResolutionStatus, InternalWhitelistResolutionStatusSchema, ListAddressBookEntriesRequest, ListAddressBookEntriesRequestSchema, ListAddressBookEntriesResponse, ListAddressBookEntriesResponseSchema, ListAddressBooksRequest, ListAddressBooksRequestSchema, ListAddressBooksResponse, ListAddressBooksResponseSchema, ListInternalTransferWhitelistEntriesRequest, ListInternalTransferWhitelistEntriesRequestSchema, ListInternalTransferWhitelistEntriesResponse, ListInternalTransferWhitelistEntriesResponseSchema, ListTransferCounterpartiesRequest, ListTransferCounterpartiesRequestSchema, ListTransferCounterpartiesResponse, ListTransferCounterpartiesResponseSchema, ListTransferDestinationsRequest, ListTransferDestinationsRequestSchema, ListTransferDestinationsResponse, ListTransferDestinationsResponseSchema, MirroredWithdrawWhitelistEntry, MirroredWithdrawWhitelistEntrySchema, RequestedInternalTransferAccount, RequestedInternalTransferAccountSchema, TransferCounterparty, TransferCounterpartyDirection, TransferCounterpartyDirectionSchema, TransferCounterpartySchema, TransferDestination, TransferDestinationSchema, UpdateAddressBookEntryRequest, UpdateAddressBookEntryRequestSchema, UpdateAddressBookEntryResponse, UpdateAddressBookEntryResponseSchema, UpdateAddressBookTagRequest, UpdateAddressBookTagRequestSchema, UpdateAddressBookTagResponse, UpdateAddressBookTagResponseSchema, WithdrawWhitelistView, WithdrawWhitelistViewSchema, file_auth_v1_address_book };
7
7
  }
@@ -1,6 +1,6 @@
1
- import { Message } from "@bufbuild/protobuf";
2
1
  import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
3
2
  import { FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import { Message } from "@bufbuild/protobuf";
4
4
  declare namespace api_keys_pb_d_exports {
5
5
  export { ApiKey, ApiKeyPurpose, ApiKeyPurposeSchema, ApiKeySchema, ApiKeyService, ApiKeyStatus, ApiKeyStatusSchema, ApiKeyUpdateSpec, ApiKeyUpdateSpecSchema, AssistantKeyPreset, AssistantKeyPresetSchema, AssistantKeySpec, AssistantKeySpecSchema, CreateApiKeyRequest, CreateApiKeyRequestSchema, CreateApiKeyResponse, CreateApiKeyResponseSchema, DeleteApiKeyRequest, DeleteApiKeyRequestSchema, DeleteApiKeyResponse, DeleteApiKeyResponseSchema, DeleteAssistantKeysRequest, DeleteAssistantKeysRequestSchema, DeleteAssistantKeysResponse, DeleteAssistantKeysResponseSchema, GetApiKeyRequest, GetApiKeyRequestSchema, GetApiKeyResponse, GetApiKeyResponseSchema, ListApiKeysRequest, ListApiKeysRequestSchema, ListApiKeysResponse, ListApiKeysResponseSchema, ListAssistantKeysRequest, ListAssistantKeysRequestSchema, ListAssistantKeysResponse, ListAssistantKeysResponseSchema, SetAssistantKeysRequest, SetAssistantKeysRequestSchema, SetAssistantKeysResponse, SetAssistantKeysResponseSchema, UpdateApiKeyRequest, UpdateApiKeyRequestSchema, UpdateApiKeyResponse, UpdateApiKeyResponseSchema, file_auth_v1_api_keys };
6
6
  }
@@ -656,11 +656,11 @@ declare enum AssistantKeyPreset {
656
656
  PRESET_UNSPECIFIED = 0,
657
657
  /**
658
658
  * Read actions only: READ_BALANCES, READ_SPOT, READ_INTERNAL_TRANSFERS,
659
- * READ_AUTO_WITHDRAW, READ_API_KEYS, READ_SUBACCOUNTS and
660
- * READ_DEPOSIT_ADDRESSES. On the main account, also READ_PRICE_ALERTS, a
661
- * main-account permission. Policy name "Polyester AI - Read only (main
662
- * account)" on the main account, "Polyester AI - Read only (sub-account)"
663
- * on a sub-account.
659
+ * READ_AUTO_WITHDRAW, READ_API_KEYS, READ_SUBACCOUNTS,
660
+ * READ_DEPOSIT_ADDRESSES and READ_STATEMENTS. On the main account, also
661
+ * READ_PRICE_ALERTS, a main-account permission. Policy name "Polyester AI -
662
+ * Read only (main account)" on the main account, "Polyester AI - Read only
663
+ * (sub-account)" on a sub-account.
664
664
  *
665
665
  * @generated from enum value: READ_ONLY = 1;
666
666
  */
@@ -225,11 +225,11 @@ let AssistantKeyPreset = /* @__PURE__ */ function(AssistantKeyPreset) {
225
225
  AssistantKeyPreset[AssistantKeyPreset["PRESET_UNSPECIFIED"] = 0] = "PRESET_UNSPECIFIED";
226
226
  /**
227
227
  * Read actions only: READ_BALANCES, READ_SPOT, READ_INTERNAL_TRANSFERS,
228
- * READ_AUTO_WITHDRAW, READ_API_KEYS, READ_SUBACCOUNTS and
229
- * READ_DEPOSIT_ADDRESSES. On the main account, also READ_PRICE_ALERTS, a
230
- * main-account permission. Policy name "Polyester AI - Read only (main
231
- * account)" on the main account, "Polyester AI - Read only (sub-account)"
232
- * on a sub-account.
228
+ * READ_AUTO_WITHDRAW, READ_API_KEYS, READ_SUBACCOUNTS,
229
+ * READ_DEPOSIT_ADDRESSES and READ_STATEMENTS. On the main account, also
230
+ * READ_PRICE_ALERTS, a main-account permission. Policy name "Polyester AI -
231
+ * Read only (main account)" on the main account, "Polyester AI - Read only
232
+ * (sub-account)" on a sub-account.
233
233
  *
234
234
  * @generated from enum value: READ_ONLY = 1;
235
235
  */
@@ -1 +1 @@
1
- {"version":3,"file":"api_keys_pb.js","names":[],"sources":["../../../../src/gen/auth/v1/api_keys_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file auth/v1/api_keys.proto (package auth.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 { FieldMask, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_field_mask, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file auth/v1/api_keys.proto.\n */\nexport const file_auth_v1_api_keys: GenFile = /*@__PURE__*/\n fileDesc(\"ChZhdXRoL3YxL2FwaV9rZXlzLnBy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dBocLmF1dGgudjEuTGlzdEFwaUtleXNSZXNwb25zZSIAEkQKCUdldEFwaUtleRIZLmF1dGgudjEuR2V0QXBpS2V5UmVxdWVzdBoaLmF1dGgudjEuR2V0QXBpS2V5UmVzcG9uc2UiABJNCgxEZWxldGVBcGlLZXkSHC5hdXRoLnYxLkRlbGV0ZUFwaUtleVJlcXVlc3QaHS5hdXRoLnYxLkRlbGV0ZUFwaUtleVJlc3BvbnNlIgASTQoMVXBkYXRlQXBpS2V5EhwuYXV0aC52MS5VcGRhdGVBcGlLZXlSZXF1ZXN0Gh0uYXV0aC52MS5VcGRhdGVBcGlLZXlSZXNwb25zZSIAElkKEFNldEFzc2lzdGFudEtleXMSIC5hdXRoLnYxLlNldEFzc2lzdGFudEtleXNSZXF1ZXN0GiEuYXV0aC52MS5TZXRBc3Npc3RhbnRLZXlzUmVzcG9uc2UiABJcChFMaXN0QXNzaXN0YW50S2V5cxIhLmF1dGgudjEuTGlzdEFzc2lzdGFudEtleXNSZXF1ZXN0GiIuYXV0aC52MS5MaXN0QXNzaXN0YW50S2V5c1Jlc3BvbnNlIgASYgoTRGVsZXRlQXNzaXN0YW50S2V5cxIjLmF1dGgudjEuRGVsZXRlQXNzaXN0YW50S2V5c1JlcXVlc3QaJC5hdXRoLnYxLkRlbGV0ZUFzc2lzdGFudEtleXNSZXNwb25zZSIAGgBCPFo6Z2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9hdXRoL3YxO2F1dGh2MWIGcHJvdG8z\", [file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * ApiKey is public API key metadata. It never includes the private key or seed.\n *\n * @generated from message auth.v1.ApiKey\n */\nexport type ApiKey = Message<\"auth.v1.ApiKey\"> & {\n /**\n * Stable opaque identifier used to refer to this key, formatted as \"ak_\"\n * followed by 32 lowercase hex characters.\n *\n * @generated from field: string key_id = 2;\n */\n keyId: string;\n\n /**\n * Human-readable label for the key. Maximum length is 64 characters.\n *\n * @generated from field: string label = 3;\n */\n label: string;\n\n /**\n * Optional user-chosen icon/emoji for UI display.\n *\n * @generated from field: string icon = 9;\n */\n icon: string;\n\n /**\n * Optional user-chosen color token for UI display.\n *\n * @generated from field: string color = 10;\n */\n color: string;\n\n /**\n * Optional CIDR whitelist. Empty means no IP restriction. Maximum 32 unique\n * entries.\n *\n * @generated from field: repeated string ip_whitelist = 4;\n */\n ipWhitelist: string[];\n\n /**\n * Current key status.\n *\n * @generated from field: auth.v1.ApiKeyStatus status = 6;\n */\n status: ApiKeyStatus;\n\n /**\n * Optional sub-account this key is scoped to (opaque ID; empty = root-level).\n *\n * @generated from field: optional fixed64 subaccount_id = 7;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Optional API policy attached to this key (opaque ID).\n * Empty means no policy is attached and the key has no permissions.\n *\n * @generated from field: optional fixed64 policy_id = 8;\n */\n policyId?: bigint | undefined;\n\n /**\n * Time in UTC when this key was created.\n *\n * @generated from field: google.protobuf.Timestamp created_at = 20;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * Approximate last time in UTC when this key authenticated a request,\n * recorded at most about once a minute; it may lag recent use by a few\n * minutes. Omitted when no use has been recorded.\n *\n * @generated from field: google.protobuf.Timestamp last_used_at = 21;\n */\n lastUsedAt?: Timestamp | undefined;\n\n /**\n * Ed25519 public key bytes associated with this API key. The private key or\n * seed is never returned by the API.\n *\n * @generated from field: bytes public_key_ed25519 = 22;\n */\n publicKeyEd25519: Uint8Array;\n\n /**\n * Optional expiry time in UTC. When set, the key cannot authenticate requests\n * after this time, regardless of status.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 23;\n */\n expiresAt?: Timestamp | undefined;\n\n /**\n * Read-only actor label describing who created this key, such as a username\n * or account label.\n *\n * @generated from field: string created_by_actor = 24;\n */\n createdByActor: string;\n\n /**\n * Time in UTC when this key's configuration was last changed. For the same\n * key, later is fresher, equal is an idempotent replay, and earlier is stale.\n * Equal timestamps with different configuration indicate an invariant failure.\n * This is independent of last_used_at, which tracks authentication activity.\n *\n * @generated from field: google.protobuf.Timestamp updated_at = 25;\n */\n updatedAt?: Timestamp | undefined;\n\n /**\n * Monotonic resource revision used for conditional updates.\n *\n * @generated from field: uint64 revision = 26;\n */\n revision: bigint;\n\n /**\n * What the key is for. ASSISTANT keys are managed with SetAssistantKeys and\n * are otherwise listed, updated and revoked like any key.\n *\n * @generated from field: auth.v1.ApiKeyPurpose purpose = 27;\n */\n purpose: ApiKeyPurpose;\n};\n\n/**\n * Describes the message auth.v1.ApiKey.\n * Use `create(ApiKeySchema)` to create a new message.\n */\nexport const ApiKeySchema: GenMessage<ApiKey> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 0);\n\n/**\n * CreateApiKeyRequest creates a new API key. Clients generate the Ed25519 key\n * pair locally and submit only the public key.\n *\n * @generated from message auth.v1.CreateApiKeyRequest\n */\nexport type CreateApiKeyRequest = Message<\"auth.v1.CreateApiKeyRequest\"> & {\n /**\n * Human-readable label for the key. Required; 1 to 64 characters, and must\n * not contain '<' or '>'.\n *\n * @generated from field: string label = 1;\n */\n label: string;\n\n /**\n * Optional sub-account to scope this key to (opaque ID). If unset, the key is\n * root-level.\n *\n * @generated from field: optional fixed64 subaccount_id = 3;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Optional user-chosen icon/emoji for UI display.\n *\n * @generated from field: string icon = 6;\n */\n icon: string;\n\n /**\n * Optional user-chosen color token for UI display.\n *\n * @generated from field: string color = 7;\n */\n color: string;\n\n /**\n * Optional CIDR whitelist. Empty means no IP restriction. Maximum 32 unique\n * entries.\n *\n * @generated from field: repeated string ip_whitelist = 4;\n */\n ipWhitelist: string[];\n\n /**\n * Ed25519 public key bytes. Must be exactly 32 bytes. The private key or seed\n * must never be sent to the API.\n *\n * @generated from field: bytes public_key_ed25519 = 5;\n */\n publicKeyEd25519: Uint8Array;\n};\n\n/**\n * Describes the message auth.v1.CreateApiKeyRequest.\n * Use `create(CreateApiKeyRequestSchema)` to create a new message.\n */\nexport const CreateApiKeyRequestSchema: GenMessage<CreateApiKeyRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 1);\n\n/**\n * CreateApiKeyResponse returns the created API key metadata.\n *\n * @generated from message auth.v1.CreateApiKeyResponse\n */\nexport type CreateApiKeyResponse = Message<\"auth.v1.CreateApiKeyResponse\"> & {\n /**\n * Created API key metadata. The private key or seed is never returned.\n *\n * @generated from field: auth.v1.ApiKey api_key = 1;\n */\n apiKey?: ApiKey | undefined;\n};\n\n/**\n * Describes the message auth.v1.CreateApiKeyResponse.\n * Use `create(CreateApiKeyResponseSchema)` to create a new message.\n */\nexport const CreateApiKeyResponseSchema: GenMessage<CreateApiKeyResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 2);\n\n/**\n * ListApiKeysRequest lists non-revoked API keys visible to the caller.\n *\n * @generated from message auth.v1.ListApiKeysRequest\n */\nexport type ListApiKeysRequest = Message<\"auth.v1.ListApiKeysRequest\"> & {\n /**\n * Optional filter: only keys scoped to this sub-account (opaque ID). The\n * caller must own or administer the sub-account. If unset, only non-revoked\n * keys owned by the caller are returned.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n};\n\n/**\n * Describes the message auth.v1.ListApiKeysRequest.\n * Use `create(ListApiKeysRequestSchema)` to create a new message.\n */\nexport const ListApiKeysRequestSchema: GenMessage<ListApiKeysRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 3);\n\n/**\n * ListApiKeysResponse contains matching API keys, newest first by creation time.\n *\n * @generated from message auth.v1.ListApiKeysResponse\n */\nexport type ListApiKeysResponse = Message<\"auth.v1.ListApiKeysResponse\"> & {\n /**\n * Matching API keys, newest first. Revoked keys are excluded.\n *\n * @generated from field: repeated auth.v1.ApiKey api_keys = 1;\n */\n apiKeys: ApiKey[];\n};\n\n/**\n * Describes the message auth.v1.ListApiKeysResponse.\n * Use `create(ListApiKeysResponseSchema)` to create a new message.\n */\nexport const ListApiKeysResponseSchema: GenMessage<ListApiKeysResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 4);\n\n/**\n * DeleteApiKeyRequest permanently revokes an API key.\n *\n * @generated from message auth.v1.DeleteApiKeyRequest\n */\nexport type DeleteApiKeyRequest = Message<\"auth.v1.DeleteApiKeyRequest\"> & {\n /**\n * Opaque API key identifier (e.g. \"ak_<hex>\"). This is the stable public\n * handle for a key.\n *\n * @generated from field: string key_id = 1;\n */\n keyId: string;\n};\n\n/**\n * Describes the message auth.v1.DeleteApiKeyRequest.\n * Use `create(DeleteApiKeyRequestSchema)` to create a new message.\n */\nexport const DeleteApiKeyRequestSchema: GenMessage<DeleteApiKeyRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 5);\n\n/**\n * DeleteApiKeyResponse is empty when revocation succeeds.\n *\n * @generated from message auth.v1.DeleteApiKeyResponse\n */\nexport type DeleteApiKeyResponse = Message<\"auth.v1.DeleteApiKeyResponse\"> & {\n};\n\n/**\n * Describes the message auth.v1.DeleteApiKeyResponse.\n * Use `create(DeleteApiKeyResponseSchema)` to create a new message.\n */\nexport const DeleteApiKeyResponseSchema: GenMessage<DeleteApiKeyResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 6);\n\n/**\n * GetApiKeyRequest returns one API key visible to its owner or a sub-account admin.\n *\n * @generated from message auth.v1.GetApiKeyRequest\n */\nexport type GetApiKeyRequest = Message<\"auth.v1.GetApiKeyRequest\"> & {\n /**\n * Opaque API key identifier, formatted as \"ak_\" followed by 32 lowercase hex\n * characters.\n *\n * @generated from field: string key_id = 1;\n */\n keyId: string;\n};\n\n/**\n * Describes the message auth.v1.GetApiKeyRequest.\n * Use `create(GetApiKeyRequestSchema)` to create a new message.\n */\nexport const GetApiKeyRequestSchema: GenMessage<GetApiKeyRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 7);\n\n/**\n * GetApiKeyResponse returns one API key visible to the caller.\n *\n * @generated from message auth.v1.GetApiKeyResponse\n */\nexport type GetApiKeyResponse = Message<\"auth.v1.GetApiKeyResponse\"> & {\n /**\n * Matching API key metadata.\n *\n * @generated from field: auth.v1.ApiKey api_key = 1;\n */\n apiKey?: ApiKey | undefined;\n};\n\n/**\n * Describes the message auth.v1.GetApiKeyResponse.\n * Use `create(GetApiKeyResponseSchema)` to create a new message.\n */\nexport const GetApiKeyResponseSchema: GenMessage<GetApiKeyResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 8);\n\n/**\n * ApiKeyUpdateSpec contains mutable API key configuration.\n *\n * @generated from message auth.v1.ApiKeyUpdateSpec\n */\nexport type ApiKeyUpdateSpec = Message<\"auth.v1.ApiKeyUpdateSpec\"> & {\n /**\n * Human-friendly label for the key. Empty clears the label when selected.\n * Must not contain '<' or '>'.\n *\n * @generated from field: string label = 1;\n */\n label: string;\n\n /**\n * User-chosen icon/emoji for UI display. Empty clears the icon when selected.\n *\n * @generated from field: string icon = 2;\n */\n icon: string;\n\n /**\n * User-chosen color token for UI display. Empty clears the color when selected.\n *\n * @generated from field: string color = 3;\n */\n color: string;\n\n /**\n * New status. ACTIVE and DISABLED are allowed; revocation uses DeleteApiKey.\n *\n * @generated from field: auth.v1.ApiKeyStatus status = 4;\n */\n status: ApiKeyStatus;\n\n /**\n * Complete replacement IP whitelist. Empty clears the restriction when selected.\n *\n * @generated from field: repeated string ip_whitelist = 5;\n */\n ipWhitelist: string[];\n\n /**\n * Expiry time in UTC. When selected, omission or the epoch clears expiry.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 6;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.ApiKeyUpdateSpec.\n * Use `create(ApiKeyUpdateSpecSchema)` to create a new message.\n */\nexport const ApiKeyUpdateSpecSchema: GenMessage<ApiKeyUpdateSpec> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 9);\n\n/**\n * UpdateApiKeyRequest changes selected mutable fields on an existing API key.\n *\n * @generated from message auth.v1.UpdateApiKeyRequest\n */\nexport type UpdateApiKeyRequest = Message<\"auth.v1.UpdateApiKeyRequest\"> & {\n /**\n * Opaque API key identifier to update.\n *\n * @generated from field: string key_id = 1;\n */\n keyId: string;\n\n /**\n * Candidate values for fields selected by update_mask.\n *\n * @generated from field: auth.v1.ApiKeyUpdateSpec api_key = 2;\n */\n apiKey?: ApiKeyUpdateSpec | undefined;\n\n /**\n * Mutable fields to apply. Paths are relative to api_key. The mask is required,\n * must be non-empty, and cannot contain \"*\".\n *\n * @generated from field: google.protobuf.FieldMask update_mask = 3;\n */\n updateMask?: FieldMask | undefined;\n\n /**\n * Revision returned by the latest successful read.\n *\n * @generated from field: uint64 expected_revision = 4;\n */\n expectedRevision: bigint;\n};\n\n/**\n * Describes the message auth.v1.UpdateApiKeyRequest.\n * Use `create(UpdateApiKeyRequestSchema)` to create a new message.\n */\nexport const UpdateApiKeyRequestSchema: GenMessage<UpdateApiKeyRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 10);\n\n/**\n * UpdateApiKeyResponse returns the API key after applying the update.\n *\n * @generated from message auth.v1.UpdateApiKeyResponse\n */\nexport type UpdateApiKeyResponse = Message<\"auth.v1.UpdateApiKeyResponse\"> & {\n /**\n * Updated API key metadata.\n *\n * @generated from field: auth.v1.ApiKey api_key = 1;\n */\n apiKey?: ApiKey | undefined;\n};\n\n/**\n * Describes the message auth.v1.UpdateApiKeyResponse.\n * Use `create(UpdateApiKeyResponseSchema)` to create a new message.\n */\nexport const UpdateApiKeyResponseSchema: GenMessage<UpdateApiKeyResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 11);\n\n/**\n * AssistantKeySpec is one account's key in the caller's assistant key set.\n *\n * @generated from message auth.v1.AssistantKeySpec\n */\nexport type AssistantKeySpec = Message<\"auth.v1.AssistantKeySpec\"> & {\n /**\n * Sub-account the key acts for (opaque ID). Unset means the caller's main\n * account. A key acts for exactly one account.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Ed25519 public key bytes the Polyester AI assistant signs with. Must be\n * exactly 32 bytes, and distinct within the set.\n *\n * @generated from field: bytes public_key_ed25519 = 2;\n */\n publicKeyEd25519: Uint8Array;\n\n /**\n * API policy that bounds the key (opaque ID). It must belong to the same\n * main account as the key, and must not allow EXTERNAL_WITHDRAW,\n * INTERNAL_TRANSFER, MANAGE_ADDRESS_BOOK or MANAGE_AUTO_WITHDRAW. Set\n * exactly one of policy_id and preset.\n *\n * @generated from field: fixed64 policy_id = 3;\n */\n policyId: bigint;\n\n /**\n * Time until which the key may be registered, as the Polyester AI assistant\n * issued it with the key (PrepareAssistantKeys), in whole milliseconds.\n * Required for a new key: it must still be ahead, and at most 15 minutes\n * ahead. Not needed when the account's current assistant key already has\n * this public key.\n *\n * @generated from field: google.protobuf.Timestamp registration_deadline = 4;\n */\n registrationDeadline?: Timestamp | undefined;\n\n /**\n * The key's own Ed25519 signature over the caller's account, the key's\n * account, its public key and registration_deadline, as the assistant\n * issued it with the key (64 bytes). Required for a new key; not needed\n * when the account's current assistant key already has this public key.\n *\n * @generated from field: bytes registration_proof = 5;\n */\n registrationProof: Uint8Array;\n\n /**\n * Permission preset that bounds the key, instead of policy_id. The key is\n * bound to the preset's policy in the key's main account: the existing one\n * with the preset's name and exactly its actions over all markets, else one\n * created in the same change. The response's policy_id names it. Set\n * exactly one of policy_id and preset.\n *\n * @generated from field: auth.v1.AssistantKeyPreset preset = 6;\n */\n preset: AssistantKeyPreset;\n};\n\n/**\n * Describes the message auth.v1.AssistantKeySpec.\n * Use `create(AssistantKeySpecSchema)` to create a new message.\n */\nexport const AssistantKeySpecSchema: GenMessage<AssistantKeySpec> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 12);\n\n/**\n * SetAssistantKeysRequest replaces the caller's assistant key set.\n *\n * @generated from message auth.v1.SetAssistantKeysRequest\n */\nexport type SetAssistantKeysRequest = Message<\"auth.v1.SetAssistantKeysRequest\"> & {\n /**\n * The complete set, at most one key per account and at most 64 keys. An\n * account left out loses its assistant key.\n *\n * @generated from field: repeated auth.v1.AssistantKeySpec keys = 1;\n */\n keys: AssistantKeySpec[];\n};\n\n/**\n * Describes the message auth.v1.SetAssistantKeysRequest.\n * Use `create(SetAssistantKeysRequestSchema)` to create a new message.\n */\nexport const SetAssistantKeysRequestSchema: GenMessage<SetAssistantKeysRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 13);\n\n/**\n * SetAssistantKeysResponse returns the caller's assistant key set.\n *\n * @generated from message auth.v1.SetAssistantKeysResponse\n */\nexport type SetAssistantKeysResponse = Message<\"auth.v1.SetAssistantKeysResponse\"> & {\n /**\n * The assistant keys now in the set, in request order.\n *\n * @generated from field: repeated auth.v1.ApiKey api_keys = 1;\n */\n apiKeys: ApiKey[];\n};\n\n/**\n * Describes the message auth.v1.SetAssistantKeysResponse.\n * Use `create(SetAssistantKeysResponseSchema)` to create a new message.\n */\nexport const SetAssistantKeysResponseSchema: GenMessage<SetAssistantKeysResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 14);\n\n/**\n * ListAssistantKeysRequest lists the caller's assistant key set.\n *\n * @generated from message auth.v1.ListAssistantKeysRequest\n */\nexport type ListAssistantKeysRequest = Message<\"auth.v1.ListAssistantKeysRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.ListAssistantKeysRequest.\n * Use `create(ListAssistantKeysRequestSchema)` to create a new message.\n */\nexport const ListAssistantKeysRequestSchema: GenMessage<ListAssistantKeysRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 15);\n\n/**\n * ListAssistantKeysResponse contains the caller's assistant keys.\n *\n * @generated from message auth.v1.ListAssistantKeysResponse\n */\nexport type ListAssistantKeysResponse = Message<\"auth.v1.ListAssistantKeysResponse\"> & {\n /**\n * Non-revoked assistant keys the caller set up, newest first.\n *\n * @generated from field: repeated auth.v1.ApiKey api_keys = 1;\n */\n apiKeys: ApiKey[];\n};\n\n/**\n * Describes the message auth.v1.ListAssistantKeysResponse.\n * Use `create(ListAssistantKeysResponseSchema)` to create a new message.\n */\nexport const ListAssistantKeysResponseSchema: GenMessage<ListAssistantKeysResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 16);\n\n/**\n * DeleteAssistantKeysRequest revokes the caller's whole assistant key set.\n *\n * @generated from message auth.v1.DeleteAssistantKeysRequest\n */\nexport type DeleteAssistantKeysRequest = Message<\"auth.v1.DeleteAssistantKeysRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.DeleteAssistantKeysRequest.\n * Use `create(DeleteAssistantKeysRequestSchema)` to create a new message.\n */\nexport const DeleteAssistantKeysRequestSchema: GenMessage<DeleteAssistantKeysRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 17);\n\n/**\n * DeleteAssistantKeysResponse lists the keys that were revoked.\n *\n * @generated from message auth.v1.DeleteAssistantKeysResponse\n */\nexport type DeleteAssistantKeysResponse = Message<\"auth.v1.DeleteAssistantKeysResponse\"> & {\n /**\n * Opaque identifiers of the keys revoked by this request. Empty when the set\n * was already empty.\n *\n * @generated from field: repeated string revoked_key_ids = 1;\n */\n revokedKeyIds: string[];\n};\n\n/**\n * Describes the message auth.v1.DeleteAssistantKeysResponse.\n * Use `create(DeleteAssistantKeysResponseSchema)` to create a new message.\n */\nexport const DeleteAssistantKeysResponseSchema: GenMessage<DeleteAssistantKeysResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 18);\n\n/**\n * Status of an API key.\n *\n * @generated from enum auth.v1.ApiKeyStatus\n */\nexport enum ApiKeyStatus {\n /**\n * No API key status specified.\n *\n * @generated from enum value: API_KEY_STATUS_UNSPECIFIED = 0;\n */\n API_KEY_STATUS_UNSPECIFIED = 0,\n\n /**\n * Key can authenticate requests.\n *\n * @generated from enum value: ACTIVE = 1;\n */\n ACTIVE = 1,\n\n /**\n * Key has been permanently revoked and cannot be used again.\n *\n * @generated from enum value: REVOKED = 2;\n */\n REVOKED = 2,\n\n /**\n * Key is temporarily disabled and cannot authenticate requests until re-enabled.\n *\n * @generated from enum value: DISABLED = 3;\n */\n DISABLED = 3,\n}\n\n/**\n * Describes the enum auth.v1.ApiKeyStatus.\n */\nexport const ApiKeyStatusSchema: GenEnum<ApiKeyStatus> = /*@__PURE__*/\n enumDesc(file_auth_v1_api_keys, 0);\n\n/**\n * Purpose of an API key.\n *\n * @generated from enum auth.v1.ApiKeyPurpose\n */\nexport enum ApiKeyPurpose {\n /**\n * No purpose specified.\n *\n * @generated from enum value: PURPOSE_UNSPECIFIED = 0;\n */\n PURPOSE_UNSPECIFIED = 0,\n\n /**\n * A key the account holder created for their own programs.\n *\n * @generated from enum value: STANDARD = 1;\n */\n STANDARD = 1,\n\n /**\n * A key the account holder created for the Polyester AI assistant through\n * SetAssistantKeys. Its policy can never allow actions that move value out\n * of the account or manage where it goes, such as external withdrawals or\n * internal transfers. Only its creator's assistant uses it, so a sub-account\n * assistant key is revoked when its creator loses the role that manages the\n * sub-account's API keys or leaves the sub-account.\n *\n * @generated from enum value: ASSISTANT = 2;\n */\n ASSISTANT = 2,\n}\n\n/**\n * Describes the enum auth.v1.ApiKeyPurpose.\n */\nexport const ApiKeyPurposeSchema: GenEnum<ApiKeyPurpose> = /*@__PURE__*/\n enumDesc(file_auth_v1_api_keys, 1);\n\n/**\n * AssistantKeyPreset is a fixed permission set for a Polyester AI assistant\n * key. SetAssistantKeys turns it into an API policy of the key's main account,\n * named after the preset, so the policy and the key need only the set's one\n * step-up proof. No preset ever allows a money-out action (EXTERNAL_WITHDRAW,\n * INTERNAL_TRANSFER, MANAGE_ADDRESS_BOOK, MANAGE_AUTO_WITHDRAW), API-key or\n * policy management, or any action that weakens account security.\n *\n * @generated from enum auth.v1.AssistantKeyPreset\n */\nexport enum AssistantKeyPreset {\n /**\n * No preset selected.\n *\n * @generated from enum value: PRESET_UNSPECIFIED = 0;\n */\n PRESET_UNSPECIFIED = 0,\n\n /**\n * Read actions only: READ_BALANCES, READ_SPOT, READ_INTERNAL_TRANSFERS,\n * READ_AUTO_WITHDRAW, READ_API_KEYS, READ_SUBACCOUNTS and\n * READ_DEPOSIT_ADDRESSES. On the main account, also READ_PRICE_ALERTS, a\n * main-account permission. Policy name \"Polyester AI - Read only (main\n * account)\" on the main account, \"Polyester AI - Read only (sub-account)\"\n * on a sub-account.\n *\n * @generated from enum value: READ_ONLY = 1;\n */\n READ_ONLY = 1,\n\n /**\n * READ_ONLY plus TRADE_SPOT, SWAP and CREATE_DEPOSIT_ADDRESS: the assistant\n * also places, changes and cancels orders and triggers, and swaps, each only\n * after the user approves that change, and creates deposit addresses, which\n * move no funds out. On the main account, also MANAGE_PRICE_ALERTS: price\n * alerts move no funds. Policy name \"Polyester AI - Trade with\n * approval (main account)\" on the main account, \"Polyester AI - Trade with\n * approval (sub-account)\" on a sub-account.\n *\n * @generated from enum value: TRADE_WITH_APPROVAL = 2;\n */\n TRADE_WITH_APPROVAL = 2,\n}\n\n/**\n * Describes the enum auth.v1.AssistantKeyPreset.\n */\nexport const AssistantKeyPresetSchema: GenEnum<AssistantKeyPreset> = /*@__PURE__*/\n enumDesc(file_auth_v1_api_keys, 2);\n\n/**\n * ApiKeyService manages API keys for authenticated callers.\n *\n * @generated from service auth.v1.ApiKeyService\n */\nexport const ApiKeyService: GenService<{\n /**\n * Create a new API key for the caller. Account security settings may require\n * MFA enrollment or a fresh step-up proof. The acting caller's root account\n * must have accepted the current terms, including when targeting a shared\n * subaccount; otherwise FailedPrecondition with AUTH_TERMS_NOT_ACCEPTED is returned.\n *\n * @generated from rpc auth.v1.ApiKeyService.CreateApiKey\n */\n createApiKey: {\n methodKind: \"unary\";\n input: typeof CreateApiKeyRequestSchema;\n output: typeof CreateApiKeyResponseSchema;\n },\n /**\n * List non-revoked API keys visible to the caller, newest first. An API key\n * needs READ_API_KEYS; a key scoped to a sub-account sees only that\n * sub-account's keys.\n *\n * @generated from rpc auth.v1.ApiKeyService.ListApiKeys\n */\n listApiKeys: {\n methodKind: \"unary\";\n input: typeof ListApiKeysRequestSchema;\n output: typeof ListApiKeysResponseSchema;\n },\n /**\n * Get a single API key owned by the caller or scoped to a sub-account the caller administers.\n * An API key needs READ_API_KEYS; a key scoped to a sub-account reads only\n * that sub-account's keys.\n *\n * @generated from rpc auth.v1.ApiKeyService.GetApiKey\n */\n getApiKey: {\n methodKind: \"unary\";\n input: typeof GetApiKeyRequestSchema;\n output: typeof GetApiKeyResponseSchema;\n },\n /**\n * Revoke an API key permanently.\n *\n * @generated from rpc auth.v1.ApiKeyService.DeleteApiKey\n */\n deleteApiKey: {\n methodKind: \"unary\";\n input: typeof DeleteApiKeyRequestSchema;\n output: typeof DeleteApiKeyResponseSchema;\n },\n /**\n * Update API key metadata and allowed status transitions. Revocation must use\n * DeleteApiKey.\n *\n * @generated from rpc auth.v1.ApiKeyService.UpdateApiKey\n */\n updateApiKey: {\n methodKind: \"unary\";\n input: typeof UpdateApiKeyRequestSchema;\n output: typeof UpdateApiKeyResponseSchema;\n },\n /**\n * Create or replace the caller's Polyester AI assistant key set: one\n * ASSISTANT key per enabled account, each bounded by its API policy or by a\n * permission preset. One fresh step-up proof covers the whole set,\n * including the policies its presets create, and the change is all or\n * nothing. An entry whose account already has an assistant key with the same\n * public key keeps that key, with its status, and takes the requested\n * policy; any other entry replaces the account's key. Accounts left out of\n * the set have their assistant key revoked. A sub-account entry needs the\n * same access as CreateApiKey: owner, or a role that manages its API keys.\n * The acting caller's root account must have accepted the current terms;\n * otherwise FailedPrecondition with AUTH_TERMS_NOT_ACCEPTED is returned. A\n * policy that allows a money-out action returns FailedPrecondition with\n * AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED. A new key is registered only with\n * the registration proof and deadline the assistant issued with it\n * (PrepareAssistantKeys), before that deadline: a missing or failing proof\n * returns InvalidArgument with AUTH_ASSISTANT_KEY_PROOF_INVALID, a passed\n * deadline FailedPrecondition with AUTH_ASSISTANT_KEY_REGISTRATION_EXPIRED,\n * and one more than 15 minutes ahead InvalidArgument with\n * AUTH_ASSISTANT_KEY_DEADLINE_TOO_FAR.\n *\n * @generated from rpc auth.v1.ApiKeyService.SetAssistantKeys\n */\n setAssistantKeys: {\n methodKind: \"unary\";\n input: typeof SetAssistantKeysRequestSchema;\n output: typeof SetAssistantKeysResponseSchema;\n },\n /**\n * List the caller's non-revoked Polyester AI assistant keys, newest first.\n *\n * @generated from rpc auth.v1.ApiKeyService.ListAssistantKeys\n */\n listAssistantKeys: {\n methodKind: \"unary\";\n input: typeof ListAssistantKeysRequestSchema;\n output: typeof ListAssistantKeysResponseSchema;\n },\n /**\n * Revoke the caller's whole Polyester AI assistant key set. Revocation only\n * removes access, so it needs no step-up proof. Revocation is permanent. As\n * for DeleteApiKey, key management sees it at once, and requests signed with\n * a revoked key are refused within a few seconds of the response.\n *\n * @generated from rpc auth.v1.ApiKeyService.DeleteAssistantKeys\n */\n deleteAssistantKeys: {\n methodKind: \"unary\";\n input: typeof DeleteAssistantKeysRequestSchema;\n output: typeof DeleteAssistantKeysResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_auth_v1_api_keys, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,wBACX,uBAAS,g/HAAg/H;CAAC;CAAiC;CAAgC;AAA0B,CAAC;;;;;AAyIxlI,MAAa,eACX,0BAAY,uBAAuB,CAAC;;;;;AA4DtC,MAAa,4BACX,0BAAY,uBAAuB,CAAC;;;;;AAoBtC,MAAa,6BACX,0BAAY,uBAAuB,CAAC;;;;;AAsBtC,MAAa,2BACX,0BAAY,uBAAuB,CAAC;;;;;AAoBtC,MAAa,4BACX,0BAAY,uBAAuB,CAAC;;;;;AAqBtC,MAAa,4BACX,0BAAY,uBAAuB,CAAC;;;;;AActC,MAAa,6BACX,0BAAY,uBAAuB,CAAC;;;;;AAqBtC,MAAa,yBACX,0BAAY,u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AuB,CAAC;;;;;;AAOnC,MAAa,gBA+GX,0BAAY,uBAAuB,CAAC"}
1
+ {"version":3,"file":"api_keys_pb.js","names":[],"sources":["../../../../src/gen/auth/v1/api_keys_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file auth/v1/api_keys.proto (package auth.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 { FieldMask, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_field_mask, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file auth/v1/api_keys.proto.\n */\nexport const file_auth_v1_api_keys: GenFile = /*@__PURE__*/\n fileDesc(\"ChZhdXRoL3YxL2FwaV9rZXlzLnByb3RvEgdhdXRoLnYxIpAECgZBcGlLZXkSEAoGa2V5X2lkGAIgASgJQgASDQoFbGFiZWwYAyABKAkSDgoEaWNvbhgJIAEoCUIAEg8KBWNvbG9yGAogASgJQgASFgoMaXBfd2hpdGVsaXN0GAQgAygJQgASJQoGc3RhdHVzGAYgASgOMhUuYXV0aC52MS5BcGlLZXlTdGF0dXMSGgoNc3ViYWNjb3VudF9pZBgHIAEoBkgAiAEBEhYKCXBvbGljeV9pZBgIIAEoBkgBiAEBEi4KCmNyZWF0ZWRfYXQYFCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjAKDGxhc3RfdXNlZF9hdBgVIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASGgoScHVibGljX2tleV9lZDI1NTE5GBYgASgMEi4KCmV4cGlyZXNfYXQYFyABKAsyGi5nb29nbGUucHJvdG9idW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aXN0YW50S2V5cxIhLmF1dGgudjEuTGlzdEFzc2lzdGFudEtleXNSZXF1ZXN0GiIuYXV0aC52MS5MaXN0QXNzaXN0YW50S2V5c1Jlc3BvbnNlIgASYgoTRGVsZXRlQXNzaXN0YW50S2V5cxIjLmF1dGgudjEuRGVsZXRlQXNzaXN0YW50S2V5c1JlcXVlc3QaJC5hdXRoLnYxLkRlbGV0ZUFzc2lzdGFudEtleXNSZXNwb25zZSIAGgBCPFo6Z2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9hdXRoL3YxO2F1dGh2MWIGcHJvdG8z\", [file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * ApiKey is public API key metadata. It never includes the private key or seed.\n *\n * @generated from message auth.v1.ApiKey\n */\nexport type ApiKey = Message<\"auth.v1.ApiKey\"> & {\n /**\n * Stable opaque identifier used to refer to this key, formatted as \"ak_\"\n * followed by 32 lowercase hex characters.\n *\n * @generated from field: string key_id = 2;\n */\n keyId: string;\n\n /**\n * Human-readable label for the key. Maximum length is 64 characters.\n *\n * @generated from field: string label = 3;\n */\n label: string;\n\n /**\n * Optional user-chosen icon/emoji for UI display.\n *\n * @generated from field: string icon = 9;\n */\n icon: string;\n\n /**\n * Optional user-chosen color token for UI display.\n *\n * @generated from field: string color = 10;\n */\n color: string;\n\n /**\n * Optional CIDR whitelist. Empty means no IP restriction. Maximum 32 unique\n * entries.\n *\n * @generated from field: repeated string ip_whitelist = 4;\n */\n ipWhitelist: string[];\n\n /**\n * Current key status.\n *\n * @generated from field: auth.v1.ApiKeyStatus status = 6;\n */\n status: ApiKeyStatus;\n\n /**\n * Optional sub-account this key is scoped to (opaque ID; empty = root-level).\n *\n * @generated from field: optional fixed64 subaccount_id = 7;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Optional API policy attached to this key (opaque ID).\n * Empty means no policy is attached and the key has no permissions.\n *\n * @generated from field: optional fixed64 policy_id = 8;\n */\n policyId?: bigint | undefined;\n\n /**\n * Time in UTC when this key was created.\n *\n * @generated from field: google.protobuf.Timestamp created_at = 20;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * Approximate last time in UTC when this key authenticated a request,\n * recorded at most about once a minute; it may lag recent use by a few\n * minutes. Omitted when no use has been recorded.\n *\n * @generated from field: google.protobuf.Timestamp last_used_at = 21;\n */\n lastUsedAt?: Timestamp | undefined;\n\n /**\n * Ed25519 public key bytes associated with this API key. The private key or\n * seed is never returned by the API.\n *\n * @generated from field: bytes public_key_ed25519 = 22;\n */\n publicKeyEd25519: Uint8Array;\n\n /**\n * Optional expiry time in UTC. When set, the key cannot authenticate requests\n * after this time, regardless of status.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 23;\n */\n expiresAt?: Timestamp | undefined;\n\n /**\n * Read-only actor label describing who created this key, such as a username\n * or account label.\n *\n * @generated from field: string created_by_actor = 24;\n */\n createdByActor: string;\n\n /**\n * Time in UTC when this key's configuration was last changed. For the same\n * key, later is fresher, equal is an idempotent replay, and earlier is stale.\n * Equal timestamps with different configuration indicate an invariant failure.\n * This is independent of last_used_at, which tracks authentication activity.\n *\n * @generated from field: google.protobuf.Timestamp updated_at = 25;\n */\n updatedAt?: Timestamp | undefined;\n\n /**\n * Monotonic resource revision used for conditional updates.\n *\n * @generated from field: uint64 revision = 26;\n */\n revision: bigint;\n\n /**\n * What the key is for. ASSISTANT keys are managed with SetAssistantKeys and\n * are otherwise listed, updated and revoked like any key.\n *\n * @generated from field: auth.v1.ApiKeyPurpose purpose = 27;\n */\n purpose: ApiKeyPurpose;\n};\n\n/**\n * Describes the message auth.v1.ApiKey.\n * Use `create(ApiKeySchema)` to create a new message.\n */\nexport const ApiKeySchema: GenMessage<ApiKey> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 0);\n\n/**\n * CreateApiKeyRequest creates a new API key. Clients generate the Ed25519 key\n * pair locally and submit only the public key.\n *\n * @generated from message auth.v1.CreateApiKeyRequest\n */\nexport type CreateApiKeyRequest = Message<\"auth.v1.CreateApiKeyRequest\"> & {\n /**\n * Human-readable label for the key. Required; 1 to 64 characters, and must\n * not contain '<' or '>'.\n *\n * @generated from field: string label = 1;\n */\n label: string;\n\n /**\n * Optional sub-account to scope this key to (opaque ID). If unset, the key is\n * root-level.\n *\n * @generated from field: optional fixed64 subaccount_id = 3;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Optional user-chosen icon/emoji for UI display.\n *\n * @generated from field: string icon = 6;\n */\n icon: string;\n\n /**\n * Optional user-chosen color token for UI display.\n *\n * @generated from field: string color = 7;\n */\n color: string;\n\n /**\n * Optional CIDR whitelist. Empty means no IP restriction. Maximum 32 unique\n * entries.\n *\n * @generated from field: repeated string ip_whitelist = 4;\n */\n ipWhitelist: string[];\n\n /**\n * Ed25519 public key bytes. Must be exactly 32 bytes. The private key or seed\n * must never be sent to the API.\n *\n * @generated from field: bytes public_key_ed25519 = 5;\n */\n publicKeyEd25519: Uint8Array;\n};\n\n/**\n * Describes the message auth.v1.CreateApiKeyRequest.\n * Use `create(CreateApiKeyRequestSchema)` to create a new message.\n */\nexport const CreateApiKeyRequestSchema: GenMessage<CreateApiKeyRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 1);\n\n/**\n * CreateApiKeyResponse returns the created API key metadata.\n *\n * @generated from message auth.v1.CreateApiKeyResponse\n */\nexport type CreateApiKeyResponse = Message<\"auth.v1.CreateApiKeyResponse\"> & {\n /**\n * Created API key metadata. The private key or seed is never returned.\n *\n * @generated from field: auth.v1.ApiKey api_key = 1;\n */\n apiKey?: ApiKey | undefined;\n};\n\n/**\n * Describes the message auth.v1.CreateApiKeyResponse.\n * Use `create(CreateApiKeyResponseSchema)` to create a new message.\n */\nexport const CreateApiKeyResponseSchema: GenMessage<CreateApiKeyResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 2);\n\n/**\n * ListApiKeysRequest lists non-revoked API keys visible to the caller.\n *\n * @generated from message auth.v1.ListApiKeysRequest\n */\nexport type ListApiKeysRequest = Message<\"auth.v1.ListApiKeysRequest\"> & {\n /**\n * Optional filter: only keys scoped to this sub-account (opaque ID). The\n * caller must own or administer the sub-account. If unset, only non-revoked\n * keys owned by the caller are returned.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n};\n\n/**\n * Describes the message auth.v1.ListApiKeysRequest.\n * Use `create(ListApiKeysRequestSchema)` to create a new message.\n */\nexport const ListApiKeysRequestSchema: GenMessage<ListApiKeysRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 3);\n\n/**\n * ListApiKeysResponse contains matching API keys, newest first by creation time.\n *\n * @generated from message auth.v1.ListApiKeysResponse\n */\nexport type ListApiKeysResponse = Message<\"auth.v1.ListApiKeysResponse\"> & {\n /**\n * Matching API keys, newest first. Revoked keys are excluded.\n *\n * @generated from field: repeated auth.v1.ApiKey api_keys = 1;\n */\n apiKeys: ApiKey[];\n};\n\n/**\n * Describes the message auth.v1.ListApiKeysResponse.\n * Use `create(ListApiKeysResponseSchema)` to create a new message.\n */\nexport const ListApiKeysResponseSchema: GenMessage<ListApiKeysResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 4);\n\n/**\n * DeleteApiKeyRequest permanently revokes an API key.\n *\n * @generated from message auth.v1.DeleteApiKeyRequest\n */\nexport type DeleteApiKeyRequest = Message<\"auth.v1.DeleteApiKeyRequest\"> & {\n /**\n * Opaque API key identifier (e.g. \"ak_<hex>\"). This is the stable public\n * handle for a key.\n *\n * @generated from field: string key_id = 1;\n */\n keyId: string;\n};\n\n/**\n * Describes the message auth.v1.DeleteApiKeyRequest.\n * Use `create(DeleteApiKeyRequestSchema)` to create a new message.\n */\nexport const DeleteApiKeyRequestSchema: GenMessage<DeleteApiKeyRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 5);\n\n/**\n * DeleteApiKeyResponse is empty when revocation succeeds.\n *\n * @generated from message auth.v1.DeleteApiKeyResponse\n */\nexport type DeleteApiKeyResponse = Message<\"auth.v1.DeleteApiKeyResponse\"> & {\n};\n\n/**\n * Describes the message auth.v1.DeleteApiKeyResponse.\n * Use `create(DeleteApiKeyResponseSchema)` to create a new message.\n */\nexport const DeleteApiKeyResponseSchema: GenMessage<DeleteApiKeyResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 6);\n\n/**\n * GetApiKeyRequest returns one API key visible to its owner or a sub-account admin.\n *\n * @generated from message auth.v1.GetApiKeyRequest\n */\nexport type GetApiKeyRequest = Message<\"auth.v1.GetApiKeyRequest\"> & {\n /**\n * Opaque API key identifier, formatted as \"ak_\" followed by 32 lowercase hex\n * characters.\n *\n * @generated from field: string key_id = 1;\n */\n keyId: string;\n};\n\n/**\n * Describes the message auth.v1.GetApiKeyRequest.\n * Use `create(GetApiKeyRequestSchema)` to create a new message.\n */\nexport const GetApiKeyRequestSchema: GenMessage<GetApiKeyRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 7);\n\n/**\n * GetApiKeyResponse returns one API key visible to the caller.\n *\n * @generated from message auth.v1.GetApiKeyResponse\n */\nexport type GetApiKeyResponse = Message<\"auth.v1.GetApiKeyResponse\"> & {\n /**\n * Matching API key metadata.\n *\n * @generated from field: auth.v1.ApiKey api_key = 1;\n */\n apiKey?: ApiKey | undefined;\n};\n\n/**\n * Describes the message auth.v1.GetApiKeyResponse.\n * Use `create(GetApiKeyResponseSchema)` to create a new message.\n */\nexport const GetApiKeyResponseSchema: GenMessage<GetApiKeyResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 8);\n\n/**\n * ApiKeyUpdateSpec contains mutable API key configuration.\n *\n * @generated from message auth.v1.ApiKeyUpdateSpec\n */\nexport type ApiKeyUpdateSpec = Message<\"auth.v1.ApiKeyUpdateSpec\"> & {\n /**\n * Human-friendly label for the key. Empty clears the label when selected.\n * Must not contain '<' or '>'.\n *\n * @generated from field: string label = 1;\n */\n label: string;\n\n /**\n * User-chosen icon/emoji for UI display. Empty clears the icon when selected.\n *\n * @generated from field: string icon = 2;\n */\n icon: string;\n\n /**\n * User-chosen color token for UI display. Empty clears the color when selected.\n *\n * @generated from field: string color = 3;\n */\n color: string;\n\n /**\n * New status. ACTIVE and DISABLED are allowed; revocation uses DeleteApiKey.\n *\n * @generated from field: auth.v1.ApiKeyStatus status = 4;\n */\n status: ApiKeyStatus;\n\n /**\n * Complete replacement IP whitelist. Empty clears the restriction when selected.\n *\n * @generated from field: repeated string ip_whitelist = 5;\n */\n ipWhitelist: string[];\n\n /**\n * Expiry time in UTC. When selected, omission or the epoch clears expiry.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 6;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.ApiKeyUpdateSpec.\n * Use `create(ApiKeyUpdateSpecSchema)` to create a new message.\n */\nexport const ApiKeyUpdateSpecSchema: GenMessage<ApiKeyUpdateSpec> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 9);\n\n/**\n * UpdateApiKeyRequest changes selected mutable fields on an existing API key.\n *\n * @generated from message auth.v1.UpdateApiKeyRequest\n */\nexport type UpdateApiKeyRequest = Message<\"auth.v1.UpdateApiKeyRequest\"> & {\n /**\n * Opaque API key identifier to update.\n *\n * @generated from field: string key_id = 1;\n */\n keyId: string;\n\n /**\n * Candidate values for fields selected by update_mask.\n *\n * @generated from field: auth.v1.ApiKeyUpdateSpec api_key = 2;\n */\n apiKey?: ApiKeyUpdateSpec | undefined;\n\n /**\n * Mutable fields to apply. Paths are relative to api_key. The mask is required,\n * must be non-empty, and cannot contain \"*\".\n *\n * @generated from field: google.protobuf.FieldMask update_mask = 3;\n */\n updateMask?: FieldMask | undefined;\n\n /**\n * Revision returned by the latest successful read.\n *\n * @generated from field: uint64 expected_revision = 4;\n */\n expectedRevision: bigint;\n};\n\n/**\n * Describes the message auth.v1.UpdateApiKeyRequest.\n * Use `create(UpdateApiKeyRequestSchema)` to create a new message.\n */\nexport const UpdateApiKeyRequestSchema: GenMessage<UpdateApiKeyRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 10);\n\n/**\n * UpdateApiKeyResponse returns the API key after applying the update.\n *\n * @generated from message auth.v1.UpdateApiKeyResponse\n */\nexport type UpdateApiKeyResponse = Message<\"auth.v1.UpdateApiKeyResponse\"> & {\n /**\n * Updated API key metadata.\n *\n * @generated from field: auth.v1.ApiKey api_key = 1;\n */\n apiKey?: ApiKey | undefined;\n};\n\n/**\n * Describes the message auth.v1.UpdateApiKeyResponse.\n * Use `create(UpdateApiKeyResponseSchema)` to create a new message.\n */\nexport const UpdateApiKeyResponseSchema: GenMessage<UpdateApiKeyResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 11);\n\n/**\n * AssistantKeySpec is one account's key in the caller's assistant key set.\n *\n * @generated from message auth.v1.AssistantKeySpec\n */\nexport type AssistantKeySpec = Message<\"auth.v1.AssistantKeySpec\"> & {\n /**\n * Sub-account the key acts for (opaque ID). Unset means the caller's main\n * account. A key acts for exactly one account.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Ed25519 public key bytes the Polyester AI assistant signs with. Must be\n * exactly 32 bytes, and distinct within the set.\n *\n * @generated from field: bytes public_key_ed25519 = 2;\n */\n publicKeyEd25519: Uint8Array;\n\n /**\n * API policy that bounds the key (opaque ID). It must belong to the same\n * main account as the key, and must not allow EXTERNAL_WITHDRAW,\n * INTERNAL_TRANSFER, MANAGE_ADDRESS_BOOK or MANAGE_AUTO_WITHDRAW. Set\n * exactly one of policy_id and preset.\n *\n * @generated from field: fixed64 policy_id = 3;\n */\n policyId: bigint;\n\n /**\n * Time until which the key may be registered, as the Polyester AI assistant\n * issued it with the key (PrepareAssistantKeys), in whole milliseconds.\n * Required for a new key: it must still be ahead, and at most 15 minutes\n * ahead. Not needed when the account's current assistant key already has\n * this public key.\n *\n * @generated from field: google.protobuf.Timestamp registration_deadline = 4;\n */\n registrationDeadline?: Timestamp | undefined;\n\n /**\n * The key's own Ed25519 signature over the caller's account, the key's\n * account, its public key and registration_deadline, as the assistant\n * issued it with the key (64 bytes). Required for a new key; not needed\n * when the account's current assistant key already has this public key.\n *\n * @generated from field: bytes registration_proof = 5;\n */\n registrationProof: Uint8Array;\n\n /**\n * Permission preset that bounds the key, instead of policy_id. The key is\n * bound to the preset's policy in the key's main account: the existing one\n * with the preset's name and exactly its actions over all markets, else one\n * created in the same change. The response's policy_id names it. Set\n * exactly one of policy_id and preset.\n *\n * @generated from field: auth.v1.AssistantKeyPreset preset = 6;\n */\n preset: AssistantKeyPreset;\n};\n\n/**\n * Describes the message auth.v1.AssistantKeySpec.\n * Use `create(AssistantKeySpecSchema)` to create a new message.\n */\nexport const AssistantKeySpecSchema: GenMessage<AssistantKeySpec> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 12);\n\n/**\n * SetAssistantKeysRequest replaces the caller's assistant key set.\n *\n * @generated from message auth.v1.SetAssistantKeysRequest\n */\nexport type SetAssistantKeysRequest = Message<\"auth.v1.SetAssistantKeysRequest\"> & {\n /**\n * The complete set, at most one key per account and at most 64 keys. An\n * account left out loses its assistant key.\n *\n * @generated from field: repeated auth.v1.AssistantKeySpec keys = 1;\n */\n keys: AssistantKeySpec[];\n};\n\n/**\n * Describes the message auth.v1.SetAssistantKeysRequest.\n * Use `create(SetAssistantKeysRequestSchema)` to create a new message.\n */\nexport const SetAssistantKeysRequestSchema: GenMessage<SetAssistantKeysRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 13);\n\n/**\n * SetAssistantKeysResponse returns the caller's assistant key set.\n *\n * @generated from message auth.v1.SetAssistantKeysResponse\n */\nexport type SetAssistantKeysResponse = Message<\"auth.v1.SetAssistantKeysResponse\"> & {\n /**\n * The assistant keys now in the set, in request order.\n *\n * @generated from field: repeated auth.v1.ApiKey api_keys = 1;\n */\n apiKeys: ApiKey[];\n};\n\n/**\n * Describes the message auth.v1.SetAssistantKeysResponse.\n * Use `create(SetAssistantKeysResponseSchema)` to create a new message.\n */\nexport const SetAssistantKeysResponseSchema: GenMessage<SetAssistantKeysResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 14);\n\n/**\n * ListAssistantKeysRequest lists the caller's assistant key set.\n *\n * @generated from message auth.v1.ListAssistantKeysRequest\n */\nexport type ListAssistantKeysRequest = Message<\"auth.v1.ListAssistantKeysRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.ListAssistantKeysRequest.\n * Use `create(ListAssistantKeysRequestSchema)` to create a new message.\n */\nexport const ListAssistantKeysRequestSchema: GenMessage<ListAssistantKeysRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 15);\n\n/**\n * ListAssistantKeysResponse contains the caller's assistant keys.\n *\n * @generated from message auth.v1.ListAssistantKeysResponse\n */\nexport type ListAssistantKeysResponse = Message<\"auth.v1.ListAssistantKeysResponse\"> & {\n /**\n * Non-revoked assistant keys the caller set up, newest first.\n *\n * @generated from field: repeated auth.v1.ApiKey api_keys = 1;\n */\n apiKeys: ApiKey[];\n};\n\n/**\n * Describes the message auth.v1.ListAssistantKeysResponse.\n * Use `create(ListAssistantKeysResponseSchema)` to create a new message.\n */\nexport const ListAssistantKeysResponseSchema: GenMessage<ListAssistantKeysResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 16);\n\n/**\n * DeleteAssistantKeysRequest revokes the caller's whole assistant key set.\n *\n * @generated from message auth.v1.DeleteAssistantKeysRequest\n */\nexport type DeleteAssistantKeysRequest = Message<\"auth.v1.DeleteAssistantKeysRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.DeleteAssistantKeysRequest.\n * Use `create(DeleteAssistantKeysRequestSchema)` to create a new message.\n */\nexport const DeleteAssistantKeysRequestSchema: GenMessage<DeleteAssistantKeysRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 17);\n\n/**\n * DeleteAssistantKeysResponse lists the keys that were revoked.\n *\n * @generated from message auth.v1.DeleteAssistantKeysResponse\n */\nexport type DeleteAssistantKeysResponse = Message<\"auth.v1.DeleteAssistantKeysResponse\"> & {\n /**\n * Opaque identifiers of the keys revoked by this request. Empty when the set\n * was already empty.\n *\n * @generated from field: repeated string revoked_key_ids = 1;\n */\n revokedKeyIds: string[];\n};\n\n/**\n * Describes the message auth.v1.DeleteAssistantKeysResponse.\n * Use `create(DeleteAssistantKeysResponseSchema)` to create a new message.\n */\nexport const DeleteAssistantKeysResponseSchema: GenMessage<DeleteAssistantKeysResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_api_keys, 18);\n\n/**\n * Status of an API key.\n *\n * @generated from enum auth.v1.ApiKeyStatus\n */\nexport enum ApiKeyStatus {\n /**\n * No API key status specified.\n *\n * @generated from enum value: API_KEY_STATUS_UNSPECIFIED = 0;\n */\n API_KEY_STATUS_UNSPECIFIED = 0,\n\n /**\n * Key can authenticate requests.\n *\n * @generated from enum value: ACTIVE = 1;\n */\n ACTIVE = 1,\n\n /**\n * Key has been permanently revoked and cannot be used again.\n *\n * @generated from enum value: REVOKED = 2;\n */\n REVOKED = 2,\n\n /**\n * Key is temporarily disabled and cannot authenticate requests until re-enabled.\n *\n * @generated from enum value: DISABLED = 3;\n */\n DISABLED = 3,\n}\n\n/**\n * Describes the enum auth.v1.ApiKeyStatus.\n */\nexport const ApiKeyStatusSchema: GenEnum<ApiKeyStatus> = /*@__PURE__*/\n enumDesc(file_auth_v1_api_keys, 0);\n\n/**\n * Purpose of an API key.\n *\n * @generated from enum auth.v1.ApiKeyPurpose\n */\nexport enum ApiKeyPurpose {\n /**\n * No purpose specified.\n *\n * @generated from enum value: PURPOSE_UNSPECIFIED = 0;\n */\n PURPOSE_UNSPECIFIED = 0,\n\n /**\n * A key the account holder created for their own programs.\n *\n * @generated from enum value: STANDARD = 1;\n */\n STANDARD = 1,\n\n /**\n * A key the account holder created for the Polyester AI assistant through\n * SetAssistantKeys. Its policy can never allow actions that move value out\n * of the account or manage where it goes, such as external withdrawals or\n * internal transfers. Only its creator's assistant uses it, so a sub-account\n * assistant key is revoked when its creator loses the role that manages the\n * sub-account's API keys or leaves the sub-account.\n *\n * @generated from enum value: ASSISTANT = 2;\n */\n ASSISTANT = 2,\n}\n\n/**\n * Describes the enum auth.v1.ApiKeyPurpose.\n */\nexport const ApiKeyPurposeSchema: GenEnum<ApiKeyPurpose> = /*@__PURE__*/\n enumDesc(file_auth_v1_api_keys, 1);\n\n/**\n * AssistantKeyPreset is a fixed permission set for a Polyester AI assistant\n * key. SetAssistantKeys turns it into an API policy of the key's main account,\n * named after the preset, so the policy and the key need only the set's one\n * step-up proof. No preset ever allows a money-out action (EXTERNAL_WITHDRAW,\n * INTERNAL_TRANSFER, MANAGE_ADDRESS_BOOK, MANAGE_AUTO_WITHDRAW), API-key or\n * policy management, or any action that weakens account security.\n *\n * @generated from enum auth.v1.AssistantKeyPreset\n */\nexport enum AssistantKeyPreset {\n /**\n * No preset selected.\n *\n * @generated from enum value: PRESET_UNSPECIFIED = 0;\n */\n PRESET_UNSPECIFIED = 0,\n\n /**\n * Read actions only: READ_BALANCES, READ_SPOT, READ_INTERNAL_TRANSFERS,\n * READ_AUTO_WITHDRAW, READ_API_KEYS, READ_SUBACCOUNTS,\n * READ_DEPOSIT_ADDRESSES and READ_STATEMENTS. On the main account, also\n * READ_PRICE_ALERTS, a main-account permission. Policy name \"Polyester AI -\n * Read only (main account)\" on the main account, \"Polyester AI - Read only\n * (sub-account)\" on a sub-account.\n *\n * @generated from enum value: READ_ONLY = 1;\n */\n READ_ONLY = 1,\n\n /**\n * READ_ONLY plus TRADE_SPOT, SWAP and CREATE_DEPOSIT_ADDRESS: the assistant\n * also places, changes and cancels orders and triggers, and swaps, each only\n * after the user approves that change, and creates deposit addresses, which\n * move no funds out. On the main account, also MANAGE_PRICE_ALERTS: price\n * alerts move no funds. Policy name \"Polyester AI - Trade with\n * approval (main account)\" on the main account, \"Polyester AI - Trade with\n * approval (sub-account)\" on a sub-account.\n *\n * @generated from enum value: TRADE_WITH_APPROVAL = 2;\n */\n TRADE_WITH_APPROVAL = 2,\n}\n\n/**\n * Describes the enum auth.v1.AssistantKeyPreset.\n */\nexport const AssistantKeyPresetSchema: GenEnum<AssistantKeyPreset> = /*@__PURE__*/\n enumDesc(file_auth_v1_api_keys, 2);\n\n/**\n * ApiKeyService manages API keys for authenticated callers.\n *\n * @generated from service auth.v1.ApiKeyService\n */\nexport const ApiKeyService: GenService<{\n /**\n * Create a new API key for the caller. Account security settings may require\n * MFA enrollment or a fresh step-up proof. The acting caller's root account\n * must have accepted the current terms, including when targeting a shared\n * subaccount; otherwise FailedPrecondition with AUTH_TERMS_NOT_ACCEPTED is returned.\n *\n * @generated from rpc auth.v1.ApiKeyService.CreateApiKey\n */\n createApiKey: {\n methodKind: \"unary\";\n input: typeof CreateApiKeyRequestSchema;\n output: typeof CreateApiKeyResponseSchema;\n },\n /**\n * List non-revoked API keys visible to the caller, newest first. An API key\n * needs READ_API_KEYS; a key scoped to a sub-account sees only that\n * sub-account's keys.\n *\n * @generated from rpc auth.v1.ApiKeyService.ListApiKeys\n */\n listApiKeys: {\n methodKind: \"unary\";\n input: typeof ListApiKeysRequestSchema;\n output: typeof ListApiKeysResponseSchema;\n },\n /**\n * Get a single API key owned by the caller or scoped to a sub-account the caller administers.\n * An API key needs READ_API_KEYS; a key scoped to a sub-account reads only\n * that sub-account's keys.\n *\n * @generated from rpc auth.v1.ApiKeyService.GetApiKey\n */\n getApiKey: {\n methodKind: \"unary\";\n input: typeof GetApiKeyRequestSchema;\n output: typeof GetApiKeyResponseSchema;\n },\n /**\n * Revoke an API key permanently.\n *\n * @generated from rpc auth.v1.ApiKeyService.DeleteApiKey\n */\n deleteApiKey: {\n methodKind: \"unary\";\n input: typeof DeleteApiKeyRequestSchema;\n output: typeof DeleteApiKeyResponseSchema;\n },\n /**\n * Update API key metadata and allowed status transitions. Revocation must use\n * DeleteApiKey.\n *\n * @generated from rpc auth.v1.ApiKeyService.UpdateApiKey\n */\n updateApiKey: {\n methodKind: \"unary\";\n input: typeof UpdateApiKeyRequestSchema;\n output: typeof UpdateApiKeyResponseSchema;\n },\n /**\n * Create or replace the caller's Polyester AI assistant key set: one\n * ASSISTANT key per enabled account, each bounded by its API policy or by a\n * permission preset. One fresh step-up proof covers the whole set,\n * including the policies its presets create, and the change is all or\n * nothing. An entry whose account already has an assistant key with the same\n * public key keeps that key, with its status, and takes the requested\n * policy; any other entry replaces the account's key. Accounts left out of\n * the set have their assistant key revoked. A sub-account entry needs the\n * same access as CreateApiKey: owner, or a role that manages its API keys.\n * The acting caller's root account must have accepted the current terms;\n * otherwise FailedPrecondition with AUTH_TERMS_NOT_ACCEPTED is returned. A\n * policy that allows a money-out action returns FailedPrecondition with\n * AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED. A new key is registered only with\n * the registration proof and deadline the assistant issued with it\n * (PrepareAssistantKeys), before that deadline: a missing or failing proof\n * returns InvalidArgument with AUTH_ASSISTANT_KEY_PROOF_INVALID, a passed\n * deadline FailedPrecondition with AUTH_ASSISTANT_KEY_REGISTRATION_EXPIRED,\n * and one more than 15 minutes ahead InvalidArgument with\n * AUTH_ASSISTANT_KEY_DEADLINE_TOO_FAR.\n *\n * @generated from rpc auth.v1.ApiKeyService.SetAssistantKeys\n */\n setAssistantKeys: {\n methodKind: \"unary\";\n input: typeof SetAssistantKeysRequestSchema;\n output: typeof SetAssistantKeysResponseSchema;\n },\n /**\n * List the caller's non-revoked Polyester AI assistant keys, newest first.\n *\n * @generated from rpc auth.v1.ApiKeyService.ListAssistantKeys\n */\n listAssistantKeys: {\n methodKind: \"unary\";\n input: typeof ListAssistantKeysRequestSchema;\n output: typeof ListAssistantKeysResponseSchema;\n },\n /**\n * Revoke the caller's whole Polyester AI assistant key set. Revocation only\n * removes access, so it needs no step-up proof. Revocation is permanent. As\n * for DeleteApiKey, key management sees it at once, and requests signed with\n * a revoked key are refused within a few seconds of the response.\n *\n * @generated from rpc auth.v1.ApiKeyService.DeleteAssistantKeys\n */\n deleteAssistantKeys: {\n methodKind: \"unary\";\n input: typeof DeleteAssistantKeysRequestSchema;\n output: typeof DeleteAssistantKeysResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_auth_v1_api_keys, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,wBACX,uBAAS,g/HAAg/H;CAAC;CAAiC;CAAgC;AAA0B,CAAC;;;;;AAyIxlI,MAAa,eACX,0BAAY,uBAAuB,CAAC;;;;;AA4DtC,MAAa,4BACX,0BAAY,uBAAuB,CAAC;;;;;AAoBtC,MAAa,6BACX,0BAAY,uBAAuB,CAAC;;;;;AAsBtC,MAAa,2BACX,0BAAY,uBAAuB,CAAC;;;;;AAoBtC,MAAa,4BACX,0BAAY,uBAAuB,CAAC;;;;;AAqBtC,MAAa,4BACX,0BAAY,uBAAuB,CAAC;;;;;AActC,MAAa,6BACX,0BAAY,uBAAuB,CAAC;;;;;AAqBtC,MAAa,yBACX,0BAAY,uBAAuB,CAAC;;;;;AAoBtC,MAAa,0BACX,0BAAY,uBAAuB,CAAC;;;;;AAwDtC,MAAa,yBACX,0BAAY,uBAAuB,CAAC;;;;;AA0CtC,MAAa,4BACX,0BAAY,uBAAuB,EAAE;;;;;AAoBvC,MAAa,6BACX,0BAAY,uBAAuB,EAAE;;;;;AAuEvC,MAAa,yBACX,0BAAY,uBAAuB,EAAE;;;;;AAqBvC,MAAa,gCACX,0BAAY,uBAAuB,EAAE;;;;;AAoBvC,MAAa,iCACX,0BAAY,uBAAuB,EAAE;;;;;AAcvC,MAAa,iCACX,0BAAY,uBAAuB,EAAE;;;;;AAoBvC,MAAa,kCACX,0BAAY,uBAAuB,EAAE;;;;;AAcvC,MAAa,mCACX,0BAAY,uBAAuB,EAAE;;;;;AAqBvC,MAAa,oCACX,0BAAY,uBAAuB,EAAE;;;;;;AAOvC,IAAY,eAAL,yBAAA,cAAA;;;;;;CAML,aAAA,aAAA,gCAAA,KAAA;;;;;;CAOA,aAAA,aAAA,YAAA,KAAA;;;;;;CAOA,aAAA,aAAA,aAAA,KAAA;;;;;;CAOA,aAAA,aAAA,cAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,qBACX,uBAAS,uBAAuB,CAAC;;;;;;AAOnC,IAAY,gBAAL,yBAAA,eAAA;;;;;;CAML,cAAA,cAAA,yBAAA,KAAA;;;;;;CAOA,cAAA,cAAA,cAAA,KAAA;;;;;;;;;;;CAYA,cAAA,cAAA,eAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,sBACX,uBAAS,uBAAuB,CAAC;;;;;;;;;;;AAYnC,IAAY,qBAAL,yBAAA,oBAAA;;;;;;CAML,mBAAA,mBAAA,wBAAA,KAAA;;;;;;;;;;;CAYA,mBAAA,mBAAA,eAAA,KAAA;;;;;;;;;;;;CAaA,mBAAA,mBAAA,yBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,2BACX,uBAAS,uBAAuB,CAAC;;;;;;AAOnC,MAAa,gBA+GX,0BAAY,uBAAuB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { SessionInfo } from "./mfa_pb.js";
2
- import { Message } from "@bufbuild/protobuf";
3
2
  import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
4
3
  import { Timestamp } from "@bufbuild/protobuf/wkt";
4
+ import { Message } from "@bufbuild/protobuf";
5
5
  declare namespace auth_pb_d_exports {
6
6
  export { AcceptTermsRequest, AcceptTermsRequestSchema, AcceptTermsResponse, AcceptTermsResponseSchema, AuthErrorCode, AuthErrorCodeSchema, AuthErrorDetail, AuthErrorDetailSchema, AuthService, CreateWalletChallengeRequest, CreateWalletChallengeRequestSchema, CreateWalletChallengeResponse, CreateWalletChallengeResponseSchema, LoginWithWalletRequest, LoginWithWalletRequestSchema, LoginWithWalletResponse, LoginWithWalletResponseSchema, MeRequest, MeRequestSchema, MeResponse, MeResponseSchema, WalletChallengePurpose, WalletChallengePurposeSchema, file_auth_v1_auth };
7
7
  }
@@ -1,6 +1,6 @@
1
- import { JsonObject, Message } from "@bufbuild/protobuf";
2
1
  import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
3
2
  import { Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import { JsonObject, Message } from "@bufbuild/protobuf";
4
4
  declare namespace mfa_pb_d_exports {
5
5
  export { BeginMFAChallengeRequest, BeginMFAChallengeRequestSchema, BeginMFAChallengeResponse, BeginMFAChallengeResponseSchema, BeginPasskeyEnrollmentRequest, BeginPasskeyEnrollmentRequestSchema, BeginPasskeyEnrollmentResponse, BeginPasskeyEnrollmentResponseSchema, BeginTOTPEnrollmentRequest, BeginTOTPEnrollmentRequestSchema, BeginTOTPEnrollmentResponse, BeginTOTPEnrollmentResponseSchema, ClaimFreshStepUpRequest, ClaimFreshStepUpRequestSchema, ClaimFreshStepUpResponse, ClaimFreshStepUpResponseSchema, CompleteMFAChallengeResponse, CompleteMFAChallengeResponseSchema, ConsumeFreshStepUpRequest, ConsumeFreshStepUpRequestSchema, ConsumeFreshStepUpResponse, ConsumeFreshStepUpResponseSchema, DeleteMFAFactorRequest, DeleteMFAFactorRequestSchema, DeleteMFAFactorResponse, DeleteMFAFactorResponseSchema, FinishPasskeyChallengeRequest, FinishPasskeyChallengeRequestSchema, FinishPasskeyEnrollmentRequest, FinishPasskeyEnrollmentRequestSchema, FinishPasskeyEnrollmentResponse, FinishPasskeyEnrollmentResponseSchema, FinishTOTPEnrollmentRequest, FinishTOTPEnrollmentRequestSchema, FinishTOTPEnrollmentResponse, FinishTOTPEnrollmentResponseSchema, ListMFAFactorsRequest, ListMFAFactorsRequestSchema, ListMFAFactorsResponse, ListMFAFactorsResponseSchema, MFAChallengePurpose, MFAChallengePurposeSchema, MFAFactor, MFAFactorSchema, MFAFactorType, MFAFactorTypeSchema, MFAService, RegenerateRecoveryCodesRequest, RegenerateRecoveryCodesRequestSchema, RegenerateRecoveryCodesResponse, RegenerateRecoveryCodesResponseSchema, ReleaseFreshStepUpRequest, ReleaseFreshStepUpRequestSchema, ReleaseFreshStepUpResponse, ReleaseFreshStepUpResponseSchema, SessionInfo, SessionInfoSchema, SessionLevel, SessionLevelSchema, UpdateMFAFactorRequest, UpdateMFAFactorRequestSchema, UpdateMFAFactorResponse, UpdateMFAFactorResponseSchema, VerifyRecoveryCodeChallengeRequest, VerifyRecoveryCodeChallengeRequestSchema, VerifyTOTPChallengeRequest, VerifyTOTPChallengeRequestSchema, file_auth_v1_mfa };
6
6
  }
@@ -1,6 +1,6 @@
1
- import { Message } from "@bufbuild/protobuf";
2
1
  import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
3
2
  import { FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import { Message } from "@bufbuild/protobuf";
4
4
  declare namespace policies_pb_d_exports {
5
5
  export { ApiPolicySpec, ApiPolicySpecSchema, ApiPolicyView, ApiPolicyViewSchema, CreateApiPolicyRequest, CreateApiPolicyRequestSchema, CreateApiPolicyResponse, CreateApiPolicyResponseSchema, CreateSubaccountPolicyRequest, CreateSubaccountPolicyRequestSchema, CreateSubaccountPolicyResponse, CreateSubaccountPolicyResponseSchema, DeleteApiPolicyRequest, DeleteApiPolicyRequestSchema, DeleteApiPolicyResponse, DeleteApiPolicyResponseSchema, DeleteSubaccountPolicyRequest, DeleteSubaccountPolicyRequestSchema, DeleteSubaccountPolicyResponse, DeleteSubaccountPolicyResponseSchema, GetApiPolicyRequest, GetApiPolicyRequestSchema, GetApiPolicyResponse, GetApiPolicyResponseSchema, GetSubaccountPolicyRequest, GetSubaccountPolicyRequestSchema, GetSubaccountPolicyResponse, GetSubaccountPolicyResponseSchema, ListApiPoliciesRequest, ListApiPoliciesRequestSchema, ListApiPoliciesResponse, ListApiPoliciesResponseSchema, ListSubaccountPoliciesRequest, ListSubaccountPoliciesRequestSchema, ListSubaccountPoliciesResponse, ListSubaccountPoliciesResponseSchema, MarketScope, MarketScopeSchema, MarketScope_Value, MarketScope_ValueSchema, PolicyAction, PolicyActionSchema, PolicyService, SetApiKeyPolicyRequest, SetApiKeyPolicyRequestSchema, SetApiKeyPolicyResponse, SetApiKeyPolicyResponseSchema, SetSubaccountPolicyRequest, SetSubaccountPolicyRequestSchema, SetSubaccountPolicyResponse, SetSubaccountPolicyResponseSchema, SpotMarketRule, SpotMarketRuleSchema, SpotMarketSelector, SpotMarketSelectorSchema, SubaccountPolicySpec, SubaccountPolicySpecSchema, SubaccountPolicyView, SubaccountPolicyViewSchema, UpdateApiPolicyRequest, UpdateApiPolicyRequestSchema, UpdateApiPolicyResponse, UpdateApiPolicyResponseSchema, UpdateSubaccountPolicyRequest, UpdateSubaccountPolicyRequestSchema, UpdateSubaccountPolicyResponse, UpdateSubaccountPolicyResponseSchema, file_auth_v1_policies };
6
6
  }
@@ -1204,7 +1204,15 @@ declare enum PolicyAction {
1204
1204
  *
1205
1205
  * @generated from enum value: MANAGE_PRICE_ALERTS = 37;
1206
1206
  */
1207
- MANAGE_PRICE_ALERTS = 37
1207
+ MANAGE_PRICE_ALERTS = 37,
1208
+ /**
1209
+ * Allow exporting account statements: the account's balance movements for a
1210
+ * period, with fees and the balance after each entry. It grants no other
1211
+ * balance or transfer read.
1212
+ *
1213
+ * @generated from enum value: READ_STATEMENTS = 38;
1214
+ */
1215
+ READ_STATEMENTS = 38
1208
1216
  }
1209
1217
  /**
1210
1218
  * Describes the enum auth.v1.PolicyAction.
@@ -1 +1 @@
1
- {"version":3,"file":"policies_pb.d.ts","names":[],"sources":["../../../../src/gen/auth/v1/policies_pb.ts"],"mappings":";;;;;;;;;cAca,uBAAuB;;;;;;KAQxB,cAAc;;;;;cAOb,mBAAmB,WAAW;;;;;;;;aAU/B;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,yBAAyB,QAAQ;;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