@polyester/sdk 0.36.0-devnet-20261119195411 → 0.36.0-devnet-20261120040128

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 (309) hide show
  1. package/CHANGELOG.md +18 -2
  2. package/dist/client.d.ts +4 -0
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +4 -0
  5. package/dist/client.js.map +1 -1
  6. package/dist/gen/ai/v1/assistant_pb.d.ts +56 -4
  7. package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -1
  8. package/dist/gen/ai/v1/assistant_pb.js +9 -2
  9. package/dist/gen/ai/v1/assistant_pb.js.map +1 -1
  10. package/dist/gen/alerts/v1/price_alerts_pb.d.ts +1 -1
  11. package/dist/gen/auth/v1/account_scope_pb.d.ts +40 -0
  12. package/dist/gen/auth/v1/account_scope_pb.d.ts.map +1 -0
  13. package/dist/gen/auth/v1/account_scope_pb.js +46 -0
  14. package/dist/gen/auth/v1/account_scope_pb.js.map +1 -0
  15. package/dist/gen/auth/v1/activity_pb.d.ts +1 -1
  16. package/dist/gen/auth/v1/address_book_pb.d.ts +4 -32
  17. package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
  18. package/dist/gen/auth/v1/address_book_pb.js +8 -38
  19. package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
  20. package/dist/gen/auth/v1/api_keys_pb.d.ts +1 -1
  21. package/dist/gen/auth/v1/auth_pb.d.ts +16 -15
  22. package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
  23. package/dist/gen/auth/v1/auth_pb.js +16 -15
  24. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  25. package/dist/gen/auth/v1/connected_apps_pb.d.ts +60 -59
  26. package/dist/gen/auth/v1/connected_apps_pb.d.ts.map +1 -1
  27. package/dist/gen/auth/v1/connected_apps_pb.js +38 -37
  28. package/dist/gen/auth/v1/connected_apps_pb.js.map +1 -1
  29. package/dist/gen/auth/v1/mfa_pb.d.ts +1 -1
  30. package/dist/gen/auth/v1/policies_pb.d.ts +28 -2
  31. package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
  32. package/dist/gen/auth/v1/policies_pb.js +27 -1
  33. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  34. package/dist/gen/auth/v1/profile_pb.d.ts +1 -1
  35. package/dist/gen/auth/v1/resolve_pb.d.ts +1 -1
  36. package/dist/gen/auth/v1/social_verification_pb.d.ts +1 -1
  37. package/dist/gen/auth/v1/subaccounts_pb.d.ts +1 -1
  38. package/dist/gen/auth/v1/subaccounts_pb.js +1 -1
  39. package/dist/gen/chain/analytics/v1/analytics_read_pb.d.ts +1 -1
  40. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +1 -1
  41. package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +1 -1
  42. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +1 -1
  43. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +1 -1
  44. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +1 -1
  45. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +229 -3
  46. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  47. package/dist/gen/chain/withdraw/v1/withdraw_pb.js +32 -8
  48. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  49. package/dist/gen/chain/zipper/v1/reason_pb.d.ts +1 -1
  50. package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +1 -1
  51. package/dist/gen/changelog/v1/changelog_pb.d.ts +17 -5
  52. package/dist/gen/changelog/v1/changelog_pb.d.ts.map +1 -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 +8 -6
  58. package/dist/gen/index.js +28 -26
  59. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +1 -1
  60. package/dist/gen/ledger/read/v1/statement_export_pb.d.ts +1 -1
  61. package/dist/gen/marketdata/v1/asset_info_pb.d.ts +1 -1
  62. package/dist/gen/marketdata/v1/heatmap_pb.d.ts +1 -1
  63. package/dist/gen/marketdata/v1/marketdata_pb.d.ts +289 -3
  64. package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
  65. package/dist/gen/marketdata/v1/marketdata_pb.js +115 -2
  66. package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
  67. package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +1 -1
  68. package/dist/gen/notifications/v1/notifications_pb.d.ts +1 -1
  69. package/dist/gen/orderbook/v1/orderbook_pb.d.ts +1 -1
  70. package/dist/gen/orders/v1/orders_pb.d.ts +79 -26
  71. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  72. package/dist/gen/orders/v1/orders_pb.js +36 -7
  73. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  74. package/dist/gen/orders/v1/orders_read_pb.d.ts +36 -2
  75. package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
  76. package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
  77. package/dist/gen/polyester/api/v1/request_error_pb.d.ts +1 -1
  78. package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +1 -1
  79. package/dist/gen/polyester/type/v1/u128_pb.d.ts +1 -1
  80. package/dist/gen/privatews/v1/private_ws_pb.d.ts +1 -1
  81. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +1 -1
  82. package/dist/gen/rewards/v1/rewards_pb.d.ts +1 -1
  83. package/dist/gen/strategies/v1/strategies_pb.d.ts +2928 -0
  84. package/dist/gen/strategies/v1/strategies_pb.d.ts.map +1 -0
  85. package/dist/gen/strategies/v1/strategies_pb.js +818 -0
  86. package/dist/gen/strategies/v1/strategies_pb.js.map +1 -0
  87. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +39 -18
  88. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
  89. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +4 -1
  90. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
  91. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts +313 -133
  92. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts.map +1 -1
  93. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js +31 -26
  94. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js.map +1 -1
  95. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +29 -14
  96. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  97. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +2 -2
  98. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  99. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +110 -3
  100. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -1
  101. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +23 -3
  102. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -1
  103. package/dist/gen/swap/v1/swap_pb.d.ts +1 -1
  104. package/dist/gen/system/v1/system_pb.d.ts +1 -1
  105. package/dist/gen/tradews/v1/trade_ws_pb.d.ts +1 -1
  106. package/dist/gen/transfer/v1/dust_conversion_pb.d.ts +1 -1
  107. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +4 -3
  108. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
  109. package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
  110. package/dist/gen/triggers/v1/triggers_pb.d.ts +62 -12
  111. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  112. package/dist/gen/triggers/v1/triggers_pb.js +4 -2
  113. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  114. package/dist/gen/vip/v1/vip_pb.d.ts +1 -1
  115. package/dist/index.d.ts +12 -6
  116. package/dist/services/account-activity/account-activity.js +1 -1
  117. package/dist/services/account-activity/account-activity.schemas.d.ts +4 -4
  118. package/dist/services/accounts/accounts.js +1 -1
  119. package/dist/services/accounts/accounts.schemas.js +1 -1
  120. package/dist/services/address-book/address-book.codecs.js +1 -0
  121. package/dist/services/address-book/address-book.codecs.js.map +1 -1
  122. package/dist/services/address-book/address-book.schemas.d.ts +2 -2
  123. package/dist/services/api-keys/api-keys.schemas.d.ts +6 -6
  124. package/dist/services/assistant/assistant-events.schemas.d.ts +135 -37
  125. package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -1
  126. package/dist/services/assistant/assistant-events.schemas.js +15 -5
  127. package/dist/services/assistant/assistant-events.schemas.js.map +1 -1
  128. package/dist/services/assistant/assistant.codecs.d.ts +5 -2
  129. package/dist/services/assistant/assistant.codecs.d.ts.map +1 -1
  130. package/dist/services/assistant/assistant.codecs.js +10 -2
  131. package/dist/services/assistant/assistant.codecs.js.map +1 -1
  132. package/dist/services/assistant/assistant.js +1 -1
  133. package/dist/services/assistant/assistant.schemas.d.ts +1 -1
  134. package/dist/services/auth/auth.js +1 -1
  135. package/dist/services/auth/auth.js.map +1 -1
  136. package/dist/services/auth/profile/profile.js +1 -1
  137. package/dist/services/auto-withdraw/auto-withdraw.js +1 -1
  138. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +9 -9
  139. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -1
  140. package/dist/services/auto-withdraw/auto-withdraw.schemas.js +5 -12
  141. package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -1
  142. package/dist/services/candles/candles.js +1 -1
  143. package/dist/services/chain-analytics/chain-analytics.js +1 -1
  144. package/dist/services/changelog/changelog.js +1 -1
  145. package/dist/services/checkpoints/checkpoints.js +1 -1
  146. package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
  147. package/dist/services/claims/claims.js +1 -1
  148. package/dist/services/claims/claims.schemas.d.ts +2 -2
  149. package/dist/services/claims/claims.schemas.js +1 -1
  150. package/dist/services/connected-apps/connected-apps.d.ts +4 -4
  151. package/dist/services/connected-apps/connected-apps.d.ts.map +1 -1
  152. package/dist/services/connected-apps/connected-apps.js +14 -14
  153. package/dist/services/connected-apps/connected-apps.js.map +1 -1
  154. package/dist/services/connected-apps/connected-apps.schemas.d.ts +7 -7
  155. package/dist/services/connected-apps/connected-apps.schemas.d.ts.map +1 -1
  156. package/dist/services/connected-apps/connected-apps.schemas.js +10 -10
  157. package/dist/services/connected-apps/connected-apps.schemas.js.map +1 -1
  158. package/dist/services/connected-apps/connected-apps.types.d.ts +2 -2
  159. package/dist/services/deposit/deposit.js +1 -1
  160. package/dist/services/dust-conversion/dust-conversion.js +1 -1
  161. package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +8 -8
  162. package/dist/services/dust-conversion/dust-conversion.schemas.js +1 -1
  163. package/dist/services/fees/fees.js +1 -1
  164. package/dist/services/guard-signer/guard-signer.js +1 -1
  165. package/dist/services/heatmap/heatmap.js +1 -1
  166. package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
  167. package/dist/services/internal-transfers/internal-transfers.js +1 -1
  168. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +6 -6
  169. package/dist/services/lifecycle/lifecycle.js +1 -1
  170. package/dist/services/lifecycle/lifecycle.schemas.d.ts +13 -13
  171. package/dist/services/lifecycle/lifecycle.schemas.js +2 -2
  172. package/dist/services/market-data/market-data.codecs.d.ts +9 -1
  173. package/dist/services/market-data/market-data.codecs.d.ts.map +1 -1
  174. package/dist/services/market-data/market-data.codecs.js +14 -1
  175. package/dist/services/market-data/market-data.codecs.js.map +1 -1
  176. package/dist/services/market-data/market-data.d.ts +9 -1
  177. package/dist/services/market-data/market-data.d.ts.map +1 -1
  178. package/dist/services/market-data/market-data.js +15 -2
  179. package/dist/services/market-data/market-data.js.map +1 -1
  180. package/dist/services/market-data/market-data.schemas.d.ts +40 -2
  181. package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
  182. package/dist/services/market-data/market-data.schemas.js +43 -8
  183. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  184. package/dist/services/market-data/market-data.types.d.ts +3 -3
  185. package/dist/services/market-overview/market-overview.js +1 -1
  186. package/dist/services/market-overview/market-overview.schemas.js +1 -1
  187. package/dist/services/notifications/notifications.js +1 -1
  188. package/dist/services/notifications/notifications.schemas.d.ts +4 -4
  189. package/dist/services/orderbook/orderbook.js +1 -1
  190. package/dist/services/orders/order-errors.schemas.d.ts +9 -9
  191. package/dist/services/orders/order-errors.schemas.js +1 -1
  192. package/dist/services/orders/orders-batch.schemas.d.ts +97 -97
  193. package/dist/services/orders/orders-batch.schemas.js +1 -1
  194. package/dist/services/orders/orders-input.schemas.d.ts +16 -16
  195. package/dist/services/orders/orders-input.schemas.js +1 -1
  196. package/dist/services/orders/orders-modify.schemas.js +1 -1
  197. package/dist/services/orders/orders-output.schemas.d.ts +14 -14
  198. package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
  199. package/dist/services/orders/orders-output.schemas.js +1 -1
  200. package/dist/services/orders/orders-output.schemas.js.map +1 -1
  201. package/dist/services/orders/orders-risk.schemas.js +2 -2
  202. package/dist/services/orders/orders.d.ts +5 -0
  203. package/dist/services/orders/orders.d.ts.map +1 -1
  204. package/dist/services/orders/orders.js +7 -2
  205. package/dist/services/orders/orders.js.map +1 -1
  206. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
  207. package/dist/services/policies/shared.codecs.js +12 -3
  208. package/dist/services/policies/shared.codecs.js.map +1 -1
  209. package/dist/services/policies/shared.d.ts +1 -1
  210. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
  211. package/dist/services/price-alerts/price-alerts.js +1 -1
  212. package/dist/services/rate-limits/rate-limits.js +1 -1
  213. package/dist/services/rewards/rewards.js +1 -1
  214. package/dist/services/rewards/rewards.schemas.d.ts +4 -4
  215. package/dist/services/social-verification/social-verification.js +1 -1
  216. package/dist/services/social-verification/social-verification.schemas.js +1 -1
  217. package/dist/services/statement-exports/statement-exports.js +1 -1
  218. package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
  219. package/dist/services/strategies/service.d.ts +8 -0
  220. package/dist/services/strategies/service.d.ts.map +1 -0
  221. package/dist/services/strategies/service.js +9 -0
  222. package/dist/services/strategies/service.js.map +1 -0
  223. package/dist/services/strategies/strategies.codecs.d.ts +15 -0
  224. package/dist/services/strategies/strategies.codecs.d.ts.map +1 -0
  225. package/dist/services/strategies/strategies.codecs.js +50 -0
  226. package/dist/services/strategies/strategies.codecs.js.map +1 -0
  227. package/dist/services/strategies/strategies.d.ts +75 -0
  228. package/dist/services/strategies/strategies.d.ts.map +1 -0
  229. package/dist/services/strategies/strategies.js +135 -0
  230. package/dist/services/strategies/strategies.js.map +1 -0
  231. package/dist/services/strategies/strategies.schemas.d.ts +568 -0
  232. package/dist/services/strategies/strategies.schemas.d.ts.map +1 -0
  233. package/dist/services/strategies/strategies.schemas.js +408 -0
  234. package/dist/services/strategies/strategies.schemas.js.map +1 -0
  235. package/dist/services/strategies/strategies.types.d.ts +3 -0
  236. package/dist/services/subaccounts/subaccounts.schemas.d.ts +19 -19
  237. package/dist/services/swap/service.d.ts +8 -0
  238. package/dist/services/swap/service.d.ts.map +1 -0
  239. package/dist/services/swap/service.js +9 -0
  240. package/dist/services/swap/service.js.map +1 -0
  241. package/dist/services/swap/swap.codecs.d.ts +19 -0
  242. package/dist/services/swap/swap.codecs.d.ts.map +1 -0
  243. package/dist/services/swap/swap.codecs.js +39 -0
  244. package/dist/services/swap/swap.codecs.js.map +1 -0
  245. package/dist/services/swap/swap.d.ts +51 -0
  246. package/dist/services/swap/swap.d.ts.map +1 -0
  247. package/dist/services/swap/swap.js +71 -0
  248. package/dist/services/swap/swap.js.map +1 -0
  249. package/dist/services/swap/swap.schemas.d.ts +520 -0
  250. package/dist/services/swap/swap.schemas.d.ts.map +1 -0
  251. package/dist/services/swap/swap.schemas.js +213 -0
  252. package/dist/services/swap/swap.schemas.js.map +1 -0
  253. package/dist/services/swap/swap.types.d.ts +3 -0
  254. package/dist/services/system/system.js +1 -1
  255. package/dist/services/trades/trades.js +1 -1
  256. package/dist/services/trades/trades.schemas.d.ts +1 -1
  257. package/dist/services/trading-withdraws/trading-withdraws.d.ts +29 -2
  258. package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
  259. package/dist/services/trading-withdraws/trading-withdraws.js +75 -12
  260. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  261. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +85 -1
  262. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  263. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +57 -2
  264. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  265. package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +3 -3
  266. package/dist/services/trading-withdraws/wallet-message.js +30 -2
  267. package/dist/services/trading-withdraws/wallet-message.js.map +1 -1
  268. package/dist/services/triggers/trigger-child-order.schemas.js +2 -2
  269. package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
  270. package/dist/services/triggers/trigger-input.schemas.js +2 -2
  271. package/dist/services/triggers/triggers-output.schemas.d.ts +53 -53
  272. package/dist/services/triggers/triggers.js +1 -1
  273. package/dist/services/vip/vip.js +1 -1
  274. package/dist/services/vip/vip.schemas.d.ts +3 -3
  275. package/dist/services/vip/vip.schemas.js +1 -1
  276. package/dist/services/zipper/zipper.js +1 -1
  277. package/dist/services/zipper/zipper.schemas.js +1 -1
  278. package/dist/shared/connect-error-mapping.d.ts.map +1 -1
  279. package/dist/shared/connect-error-mapping.js +6 -0
  280. package/dist/shared/connect-error-mapping.js.map +1 -1
  281. package/dist/shared/decimal-surface.d.ts.map +1 -1
  282. package/dist/shared/decimal-surface.js +11 -1
  283. package/dist/shared/decimal-surface.js.map +1 -1
  284. package/dist/shared/error-detail.d.ts +37 -2
  285. package/dist/shared/error-detail.d.ts.map +1 -1
  286. package/dist/shared/error-detail.js +2 -0
  287. package/dist/shared/error-detail.js.map +1 -1
  288. package/dist/shared/error-details/alerts.js +1 -1
  289. package/dist/shared/error-details/assistant.js +1 -1
  290. package/dist/shared/error-details/auth.js +1 -1
  291. package/dist/shared/error-details/claims.js +1 -1
  292. package/dist/shared/error-details/internal-transfer.js +1 -1
  293. package/dist/shared/error-details/ledger.js +1 -1
  294. package/dist/shared/error-details/market-overview.js +1 -1
  295. package/dist/shared/error-details/notifications.js +1 -1
  296. package/dist/shared/error-details/orders.js +1 -1
  297. package/dist/shared/error-details/profile.js +1 -1
  298. package/dist/shared/error-details/rate-limit.js +1 -1
  299. package/dist/shared/error-details/strategies.js +36 -0
  300. package/dist/shared/error-details/strategies.js.map +1 -0
  301. package/dist/shared/error-details/swap.js +22 -0
  302. package/dist/shared/error-details/swap.js.map +1 -0
  303. package/dist/shared/error-details/withdraw.js +1 -1
  304. package/dist/shared/rate-limit.schemas.d.ts +1 -1
  305. package/dist/shared/rate-limit.schemas.js +1 -1
  306. package/dist/wired-services.d.ts.map +1 -1
  307. package/dist/wired-services.js +23 -19
  308. package/dist/wired-services.js.map +1 -1
  309. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { codeName, decodeDetail } from "../error-detail.js";
