@polyester/sdk 0.36.0-devnet-20261119050221 → 0.36.0-devnet-20261119181946
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 +11 -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/activity_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 +1 -1
- package/dist/gen/auth/v1/connected_apps_pb.d.ts +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 +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 +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 +24 -24
- 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 +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 +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +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/swap/quickswap/v1/quickswap_broker_pb.d.ts +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +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 +1 -1
- package/dist/gen/triggers/v1/triggers_pb.d.ts +1 -1
- package/dist/gen/vip/v1/vip_pb.d.ts +1 -1
- 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.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 +26 -55
- package/dist/services/assistant/assistant-events.schemas.d.ts.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/account-signer-auth.d.ts.map +1 -1
- package/dist/services/auth/account-signer-auth.js +10 -2
- package/dist/services/auth/account-signer-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 +22 -22
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js +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/changelog/changelog.schemas.d.ts +22 -22
- 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/connected-apps/connected-apps.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 +6 -6
- 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 +1 -1
- package/dist/services/lifecycle/lifecycle.js +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +53 -53
- package/dist/services/lifecycle/lifecycle.schemas.js +2 -2
- package/dist/services/market-data/market-data.js +1 -1
- package/dist/services/market-overview/market-overview.js +9 -2
- package/dist/services/market-overview/market-overview.js.map +1 -1
- package/dist/services/market-overview/market-overview.schemas.js +1 -1
- package/dist/services/notifications/notifications.js +1 -1
- package/dist/services/orderbook/orderbook.d.ts +1 -1
- package/dist/services/orderbook/orderbook.js +9 -3
- package/dist/services/orderbook/orderbook.js.map +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +3 -3
- package/dist/services/orders/order-errors.schemas.js +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +52 -52
- package/dist/services/orders/orders-batch.schemas.js +1 -1
- package/dist/services/orders/orders-identifiers.schemas.js +2 -2
- package/dist/services/orders/orders-identifiers.schemas.js.map +1 -1
- package/dist/services/orders/orders-input.schemas.d.ts +14 -14
- package/dist/services/orders/orders-input.schemas.js +1 -1
- package/dist/services/orders/orders-modify.schemas.d.ts +3 -3
- package/dist/services/orders/orders-modify.schemas.js +1 -1
- package/dist/services/orders/orders-output.schemas.d.ts +12 -12
- package/dist/services/orders/orders-risk.schemas.js +2 -2
- package/dist/services/orders/orders.js +2 -2
- package/dist/services/price-alerts/price-alerts.js +1 -1
- package/dist/services/price-alerts/price-alerts.schemas.d.ts +21 -21
- 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.d.ts +2 -2
- 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.schemas.d.ts +17 -17
- package/dist/services/system/system.js +1 -1
- package/dist/services/system/system.schemas.d.ts +13 -13
- 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.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/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 +27 -27
- 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.js +17 -1
- package/dist/shared/connect-error-mapping.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/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.js +19 -19
- package/package.json +1 -1
|
@@ -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);
|
|
@@ -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" | "subaccount" | "client_ip" | "api_key" | "account" | "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";
|
|
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/wired-services.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
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";
|
|
9
1
|
import { ApiKeyService } from "./gen/auth/v1/api_keys_pb.js";
|
|
10
2
|
import { PolicyService } from "./gen/auth/v1/policies_pb.js";
|
|
3
|
+
import { LedgerReadService } from "./gen/ledger/read/v1/ledger_read_pb.js";
|
|
11
4
|
import { SubaccountRoleService, SubaccountService, SubaccountViewService } from "./gen/auth/v1/subaccounts_pb.js";
|
|
12
|
-
import { AccountActivityService } from "./gen/auth/v1/activity_pb.js";
|
|
13
5
|
import { AddressBookService } from "./gen/auth/v1/address_book_pb.js";
|
|
14
6
|
import { MFAService } from "./gen/auth/v1/mfa_pb.js";
|
|
15
7
|
import { AuthService } from "./gen/auth/v1/auth_pb.js";
|
|
16
|
-
import { ConnectedAppService } from "./gen/auth/v1/connected_apps_pb.js";
|
|
17
8
|
import { ProfileService } from "./gen/auth/v1/profile_pb.js";
|
|
9
|
+
import { AccountActivityService } from "./gen/auth/v1/activity_pb.js";
|
|
18
10
|
import { ResolveService } from "./gen/auth/v1/resolve_pb.js";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
11
|
+
import { PriceAlertService } from "./gen/alerts/v1/price_alerts_pb.js";
|
|
12
|
+
import { DepositAddressService } from "./gen/chain/deposit/v1/deposit_pb.js";
|
|
13
|
+
import { MarketDataService } from "./gen/marketdata/v1/marketdata_pb.js";
|
|
14
|
+
import { OrdersService } from "./gen/orders/v1/orders_pb.js";
|
|
15
|
+
import { OrdersReadService } from "./gen/orders/v1/orders_read_pb.js";
|
|
16
|
+
import { TriggersService } from "./gen/triggers/v1/triggers_pb.js";
|
|
17
|
+
import { AssistantService } from "./gen/ai/v1/assistant_pb.js";
|
|
23
18
|
import { AutoWithdrawService } from "./gen/chain/withdraw/v1/auto_withdraw_pb.js";
|
|
24
|
-
import {
|
|
25
|
-
import { ZipperService } from "./gen/chain/zipper/v1/zipper_pb.js";
|
|
19
|
+
import { ChainAnalyticsService } from "./gen/chain/analytics/v1/analytics_read_pb.js";
|
|
26
20
|
import { ChangelogService } from "./gen/changelog/v1/changelog_pb.js";
|
|
27
21
|
import { CheckpointService } from "./gen/checkpoints/v1/checkpoints_pb.js";
|
|
28
22
|
import { ClaimsService } from "./gen/claims/v1/claims_pb.js";
|
|
23
|
+
import { ConnectedAppService } from "./gen/auth/v1/connected_apps_pb.js";
|
|
29
24
|
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";
|
|
30
28
|
import { InternalTransferService } from "./gen/transfer/v1/internal_transfer_pb.js";
|
|
31
29
|
import { DustConversionService } from "./gen/transfer/v1/dust_conversion_pb.js";
|
|
32
|
-
import {
|
|
33
|
-
import { HeatmapService } from "./gen/marketdata/v1/heatmap_pb.js";
|
|
30
|
+
import { LifecycleReadService } from "./gen/chain/lifecycle/v1/lifecycle_read_pb.js";
|
|
34
31
|
import { MarketOverviewService } from "./gen/marketoverview/v1/marketoverview_pb.js";
|
|
35
32
|
import { NotificationService } from "./gen/notifications/v1/notifications_pb.js";
|
|
36
33
|
import { OrderbookService } from "./gen/orderbook/v1/orderbook_pb.js";
|
|
37
34
|
import { RateLimitService } from "./gen/ratelimit/v1/ratelimit_pb.js";
|
|
38
35
|
import { RewardCampaignService } from "./gen/rewards/v1/rewards_pb.js";
|
|
36
|
+
import { SocialVerificationService } from "./gen/auth/v1/social_verification_pb.js";
|
|
37
|
+
import { StatementExportService } from "./gen/ledger/read/v1/statement_export_pb.js";
|
|
39
38
|
import { SystemService } from "./gen/system/v1/system_pb.js";
|
|
40
|
-
import {
|
|
39
|
+
import { WithdrawService } from "./gen/chain/withdraw/v1/withdraw_pb.js";
|
|
40
|
+
import { ZipperService } from "./gen/chain/zipper/v1/zipper_pb.js";
|
|
41
41
|
//#region src/wired-services.ts
|
|
42
42
|
/**
|
|
43
43
|
* 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-20261119181946",
|
|
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",
|