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

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 (289) hide show
  1. package/CHANGELOG.md +37 -1
  2. package/dist/browser-core.js +1 -1
  3. package/dist/catalogs/index.d.ts +2 -2
  4. package/dist/catalogs/readers.d.ts.map +1 -1
  5. package/dist/catalogs/readers.js +1 -1
  6. package/dist/catalogs/readers.js.map +1 -1
  7. package/dist/catalogs/snapshot-validation.js +11 -7
  8. package/dist/catalogs/snapshot-validation.js.map +1 -1
  9. package/dist/catalogs/unknown-asset.d.ts.map +1 -1
  10. package/dist/catalogs/unknown-asset.js +4 -4
  11. package/dist/catalogs/unknown-asset.js.map +1 -1
  12. package/dist/catalogs/zipper-catalog.d.ts +2 -0
  13. package/dist/catalogs/zipper-catalog.d.ts.map +1 -1
  14. package/dist/catalogs/zipper-catalog.js.map +1 -1
  15. package/dist/core-client.d.ts.map +1 -1
  16. package/dist/core-client.js +2 -1
  17. package/dist/core-client.js.map +1 -1
  18. package/dist/gen/ai/v1/assistant_pb.d.ts +1 -1
  19. package/dist/gen/ai/v1/assistant_pb.js +1 -1
  20. package/dist/gen/alerts/v1/price_alerts_pb.d.ts +1 -1
  21. package/dist/gen/auth/v1/address_book_pb.d.ts +1 -1
  22. package/dist/gen/auth/v1/api_keys_pb.d.ts +6 -6
  23. package/dist/gen/auth/v1/api_keys_pb.js +5 -5
  24. package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
  25. package/dist/gen/auth/v1/auth_pb.d.ts +1 -1
  26. package/dist/gen/auth/v1/mfa_pb.d.ts +1 -1
  27. package/dist/gen/auth/v1/policies_pb.d.ts +10 -2
  28. package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
  29. package/dist/gen/auth/v1/policies_pb.js +9 -1
  30. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  31. package/dist/gen/auth/v1/profile_pb.d.ts +1 -1
  32. package/dist/gen/auth/v1/resolve_pb.d.ts +1 -1
  33. package/dist/gen/auth/v1/social_verification_pb.d.ts +1 -1
  34. package/dist/gen/auth/v1/subaccounts_pb.d.ts +8 -2
  35. package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
  36. package/dist/gen/auth/v1/subaccounts_pb.js +8 -2
  37. package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
  38. package/dist/gen/chain/analytics/v1/analytics_read_pb.d.ts +1 -1
  39. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +1 -1
  40. package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +1 -1
  41. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +1 -1
  42. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +1 -1
  43. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +1 -1
  44. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +1 -1
  45. package/dist/gen/chain/zipper/v1/reason_pb.d.ts +1 -1
  46. package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +48 -3
  47. package/dist/gen/chain/zipper/v1/zipper_pb.d.ts.map +1 -1
  48. package/dist/gen/chain/zipper/v1/zipper_pb.js +36 -2
  49. package/dist/gen/chain/zipper/v1/zipper_pb.js.map +1 -1
  50. package/dist/gen/changelog/v1/changelog_pb.d.ts +7 -4
  51. package/dist/gen/changelog/v1/changelog_pb.d.ts.map +1 -1
  52. package/dist/gen/changelog/v1/changelog_pb.js +2 -1
  53. package/dist/gen/changelog/v1/changelog_pb.js.map +1 -1
  54. package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +1 -1
  55. package/dist/gen/claims/v1/claims_pb.d.ts +1 -1
  56. package/dist/gen/fees/v1/fees_pb.d.ts +1 -1
  57. package/dist/gen/index.d.ts +2 -1
  58. package/dist/gen/index.js +22 -21
  59. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +126 -3
  60. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts.map +1 -1
  61. package/dist/gen/ledger/read/v1/ledger_read_pb.js +17 -3
  62. package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
  63. package/dist/gen/marketdata/v1/asset_info_pb.d.ts +178 -0
  64. package/dist/gen/marketdata/v1/asset_info_pb.d.ts.map +1 -0
  65. package/dist/gen/marketdata/v1/asset_info_pb.js +45 -0
  66. package/dist/gen/marketdata/v1/asset_info_pb.js.map +1 -0
  67. package/dist/gen/marketdata/v1/heatmap_pb.d.ts +1 -1
  68. package/dist/gen/marketdata/v1/marketdata_pb.d.ts +13 -1
  69. package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
  70. package/dist/gen/marketdata/v1/marketdata_pb.js +6 -1
  71. package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
  72. package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +1 -1
  73. package/dist/gen/notifications/v1/notifications_pb.d.ts +1 -1
  74. package/dist/gen/orderbook/v1/orderbook_pb.d.ts +1 -1
  75. package/dist/gen/orders/v1/orders_pb.d.ts +1 -1
  76. package/dist/gen/orders/v1/orders_read_pb.d.ts +1 -1
  77. package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +1 -1
  78. package/dist/gen/polyester/type/v1/u128_pb.d.ts +1 -1
  79. package/dist/gen/privatews/v1/private_ws_pb.d.ts +1 -1
  80. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +1 -1
  81. package/dist/gen/rewards/v1/rewards_pb.d.ts +1 -1
  82. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +13 -1
  83. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
  84. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +12 -0
  85. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
  86. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +14 -10
  87. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  88. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +10 -7
  89. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  90. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +3 -3
  91. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -1
  92. package/dist/gen/swap/v1/swap_pb.d.ts +1 -1
  93. package/dist/gen/system/v1/system_pb.d.ts +408 -3
  94. package/dist/gen/system/v1/system_pb.d.ts.map +1 -1
  95. package/dist/gen/system/v1/system_pb.js +221 -3
  96. package/dist/gen/system/v1/system_pb.js.map +1 -1
  97. package/dist/gen/tradews/v1/trade_ws_pb.d.ts +1 -1
  98. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +1 -1
  99. package/dist/gen/triggers/v1/triggers_pb.d.ts +7 -5
  100. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  101. package/dist/gen/triggers/v1/triggers_pb.js +6 -4
  102. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  103. package/dist/gen/vip/v1/vip_pb.d.ts +1 -1
  104. package/dist/index.d.ts +7 -4
  105. package/dist/index.js +1 -1
  106. package/dist/realtime/private-orders.d.ts +8 -0
  107. package/dist/realtime/private-orders.d.ts.map +1 -1
  108. package/dist/realtime/private-orders.js +38 -5
  109. package/dist/realtime/private-orders.js.map +1 -1
  110. package/dist/realtime/snapshot-then-stream.js +1 -1
  111. package/dist/server-core.js +3 -3
  112. package/dist/services/accounts/accounts.js +1 -1
  113. package/dist/services/accounts/accounts.schemas.js +1 -1
  114. package/dist/services/address-book/address-book.js +1 -1
  115. package/dist/services/address-book/address-book.schemas.d.ts.map +1 -1
  116. package/dist/services/address-book/address-book.schemas.js +4 -4
  117. package/dist/services/address-book/address-book.schemas.js.map +1 -1
  118. package/dist/services/api-keys/api-keys.codecs.d.ts +2 -2
  119. package/dist/services/api-keys/api-keys.codecs.js +2 -2
  120. package/dist/services/api-keys/api-keys.codecs.js.map +1 -1
  121. package/dist/services/api-keys/api-keys.js +1 -1
  122. package/dist/services/api-keys/api-keys.schemas.js +1 -1
  123. package/dist/services/assistant/assistant-events.schemas.d.ts +100 -71
  124. package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -1
  125. package/dist/services/assistant/assistant.js +1 -1
  126. package/dist/services/assistant/assistant.schemas.d.ts +1 -1
  127. package/dist/services/assistant/assistant.schemas.js +1 -1
  128. package/dist/services/auth/account-signer-auth.js +2 -2
  129. package/dist/services/auth/auth.js +1 -1
  130. package/dist/services/auth/profile/profile.js +2 -2
  131. package/dist/services/auto-withdraw/auto-withdraw.js +1 -1
  132. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +13 -13
  133. package/dist/services/auto-withdraw/auto-withdraw.schemas.js +1 -1
  134. package/dist/services/balances/balances.d.ts +12 -1
  135. package/dist/services/balances/balances.d.ts.map +1 -1
  136. package/dist/services/balances/balances.js +38 -2
  137. package/dist/services/balances/balances.js.map +1 -1
  138. package/dist/services/balances/balances.schemas.d.ts +61 -25
  139. package/dist/services/balances/balances.schemas.d.ts.map +1 -1
  140. package/dist/services/balances/balances.schemas.js +24 -3
  141. package/dist/services/balances/balances.schemas.js.map +1 -1
  142. package/dist/services/balances/balances.types.d.ts +2 -2
  143. package/dist/services/candles/candles.js +2 -2
  144. package/dist/services/chain-analytics/chain-analytics.js +1 -1
  145. package/dist/services/changelog/changelog.js +1 -1
  146. package/dist/services/changelog/changelog.schemas.d.ts +38 -38
  147. package/dist/services/checkpoints/checkpoints.js +1 -1
  148. package/dist/services/checkpoints/checkpoints.schemas.d.ts +2 -2
  149. package/dist/services/claims/claims.js +1 -1
  150. package/dist/services/claims/claims.schemas.d.ts +2 -2
  151. package/dist/services/claims/claims.schemas.js +1 -1
  152. package/dist/services/deposit/deposit.js +1 -1
  153. package/dist/services/fees/fees.js +1 -1
  154. package/dist/services/guard-signer/guard-signer.js +1 -1
  155. package/dist/services/guard-signer/guard-signer.schemas.js +1 -1
  156. package/dist/services/heatmap/heatmap.js +2 -2
  157. package/dist/services/internal-transfers/internal-transfers.js +1 -1
  158. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +3 -3
  159. package/dist/services/lifecycle/lifecycle.js +3 -3
  160. package/dist/services/lifecycle/lifecycle.schemas.d.ts +40 -40
  161. package/dist/services/lifecycle/lifecycle.schemas.js +2 -2
  162. package/dist/services/market-data/market-data.d.ts +7 -1
  163. package/dist/services/market-data/market-data.d.ts.map +1 -1
  164. package/dist/services/market-data/market-data.js +14 -3
  165. package/dist/services/market-data/market-data.js.map +1 -1
  166. package/dist/services/market-data/market-data.schemas.d.ts +108 -1
  167. package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
  168. package/dist/services/market-data/market-data.schemas.js +42 -2
  169. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  170. package/dist/services/market-data/market-data.types.d.ts +2 -2
  171. package/dist/services/market-overview/market-overview.js +2 -2
  172. package/dist/services/market-overview/market-overview.schemas.js +1 -1
  173. package/dist/services/notifications/notifications.js +1 -1
  174. package/dist/services/notifications/notifications.schemas.d.ts +1 -1
  175. package/dist/services/orderbook/orderbook.js +1 -1
  176. package/dist/services/orders/order-errors.schemas.d.ts +2 -2
  177. package/dist/services/orders/order-errors.schemas.d.ts.map +1 -1
  178. package/dist/services/orders/order-errors.schemas.js +8 -5
  179. package/dist/services/orders/order-errors.schemas.js.map +1 -1
  180. package/dist/services/orders/orders-batch.schemas.d.ts +48 -48
  181. package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
  182. package/dist/services/orders/orders-batch.schemas.js +5 -4
  183. package/dist/services/orders/orders-batch.schemas.js.map +1 -1
  184. package/dist/services/orders/orders-input.schemas.d.ts +8 -8
  185. package/dist/services/orders/orders-input.schemas.js +3 -3
  186. package/dist/services/orders/orders-modify.schemas.d.ts.map +1 -1
  187. package/dist/services/orders/orders-modify.schemas.js +4 -3
  188. package/dist/services/orders/orders-modify.schemas.js.map +1 -1
  189. package/dist/services/orders/orders-output.schemas.d.ts +17 -17
  190. package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
  191. package/dist/services/orders/orders-output.schemas.js +2 -10
  192. package/dist/services/orders/orders-output.schemas.js.map +1 -1
  193. package/dist/services/orders/orders-risk.schemas.js +3 -3
  194. package/dist/services/orders/orders.d.ts +6 -0
  195. package/dist/services/orders/orders.d.ts.map +1 -1
  196. package/dist/services/orders/orders.js +6 -2
  197. package/dist/services/orders/orders.js.map +1 -1
  198. package/dist/services/policies/api-key-policies/api-key-policies.js +1 -1
  199. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
  200. package/dist/services/policies/shared.codecs.js +7 -4
  201. package/dist/services/policies/shared.codecs.js.map +1 -1
  202. package/dist/services/policies/shared.d.ts +1 -1
  203. package/dist/services/policies/subaccount-policies/subaccount-policies.js +2 -2
  204. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
  205. package/dist/services/price-alerts/price-alerts.js +1 -1
  206. package/dist/services/price-alerts/price-alerts.schemas.d.ts +10 -10
  207. package/dist/services/rate-limits/rate-limits.js +1 -1
  208. package/dist/services/rewards/rewards.js +1 -1
  209. package/dist/services/rewards/rewards.schemas.d.ts +4 -4
  210. package/dist/services/social-verification/social-verification.js +1 -1
  211. package/dist/services/social-verification/social-verification.schemas.js +1 -1
  212. package/dist/services/subaccounts/subaccounts.codecs.js +2 -1
  213. package/dist/services/subaccounts/subaccounts.codecs.js.map +1 -1
  214. package/dist/services/subaccounts/subaccounts.js +3 -3
  215. package/dist/services/subaccounts/subaccounts.schemas.d.ts +13 -13
  216. package/dist/services/system/system.codecs.d.ts +20 -0
  217. package/dist/services/system/system.codecs.d.ts.map +1 -0
  218. package/dist/services/system/system.codecs.js +57 -0
  219. package/dist/services/system/system.codecs.js.map +1 -0
  220. package/dist/services/system/system.d.ts +7 -0
  221. package/dist/services/system/system.d.ts.map +1 -1
  222. package/dist/services/system/system.js +14 -1
  223. package/dist/services/system/system.js.map +1 -1
  224. package/dist/services/system/system.schemas.d.ts +234 -0
  225. package/dist/services/system/system.schemas.d.ts.map +1 -0
  226. package/dist/services/system/system.schemas.js +78 -0
  227. package/dist/services/system/system.schemas.js.map +1 -0
  228. package/dist/services/system/system.types.d.ts +4 -0
  229. package/dist/services/trades/trades.js +2 -2
  230. package/dist/services/trades/trades.schemas.d.ts +2 -2
  231. package/dist/services/trading-withdraws/service.js +1 -1
  232. package/dist/services/trading-withdraws/service.js.map +1 -1
  233. package/dist/services/trading-withdraws/trading-withdraws.d.ts +10 -12
  234. package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
  235. package/dist/services/trading-withdraws/trading-withdraws.js +28 -20
  236. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  237. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +0 -5
  238. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  239. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +1 -5
  240. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  241. package/dist/services/trading-withdraws/wallet-message.js +2 -2
  242. package/dist/services/trading-withdraws/wallet-message.js.map +1 -1
  243. package/dist/services/transfers/transfers.js +2 -2
  244. package/dist/services/triggers/trigger-child-order.schemas.js +3 -3
  245. package/dist/services/triggers/trigger-input.schemas.d.ts +3 -3
  246. package/dist/services/triggers/trigger-input.schemas.d.ts.map +1 -1
  247. package/dist/services/triggers/trigger-input.schemas.js +6 -5
  248. package/dist/services/triggers/trigger-input.schemas.js.map +1 -1
  249. package/dist/services/triggers/triggers-output.schemas.d.ts +47 -48
  250. package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
  251. package/dist/services/triggers/triggers-output.schemas.js +1 -1
  252. package/dist/services/triggers/triggers.js +2 -2
  253. package/dist/services/vip/vip.js +1 -1
  254. package/dist/services/vip/vip.schemas.js +1 -1
  255. package/dist/services/zipper/zipper.js +1 -1
  256. package/dist/services/zipper/zipper.schemas.d.ts +2 -2
  257. package/dist/services/zipper/zipper.schemas.d.ts.map +1 -1
  258. package/dist/services/zipper/zipper.schemas.js +10 -3
  259. package/dist/services/zipper/zipper.schemas.js.map +1 -1
  260. package/dist/services/zipper/zipper.types.d.ts +2 -2
  261. package/dist/shared/catalog-config.d.ts +13 -1
  262. package/dist/shared/catalog-config.d.ts.map +1 -1
  263. package/dist/shared/catalog-config.js +6 -1
  264. package/dist/shared/catalog-config.js.map +1 -1
  265. package/dist/shared/error-details/alerts.js +1 -1
  266. package/dist/shared/error-details/assistant.js +1 -1
  267. package/dist/shared/error-details/auth.js +1 -1
  268. package/dist/shared/error-details/claims.js +1 -1
  269. package/dist/shared/error-details/internal-transfer.js +1 -1
  270. package/dist/shared/error-details/ledger.js +1 -1
  271. package/dist/shared/error-details/market-overview.js +1 -1
  272. package/dist/shared/error-details/notifications.js +1 -1
  273. package/dist/shared/error-details/orders.js +1 -1
  274. package/dist/shared/error-details/profile.js +1 -1
  275. package/dist/shared/error-details/rate-limit.js +1 -1
  276. package/dist/shared/error-details/withdraw.js +1 -1
  277. package/dist/shared/rate-limit.schemas.d.ts +1 -1
  278. package/dist/shared/rate-limit.schemas.js +1 -1
  279. package/dist/shared/transports.d.ts +2 -1
  280. package/dist/shared/transports.d.ts.map +1 -1
  281. package/dist/shared/transports.js +52 -9
  282. package/dist/shared/transports.js.map +1 -1
  283. package/dist/utils/base58-id.js +1 -1
  284. package/dist/utils/base58-id.js.map +1 -1
  285. package/dist/utils/cookies.js +1 -1
  286. package/dist/utils/numbers.js +3 -2
  287. package/dist/utils/numbers.js.map +1 -1
  288. package/dist/wired-services.js +17 -17
  289. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"core-client.js","names":["#environment","#authProvider","#realtimeConfig","#configRealtimeClient","#fetch","#configCatalog","#configCatalogSnapshot","#configCatalogCell","#createAuth","#getScales","#getResolver","#realtime","#catalog","#scales","#resolverInitialized","#resolver","#auth"],"sources":["../src/core-client.ts"],"sourcesContent":["import type { Interceptor } from \"@connectrpc/connect\";\nimport { ConfigurationError } from \"./shared/errors.js\";\nimport {\n createApiKeyEd25519AuthHeaders,\n createTransports,\n resolveJwtToken,\n type AuthAndPublicApiTransports,\n type Transports,\n type JwtAuthProvider,\n type ApiKeyEd25519AuthProvider,\n} from \"./shared/transports.js\";\nimport { parsePolyesterEnvironment, type PolyesterEnvironment } from \"./environment.js\";\nimport { AuthService } from \"./services/auth/auth.js\";\nimport type { SubaccountsService } from \"./services/subaccounts/subaccounts.js\";\nimport type { SubaccountResolver } from \"./services/subaccount-resolver.js\";\nimport {\n createPolyesterCatalog,\n type CatalogSnapshot,\n type CatalogSnapshotCell,\n type ClientCatalog,\n} from \"./catalogs/index.js\";\nimport { createCatalogSdkScales, type SdkScales } from \"./shared/decimal-surface.js\";\nimport { RealtimeClient, type PolyesterRealtime, type RealtimeConfig } from \"./realtime/index.js\";\n\nfunction realtimeAuthFromProvider(\n auth: JwtAuthProvider | ApiKeyEd25519AuthProvider | undefined,\n): Pick<RealtimeConfig, \"getAuthHeaders\" | \"hasAuth\"> {\n if (!auth) return {};\n if (auth.kind === \"jwt\") {\n return {\n getAuthHeaders: async () => {\n const token = await resolveJwtToken(auth);\n const headers: Record<string, string> = {};\n if (token) headers.authorization = `Bearer ${token}`;\n return headers;\n },\n hasAuth: () => {\n try {\n const token = auth.getToken();\n if (token !== null && typeof token !== \"string\") {\n // Async credentials are validated by the token request.\n void token.catch(() => {});\n return true;\n }\n return token !== null && token.length > 0;\n } catch {\n // Let the token request report provider failures as AuthenticationError.\n return true;\n }\n },\n };\n }\n return {\n getAuthHeaders: (request) =>\n createApiKeyEd25519AuthHeaders(auth, {\n url: request.url,\n method: request.method,\n }),\n hasAuth: () => true,\n };\n}\n\nexport type PolyesterRealtimeAuthConfig = Pick<RealtimeConfig, \"getAuthHeaders\" | \"hasAuth\">;\n\ninterface PolyesterClientCommonConfig {\n environment: PolyesterEnvironment;\n interceptors?: Interceptor[];\n auth?: JwtAuthProvider | ApiKeyEd25519AuthProvider;\n realtime?: PolyesterRealtimeAuthConfig;\n /**\n * Connect wire format. Defaults to binary for production performance.\n * Use `json` for human-readable debugging.\n */\n wireFormat?: \"binary\" | \"json\";\n /**\n * Custom fetch implementation for SDK HTTP requests, realtime token requests\n * included. Defaults to the global `fetch`, resolved on each request. Injected\n * `transports` and `realtimeClient` ignore it.\n */\n fetch?: typeof fetch;\n /**\n * Advanced: inject pre-built Connect transports (in-memory mocks, custom\n * stacks). When provided, the SDK does not build its own transports and the\n * built-in auth/error-mapping interceptors are NOT applied — the injected\n * transports own their full interceptor chain.\n */\n transports?: Transports;\n /**\n * Advanced: inject a realtime implementation (in-memory mocks, custom\n * stacks). When provided, the SDK skips constructing its Centrifuge-backed\n * realtime client and the `realtime` auth config is ignored.\n */\n realtimeClient?: PolyesterRealtime;\n}\n\ntype PolyesterCatalogConfig =\n | {\n /** Client-owned catalog store. */\n catalog: ClientCatalog;\n catalogSnapshot?: never;\n catalogCell?: never;\n }\n | {\n catalog?: never;\n /**\n * Explicit initial catalog snapshot, commonly hydrated from server-rendered data.\n * Combines with `catalogCell` as the cell's initial value without clobbering a\n * pre-populated cell.\n */\n catalogSnapshot?: CatalogSnapshot;\n /**\n * External snapshot storage for the client-built catalog. A cell backed by a\n * reactive source makes every catalog read reactive.\n */\n catalogCell?: CatalogSnapshotCell;\n };\n\n/** Configuration shared by every Polyester client. */\nexport type PolyesterClientBaseConfig = PolyesterClientCommonConfig & PolyesterCatalogConfig;\n\n/** Configuration for the base Polyester client. */\nexport type PolyesterClientConfig = PolyesterClientBaseConfig;\n\n/** Preserves the exclusive catalog configuration while projecting client config fields. */\nexport function pickPolyesterCatalogConfig(\n config: PolyesterClientBaseConfig,\n): PolyesterCatalogConfig {\n return config.catalog === undefined\n ? {\n catalogSnapshot: config.catalogSnapshot,\n catalogCell: config.catalogCell,\n }\n : { catalog: config.catalog };\n}\n\ninterface AuthServiceFactoryContext {\n transports: AuthAndPublicApiTransports;\n realtime: PolyesterRealtime;\n environment: PolyesterEnvironment;\n /** Loads this client's subaccounts service on demand, keeping it out of the core bundle. */\n loadSubaccounts: () => Promise<SubaccountsService>;\n}\n\ninterface PolyesterClientRuntimeConfig {\n createAuth?: (context: AuthServiceFactoryContext) => AuthService;\n}\n\n/**\n * Parses the configuration shared by every public client constructor.\n */\nexport function parsePolyesterClientConfig<TConfig extends PolyesterClientBaseConfig>(\n config: TConfig,\n): TConfig {\n if (typeof config !== \"object\" || config === null || Array.isArray(config)) {\n throw new ConfigurationError(\"Client configuration must be an object.\");\n }\n const environment = parsePolyesterEnvironment(config.environment);\n if (\n config.wireFormat !== undefined &&\n config.wireFormat !== \"binary\" &&\n config.wireFormat !== \"json\"\n ) {\n throw new ConfigurationError('wireFormat must be either \"binary\" or \"json\".');\n }\n if (config.fetch !== undefined && typeof config.fetch !== \"function\") {\n throw new ConfigurationError(\"fetch must be a function.\");\n }\n if (config.catalog && config.catalogSnapshot) {\n throw new ConfigurationError(\"Provide either catalog or catalogSnapshot, not both.\");\n }\n if (config.catalog && config.catalogCell) {\n throw new ConfigurationError(\"Provide either catalog or catalogCell, not both.\");\n }\n\n return Object.assign({}, config, { environment });\n}\n\n/** Client internals handed to service factories created with {@link defineService}. */\nexport interface ServiceContext {\n readonly transports: Transports;\n readonly environment: PolyesterEnvironment;\n readonly realtime: PolyesterRealtime;\n readonly catalog: ClientCatalog;\n readonly scales: SdkScales;\n readonly resolver: SubaccountResolver | undefined;\n}\n\nconst serviceContexts = new WeakMap<PolyesterCore, ServiceContext>();\n\n/**\n * Defines a service accessor that lazily creates one service instance per client.\n * Accessors live in their own modules, so bundles only include the services they call.\n */\nexport function defineService<TService>(\n create: (context: ServiceContext) => TService,\n): (client: PolyesterCore) => TService {\n const instances = new WeakMap<PolyesterCore, TService>();\n return (client) => {\n let service = instances.get(client);\n if (service === undefined) {\n const context = serviceContexts.get(client);\n if (!context) throw new ConfigurationError(\"Expected a Polyester client.\");\n service = create(context);\n instances.set(client, service);\n }\n return service;\n };\n}\n\n/**\n * Tree-shakable SDK client core: wires transports, realtime, catalogs, and auth\n * for a Polyester environment. Other services are reached through their\n * `@polyester/sdk/services/*` accessors, e.g. `ordersService(core)`, so bundles\n * only include the services they use. `PolyesterClient` adds a getter for every service.\n *\n * Everything is constructed lazily on first access (and memoized) so that creating a\n * client — which happens for every SSR request in server hooks — stays cheap.\n */\nexport class PolyesterCore {\n protected readonly transports: Transports;\n\n readonly #environment: PolyesterEnvironment;\n readonly #authProvider: JwtAuthProvider | ApiKeyEd25519AuthProvider | undefined;\n readonly #realtimeConfig: PolyesterRealtimeAuthConfig | undefined;\n readonly #configRealtimeClient: PolyesterRealtime | undefined;\n readonly #fetch: typeof fetch | undefined;\n readonly #configCatalog: ClientCatalog | undefined;\n readonly #configCatalogSnapshot: CatalogSnapshot | undefined;\n readonly #configCatalogCell: CatalogSnapshotCell | undefined;\n readonly #createAuth: PolyesterClientRuntimeConfig[\"createAuth\"];\n\n #realtime: PolyesterRealtime | undefined;\n #catalog: ClientCatalog | undefined;\n #scales: SdkScales | undefined;\n #resolver: SubaccountResolver | undefined;\n #resolverInitialized = false;\n #auth: AuthService | undefined;\n\n constructor(config: PolyesterClientConfig, runtime: PolyesterClientRuntimeConfig = {}) {\n const parsedConfig = parsePolyesterClientConfig(config);\n config = parsedConfig;\n const interceptors = config.interceptors ?? [];\n const { environment } = config;\n\n this.transports =\n config.transports ??\n createTransports({\n apiUrl: environment.apiUrl,\n interceptors,\n auth: config.auth,\n wireFormat: config.wireFormat,\n fetch: config.fetch,\n });\n\n this.#environment = environment;\n this.#authProvider = config.auth;\n this.#realtimeConfig = config.realtime;\n this.#configRealtimeClient = config.realtimeClient;\n this.#fetch = config.fetch;\n this.#configCatalog = config.catalog;\n this.#configCatalogSnapshot = config.catalogSnapshot;\n this.#configCatalogCell = config.catalogCell;\n this.#createAuth = runtime.createAuth;\n\n // Getters keep realtime, catalog, and scales lazy until a service needs them.\n const context = { transports: this.transports, environment } as ServiceContext;\n serviceContexts.set(\n this,\n Object.defineProperties(context, {\n realtime: { get: () => this.realtime },\n catalog: { get: () => this.catalog },\n scales: { get: () => this.#getScales() },\n resolver: { get: () => this.#getResolver() },\n }),\n );\n }\n\n get realtime(): PolyesterRealtime {\n if (!this.#realtime) {\n if (this.#configRealtimeClient) {\n this.#realtime = this.#configRealtimeClient;\n } else {\n const environment = this.#environment;\n const realtimeAuth = realtimeAuthFromProvider(this.#authProvider);\n this.#realtime = new RealtimeClient({\n wsUrl: environment.websocketUrl,\n tokenEndpoint: `${environment.apiUrl}/v1/rt/token`,\n subscribeEndpoint: `${environment.apiUrl}/v1/rt/subscribe`,\n privateWsUrl: `${environment.apiUrl.replace(/^http/, \"ws\")}/v1/ws/private`,\n getAuthHeaders:\n this.#realtimeConfig?.getAuthHeaders ?? realtimeAuth.getAuthHeaders,\n hasAuth: this.#realtimeConfig?.hasAuth ?? realtimeAuth.hasAuth,\n fetch: this.#fetch,\n });\n }\n }\n return this.#realtime;\n }\n\n get catalog(): ClientCatalog {\n if (!this.#catalog) {\n if (this.#configCatalog) {\n this.#catalog = this.#configCatalog;\n } else {\n // Refresh is async and rare, so its services load on demand rather\n // than pinning market data and zipper into every bundle.\n this.#catalog = createPolyesterCatalog({\n snapshot: this.#configCatalogSnapshot,\n cell: this.#configCatalogCell,\n refresh: {\n market: async () => {\n const { marketDataService } =\n await import(\"./services/market-data/service.js\");\n return marketDataService(this).getSpotConfig();\n },\n zipper: async () => {\n const { zipperService } = await import(\"./services/zipper/service.js\");\n return zipperService(this).getDepositWithdrawConfig();\n },\n },\n });\n }\n }\n return this.#catalog;\n }\n\n #getScales(): SdkScales {\n // Lazy catalog binding: the resolver only dereferences `this.catalog` at\n // call time. getSpotConfig() (the catalog's own refresh source) never\n // awaits scale readiness.\n this.#scales ??= createCatalogSdkScales(() => this.catalog);\n return this.#scales;\n }\n\n #getResolver(): SubaccountResolver | undefined {\n if (!this.#resolverInitialized) {\n this.#resolverInitialized = true;\n this.#resolver = this.createSubaccountResolver();\n }\n return this.#resolver;\n }\n\n get auth(): AuthService {\n if (!this.#auth) {\n this.#auth =\n this.#createAuth?.({\n transports: this.transports,\n realtime: this.realtime,\n environment: this.#environment,\n loadSubaccounts: async () => {\n const { subaccountsService } =\n await import(\"./services/subaccounts/service.js\");\n return subaccountsService(this);\n },\n }) ?? new AuthService(this.transports, this.realtime);\n }\n return this.#auth;\n }\n\n /**\n * Override in subclasses to provide a subaccount resolver.\n * The resolver is called lazily when service methods are invoked.\n */\n protected createSubaccountResolver(): SubaccountResolver | undefined {\n return undefined;\n }\n}\n"],"mappings":";;;;;;;;AAwBA,SAAS,yBACL,MACkD;CAClD,IAAI,CAAC,MAAM,OAAO,CAAC;CACnB,IAAI,KAAK,SAAS,OACd,OAAO;EACH,gBAAgB,YAAY;GACxB,MAAM,QAAQ,MAAM,gBAAgB,IAAI;GACxC,MAAM,UAAkC,CAAC;GACzC,IAAI,OAAO,QAAQ,gBAAgB,UAAU;GAC7C,OAAO;EACX;EACA,eAAe;GACX,IAAI;IACA,MAAM,QAAQ,KAAK,SAAS;IAC5B,IAAI,UAAU,QAAQ,OAAO,UAAU,UAAU;KAE7C,MAAW,YAAY,CAAC,CAAC;KACzB,OAAO;IACX;IACA,OAAO,UAAU,QAAQ,MAAM,SAAS;GAC5C,QAAQ;IAEJ,OAAO;GACX;EACJ;CACJ;CAEJ,OAAO;EACH,iBAAiB,YACb,+BAA+B,MAAM;GACjC,KAAK,QAAQ;GACb,QAAQ,QAAQ;EACpB,CAAC;EACL,eAAe;CACnB;AACJ;;AAgEA,SAAgB,2BACZ,QACsB;CACtB,OAAO,OAAO,YAAY,KAAA,IACpB;EACI,iBAAiB,OAAO;EACxB,aAAa,OAAO;CACxB,IACA,EAAE,SAAS,OAAO,QAAQ;AACpC;;;;AAiBA,SAAgB,2BACZ,QACO;CACP,IAAI,OAAO,WAAW,YAAY,WAAW,QAAQ,MAAM,QAAQ,MA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,CAAC,cAAc;IACjD;IACA,QAAQ,YAAY;KAChB,MAAM,EAAE,kBAAkB,MAAM,OAAO;KACvC,OAAO,cAAc,IAAI,CAAC,CAAC,yBAAyB;IACxD;GACJ;EACJ,CAAC;EAGT,OAAO,KAAKK;CAChB;CAEA,aAAwB;EAIpB,KAAKC,YAAY,6BAA6B,KAAK,OAAO;EAC1D,OAAO,KAAKA;CAChB;CAEA,eAA+C;EAC3C,IAAI,CAAC,KAAKC,sBAAsB;GAC5B,KAAKA,uBAAuB;GAC5B,KAAKC,YAAY,KAAK,yBAAyB;EACnD;EACA,OAAO,KAAKA;CAChB;CAEA,IAAI,OAAoB;EACpB,IAAI,CAAC,KAAKC,OACN,KAAKA,QACD,KAAKR,cAAc;GACf,YAAY,KAAK;GACjB,UAAU,KAAK;GACf,aAAa,KAAKR;GAClB,iBAAiB,YAAY;IACzB,MAAM,EAAE,uBACJ,MAAM,OAAO;IACjB,OAAO,mBAAmB,IAAI;GAClC;EACJ,CAAC,KAAK,IAAI,YAAY,KAAK,YAAY,KAAK,QAAQ;EAE5D,OAAO,KAAKgB;CAChB;;;;;CAMA,2BAAqE,CAErE;AACJ"}
