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

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 (152) hide show
  1. package/CHANGELOG.md +12 -2
  2. package/dist/client.d.ts +6 -0
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +6 -0
  5. package/dist/client.js.map +1 -1
  6. package/dist/gen/ai/v1/assistant_pb.d.ts +2 -2
  7. package/dist/gen/ai/v1/assistant_pb.js +2 -2
  8. package/dist/gen/index.d.ts +11 -11
  9. package/dist/gen/index.js +9 -9
  10. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +1 -1
  11. package/dist/gen/orders/v1/orders_read_pb.d.ts +1 -1
  12. package/dist/index.d.ts +10 -2
  13. package/dist/services/accounts/accounts.d.ts +1 -1
  14. package/dist/services/accounts/accounts.js +1 -1
  15. package/dist/services/accounts/accounts.js.map +1 -1
  16. package/dist/services/address-book/address-book.schemas.d.ts +2 -2
  17. package/dist/services/api-keys/api-keys.d.ts +18 -3
  18. package/dist/services/api-keys/api-keys.d.ts.map +1 -1
  19. package/dist/services/api-keys/api-keys.js +27 -3
  20. package/dist/services/api-keys/api-keys.js.map +1 -1
  21. package/dist/services/api-keys/api-keys.schemas.d.ts +112 -1
  22. package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
  23. package/dist/services/api-keys/api-keys.schemas.js +26 -2
  24. package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
  25. package/dist/services/api-keys/api-keys.types.d.ts +2 -2
  26. package/dist/services/api-keys/index.d.ts +2 -2
  27. package/dist/services/assistant/assistant-events.schemas.d.ts +4646 -0
  28. package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -0
  29. package/dist/services/assistant/assistant-events.schemas.js +485 -0
  30. package/dist/services/assistant/assistant-events.schemas.js.map +1 -0
  31. package/dist/services/assistant/assistant.codecs.d.ts +24 -0
  32. package/dist/services/assistant/assistant.codecs.d.ts.map +1 -0
  33. package/dist/services/assistant/assistant.codecs.js +88 -0
  34. package/dist/services/assistant/assistant.codecs.js.map +1 -0
  35. package/dist/services/assistant/assistant.d.ts +76 -0
  36. package/dist/services/assistant/assistant.d.ts.map +1 -0
  37. package/dist/services/assistant/assistant.js +133 -0
  38. package/dist/services/assistant/assistant.js.map +1 -0
  39. package/dist/services/assistant/assistant.schemas.d.ts +184 -0
  40. package/dist/services/assistant/assistant.schemas.d.ts.map +1 -0
  41. package/dist/services/assistant/assistant.schemas.js +135 -0
  42. package/dist/services/assistant/assistant.schemas.js.map +1 -0
  43. package/dist/services/assistant/assistant.types.d.ts +4 -0
  44. package/dist/services/assistant/service.d.ts +8 -0
  45. package/dist/services/assistant/service.d.ts.map +1 -0
  46. package/dist/services/assistant/service.js +9 -0
  47. package/dist/services/assistant/service.js.map +1 -0
  48. package/dist/services/auth/profile/profile.d.ts +2 -2
  49. package/dist/services/auth/profile/profile.js +2 -2
  50. package/dist/services/auth/profile/profile.js.map +1 -1
  51. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +19 -19
  52. package/dist/services/auto-withdraw/auto-withdraw.schemas.js +1 -1
  53. package/dist/services/balances/balances.js +1 -1
  54. package/dist/services/candles/candles.js +1 -1
  55. package/dist/services/candles/candles.schemas.js +5 -2
  56. package/dist/services/candles/candles.schemas.js.map +1 -1
  57. package/dist/services/changelog/changelog.schemas.d.ts +17 -17
  58. package/dist/services/checkpoints/checkpoints.d.ts +2 -2
  59. package/dist/services/checkpoints/checkpoints.js +2 -2
  60. package/dist/services/checkpoints/checkpoints.js.map +1 -1
  61. package/dist/services/checkpoints/checkpoints.schemas.d.ts +2 -2
  62. package/dist/services/deposit/deposit.d.ts +2 -2
  63. package/dist/services/deposit/deposit.js +2 -2
  64. package/dist/services/deposit/deposit.js.map +1 -1
  65. package/dist/services/guard-signer/guard-signer.d.ts +1 -1
  66. package/dist/services/guard-signer/guard-signer.js +1 -1
  67. package/dist/services/guard-signer/guard-signer.js.map +1 -1
  68. package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
  69. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +3 -3
  70. package/dist/services/lifecycle/lifecycle.schemas.d.ts +54 -54
  71. package/dist/services/market-data/market-data.js +1 -1
  72. package/dist/services/market-overview/market-overview.schemas.d.ts +1 -1
  73. package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
  74. package/dist/services/orders/order-errors.schemas.d.ts +1 -1
  75. package/dist/services/orders/orders-batch.schemas.d.ts +32 -32
  76. package/dist/services/orders/orders-input.schemas.d.ts +4 -4
  77. package/dist/services/orders/orders-input.schemas.js +1 -1
  78. package/dist/services/orders/orders-modify.schemas.js +1 -1
  79. package/dist/services/orders/orders-output.schemas.d.ts +25 -25
  80. package/dist/services/orders/orders-output.schemas.js +3 -3
  81. package/dist/services/orders/orders-risk.schemas.js +1 -1
  82. package/dist/services/orders/orders.codecs.js +1 -1
  83. package/dist/services/orders/orders.js +3 -3
  84. package/dist/services/policies/api-key-policies/api-key-policies.d.ts +2 -2
  85. package/dist/services/policies/api-key-policies/api-key-policies.js +2 -2
  86. package/dist/services/policies/api-key-policies/api-key-policies.js.map +1 -1
  87. package/dist/services/policies/subaccount-policies/subaccount-policies.d.ts +2 -2
  88. package/dist/services/policies/subaccount-policies/subaccount-policies.js +2 -2
  89. package/dist/services/policies/subaccount-policies/subaccount-policies.js.map +1 -1
  90. package/dist/services/price-alerts/price-alerts.codecs.d.ts +20 -0
  91. package/dist/services/price-alerts/price-alerts.codecs.d.ts.map +1 -0
  92. package/dist/services/price-alerts/price-alerts.codecs.js +66 -0
  93. package/dist/services/price-alerts/price-alerts.codecs.js.map +1 -0
  94. package/dist/services/price-alerts/price-alerts.d.ts +38 -0
  95. package/dist/services/price-alerts/price-alerts.d.ts.map +1 -0
  96. package/dist/services/price-alerts/price-alerts.js +60 -0
  97. package/dist/services/price-alerts/price-alerts.js.map +1 -0
  98. package/dist/services/price-alerts/price-alerts.schemas.d.ts +309 -0
  99. package/dist/services/price-alerts/price-alerts.schemas.d.ts.map +1 -0
  100. package/dist/services/price-alerts/price-alerts.schemas.js +130 -0
  101. package/dist/services/price-alerts/price-alerts.schemas.js.map +1 -0
  102. package/dist/services/price-alerts/price-alerts.types.d.ts +3 -0
  103. package/dist/services/price-alerts/service.d.ts +8 -0
  104. package/dist/services/price-alerts/service.d.ts.map +1 -0
  105. package/dist/services/price-alerts/service.js +9 -0
  106. package/dist/services/price-alerts/service.js.map +1 -0
  107. package/dist/services/rewards/rewards.schemas.d.ts +4 -4
  108. package/dist/services/social-verification/social-verification.d.ts +1 -1
  109. package/dist/services/social-verification/social-verification.js +1 -1
  110. package/dist/services/social-verification/social-verification.js.map +1 -1
  111. package/dist/services/subaccounts/subaccounts.d.ts +6 -6
  112. package/dist/services/subaccounts/subaccounts.js +6 -6
  113. package/dist/services/subaccounts/subaccounts.js.map +1 -1
  114. package/dist/services/subaccounts/subaccounts.schemas.d.ts +21 -21
  115. package/dist/services/system/service.d.ts +8 -0
  116. package/dist/services/system/service.d.ts.map +1 -0
  117. package/dist/services/system/service.js +9 -0
  118. package/dist/services/system/service.js.map +1 -0
  119. package/dist/services/system/system.d.ts +25 -0
  120. package/dist/services/system/system.d.ts.map +1 -0
  121. package/dist/services/system/system.js +24 -0
  122. package/dist/services/system/system.js.map +1 -0
  123. package/dist/services/trades/trades.js +1 -1
  124. package/dist/services/trades/trades.schemas.d.ts +2 -2
  125. package/dist/services/trades/trades.schemas.js +1 -1
  126. package/dist/services/trading-withdraws/trading-withdraws.d.ts +1 -1
  127. package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
  128. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  129. package/dist/services/triggers/trigger-child-order.schemas.js +1 -1
  130. package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
  131. package/dist/services/triggers/trigger-input.schemas.js +1 -1
  132. package/dist/services/triggers/triggers-output.schemas.d.ts +63 -63
  133. package/dist/services/triggers/triggers.codecs.js +1 -1
  134. package/dist/services/triggers/triggers.js +2 -2
  135. package/dist/services/vip/vip.d.ts +1 -1
  136. package/dist/services/vip/vip.js +1 -1
  137. package/dist/services/vip/vip.js.map +1 -1
  138. package/dist/shared/connect-error-mapping.d.ts.map +1 -1
  139. package/dist/shared/connect-error-mapping.js +1 -0
  140. package/dist/shared/connect-error-mapping.js.map +1 -1
  141. package/dist/shared/error-detail.d.ts +18 -10
  142. package/dist/shared/error-detail.d.ts.map +1 -1
  143. package/dist/shared/error-detail.js +2 -0
  144. package/dist/shared/error-detail.js.map +1 -1
  145. package/dist/shared/error-details/alerts.js +15 -0
  146. package/dist/shared/error-details/alerts.js.map +1 -0
  147. package/dist/shared/error-details/assistant.js +15 -0
  148. package/dist/shared/error-details/assistant.js.map +1 -0
  149. package/dist/wired-services.d.ts.map +1 -1
  150. package/dist/wired-services.js +11 -5
  151. package/dist/wired-services.js.map +1 -1
  152. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @polyester/sdk
2
2
 
3
- ## 0.35.0-devnet-20261111140253
3
+ ## 0.35.0-devnet-20261112024759
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -18,14 +18,20 @@
18
18
 
19
19
  - `createApiKeyEd25519AuthHeaders` now builds the same canonical string as the server's API-key verifier, so requests with escaped or unusual URLs stop failing signature checks. It signs the upper-cased method and the percent-decoded path, sorts query pairs by their decoded bytes (key, then value), and escapes everything outside `A-Z a-z 0-9 - . _ ~`, keeping bytes that are not UTF-8. A URL with a `;` in its query or a malformed percent-escape now throws `ConfigurationError` before signing, because the server rejects those requests whatever the signature. The tests pin the signing vectors shared with the Go, Python and Rust SDKs. ([#238](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/238))
20
20
 