2
1
  import { ErrorCode, ErrorDetailSchema } from "../../gen/ledger/read/v1/ledger_read_pb.js";
2
+ import { codeName, decodeDetail } from "../error-detail.js";
3
3
  //#region src/shared/error-details/ledger.ts
4
4
  function decode(raw) {
5
5
  const ledger = decodeDetail(raw, ErrorDetailSchema);
@@ -1,5 +1,5 @@
1
- import { codeName, decodeDetail } from "../error-detail.js";
2
1
  import { ErrorCode, ErrorDetailSchema } from "../../gen/marketoverview/v1/marketoverview_pb.js";
2
+ import { codeName, decodeDetail } from "../error-detail.js";
3
3
  //#region src/shared/error-details/market-overview.ts
4
4
  function decode(raw) {
5
5
  const marketOverview = decodeDetail(raw, ErrorDetailSchema);
@@ -1,5 +1,5 @@
1
- import { codeName, decodeDetail } from "../error-detail.js";
2
1
  import { ErrorCode, ErrorDetailSchema } from "../../gen/notifications/v1/notifications_pb.js";
2
+ import { codeName, decodeDetail } from "../error-detail.js";
3
3
  //#region src/shared/error-details/notifications.ts
4
4
  function decode(raw) {
5
5
  const notification = decodeDetail(raw, ErrorDetailSchema);
@@ -1,5 +1,5 @@
1
- import { decodeDetail } from "../error-detail.js";
2
1
  import { ErrorDetailSchema } from "../../gen/orders/v1/orders_pb.js";
2
+ import { decodeDetail } from "../error-detail.js";
3
3
  import { OrderErrorDetailSchema } from "../../services/orders/order-errors.schemas.js";
4
4
  import * as v from "valibot";
5
5
  //#region src/shared/error-details/orders.ts
@@ -1,5 +1,5 @@
1
- import { codeName, decodeDetail } from "../error-detail.js";
2
1
  import { ProfileErrorCode, ProfileErrorDetailSchema } from "../../gen/auth/v1/profile_pb.js";
2
+ import { codeName, decodeDetail } from "../error-detail.js";
3
3
  //#region src/shared/error-details/profile.ts
4
4
  function decode(raw) {
5
5
  const profile = decodeDetail(raw, ProfileErrorDetailSchema);
@@ -1,5 +1,5 @@
1
- import { decodeDetail } from "../error-detail.js";
2
1
  import { RateLimitDetailSchema } from "../../gen/polyester/ratelimit/v1/types_pb.js";
2
+ import { decodeDetail } from "../error-detail.js";
3
3
  import { RateLimitDetailSchema as RateLimitDetailSchema$1 } from "../rate-limit.schemas.js";
4
4
  import * as v from "valibot";
5
5
  //#region src/shared/error-details/rate-limit.ts
@@ -0,0 +1,36 @@
1
+ import { ErrorCode, ErrorDetailSchema } from "../../gen/strategies/v1/strategies_pb.js";
2
+ import { codeName, decodeDetail } from "../error-detail.js";
3
+ import { tsObjToMs } from "../../utils/time.js";
4
+ //#region src/shared/error-details/strategies.ts
5
+ function decode(raw) {
6
+ const strategies = decodeDetail(raw, ErrorDetailSchema);
7
+ const code = strategies && codeName(ErrorCode, strategies.code);
8
+ if (!code) return void 0;
9
+ const detail = {
10
+ service: "strategies",
11
+ code
12
+ };
13
+ if (strategies.fieldPath) detail.fieldPath = strategies.fieldPath;
14
+ const retryAfter = tsObjToMs(strategies.retryAfter);
15
+ if (retryAfter !== void 0) detail.retryAfter = retryAfter;
16
+ if (strategies.botCap) {
17
+ const { vipTier, botCap, bots, nextVipTier, nextBotCap } = strategies.botCap;
18
+ detail.botCap = {
19
+ vipTier,
20
+ botCap,
21
+ bots,
22
+ nextVipTier,
23
+ nextBotCap
24
+ };
25
+ }
26
+ if (strategies.markets.length > 0) detail.markets = strategies.markets;
27
+ if (strategies.shortfall.length > 0) detail.shortfall = strategies.shortfall.map(({ asset, amount }) => ({
28
+ asset,
29
+ amount
30
+ }));
31
+ return detail;
32
+ }
33
+ //#endregion
34
+ export { decode };
35
+
36
+ //# sourceMappingURL=strategies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"strategies.js","names":[],"sources":["../../../src/shared/error-details/strategies.ts"],"sourcesContent":["import { ErrorCode, ErrorDetailSchema } from \"../../gen/strategies/v1/strategies_pb.js\";\nimport { tsObjToMs } from \"../../utils/time.js\";\nimport {\n codeName,\n decodeDetail,\n type ConnectErrorDetail,\n type PolyesterErrorDetail,\n} from \"../error-detail.js\";\n\nexport function decode(raw: ConnectErrorDetail): PolyesterErrorDetail | undefined {\n const strategies = decodeDetail(raw, ErrorDetailSchema);\n const code = strategies && codeName(ErrorCode, strategies.code);\n if (!code) return undefined;\n const detail: PolyesterErrorDetail = { service: \"strategies\", code };\n if (strategies.fieldPath) detail.fieldPath = strategies.fieldPath;\n const retryAfter = tsObjToMs(strategies.retryAfter);\n if (retryAfter !== undefined) detail.retryAfter = retryAfter;\n if (strategies.botCap) {\n const { vipTier, botCap, bots, nextVipTier, nextBotCap } = strategies.botCap;\n detail.botCap = { vipTier, botCap, bots, nextVipTier, nextBotCap };\n }\n if (strategies.markets.length > 0) detail.markets = strategies.markets;\n if (strategies.shortfall.length > 0) {\n detail.shortfall = strategies.shortfall.map(({ asset, amount }) => ({ asset, amount }));\n }\n return detail;\n}\n"],"mappings":";;;;AASA,SAAgB,OAAO,KAA2D;CAC9E,MAAM,aAAa,aAAa,KAAK,iBAAiB;CACtD,MAAM,OAAO,cAAc,SAAS,WAAW,WAAW,IAAI;CAC9D,IAAI,CAAC,MAAM,OAAO,KAAA;CAClB,MAAM,SAA+B;EAAE,SAAS;EAAc;CAAK;CACnE,IAAI,WAAW,WAAW,OAAO,YAAY,WAAW;CACxD,MAAM,aAAa,UAAU,WAAW,UAAU;CAClD,IAAI,eAAe,KAAA,GAAW,OAAO,aAAa;CAClD,IAAI,WAAW,QAAQ;EACnB,MAAM,EAAE,SAAS,QAAQ,MAAM,aAAa,eAAe,WAAW;EACtE,OAAO,SAAS;GAAE;GAAS;GAAQ;GAAM;GAAa;EAAW;CACrE;CACA,IAAI,WAAW,QAAQ,SAAS,GAAG,OAAO,UAAU,WAAW;CAC/D,IAAI,WAAW,UAAU,SAAS,GAC9B,OAAO,YAAY,WAAW,UAAU,KAAK,EAAE,OAAO,cAAc;EAAE;EAAO;CAAO,EAAE;CAE1F,OAAO;AACX"}
@@ -0,0 +1,22 @@
1
+ import { ErrorCode, ErrorDetailSchema } from "../../gen/swap/v1/swap_pb.js";
2
+ import { codeName, decodeDetail } from "../error-detail.js";
3
+ import { formatId } from "../../utils/base58-id.js";
4
+ import { scaledToDecimal } from "../../catalogs/decimal.js";
5
+ import { fromU128 } from "../../utils/u128.js";
6
+ //#region src/shared/error-details/swap.ts
7
+ function decode(raw) {
8
+ const swap = decodeDetail(raw, ErrorDetailSchema);
9
+ const code = swap && codeName(ErrorCode, swap.code);
10
+ if (!code) return void 0;
11
+ return {
12
+ service: "swap",
13
+ code,
14
+ ...swap.swapId ? { swapId: formatId(swap.swapId) } : {},
15
+ ...swap.minAmountE18 ? { minAmount: scaledToDecimal(fromU128(swap.minAmountE18), 18) } : {},
16
+ ...swap.maxAmountE18 ? { maxAmount: scaledToDecimal(fromU128(swap.maxAmountE18), 18) } : {}
17
+ };
18
+ }
19
+ //#endregion
20
+ export { decode };
21
+
22
+ //# sourceMappingURL=swap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swap.js","names":[],"sources":["../../../src/shared/error-details/swap.ts"],"sourcesContent":["import { scaledToDecimal } from \"../../catalogs/decimal.js\";\nimport { ErrorCode, ErrorDetailSchema } from \"../../gen/swap/v1/swap_pb.js\";\nimport { formatId } from \"../../utils/base58-id.js\";\nimport { fromU128 } from \"../../utils/u128.js\";\nimport {\n codeName,\n decodeDetail,\n type ConnectErrorDetail,\n type PolyesterErrorDetail,\n} from \"../error-detail.js\";\n\nexport function decode(raw: ConnectErrorDetail): PolyesterErrorDetail | undefined {\n const swap = decodeDetail(raw, ErrorDetailSchema);\n const code = swap && codeName(ErrorCode, swap.code);\n if (!code) return undefined;\n return {\n service: \"swap\",\n code,\n ...(swap.swapId ? { swapId: formatId(swap.swapId) } : {}),\n ...(swap.minAmountE18\n ? { minAmount: scaledToDecimal(fromU128(swap.minAmountE18), 18) }\n : {}),\n ...(swap.maxAmountE18\n ? { maxAmount: scaledToDecimal(fromU128(swap.maxAmountE18), 18) }\n : {}),\n };\n}\n"],"mappings":";;;;;;AAWA,SAAgB,OAAO,KAA2D;CAC9E,MAAM,OAAO,aAAa,KAAK,iBAAiB;CAChD,MAAM,OAAO,QAAQ,SAAS,WAAW,KAAK,IAAI;CAClD,IAAI,CAAC,MAAM,OAAO,KAAA;CAClB,OAAO;EACH,SAAS;EACT;EACA,GAAI,KAAK,SAAS,EAAE,QAAQ,SAAS,KAAK,MAAM,EAAE,IAAI,CAAC;EACvD,GAAI,KAAK,eACH,EAAE,WAAW,gBAAgB,SAAS,KAAK,YAAY,GAAG,EAAE,EAAE,IAC9D,CAAC;EACP,GAAI,KAAK,eACH,EAAE,WAAW,gBAAgB,SAAS,KAAK,YAAY,GAAG,EAAE,EAAE,IAC9D,CAAC;CACX;AACJ"}
@@ -1,8 +1,8 @@
1
+ import { ErrorCode, ErrorDetailSchema } from "../../gen/chain/withdraw/v1/withdraw_pb.js";
1
2
  import { codeName, decodeDetail } from "../error-detail.js";
2
3
  import { tsObjToMs } from "../../utils/time.js";
3
4
  import { fromU128 } from "../../utils/u128.js";
4
5
  import { scaledToDecimalOutput } from "../decimal-surface.js";
5
- import { ErrorCode, ErrorDetailSchema } from "../../gen/chain/withdraw/v1/withdraw_pb.js";
6
6
  //#region src/shared/error-details/withdraw.ts
7
7
  function decode(raw) {
8
8
  const withdraw = decodeDetail(raw, ErrorDetailSchema);
@@ -21,7 +21,7 @@ declare const RateLimitDetailSchema: v.ObjectSchema<{
21
21
  readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
22
22
  readonly operationId: v.StringSchema<undefined>;
23
23
  readonly policyClass: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read">]>;
24
- readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject">]>;
24
+ readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
25
25
  readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
26
26
  }, undefined>;
27
27
  /** Structured quota state exposed by order rejections and {@link RateLimitError}. */
@@ -1,6 +1,6 @@
1
+ import "../gen/polyester/ratelimit/v1/types_pb.js";
1
2
  import { OptionalBigIntStringSchema } from "./schemas.js";
2
3
  import { enumLabelSchema } from "./proto-enum-codec.js";
3
- import "../gen/polyester/ratelimit/v1/types_pb.js";
4
4
  import * as v from "valibot";
5
5
  /** Parses protobuf quota state into the stable SDK rate-limit detail shape. */
6
6
  const RateLimitDetailSchema = v.object({
@@ -1 +1 @@
1
- {"version":3,"file":"wired-services.d.ts","names":[],"sources":["../src/wired-services.ts"],"mappings":";;;;;;;;;;;cAuDa,oCAAoC"}
1
+ {"version":3,"file":"wired-services.d.ts","names":[],"sources":["../src/wired-services.ts"],"mappings":";;;;;;;;;;;cAyDa,oCAAoC"}
@@ -1,43 +1,45 @@
1
+ import { PriceAlertService } from "./gen/alerts/v1/price_alerts_pb.js";
2
+ import { DepositAddressService } from "./gen/chain/deposit/v1/deposit_pb.js";
3
+ import { LedgerReadService } from "./gen/ledger/read/v1/ledger_read_pb.js";
4
+ import { MarketDataService } from "./gen/marketdata/v1/marketdata_pb.js";
5
+ import { OrdersService } from "./gen/orders/v1/orders_pb.js";
6
+ import { OrdersReadService } from "./gen/orders/v1/orders_read_pb.js";
7
+ import { TriggersService } from "./gen/triggers/v1/triggers_pb.js";
8
+ import { AssistantService } from "./gen/ai/v1/assistant_pb.js";
1
9
  import { ApiKeyService } from "./gen/auth/v1/api_keys_pb.js";
2
10
  import { PolicyService } from "./gen/auth/v1/policies_pb.js";
3
- import { LedgerReadService } from "./gen/ledger/read/v1/ledger_read_pb.js";
4
11
  import { SubaccountRoleService, SubaccountService, SubaccountViewService } from "./gen/auth/v1/subaccounts_pb.js";
12
+ import { AccountActivityService } from "./gen/auth/v1/activity_pb.js";
5
13
  import { AddressBookService } from "./gen/auth/v1/address_book_pb.js";
6
14
  import { MFAService } from "./gen/auth/v1/mfa_pb.js";
7
15
  import { AuthService } from "./gen/auth/v1/auth_pb.js";
16
+ import { ConnectedAppService } from "./gen/auth/v1/connected_apps_pb.js";
8
17
  import { ProfileService } from "./gen/auth/v1/profile_pb.js";
9
- import { AccountActivityService } from "./gen/auth/v1/activity_pb.js";
10
18
  import { ResolveService } from "./gen/auth/v1/resolve_pb.js";
11
- import { PriceAlertService } from "./gen/alerts/v1/price_alerts_pb.js";
12
- import { DepositAddressService } from "./gen/chain/deposit/v1/deposit_pb.js";
13
- import { MarketDataService } from "./gen/marketdata/v1/marketdata_pb.js";
14
- import { OrdersService } from "./gen/orders/v1/orders_pb.js";
15
- import { OrdersReadService } from "./gen/orders/v1/orders_read_pb.js";
16
- import { TriggersService } from "./gen/triggers/v1/triggers_pb.js";
17
- import { AssistantService } from "./gen/ai/v1/assistant_pb.js";
18
- import { AutoWithdrawService } from "./gen/chain/withdraw/v1/auto_withdraw_pb.js";
19
+ import { SocialVerificationService } from "./gen/auth/v1/social_verification_pb.js";
19
20
  import { ChainAnalyticsService } from "./gen/chain/analytics/v1/analytics_read_pb.js";
21
+ import { GuardSignerService } from "./gen/chain/guard/v1/guard_signer_pb.js";
22
+ import { LifecycleReadService } from "./gen/chain/lifecycle/v1/lifecycle_read_pb.js";
23
+ import { AutoWithdrawService } from "./gen/chain/withdraw/v1/auto_withdraw_pb.js";
24
+ import { WithdrawService } from "./gen/chain/withdraw/v1/withdraw_pb.js";
25
+ import { ZipperService } from "./gen/chain/zipper/v1/zipper_pb.js";
20
26
  import { ChangelogService } from "./gen/changelog/v1/changelog_pb.js";
21
27
  import { CheckpointService } from "./gen/checkpoints/v1/checkpoints_pb.js";
22
28
  import { ClaimsService } from "./gen/claims/v1/claims_pb.js";
23
- import { ConnectedAppService } from "./gen/auth/v1/connected_apps_pb.js";
24
29
  import { FeeService } from "./gen/fees/v1/fees_pb.js";
25
- import { VIPService } from "./gen/vip/v1/vip_pb.js";
26
- import { GuardSignerService } from "./gen/chain/guard/v1/guard_signer_pb.js";
27
- import { HeatmapService } from "./gen/marketdata/v1/heatmap_pb.js";
28
30
  import { InternalTransferService } from "./gen/transfer/v1/internal_transfer_pb.js";
29
31
  import { DustConversionService } from "./gen/transfer/v1/dust_conversion_pb.js";
30
- import { LifecycleReadService } from "./gen/chain/lifecycle/v1/lifecycle_read_pb.js";
32
+ import { StatementExportService } from "./gen/ledger/read/v1/statement_export_pb.js";
33
+ import { HeatmapService } from "./gen/marketdata/v1/heatmap_pb.js";
31
34
  import { MarketOverviewService } from "./gen/marketoverview/v1/marketoverview_pb.js";
32
35
  import { NotificationService } from "./gen/notifications/v1/notifications_pb.js";
33
36
  import { OrderbookService } from "./gen/orderbook/v1/orderbook_pb.js";
34
37
  import { RateLimitService } from "./gen/ratelimit/v1/ratelimit_pb.js";
35
38
  import { RewardCampaignService } from "./gen/rewards/v1/rewards_pb.js";
36
- import { SocialVerificationService } from "./gen/auth/v1/social_verification_pb.js";
37
- import { StatementExportService } from "./gen/ledger/read/v1/statement_export_pb.js";
39
+ import { StrategiesService } from "./gen/strategies/v1/strategies_pb.js";
40
+ import { SwapService } from "./gen/swap/v1/swap_pb.js";
38
41
  import { SystemService } from "./gen/system/v1/system_pb.js";
39
- import { WithdrawService } from "./gen/chain/withdraw/v1/withdraw_pb.js";
40
- import { ZipperService } from "./gen/chain/zipper/v1/zipper_pb.js";
42
+ import { VIPService } from "./gen/vip/v1/vip_pb.js";
41
43
  //#region src/wired-services.ts
42
44
  /**
43
45
  * Every proto service descriptor the SDK's service layer wires a client for.
@@ -83,9 +85,11 @@ const WIRED_SERVICE_DESCRIPTORS = [
83
85
  RewardCampaignService,
84
86
  SocialVerificationService,
85
87
  StatementExportService,
88
+ StrategiesService,
86
89
  SubaccountRoleService,
87
90
  SubaccountService,
88
91
  SubaccountViewService,
92
+ SwapService,
89
93
  SystemService,
90
94
  TriggersService,
91
95
  VIPService,
@@ -1 +1 @@
1
- {"version":3,"file":"wired-services.js","names":[],"sources":["../src/wired-services.ts"],"sourcesContent":["import type { DescService } from \"@bufbuild/protobuf\";\nimport { AssistantService } from \"./gen/ai/v1/assistant_pb.js\";\nimport { PriceAlertService } from \"./gen/alerts/v1/price_alerts_pb.js\";\nimport { AccountActivityService } from \"./gen/auth/v1/activity_pb.js\";\nimport { AddressBookService } from \"./gen/auth/v1/address_book_pb.js\";\nimport { ApiKeyService } from \"./gen/auth/v1/api_keys_pb.js\";\nimport { AuthService } from \"./gen/auth/v1/auth_pb.js\";\nimport { ConnectedAppService } from \"./gen/auth/v1/connected_apps_pb.js\";\nimport { MFAService } from \"./gen/auth/v1/mfa_pb.js\";\nimport { PolicyService } from \"./gen/auth/v1/policies_pb.js\";\nimport { ProfileService } from \"./gen/auth/v1/profile_pb.js\";\nimport { ResolveService } from \"./gen/auth/v1/resolve_pb.js\";\nimport { SocialVerificationService } from \"./gen/auth/v1/social_verification_pb.js\";\nimport {\n SubaccountRoleService,\n SubaccountService,\n SubaccountViewService,\n} from \"./gen/auth/v1/subaccounts_pb.js\";\nimport { ChainAnalyticsService } from \"./gen/chain/analytics/v1/analytics_read_pb.js\";\nimport { DepositAddressService } from \"./gen/chain/deposit/v1/deposit_pb.js\";\nimport { GuardSignerService } from \"./gen/chain/guard/v1/guard_signer_pb.js\";\nimport { LifecycleReadService } from \"./gen/chain/lifecycle/v1/lifecycle_read_pb.js\";\nimport { AutoWithdrawService } from \"./gen/chain/withdraw/v1/auto_withdraw_pb.js\";\nimport { WithdrawService } from \"./gen/chain/withdraw/v1/withdraw_pb.js\";\nimport { ZipperService } from \"./gen/chain/zipper/v1/zipper_pb.js\";\nimport { ChangelogService } from \"./gen/changelog/v1/changelog_pb.js\";\nimport { CheckpointService } from \"./gen/checkpoints/v1/checkpoints_pb.js\";\nimport { ClaimsService } from \"./gen/claims/v1/claims_pb.js\";\nimport { FeeService } from \"./gen/fees/v1/fees_pb.js\";\nimport { LedgerReadService } from \"./gen/ledger/read/v1/ledger_read_pb.js\";\nimport { DustConversionService } from \"./gen/transfer/v1/dust_conversion_pb.js\";\nimport { StatementExportService } from \"./gen/ledger/read/v1/statement_export_pb.js\";\nimport { HeatmapService } from \"./gen/marketdata/v1/heatmap_pb.js\";\nimport { MarketDataService } from \"./gen/marketdata/v1/marketdata_pb.js\";\nimport { MarketOverviewService } from \"./gen/marketoverview/v1/marketoverview_pb.js\";\nimport { NotificationService } from \"./gen/notifications/v1/notifications_pb.js\";\nimport { OrderbookService } from \"./gen/orderbook/v1/orderbook_pb.js\";\nimport { OrdersService } from \"./gen/orders/v1/orders_pb.js\";\nimport { OrdersReadService } from \"./gen/orders/v1/orders_read_pb.js\";\nimport { RateLimitService } from \"./gen/ratelimit/v1/ratelimit_pb.js\";\nimport { RewardCampaignService } from \"./gen/rewards/v1/rewards_pb.js\";\nimport { InternalTransferService } from \"./gen/transfer/v1/internal_transfer_pb.js\";\nimport { SystemService } from \"./gen/system/v1/system_pb.js\";\nimport { TriggersService } from \"./gen/triggers/v1/triggers_pb.js\";\nimport { VIPService } from \"./gen/vip/v1/vip_pb.js\";\n\n/**\n * Every proto service descriptor the SDK's service layer wires a client for.\n * This is the authoritative surface for transport-level mocks: an in-memory\n * transport that routes all of these can serve the whole SDK.\n *\n * Kept in sync mechanically — `wired-services.test.ts` scans every\n * `createClient(...)` call site under `src/services` and `src/realtime` and\n * fails when this list drifts from the code.\n */\nexport const WIRED_SERVICE_DESCRIPTORS: readonly DescService[] = [\n AccountActivityService,\n AddressBookService,\n ApiKeyService,\n AssistantService,\n AuthService,\n AutoWithdrawService,\n ChainAnalyticsService,\n ChangelogService,\n CheckpointService,\n ClaimsService,\n ConnectedAppService,\n DepositAddressService,\n DustConversionService,\n FeeService,\n GuardSignerService,\n HeatmapService,\n InternalTransferService,\n LedgerReadService,\n LifecycleReadService,\n MarketDataService,\n MarketOverviewService,\n MFAService,\n NotificationService,\n OrderbookService,\n OrdersReadService,\n OrdersService,\n PolicyService,\n PriceAlertService,\n ProfileService,\n RateLimitService,\n ResolveService,\n RewardCampaignService,\n SocialVerificationService,\n StatementExportService,\n SubaccountRoleService,\n SubaccountService,\n SubaccountViewService,\n SystemService,\n TriggersService,\n VIPService,\n WithdrawService,\n ZipperService,\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDA,MAAa,4BAAoD;CAC7D;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ"}
1
+ {"version":3,"file":"wired-services.js","names":[],"sources":["../src/wired-services.ts"],"sourcesContent":["import type { DescService } from \"@bufbuild/protobuf\";\nimport { AssistantService } from \"./gen/ai/v1/assistant_pb.js\";\nimport { PriceAlertService } from \"./gen/alerts/v1/price_alerts_pb.js\";\nimport { AccountActivityService } from \"./gen/auth/v1/activity_pb.js\";\nimport { AddressBookService } from \"./gen/auth/v1/address_book_pb.js\";\nimport { ApiKeyService } from \"./gen/auth/v1/api_keys_pb.js\";\nimport { AuthService } from \"./gen/auth/v1/auth_pb.js\";\nimport { ConnectedAppService } from \"./gen/auth/v1/connected_apps_pb.js\";\nimport { MFAService } from \"./gen/auth/v1/mfa_pb.js\";\nimport { PolicyService } from \"./gen/auth/v1/policies_pb.js\";\nimport { ProfileService } from \"./gen/auth/v1/profile_pb.js\";\nimport { ResolveService } from \"./gen/auth/v1/resolve_pb.js\";\nimport { SocialVerificationService } from \"./gen/auth/v1/social_verification_pb.js\";\nimport {\n SubaccountRoleService,\n SubaccountService,\n SubaccountViewService,\n} from \"./gen/auth/v1/subaccounts_pb.js\";\nimport { ChainAnalyticsService } from \"./gen/chain/analytics/v1/analytics_read_pb.js\";\nimport { DepositAddressService } from \"./gen/chain/deposit/v1/deposit_pb.js\";\nimport { GuardSignerService } from \"./gen/chain/guard/v1/guard_signer_pb.js\";\nimport { LifecycleReadService } from \"./gen/chain/lifecycle/v1/lifecycle_read_pb.js\";\nimport { AutoWithdrawService } from \"./gen/chain/withdraw/v1/auto_withdraw_pb.js\";\nimport { WithdrawService } from \"./gen/chain/withdraw/v1/withdraw_pb.js\";\nimport { ZipperService } from \"./gen/chain/zipper/v1/zipper_pb.js\";\nimport { ChangelogService } from \"./gen/changelog/v1/changelog_pb.js\";\nimport { CheckpointService } from \"./gen/checkpoints/v1/checkpoints_pb.js\";\nimport { ClaimsService } from \"./gen/claims/v1/claims_pb.js\";\nimport { FeeService } from \"./gen/fees/v1/fees_pb.js\";\nimport { LedgerReadService } from \"./gen/ledger/read/v1/ledger_read_pb.js\";\nimport { DustConversionService } from \"./gen/transfer/v1/dust_conversion_pb.js\";\nimport { StatementExportService } from \"./gen/ledger/read/v1/statement_export_pb.js\";\nimport { HeatmapService } from \"./gen/marketdata/v1/heatmap_pb.js\";\nimport { MarketDataService } from \"./gen/marketdata/v1/marketdata_pb.js\";\nimport { MarketOverviewService } from \"./gen/marketoverview/v1/marketoverview_pb.js\";\nimport { NotificationService } from \"./gen/notifications/v1/notifications_pb.js\";\nimport { OrderbookService } from \"./gen/orderbook/v1/orderbook_pb.js\";\nimport { OrdersService } from \"./gen/orders/v1/orders_pb.js\";\nimport { OrdersReadService } from \"./gen/orders/v1/orders_read_pb.js\";\nimport { RateLimitService } from \"./gen/ratelimit/v1/ratelimit_pb.js\";\nimport { RewardCampaignService } from \"./gen/rewards/v1/rewards_pb.js\";\nimport { InternalTransferService } from \"./gen/transfer/v1/internal_transfer_pb.js\";\nimport { StrategiesService } from \"./gen/strategies/v1/strategies_pb.js\";\nimport { SwapService } from \"./gen/swap/v1/swap_pb.js\";\nimport { SystemService } from \"./gen/system/v1/system_pb.js\";\nimport { TriggersService } from \"./gen/triggers/v1/triggers_pb.js\";\nimport { VIPService } from \"./gen/vip/v1/vip_pb.js\";\n\n/**\n * Every proto service descriptor the SDK's service layer wires a client for.\n * This is the authoritative surface for transport-level mocks: an in-memory\n * transport that routes all of these can serve the whole SDK.\n *\n * Kept in sync mechanically — `wired-services.test.ts` scans every\n * `createClient(...)` call site under `src/services` and `src/realtime` and\n * fails when this list drifts from the code.\n */\nexport const WIRED_SERVICE_DESCRIPTORS: readonly DescService[] = [\n AccountActivityService,\n AddressBookService,\n ApiKeyService,\n AssistantService,\n AuthService,\n AutoWithdrawService,\n ChainAnalyticsService,\n ChangelogService,\n CheckpointService,\n ClaimsService,\n ConnectedAppService,\n DepositAddressService,\n DustConversionService,\n FeeService,\n GuardSignerService,\n HeatmapService,\n InternalTransferService,\n LedgerReadService,\n LifecycleReadService,\n MarketDataService,\n MarketOverviewService,\n MFAService,\n NotificationService,\n OrderbookService,\n OrdersReadService,\n OrdersService,\n PolicyService,\n PriceAlertService,\n ProfileService,\n RateLimitService,\n ResolveService,\n RewardCampaignService,\n SocialVerificationService,\n StatementExportService,\n StrategiesService,\n SubaccountRoleService,\n SubaccountService,\n SubaccountViewService,\n SwapService,\n SystemService,\n TriggersService,\n VIPService,\n WithdrawService,\n ZipperService,\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDA,MAAa,4BAAoD;CAC7D;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyester/sdk",
3
- "version": "0.36.0-devnet-20261119195411",
3
+ "version": "0.36.0-devnet-20261120040128",
4
4
  "private": false,
5
5
  "description": "TypeScript SDK providing access to APIs on Polyester Exchange.",
6
6
  "homepage": "https://github.com/Fabric-Labs/polyester-sdk-typescript#readme",