@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.
- package/CHANGELOG.md +3 -1
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -0
- package/dist/client.js.map +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/activity_pb.d.ts +1 -1
- package/dist/gen/auth/v1/address_book_pb.d.ts +1 -1
- package/dist/gen/auth/v1/address_book_pb.js +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/auth_pb.js +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.d.ts +1 -1
- package/dist/gen/index.js +27 -27
- 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/strategies/v1/strategies_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/index.d.ts +4 -1
- package/dist/services/account-activity/account-activity.js +1 -1
- package/dist/services/account-activity/account-activity.schemas.d.ts +6 -6
- 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/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/api-keys/api-keys.js +1 -1
- package/dist/services/api-keys/api-keys.schemas.d.ts +3 -3
- 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/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.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/balances/balances.js +1 -1
- package/dist/services/balances/balances.schemas.d.ts +3 -3
- 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 +38 -38
- package/dist/services/checkpoints/checkpoints.js +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.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/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 +66 -66
- 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 +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.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 +16 -16
- package/dist/services/orders/orders-risk.schemas.js +2 -2
- 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 +1 -1
- 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/strategies.js +1 -1
- package/dist/services/strategies/strategies.schemas.d.ts +1 -1
- package/dist/services/subaccounts/subaccounts.js +2 -2
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +16 -16
- 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/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/transfers/transfers.js +1 -1
- package/dist/services/transfers/transfers.schemas.d.ts +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 +1 -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 +16 -4
- package/dist/shared/error-detail.d.ts.map +1 -1
- package/dist/shared/error-detail.js +1 -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 +1 -1
- 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 -21
- package/dist/wired-services.js.map +1 -1
- 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" | "
|
|
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,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 {
|
|
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 {
|
|
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 {
|
|
38
|
-
import {
|
|
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 {
|
|
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":"
|
|
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",
|