21
+ - `checkpoints.list` docs no longer say API keys are refused: an API key scoped to the main account whose policy grants `read-checkpoints` can call it. Each method that API keys can now call names the permission it needs in its docs: API keys, policies, profile, accounts, social verification, VIP status, deposit addresses, withdraw validation, Guard Signer status and the sub-account reads. ([#250](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/250))
22
+
21
23
  - API keys add `purpose`: `"standard"` for keys the account holder made, `"assistant"` for keys made for the Polyester AI assistant, whose policy can never move value out of the account, or `"unspecified"` from older servers. Assistant keys are listed, updated and revoked like any other key. ([#247](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/247))
22
24
 
23
25
  - The API-key `recvWindow` docs now give the backend default of 5000 ms, down from 10000. The backend also refuses timestamps more than 1000 ms ahead of its clock, so keep the client clock synchronized. Signing is unchanged: HTTP requests never sent `X-API-NONCE`. ([#247](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/247))
24
26
 
25
27
  - API-key auth takes an optional `recvWindow`: a whole number of milliseconds from 1 to 60000, sent as `X-API-RECV-WINDOW` and signed on the line after the timestamp. The backend processes a request only until its timestamp plus the window, which defaults to 10000 when omitted. A value outside the range throws `ConfigurationError` before the request is sent. An `AUTH_RECV_WINDOW_INVALID` refusal maps to a non-retryable `ValidationError` rather than `AuthenticationError`, because the credentials are not at fault. ([#237](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/237))
26
28
 
29
+ - `apiKeys` adds `setAssistantKeys`, `listAssistantKeys` and `deleteAssistantKeys`. Available on devnet only. ([#248](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/248))
30
+
27
31
  - Asset configs from `marketData.getSpotConfig` and the catalog add `includedInEquity`. When it is `false`, balances of the asset are still reported but count for nothing in total equity. An absent value, from older servers or snapshots, means unknown, so it is never defaulted to `false`. ([#247](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/247))
28
32
 
33
+ - `client.assistant` wraps the Polyester AI assistant: send messages, stream runs with `watchRun`, decide approvals, and manage conversations, memories and assistant keys. Available on devnet only. ([#248](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/248))
34
+
29
35
  - Auto-withdraw destinations add `minFloor`, the least one payout can pay now (the route minimum, above its current network fee). A new rule's `minAmount` must be at least the floor, and it is null when the route or fee is unknown: show no floor then, not zero. Run steps add `networkFee`, the fee charged on the withdrawal, which is null until the step is final. Steps and previews can report `destination_cooling_down` for a broker vault destination whitelisted less than 24 hours ago. ([#247](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/247))
30
36
 
31
37
  - `autoWithdraw.previewRun({ account })` shows what the next run would pay from the balances, prices and fees now: `status` (`will_pay`, `rolls_over`, `no_destination`, `paused` or `no_rule`), `nextRunAt`, `ruleVersion`, the self-set `pause`, `minUsdValue`, `computedAt`, and one entry per asset with `available`, `payable`, `heldBack`, `holdReason`, `minimum`, `valueUsd` with `pricedAt`, `networkFee` with `networkFeeSampledAt`, and `payableFrom`. Amounts are decimal strings and times epoch milliseconds. Unknown values are null, never zero, and an asset the rule pays nowhere has a null destination. The preview can change before `nextRunAt`. API keys with `read-auto-withdraw` can read it. ([#247](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/247))
@@ -72,6 +78,8 @@
72
78
 
73
79
  - `PolicyAction` adds seven account permissions for API-key policies: `create-deposit-address`, `read-deposit-addresses`, `read-subaccounts`, `read-subaccount-activity`, `read-subaccount-members`, `read-subaccount-invites` and `read-guard-signer-status`. API keys now need them for the deposit-address, sub-account and Guard Signer reads, so add them to existing key policies that use those calls. A sub-account policy refuses them, so `subaccounts.policies.create` and `update` reject them with `ValidationError` before sending. ([#247](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/247))
74
80
 
81
+ - `client.priceAlerts` creates, lists, updates and cancels price alerts. Available on devnet only. ([#248](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/248))
82
+
75
83
  - Bound the private order stream's memory: frames over 4 MiB are dropped undecoded and the connection reconnects, and a snapshot staging more than 100,000 orders or 64 MiB ends its subscription with a `snapshot` error. ([#246](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/246))
76
84
 
77
85
  - `quickswapBrokerPb` in `@polyester/sdk/unstable/gen` adds `listVaultBalances`, which pages a broker's vault balances, with `VaultBalance` and `VaultAssetBalance`. The SDK has no QuickSwap broker client yet. ([#240](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/240))
@@ -100,6 +108,8 @@
100
108
 
101
109
  - `Subaccount` records now carry `removed`. `subaccounts.subscribe` emits `removed: true` (with `role: "unspecified"`) when the caller loses access to a subaccount, for example after the owner removes them as a member, so drop it from local state. List and get responses always return `false`. Access and role changes do not bump `revision` or `updatedAt`, so apply them in arrival order. ([#235](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/235))
102
110
 
111
+ - `client.system.getVersion()` returns the version, commit and environment the API serves. ([#248](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/248))
112
+
103
113
  - Social verification links Telegram accounts. `socialVerification.start({ provider: "telegram" })` returns an `actionUrl` that opens the Polyester bot with the code. Poll `get` until the status is `"awaiting_confirmation"`, show the account's `handle`, `displayName` and `providerUserId`, then call `confirm({ provider: "telegram", providerUserId })` with a fresh `stepUpToken` to link exactly that account. `unlink({ provider: "telegram" })` removes the link or cancels one in progress. `providerUserId` stays a decimal string. Telegram does not use `markReady`, and starting again while an account is linked fails until it is unlinked. ([#247](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/247))
104
114
 
105
115
  - `tradeWsPb` in `@polyester/sdk/unstable/gen` adds the `cancelAllAfter` client command and acknowledgement, which arm, refresh or disarm the account's dead-man switch, plus the `ClientFrame` fields `timestampMs` and `recvWindowMs`, which set a per-command receive window. The SDK has no trading WebSocket client yet. ([#237](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/237))
@@ -112,7 +122,7 @@
112
122
 
113
123
  - `triggers.fromProto(trigger)` converts a `triggers.v1.Trigger` message received from another API into the same `Trigger` record that `triggers.get`, `list`, and `subscribe` return, with quantities and prices scaled by the client's catalog. It waits for the catalog and throws when the trigger's market isn't in it. ([#239](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/239))
114
124
 
115
- - `@polyester/sdk/unstable/gen` adds `assistantPb` (the AI assistant), `priceAlertsPb` (price alerts), `systemPb` (`getVersion`) and `quickswapReferralPb` (QuickSwap referrals). `quickswapBrokerPb` adds broker payouts and vault payout rules, and `apiKeysPb` adds the assistant key methods. The assistant, price alerts and assistant keys are available on devnet only. The SDK has no wrapped clients for these services yet. ([#247](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/247))
125
+ - `@polyester/sdk/unstable/gen` adds `assistantPb` (the AI assistant), `priceAlertsPb` (price alerts), `systemPb` (`getVersion`) and `quickswapReferralPb` (QuickSwap referrals). `quickswapBrokerPb` adds broker payouts and vault payout rules, and `apiKeysPb` adds the assistant key methods. The assistant, price alerts and assistant keys are available on devnet only. ([#247](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/247))
116
126
 
117
127
  - A wallet login refused with `AUTH_WALLET_ALREADY_LINKED` maps to a non-retryable `AlreadyExistsError`. The wallet already belongs to another account, so the same login fails again. Log in with the account address the wallet already uses. ([#236](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/236))
118
128
 
package/dist/client.d.ts CHANGED
@@ -11,6 +11,8 @@ import { LifecycleService } from "./services/lifecycle/lifecycle.js";
11
11
  import { TradesService } from "./services/trades/trades.js";
12
12
  import { OrdersService } from "./services/orders/orders.js";
13
13
  import { TriggersService } from "./services/triggers/triggers.js";
14
+ import { PriceAlertsService } from "./services/price-alerts/price-alerts.js";
15
+ import { AssistantService } from "./services/assistant/assistant.js";
14
16
  import { BalancesService } from "./services/balances/balances.js";
15
17
  import { TransfersService } from "./services/transfers/transfers.js";
16
18
  import { InternalTransfersService } from "./services/internal-transfers/internal-transfers.js";
@@ -25,6 +27,7 @@ import { MfaService } from "./services/mfa/mfa.js";
25
27
  import { ClaimsService } from "./services/claims/claims.js";
26
28
  import { CheckpointsService } from "./services/checkpoints/checkpoints.js";
27
29
  import { ChangelogService } from "./services/changelog/changelog.js";
30
+ import { SystemService } from "./services/system/system.js";
28
31
  import { RewardsService } from "./services/rewards/rewards.js";
29
32
  import { VipService } from "./services/vip/vip.js";
30
33
  import { FeesService } from "./services/fees/fees.js";
@@ -46,6 +49,8 @@ declare const POLYESTER_SERVICES: {
46
49
  trades: (client: PolyesterCore) => TradesService;
47
50
  orders: (client: PolyesterCore) => OrdersService;
48
51
  triggers: (client: PolyesterCore) => TriggersService;
52
+ priceAlerts: (client: PolyesterCore) => PriceAlertsService;
53
+ assistant: (client: PolyesterCore) => AssistantService;
49
54
  balances: (client: PolyesterCore) => BalancesService;
50
55
  transfers: (client: PolyesterCore) => TransfersService;
51
56
  internalTransfers: (client: PolyesterCore) => InternalTransfersService;
@@ -60,6 +65,7 @@ declare const POLYESTER_SERVICES: {
60
65
  claims: (client: PolyesterCore) => ClaimsService;
61
66
  checkpoints: (client: PolyesterCore) => CheckpointsService;
62
67
  changelog: (client: PolyesterCore) => ChangelogService;
68
+ system: (client: PolyesterCore) => SystemService;
63
69
  rewards: (client: PolyesterCore) => RewardsService;
64
70
  vip: (client: PolyesterCore) => VipService;
65
71
  fees: (client: PolyesterCore) => FeesService;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","names":[],"sources":["../src/client.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkCa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmCD,gCACE,kBAAkB,qBAAqB,mBAAmB,oBAAoB;UAgB3E,wBAAwB;;;;;cAO5B,wBAAwB"}
1
+ {"version":3,"file":"client.d.ts","names":[],"sources":["../src/client.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqCa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsCD,gCACE,kBAAkB,qBAAqB,mBAAmB,oBAAoB;UAgB3E,wBAAwB;;;;;cAO5B,wBAAwB"}
package/dist/client.js CHANGED
@@ -2,6 +2,7 @@ import { PolyesterCore } from "./core-client.js";
2
2
  import { accountsService } from "./services/accounts/service.js";
3
3
  import { addressBookService } from "./services/address-book/service.js";
4
4
  import { apiKeysService } from "./services/api-keys/service.js";
5
+ import { assistantService } from "./services/assistant/service.js";
5
6
  import { autoWithdrawService } from "./services/auto-withdraw/service.js";
6
7
  import { balancesService } from "./services/balances/service.js";
7
8
  import { candlesService } from "./services/candles/service.js";
@@ -21,9 +22,11 @@ import { mfaService } from "./services/mfa/service.js";
21
22
  import { orderbookService } from "./services/orderbook/service.js";
22
23
  import { ordersService } from "./services/orders/service.js";
23
24
  import { tradingRateLimitsService } from "./services/rate-limits/service.js";
25
+ import { priceAlertsService } from "./services/price-alerts/service.js";
24
26
  import { rewardsService } from "./services/rewards/service.js";
25
27
  import { socialVerificationService } from "./services/social-verification/service.js";
26
28
  import { subaccountsService } from "./services/subaccounts/service.js";
29
+ import { systemService } from "./services/system/service.js";
27
30
  import { tradesService } from "./services/trades/service.js";
28
31
  import { tradingWithdrawsService } from "./services/trading-withdraws/service.js";
29
32
  import { transfersService } from "./services/transfers/service.js";
@@ -46,6 +49,8 @@ const POLYESTER_SERVICES = {
46
49
  trades: tradesService,
47
50
  orders: ordersService,
48
51
  triggers: triggersService,
52
+ priceAlerts: priceAlertsService,
53
+ assistant: assistantService,
49
54
  balances: balancesService,
50
55
  transfers: transfersService,
51
56
  internalTransfers: internalTransfersService,
@@ -60,6 +65,7 @@ const POLYESTER_SERVICES = {
60
65
  claims: claimsService,
61
66
  checkpoints: checkpointsService,
62
67
  changelog: changelogService,
68
+ system: systemService,
63
69
  rewards: rewardsService,
64
70
  vip: vipService,
65
71
  fees: feesService,
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","names":[],"sources":["../src/client.ts"],"sourcesContent":["import { PolyesterCore } from \"./core-client.js\";\nimport { accountsService } from \"./services/accounts/service.js\";\nimport { addressBookService } from \"./services/address-book/service.js\";\nimport { apiKeysService } from \"./services/api-keys/service.js\";\nimport { autoWithdrawService } from \"./services/auto-withdraw/service.js\";\nimport { balancesService } from \"./services/balances/service.js\";\nimport { candlesService } from \"./services/candles/service.js\";\nimport { chainAnalyticsService } from \"./services/chain-analytics/service.js\";\nimport { changelogService } from \"./services/changelog/service.js\";\nimport { checkpointsService } from \"./services/checkpoints/service.js\";\nimport { claimsService } from \"./services/claims/service.js\";\nimport { depositService } from \"./services/deposit/service.js\";\nimport { feesService } from \"./services/fees/service.js\";\nimport { guardSignerService } from \"./services/guard-signer/service.js\";\nimport { heatmapService } from \"./services/heatmap/service.js\";\nimport { internalTransfersService } from \"./services/internal-transfers/service.js\";\nimport { lifecycleService } from \"./services/lifecycle/service.js\";\nimport { marketDataService } from \"./services/market-data/service.js\";\nimport { marketOverviewService } from \"./services/market-overview/service.js\";\nimport { mfaService } from \"./services/mfa/service.js\";\nimport { orderbookService } from \"./services/orderbook/service.js\";\nimport { ordersService } from \"./services/orders/service.js\";\nimport { tradingRateLimitsService } from \"./services/rate-limits/service.js\";\nimport { rewardsService } from \"./services/rewards/service.js\";\nimport { socialVerificationService } from \"./services/social-verification/service.js\";\nimport { subaccountsService } from \"./services/subaccounts/service.js\";\nimport { tradesService } from \"./services/trades/service.js\";\nimport { tradingWithdrawsService } from \"./services/trading-withdraws/service.js\";\nimport { transfersService } from \"./services/transfers/service.js\";\nimport { triggersService } from \"./services/triggers/service.js\";\nimport { vipService } from \"./services/vip/service.js\";\nimport { zipperService } from \"./services/zipper/service.js\";\n\n/** Every service accessor, keyed by its getter name on the full clients. */\nexport const POLYESTER_SERVICES = {\n accounts: accountsService,\n apiKeys: apiKeysService,\n subaccounts: subaccountsService,\n candles: candlesService,\n chainAnalytics: chainAnalyticsService,\n marketData: marketDataService,\n marketOverview: marketOverviewService,\n orderbook: orderbookService,\n heatmap: heatmapService,\n lifecycle: lifecycleService,\n trades: tradesService,\n orders: ordersService,\n triggers: triggersService,\n balances: balancesService,\n transfers: transfersService,\n internalTransfers: internalTransfersService,\n tradingWithdraws: tradingWithdrawsService,\n autoWithdraw: autoWithdrawService,\n deposit: depositService,\n addressBook: addressBookService,\n guardSigner: guardSignerService,\n socialVerification: socialVerificationService,\n zipper: zipperService,\n mfa: mfaService,\n claims: claimsService,\n checkpoints: checkpointsService,\n changelog: changelogService,\n rewards: rewardsService,\n vip: vipService,\n fees: feesService,\n tradingRateLimits: tradingRateLimitsService,\n};\n\n/** Service getters shared by the full clients; each returns the same instance as its accessor. */\nexport type PolyesterServices = {\n readonly [K in keyof typeof POLYESTER_SERVICES]: ReturnType<(typeof POLYESTER_SERVICES)[K]>;\n};\n\n/** Defines a lazy getter per service, so the full clients stay in sync with the accessors. */\nexport function installServiceGetters(target: abstract new (...args: never[]) => PolyesterCore) {\n for (const [name, service] of Object.entries(POLYESTER_SERVICES)) {\n Object.defineProperty(target.prototype, name, {\n configurable: true,\n get(this: PolyesterCore) {\n return service(this);\n },\n });\n }\n}\n\n// oxlint-disable-next-line typescript/no-unsafe-declaration-merging -- getters are installed below\nexport interface PolyesterClient extends PolyesterServices {}\n\n/**\n * Base SDK client with a lazy getter for every public service. Bundles that only\n * need a few services can use `PolyesterCore` with `@polyester/sdk/services/*` instead.\n */\n// oxlint-disable-next-line typescript/no-unsafe-declaration-merging -- getters are installed below\nexport class PolyesterClient extends PolyesterCore {\n static {\n installServiceGetters(this);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,MAAa,qBAAqB;CAC9B,UAAU;CACV,SAAS;CACT,aAAa;CACb,SAAS;CACT,gBAAgB;CAChB,YAAY;CACZ,gBAAgB;CAChB,WAAW;CACX,SAAS;CACT,WAAW;CACX,QAAQ;CACR,QAAQ;CACR,UAAU;CACV,UAAU;CACV,WAAW;CACX,mBAAmB;CACnB,kBAAkB;CAClB,cAAc;CACd,SAAS;CACT,aAAa;CACb,aAAa;CACb,oBAAoB;CACpB,QAAQ;CACR,KAAK;CACL,QAAQ;CACR,aAAa;CACb,WAAW;CACX,SAAS;CACT,KAAK;CACL,MAAM;CACN,mBAAmB;AACvB;;AAQA,SAAgB,sBAAsB,QAA0D;CAC5F,KAAK,MAAM,CAAC,MAAM,YAAY,OAAO,QAAQ,kBAAkB,GAC3D,OAAO,eAAe,OAAO,WAAW,MAAM;EAC1C,cAAc;EACd,MAAyB;GACrB,OAAO,QAAQ,IAAI;EACvB;CACJ,CAAC;AAET;;;;;AAUA,IAAa,kBAAb,cAAqC,cAAc;CAC/C;EACI,sBAAsB,IAAI;CAC9B;AACJ"}
1
+ {"version":3,"file":"client.js","names":[],"sources":["../src/client.ts"],"sourcesContent":["import { PolyesterCore } from \"./core-client.js\";\nimport { accountsService } from \"./services/accounts/service.js\";\nimport { addressBookService } from \"./services/address-book/service.js\";\nimport { apiKeysService } from \"./services/api-keys/service.js\";\nimport { assistantService } from \"./services/assistant/service.js\";\nimport { autoWithdrawService } from \"./services/auto-withdraw/service.js\";\nimport { balancesService } from \"./services/balances/service.js\";\nimport { candlesService } from \"./services/candles/service.js\";\nimport { chainAnalyticsService } from \"./services/chain-analytics/service.js\";\nimport { changelogService } from \"./services/changelog/service.js\";\nimport { checkpointsService } from \"./services/checkpoints/service.js\";\nimport { claimsService } from \"./services/claims/service.js\";\nimport { depositService } from \"./services/deposit/service.js\";\nimport { feesService } from \"./services/fees/service.js\";\nimport { guardSignerService } from \"./services/guard-signer/service.js\";\nimport { heatmapService } from \"./services/heatmap/service.js\";\nimport { internalTransfersService } from \"./services/internal-transfers/service.js\";\nimport { lifecycleService } from \"./services/lifecycle/service.js\";\nimport { marketDataService } from \"./services/market-data/service.js\";\nimport { marketOverviewService } from \"./services/market-overview/service.js\";\nimport { mfaService } from \"./services/mfa/service.js\";\nimport { orderbookService } from \"./services/orderbook/service.js\";\nimport { ordersService } from \"./services/orders/service.js\";\nimport { tradingRateLimitsService } from \"./services/rate-limits/service.js\";\nimport { priceAlertsService } from \"./services/price-alerts/service.js\";\nimport { rewardsService } from \"./services/rewards/service.js\";\nimport { socialVerificationService } from \"./services/social-verification/service.js\";\nimport { subaccountsService } from \"./services/subaccounts/service.js\";\nimport { systemService } from \"./services/system/service.js\";\nimport { tradesService } from \"./services/trades/service.js\";\nimport { tradingWithdrawsService } from \"./services/trading-withdraws/service.js\";\nimport { transfersService } from \"./services/transfers/service.js\";\nimport { triggersService } from \"./services/triggers/service.js\";\nimport { vipService } from \"./services/vip/service.js\";\nimport { zipperService } from \"./services/zipper/service.js\";\n\n/** Every service accessor, keyed by its getter name on the full clients. */\nexport const POLYESTER_SERVICES = {\n accounts: accountsService,\n apiKeys: apiKeysService,\n subaccounts: subaccountsService,\n candles: candlesService,\n chainAnalytics: chainAnalyticsService,\n marketData: marketDataService,\n marketOverview: marketOverviewService,\n orderbook: orderbookService,\n heatmap: heatmapService,\n lifecycle: lifecycleService,\n trades: tradesService,\n orders: ordersService,\n triggers: triggersService,\n priceAlerts: priceAlertsService,\n assistant: assistantService,\n balances: balancesService,\n transfers: transfersService,\n internalTransfers: internalTransfersService,\n tradingWithdraws: tradingWithdrawsService,\n autoWithdraw: autoWithdrawService,\n deposit: depositService,\n addressBook: addressBookService,\n guardSigner: guardSignerService,\n socialVerification: socialVerificationService,\n zipper: zipperService,\n mfa: mfaService,\n claims: claimsService,\n checkpoints: checkpointsService,\n changelog: changelogService,\n system: systemService,\n rewards: rewardsService,\n vip: vipService,\n fees: feesService,\n tradingRateLimits: tradingRateLimitsService,\n};\n\n/** Service getters shared by the full clients; each returns the same instance as its accessor. */\nexport type PolyesterServices = {\n readonly [K in keyof typeof POLYESTER_SERVICES]: ReturnType<(typeof POLYESTER_SERVICES)[K]>;\n};\n\n/** Defines a lazy getter per service, so the full clients stay in sync with the accessors. */\nexport function installServiceGetters(target: abstract new (...args: never[]) => PolyesterCore) {\n for (const [name, service] of Object.entries(POLYESTER_SERVICES)) {\n Object.defineProperty(target.prototype, name, {\n configurable: true,\n get(this: PolyesterCore) {\n return service(this);\n },\n });\n }\n}\n\n// oxlint-disable-next-line typescript/no-unsafe-declaration-merging -- getters are installed below\nexport interface PolyesterClient extends PolyesterServices {}\n\n/**\n * Base SDK client with a lazy getter for every public service. Bundles that only\n * need a few services can use `PolyesterCore` with `@polyester/sdk/services/*` instead.\n */\n// oxlint-disable-next-line typescript/no-unsafe-declaration-merging -- getters are installed below\nexport class PolyesterClient extends PolyesterCore {\n static {\n installServiceGetters(this);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,MAAa,qBAAqB;CAC9B,UAAU;CACV,SAAS;CACT,aAAa;CACb,SAAS;CACT,gBAAgB;CAChB,YAAY;CACZ,gBAAgB;CAChB,WAAW;CACX,SAAS;CACT,WAAW;CACX,QAAQ;CACR,QAAQ;CACR,UAAU;CACV,aAAa;CACb,WAAW;CACX,UAAU;CACV,WAAW;CACX,mBAAmB;CACnB,kBAAkB;CAClB,cAAc;CACd,SAAS;CACT,aAAa;CACb,aAAa;CACb,oBAAoB;CACpB,QAAQ;CACR,KAAK;CACL,QAAQ;CACR,aAAa;CACb,WAAW;CACX,QAAQ;CACR,SAAS;CACT,KAAK;CACL,MAAM;CACN,mBAAmB;AACvB;;AAQA,SAAgB,sBAAsB,QAA0D;CAC5F,KAAK,MAAM,CAAC,MAAM,YAAY,OAAO,QAAQ,kBAAkB,GAC3D,OAAO,eAAe,OAAO,WAAW,MAAM;EAC1C,cAAc;EACd,MAAyB;GACrB,OAAO,QAAQ,IAAI;EACvB;CACJ,CAAC;AAET;;;;;AAUA,IAAa,kBAAb,cAAqC,cAAc;CAC/C;EACI,sBAAsB,IAAI;CAC9B;AACJ"}
@@ -1,8 +1,8 @@
1
- import { AssetBalance, GetBalanceHistoryResponse, GetEquityHistorySeriesResponse, TransferRow } from "../../ledger/read/v1/ledger_read_pb.js";
2
- import { Side, TimeInForce, TriggerPriceSource } from "../../orders/v1/orders_pb.js";
3
1
  import { PriceAlert } from "../../alerts/v1/price_alerts_pb.js";
4
2
  import { DepositAddress } from "../../chain/deposit/v1/deposit_pb.js";
3
+ import { AssetBalance, GetBalanceHistoryResponse, GetEquityHistorySeriesResponse, TransferRow } from "../../ledger/read/v1/ledger_read_pb.js";
5
4
  import { Candle, Timeframe } from "../../marketdata/v1/marketdata_pb.js";
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
8
  import { JsonObject, Message as Message$1 } from "@bufbuild/protobuf";
@@ -1,12 +1,12 @@
1
1
  import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
2
2
  import { file_polyester_api_options } from "../../polyester/api/options_pb.js";
3
3
  import { file_ledger_read_v1_ledger_read } from "../../ledger/read/v1/ledger_read_pb.js";
4
+ import { file_alerts_v1_price_alerts } from "../../alerts/v1/price_alerts_pb.js";
5
+ import { file_chain_deposit_v1_deposit } from "../../chain/deposit/v1/deposit_pb.js";
4
6
  import { file_marketdata_v1_marketdata } from "../../marketdata/v1/marketdata_pb.js";
5
7
  import { file_orders_v1_orders } from "../../orders/v1/orders_pb.js";
6
- import { file_chain_deposit_v1_deposit } from "../../chain/deposit/v1/deposit_pb.js";
7
8
  import { file_orders_v1_orders_read } from "../../orders/v1/orders_read_pb.js";
8
9
  import { file_triggers_v1_triggers } from "../../triggers/v1/triggers_pb.js";
9
- import { file_alerts_v1_price_alerts } from "../../alerts/v1/price_alerts_pb.js";
10
10
  import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
11
11
  import { file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
12
12
  //#region src/gen/ai/v1/assistant_pb.ts
@@ -1,21 +1,21 @@
1
- import { mfa_pb_d_exports } from "./auth/v1/mfa_pb.js";
2
- import { auth_pb_d_exports } from "./auth/v1/auth_pb.js";
3
- import { profile_pb_d_exports } from "./auth/v1/profile_pb.js";
4
- import { u128_pb_d_exports } from "./polyester/type/v1/u128_pb.js";
5
- import { claims_pb_d_exports } from "./claims/v1/claims_pb.js";
6
- import { withdraw_pb_d_exports } from "./chain/withdraw/v1/withdraw_pb.js";
1
+ import { price_alerts_pb_d_exports } from "./alerts/v1/price_alerts_pb.js";
2
+ import { deposit_pb_d_exports } from "./chain/deposit/v1/deposit_pb.js";
7
3
  import { catalog_pb_d_exports } from "./ledger/v1/catalog_pb.js";
4
+ import { u128_pb_d_exports } from "./polyester/type/v1/u128_pb.js";
8
5
  import { ledger_read_pb_d_exports } from "./ledger/read/v1/ledger_read_pb.js";
9
- import { marketoverview_pb_d_exports } from "./marketoverview/v1/marketoverview_pb.js";
10
- import { internal_transfer_pb_d_exports } from "./transfer/v1/internal_transfer_pb.js";
6
+ import { marketdata_pb_d_exports } from "./marketdata/v1/marketdata_pb.js";
11
7
  import { types_pb_d_exports as types_pb_d_exports$1 } from "./polyester/ratelimit/v1/types_pb.js";
12
8
  import { orders_pb_d_exports } from "./orders/v1/orders_pb.js";
13
- import { price_alerts_pb_d_exports } from "./alerts/v1/price_alerts_pb.js";
14
- import { deposit_pb_d_exports } from "./chain/deposit/v1/deposit_pb.js";
15
- import { marketdata_pb_d_exports } from "./marketdata/v1/marketdata_pb.js";
16
9
  import { orders_read_pb_d_exports } from "./orders/v1/orders_read_pb.js";
17
10
  import { triggers_pb_d_exports } from "./triggers/v1/triggers_pb.js";
18
11
  import { assistant_pb_d_exports } from "./ai/v1/assistant_pb.js";
12
+ import { mfa_pb_d_exports } from "./auth/v1/mfa_pb.js";
13
+ import { auth_pb_d_exports } from "./auth/v1/auth_pb.js";
14
+ import { profile_pb_d_exports } from "./auth/v1/profile_pb.js";
15
+ import { claims_pb_d_exports } from "./claims/v1/claims_pb.js";
16
+ import { withdraw_pb_d_exports } from "./chain/withdraw/v1/withdraw_pb.js";
17
+ import { marketoverview_pb_d_exports } from "./marketoverview/v1/marketoverview_pb.js";
18
+ import { internal_transfer_pb_d_exports } from "./transfer/v1/internal_transfer_pb.js";
19
19
  import { api_keys_pb_d_exports } from "./auth/v1/api_keys_pb.js";
20
20
  import { policies_pb_d_exports } from "./auth/v1/policies_pb.js";
21
21
  import { subaccounts_pb_d_exports } from "./auth/v1/subaccounts_pb.js";
package/dist/gen/index.js CHANGED
@@ -10,15 +10,19 @@ import { u128_pb_exports } from "./polyester/type/v1/u128_pb.js";
10
10
  import { ledger_read_pb_exports } from "./ledger/read/v1/ledger_read_pb.js";
11
11
  import { subaccounts_pb_exports } from "./auth/v1/subaccounts_pb.js";
12
12
  import { address_book_pb_exports } from "./auth/v1/address_book_pb.js";
13
- import { auto_withdraw_pb_exports } from "./chain/withdraw/v1/auto_withdraw_pb.js";
13
+ import { price_alerts_pb_exports } from "./alerts/v1/price_alerts_pb.js";
14
+ import { deposit_pb_exports } from "./chain/deposit/v1/deposit_pb.js";
14
15
  import { marketdata_pb_exports } from "./marketdata/v1/marketdata_pb.js";
15
- import { analytics_read_pb_exports } from "./chain/analytics/v1/analytics_read_pb.js";
16
- import { changelog_pb_exports } from "./changelog/v1/changelog_pb.js";
17
16
  import { types_pb_exports as types_pb_exports$1 } from "./polyester/ratelimit/v1/types_pb.js";
18
17
  import { orders_pb_exports } from "./orders/v1/orders_pb.js";
18
+ import { orders_read_pb_exports } from "./orders/v1/orders_read_pb.js";
19
+ import { triggers_pb_exports } from "./triggers/v1/triggers_pb.js";
20
+ import { assistant_pb_exports } from "./ai/v1/assistant_pb.js";
21
+ import { auto_withdraw_pb_exports } from "./chain/withdraw/v1/auto_withdraw_pb.js";
22
+ import { analytics_read_pb_exports } from "./chain/analytics/v1/analytics_read_pb.js";
23
+ import { changelog_pb_exports } from "./changelog/v1/changelog_pb.js";
19
24
  import { checkpoints_pb_exports } from "./checkpoints/v1/checkpoints_pb.js";
20
25
  import { claims_pb_exports } from "./claims/v1/claims_pb.js";
21
- import { deposit_pb_exports } from "./chain/deposit/v1/deposit_pb.js";
22
26
  import { fees_pb_exports } from "./fees/v1/fees_pb.js";
23
27
  import { vip_pb_exports } from "./vip/v1/vip_pb.js";
24
28
  import { guard_signer_pb_exports } from "./chain/guard/v1/guard_signer_pb.js";
@@ -29,20 +33,16 @@ import { reason_pb_exports } from "./chain/zipper/v1/reason_pb.js";
29
33
  import { lifecycle_read_pb_exports } from "./chain/lifecycle/v1/lifecycle_read_pb.js";
30
34
  import { marketoverview_pb_exports } from "./marketoverview/v1/marketoverview_pb.js";
31
35
  import { orderbook_pb_exports } from "./orderbook/v1/orderbook_pb.js";
32
- import { orders_read_pb_exports } from "./orders/v1/orders_read_pb.js";
33
36
  import { ratelimit_pb_exports } from "./ratelimit/v1/ratelimit_pb.js";
34
37
  import { rewards_pb_exports } from "./rewards/v1/rewards_pb.js";
35
38
  import { social_verification_pb_exports } from "./auth/v1/social_verification_pb.js";
39
+ import { system_pb_exports } from "./system/v1/system_pb.js";
36
40
  import { withdraw_pb_exports } from "./chain/withdraw/v1/withdraw_pb.js";
37
- import { triggers_pb_exports } from "./triggers/v1/triggers_pb.js";
38
41
  import { zipper_pb_exports } from "./chain/zipper/v1/zipper_pb.js";
39
- import { price_alerts_pb_exports } from "./alerts/v1/price_alerts_pb.js";
40
- import { assistant_pb_exports } from "./ai/v1/assistant_pb.js";
41
42
  import { private_ws_pb_exports } from "./privatews/v1/private_ws_pb.js";
42
43
  import { quickswap_pb_exports } from "./swap/quickswap/v1/quickswap_pb.js";
43
44
  import { quickswap_broker_pb_exports } from "./swap/quickswap/v1/quickswap_broker_pb.js";
44
45
  import { quickswap_referral_pb_exports } from "./swap/quickswap/v1/quickswap_referral_pb.js";
45
46
  import { swap_pb_exports } from "./swap/v1/swap_pb.js";
46
- import { system_pb_exports } from "./system/v1/system_pb.js";
47
47
  import { trade_ws_pb_exports } from "./tradews/v1/trade_ws_pb.js";
48
48
  export { address_book_pb_exports as addressBookPb, analytics_read_pb_exports as analyticsReadPb, api_keys_pb_exports as apiKeysPb, assistant_pb_exports as assistantPb, auth_pb_exports as authPb, auto_withdraw_pb_exports as autoWithdrawPb, changelog_pb_exports as changelogPb, checkpoints_pb_exports as checkpointsPb, claims_pb_exports as claimsPb, deposit_pb_exports as depositPb, fees_pb_exports as feesPb, guard_signer_pb_exports as guardSignerPb, heatmap_pb_exports as heatmapPb, internal_transfer_pb_exports as internalTransferPb, catalog_pb_exports as ledgerCatalogPb, ledger_read_pb_exports as ledgerReadPb, lifecycle_read_pb_exports as lifecycleReadPb, types_pb_exports as lifecycleTypesPb, marketdata_pb_exports as marketdataPb, marketoverview_pb_exports as marketoverviewPb, mfa_pb_exports as mfaPb, orderbook_pb_exports as orderbookPb, orders_pb_exports as ordersPb, orders_read_pb_exports as ordersReadPb, policies_pb_exports as policiesPb, options_pb_exports as polyesterOptionsPb, price_alerts_pb_exports as priceAlertsPb, private_ws_pb_exports as privateWsPb, profile_pb_exports as profilePb, quickswap_broker_pb_exports as quickswapBrokerPb, quickswap_pb_exports as quickswapPb, quickswap_referral_pb_exports as quickswapReferralPb, types_pb_exports$1 as rateLimitPb, resolve_pb_exports as resolvePb, rewards_pb_exports as rewardsPb, social_verification_pb_exports as socialVerificationPb, subaccounts_pb_exports as subaccountsPb, swap_pb_exports as swapPb, system_pb_exports as systemPb, trade_ws_pb_exports as tradeWsPb, ratelimit_pb_exports as tradingRateLimitPb, triggers_pb_exports as triggersPb, u128_pb_exports as u128Pb, vip_pb_exports as vipPb, withdraw_pb_exports as withdrawPb, zipper_pb_exports as zipperPb, reason_pb_exports as zipperReasonPb };
@@ -1,5 +1,5 @@
1
- import { U128 } from "../../../polyester/type/v1/u128_pb.js";
2
1
  import { AccountCode, TransferCode } from "../../v1/catalog_pb.js";
2
+ import { U128 } from "../../../polyester/type/v1/u128_pb.js";
3
3
  import { Message } from "@bufbuild/protobuf";
4
4
  import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
5
5
  declare namespace ledger_read_pb_d_exports {
@@ -1,5 +1,5 @@
1
- import { U128 } from "../../polyester/type/v1/u128_pb.js";
2
1
  import { AccountCode, TransferCode } from "../../ledger/v1/catalog_pb.js";
2
+ import { U128 } from "../../polyester/type/v1/u128_pb.js";
3
3
  import { BatchReplaceAdmissionStatus, ErrorCode, FeeAsset, ModifyActionTaken, OrderType, SelfTradePreventionMode, Side, StopLossPolicy, TakeProfitPolicy, TimeInForce, TrailingStopPolicy } from "./orders_pb.js";
4
4
  import { Message } from "@bufbuild/protobuf";
5
5
  import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
package/dist/index.d.ts CHANGED
@@ -16,7 +16,7 @@ import { ConnectPrivateOrdersParams, PrivateOrdersEvent } from "./realtime/priva
16
16
  import { ConnectChannelParams, PolyesterRealtime, RealtimeConnection, RealtimeConnectionState, RealtimeConnectionStatus, SubscribeHandlers } from "./realtime/types.js";
17
17
  import "./realtime/index.js";
18
18
  import { ApiKeyPolicy, ApiKeyPolicyApplyInput, ApiKeyPolicyCreateInput, ApiKeyPolicyUpdateInput, ListApiKeyPoliciesResponse } from "./services/policies/api-key-policies/api-key-policies.schemas.js";
19
- import { ApiKey, ApiKeyIdInput, ApiKeyStatus, ApiKeysCreateInput, ApiKeysListInput, ApiKeysUpdateInput } from "./services/api-keys/api-keys.schemas.js";
19
+ import { ApiKey, ApiKeyIdInput, ApiKeyStatus, ApiKeysCreateInput, ApiKeysListInput, ApiKeysUpdateInput, AssistantKeySpecInput, SetAssistantKeysInput } from "./services/api-keys/api-keys.schemas.js";
20
20
  import { SubaccountPolicy, SubaccountPolicyApplyInput, SubaccountPolicyCreateInput, SubaccountPolicyUpdateInput } from "./services/policies/subaccount-policies/subaccount-policies.schemas.js";
21
21
  import { AccountCodeValue, TransferCodeValue } from "./shared/ledger-codes.js";
22
22
  import { BalanceHistoryInput, BalanceHistoryResponse, BalanceRange, EquityGroupBy, EquityHistoryInput, EquityHistoryResponse, EquitySeries, EquitySeriesGrouping, LedgerBalance, PortfolioEquityHistoryInput, PortfolioEquityHistoryResponse, PortfolioEquitySeries, PortfolioEquitySeriesGrouping, PortfolioEquitySnapshotResponse, formatLedgerBalance } from "./services/balances/balances.schemas.js";
@@ -40,6 +40,10 @@ import { OrderLineage } from "./services/orders/order-lineage.schemas.js";
40
40
  import { CancelTriggerInput, CreateTriggerInput, GetTriggerInput, ListTriggerEventsInput, ListTriggersInput, ModifyTriggerInput, PauseTriggerInput, ResumeTriggerInput } from "./services/triggers/trigger-input.schemas.js";
41
41
  import { CancelTriggerResult, CreateTriggerResult, LadderDetailsOutput, ListTriggerEventsResult, ModifyTriggerResult, PauseTriggerResult, ResumeTriggerResult, StopDetailsOutput, TrailingDetailsOutput, Trigger, TriggerDetailsOutput, TriggerEvent, TwapDetailsOutput } from "./services/triggers/triggers-output.schemas.js";
42
42
  import { ListTriggersResult } from "./services/triggers/triggers.js";
43
+ import { CancelPriceAlertInput, CreatePriceAlertInput, ListPriceAlertsInput, ListPriceAlertsResult, PriceAlert, UpdatePriceAlertInput, UpdatePriceAlertResult } from "./services/price-alerts/price-alerts.schemas.js";
44
+ import { AssistantApprovalPreview, AssistantOrderPreview, AssistantRunEvent, AssistantView } from "./services/assistant/assistant-events.schemas.js";
45
+ import { AssistantApprovalDecision, AssistantApprovalStatus, AssistantFailureCategory, AssistantKeyState, AssistantMemoryKind, AssistantMessageRole, AssistantOrderPriceField, AssistantPriceOffsetDirection, AssistantPriceRounding, AssistantReferencePriceSource, AssistantTriggerChangeAction, AssistantTriggerDirection, AssistantUnfilledSlicePolicy } from "./services/assistant/assistant.codecs.js";
46
+ import { AssistantConversation, AssistantKey, AssistantMemory, AssistantMessage, AssistantRunIdInput, CompleteAssistantKeysInput, DecideAssistantApprovalInput, DeleteAssistantMemoryInput, ListAssistantConversationsInput, ListAssistantConversationsResult, ListAssistantMemoriesInput, ListAssistantMemoriesResult, ListAssistantMessagesInput, ListAssistantMessagesResult, PrepareAssistantKeysInput, PrepareAssistantKeysResult, PreparedAssistantKey, SendAssistantMessageInput, WatchAssistantRunInput } from "./services/assistant/assistant.schemas.js";
43
47
  import { LedgerTransfer, LedgerTransferSide, ListTransfersInput } from "./services/transfers/transfers.schemas.js";
44
48
  import { CreateInternalTransferInput, CreateInternalTransferResult, GetInternalTransferInput, GetInternalTransferResult, InternalTransferDestination, ResolvedInternalTransferDestination } from "./services/internal-transfers/internal-transfers.schemas.js";
45
49
  import { CreateTradingWithdrawResult, CreateTradingWithdrawToExternalChainInput, CreateTradingWithdrawToFundingInput, GetWalletBalancesInput, GetWalletBalancesResult, ValidateWithdrawDestinationInput, ValidateWithdrawDestinationResult } from "./services/trading-withdraws/trading-withdraws.schemas.js";
@@ -56,6 +60,7 @@ import { BeginMfaChallengeInput, BeginMfaChallengeResult, BeginPasskeyEnrollment
56
60
  import { ClaimCampaign, ClaimDailyRewardInput, ClaimDailyRewardResult, ClaimPayoutDelayReason, DailyClaimReward, DailyClaimStatus, DailyClaimTransfer } from "./services/claims/claims.schemas.js";
57
61
  import { Checkpoint, CheckpointAssetAmount, CheckpointBiggestTrade, CheckpointChainFlow, CheckpointEarnedBadge, CheckpointFlowTotal, CheckpointFundingDay, CheckpointFundingFlowSummary, CheckpointOrderToolCounts, CheckpointOrderTypeCounts, CheckpointPairActivity, CheckpointPortfolioValuePoint, CheckpointTimeInForceCounts, CheckpointVipTierChange, CheckpointVolumePoint, ListCheckpointsInput } from "./services/checkpoints/checkpoints.schemas.js";
58
62
  import { ChangelogChange, ChangelogChangeEntry, ChangelogPost, ChangelogPostSummary, ChangelogSection, GetChangelogPostInput, ListChangelogChangesInput, ListChangelogChangesResult, ListChangelogPostsInput, ListChangelogPostsResult } from "./services/changelog/changelog.schemas.js";
63
+ import { SystemVersion } from "./services/system/system.js";
59
64
  import { AcknowledgeRewardAwardInput, AcknowledgeRewardAwardResult, ListRewardAwardsInput, ListRewardAwardsResult, RewardAward, SetRewardDestinationInput, SetRewardDestinationResult } from "./services/rewards/rewards.schemas.js";
60
65
  import { NextVipTierThresholds, VipMetricQuality, VipMetricStatus, VipStatus, VipTier, VipTierCatalog } from "./services/vip/vip.schemas.js";
61
66
  import { GetSpotFeeRatesInput, SpotFeeDiscount, SpotFeeRate, SpotFeeRateBreakdown } from "./services/fees/fees.schemas.js";
@@ -85,6 +90,7 @@ import { EvmHex, checksumEvmAddress, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex
85
90
  import "./services/accounts/accounts.types.js";
86
91
  import "./services/address-book/address-book.types.js";
87
92
  import "./services/api-keys/api-keys.types.js";
93
+ import "./services/assistant/assistant.types.js";
88
94
  import "./services/auth/auth.types.js";
89
95
  import "./services/auth/profile/profile.types.js";
90
96
  import "./services/auto-withdraw/auto-withdraw.types.js";
@@ -113,6 +119,8 @@ import "./services/policies/api-key-policies/api-key-policies.types.js";
113
119
  import { PolicyAction, PolicyMarketScope } from "./services/policies/shared.js";
114
120
  import "./services/policies/policies.types.js";
115
121
  import "./services/policies/subaccount-policies/subaccount-policies.types.js";
122
+ import { PriceAlertChannel, PriceAlertDirection, PriceAlertPriceSource, PriceAlertStatus, PriceAlertUpdateOutcome } from "./services/price-alerts/price-alerts.codecs.js";
123
+ import "./services/price-alerts/price-alerts.types.js";
116
124
  import "./services/rate-limits/rate-limits.types.js";
117
125
  import { RewardFulfillmentMethod, RewardFulfillmentState } from "./services/rewards/rewards.codecs.js";
118
126
  import "./services/rewards/rewards.types.js";
@@ -125,4 +133,4 @@ import "./services/transfers/transfers.types.js";
125
133
  import "./services/triggers/triggers.types.js";
126
134
  import "./services/vip/vip.types.js";
127
135
  import "./services/zipper/zipper.types.js";
128
- export { type AccountCodeValue, type AccountIdentity, type AccountScope, type AccountScopedInput, type AccountSigner, type AccountSignerAuthEvents, type AccountSignerConfig, type CreateSubaccountResult as AccountSignerCreateSubaccountResult, type AccountSignerFactory, type AcknowledgeRewardAwardInput, type AcknowledgeRewardAwardResult, type ActiveAccountInfo, type AddressBook, type AddressBookAccountScope, type AddressBookEntries, type AddressBookEntriesView, type AddressBookEntry, type AddressBookRecentDestinationsView, type AddressBookTag, type AddressBookTagSummary, type AddressBookView, type AddressBookViewInvalidated, AlreadyExistsError, type ApiKey, type ApiKeyEd25519AuthProvider, type ApiKeyIdInput, type ApiKeyPolicy, type ApiKeyPolicyApplyInput, type ApiKeyPolicyCreateInput, type ApiKeyPolicyUpdateInput, type ApiKeyStatus, type ApiKeysCreateInput, type ApiKeysListInput, type ApiKeysUpdateInput, type AssetConfig, type AuthCookieLocation, type AuthHydrationData, type AuthLoginMethod, type AuthState, type AuthTokenStorage, type AuthTokenStorageSetOptions, AuthenticationError, type AutoWithdrawCadence, type AutoWithdrawDestination, type AutoWithdrawDestinationInput, type AutoWithdrawHoldReason, type AutoWithdrawPause, type AutoWithdrawPauseReason, type AutoWithdrawPreview, type AutoWithdrawPreviewAsset, type AutoWithdrawPreviewStatus, type AutoWithdrawRule, type AutoWithdrawRun, type AutoWithdrawRunReason, type AutoWithdrawRunState, type AutoWithdrawSchedule, type AutoWithdrawScheduleInput, type AutoWithdrawScopedInput, type AutoWithdrawStep, type AutoWithdrawStepReason, type AutoWithdrawStepState, type AutoWithdrawWeekday, type BalanceHistoryInput, type BalanceHistoryResponse, type BalanceRange, type BatchCancelOrderInput, type BatchCancelOrderResult, type BatchCancelOrdersInput, type BatchCancelOrdersResult, type BatchCreateOrderResult, type BatchCreateOrdersInput, type BatchCreateOrdersResult, type BatchGuardApprovals, type BatchReplaceAdmissionItem, type BatchReplaceOrdersInput, type BatchReplaceOrdersResult, type BatchSignProtectedActionInput, type BeginMfaChallengeInput, type BeginMfaChallengeResult, type BeginPasskeyEnrollmentInput, type BeginPasskeyEnrollmentResult, type BeginTotpEnrollmentInput, type BeginTotpEnrollmentResult, type CancelAllAfterInput, type CancelAllAfterResult, type CancelAllOrdersInput, type CancelAllOrdersResponse, type CancelOrderInput, type CancelOrderResult, type CancelTriggerInput, type CancelTriggerResult, type Candle, type CandleColumnar, type CandleColumnarInt, type CandleInt, type ChainAnalyticsRange, type ChangelogAudience, type ChangelogChange, type ChangelogChangeCategory, type ChangelogChangeEntry, type ChangelogPost, type ChangelogPostSummary, type ChangelogSection, type ChangelogSort, type ChangelogSurface, type Checkpoint, type CheckpointAssetAmount, type CheckpointBadge, type CheckpointBiggestTrade, type CheckpointChainFlow, type CheckpointEarnedBadge, type CheckpointField, type CheckpointFlowTotal, type CheckpointFundingDay, type CheckpointFundingFlowSummary, type CheckpointOrderToolCounts, type CheckpointOrderTypeCounts, type CheckpointPairActivity, type CheckpointPortfolioValuePoint, type CheckpointTimeInForceCounts, type CheckpointVipTierChange, type CheckpointVolumePoint, type ClaimCampaign, type ClaimDailyRewardInput, type ClaimDailyRewardResult, type ClaimFreshStepUpInput, type ClaimFreshStepUpResult, type ClaimGeneratedUsernameInput, ClaimOutcomeUnknownError, type ClaimOutcomeUnknownErrorOptions, type ClaimPayoutDelayReason, type ClaimPolicy, type ColumnarTimeWindow, type CompleteMfaChallengeResult, ConfigurationError, type ConfirmVerificationInput, type ConnectChannelParams, type ConnectPrivateOrdersParams, type ConsumeFreshStepUpInput, type CookieAuthTokenStorageOptions, type CopyAddressBookEntryInput, type CreateAddressBookEntryInput, type CreateAddressBookTagInput, type CreateDepositAddressInput, type CreateGuardSignerWalletResult, type CreateInternalTransferInput, type CreateInternalTransferResult, type CreateOrderResult, type CreateOrderbookSubscriptionInput, type CreatePolyesterAccountSignerParams, type CreatePolyesterEnvironmentParams, type CreateServerClientFromCookiesParams, type CreateServerClientFromRequestParams, type CreateSubaccountChallengeInput, type CreateSubaccountInput, type CreateSubaccountParams, type CreateSubaccountResult$1 as CreateSubaccountResult, type CreateSubaccountResult$1 as CreateSubaccountServiceResult, type CreateTradingWithdrawResult, type CreateTradingWithdrawToExternalChainInput, type CreateTradingWithdrawToExternalChainServiceInput, type CreateTradingWithdrawToFundingInput, type CreateTradingWithdrawToFundingServiceInput, type CreateTriggerInput, type CreateTriggerResult, type CreateWalletChallengeInput, type CurrencyConversionConfig, type CurrencyConversionRates, type CurrencyMetadata, type DailyClaimReward, type DailyClaimState, type DailyClaimStatus, type DailyClaimTransfer, type DeleteAddressBookEntryInput, type DeleteAddressBookTagInput, type DeleteMfaFactorInput, type DepositAddress, type DepositWithdrawConfig, type EffectiveSubaccountPermissions, type EquityGroupBy, type EquityHistoryInput, type EquityHistoryResponse, type EquitySeries, type EquitySeriesGrouping, type EvmHex, type ExportGuardSignerWalletResult, type FiatConversionRate, type FiatConversionSnapshot, type FinishPasskeyChallengeInput, type FinishPasskeyEnrollmentInput, type FinishPasskeyEnrollmentResult, type FinishTotpEnrollmentInput, type FinishTotpEnrollmentResult, type GeneratedUsernameOffer, type GetAddressBookViewInput, type GetBatchReplaceStatusInput, type GetBatchReplaceStatusResult, type GetCandlesColumnsInput, type GetCandlesInput, type GetChangelogPostInput, type GetInternalTransferInput, type GetInternalTransferResult, type GetLifecycleFlowInput, type GetLifecycleFlowOutput, type GetMarketTradesInput, type GetOrderDetailsInput, type GetOrderbookHeatmapInput, type GetOrderbookInput, type GetSpotFeeRatesInput, type GetSubaccountInput, type GetTriggerInput, type GetUnifiedAssetBalancesInput, type GetUserTradesInput, type GetVerificationResponse, type GetWalletBalancesInput, type GetWalletBalancesResult, type GetZippedAssetSupplyGroupInput, type GetZippedAssetSupplyInput, type GuardApproval, type GuardSignerScopedInput, type GuardSignerStatus, type HeatmapDepthValue, type HeatmapIntervalValue, type HeatmapQuantityModeValue, type HexAddress, InternalServerError, type InternalTransferDestination, type InternalTransferStatus, type InternalTransferWhitelistEntries, type InternalTransferWhitelistEntry, type InviteSubaccountMemberInput, type JwtAuthProvider, type LadderDetailsOutput, type LedgerBalance, type LedgerTransfer, type LedgerTransferSide, type LifecycleAssetIds, type LifecycleFlowDetail, type LifecycleFlowState, type LifecycleFlowStep, type LifecycleFlowStepActivity, type LifecycleFlowSummary, type LifecycleFlowSummaryProgress, type LifecycleFlowTimelineItem, type LifecycleFlowTxMatch, type LifecycleListOrderBy, type LifecycleListScope, type LifecycleReason, type LifecycleRequestFee, type LifecycleRequestFeeStatus, type LifecycleSort, type LifecycleTxLookupKind, type LifecycleZipperReason, type ListAddressBookEntriesInput, type ListApiKeyPoliciesResponse, type ListAutoWithdrawRunsInput, type ListAutoWithdrawRunsResult, type ListChangelogChangesInput, type ListChangelogChangesResult, type ListChangelogPostsInput, type ListChangelogPostsResult, type ListCheckpointsInput, type ListDepositAddressesInput, type ListInternalTransferWhitelistEntriesInput, type ListLifecycleFlowsByTxInput, type ListLifecycleFlowsByTxOutput, type ListLifecycleFlowsInput, type ListLifecycleFlowsOutput, type ListMarketOverviewInput, type ListMfaFactorsResult, type ListRewardAwardsInput, type ListRewardAwardsResult, type ListSubaccountInvitesInput, type ListTransferCounterpartiesInput, type ListTransferDestinationsInput, type ListTransfersInput, type ListTriggerEventsInput, type ListTriggerEventsResult, type ListTriggersInput, type ListTriggersResult, type LoginOptions, type LoginResult, type LoginWithWalletInput, type LoginWithWalletResponse, type MarketOverview, type MarketOverviewOrderBy, type MarketOverviewSort, type MarketOverviewSparkline, type MarketTrade, type Me, MfaEnrollmentRequiredError, type MfaFactor, MfaLastFactorRequiredError, MfaRequiredError, type MfaSessionInfo, MfaVerificationError, type MfaVerificationFailureReason, type MirroredWithdrawWhitelistEntry, type ModifyOrderInput, type ModifyOrderResult, type ModifyTriggerInput, type ModifyTriggerResult, NetworkError, type NewOrderInput, type NextVipTierThresholds, NotImplementedError, type OpenOrdersInput, type Order, type OrderDetails, type OrderErrorCode, type OrderErrorDetail, type OrderHistoryInput, type OrderIntentInput, type OrderLineage, type OrderTransfer, type OrderbookData, type OrderbookHeatmapDeltaBucket, type OrderbookHeatmapDeltaChain, type OrderbookHeatmapDeltaLevels, type OrderbookHeatmapKeyframe, type OrderbookHeatmapLevels, type OrderbookHeatmapLiveBucket, type OrderbookHeatmapResponse, type OrderbookLevel, type OrderbookStreamHandlers, type OrderbookSubscription, OutcomeUnknownError, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_DEVNET_ENVIRONMENT, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, type PairConfig, type PairStatus, type PauseTriggerInput, type PauseTriggerResult, PermissionError, type PolicyAction, PolicyInUseError, PolicyLockedError, type PolicyMarketScope, PolicyScopeMismatchError, type PolyesterAccountAbstractionEnvironment, PolyesterBrowserClient, type PolyesterBrowserClientConfig, PolyesterBrowserCore, PolyesterClient, type PolyesterClientBaseConfig, type PolyesterClientConfig, type PolyesterContractsEnvironment, PolyesterCore, type PolyesterEntryPointConfig, type PolyesterEnvironment, PolyesterError, type PolyesterErrorCode, type PolyesterErrorDetail, type PolyesterErrorOptions, type PolyesterMutationOptions, type PolyesterRealtime, type PolyesterRealtimeAuthConfig, type PolyesterRequestOptions, type PolyesterSafeDeploymentConfig, PolyesterServerClient, type PolyesterServerClientConfig, PolyesterServerCore, type PolyesterServices, type PortfolioEquityHistoryInput, type PortfolioEquityHistoryResponse, type PortfolioEquitySeries, type PortfolioEquitySeriesGrouping, type PortfolioEquitySnapshotResponse, PreconditionFailedError, type PreparedTradingWithdraw, type PreviewOrderResult, type PrivateOrdersEvent, type Profile, type RateLimitConfig, type RateLimitDetail, RateLimitError, type RateLimitErrorOptions, type RateLimitFailureReason, type RateLimitPolicyClass, type RateLimitRefillModel, type RateLimitScope, type RealtimeConnection, type RealtimeConnectionState, type RealtimeConnectionStatus, RealtimeError, type RealtimeErrorOptions, type RegenerateRecoveryCodesInput, type RegenerateRecoveryCodesResult, type ReleaseFreshStepUpInput, type RemoveSubaccountMemberInput, RequestDeadlineExceededError, RequestError, RequestTooLargeError, type ResolveAccountInput, type ResolvedAccount, type ResolvedInternalTransferDestination, ResourceNotFoundError, type RespondSubaccountInviteInput, type ResumeTriggerInput, type ResumeTriggerResult, RevisionConflictError, type RewardAward, type RewardFulfillmentMethod, type RewardFulfillmentState, type RiskPolicyInput, type RotateGuardSignerWalletResult, type SdkSubscriptionErrorContext, type ServerSessionCookieOptions, type ServerSessionSnapshot, ServiceUnavailableError, type SessionData, SessionElevationRequiredError, type SetAutoWithdrawRuleEnabledInput, type SetAutoWithdrawRuleInput, type SetRewardDestinationInput, type SetRewardDestinationResult, type SetSubaccountMemberMfaRequirementInput, type SignProtectedActionInput, type SocialProvider, type SocialProviderInput, type SocialVerification, type SocialVerificationErrorCode, type SocialVerificationMethod, type SocialVerificationStatus, type SparklineIntervalName, type SpotConfig, type SpotFeeDiscount, type SpotFeeRate, type SpotFeeRateBreakdown, type SpotPairVolumeSeries, type SpotVolumeHistoryInput, type SpotVolumeHistoryResponse, type StablecoinConversionRate, StaleQuoteError, type StartVerificationInput, type StartVerificationResponse, StepUpRequiredError, type StopDetailsOutput, type StopLossInput, type Subaccount, type SubaccountActivityInput, type SubaccountChallenge, SubaccountChallengeInvalidError, type SubaccountEvent, type SubaccountIdInput, type SubaccountInvite, type SubaccountInviteStatus, type SubaccountMember, type SubaccountPermission, type SubaccountPermissionDefinition, type SubaccountPolicy, type SubaccountPolicyApplyInput, type SubaccountPolicyCreateInput, type SubaccountPolicyUpdateInput, type SubaccountRole, type SubaccountRoleCatalog, type SubaccountRoleDefinition, type SubaccountScopedInput, type SubaccountStatus, type SubscribeHandlers, type SubscribeZippedAssetSupplyInput, type TakeProfitInput, type Timeframe, TimeoutError, TimestampSkewError, type Trade, type TradeBackfill, type TradingRateLimitClass, type TradingRateLimitRule, type TradingRateLimits, type TradingWithdrawSigningConfig, type TradingWithdrawWalletSigner, type TrailingDetailsOutput, type TrailingStopInput, type TransferCodeValue, type TransferCounterparties, type TransferCounterparty, type TransferDestination, type TransferDestinations, type TransferSideKind, TransientError, type Transports, type Trigger, type TriggerDetailsOutput, type TriggerEvent, type TwapDetailsOutput, type UnifiedAssetBalancesResponse, type UnlinkSocialAccountInput, type UpdateAddressBookEntryInput, type UpdateAddressBookTagInput, type UpdateMfaFactorInput, type UpdateMfaFactorResult, type UpdateProfileInput, type UpdateSubaccountInput, type UpdateSubaccountMemberRoleInput, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, type UsernameHistoryEntry, type ValidateWithdrawDestinationInput, type ValidateWithdrawDestinationResult, ValidationError, type VerificationReadyResponse, type VerifyRecoveryCodeChallengeInput, type VerifyTotpChallengeInput, type VipMetricQuality, type VipMetricStatus, type VipStatus, type VipTier, type VipTierCatalog, type WalletChallenge, WithdrawDeadlineExpiredError, type WithdrawWhitelistView, type ZippedAssetSupplyBatch, type ZippedAssetSupplyGroupResponse, type ZippedAssetSupplyResponse, type ZippedAssetSupplySeries, type ZippedAssetSupplyUpdate, type ZipperAssetChainVariant, type ZipperAssetConfig, type ZipperChainConfig, type ZipperChainContractConfig, type ZipperMemoRequirement, checksumEvmAddress, columnarTimestampSecAt, compareUnsignedIntegerStrings, connectErrorToPolyesterError, createCookieAuthTokenStorage, createErrorMappingInterceptor, createMemoryAuthTokenStorage, createPolyesterEnvironment, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest, createPolyesterServerCoreFromCookies, createPolyesterServerCoreFromRequest, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatLedgerBalance, formatUserFacingError, isAbortError, isEvmAddress, isEvmAddressStrict, isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError, isSessionElevationRequiredError, isTimeoutAbortError, keccak256Hex, loadErrorDetailDecoders, mergeLedgerBalances, normalizeErrorMessage, resolveAuthCookieName, shouldApplyReconciliationUpdate, tsObjToNsString as timestampToNanoseconds, toPolyesterError, validateCreateAddressBookEntryInput };
136
+ export { type AccountCodeValue, type AccountIdentity, type AccountScope, type AccountScopedInput, type AccountSigner, type AccountSignerAuthEvents, type AccountSignerConfig, type CreateSubaccountResult as AccountSignerCreateSubaccountResult, type AccountSignerFactory, type AcknowledgeRewardAwardInput, type AcknowledgeRewardAwardResult, type ActiveAccountInfo, type AddressBook, type AddressBookAccountScope, type AddressBookEntries, type AddressBookEntriesView, type AddressBookEntry, type AddressBookRecentDestinationsView, type AddressBookTag, type AddressBookTagSummary, type AddressBookView, type AddressBookViewInvalidated, AlreadyExistsError, type ApiKey, type ApiKeyEd25519AuthProvider, type ApiKeyIdInput, type ApiKeyPolicy, type ApiKeyPolicyApplyInput, type ApiKeyPolicyCreateInput, type ApiKeyPolicyUpdateInput, type ApiKeyStatus, type ApiKeysCreateInput, type ApiKeysListInput, type ApiKeysUpdateInput, type AssetConfig, type AssistantApprovalDecision, type AssistantApprovalPreview, type AssistantApprovalStatus, type AssistantConversation, type AssistantFailureCategory, type AssistantKey, type AssistantKeySpecInput, type AssistantKeyState, type AssistantMemory, type AssistantMemoryKind, type AssistantMessage, type AssistantMessageRole, type AssistantOrderPreview, type AssistantOrderPriceField, type AssistantPriceOffsetDirection, type AssistantPriceRounding, type AssistantReferencePriceSource, type AssistantRunEvent, type AssistantRunIdInput, type AssistantTriggerChangeAction, type AssistantTriggerDirection, type AssistantUnfilledSlicePolicy, type AssistantView, type AuthCookieLocation, type AuthHydrationData, type AuthLoginMethod, type AuthState, type AuthTokenStorage, type AuthTokenStorageSetOptions, AuthenticationError, type AutoWithdrawCadence, type AutoWithdrawDestination, type AutoWithdrawDestinationInput, type AutoWithdrawHoldReason, type AutoWithdrawPause, type AutoWithdrawPauseReason, type AutoWithdrawPreview, type AutoWithdrawPreviewAsset, type AutoWithdrawPreviewStatus, type AutoWithdrawRule, type AutoWithdrawRun, type AutoWithdrawRunReason, type AutoWithdrawRunState, type AutoWithdrawSchedule, type AutoWithdrawScheduleInput, type AutoWithdrawScopedInput, type AutoWithdrawStep, type AutoWithdrawStepReason, type AutoWithdrawStepState, type AutoWithdrawWeekday, type BalanceHistoryInput, type BalanceHistoryResponse, type BalanceRange, type BatchCancelOrderInput, type BatchCancelOrderResult, type BatchCancelOrdersInput, type BatchCancelOrdersResult, type BatchCreateOrderResult, type BatchCreateOrdersInput, type BatchCreateOrdersResult, type BatchGuardApprovals, type BatchReplaceAdmissionItem, type BatchReplaceOrdersInput, type BatchReplaceOrdersResult, type BatchSignProtectedActionInput, type BeginMfaChallengeInput, type BeginMfaChallengeResult, type BeginPasskeyEnrollmentInput, type BeginPasskeyEnrollmentResult, type BeginTotpEnrollmentInput, type BeginTotpEnrollmentResult, type CancelAllAfterInput, type CancelAllAfterResult, type CancelAllOrdersInput, type CancelAllOrdersResponse, type CancelOrderInput, type CancelOrderResult, type CancelPriceAlertInput, type CancelTriggerInput, type CancelTriggerResult, type Candle, type CandleColumnar, type CandleColumnarInt, type CandleInt, type ChainAnalyticsRange, type ChangelogAudience, type ChangelogChange, type ChangelogChangeCategory, type ChangelogChangeEntry, type ChangelogPost, type ChangelogPostSummary, type ChangelogSection, type ChangelogSort, type ChangelogSurface, type Checkpoint, type CheckpointAssetAmount, type CheckpointBadge, type CheckpointBiggestTrade, type CheckpointChainFlow, type CheckpointEarnedBadge, type CheckpointField, type CheckpointFlowTotal, type CheckpointFundingDay, type CheckpointFundingFlowSummary, type CheckpointOrderToolCounts, type CheckpointOrderTypeCounts, type CheckpointPairActivity, type CheckpointPortfolioValuePoint, type CheckpointTimeInForceCounts, type CheckpointVipTierChange, type CheckpointVolumePoint, type ClaimCampaign, type ClaimDailyRewardInput, type ClaimDailyRewardResult, type ClaimFreshStepUpInput, type ClaimFreshStepUpResult, type ClaimGeneratedUsernameInput, ClaimOutcomeUnknownError, type ClaimOutcomeUnknownErrorOptions, type ClaimPayoutDelayReason, type ClaimPolicy, type ColumnarTimeWindow, type CompleteAssistantKeysInput, type CompleteMfaChallengeResult, ConfigurationError, type ConfirmVerificationInput, type ConnectChannelParams, type ConnectPrivateOrdersParams, type ConsumeFreshStepUpInput, type CookieAuthTokenStorageOptions, type CopyAddressBookEntryInput, type CreateAddressBookEntryInput, type CreateAddressBookTagInput, type CreateDepositAddressInput, type CreateGuardSignerWalletResult, type CreateInternalTransferInput, type CreateInternalTransferResult, type CreateOrderResult, type CreateOrderbookSubscriptionInput, type CreatePolyesterAccountSignerParams, type CreatePolyesterEnvironmentParams, type CreatePriceAlertInput, type CreateServerClientFromCookiesParams, type CreateServerClientFromRequestParams, type CreateSubaccountChallengeInput, type CreateSubaccountInput, type CreateSubaccountParams, type CreateSubaccountResult$1 as CreateSubaccountResult, type CreateSubaccountResult$1 as CreateSubaccountServiceResult, type CreateTradingWithdrawResult, type CreateTradingWithdrawToExternalChainInput, type CreateTradingWithdrawToExternalChainServiceInput, type CreateTradingWithdrawToFundingInput, type CreateTradingWithdrawToFundingServiceInput, type CreateTriggerInput, type CreateTriggerResult, type CreateWalletChallengeInput, type CurrencyConversionConfig, type CurrencyConversionRates, type CurrencyMetadata, type DailyClaimReward, type DailyClaimState, type DailyClaimStatus, type DailyClaimTransfer, type DecideAssistantApprovalInput, type DeleteAddressBookEntryInput, type DeleteAddressBookTagInput, type DeleteAssistantMemoryInput, type DeleteMfaFactorInput, type DepositAddress, type DepositWithdrawConfig, type EffectiveSubaccountPermissions, type EquityGroupBy, type EquityHistoryInput, type EquityHistoryResponse, type EquitySeries, type EquitySeriesGrouping, type EvmHex, type ExportGuardSignerWalletResult, type FiatConversionRate, type FiatConversionSnapshot, type FinishPasskeyChallengeInput, type FinishPasskeyEnrollmentInput, type FinishPasskeyEnrollmentResult, type FinishTotpEnrollmentInput, type FinishTotpEnrollmentResult, type GeneratedUsernameOffer, type GetAddressBookViewInput, type GetBatchReplaceStatusInput, type GetBatchReplaceStatusResult, type GetCandlesColumnsInput, type GetCandlesInput, type GetChangelogPostInput, type GetInternalTransferInput, type GetInternalTransferResult, type GetLifecycleFlowInput, type GetLifecycleFlowOutput, type GetMarketTradesInput, type GetOrderDetailsInput, type GetOrderbookHeatmapInput, type GetOrderbookInput, type GetSpotFeeRatesInput, type GetSubaccountInput, type GetTriggerInput, type GetUnifiedAssetBalancesInput, type GetUserTradesInput, type GetVerificationResponse, type GetWalletBalancesInput, type GetWalletBalancesResult, type GetZippedAssetSupplyGroupInput, type GetZippedAssetSupplyInput, type GuardApproval, type GuardSignerScopedInput, type GuardSignerStatus, type HeatmapDepthValue, type HeatmapIntervalValue, type HeatmapQuantityModeValue, type HexAddress, InternalServerError, type InternalTransferDestination, type InternalTransferStatus, type InternalTransferWhitelistEntries, type InternalTransferWhitelistEntry, type InviteSubaccountMemberInput, type JwtAuthProvider, type LadderDetailsOutput, type LedgerBalance, type LedgerTransfer, type LedgerTransferSide, type LifecycleAssetIds, type LifecycleFlowDetail, type LifecycleFlowState, type LifecycleFlowStep, type LifecycleFlowStepActivity, type LifecycleFlowSummary, type LifecycleFlowSummaryProgress, type LifecycleFlowTimelineItem, type LifecycleFlowTxMatch, type LifecycleListOrderBy, type LifecycleListScope, type LifecycleReason, type LifecycleRequestFee, type LifecycleRequestFeeStatus, type LifecycleSort, type LifecycleTxLookupKind, type LifecycleZipperReason, type ListAddressBookEntriesInput, type ListApiKeyPoliciesResponse, type ListAssistantConversationsInput, type ListAssistantConversationsResult, type ListAssistantMemoriesInput, type ListAssistantMemoriesResult, type ListAssistantMessagesInput, type ListAssistantMessagesResult, type ListAutoWithdrawRunsInput, type ListAutoWithdrawRunsResult, type ListChangelogChangesInput, type ListChangelogChangesResult, type ListChangelogPostsInput, type ListChangelogPostsResult, type ListCheckpointsInput, type ListDepositAddressesInput, type ListInternalTransferWhitelistEntriesInput, type ListLifecycleFlowsByTxInput, type ListLifecycleFlowsByTxOutput, type ListLifecycleFlowsInput, type ListLifecycleFlowsOutput, type ListMarketOverviewInput, type ListMfaFactorsResult, type ListPriceAlertsInput, type ListPriceAlertsResult, type ListRewardAwardsInput, type ListRewardAwardsResult, type ListSubaccountInvitesInput, type ListTransferCounterpartiesInput, type ListTransferDestinationsInput, type ListTransfersInput, type ListTriggerEventsInput, type ListTriggerEventsResult, type ListTriggersInput, type ListTriggersResult, type LoginOptions, type LoginResult, type LoginWithWalletInput, type LoginWithWalletResponse, type MarketOverview, type MarketOverviewOrderBy, type MarketOverviewSort, type MarketOverviewSparkline, type MarketTrade, type Me, MfaEnrollmentRequiredError, type MfaFactor, MfaLastFactorRequiredError, MfaRequiredError, type MfaSessionInfo, MfaVerificationError, type MfaVerificationFailureReason, type MirroredWithdrawWhitelistEntry, type ModifyOrderInput, type ModifyOrderResult, type ModifyTriggerInput, type ModifyTriggerResult, NetworkError, type NewOrderInput, type NextVipTierThresholds, NotImplementedError, type OpenOrdersInput, type Order, type OrderDetails, type OrderErrorCode, type OrderErrorDetail, type OrderHistoryInput, type OrderIntentInput, type OrderLineage, type OrderTransfer, type OrderbookData, type OrderbookHeatmapDeltaBucket, type OrderbookHeatmapDeltaChain, type OrderbookHeatmapDeltaLevels, type OrderbookHeatmapKeyframe, type OrderbookHeatmapLevels, type OrderbookHeatmapLiveBucket, type OrderbookHeatmapResponse, type OrderbookLevel, type OrderbookStreamHandlers, type OrderbookSubscription, OutcomeUnknownError, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_DEVNET_ENVIRONMENT, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, type PairConfig, type PairStatus, type PauseTriggerInput, type PauseTriggerResult, PermissionError, type PolicyAction, PolicyInUseError, PolicyLockedError, type PolicyMarketScope, PolicyScopeMismatchError, type PolyesterAccountAbstractionEnvironment, PolyesterBrowserClient, type PolyesterBrowserClientConfig, PolyesterBrowserCore, PolyesterClient, type PolyesterClientBaseConfig, type PolyesterClientConfig, type PolyesterContractsEnvironment, PolyesterCore, type PolyesterEntryPointConfig, type PolyesterEnvironment, PolyesterError, type PolyesterErrorCode, type PolyesterErrorDetail, type PolyesterErrorOptions, type PolyesterMutationOptions, type PolyesterRealtime, type PolyesterRealtimeAuthConfig, type PolyesterRequestOptions, type PolyesterSafeDeploymentConfig, PolyesterServerClient, type PolyesterServerClientConfig, PolyesterServerCore, type PolyesterServices, type PortfolioEquityHistoryInput, type PortfolioEquityHistoryResponse, type PortfolioEquitySeries, type PortfolioEquitySeriesGrouping, type PortfolioEquitySnapshotResponse, PreconditionFailedError, type PrepareAssistantKeysInput, type PrepareAssistantKeysResult, type PreparedAssistantKey, type PreparedTradingWithdraw, type PreviewOrderResult, type PriceAlert, type PriceAlertChannel, type PriceAlertDirection, type PriceAlertPriceSource, type PriceAlertStatus, type PriceAlertUpdateOutcome, type PrivateOrdersEvent, type Profile, type RateLimitConfig, type RateLimitDetail, RateLimitError, type RateLimitErrorOptions, type RateLimitFailureReason, type RateLimitPolicyClass, type RateLimitRefillModel, type RateLimitScope, type RealtimeConnection, type RealtimeConnectionState, type RealtimeConnectionStatus, RealtimeError, type RealtimeErrorOptions, type RegenerateRecoveryCodesInput, type RegenerateRecoveryCodesResult, type ReleaseFreshStepUpInput, type RemoveSubaccountMemberInput, RequestDeadlineExceededError, RequestError, RequestTooLargeError, type ResolveAccountInput, type ResolvedAccount, type ResolvedInternalTransferDestination, ResourceNotFoundError, type RespondSubaccountInviteInput, type ResumeTriggerInput, type ResumeTriggerResult, RevisionConflictError, type RewardAward, type RewardFulfillmentMethod, type RewardFulfillmentState, type RiskPolicyInput, type RotateGuardSignerWalletResult, type SdkSubscriptionErrorContext, type SendAssistantMessageInput, type ServerSessionCookieOptions, type ServerSessionSnapshot, ServiceUnavailableError, type SessionData, SessionElevationRequiredError, type SetAssistantKeysInput, type SetAutoWithdrawRuleEnabledInput, type SetAutoWithdrawRuleInput, type SetRewardDestinationInput, type SetRewardDestinationResult, type SetSubaccountMemberMfaRequirementInput, type SignProtectedActionInput, type SocialProvider, type SocialProviderInput, type SocialVerification, type SocialVerificationErrorCode, type SocialVerificationMethod, type SocialVerificationStatus, type SparklineIntervalName, type SpotConfig, type SpotFeeDiscount, type SpotFeeRate, type SpotFeeRateBreakdown, type SpotPairVolumeSeries, type SpotVolumeHistoryInput, type SpotVolumeHistoryResponse, type StablecoinConversionRate, StaleQuoteError, type StartVerificationInput, type StartVerificationResponse, StepUpRequiredError, type StopDetailsOutput, type StopLossInput, type Subaccount, type SubaccountActivityInput, type SubaccountChallenge, SubaccountChallengeInvalidError, type SubaccountEvent, type SubaccountIdInput, type SubaccountInvite, type SubaccountInviteStatus, type SubaccountMember, type SubaccountPermission, type SubaccountPermissionDefinition, type SubaccountPolicy, type SubaccountPolicyApplyInput, type SubaccountPolicyCreateInput, type SubaccountPolicyUpdateInput, type SubaccountRole, type SubaccountRoleCatalog, type SubaccountRoleDefinition, type SubaccountScopedInput, type SubaccountStatus, type SubscribeHandlers, type SubscribeZippedAssetSupplyInput, type SystemVersion, type TakeProfitInput, type Timeframe, TimeoutError, TimestampSkewError, type Trade, type TradeBackfill, type TradingRateLimitClass, type TradingRateLimitRule, type TradingRateLimits, type TradingWithdrawSigningConfig, type TradingWithdrawWalletSigner, type TrailingDetailsOutput, type TrailingStopInput, type TransferCodeValue, type TransferCounterparties, type TransferCounterparty, type TransferDestination, type TransferDestinations, type TransferSideKind, TransientError, type Transports, type Trigger, type TriggerDetailsOutput, type TriggerEvent, type TwapDetailsOutput, type UnifiedAssetBalancesResponse, type UnlinkSocialAccountInput, type UpdateAddressBookEntryInput, type UpdateAddressBookTagInput, type UpdateMfaFactorInput, type UpdateMfaFactorResult, type UpdatePriceAlertInput, type UpdatePriceAlertResult, type UpdateProfileInput, type UpdateSubaccountInput, type UpdateSubaccountMemberRoleInput, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, type UsernameHistoryEntry, type ValidateWithdrawDestinationInput, type ValidateWithdrawDestinationResult, ValidationError, type VerificationReadyResponse, type VerifyRecoveryCodeChallengeInput, type VerifyTotpChallengeInput, type VipMetricQuality, type VipMetricStatus, type VipStatus, type VipTier, type VipTierCatalog, type WalletChallenge, type WatchAssistantRunInput, WithdrawDeadlineExpiredError, type WithdrawWhitelistView, type ZippedAssetSupplyBatch, type ZippedAssetSupplyGroupResponse, type ZippedAssetSupplyResponse, type ZippedAssetSupplySeries, type ZippedAssetSupplyUpdate, type ZipperAssetChainVariant, type ZipperAssetConfig, type ZipperChainConfig, type ZipperChainContractConfig, type ZipperMemoRequirement, checksumEvmAddress, columnarTimestampSecAt, compareUnsignedIntegerStrings, connectErrorToPolyesterError, createCookieAuthTokenStorage, createErrorMappingInterceptor, createMemoryAuthTokenStorage, createPolyesterEnvironment, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest, createPolyesterServerCoreFromCookies, createPolyesterServerCoreFromRequest, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatLedgerBalance, formatUserFacingError, isAbortError, isEvmAddress, isEvmAddressStrict, isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError, isSessionElevationRequiredError, isTimeoutAbortError, keccak256Hex, loadErrorDetailDecoders, mergeLedgerBalances, normalizeErrorMessage, resolveAuthCookieName, shouldApplyReconciliationUpdate, tsObjToNsString as timestampToNanoseconds, toPolyesterError, validateCreateAddressBookEntryInput };
@@ -9,7 +9,7 @@ declare class AccountsService {
9
9
  #private;
10
10
  constructor(transports: AuthApiTransports);
11
11
  /**
12
- * Resolves a username, opaque account/subaccount ID, or smart-account address into matching destination accounts; set includeSubaccounts for internal-transfer flows that may target subaccounts.
12
+ * Resolves a username, opaque account/subaccount ID, or smart-account address into matching destination accounts; set includeSubaccounts for internal-transfer flows that may target subaccounts. API keys need `read-account-directory`.
13
13
  */
14
14
  resolve(input: ResolveAccountInput, options?: PolyesterRequestOptions): Promise<ResolvedAccount[]>;
15
15
  }
@@ -13,7 +13,7 @@ var AccountsService = class {
13
13
  this.#client = createClient(ResolveService, transports.authApi);
14
14
  }
15
15
  /**
16
- * Resolves a username, opaque account/subaccount ID, or smart-account address into matching destination accounts; set includeSubaccounts for internal-transfer flows that may target subaccounts.
16
+ * Resolves a username, opaque account/subaccount ID, or smart-account address into matching destination accounts; set includeSubaccounts for internal-transfer flows that may target subaccounts. API keys need `read-account-directory`.
17
17
  */
18
18
  async resolve(input, options) {
19
19
  const validatedInput = parse(ResolveAccountInputSchema, input);
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.js","names":["#client","ProtoResolve.ResolveService"],"sources":["../../../src/services/accounts/accounts.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as ProtoResolve from \"../../gen/auth/v1/resolve_pb.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n toConnectCallOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport {\n ResolveAccountInputSchema,\n ResolvedAccountArraySchema,\n type ResolveAccountInput,\n type ResolvedAccount,\n} from \"./accounts.schemas.js\";\n\n/**\n * Resolves user-entered account identifiers into transfer/shareable root or subaccount destinations.\n */\nexport class AccountsService {\n #client: Client<typeof ProtoResolve.ResolveService>;\n\n constructor(transports: AuthApiTransports) {\n this.#client = createClient(ProtoResolve.ResolveService, transports.authApi);\n }\n\n /**\n * Resolves a username, opaque account/subaccount ID, or smart-account address into matching destination accounts; set includeSubaccounts for internal-transfer flows that may target subaccounts.\n */\n async resolve(\n input: ResolveAccountInput,\n options?: PolyesterRequestOptions,\n ): Promise<ResolvedAccount[]> {\n const validatedInput = parse(ResolveAccountInputSchema, input);\n const res = await this.#client.resolveAccount(\n validatedInput,\n toConnectCallOptions(options),\n );\n\n return parse(ResolvedAccountArraySchema, res.matches);\n }\n}\n"],"mappings":";;;;;;;;;AAkBA,IAAa,kBAAb,MAA6B;CACzB;CAEA,YAAY,YAA+B;EACvC,KAAKA,UAAU,aAAaC,gBAA6B,WAAW,OAAO;CAC/E;;;;CAKA,MAAM,QACF,OACA,SAC0B;EAC1B,MAAM,iBAAiB,MAAM,2BAA2B,KAAK;EAC7D,MAAM,MAAM,MAAM,KAAKD,QAAQ,eAC3B,gBACA,qBAAqB,OAAO,CAChC;EAEA,OAAO,MAAM,4BAA4B,IAAI,OAAO;CACxD;AACJ"}
1
+ {"version":3,"file":"accounts.js","names":["#client","ProtoResolve.ResolveService"],"sources":["../../../src/services/accounts/accounts.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as ProtoResolve from \"../../gen/auth/v1/resolve_pb.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n toConnectCallOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport {\n ResolveAccountInputSchema,\n ResolvedAccountArraySchema,\n type ResolveAccountInput,\n type ResolvedAccount,\n} from \"./accounts.schemas.js\";\n\n/**\n * Resolves user-entered account identifiers into transfer/shareable root or subaccount destinations.\n */\nexport class AccountsService {\n #client: Client<typeof ProtoResolve.ResolveService>;\n\n constructor(transports: AuthApiTransports) {\n this.#client = createClient(ProtoResolve.ResolveService, transports.authApi);\n }\n\n /**\n * Resolves a username, opaque account/subaccount ID, or smart-account address into matching destination accounts; set includeSubaccounts for internal-transfer flows that may target subaccounts. API keys need `read-account-directory`.\n */\n async resolve(\n input: ResolveAccountInput,\n options?: PolyesterRequestOptions,\n ): Promise<ResolvedAccount[]> {\n const validatedInput = parse(ResolveAccountInputSchema, input);\n const res = await this.#client.resolveAccount(\n validatedInput,\n toConnectCallOptions(options),\n );\n\n return parse(ResolvedAccountArraySchema, res.matches);\n }\n}\n"],"mappings":";;;;;;;;;AAkBA,IAAa,kBAAb,MAA6B;CACzB;CAEA,YAAY,YAA+B;EACvC,KAAKA,UAAU,aAAaC,gBAA6B,WAAW,OAAO;CAC/E;;;;CAKA,MAAM,QACF,OACA,SAC0B;EAC1B,MAAM,iBAAiB,MAAM,2BAA2B,KAAK;EAC7D,MAAM,MAAM,MAAM,KAAKD,QAAQ,eAC3B,gBACA,qBAAqB,OAAO,CAChC;EAEA,OAAO,MAAM,4BAA4B,IAAI,OAAO;CACxD;AACJ"}
@@ -297,7 +297,7 @@ declare const AddressBookSchema: v.ObjectSchema<{
297
297
  rootAccountId: string;
298
298
  subaccountId: bigint;
299
299
  }, AddressBookAccountScope>]>, undefined>;
300
- readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
300
+ readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer" | "unspecified">]>;
301
301
  readonly label: v.StringSchema<undefined>;
302
302
  readonly ownerUsername: v.StringSchema<undefined>;
303
303
  readonly smartAccountAddress: v.StringSchema<undefined>;
@@ -1102,7 +1102,7 @@ declare const AddressBookViewSchema: v.ObjectSchema<{
1102
1102
  rootAccountId: string;
1103
1103
  subaccountId: bigint;
1104
1104
  }, AddressBookAccountScope>]>, undefined>;
1105
- readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
1105
+ readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer" | "unspecified">]>;
1106
1106
  readonly label: v.StringSchema<undefined>;
1107
1107
  readonly ownerUsername: v.StringSchema<undefined>;
1108
1108
  readonly smartAccountAddress: v.StringSchema<undefined>;
@@ -6,7 +6,7 @@ import "../../realtime/index.js";
6
6
  import { BaseSubscribeInput } from "../../shared/types.js";
7
7
  import { ApiKeyPoliciesService } from "../policies/api-key-policies/api-key-policies.js";
8
8
  import "../policies/api-key-policies/index.js";
9
- import { ApiKey, ApiKeyIdInputSchema, ApiKeysCreateInputSchema, ApiKeysListInputSchema, ApiKeysUpdateInputSchema } from "./api-keys.schemas.js";
9
+ import { ApiKey, ApiKeyIdInputSchema, ApiKeysCreateInputSchema, ApiKeysListInputSchema, ApiKeysUpdateInputSchema, SetAssistantKeysInput } from "./api-keys.schemas.js";
10
10
  import * as v from "valibot";
11
11
  //#region src/services/api-keys/api-keys.d.ts
12
12
  interface SubscribeApiKeysInput extends BaseSubscribeInput<ApiKey> {
@@ -20,11 +20,11 @@ declare class ApiKeysService {
20
20
  readonly policies: ApiKeyPoliciesService;
21
21
  constructor(transports: AuthApiTransports, realtime: PolyesterRealtime, resolver?: SubaccountResolver);
22
22
  /**
23
- * Returns non-revoked API keys owned by the caller, newest first, optionally scoped through an explicit or resolver-provided subaccount ID.
23
+ * Returns non-revoked API keys owned by the caller, newest first, optionally scoped through an explicit or resolver-provided subaccount ID. API keys need `read-api-keys`; a key scoped to a sub-account sees only that sub-account's keys.
24
24
  */
25
25
  list(params?: v.InferInput<typeof ApiKeysListInputSchema>, options?: PolyesterRequestOptions): Promise<ApiKey[]>;
26
26
  /**
27
- * Fetches one caller-owned API key by ak_... key ID and returns null when no matching key is returned.
27
+ * Fetches one caller-owned API key by ak_... key ID and returns null when no matching key is returned. API keys need `read-api-keys`.
28
28
  */
29
29
  get(input: v.InferInput<typeof ApiKeyIdInputSchema>, options?: PolyesterRequestOptions): Promise<ApiKey | null>;
30
30
  /**
@@ -39,6 +39,21 @@ declare class ApiKeysService {
39
39
  * Updates mutable key metadata, ACTIVE/DISABLED status, IP whitelist replacement/clearing, and optional expiry; revocation must use delete.
40
40
  */
41
41
  update(payload: v.InferInput<typeof ApiKeysUpdateInputSchema>, options?: PolyesterMutationOptions): Promise<ApiKey | null>;
42
+ /**
43
+ * Replaces the caller's Polyester AI assistant key set: one `assistant` key per account,
44
+ * each bounded by its API policy, all or nothing. Register the keys `assistant.prepareKeys`
45
+ * returned before their deadline, then call `assistant.completeKeys`. Needs a fresh
46
+ * `stepUpToken` for the whole set. A policy that allows moving value out throws
47
+ * `PreconditionFailedError` (`AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED`).
48
+ */
49
+ setAssistantKeys(input: SetAssistantKeysInput, options?: PolyesterMutationOptions): Promise<ApiKey[]>;
50
+ /** Lists the caller's non-revoked assistant keys, newest first. */
51
+ listAssistantKeys(options?: PolyesterRequestOptions): Promise<ApiKey[]>;
52
+ /**
53
+ * Permanently revokes the caller's whole assistant key set; needs no step-up. Returns the
54
+ * revoked key IDs, empty when the set was already empty.
55
+ */
56
+ deleteAssistantKeys(options?: PolyesterMutationOptions): Promise<string[]>;
42
57
  /**
43
58
  * Generates an Ed25519 keypair locally and returns public and secret key material as both hex strings and byte arrays; only the public key should be sent to the API.
44
59
  */
@@ -1 +1 @@
1
- {"version":3,"file":"api-keys.d.ts","names":[],"sources":["../../../src/services/api-keys/api-keys.ts"],"mappings":";;;;;;;;;;;UA2BU,8BAA8B,mBAAmB;EACvD;;;;;cAMS;;WACA,UAAU;EAOf,YAAA,YAAY,mBACZ,UAAU,mBACV,WAAW;;;;EAWT,KACF,SAAQ,EAAE,kBAAkB,yBAC5B,UAAU,0BACX,QAAQ;;;;EAcL,IACF,OAAO,EAAE,kBAAkB,sBAC3B,UAAU,0BACX,QAAQ;;;;EASL,OACF,SAAS,EAAE,kBAAkB,2BAC7B,UAAU,2BACX,QAAQ;;;;EAaL,OACF,OAAO,EAAE,kBAAkB,sBAC3B,UAAU,2BACX;;;;EAQG,OACF,SAAS,EAAE,kBAAkB,2BAC7B,UAAU,2BACX,QAAQ;;;;EAYL,mBAAmB;IACrB;MAAa;MAAa,OAAO;;IACjC;MAAa;MAAa,OAAO;;;;;;EAkBrC,UAAU,OAAO"}
1
+ {"version":3,"file":"api-keys.d.ts","names":[],"sources":["../../../src/services/api-keys/api-keys.ts"],"mappings":";;;;;;;;;;;UA6BU,8BAA8B,mBAAmB;EACvD;;;;;cAMS;;WACA,UAAU;EAOf,YAAA,YAAY,mBACZ,UAAU,mBACV,WAAW;;;;EAWT,KACF,SAAQ,EAAE,kBAAkB,yBAC5B,UAAU,0BACX,QAAQ;;;;EAcL,IACF,OAAO,EAAE,kBAAkB,sBAC3B,UAAU,0BACX,QAAQ;;;;EASL,OACF,SAAS,EAAE,kBAAkB,2BAC7B,UAAU,2BACX,QAAQ;;;;EAaL,OACF,OAAO,EAAE,kBAAkB,sBAC3B,UAAU,2BACX;;;;EAQG,OACF,SAAS,EAAE,kBAAkB,2BAC7B,UAAU,2BACX,QAAQ;;;;;;;;EAgBL,iBACF,OAAO,uBACP,UAAU,2BACX,QAAQ;;EAUL,kBAAkB,UAAU,0BAA0B,QAAQ;;;;;EAS9D,oBAAoB,UAAU,2BAA2B;;;;EAQzD,mBAAmB;IACrB;MAAa;MAAa,OAAO;;IACjC;MAAa;MAAa,OAAO;;;;;;EAkBrC,UAAU,OAAO"}