@polyester/sdk 0.36.0-devnet-20261116010019 → 0.36.0-devnet-20261116150503
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 +3 -1
- package/dist/browser-core.js +1 -1
- package/dist/gen/ai/v1/assistant_pb.d.ts +1 -1
- package/dist/gen/ai/v1/assistant_pb.js +1 -1
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts +1 -1
- package/dist/gen/auth/v1/address_book_pb.d.ts +1 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +2 -2
- package/dist/gen/auth/v1/auth_pb.js +1 -1
- package/dist/gen/auth/v1/auth_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 +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 +2 -2
- package/dist/gen/auth/v1/subaccounts_pb.js +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js.map +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 +4 -3
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js +3 -2
- 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 +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.js +21 -21
- package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +3 -2
- package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts.map +1 -1
- package/dist/gen/ledger/read/v1/ledger_read_pb.js +2 -1
- package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +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 -4
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.js +0 -3
- package/dist/gen/marketdata/v1/heatmap_pb.js.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts +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 +29 -80
- package/dist/gen/orderbook/v1/orderbook_pb.d.ts.map +1 -1
- package/dist/gen/orderbook/v1/orderbook_pb.js +3 -77
- package/dist/gen/orderbook/v1/orderbook_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +127 -72
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +37 -19
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +31 -13
- 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/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/swap/quickswap/v1/quickswap_broker_pb.d.ts +88 -61
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +15 -12
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +8 -4
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +46 -43
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +10 -10
- 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 +3 -2
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js +2 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.d.ts +66 -50
- package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
- 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.js +1 -1
- package/dist/realtime/snapshot-then-stream.js +1 -1
- package/dist/server-core.js +3 -3
- package/dist/services/accounts/accounts.js +1 -1
- package/dist/services/accounts/accounts.schemas.js +1 -1
- package/dist/services/address-book/address-book.js +1 -1
- package/dist/services/api-keys/api-keys.js +1 -1
- package/dist/services/api-keys/api-keys.schemas.js +1 -1
- package/dist/services/assistant/assistant-events.schemas.d.ts +28 -28
- package/dist/services/assistant/assistant.js +1 -1
- package/dist/services/assistant/assistant.schemas.d.ts +1 -1
- package/dist/services/assistant/assistant.schemas.js +1 -1
- package/dist/services/auth/account-signer-auth.js +2 -2
- package/dist/services/auth/auth.js +1 -1
- package/dist/services/auth/profile/profile.js +2 -2
- package/dist/services/auto-withdraw/auto-withdraw.js +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +19 -19
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js +1 -1
- package/dist/services/balances/balances.js +1 -1
- package/dist/services/candles/candles.js +2 -2
- package/dist/services/chain-analytics/chain-analytics.js +1 -1
- package/dist/services/changelog/changelog.js +1 -1
- package/dist/services/changelog/changelog.schemas.d.ts +38 -38
- package/dist/services/checkpoints/checkpoints.js +1 -1
- package/dist/services/claims/claims.js +1 -1
- package/dist/services/claims/claims.schemas.js +1 -1
- 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/guard-signer/guard-signer.schemas.js +1 -1
- package/dist/services/heatmap/heatmap.js +2 -2
- 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 +12 -12
- package/dist/services/lifecycle/lifecycle.js +3 -3
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +42 -42
- package/dist/services/lifecycle/lifecycle.schemas.js +2 -2
- package/dist/services/market-data/market-data.js +3 -3
- package/dist/services/market-overview/market-overview.js +2 -2
- package/dist/services/market-overview/market-overview.schemas.js +1 -1
- package/dist/services/notifications/notifications.js +1 -1
- package/dist/services/orderbook/orderbook.codecs.js +2 -42
- package/dist/services/orderbook/orderbook.codecs.js.map +1 -1
- package/dist/services/orderbook/orderbook.d.ts +3 -1
- package/dist/services/orderbook/orderbook.d.ts.map +1 -1
- package/dist/services/orderbook/orderbook.js +19 -12
- package/dist/services/orderbook/orderbook.js.map +1 -1
- package/dist/services/orderbook/orderbook.schemas.d.ts +12 -11
- package/dist/services/orderbook/orderbook.schemas.d.ts.map +1 -1
- package/dist/services/orderbook/orderbook.schemas.js +10 -12
- package/dist/services/orderbook/orderbook.schemas.js.map +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +2 -2
- package/dist/services/orders/order-errors.schemas.js +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +47 -47
- package/dist/services/orders/orders-batch.schemas.js +2 -2
- package/dist/services/orders/orders-input.schemas.d.ts +6 -6
- package/dist/services/orders/orders-input.schemas.js +2 -2
- package/dist/services/orders/orders-modify.schemas.js +2 -2
- package/dist/services/orders/orders-output.schemas.d.ts +14 -14
- package/dist/services/orders/orders-risk.schemas.js +3 -3
- package/dist/services/orders/orders.js +2 -2
- package/dist/services/policies/api-key-policies/api-key-policies.js +1 -1
- package/dist/services/policies/shared.codecs.js +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.js +2 -2
- package/dist/services/price-alerts/price-alerts.js +1 -1
- package/dist/services/price-alerts/price-alerts.schemas.d.ts +10 -10
- 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/subaccounts/subaccounts.js +3 -3
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +5 -5
- package/dist/services/system/system.js +1 -1
- package/dist/services/system/system.schemas.d.ts +13 -13
- package/dist/services/trades/trades.js +2 -2
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +1 -1
- package/dist/services/trading-withdraws/wallet-message.js +1 -1
- package/dist/services/transfers/transfers.js +2 -2
- package/dist/services/triggers/trigger-child-order.schemas.js +3 -3
- 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 +38 -38
- package/dist/services/triggers/triggers.js +2 -2
- package/dist/services/vip/vip.js +1 -1
- 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/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/withdraw.js +1 -1
- package/dist/shared/rate-limit.schemas.js +1 -1
- package/dist/utils/cookies.js +1 -1
- package/dist/wired-services.js +18 -18
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { TriggerEventBatchSchema, TriggerSchema, TriggersService as TriggersService$1 } from "../../gen/triggers/v1/triggers_pb.js";
|
|
2
1
|
import { parse } from "../../shared/validation.js";
|
|
3
2
|
import { removeUndefined } from "../../utils/remove-undefined.js";
|
|
4
3
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
5
4
|
import { deliverBatch } from "../../shared/subscription-errors.js";
|
|
6
5
|
import { resolveAccountScopedInput } from "../subaccount-resolver.js";
|
|
6
|
+
import { TriggerEventBatchSchema, TriggerSchema, TriggersService as TriggersService$1 } from "../../gen/triggers/v1/triggers_pb.js";
|
|
7
7
|
import { BatchCancelTriggersResultSchema, CancelOcoResultSchema, CancelTriggerResultSchema, CreateOcoResultSchema, CreateTriggerResultSchema, ModifyTriggerResultSchema, PauseTriggerResultSchema, ResumeTriggerResultSchema, createTriggerEventSchema, createTriggerSchema } from "./triggers-output.schemas.js";
|
|
8
8
|
import { connectReadyGatedProtoChannel } from "../../realtime/ready-gated-subscription.js";
|
|
9
9
|
import { createMutationRequestId } from "../../shared/request-id.js";
|
|
10
10
|
import { BatchCancelTriggersInputSchema, CancelOcoInputSchema, CancelTriggerInputSchema, GetTriggerInputSchema, ListTriggerEventsInputSchema, ListTriggersInputSchema, PauseTriggerInputSchema, ResumeTriggerInputSchema, createCreateOcoInputSchema, createCreateTriggerInputSchema, createModifyTriggerInputSchema } from "./trigger-input.schemas.js";
|
|
11
|
-
import * as v from "valibot";
|
|
12
11
|
import { createClient } from "@connectrpc/connect";
|
|
12
|
+
import * as v from "valibot";
|
|
13
13
|
//#region src/services/triggers/triggers.ts
|
|
14
14
|
/**
|
|
15
15
|
* Manages standalone order triggers and their realtime lifecycle/event streams.
|
package/dist/services/vip/vip.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VIPService } from "../../gen/vip/v1/vip_pb.js";
|
|
2
1
|
import { parse } from "../../shared/validation.js";
|
|
3
2
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
3
|
+
import { VIPService } from "../../gen/vip/v1/vip_pb.js";
|
|
4
4
|
import { VipStatusSchema, VipTierCatalogSchema } from "./vip.schemas.js";
|
|
5
5
|
import { createClient } from "@connectrpc/connect";
|
|
6
6
|
//#region src/services/vip/vip.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../gen/vip/v1/vip_pb.js";
|
|
2
1
|
import { BigIntStringSchema, OptionalTimestampMsSchema, TimestampMsSchema } from "../../shared/schemas.js";
|
|
3
2
|
import { enumLabelSchema } from "../../shared/proto-enum-codec.js";
|
|
3
|
+
import "../../gen/vip/v1/vip_pb.js";
|
|
4
4
|
import * as v from "valibot";
|
|
5
5
|
//#region src/services/vip/vip.schemas.ts
|
|
6
6
|
const DecimalStringSchema = v.pipe(v.string(), v.trim(), v.minLength(1));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ZippedAssetSupplyBatchSchema, ZipperService as ZipperService$1 } from "../../gen/chain/zipper/v1/zipper_pb.js";
|
|
2
1
|
import { ConfigurationError } from "../../shared/errors.js";
|
|
3
2
|
import { parse } from "../../shared/validation.js";
|
|
4
3
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
5
4
|
import { snapshotThenStream } from "../../realtime/snapshot-then-stream.js";
|
|
5
|
+
import { ZippedAssetSupplyBatchSchema, ZipperService as ZipperService$1 } from "../../gen/chain/zipper/v1/zipper_pb.js";
|
|
6
6
|
import { DepositWithdrawConfigSchema, createZippedAssetSupplyBatchSchema } from "./zipper.schemas.js";
|
|
7
7
|
import { create } from "@bufbuild/protobuf";
|
|
8
8
|
import { createClient } from "@connectrpc/connect";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../gen/chain/zipper/v1/zipper_pb.js";
|
|
2
1
|
import { enumLabelSchema } from "../../shared/proto-enum-codec.js";
|
|
3
2
|
import { scaledToDecimalOutput } from "../../shared/decimal-surface.js";
|
|
3
|
+
import "../../gen/chain/zipper/v1/zipper_pb.js";
|
|
4
4
|
import * as v from "valibot";
|
|
5
5
|
//#region src/services/zipper/zipper.schemas.ts
|
|
6
6
|
const ZipperMemoRequirementCodec = { protoToOutput: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ErrorCode, ErrorDetailSchema } from "../../gen/alerts/v1/price_alerts_pb.js";
|
|
2
1
|
import { codeName, decodeDetail } from "../error-detail.js";
|
|
2
|
+
import { ErrorCode, ErrorDetailSchema } from "../../gen/alerts/v1/price_alerts_pb.js";
|
|
3
3
|
//#region src/shared/error-details/alerts.ts
|
|
4
4
|
function decode(raw) {
|
|
5
5
|
const alert = decodeDetail(raw, ErrorDetailSchema);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ErrorCode, ErrorDetailSchema } from "../../gen/ai/v1/assistant_pb.js";
|
|
2
1
|
import { codeName, decodeDetail } from "../error-detail.js";
|
|
2
|
+
import { ErrorCode, ErrorDetailSchema } from "../../gen/ai/v1/assistant_pb.js";
|
|
3
3
|
//#region src/shared/error-details/assistant.ts
|
|
4
4
|
function decode(raw) {
|
|
5
5
|
const assistant = decodeDetail(raw, ErrorDetailSchema);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuthErrorCode, AuthErrorDetailSchema } from "../../gen/auth/v1/auth_pb.js";
|
|
2
1
|
import { codeName, decodeDetail } from "../error-detail.js";
|
|
2
|
+
import { AuthErrorCode, AuthErrorDetailSchema } from "../../gen/auth/v1/auth_pb.js";
|
|
3
3
|
import { tsObjToMs } from "../../utils/time.js";
|
|
4
4
|
//#region src/shared/error-details/auth.ts
|
|
5
5
|
function decode(raw) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ErrorCode, ErrorDetailSchema } from "../../gen/claims/v1/claims_pb.js";
|
|
2
1
|
import { codeName, decodeDetail } from "../error-detail.js";
|
|
2
|
+
import { ErrorCode, ErrorDetailSchema } from "../../gen/claims/v1/claims_pb.js";
|
|
3
3
|
//#region src/shared/error-details/claims.ts
|
|
4
4
|
function decode(raw) {
|
|
5
5
|
const claims = decodeDetail(raw, ErrorDetailSchema);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ErrorCode, ErrorDetailSchema } from "../../gen/transfer/v1/internal_transfer_pb.js";
|
|
2
1
|
import { codeName, decodeDetail } from "../error-detail.js";
|
|
2
|
+
import { ErrorCode, ErrorDetailSchema } from "../../gen/transfer/v1/internal_transfer_pb.js";
|
|
3
3
|
//#region src/shared/error-details/internal-transfer.ts
|
|
4
4
|
function decode(raw) {
|
|
5
5
|
const transfer = decodeDetail(raw, ErrorDetailSchema);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ErrorCode, ErrorDetailSchema } from "../../gen/ledger/read/v1/ledger_read_pb.js";
|
|
2
1
|
import { codeName, decodeDetail } from "../error-detail.js";
|
|
2
|
+
import { ErrorCode, ErrorDetailSchema } from "../../gen/ledger/read/v1/ledger_read_pb.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 { ErrorCode, ErrorDetailSchema } from "../../gen/marketoverview/v1/marketoverview_pb.js";
|
|
2
1
|
import { codeName, decodeDetail } from "../error-detail.js";
|
|
2
|
+
import { ErrorCode, ErrorDetailSchema } from "../../gen/marketoverview/v1/marketoverview_pb.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 { ErrorCode, ErrorDetailSchema } from "../../gen/notifications/v1/notifications_pb.js";
|
|
2
1
|
import { codeName, decodeDetail } from "../error-detail.js";
|
|
2
|
+
import { ErrorCode, ErrorDetailSchema } from "../../gen/notifications/v1/notifications_pb.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 { ErrorDetailSchema } from "../../gen/orders/v1/orders_pb.js";
|
|
2
1
|
import { decodeDetail } from "../error-detail.js";
|
|
2
|
+
import { ErrorDetailSchema } from "../../gen/orders/v1/orders_pb.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 { ProfileErrorCode, ProfileErrorDetailSchema } from "../../gen/auth/v1/profile_pb.js";
|
|
2
1
|
import { codeName, decodeDetail } from "../error-detail.js";
|
|
2
|
+
import { ProfileErrorCode, ProfileErrorDetailSchema } from "../../gen/auth/v1/profile_pb.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 { RateLimitDetailSchema } from "../../gen/polyester/ratelimit/v1/types_pb.js";
|
|
2
1
|
import { decodeDetail } from "../error-detail.js";
|
|
2
|
+
import { RateLimitDetailSchema } from "../../gen/polyester/ratelimit/v1/types_pb.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,8 +1,8 @@
|
|
|
1
|
-
import { ErrorCode, ErrorDetailSchema } from "../../gen/chain/withdraw/v1/withdraw_pb.js";
|
|
2
1
|
import { codeName, decodeDetail } from "../error-detail.js";
|
|
3
2
|
import { tsObjToMs } from "../../utils/time.js";
|
|
4
3
|
import { fromU128 } from "../../utils/u128.js";
|
|
5
4
|
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);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../gen/polyester/ratelimit/v1/types_pb.js";
|
|
2
1
|
import { OptionalBigIntStringSchema } from "./schemas.js";
|
|
3
2
|
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({
|
package/dist/utils/cookies.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { isLocalNetworkHost } from "./is-dev.js";
|
|
1
2
|
import { parse } from "./cookie-es/cookie/parse.js";
|
|
2
3
|
import { serialize } from "./cookie-es/cookie/serialize.js";
|
|
3
|
-
import { isLocalNetworkHost } from "./is-dev.js";
|
|
4
4
|
//#region src/utils/cookies.ts
|
|
5
5
|
/**
|
|
6
6
|
* Whether auth cookies should carry the `Secure` attribute.
|
package/dist/wired-services.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
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 { ResolveService } from "./gen/auth/v1/resolve_pb.js";
|
|
5
|
+
import { ApiKeyService } from "./gen/auth/v1/api_keys_pb.js";
|
|
6
|
+
import { PolicyService } from "./gen/auth/v1/policies_pb.js";
|
|
7
|
+
import { LedgerReadService } from "./gen/ledger/read/v1/ledger_read_pb.js";
|
|
8
|
+
import { SubaccountRoleService, SubaccountService, SubaccountViewService } from "./gen/auth/v1/subaccounts_pb.js";
|
|
9
|
+
import { AddressBookService } from "./gen/auth/v1/address_book_pb.js";
|
|
1
10
|
import { PriceAlertService } from "./gen/alerts/v1/price_alerts_pb.js";
|
|
2
11
|
import { DepositAddressService } from "./gen/chain/deposit/v1/deposit_pb.js";
|
|
3
|
-
import { LedgerReadService } from "./gen/ledger/read/v1/ledger_read_pb.js";
|
|
4
12
|
import { MarketDataService } from "./gen/marketdata/v1/marketdata_pb.js";
|
|
5
13
|
import { OrdersService } from "./gen/orders/v1/orders_pb.js";
|
|
6
14
|
import { OrdersReadService } from "./gen/orders/v1/orders_read_pb.js";
|
|
7
15
|
import { TriggersService } from "./gen/triggers/v1/triggers_pb.js";
|
|
8
16
|
import { AssistantService } from "./gen/ai/v1/assistant_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 { AddressBookService } from "./gen/auth/v1/address_book_pb.js";
|
|
13
|
-
import { MFAService } from "./gen/auth/v1/mfa_pb.js";
|
|
14
|
-
import { AuthService } from "./gen/auth/v1/auth_pb.js";
|
|
15
|
-
import { ProfileService } from "./gen/auth/v1/profile_pb.js";
|
|
16
|
-
import { ResolveService } from "./gen/auth/v1/resolve_pb.js";
|
|
17
|
-
import { SocialVerificationService } from "./gen/auth/v1/social_verification_pb.js";
|
|
18
|
-
import { ChainAnalyticsService } from "./gen/chain/analytics/v1/analytics_read_pb.js";
|
|
19
|
-
import { GuardSignerService } from "./gen/chain/guard/v1/guard_signer_pb.js";
|
|
20
|
-
import { LifecycleReadService } from "./gen/chain/lifecycle/v1/lifecycle_read_pb.js";
|
|
21
17
|
import { AutoWithdrawService } from "./gen/chain/withdraw/v1/auto_withdraw_pb.js";
|
|
22
|
-
import {
|
|
23
|
-
import { ZipperService } from "./gen/chain/zipper/v1/zipper_pb.js";
|
|
18
|
+
import { ChainAnalyticsService } from "./gen/chain/analytics/v1/analytics_read_pb.js";
|
|
24
19
|
import { ChangelogService } from "./gen/changelog/v1/changelog_pb.js";
|
|
25
20
|
import { CheckpointService } from "./gen/checkpoints/v1/checkpoints_pb.js";
|
|
26
21
|
import { ClaimsService } from "./gen/claims/v1/claims_pb.js";
|
|
27
22
|
import { FeeService } from "./gen/fees/v1/fees_pb.js";
|
|
23
|
+
import { VIPService } from "./gen/vip/v1/vip_pb.js";
|
|
24
|
+
import { GuardSignerService } from "./gen/chain/guard/v1/guard_signer_pb.js";
|
|
25
|
+
import { HeatmapService } from "./gen/marketdata/v1/heatmap_pb.js";
|
|
28
26
|
import { InternalTransferService } from "./gen/transfer/v1/internal_transfer_pb.js";
|
|
29
27
|
import { DustConversionService } from "./gen/transfer/v1/dust_conversion_pb.js";
|
|
30
|
-
import {
|
|
31
|
-
import { HeatmapService } from "./gen/marketdata/v1/heatmap_pb.js";
|
|
28
|
+
import { LifecycleReadService } from "./gen/chain/lifecycle/v1/lifecycle_read_pb.js";
|
|
32
29
|
import { MarketOverviewService } from "./gen/marketoverview/v1/marketoverview_pb.js";
|
|
33
30
|
import { NotificationService } from "./gen/notifications/v1/notifications_pb.js";
|
|
34
31
|
import { OrderbookService } from "./gen/orderbook/v1/orderbook_pb.js";
|
|
35
32
|
import { RateLimitService } from "./gen/ratelimit/v1/ratelimit_pb.js";
|
|
36
33
|
import { RewardCampaignService } from "./gen/rewards/v1/rewards_pb.js";
|
|
34
|
+
import { SocialVerificationService } from "./gen/auth/v1/social_verification_pb.js";
|
|
35
|
+
import { StatementExportService } from "./gen/ledger/read/v1/statement_export_pb.js";
|
|
37
36
|
import { SystemService } from "./gen/system/v1/system_pb.js";
|
|
38
|
-
import {
|
|
37
|
+
import { WithdrawService } from "./gen/chain/withdraw/v1/withdraw_pb.js";
|
|
38
|
+
import { ZipperService } from "./gen/chain/zipper/v1/zipper_pb.js";
|
|
39
39
|
//#region src/wired-services.ts
|
|
40
40
|
/**
|
|
41
41
|
* Every proto service descriptor the SDK's service layer wires a client for.
|
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-20261116150503",
|
|
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",
|