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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/CHANGELOG.md +3 -1
  2. package/dist/client.d.ts +2 -0
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +2 -0
  5. package/dist/client.js.map +1 -1
  6. package/dist/gen/ai/v1/assistant_pb.d.ts +1 -1
  7. package/dist/gen/ai/v1/assistant_pb.js +1 -1
  8. package/dist/gen/alerts/v1/price_alerts_pb.d.ts +1 -1
  9. package/dist/gen/auth/v1/activity_pb.d.ts +1 -1
  10. package/dist/gen/auth/v1/address_book_pb.d.ts +1 -1
  11. package/dist/gen/auth/v1/address_book_pb.js +1 -1
  12. package/dist/gen/auth/v1/api_keys_pb.d.ts +1 -1
  13. package/dist/gen/auth/v1/auth_pb.d.ts +1 -1
  14. package/dist/gen/auth/v1/auth_pb.js +1 -1
  15. package/dist/gen/auth/v1/connected_apps_pb.d.ts +1 -1
  16. package/dist/gen/auth/v1/mfa_pb.d.ts +1 -1
  17. package/dist/gen/auth/v1/policies_pb.d.ts +1 -1
  18. package/dist/gen/auth/v1/profile_pb.d.ts +1 -1
  19. package/dist/gen/auth/v1/resolve_pb.d.ts +1 -1
  20. package/dist/gen/auth/v1/social_verification_pb.d.ts +1 -1
  21. package/dist/gen/auth/v1/subaccounts_pb.d.ts +1 -1
  22. package/dist/gen/auth/v1/subaccounts_pb.js +1 -1
  23. package/dist/gen/chain/analytics/v1/analytics_read_pb.d.ts +1 -1
  24. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +1 -1
  25. package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +1 -1
  26. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +1 -1
  27. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +1 -1
  28. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +1 -1
  29. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +1 -1
  30. package/dist/gen/chain/zipper/v1/reason_pb.d.ts +1 -1
  31. package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +1 -1
  32. package/dist/gen/changelog/v1/changelog_pb.d.ts +1 -1
  33. package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +1 -1
  34. package/dist/gen/claims/v1/claims_pb.d.ts +1 -1
  35. package/dist/gen/fees/v1/fees_pb.d.ts +1 -1
  36. package/dist/gen/index.d.ts +1 -1
  37. package/dist/gen/index.js +27 -27
  38. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +1 -1
  39. package/dist/gen/ledger/read/v1/statement_export_pb.d.ts +1 -1
  40. package/dist/gen/marketdata/v1/asset_info_pb.d.ts +1 -1
  41. package/dist/gen/marketdata/v1/heatmap_pb.d.ts +1 -1
  42. package/dist/gen/marketdata/v1/marketdata_pb.d.ts +1 -1
  43. package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +1 -1
  44. package/dist/gen/notifications/v1/notifications_pb.d.ts +1 -1
  45. package/dist/gen/orderbook/v1/orderbook_pb.d.ts +1 -1
  46. package/dist/gen/orders/v1/orders_pb.d.ts +1 -1
  47. package/dist/gen/orders/v1/orders_read_pb.d.ts +1 -1
  48. package/dist/gen/polyester/api/v1/request_error_pb.d.ts +1 -1
  49. package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +1 -1
  50. package/dist/gen/polyester/type/v1/u128_pb.d.ts +1 -1
  51. package/dist/gen/privatews/v1/private_ws_pb.d.ts +1 -1
  52. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +1 -1
  53. package/dist/gen/rewards/v1/rewards_pb.d.ts +1 -1
  54. package/dist/gen/strategies/v1/strategies_pb.d.ts +1 -1
  55. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +1 -1
  56. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts +1 -1
  57. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +1 -1
  58. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +1 -1
  59. package/dist/gen/swap/v1/swap_pb.d.ts +1 -1
  60. package/dist/gen/system/v1/system_pb.d.ts +1 -1
  61. package/dist/gen/tradews/v1/trade_ws_pb.d.ts +1 -1
  62. package/dist/gen/transfer/v1/dust_conversion_pb.d.ts +1 -1
  63. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +1 -1
  64. package/dist/gen/triggers/v1/triggers_pb.d.ts +1 -1
  65. package/dist/gen/vip/v1/vip_pb.d.ts +1 -1
  66. package/dist/index.d.ts +4 -1
  67. package/dist/services/account-activity/account-activity.js +1 -1
  68. package/dist/services/account-activity/account-activity.schemas.d.ts +6 -6
  69. package/dist/services/accounts/accounts.js +1 -1
  70. package/dist/services/accounts/accounts.schemas.js +1 -1
  71. package/dist/services/address-book/address-book.js +1 -1
  72. package/dist/services/address-book/address-book.schemas.d.ts +2 -2
  73. package/dist/services/api-keys/api-keys.js +1 -1
  74. package/dist/services/api-keys/api-keys.schemas.d.ts +3 -3
  75. package/dist/services/assistant/assistant-events.schemas.d.ts +28 -28
  76. package/dist/services/assistant/assistant.js +1 -1
  77. package/dist/services/assistant/assistant.schemas.d.ts +1 -1
  78. package/dist/services/auth/profile/profile.js +1 -1
  79. package/dist/services/auto-withdraw/auto-withdraw.js +1 -1
  80. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -1
  81. package/dist/services/auto-withdraw/auto-withdraw.schemas.js +5 -12
  82. package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -1
  83. package/dist/services/balances/balances.js +1 -1
  84. package/dist/services/balances/balances.schemas.d.ts +3 -3
  85. package/dist/services/candles/candles.js +1 -1
  86. package/dist/services/chain-analytics/chain-analytics.js +1 -1
  87. package/dist/services/changelog/changelog.js +1 -1
  88. package/dist/services/changelog/changelog.schemas.d.ts +38 -38
  89. package/dist/services/checkpoints/checkpoints.js +1 -1
  90. package/dist/services/claims/claims.js +1 -1
  91. package/dist/services/claims/claims.schemas.d.ts +2 -2
  92. package/dist/services/claims/claims.schemas.js +1 -1
  93. package/dist/services/connected-apps/connected-apps.js +1 -1
  94. package/dist/services/deposit/deposit.js +1 -1
  95. package/dist/services/dust-conversion/dust-conversion.js +1 -1
  96. package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +8 -8
  97. package/dist/services/dust-conversion/dust-conversion.schemas.js +1 -1
  98. package/dist/services/fees/fees.js +1 -1
  99. package/dist/services/guard-signer/guard-signer.js +1 -1
  100. package/dist/services/heatmap/heatmap.js +1 -1
  101. package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
  102. package/dist/services/internal-transfers/internal-transfers.js +1 -1
  103. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +6 -6
  104. package/dist/services/lifecycle/lifecycle.js +1 -1
  105. package/dist/services/lifecycle/lifecycle.schemas.d.ts +66 -66
  106. package/dist/services/lifecycle/lifecycle.schemas.js +2 -2
  107. package/dist/services/market-data/market-data.js +1 -1
  108. package/dist/services/market-overview/market-overview.js +1 -1
  109. package/dist/services/market-overview/market-overview.schemas.js +1 -1
  110. package/dist/services/notifications/notifications.js +1 -1
  111. package/dist/services/orderbook/orderbook.js +1 -1
  112. package/dist/services/orders/order-errors.schemas.d.ts +9 -9
  113. package/dist/services/orders/order-errors.schemas.js +1 -1
  114. package/dist/services/orders/orders-batch.schemas.d.ts +97 -97
  115. package/dist/services/orders/orders-batch.schemas.js +1 -1
  116. package/dist/services/orders/orders-input.schemas.d.ts +16 -16
  117. package/dist/services/orders/orders-input.schemas.js +1 -1
  118. package/dist/services/orders/orders-modify.schemas.js +1 -1
  119. package/dist/services/orders/orders-output.schemas.d.ts +16 -16
  120. package/dist/services/orders/orders-risk.schemas.js +2 -2
  121. package/dist/services/orders/orders.js +2 -2
  122. package/dist/services/policies/api-key-policies/api-key-policies.js +1 -1
  123. package/dist/services/policies/shared.codecs.js +1 -1
  124. package/dist/services/policies/subaccount-policies/subaccount-policies.js +1 -1
  125. package/dist/services/price-alerts/price-alerts.js +1 -1
  126. package/dist/services/rate-limits/rate-limits.js +1 -1
  127. package/dist/services/rewards/rewards.js +1 -1
  128. package/dist/services/rewards/rewards.schemas.d.ts +4 -4
  129. package/dist/services/social-verification/social-verification.js +1 -1
  130. package/dist/services/social-verification/social-verification.schemas.js +1 -1
  131. package/dist/services/statement-exports/statement-exports.js +1 -1
  132. package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
  133. package/dist/services/strategies/strategies.js +1 -1
  134. package/dist/services/strategies/strategies.schemas.d.ts +1 -1
  135. package/dist/services/subaccounts/subaccounts.js +2 -2
  136. package/dist/services/subaccounts/subaccounts.schemas.d.ts +16 -16
  137. package/dist/services/swap/service.d.ts +8 -0
  138. package/dist/services/swap/service.d.ts.map +1 -0
  139. package/dist/services/swap/service.js +9 -0
  140. package/dist/services/swap/service.js.map +1 -0
  141. package/dist/services/swap/swap.codecs.d.ts +19 -0
  142. package/dist/services/swap/swap.codecs.d.ts.map +1 -0
  143. package/dist/services/swap/swap.codecs.js +39 -0
  144. package/dist/services/swap/swap.codecs.js.map +1 -0
  145. package/dist/services/swap/swap.d.ts +51 -0
  146. package/dist/services/swap/swap.d.ts.map +1 -0
  147. package/dist/services/swap/swap.js +71 -0
  148. package/dist/services/swap/swap.js.map +1 -0
  149. package/dist/services/swap/swap.schemas.d.ts +520 -0
  150. package/dist/services/swap/swap.schemas.d.ts.map +1 -0
  151. package/dist/services/swap/swap.schemas.js +213 -0
  152. package/dist/services/swap/swap.schemas.js.map +1 -0
  153. package/dist/services/swap/swap.types.d.ts +3 -0
  154. package/dist/services/system/system.js +1 -1
  155. package/dist/services/system/system.schemas.d.ts +13 -13
  156. package/dist/services/trades/trades.js +1 -1
  157. package/dist/services/trades/trades.schemas.d.ts +1 -1
  158. package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
  159. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +1 -1
  160. package/dist/services/trading-withdraws/wallet-message.js +1 -1
  161. package/dist/services/transfers/transfers.js +1 -1
  162. package/dist/services/transfers/transfers.schemas.d.ts +1 -1
  163. package/dist/services/triggers/trigger-child-order.schemas.js +2 -2
  164. package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
  165. package/dist/services/triggers/trigger-input.schemas.js +2 -2
  166. package/dist/services/triggers/triggers-output.schemas.d.ts +53 -53
  167. package/dist/services/triggers/triggers.js +1 -1
  168. package/dist/services/vip/vip.js +1 -1
  169. package/dist/services/vip/vip.schemas.d.ts +3 -3
  170. package/dist/services/vip/vip.schemas.js +1 -1
  171. package/dist/services/zipper/zipper.js +1 -1
  172. package/dist/services/zipper/zipper.schemas.js +1 -1
  173. package/dist/shared/connect-error-mapping.d.ts.map +1 -1
  174. package/dist/shared/connect-error-mapping.js +1 -0
  175. package/dist/shared/connect-error-mapping.js.map +1 -1
  176. package/dist/shared/decimal-surface.d.ts.map +1 -1
  177. package/dist/shared/decimal-surface.js +11 -1
  178. package/dist/shared/decimal-surface.js.map +1 -1
  179. package/dist/shared/error-detail.d.ts +16 -4
  180. package/dist/shared/error-detail.d.ts.map +1 -1
  181. package/dist/shared/error-detail.js +1 -0
  182. package/dist/shared/error-detail.js.map +1 -1
  183. package/dist/shared/error-details/alerts.js +1 -1
  184. package/dist/shared/error-details/assistant.js +1 -1
  185. package/dist/shared/error-details/auth.js +1 -1
  186. package/dist/shared/error-details/claims.js +1 -1
  187. package/dist/shared/error-details/internal-transfer.js +1 -1
  188. package/dist/shared/error-details/ledger.js +1 -1
  189. package/dist/shared/error-details/market-overview.js +1 -1
  190. package/dist/shared/error-details/notifications.js +1 -1
  191. package/dist/shared/error-details/orders.js +1 -1
  192. package/dist/shared/error-details/profile.js +1 -1
  193. package/dist/shared/error-details/rate-limit.js +1 -1
  194. package/dist/shared/error-details/strategies.js +1 -1
  195. package/dist/shared/error-details/swap.js +22 -0
  196. package/dist/shared/error-details/swap.js.map +1 -0
  197. package/dist/shared/error-details/withdraw.js +1 -1
  198. package/dist/shared/rate-limit.schemas.d.ts +1 -1
  199. package/dist/shared/rate-limit.schemas.js +1 -1
  200. package/dist/wired-services.d.ts.map +1 -1
  201. package/dist/wired-services.js +23 -21
  202. package/dist/wired-services.js.map +1 -1
  203. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { decodeDetail } from "../error-detail.js";
