@polyester/sdk 0.36.0-devnet-20261119195411 → 0.36.0-devnet-20261120040128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -2
- package/dist/client.d.ts +4 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +4 -0
- package/dist/client.js.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.d.ts +56 -4
- package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.js +9 -2
- package/dist/gen/ai/v1/assistant_pb.js.map +1 -1
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts +1 -1
- package/dist/gen/auth/v1/account_scope_pb.d.ts +40 -0
- package/dist/gen/auth/v1/account_scope_pb.d.ts.map +1 -0
- package/dist/gen/auth/v1/account_scope_pb.js +46 -0
- package/dist/gen/auth/v1/account_scope_pb.js.map +1 -0
- package/dist/gen/auth/v1/activity_pb.d.ts +1 -1
- package/dist/gen/auth/v1/address_book_pb.d.ts +4 -32
- package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/address_book_pb.js +8 -38
- package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +16 -15
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +16 -15
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/connected_apps_pb.d.ts +60 -59
- package/dist/gen/auth/v1/connected_apps_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/connected_apps_pb.js +38 -37
- package/dist/gen/auth/v1/connected_apps_pb.js.map +1 -1
- package/dist/gen/auth/v1/mfa_pb.d.ts +1 -1
- package/dist/gen/auth/v1/policies_pb.d.ts +28 -2
- package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/policies_pb.js +27 -1
- package/dist/gen/auth/v1/policies_pb.js.map +1 -1
- package/dist/gen/auth/v1/profile_pb.d.ts +1 -1
- package/dist/gen/auth/v1/resolve_pb.d.ts +1 -1
- package/dist/gen/auth/v1/social_verification_pb.d.ts +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.d.ts +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js +1 -1
- package/dist/gen/chain/analytics/v1/analytics_read_pb.d.ts +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +229 -3
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js +32 -8
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
- package/dist/gen/chain/zipper/v1/reason_pb.d.ts +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +1 -1
- package/dist/gen/changelog/v1/changelog_pb.d.ts +17 -5
- package/dist/gen/changelog/v1/changelog_pb.d.ts.map +1 -1
- package/dist/gen/changelog/v1/changelog_pb.js.map +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +1 -1
- package/dist/gen/claims/v1/claims_pb.d.ts +1 -1
- package/dist/gen/fees/v1/fees_pb.d.ts +1 -1
- package/dist/gen/index.d.ts +8 -6
- package/dist/gen/index.js +28 -26
- package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +1 -1
- package/dist/gen/ledger/read/v1/statement_export_pb.d.ts +1 -1
- package/dist/gen/marketdata/v1/asset_info_pb.d.ts +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts +289 -3
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js +115 -2
- package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +1 -1
- package/dist/gen/notifications/v1/notifications_pb.d.ts +1 -1
- package/dist/gen/orderbook/v1/orderbook_pb.d.ts +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +79 -26
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +36 -7
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +36 -2
- package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
- package/dist/gen/polyester/api/v1/request_error_pb.d.ts +1 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +1 -1
- package/dist/gen/polyester/type/v1/u128_pb.d.ts +1 -1
- package/dist/gen/privatews/v1/private_ws_pb.d.ts +1 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +1 -1
- package/dist/gen/rewards/v1/rewards_pb.d.ts +1 -1
- package/dist/gen/strategies/v1/strategies_pb.d.ts +2928 -0
- package/dist/gen/strategies/v1/strategies_pb.d.ts.map +1 -0
- package/dist/gen/strategies/v1/strategies_pb.js +818 -0
- package/dist/gen/strategies/v1/strategies_pb.js.map +1 -0
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +39 -18
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +4 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts +313 -133
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js +31 -26
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +29 -14
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +2 -2
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +110 -3
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +23 -3
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -1
- package/dist/gen/swap/v1/swap_pb.d.ts +1 -1
- package/dist/gen/system/v1/system_pb.d.ts +1 -1
- package/dist/gen/tradews/v1/trade_ws_pb.d.ts +1 -1
- package/dist/gen/transfer/v1/dust_conversion_pb.d.ts +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +4 -3
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.d.ts +62 -12
- package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.js +4 -2
- package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
- package/dist/gen/vip/v1/vip_pb.d.ts +1 -1
- package/dist/index.d.ts +12 -6
- package/dist/services/account-activity/account-activity.js +1 -1
- package/dist/services/account-activity/account-activity.schemas.d.ts +4 -4
- package/dist/services/accounts/accounts.js +1 -1
- package/dist/services/accounts/accounts.schemas.js +1 -1
- package/dist/services/address-book/address-book.codecs.js +1 -0
- package/dist/services/address-book/address-book.codecs.js.map +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/api-keys/api-keys.schemas.d.ts +6 -6
- package/dist/services/assistant/assistant-events.schemas.d.ts +135 -37
- package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -1
- package/dist/services/assistant/assistant-events.schemas.js +15 -5
- package/dist/services/assistant/assistant-events.schemas.js.map +1 -1
- package/dist/services/assistant/assistant.codecs.d.ts +5 -2
- package/dist/services/assistant/assistant.codecs.d.ts.map +1 -1
- package/dist/services/assistant/assistant.codecs.js +10 -2
- package/dist/services/assistant/assistant.codecs.js.map +1 -1
- package/dist/services/assistant/assistant.js +1 -1
- package/dist/services/assistant/assistant.schemas.d.ts +1 -1
- package/dist/services/auth/auth.js +1 -1
- package/dist/services/auth/auth.js.map +1 -1
- package/dist/services/auth/profile/profile.js +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.js +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +9 -9
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js +5 -12
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -1
- package/dist/services/candles/candles.js +1 -1
- package/dist/services/chain-analytics/chain-analytics.js +1 -1
- package/dist/services/changelog/changelog.js +1 -1
- package/dist/services/checkpoints/checkpoints.js +1 -1
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
- package/dist/services/claims/claims.js +1 -1
- package/dist/services/claims/claims.schemas.d.ts +2 -2
- package/dist/services/claims/claims.schemas.js +1 -1
- package/dist/services/connected-apps/connected-apps.d.ts +4 -4
- package/dist/services/connected-apps/connected-apps.d.ts.map +1 -1
- package/dist/services/connected-apps/connected-apps.js +14 -14
- package/dist/services/connected-apps/connected-apps.js.map +1 -1
- package/dist/services/connected-apps/connected-apps.schemas.d.ts +7 -7
- package/dist/services/connected-apps/connected-apps.schemas.d.ts.map +1 -1
- package/dist/services/connected-apps/connected-apps.schemas.js +10 -10
- package/dist/services/connected-apps/connected-apps.schemas.js.map +1 -1
- package/dist/services/connected-apps/connected-apps.types.d.ts +2 -2
- package/dist/services/deposit/deposit.js +1 -1
- package/dist/services/dust-conversion/dust-conversion.js +1 -1
- package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +8 -8
- package/dist/services/dust-conversion/dust-conversion.schemas.js +1 -1
- package/dist/services/fees/fees.js +1 -1
- package/dist/services/guard-signer/guard-signer.js +1 -1
- package/dist/services/heatmap/heatmap.js +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/internal-transfers/internal-transfers.js +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +6 -6
- package/dist/services/lifecycle/lifecycle.js +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +13 -13
- package/dist/services/lifecycle/lifecycle.schemas.js +2 -2
- package/dist/services/market-data/market-data.codecs.d.ts +9 -1
- package/dist/services/market-data/market-data.codecs.d.ts.map +1 -1
- package/dist/services/market-data/market-data.codecs.js +14 -1
- package/dist/services/market-data/market-data.codecs.js.map +1 -1
- package/dist/services/market-data/market-data.d.ts +9 -1
- package/dist/services/market-data/market-data.d.ts.map +1 -1
- package/dist/services/market-data/market-data.js +15 -2
- package/dist/services/market-data/market-data.js.map +1 -1
- package/dist/services/market-data/market-data.schemas.d.ts +40 -2
- package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
- package/dist/services/market-data/market-data.schemas.js +43 -8
- package/dist/services/market-data/market-data.schemas.js.map +1 -1
- package/dist/services/market-data/market-data.types.d.ts +3 -3
- package/dist/services/market-overview/market-overview.js +1 -1
- package/dist/services/market-overview/market-overview.schemas.js +1 -1
- package/dist/services/notifications/notifications.js +1 -1
- package/dist/services/notifications/notifications.schemas.d.ts +4 -4
- package/dist/services/orderbook/orderbook.js +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +9 -9
- package/dist/services/orders/order-errors.schemas.js +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +97 -97
- package/dist/services/orders/orders-batch.schemas.js +1 -1
- package/dist/services/orders/orders-input.schemas.d.ts +16 -16
- package/dist/services/orders/orders-input.schemas.js +1 -1
- package/dist/services/orders/orders-modify.schemas.js +1 -1
- package/dist/services/orders/orders-output.schemas.d.ts +14 -14
- package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-output.schemas.js +1 -1
- package/dist/services/orders/orders-output.schemas.js.map +1 -1
- package/dist/services/orders/orders-risk.schemas.js +2 -2
- package/dist/services/orders/orders.d.ts +5 -0
- package/dist/services/orders/orders.d.ts.map +1 -1
- package/dist/services/orders/orders.js +7 -2
- package/dist/services/orders/orders.js.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
- package/dist/services/policies/shared.codecs.js +12 -3
- package/dist/services/policies/shared.codecs.js.map +1 -1
- package/dist/services/policies/shared.d.ts +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
- package/dist/services/price-alerts/price-alerts.js +1 -1
- package/dist/services/rate-limits/rate-limits.js +1 -1
- package/dist/services/rewards/rewards.js +1 -1
- package/dist/services/rewards/rewards.schemas.d.ts +4 -4
- package/dist/services/social-verification/social-verification.js +1 -1
- package/dist/services/social-verification/social-verification.schemas.js +1 -1
- package/dist/services/statement-exports/statement-exports.js +1 -1
- package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
- package/dist/services/strategies/service.d.ts +8 -0
- package/dist/services/strategies/service.d.ts.map +1 -0
- package/dist/services/strategies/service.js +9 -0
- package/dist/services/strategies/service.js.map +1 -0
- package/dist/services/strategies/strategies.codecs.d.ts +15 -0
- package/dist/services/strategies/strategies.codecs.d.ts.map +1 -0
- package/dist/services/strategies/strategies.codecs.js +50 -0
- package/dist/services/strategies/strategies.codecs.js.map +1 -0
- package/dist/services/strategies/strategies.d.ts +75 -0
- package/dist/services/strategies/strategies.d.ts.map +1 -0
- package/dist/services/strategies/strategies.js +135 -0
- package/dist/services/strategies/strategies.js.map +1 -0
- package/dist/services/strategies/strategies.schemas.d.ts +568 -0
- package/dist/services/strategies/strategies.schemas.d.ts.map +1 -0
- package/dist/services/strategies/strategies.schemas.js +408 -0
- package/dist/services/strategies/strategies.schemas.js.map +1 -0
- package/dist/services/strategies/strategies.types.d.ts +3 -0
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +19 -19
- package/dist/services/swap/service.d.ts +8 -0
- package/dist/services/swap/service.d.ts.map +1 -0
- package/dist/services/swap/service.js +9 -0
- package/dist/services/swap/service.js.map +1 -0
- package/dist/services/swap/swap.codecs.d.ts +19 -0
- package/dist/services/swap/swap.codecs.d.ts.map +1 -0
- package/dist/services/swap/swap.codecs.js +39 -0
- package/dist/services/swap/swap.codecs.js.map +1 -0
- package/dist/services/swap/swap.d.ts +51 -0
- package/dist/services/swap/swap.d.ts.map +1 -0
- package/dist/services/swap/swap.js +71 -0
- package/dist/services/swap/swap.js.map +1 -0
- package/dist/services/swap/swap.schemas.d.ts +520 -0
- package/dist/services/swap/swap.schemas.d.ts.map +1 -0
- package/dist/services/swap/swap.schemas.js +213 -0
- package/dist/services/swap/swap.schemas.js.map +1 -0
- package/dist/services/swap/swap.types.d.ts +3 -0
- package/dist/services/system/system.js +1 -1
- package/dist/services/trades/trades.js +1 -1
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.d.ts +29 -2
- package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +75 -12
- package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +85 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +57 -2
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +3 -3
- package/dist/services/trading-withdraws/wallet-message.js +30 -2
- package/dist/services/trading-withdraws/wallet-message.js.map +1 -1
- package/dist/services/triggers/trigger-child-order.schemas.js +2 -2
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/trigger-input.schemas.js +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +53 -53
- package/dist/services/triggers/triggers.js +1 -1
- package/dist/services/vip/vip.js +1 -1
- package/dist/services/vip/vip.schemas.d.ts +3 -3
- package/dist/services/vip/vip.schemas.js +1 -1
- package/dist/services/zipper/zipper.js +1 -1
- package/dist/services/zipper/zipper.schemas.js +1 -1
- package/dist/shared/connect-error-mapping.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.js +6 -0
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/decimal-surface.d.ts.map +1 -1
- package/dist/shared/decimal-surface.js +11 -1
- package/dist/shared/decimal-surface.js.map +1 -1
- package/dist/shared/error-detail.d.ts +37 -2
- package/dist/shared/error-detail.d.ts.map +1 -1
- package/dist/shared/error-detail.js +2 -0
- package/dist/shared/error-detail.js.map +1 -1
- package/dist/shared/error-details/alerts.js +1 -1
- package/dist/shared/error-details/assistant.js +1 -1
- package/dist/shared/error-details/auth.js +1 -1
- package/dist/shared/error-details/claims.js +1 -1
- package/dist/shared/error-details/internal-transfer.js +1 -1
- package/dist/shared/error-details/ledger.js +1 -1
- package/dist/shared/error-details/market-overview.js +1 -1
- package/dist/shared/error-details/notifications.js +1 -1
- package/dist/shared/error-details/orders.js +1 -1
- package/dist/shared/error-details/profile.js +1 -1
- package/dist/shared/error-details/rate-limit.js +1 -1
- package/dist/shared/error-details/strategies.js +36 -0
- package/dist/shared/error-details/strategies.js.map +1 -0
- package/dist/shared/error-details/swap.js +22 -0
- package/dist/shared/error-details/swap.js.map +1 -0
- package/dist/shared/error-details/withdraw.js +1 -1
- package/dist/shared/rate-limit.schemas.d.ts +1 -1
- package/dist/shared/rate-limit.schemas.js +1 -1
- package/dist/wired-services.d.ts.map +1 -1
- package/dist/wired-services.js +23 -19
- package/dist/wired-services.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { codeName, decodeDetail } from "../error-detail.js";
|
|
2
1
|
import { ErrorCode, ErrorDetailSchema } from "../../gen/ledger/read/v1/ledger_read_pb.js";
|
|
2
|
+
import { codeName, decodeDetail } from "../error-detail.js";
|
|
3
3
|
//#region src/shared/error-details/ledger.ts
|
|
4
4
|
function decode(raw) {
|
|
5
5
|
const ledger = decodeDetail(raw, ErrorDetailSchema);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { codeName, decodeDetail } from "../error-detail.js";
|
|
2
1
|
import { ErrorCode, ErrorDetailSchema } from "../../gen/marketoverview/v1/marketoverview_pb.js";
|
|
2
|
+
import { codeName, decodeDetail } from "../error-detail.js";
|
|
3
3
|
//#region src/shared/error-details/market-overview.ts
|
|
4
4
|
function decode(raw) {
|
|
5
5
|
const marketOverview = decodeDetail(raw, ErrorDetailSchema);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { codeName, decodeDetail } from "../error-detail.js";
|
|
2
1
|
import { ErrorCode, ErrorDetailSchema } from "../../gen/notifications/v1/notifications_pb.js";
|
|
2
|
+
import { codeName, decodeDetail } from "../error-detail.js";
|
|
3
3
|
//#region src/shared/error-details/notifications.ts
|
|
4
4
|
function decode(raw) {
|
|
5
5
|
const notification = decodeDetail(raw, ErrorDetailSchema);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { decodeDetail } from "../error-detail.js";
|
|
2
1
|
import { ErrorDetailSchema } from "../../gen/orders/v1/orders_pb.js";
|
|
2
|
+
import { decodeDetail } from "../error-detail.js";
|
|
3
3
|
import { OrderErrorDetailSchema } from "../../services/orders/order-errors.schemas.js";
|
|
4
4
|
import * as v from "valibot";
|
|
5
5
|
//#region src/shared/error-details/orders.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { codeName, decodeDetail } from "../error-detail.js";
|
|
2
1
|
import { ProfileErrorCode, ProfileErrorDetailSchema } from "../../gen/auth/v1/profile_pb.js";
|
|
2
|
+
import { codeName, decodeDetail } from "../error-detail.js";
|
|
3
3
|
//#region src/shared/error-details/profile.ts
|
|
4
4
|
function decode(raw) {
|
|
5
5
|
const profile = decodeDetail(raw, ProfileErrorDetailSchema);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { decodeDetail } from "../error-detail.js";
|
|
2
1
|
import { RateLimitDetailSchema } from "../../gen/polyester/ratelimit/v1/types_pb.js";
|
|
2
|
+
import { decodeDetail } from "../error-detail.js";
|
|
3
3
|
import { RateLimitDetailSchema as RateLimitDetailSchema$1 } from "../rate-limit.schemas.js";
|
|
4
4
|
import * as v from "valibot";
|
|
5
5
|
//#region src/shared/error-details/rate-limit.ts
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ErrorCode, ErrorDetailSchema } from "../../gen/strategies/v1/strategies_pb.js";
|
|
2
|
+
import { codeName, decodeDetail } from "../error-detail.js";
|
|
3
|
+
import { tsObjToMs } from "../../utils/time.js";
|
|
4
|
+
//#region src/shared/error-details/strategies.ts
|
|
5
|
+
function decode(raw) {
|
|
6
|
+
const strategies = decodeDetail(raw, ErrorDetailSchema);
|
|
7
|
+
const code = strategies && codeName(ErrorCode, strategies.code);
|
|
8
|
+
if (!code) return void 0;
|
|
9
|
+
const detail = {
|
|
10
|
+
service: "strategies",
|
|
11
|
+
code
|
|
12
|
+
};
|
|
13
|
+
if (strategies.fieldPath) detail.fieldPath = strategies.fieldPath;
|
|
14
|
+
const retryAfter = tsObjToMs(strategies.retryAfter);
|
|
15
|
+
if (retryAfter !== void 0) detail.retryAfter = retryAfter;
|
|
16
|
+
if (strategies.botCap) {
|
|
17
|
+
const { vipTier, botCap, bots, nextVipTier, nextBotCap } = strategies.botCap;
|
|
18
|
+
detail.botCap = {
|
|
19
|
+
vipTier,
|
|
20
|
+
botCap,
|
|
21
|
+
bots,
|
|
22
|
+
nextVipTier,
|
|
23
|
+
nextBotCap
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
if (strategies.markets.length > 0) detail.markets = strategies.markets;
|
|
27
|
+
if (strategies.shortfall.length > 0) detail.shortfall = strategies.shortfall.map(({ asset, amount }) => ({
|
|
28
|
+
asset,
|
|
29
|
+
amount
|
|
30
|
+
}));
|
|
31
|
+
return detail;
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { decode };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=strategies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strategies.js","names":[],"sources":["../../../src/shared/error-details/strategies.ts"],"sourcesContent":["import { ErrorCode, ErrorDetailSchema } from \"../../gen/strategies/v1/strategies_pb.js\";\nimport { tsObjToMs } from \"../../utils/time.js\";\nimport {\n codeName,\n decodeDetail,\n type ConnectErrorDetail,\n type PolyesterErrorDetail,\n} from \"../error-detail.js\";\n\nexport function decode(raw: ConnectErrorDetail): PolyesterErrorDetail | undefined {\n const strategies = decodeDetail(raw, ErrorDetailSchema);\n const code = strategies && codeName(ErrorCode, strategies.code);\n if (!code) return undefined;\n const detail: PolyesterErrorDetail = { service: \"strategies\", code };\n if (strategies.fieldPath) detail.fieldPath = strategies.fieldPath;\n const retryAfter = tsObjToMs(strategies.retryAfter);\n if (retryAfter !== undefined) detail.retryAfter = retryAfter;\n if (strategies.botCap) {\n const { vipTier, botCap, bots, nextVipTier, nextBotCap } = strategies.botCap;\n detail.botCap = { vipTier, botCap, bots, nextVipTier, nextBotCap };\n }\n if (strategies.markets.length > 0) detail.markets = strategies.markets;\n if (strategies.shortfall.length > 0) {\n detail.shortfall = strategies.shortfall.map(({ asset, amount }) => ({ asset, amount }));\n }\n return detail;\n}\n"],"mappings":";;;;AASA,SAAgB,OAAO,KAA2D;CAC9E,MAAM,aAAa,aAAa,KAAK,iBAAiB;CACtD,MAAM,OAAO,cAAc,SAAS,WAAW,WAAW,IAAI;CAC9D,IAAI,CAAC,MAAM,OAAO,KAAA;CAClB,MAAM,SAA+B;EAAE,SAAS;EAAc;CAAK;CACnE,IAAI,WAAW,WAAW,OAAO,YAAY,WAAW;CACxD,MAAM,aAAa,UAAU,WAAW,UAAU;CAClD,IAAI,eAAe,KAAA,GAAW,OAAO,aAAa;CAClD,IAAI,WAAW,QAAQ;EACnB,MAAM,EAAE,SAAS,QAAQ,MAAM,aAAa,eAAe,WAAW;EACtE,OAAO,SAAS;GAAE;GAAS;GAAQ;GAAM;GAAa;EAAW;CACrE;CACA,IAAI,WAAW,QAAQ,SAAS,GAAG,OAAO,UAAU,WAAW;CAC/D,IAAI,WAAW,UAAU,SAAS,GAC9B,OAAO,YAAY,WAAW,UAAU,KAAK,EAAE,OAAO,cAAc;EAAE;EAAO;CAAO,EAAE;CAE1F,OAAO;AACX"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ErrorCode, ErrorDetailSchema } from "../../gen/swap/v1/swap_pb.js";
|
|
2
|
+
import { codeName, decodeDetail } from "../error-detail.js";
|
|
3
|
+
import { formatId } from "../../utils/base58-id.js";
|
|
4
|
+
import { scaledToDecimal } from "../../catalogs/decimal.js";
|
|
5
|
+
import { fromU128 } from "../../utils/u128.js";
|
|
6
|
+
//#region src/shared/error-details/swap.ts
|
|
7
|
+
function decode(raw) {
|
|
8
|
+
const swap = decodeDetail(raw, ErrorDetailSchema);
|
|
9
|
+
const code = swap && codeName(ErrorCode, swap.code);
|
|
10
|
+
if (!code) return void 0;
|
|
11
|
+
return {
|
|
12
|
+
service: "swap",
|
|
13
|
+
code,
|
|
14
|
+
...swap.swapId ? { swapId: formatId(swap.swapId) } : {},
|
|
15
|
+
...swap.minAmountE18 ? { minAmount: scaledToDecimal(fromU128(swap.minAmountE18), 18) } : {},
|
|
16
|
+
...swap.maxAmountE18 ? { maxAmount: scaledToDecimal(fromU128(swap.maxAmountE18), 18) } : {}
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { decode };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=swap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swap.js","names":[],"sources":["../../../src/shared/error-details/swap.ts"],"sourcesContent":["import { scaledToDecimal } from \"../../catalogs/decimal.js\";\nimport { ErrorCode, ErrorDetailSchema } from \"../../gen/swap/v1/swap_pb.js\";\nimport { formatId } from \"../../utils/base58-id.js\";\nimport { fromU128 } from \"../../utils/u128.js\";\nimport {\n codeName,\n decodeDetail,\n type ConnectErrorDetail,\n type PolyesterErrorDetail,\n} from \"../error-detail.js\";\n\nexport function decode(raw: ConnectErrorDetail): PolyesterErrorDetail | undefined {\n const swap = decodeDetail(raw, ErrorDetailSchema);\n const code = swap && codeName(ErrorCode, swap.code);\n if (!code) return undefined;\n return {\n service: \"swap\",\n code,\n ...(swap.swapId ? { swapId: formatId(swap.swapId) } : {}),\n ...(swap.minAmountE18\n ? { minAmount: scaledToDecimal(fromU128(swap.minAmountE18), 18) }\n : {}),\n ...(swap.maxAmountE18\n ? { maxAmount: scaledToDecimal(fromU128(swap.maxAmountE18), 18) }\n : {}),\n };\n}\n"],"mappings":";;;;;;AAWA,SAAgB,OAAO,KAA2D;CAC9E,MAAM,OAAO,aAAa,KAAK,iBAAiB;CAChD,MAAM,OAAO,QAAQ,SAAS,WAAW,KAAK,IAAI;CAClD,IAAI,CAAC,MAAM,OAAO,KAAA;CAClB,OAAO;EACH,SAAS;EACT;EACA,GAAI,KAAK,SAAS,EAAE,QAAQ,SAAS,KAAK,MAAM,EAAE,IAAI,CAAC;EACvD,GAAI,KAAK,eACH,EAAE,WAAW,gBAAgB,SAAS,KAAK,YAAY,GAAG,EAAE,EAAE,IAC9D,CAAC;EACP,GAAI,KAAK,eACH,EAAE,WAAW,gBAAgB,SAAS,KAAK,YAAY,GAAG,EAAE,EAAE,IAC9D,CAAC;CACX;AACJ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { ErrorCode, ErrorDetailSchema } from "../../gen/chain/withdraw/v1/withdraw_pb.js";
|
|
1
2
|
import { codeName, decodeDetail } from "../error-detail.js";
|
|
2
3
|
import { tsObjToMs } from "../../utils/time.js";
|
|
3
4
|
import { fromU128 } from "../../utils/u128.js";
|
|
4
5
|
import { scaledToDecimalOutput } from "../decimal-surface.js";
|
|
5
|
-
import { ErrorCode, ErrorDetailSchema } from "../../gen/chain/withdraw/v1/withdraw_pb.js";
|
|
6
6
|
//#region src/shared/error-details/withdraw.ts
|
|
7
7
|
function decode(raw) {
|
|
8
8
|
const withdraw = decodeDetail(raw, ErrorDetailSchema);
|
|
@@ -21,7 +21,7 @@ declare const RateLimitDetailSchema: v.ObjectSchema<{
|
|
|
21
21
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
22
22
|
readonly operationId: v.StringSchema<undefined>;
|
|
23
23
|
readonly policyClass: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read">]>;
|
|
24
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
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":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"wired-services.d.ts","names":[],"sources":["../src/wired-services.ts"],"mappings":";;;;;;;;;;;cAyDa,oCAAoC"}
|
package/dist/wired-services.js
CHANGED
|
@@ -1,43 +1,45 @@
|
|
|
1
|
+
import { PriceAlertService } from "./gen/alerts/v1/price_alerts_pb.js";
|
|
2
|
+
import { DepositAddressService } from "./gen/chain/deposit/v1/deposit_pb.js";
|
|
3
|
+
import { LedgerReadService } from "./gen/ledger/read/v1/ledger_read_pb.js";
|
|
4
|
+
import { MarketDataService } from "./gen/marketdata/v1/marketdata_pb.js";
|
|
5
|
+
import { OrdersService } from "./gen/orders/v1/orders_pb.js";
|
|
6
|
+
import { OrdersReadService } from "./gen/orders/v1/orders_read_pb.js";
|
|
7
|
+
import { TriggersService } from "./gen/triggers/v1/triggers_pb.js";
|
|
8
|
+
import { AssistantService } from "./gen/ai/v1/assistant_pb.js";
|
|
1
9
|
import { ApiKeyService } from "./gen/auth/v1/api_keys_pb.js";
|
|
2
10
|
import { PolicyService } from "./gen/auth/v1/policies_pb.js";
|
|
3
|
-
import { LedgerReadService } from "./gen/ledger/read/v1/ledger_read_pb.js";
|
|
4
11
|
import { SubaccountRoleService, SubaccountService, SubaccountViewService } from "./gen/auth/v1/subaccounts_pb.js";
|
|
12
|
+
import { AccountActivityService } from "./gen/auth/v1/activity_pb.js";
|
|
5
13
|
import { AddressBookService } from "./gen/auth/v1/address_book_pb.js";
|
|
6
14
|
import { MFAService } from "./gen/auth/v1/mfa_pb.js";
|
|
7
15
|
import { AuthService } from "./gen/auth/v1/auth_pb.js";
|
|
16
|
+
import { ConnectedAppService } from "./gen/auth/v1/connected_apps_pb.js";
|
|
8
17
|
import { ProfileService } from "./gen/auth/v1/profile_pb.js";
|
|
9
|
-
import { AccountActivityService } from "./gen/auth/v1/activity_pb.js";
|
|
10
18
|
import { ResolveService } from "./gen/auth/v1/resolve_pb.js";
|
|
11
|
-
import {
|
|
12
|
-
import { DepositAddressService } from "./gen/chain/deposit/v1/deposit_pb.js";
|
|
13
|
-
import { MarketDataService } from "./gen/marketdata/v1/marketdata_pb.js";
|
|
14
|
-
import { OrdersService } from "./gen/orders/v1/orders_pb.js";
|
|
15
|
-
import { OrdersReadService } from "./gen/orders/v1/orders_read_pb.js";
|
|
16
|
-
import { TriggersService } from "./gen/triggers/v1/triggers_pb.js";
|
|
17
|
-
import { AssistantService } from "./gen/ai/v1/assistant_pb.js";
|
|
18
|
-
import { AutoWithdrawService } from "./gen/chain/withdraw/v1/auto_withdraw_pb.js";
|
|
19
|
+
import { SocialVerificationService } from "./gen/auth/v1/social_verification_pb.js";
|
|
19
20
|
import { ChainAnalyticsService } from "./gen/chain/analytics/v1/analytics_read_pb.js";
|
|
21
|
+
import { GuardSignerService } from "./gen/chain/guard/v1/guard_signer_pb.js";
|
|
22
|
+
import { LifecycleReadService } from "./gen/chain/lifecycle/v1/lifecycle_read_pb.js";
|
|
23
|
+
import { AutoWithdrawService } from "./gen/chain/withdraw/v1/auto_withdraw_pb.js";
|
|
24
|
+
import { WithdrawService } from "./gen/chain/withdraw/v1/withdraw_pb.js";
|
|
25
|
+
import { ZipperService } from "./gen/chain/zipper/v1/zipper_pb.js";
|
|
20
26
|
import { ChangelogService } from "./gen/changelog/v1/changelog_pb.js";
|
|
21
27
|
import { CheckpointService } from "./gen/checkpoints/v1/checkpoints_pb.js";
|
|
22
28
|
import { ClaimsService } from "./gen/claims/v1/claims_pb.js";
|
|
23
|
-
import { ConnectedAppService } from "./gen/auth/v1/connected_apps_pb.js";
|
|
24
29
|
import { FeeService } from "./gen/fees/v1/fees_pb.js";
|
|
25
|
-
import { VIPService } from "./gen/vip/v1/vip_pb.js";
|
|
26
|
-
import { GuardSignerService } from "./gen/chain/guard/v1/guard_signer_pb.js";
|
|
27
|
-
import { HeatmapService } from "./gen/marketdata/v1/heatmap_pb.js";
|
|
28
30
|
import { InternalTransferService } from "./gen/transfer/v1/internal_transfer_pb.js";
|
|
29
31
|
import { DustConversionService } from "./gen/transfer/v1/dust_conversion_pb.js";
|
|
30
|
-
import {
|
|
32
|
+
import { StatementExportService } from "./gen/ledger/read/v1/statement_export_pb.js";
|
|
33
|
+
import { HeatmapService } from "./gen/marketdata/v1/heatmap_pb.js";
|
|
31
34
|
import { MarketOverviewService } from "./gen/marketoverview/v1/marketoverview_pb.js";
|
|
32
35
|
import { NotificationService } from "./gen/notifications/v1/notifications_pb.js";
|
|
33
36
|
import { OrderbookService } from "./gen/orderbook/v1/orderbook_pb.js";
|
|
34
37
|
import { RateLimitService } from "./gen/ratelimit/v1/ratelimit_pb.js";
|
|
35
38
|
import { RewardCampaignService } from "./gen/rewards/v1/rewards_pb.js";
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
39
|
+
import { StrategiesService } from "./gen/strategies/v1/strategies_pb.js";
|
|
40
|
+
import { SwapService } from "./gen/swap/v1/swap_pb.js";
|
|
38
41
|
import { SystemService } from "./gen/system/v1/system_pb.js";
|
|
39
|
-
import {
|
|
40
|
-
import { ZipperService } from "./gen/chain/zipper/v1/zipper_pb.js";
|
|
42
|
+
import { VIPService } from "./gen/vip/v1/vip_pb.js";
|
|
41
43
|
//#region src/wired-services.ts
|
|
42
44
|
/**
|
|
43
45
|
* Every proto service descriptor the SDK's service layer wires a client for.
|
|
@@ -83,9 +85,11 @@ const WIRED_SERVICE_DESCRIPTORS = [
|
|
|
83
85
|
RewardCampaignService,
|
|
84
86
|
SocialVerificationService,
|
|
85
87
|
StatementExportService,
|
|
88
|
+
StrategiesService,
|
|
86
89
|
SubaccountRoleService,
|
|
87
90
|
SubaccountService,
|
|
88
91
|
SubaccountViewService,
|
|
92
|
+
SwapService,
|
|
89
93
|
SystemService,
|
|
90
94
|
TriggersService,
|
|
91
95
|
VIPService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wired-services.js","names":[],"sources":["../src/wired-services.ts"],"sourcesContent":["import type { DescService } from \"@bufbuild/protobuf\";\nimport { AssistantService } from \"./gen/ai/v1/assistant_pb.js\";\nimport { PriceAlertService } from \"./gen/alerts/v1/price_alerts_pb.js\";\nimport { AccountActivityService } from \"./gen/auth/v1/activity_pb.js\";\nimport { AddressBookService } from \"./gen/auth/v1/address_book_pb.js\";\nimport { ApiKeyService } from \"./gen/auth/v1/api_keys_pb.js\";\nimport { AuthService } from \"./gen/auth/v1/auth_pb.js\";\nimport { ConnectedAppService } from \"./gen/auth/v1/connected_apps_pb.js\";\nimport { MFAService } from \"./gen/auth/v1/mfa_pb.js\";\nimport { PolicyService } from \"./gen/auth/v1/policies_pb.js\";\nimport { ProfileService } from \"./gen/auth/v1/profile_pb.js\";\nimport { ResolveService } from \"./gen/auth/v1/resolve_pb.js\";\nimport { SocialVerificationService } from \"./gen/auth/v1/social_verification_pb.js\";\nimport {\n SubaccountRoleService,\n SubaccountService,\n SubaccountViewService,\n} from \"./gen/auth/v1/subaccounts_pb.js\";\nimport { ChainAnalyticsService } from \"./gen/chain/analytics/v1/analytics_read_pb.js\";\nimport { DepositAddressService } from \"./gen/chain/deposit/v1/deposit_pb.js\";\nimport { GuardSignerService } from \"./gen/chain/guard/v1/guard_signer_pb.js\";\nimport { LifecycleReadService } from \"./gen/chain/lifecycle/v1/lifecycle_read_pb.js\";\nimport { AutoWithdrawService } from \"./gen/chain/withdraw/v1/auto_withdraw_pb.js\";\nimport { WithdrawService } from \"./gen/chain/withdraw/v1/withdraw_pb.js\";\nimport { ZipperService } from \"./gen/chain/zipper/v1/zipper_pb.js\";\nimport { ChangelogService } from \"./gen/changelog/v1/changelog_pb.js\";\nimport { CheckpointService } from \"./gen/checkpoints/v1/checkpoints_pb.js\";\nimport { ClaimsService } from \"./gen/claims/v1/claims_pb.js\";\nimport { FeeService } from \"./gen/fees/v1/fees_pb.js\";\nimport { LedgerReadService } from \"./gen/ledger/read/v1/ledger_read_pb.js\";\nimport { DustConversionService } from \"./gen/transfer/v1/dust_conversion_pb.js\";\nimport { StatementExportService } from \"./gen/ledger/read/v1/statement_export_pb.js\";\nimport { HeatmapService } from \"./gen/marketdata/v1/heatmap_pb.js\";\nimport { MarketDataService } from \"./gen/marketdata/v1/marketdata_pb.js\";\nimport { MarketOverviewService } from \"./gen/marketoverview/v1/marketoverview_pb.js\";\nimport { NotificationService } from \"./gen/notifications/v1/notifications_pb.js\";\nimport { OrderbookService } from \"./gen/orderbook/v1/orderbook_pb.js\";\nimport { OrdersService } from \"./gen/orders/v1/orders_pb.js\";\nimport { OrdersReadService } from \"./gen/orders/v1/orders_read_pb.js\";\nimport { RateLimitService } from \"./gen/ratelimit/v1/ratelimit_pb.js\";\nimport { RewardCampaignService } from \"./gen/rewards/v1/rewards_pb.js\";\nimport { InternalTransferService } from \"./gen/transfer/v1/internal_transfer_pb.js\";\nimport { SystemService } from \"./gen/system/v1/system_pb.js\";\nimport { TriggersService } from \"./gen/triggers/v1/triggers_pb.js\";\nimport { VIPService } from \"./gen/vip/v1/vip_pb.js\";\n\n/**\n * Every proto service descriptor the SDK's service layer wires a client for.\n * This is the authoritative surface for transport-level mocks: an in-memory\n * transport that routes all of these can serve the whole SDK.\n *\n * Kept in sync mechanically — `wired-services.test.ts` scans every\n * `createClient(...)` call site under `src/services` and `src/realtime` and\n * fails when this list drifts from the code.\n */\nexport const WIRED_SERVICE_DESCRIPTORS: readonly DescService[] = [\n AccountActivityService,\n AddressBookService,\n ApiKeyService,\n AssistantService,\n AuthService,\n AutoWithdrawService,\n ChainAnalyticsService,\n ChangelogService,\n CheckpointService,\n ClaimsService,\n ConnectedAppService,\n DepositAddressService,\n DustConversionService,\n FeeService,\n GuardSignerService,\n HeatmapService,\n InternalTransferService,\n LedgerReadService,\n LifecycleReadService,\n MarketDataService,\n MarketOverviewService,\n MFAService,\n NotificationService,\n OrderbookService,\n OrdersReadService,\n OrdersService,\n PolicyService,\n PriceAlertService,\n ProfileService,\n RateLimitService,\n ResolveService,\n RewardCampaignService,\n SocialVerificationService,\n StatementExportService,\n SubaccountRoleService,\n SubaccountService,\n SubaccountViewService,\n SystemService,\n TriggersService,\n VIPService,\n WithdrawService,\n ZipperService,\n];\n"],"mappings":"
|
|
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-
|
|
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",
|