1
+ {"version":3,"file":"core-client.js","names":["#environment","#authProvider","#realtimeConfig","#configRealtimeClient","#fetch","#configCatalog","#configCatalogSnapshot","#configCatalogCell","#createAuth","#getScales","#getResolver","#realtime","#catalog","#scales","#resolverInitialized","#resolver","#auth"],"sources":["../src/core-client.ts"],"sourcesContent":["import type { Interceptor } from \"@connectrpc/connect\";\nimport { ConfigurationError } from \"./shared/errors.js\";\nimport {\n createApiKeyEd25519AuthHeaders,\n createTransports,\n resolveJwtToken,\n type AuthAndPublicApiTransports,\n type Transports,\n type JwtAuthProvider,\n type ApiKeyEd25519AuthProvider,\n} from \"./shared/transports.js\";\nimport { parsePolyesterEnvironment, type PolyesterEnvironment } from \"./environment.js\";\nimport { AuthService } from \"./services/auth/auth.js\";\nimport type { SubaccountsService } from \"./services/subaccounts/subaccounts.js\";\nimport type { SubaccountResolver } from \"./services/subaccount-resolver.js\";\nimport {\n createPolyesterCatalog,\n type CatalogSnapshot,\n type CatalogSnapshotCell,\n type ClientCatalog,\n} from \"./catalogs/index.js\";\nimport { createCatalogSdkScales, type SdkScales } from \"./shared/decimal-surface.js\";\nimport { RealtimeClient, type PolyesterRealtime, type RealtimeConfig } from \"./realtime/index.js\";\n\nfunction realtimeAuthFromProvider(\n auth: JwtAuthProvider | ApiKeyEd25519AuthProvider | undefined,\n): Pick<RealtimeConfig, \"getAuthHeaders\" | \"hasAuth\"> {\n if (!auth) return {};\n if (auth.kind === \"jwt\") {\n return {\n getAuthHeaders: async () => {\n const token = await resolveJwtToken(auth);\n const headers: Record<string, string> = {};\n if (token) headers.authorization = `Bearer ${token}`;\n return headers;\n },\n hasAuth: () => {\n try {\n const token = auth.getToken();\n if (token !== null && typeof token !== \"string\") {\n // Async credentials are validated by the token request.\n void token.catch(() => {});\n return true;\n }\n return token !== null && token.length > 0;\n } catch {\n // Let the token request report provider failures as AuthenticationError.\n return true;\n }\n },\n };\n }\n return {\n getAuthHeaders: (request) =>\n createApiKeyEd25519AuthHeaders(auth, {\n url: request.url,\n method: request.method,\n }),\n hasAuth: () => true,\n };\n}\n\nexport type PolyesterRealtimeAuthConfig = Pick<RealtimeConfig, \"getAuthHeaders\" | \"hasAuth\">;\n\ninterface PolyesterClientCommonConfig {\n environment: PolyesterEnvironment;\n interceptors?: Interceptor[];\n auth?: JwtAuthProvider | ApiKeyEd25519AuthProvider;\n realtime?: PolyesterRealtimeAuthConfig;\n /**\n * Connect wire format. Defaults to binary for production performance.\n * Use `json` for human-readable debugging.\n */\n wireFormat?: \"binary\" | \"json\";\n /**\n * Custom fetch implementation for SDK HTTP requests, realtime token requests\n * included. Defaults to the global `fetch`, resolved on each request. Injected\n * `transports` and `realtimeClient` ignore it.\n */\n fetch?: typeof fetch;\n /**\n * Advanced: inject pre-built Connect transports (in-memory mocks, custom\n * stacks). When provided, the SDK does not build its own transports and the\n * built-in auth/error-mapping interceptors are NOT applied — the injected\n * transports own their full interceptor chain.\n */\n transports?: Transports;\n /**\n * Advanced: inject a realtime implementation (in-memory mocks, custom\n * stacks). When provided, the SDK skips constructing its Centrifuge-backed\n * realtime client and the `realtime` auth config is ignored.\n */\n realtimeClient?: PolyesterRealtime;\n}\n\ntype PolyesterCatalogConfig =\n | {\n /** Client-owned catalog store. */\n catalog: ClientCatalog;\n catalogSnapshot?: never;\n catalogCell?: never;\n }\n | {\n catalog?: never;\n /**\n * Explicit initial catalog snapshot, commonly hydrated from server-rendered data.\n * Combines with `catalogCell` as the cell's initial value without clobbering a\n * pre-populated cell.\n */\n catalogSnapshot?: CatalogSnapshot;\n /**\n * External snapshot storage for the client-built catalog. A cell backed by a\n * reactive source makes every catalog read reactive.\n */\n catalogCell?: CatalogSnapshotCell;\n };\n\n/** Configuration shared by every Polyester client. */\nexport type PolyesterClientBaseConfig = PolyesterClientCommonConfig & PolyesterCatalogConfig;\n\n/** Configuration for the base Polyester client. */\nexport type PolyesterClientConfig = PolyesterClientBaseConfig;\n\n/** Preserves the exclusive catalog configuration while projecting client config fields. */\nexport function pickPolyesterCatalogConfig(\n config: PolyesterClientBaseConfig,\n): PolyesterCatalogConfig {\n return config.catalog === undefined\n ? {\n catalogSnapshot: config.catalogSnapshot,\n catalogCell: config.catalogCell,\n }\n : { catalog: config.catalog };\n}\n\ninterface AuthServiceFactoryContext {\n transports: AuthAndPublicApiTransports;\n realtime: PolyesterRealtime;\n environment: PolyesterEnvironment;\n /** Loads this client's subaccounts service on demand, keeping it out of the core bundle. */\n loadSubaccounts: () => Promise<SubaccountsService>;\n}\n\ninterface PolyesterClientRuntimeConfig {\n createAuth?: (context: AuthServiceFactoryContext) => AuthService;\n}\n\n/**\n * Parses the configuration shared by every public client constructor.\n */\nexport function parsePolyesterClientConfig<TConfig extends PolyesterClientBaseConfig>(\n config: TConfig,\n): TConfig {\n if (typeof config !== \"object\" || config === null || Array.isArray(config)) {\n throw new ConfigurationError(\"Client configuration must be an object.\");\n }\n const environment = parsePolyesterEnvironment(config.environment);\n if (\n config.wireFormat !== undefined &&\n config.wireFormat !== \"binary\" &&\n config.wireFormat !== \"json\"\n ) {\n throw new ConfigurationError('wireFormat must be either \"binary\" or \"json\".');\n }\n if (config.fetch !== undefined && typeof config.fetch !== \"function\") {\n throw new ConfigurationError(\"fetch must be a function.\");\n }\n if (config.catalog && config.catalogSnapshot) {\n throw new ConfigurationError(\"Provide either catalog or catalogSnapshot, not both.\");\n }\n if (config.catalog && config.catalogCell) {\n throw new ConfigurationError(\"Provide either catalog or catalogCell, not both.\");\n }\n\n return Object.assign({}, config, { environment });\n}\n\n/** Client internals handed to service factories created with {@link defineService}. */\nexport interface ServiceContext {\n readonly transports: Transports;\n readonly environment: PolyesterEnvironment;\n readonly realtime: PolyesterRealtime;\n readonly catalog: ClientCatalog;\n readonly scales: SdkScales;\n readonly resolver: SubaccountResolver | undefined;\n readonly auth: JwtAuthProvider | ApiKeyEd25519AuthProvider | undefined;\n}\n\nconst serviceContexts = new WeakMap<PolyesterCore, ServiceContext>();\n\n/**\n * Defines a service accessor that lazily creates one service instance per client.\n * Accessors live in their own modules, so bundles only include the services they call.\n */\nexport function defineService<TService>(\n create: (context: ServiceContext) => TService,\n): (client: PolyesterCore) => TService {\n const instances = new WeakMap<PolyesterCore, TService>();\n return (client) => {\n let service = instances.get(client);\n if (service === undefined) {\n const context = serviceContexts.get(client);\n if (!context) throw new ConfigurationError(\"Expected a Polyester client.\");\n service = create(context);\n instances.set(client, service);\n }\n return service;\n };\n}\n\n/**\n * Tree-shakable SDK client core: wires transports, realtime, catalogs, and auth\n * for a Polyester environment. Other services are reached through their\n * `@polyester/sdk/services/*` accessors, e.g. `ordersService(core)`, so bundles\n * only include the services they use. `PolyesterClient` adds a getter for every service.\n *\n * Everything is constructed lazily on first access (and memoized) so that creating a\n * client — which happens for every SSR request in server hooks — stays cheap.\n */\nexport class PolyesterCore {\n protected readonly transports: Transports;\n\n readonly #environment: PolyesterEnvironment;\n readonly #authProvider: JwtAuthProvider | ApiKeyEd25519AuthProvider | undefined;\n readonly #realtimeConfig: PolyesterRealtimeAuthConfig | undefined;\n readonly #configRealtimeClient: PolyesterRealtime | undefined;\n readonly #fetch: typeof fetch | undefined;\n readonly #configCatalog: ClientCatalog | undefined;\n readonly #configCatalogSnapshot: CatalogSnapshot | undefined;\n readonly #configCatalogCell: CatalogSnapshotCell | undefined;\n readonly #createAuth: PolyesterClientRuntimeConfig[\"createAuth\"];\n\n #realtime: PolyesterRealtime | undefined;\n #catalog: ClientCatalog | undefined;\n #scales: SdkScales | undefined;\n #resolver: SubaccountResolver | undefined;\n #resolverInitialized = false;\n #auth: AuthService | undefined;\n\n constructor(config: PolyesterClientConfig, runtime: PolyesterClientRuntimeConfig = {}) {\n const parsedConfig = parsePolyesterClientConfig(config);\n config = parsedConfig;\n const interceptors = config.interceptors ?? [];\n const { environment } = config;\n\n this.transports =\n config.transports ??\n createTransports({\n apiUrl: environment.apiUrl,\n interceptors,\n auth: config.auth,\n wireFormat: config.wireFormat,\n fetch: config.fetch,\n });\n\n this.#environment = environment;\n this.#authProvider = config.auth;\n this.#realtimeConfig = config.realtime;\n this.#configRealtimeClient = config.realtimeClient;\n this.#fetch = config.fetch;\n this.#configCatalog = config.catalog;\n this.#configCatalogSnapshot = config.catalogSnapshot;\n this.#configCatalogCell = config.catalogCell;\n this.#createAuth = runtime.createAuth;\n\n // Getters keep realtime, catalog, and scales lazy until a service needs them.\n const context = {\n transports: this.transports,\n environment,\n auth: config.auth,\n } as ServiceContext;\n serviceContexts.set(\n this,\n Object.defineProperties(context, {\n realtime: { get: () => this.realtime },\n catalog: { get: () => this.catalog },\n scales: { get: () => this.#getScales() },\n resolver: { get: () => this.#getResolver() },\n }),\n );\n }\n\n get realtime(): PolyesterRealtime {\n if (!this.#realtime) {\n if (this.#configRealtimeClient) {\n this.#realtime = this.#configRealtimeClient;\n } else {\n const environment = this.#environment;\n const realtimeAuth = realtimeAuthFromProvider(this.#authProvider);\n this.#realtime = new RealtimeClient({\n wsUrl: environment.websocketUrl,\n tokenEndpoint: `${environment.apiUrl}/v1/rt/token`,\n subscribeEndpoint: `${environment.apiUrl}/v1/rt/subscribe`,\n privateWsUrl: `${environment.apiUrl.replace(/^http/, \"ws\")}/v1/ws/private`,\n getAuthHeaders:\n this.#realtimeConfig?.getAuthHeaders ?? realtimeAuth.getAuthHeaders,\n hasAuth: this.#realtimeConfig?.hasAuth ?? realtimeAuth.hasAuth,\n fetch: this.#fetch,\n });\n }\n }\n return this.#realtime;\n }\n\n get catalog(): ClientCatalog {\n if (!this.#catalog) {\n if (this.#configCatalog) {\n this.#catalog = this.#configCatalog;\n } else {\n // Refresh is async and rare, so its services load on demand rather\n // than pinning market data and zipper into every bundle.\n this.#catalog = createPolyesterCatalog({\n snapshot: this.#configCatalogSnapshot,\n cell: this.#configCatalogCell,\n refresh: {\n market: async () => {\n const { marketDataService } =\n await import(\"./services/market-data/service.js\");\n return marketDataService(this).getSpotConfig();\n },\n zipper: async () => {\n const { zipperService } = await import(\"./services/zipper/service.js\");\n return zipperService(this).getDepositWithdrawConfig();\n },\n },\n });\n }\n }\n return this.#catalog;\n }\n\n #getScales(): SdkScales {\n // Lazy catalog binding: the resolver only dereferences `this.catalog` at\n // call time. getSpotConfig() (the catalog's own refresh source) never\n // awaits scale readiness.\n this.#scales ??= createCatalogSdkScales(() => this.catalog);\n return this.#scales;\n }\n\n #getResolver(): SubaccountResolver | undefined {\n if (!this.#resolverInitialized) {\n this.#resolverInitialized = true;\n this.#resolver = this.createSubaccountResolver();\n }\n return this.#resolver;\n }\n\n get auth(): AuthService {\n if (!this.#auth) {\n this.#auth =\n this.#createAuth?.({\n transports: this.transports,\n realtime: this.realtime,\n environment: this.#environment,\n loadSubaccounts: async () => {\n const { subaccountsService } =\n await import(\"./services/subaccounts/service.js\");\n return subaccountsService(this);\n },\n }) ?? new AuthService(this.transports, this.realtime);\n }\n return this.#auth;\n }\n\n /**\n * Override in subclasses to provide a subaccount resolver.\n * The resolver is called lazily when service methods are invoked.\n */\n protected createSubaccountResolver(): SubaccountResolver | undefined {\n return undefined;\n }\n}\n"],"mappings":";;;;;;;;AAwBA,SAAS,yBACL,MACkD;CAClD,IAAI,CAAC,MAAM,OAAO,CAAC;CACnB,IAAI,KAAK,SAAS,OACd,OAAO;EACH,gBAAgB,YAAY;GACxB,MAAM,QAAQ,MAAM,gBAAgB,IAAI;GACxC,MAAM,UAAkC,CAAC;GACzC,IAAI,OAAO,QAAQ,gBAAgB,UAAU;GAC7C,OAAO;EACX;EACA,eAAe;GACX,IAAI;IACA,MAAM,QAAQ,KAAK,SAAS;IAC5B,IAAI,UAAU,QAAQ,OAAO,UAAU,UAAU;KAE7C,MAAW,YAAY,CAAC,CAAC;KACzB,OAAO;IACX;IACA,OAAO,UAAU,QAAQ,MAAM,SAAS;GAC5C,QAAQ;IAEJ,OAAO;GACX;EACJ;CACJ;CAEJ,OAAO;EACH,iBAAiB,YACb,+BAA+B,MAAM;GACjC,KAAK,QAAQ;GACb,QAAQ,QAAQ;EACpB,CAAC;EACL,eAAe;CACnB;AACJ;;AAgEA,SAAgB,2BACZ,QACsB;CACtB,OAAO,OAAO,YAAY,KAAA,IACpB;EACI,iBAAiB,OAAO;EACxB,aAAa,OAAO;CACxB,IACA,EAAE,SAAS,OAAO,QAAQ;AACpC;;;;AAiBA,SAAgB,2BACZ,QACO;CACP,IAAI,OAAO,WAAW,YAAY,WAAW,QAAQ,MAAM,QAAQ,MAAM,GACrE,MAAM,IAAI,mBAAmB,yCAAyC;CAE1E,MAAM,cAAc,0BAA0B,OAAO,WAAW;CAChE,IACI,OAAO,eAAe,KAAA,KACtB,OAAO,eAAe,YACtB,OAAO,eAAe,QAEtB,MAAM,IAAI,mBAAmB,mDAA+C;CAEhF,IAAI,OAAO,UAAU,KAAA,KAAa,OAAO,OAAO,UAAU,YACtD,MAAM,IAAI,mBAAmB,2BAA2B;CAE5D,IAAI,OAAO,W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,CAAC,KAAKC,sBAAsB;GAC5B,KAAKA,uBAAuB;GAC5B,KAAKC,YAAY,KAAK,yBAAyB;EACnD;EACA,OAAO,KAAKA;CAChB;CAEA,IAAI,OAAoB;EACpB,IAAI,CAAC,KAAKC,OACN,KAAKA,QACD,KAAKR,cAAc;GACf,YAAY,KAAK;GACjB,UAAU,KAAK;GACf,aAAa,KAAKR;GAClB,iBAAiB,YAAY;IACzB,MAAM,EAAE,uBACJ,MAAM,OAAO;IACjB,OAAO,mBAAmB,IAAI;GAClC;EACJ,CAAC,KAAK,IAAI,YAAY,KAAK,YAAY,KAAK,QAAQ;EAE5D,OAAO,KAAKgB;CAChB;;;;;CAMA,2BAAqE,CAErE;AACJ"}
@@ -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 = /*@__PUR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tleXMSGy5hdXRoLnYxLkxpc3RBcGlLZXlzUmVxdWVzdBocLmF1dGgudjEuTGlzdEFwaUtleXNSZXNwb25zZSIAEkQKCUdldEFwaUtleRIZLmF1dGgudjEuR2V0QXBpS2V5UmVxdWVzdBoaLmF1dGgudjEuR2V0QXBpS2V5UmVzcG9uc2UiABJNCgxEZWxldGVBcGlLZXkSHC5hdXRoLnYxLkRlbGV0ZUFwaUtleVJlcXVlc3QaHS5hdXRoLnYxLkRlbGV0ZUFwaUtleVJlc3BvbnNlIgASTQoMVXBkYXRlQXBpS2V5EhwuYXV0aC52MS5VcGRhdGVBcGlLZXlSZXF1ZXN0Gh0uYXV0aC52MS5VcGRhdGVBcGlLZXlSZXNwb25zZSIAElkKEFNldEFzc2lzdGFudEtleXMSIC5hdXRoLnYxLlNldEFzc2lzdGFudEtleXNSZXF1ZXN0GiEuYXV0aC52MS5TZXRBc3Npc3RhbnRLZXlzUmVzcG9uc2UiABJcChFMaXN0QXNzaXN0YW50S2V5cxIhLmF1dGgudjEuTGlzdEFzc2lzdGFudEtleXNSZXF1ZXN0GiIuYXV0aC52MS5MaXN0QXNzaXN0YW50S2V5c1Jlc3BvbnNlIgASYgoTRGVsZXRlQXNzaXN0YW50S2V5cxIjLmF1dGgudjEuRGVsZXRlQXNzaXN0YW50S2V5c1JlcXVlc3QaJC5hdXRoLnYxLkRlbGV0ZUFzc2lzdGFudEtleXNSZXNwb25zZSIAGgBCPFo6Z2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9hdXRoL3YxO2F1dGh2MWIGcHJvdG8z\", [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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AAA,CAAA,CAAA;;;;AAKA,MAAa,2BACX,uBAAS,uBAAuB,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(\"ChZhdXRoL3YxL2FwaV9rZXlzLnByb3RvEgdhdXRoLnYxIpAECgZBcGlLZXkSEAoGa2V5X2lkGAIgASgJQgASDQoFbGFiZWwYAyABKAkSDgoEaWNvbhgJIAEoCUIAEg8KBWNvbG9yGAogASgJQgASFgoMaXBfd2hpdGVsaXN0GAQgAygJQgASJQoGc3RhdHVzGAYgASgOMhUuYXV0aC52MS5BcGlLZXlTdGF0dXMSGgoNc3ViYWNjb3VudF9pZBgHIAEoBkgAiAEBEhYKCXBvbGljeV9pZBgIIAEoBkgBiAEBEi4KCmNyZWF0ZWRfYXQYFCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjAKDGxhc3RfdXNlZF9hdBgVIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASGgoScHVibGljX2tleV9lZDI1NTE5GBYgASgMEi4KC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3Npc3RhbnRLZXlzUmVzcG9uc2UiABJcChFMaXN0QXNzaXN0YW50S2V5cxIhLmF1dGgudjEuTGlzdEFzc2lzdGFudEtleXNSZXF1ZXN0GiIuYXV0aC52MS5MaXN0QXNzaXN0YW50S2V5c1Jlc3BvbnNlIgASYgoTRGVsZXRlQXNzaXN0YW50S2V5cxIjLmF1dGgudjEuRGVsZXRlQXNzaXN0YW50S2V5c1JlcXVlc3QaJC5hdXRoLnYxLkRlbGV0ZUFzc2lzdGFudEtleXNSZXNwb25zZSIAGgBCPFo6Z2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9hdXRoL3YxO2F1dGh2MWIGcHJvdG8z\", [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;;;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jB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;EASjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;EASjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;EASjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;EASjB;IACE;IACA,cAAc;IACd,eAAe"}
@@ -45,7 +45,7 @@ var policies_pb_exports = /* @__PURE__ */ __exportAll({
45
45
  /**
46
46
  * Describes the file auth/v1/policies.proto.
47
47
  */
48
- const file_auth_v1_policies = /*@__PURE__*/ fileDesc("ChZhdXRoL3YxL3BvbGljaWVzLnByb3RvEgdhdXRoLnYxIj8KC01hcmtldFNjb3BlIjAKBVZhbHVlEg8KC1VOU1BFQ0lGSUVEEAASBwoDQUxMEAESDQoJQUxMT1dMSVNUEAIiKQoSU3BvdE1hcmtldFNlbGVjdG9yEhMKCXN5bWJvbF9pZBgBIAEoDUIAIiMKDlNwb3RNYXJrZXRSdWxlEhEKCXN5bWJvbF9pZBgBIAEoDSK2BAoUU3ViYWNjb3VudFBvbGljeVZpZXcSCgoCaWQYASABKAYSDAoEbmFtZRgCIAEoCRITCgtkZXNjcmlwdGlvbhgDIAEoCRItCgxzcG90X21hcmtldHMYBCADKAsyFy5hdXRoLnYxLlNwb3RNYXJrZXRSdWxlEjcKEXNwb3RfbWFya2V0X3Njb3BlGAYgASgOMhouYXV0aC52MS5NYXJrZXRTY29wZS5WYWx1ZUIAEigKB2FjdGlvbnMYCCADKA4yFS5hdXRoLnYxLlBvbGljeUFjdGlvbkIAEhMKC2lzX3RlbXBsYXRlGAogASgIEhoKEnNvdXJjZV90ZW1wbGF0ZV9pZBgLIAEoBhIa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eh8uYXV0aC52MS5DcmVhdGVBcGlQb2xpY3lSZXF1ZXN0GiAuYXV0aC52MS5DcmVhdGVBcGlQb2xpY3lSZXNwb25zZSIAElYKD1VwZGF0ZUFwaVBvbGljeRIfLmF1dGgudjEuVXBkYXRlQXBpUG9saWN5UmVxdWVzdBogLmF1dGgudjEuVXBkYXRlQXBpUG9saWN5UmVzcG9uc2UiABJWCg9EZWxldGVBcGlQb2xpY3kSHy5hdXRoLnYxLkRlbGV0ZUFwaVBvbGljeVJlcXVlc3QaIC5hdXRoLnYxLkRlbGV0ZUFwaVBvbGljeVJlc3BvbnNlIgASVgoPU2V0QXBpS2V5UG9saWN5Eh8uYXV0aC52MS5TZXRBcGlLZXlQb2xpY3lSZXF1ZXN0GiAuYXV0aC52MS5TZXRBcGlLZXlQb2xpY3lSZXNwb25zZSIAGgBCPFo6Z2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9hdXRoL3YxO2F1dGh2MWIGcHJvdG8z", [
49
49
  file_google_protobuf_field_mask,
50
50
  file_google_protobuf_timestamp,
51
51
  file_polyester_api_options
@@ -502,6 +502,14 @@ let PolicyAction = /* @__PURE__ */ function(PolicyAction) {
502
502
  * @generated from enum value: MANAGE_PRICE_ALERTS = 37;
503
503
  */
504
504
  PolicyAction[PolicyAction["MANAGE_PRICE_ALERTS"] = 37] = "MANAGE_PRICE_ALERTS";
505
+ /**
506
+ * Allow exporting account statements: the account's balance movements for a
507
+ * period, with fees and the balance after each entry. It grants no other
508
+ * balance or transfer read.
509
+ *
510
+ * @generated from enum value: READ_STATEMENTS = 38;
511
+ */
512
+ PolicyAction[PolicyAction["READ_STATEMENTS"] = 38] = "READ_STATEMENTS";
505
513
  return PolicyAction;
506
514
  }({});
507
515
  /**