2
1
  import { ErrorDetailSchema } from "../../gen/orders/v1/orders_pb.js";
2
+ import { decodeDetail } from "../error-detail.js";
3
3
  import { OrderErrorDetailSchema } from "../../services/orders/order-errors.schemas.js";
4
4
  import * as v from "valibot";
5
5
  //#region src/shared/error-details/orders.ts
@@ -1,5 +1,5 @@
1
- import { codeName, decodeDetail } from "../error-detail.js";
2
1
  import { ProfileErrorCode, ProfileErrorDetailSchema } from "../../gen/auth/v1/profile_pb.js";
2
+ import { codeName, decodeDetail } from "../error-detail.js";
3
3
  //#region src/shared/error-details/profile.ts
4
4
  function decode(raw) {
5
5
  const profile = decodeDetail(raw, ProfileErrorDetailSchema);
@@ -1,5 +1,5 @@
1
- import { decodeDetail } from "../error-detail.js";
2
1
  import { RateLimitDetailSchema } from "../../gen/polyester/ratelimit/v1/types_pb.js";
2
+ import { decodeDetail } from "../error-detail.js";
3
3
  import { RateLimitDetailSchema as RateLimitDetailSchema$1 } from "../rate-limit.schemas.js";
4
4
  import * as v from "valibot";
5
5
  //#region src/shared/error-details/rate-limit.ts
@@ -1,6 +1,6 @@
1
+ import { ErrorCode, ErrorDetailSchema } from "../../gen/strategies/v1/strategies_pb.js";
1
2
  import { codeName, decodeDetail } from "../error-detail.js";
2
3
  import { tsObjToMs } from "../../utils/time.js";
3
- import { ErrorCode, ErrorDetailSchema } from "../../gen/strategies/v1/strategies_pb.js";
4
4
  //#region src/shared/error-details/strategies.ts
5
5
  function decode(raw) {
6
6
  const strategies = decodeDetail(raw, ErrorDetailSchema);
@@ -0,0 +1,22 @@
1
+ import { ErrorCode, ErrorDetailSchema } from "../../gen/swap/v1/swap_pb.js";
2
+ import { codeName, decodeDetail } from "../error-detail.js";
3
+ import { formatId } from "../../utils/base58-id.js";
4
+ import { scaledToDecimal } from "../../catalogs/decimal.js";
5
+ import { fromU128 } from "../../utils/u128.js";
6
+ //#region src/shared/error-details/swap.ts
7
+ function decode(raw) {
8
+ const swap = decodeDetail(raw, ErrorDetailSchema);
9
+ const code = swap && codeName(ErrorCode, swap.code);
10
+ if (!code) return void 0;
11
+ return {
12
+ service: "swap",
13
+ code,
14
+ ...swap.swapId ? { swapId: formatId(swap.swapId) } : {},
15
+ ...swap.minAmountE18 ? { minAmount: scaledToDecimal(fromU128(swap.minAmountE18), 18) } : {},
16
+ ...swap.maxAmountE18 ? { maxAmount: scaledToDecimal(fromU128(swap.maxAmountE18), 18) } : {}
17
+ };
18
+ }
19
+ //#endregion
20
+ export { decode };
21
+
22
+ //# sourceMappingURL=swap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swap.js","names":[],"sources":["../../../src/shared/error-details/swap.ts"],"sourcesContent":["import { scaledToDecimal } from \"../../catalogs/decimal.js\";\nimport { ErrorCode, ErrorDetailSchema } from \"../../gen/swap/v1/swap_pb.js\";\nimport { formatId } from \"../../utils/base58-id.js\";\nimport { fromU128 } from \"../../utils/u128.js\";\nimport {\n codeName,\n decodeDetail,\n type ConnectErrorDetail,\n type PolyesterErrorDetail,\n} from \"../error-detail.js\";\n\nexport function decode(raw: ConnectErrorDetail): PolyesterErrorDetail | undefined {\n const swap = decodeDetail(raw, ErrorDetailSchema);\n const code = swap && codeName(ErrorCode, swap.code);\n if (!code) return undefined;\n return {\n service: \"swap\",\n code,\n ...(swap.swapId ? { swapId: formatId(swap.swapId) } : {}),\n ...(swap.minAmountE18\n ? { minAmount: scaledToDecimal(fromU128(swap.minAmountE18), 18) }\n : {}),\n ...(swap.maxAmountE18\n ? { maxAmount: scaledToDecimal(fromU128(swap.maxAmountE18), 18) }\n : {}),\n };\n}\n"],"mappings":";;;;;;AAWA,SAAgB,OAAO,KAA2D;CAC9E,MAAM,OAAO,aAAa,KAAK,iBAAiB;CAChD,MAAM,OAAO,QAAQ,SAAS,WAAW,KAAK,IAAI;CAClD,IAAI,CAAC,MAAM,OAAO,KAAA;CAClB,OAAO;EACH,SAAS;EACT;EACA,GAAI,KAAK,SAAS,EAAE,QAAQ,SAAS,KAAK,MAAM,EAAE,IAAI,CAAC;EACvD,GAAI,KAAK,eACH,EAAE,WAAW,gBAAgB,SAAS,KAAK,YAAY,GAAG,EAAE,EAAE,IAC9D,CAAC;EACP,GAAI,KAAK,eACH,EAAE,WAAW,gBAAgB,SAAS,KAAK,YAAY,GAAG,EAAE,EAAE,IAC9D,CAAC;CACX;AACJ"}
@@ -1,8 +1,8 @@
1
+ import { ErrorCode, ErrorDetailSchema } from "../../gen/chain/withdraw/v1/withdraw_pb.js";
1
2
  import { codeName, decodeDetail } from "../error-detail.js";
2
3
  import { tsObjToMs } from "../../utils/time.js";
3
4
  import { fromU128 } from "../../utils/u128.js";
4
5
  import { scaledToDecimalOutput } from "../decimal-surface.js";
5
- import { ErrorCode, ErrorDetailSchema } from "../../gen/chain/withdraw/v1/withdraw_pb.js";
6
6
  //#region src/shared/error-details/withdraw.ts
7
7
  function decode(raw) {
8
8
  const withdraw = decodeDetail(raw, ErrorDetailSchema);
@@ -21,7 +21,7 @@ declare const RateLimitDetailSchema: v.ObjectSchema<{
21
21
  readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
22
22
  readonly operationId: v.StringSchema<undefined>;
23
23
  readonly policyClass: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read">]>;
24
- readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject">]>;
24
+ readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
25
25
  readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
26
26
  }, undefined>;
27
27
  /** Structured quota state exposed by order rejections and {@link RateLimitError}. */
@@ -1,6 +1,6 @@
1
+ import "../gen/polyester/ratelimit/v1/types_pb.js";
1
2
  import { OptionalBigIntStringSchema } from "./schemas.js";
2
3
  import { enumLabelSchema } from "./proto-enum-codec.js";
3
- import "../gen/polyester/ratelimit/v1/types_pb.js";
4
4
  import * as v from "valibot";
5
5
  /** Parses protobuf quota state into the stable SDK rate-limit detail shape. */
6
6
  const RateLimitDetailSchema = v.object({
@@ -1 +1 @@
1
- {"version":3,"file":"wired-services.d.ts","names":[],"sources":["../src/wired-services.ts"],"mappings":";;;;;;;;;;;cAwDa,oCAAoC"}
1
+ {"version":3,"file":"wired-services.d.ts","names":[],"sources":["../src/wired-services.ts"],"mappings":";;;;;;;;;;;cAyDa,oCAAoC"}
@@ -1,44 +1,45 @@
1
- import { MFAService } from "./gen/auth/v1/mfa_pb.js";
2
- import { AuthService } from "./gen/auth/v1/auth_pb.js";
3
- import { ProfileService } from "./gen/auth/v1/profile_pb.js";
4
- import { ApiKeyService } from "./gen/auth/v1/api_keys_pb.js";
5
- import { PolicyService } from "./gen/auth/v1/policies_pb.js";
6
- import { LedgerReadService } from "./gen/ledger/read/v1/ledger_read_pb.js";
7
- import { SubaccountRoleService, SubaccountService, SubaccountViewService } from "./gen/auth/v1/subaccounts_pb.js";
8
- import { AccountActivityService } from "./gen/auth/v1/activity_pb.js";
9
- import { ResolveService } from "./gen/auth/v1/resolve_pb.js";
10
- import { AddressBookService } from "./gen/auth/v1/address_book_pb.js";
11
1
  import { PriceAlertService } from "./gen/alerts/v1/price_alerts_pb.js";
12
2
  import { DepositAddressService } from "./gen/chain/deposit/v1/deposit_pb.js";
3
+ import { LedgerReadService } from "./gen/ledger/read/v1/ledger_read_pb.js";
13
4
  import { MarketDataService } from "./gen/marketdata/v1/marketdata_pb.js";
14
5
  import { OrdersService } from "./gen/orders/v1/orders_pb.js";
15
6
  import { OrdersReadService } from "./gen/orders/v1/orders_read_pb.js";
16
7
  import { TriggersService } from "./gen/triggers/v1/triggers_pb.js";
17
8
  import { AssistantService } from "./gen/ai/v1/assistant_pb.js";
18
- import { AutoWithdrawService } from "./gen/chain/withdraw/v1/auto_withdraw_pb.js";
9
+ import { ApiKeyService } from "./gen/auth/v1/api_keys_pb.js";
10
+ import { PolicyService } from "./gen/auth/v1/policies_pb.js";
11
+ import { SubaccountRoleService, SubaccountService, SubaccountViewService } from "./gen/auth/v1/subaccounts_pb.js";
12
+ import { AccountActivityService } from "./gen/auth/v1/activity_pb.js";
13
+ import { AddressBookService } from "./gen/auth/v1/address_book_pb.js";
14
+ import { MFAService } from "./gen/auth/v1/mfa_pb.js";
15
+ import { AuthService } from "./gen/auth/v1/auth_pb.js";
16
+ import { ConnectedAppService } from "./gen/auth/v1/connected_apps_pb.js";
17
+ import { ProfileService } from "./gen/auth/v1/profile_pb.js";
18
+ import { ResolveService } from "./gen/auth/v1/resolve_pb.js";
19
+ import { SocialVerificationService } from "./gen/auth/v1/social_verification_pb.js";
19
20
  import { ChainAnalyticsService } from "./gen/chain/analytics/v1/analytics_read_pb.js";
21
+ import { GuardSignerService } from "./gen/chain/guard/v1/guard_signer_pb.js";
22
+ import { LifecycleReadService } from "./gen/chain/lifecycle/v1/lifecycle_read_pb.js";
23
+ import { AutoWithdrawService } from "./gen/chain/withdraw/v1/auto_withdraw_pb.js";
24
+ import { WithdrawService } from "./gen/chain/withdraw/v1/withdraw_pb.js";
25
+ import { ZipperService } from "./gen/chain/zipper/v1/zipper_pb.js";
20
26
  import { ChangelogService } from "./gen/changelog/v1/changelog_pb.js";
21
27
  import { CheckpointService } from "./gen/checkpoints/v1/checkpoints_pb.js";
22
28
  import { ClaimsService } from "./gen/claims/v1/claims_pb.js";
23
- import { ConnectedAppService } from "./gen/auth/v1/connected_apps_pb.js";
24
29
  import { FeeService } from "./gen/fees/v1/fees_pb.js";
25
- import { VIPService } from "./gen/vip/v1/vip_pb.js";
26
- import { GuardSignerService } from "./gen/chain/guard/v1/guard_signer_pb.js";
27
- import { HeatmapService } from "./gen/marketdata/v1/heatmap_pb.js";
28
30
  import { InternalTransferService } from "./gen/transfer/v1/internal_transfer_pb.js";
29
31
  import { DustConversionService } from "./gen/transfer/v1/dust_conversion_pb.js";
30
- import { LifecycleReadService } from "./gen/chain/lifecycle/v1/lifecycle_read_pb.js";
32
+ import { StatementExportService } from "./gen/ledger/read/v1/statement_export_pb.js";
33
+ import { HeatmapService } from "./gen/marketdata/v1/heatmap_pb.js";
31
34
  import { MarketOverviewService } from "./gen/marketoverview/v1/marketoverview_pb.js";
32
35
  import { NotificationService } from "./gen/notifications/v1/notifications_pb.js";
33
36
  import { OrderbookService } from "./gen/orderbook/v1/orderbook_pb.js";
34
37
  import { RateLimitService } from "./gen/ratelimit/v1/ratelimit_pb.js";
35
- import { StrategiesService } from "./gen/strategies/v1/strategies_pb.js";
36
38
  import { RewardCampaignService } from "./gen/rewards/v1/rewards_pb.js";
37
- import { SocialVerificationService } from "./gen/auth/v1/social_verification_pb.js";
38
- import { StatementExportService } from "./gen/ledger/read/v1/statement_export_pb.js";
39
+ import { StrategiesService } from "./gen/strategies/v1/strategies_pb.js";
40
+ import { SwapService } from "./gen/swap/v1/swap_pb.js";
39
41
  import { SystemService } from "./gen/system/v1/system_pb.js";
40
- import { WithdrawService } from "./gen/chain/withdraw/v1/withdraw_pb.js";
41
- import { ZipperService } from "./gen/chain/zipper/v1/zipper_pb.js";
42
+ import { VIPService } from "./gen/vip/v1/vip_pb.js";
42
43
  //#region src/wired-services.ts
43
44
  /**
44
45
  * Every proto service descriptor the SDK's service layer wires a client for.
@@ -88,6 +89,7 @@ const WIRED_SERVICE_DESCRIPTORS = [
88
89
  SubaccountRoleService,
89
90
  SubaccountService,
90
91
  SubaccountViewService,
92
+ SwapService,
91
93
  SystemService,
92
94
  TriggersService,
93
95
  VIPService,
@@ -1 +1 @@
1
- {"version":3,"file":"wired-services.js","names":[],"sources":["../src/wired-services.ts"],"sourcesContent":["import type { DescService } from \"@bufbuild/protobuf\";\nimport { AssistantService } from \"./gen/ai/v1/assistant_pb.js\";\nimport { PriceAlertService } from \"./gen/alerts/v1/price_alerts_pb.js\";\nimport { AccountActivityService } from \"./gen/auth/v1/activity_pb.js\";\nimport { AddressBookService } from \"./gen/auth/v1/address_book_pb.js\";\nimport { ApiKeyService } from \"./gen/auth/v1/api_keys_pb.js\";\nimport { AuthService } from \"./gen/auth/v1/auth_pb.js\";\nimport { ConnectedAppService } from \"./gen/auth/v1/connected_apps_pb.js\";\nimport { MFAService } from \"./gen/auth/v1/mfa_pb.js\";\nimport { PolicyService } from \"./gen/auth/v1/policies_pb.js\";\nimport { ProfileService } from \"./gen/auth/v1/profile_pb.js\";\nimport { ResolveService } from \"./gen/auth/v1/resolve_pb.js\";\nimport { SocialVerificationService } from \"./gen/auth/v1/social_verification_pb.js\";\nimport {\n SubaccountRoleService,\n SubaccountService,\n SubaccountViewService,\n} from \"./gen/auth/v1/subaccounts_pb.js\";\nimport { ChainAnalyticsService } from \"./gen/chain/analytics/v1/analytics_read_pb.js\";\nimport { DepositAddressService } from \"./gen/chain/deposit/v1/deposit_pb.js\";\nimport { GuardSignerService } from \"./gen/chain/guard/v1/guard_signer_pb.js\";\nimport { LifecycleReadService } from \"./gen/chain/lifecycle/v1/lifecycle_read_pb.js\";\nimport { AutoWithdrawService } from \"./gen/chain/withdraw/v1/auto_withdraw_pb.js\";\nimport { WithdrawService } from \"./gen/chain/withdraw/v1/withdraw_pb.js\";\nimport { ZipperService } from \"./gen/chain/zipper/v1/zipper_pb.js\";\nimport { ChangelogService } from \"./gen/changelog/v1/changelog_pb.js\";\nimport { CheckpointService } from \"./gen/checkpoints/v1/checkpoints_pb.js\";\nimport { ClaimsService } from \"./gen/claims/v1/claims_pb.js\";\nimport { FeeService } from \"./gen/fees/v1/fees_pb.js\";\nimport { LedgerReadService } from \"./gen/ledger/read/v1/ledger_read_pb.js\";\nimport { DustConversionService } from \"./gen/transfer/v1/dust_conversion_pb.js\";\nimport { StatementExportService } from \"./gen/ledger/read/v1/statement_export_pb.js\";\nimport { HeatmapService } from \"./gen/marketdata/v1/heatmap_pb.js\";\nimport { MarketDataService } from \"./gen/marketdata/v1/marketdata_pb.js\";\nimport { MarketOverviewService } from \"./gen/marketoverview/v1/marketoverview_pb.js\";\nimport { NotificationService } from \"./gen/notifications/v1/notifications_pb.js\";\nimport { OrderbookService } from \"./gen/orderbook/v1/orderbook_pb.js\";\nimport { OrdersService } from \"./gen/orders/v1/orders_pb.js\";\nimport { OrdersReadService } from \"./gen/orders/v1/orders_read_pb.js\";\nimport { RateLimitService } from \"./gen/ratelimit/v1/ratelimit_pb.js\";\nimport { RewardCampaignService } from \"./gen/rewards/v1/rewards_pb.js\";\nimport { InternalTransferService } from \"./gen/transfer/v1/internal_transfer_pb.js\";\nimport { StrategiesService } from \"./gen/strategies/v1/strategies_pb.js\";\nimport { SystemService } from \"./gen/system/v1/system_pb.js\";\nimport { TriggersService } from \"./gen/triggers/v1/triggers_pb.js\";\nimport { VIPService } from \"./gen/vip/v1/vip_pb.js\";\n\n/**\n * Every proto service descriptor the SDK's service layer wires a client for.\n * This is the authoritative surface for transport-level mocks: an in-memory\n * transport that routes all of these can serve the whole SDK.\n *\n * Kept in sync mechanically — `wired-services.test.ts` scans every\n * `createClient(...)` call site under `src/services` and `src/realtime` and\n * fails when this list drifts from the code.\n */\nexport const WIRED_SERVICE_DESCRIPTORS: readonly DescService[] = [\n AccountActivityService,\n AddressBookService,\n ApiKeyService,\n AssistantService,\n AuthService,\n AutoWithdrawService,\n ChainAnalyticsService,\n ChangelogService,\n CheckpointService,\n ClaimsService,\n ConnectedAppService,\n DepositAddressService,\n DustConversionService,\n FeeService,\n GuardSignerService,\n HeatmapService,\n InternalTransferService,\n LedgerReadService,\n LifecycleReadService,\n MarketDataService,\n MarketOverviewService,\n MFAService,\n NotificationService,\n OrderbookService,\n OrdersReadService,\n OrdersService,\n PolicyService,\n PriceAlertService,\n ProfileService,\n RateLimitService,\n ResolveService,\n RewardCampaignService,\n SocialVerificationService,\n StatementExportService,\n StrategiesService,\n SubaccountRoleService,\n SubaccountService,\n SubaccountViewService,\n SystemService,\n TriggersService,\n VIPService,\n WithdrawService,\n ZipperService,\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDA,MAAa,4BAAoD;CAC7D;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ"}
1
+ {"version":3,"file":"wired-services.js","names":[],"sources":["../src/wired-services.ts"],"sourcesContent":["import type { DescService } from \"@bufbuild/protobuf\";\nimport { AssistantService } from \"./gen/ai/v1/assistant_pb.js\";\nimport { PriceAlertService } from \"./gen/alerts/v1/price_alerts_pb.js\";\nimport { AccountActivityService } from \"./gen/auth/v1/activity_pb.js\";\nimport { AddressBookService } from \"./gen/auth/v1/address_book_pb.js\";\nimport { ApiKeyService } from \"./gen/auth/v1/api_keys_pb.js\";\nimport { AuthService } from \"./gen/auth/v1/auth_pb.js\";\nimport { ConnectedAppService } from \"./gen/auth/v1/connected_apps_pb.js\";\nimport { MFAService } from \"./gen/auth/v1/mfa_pb.js\";\nimport { PolicyService } from \"./gen/auth/v1/policies_pb.js\";\nimport { ProfileService } from \"./gen/auth/v1/profile_pb.js\";\nimport { ResolveService } from \"./gen/auth/v1/resolve_pb.js\";\nimport { SocialVerificationService } from \"./gen/auth/v1/social_verification_pb.js\";\nimport {\n SubaccountRoleService,\n SubaccountService,\n SubaccountViewService,\n} from \"./gen/auth/v1/subaccounts_pb.js\";\nimport { ChainAnalyticsService } from \"./gen/chain/analytics/v1/analytics_read_pb.js\";\nimport { DepositAddressService } from \"./gen/chain/deposit/v1/deposit_pb.js\";\nimport { GuardSignerService } from \"./gen/chain/guard/v1/guard_signer_pb.js\";\nimport { LifecycleReadService } from \"./gen/chain/lifecycle/v1/lifecycle_read_pb.js\";\nimport { AutoWithdrawService } from \"./gen/chain/withdraw/v1/auto_withdraw_pb.js\";\nimport { WithdrawService } from \"./gen/chain/withdraw/v1/withdraw_pb.js\";\nimport { ZipperService } from \"./gen/chain/zipper/v1/zipper_pb.js\";\nimport { ChangelogService } from \"./gen/changelog/v1/changelog_pb.js\";\nimport { CheckpointService } from \"./gen/checkpoints/v1/checkpoints_pb.js\";\nimport { ClaimsService } from \"./gen/claims/v1/claims_pb.js\";\nimport { FeeService } from \"./gen/fees/v1/fees_pb.js\";\nimport { LedgerReadService } from \"./gen/ledger/read/v1/ledger_read_pb.js\";\nimport { DustConversionService } from \"./gen/transfer/v1/dust_conversion_pb.js\";\nimport { StatementExportService } from \"./gen/ledger/read/v1/statement_export_pb.js\";\nimport { HeatmapService } from \"./gen/marketdata/v1/heatmap_pb.js\";\nimport { MarketDataService } from \"./gen/marketdata/v1/marketdata_pb.js\";\nimport { MarketOverviewService } from \"./gen/marketoverview/v1/marketoverview_pb.js\";\nimport { NotificationService } from \"./gen/notifications/v1/notifications_pb.js\";\nimport { OrderbookService } from \"./gen/orderbook/v1/orderbook_pb.js\";\nimport { OrdersService } from \"./gen/orders/v1/orders_pb.js\";\nimport { OrdersReadService } from \"./gen/orders/v1/orders_read_pb.js\";\nimport { RateLimitService } from \"./gen/ratelimit/v1/ratelimit_pb.js\";\nimport { RewardCampaignService } from \"./gen/rewards/v1/rewards_pb.js\";\nimport { InternalTransferService } from \"./gen/transfer/v1/internal_transfer_pb.js\";\nimport { StrategiesService } from \"./gen/strategies/v1/strategies_pb.js\";\nimport { SwapService } from \"./gen/swap/v1/swap_pb.js\";\nimport { SystemService } from \"./gen/system/v1/system_pb.js\";\nimport { TriggersService } from \"./gen/triggers/v1/triggers_pb.js\";\nimport { VIPService } from \"./gen/vip/v1/vip_pb.js\";\n\n/**\n * Every proto service descriptor the SDK's service layer wires a client for.\n * This is the authoritative surface for transport-level mocks: an in-memory\n * transport that routes all of these can serve the whole SDK.\n *\n * Kept in sync mechanically — `wired-services.test.ts` scans every\n * `createClient(...)` call site under `src/services` and `src/realtime` and\n * fails when this list drifts from the code.\n */\nexport const WIRED_SERVICE_DESCRIPTORS: readonly DescService[] = [\n AccountActivityService,\n AddressBookService,\n ApiKeyService,\n AssistantService,\n AuthService,\n AutoWithdrawService,\n ChainAnalyticsService,\n ChangelogService,\n CheckpointService,\n ClaimsService,\n ConnectedAppService,\n DepositAddressService,\n DustConversionService,\n FeeService,\n GuardSignerService,\n HeatmapService,\n InternalTransferService,\n LedgerReadService,\n LifecycleReadService,\n MarketDataService,\n MarketOverviewService,\n MFAService,\n NotificationService,\n OrderbookService,\n OrdersReadService,\n OrdersService,\n PolicyService,\n PriceAlertService,\n ProfileService,\n RateLimitService,\n ResolveService,\n RewardCampaignService,\n SocialVerificationService,\n StatementExportService,\n StrategiesService,\n SubaccountRoleService,\n SubaccountService,\n SubaccountViewService,\n SwapService,\n SystemService,\n TriggersService,\n VIPService,\n WithdrawService,\n ZipperService,\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDA,MAAa,4BAAoD;CAC7D;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyester/sdk",
3
- "version": "0.36.0-devnet-20261120015159",
3
+ "version": "0.36.0-devnet-20261120040128",
4
4
  "private": false,
5
5
  "description": "TypeScript SDK providing access to APIs on Polyester Exchange.",
6
6
  "homepage": "https://github.com/Fabric-Labs/polyester-sdk-typescript#readme",