@polyester/sdk 0.4.0 → 0.4.2
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 +16 -0
- package/dist/_virtual/_rolldown/runtime.js +1 -15
- package/dist/catalogs/snapshot-validation.js +63 -63
- package/dist/catalogs/snapshot-validation.js.map +1 -1
- package/dist/core-client.d.ts +9 -0
- package/dist/core-client.d.ts.map +1 -1
- package/dist/core-client.js +21 -0
- package/dist/core-client.js.map +1 -1
- package/dist/gen/fees/v1/fees_pb.d.ts +124 -0
- package/dist/gen/fees/v1/fees_pb.d.ts.map +1 -0
- package/dist/gen/fees/v1/fees_pb.js +39 -0
- package/dist/gen/fees/v1/fees_pb.js.map +1 -0
- package/dist/gen/index.d.ts +4 -1
- package/dist/gen/index.js +4 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +223 -0
- package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts.map +1 -0
- package/dist/gen/ratelimit/v1/ratelimit_pb.js +86 -0
- package/dist/gen/ratelimit/v1/ratelimit_pb.js.map +1 -0
- package/dist/gen/vip/v1/vip_pb.d.ts +277 -0
- package/dist/gen/vip/v1/vip_pb.d.ts.map +1 -0
- package/dist/gen/vip/v1/vip_pb.js +60 -0
- package/dist/gen/vip/v1/vip_pb.js.map +1 -0
- package/dist/index.d.ts +8 -1
- package/dist/services/accounts/accounts.js +1 -1
- package/dist/services/accounts/accounts.js.map +1 -1
- package/dist/services/accounts/accounts.schemas.d.ts +13 -13
- package/dist/services/accounts/accounts.schemas.d.ts.map +1 -1
- package/dist/services/accounts/accounts.schemas.js +11 -11
- package/dist/services/accounts/accounts.schemas.js.map +1 -1
- package/dist/services/address-book/address-book.js.map +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts +751 -751
- package/dist/services/address-book/address-book.schemas.d.ts.map +1 -1
- package/dist/services/address-book/address-book.schemas.js +160 -159
- package/dist/services/address-book/address-book.schemas.js.map +1 -1
- package/dist/services/api-keys/api-keys.d.ts +6 -6
- package/dist/services/api-keys/api-keys.d.ts.map +1 -1
- package/dist/services/api-keys/api-keys.js.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.d.ts +62 -62
- package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.js +34 -34
- package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
- package/dist/services/auth/auth.d.ts +39 -39
- package/dist/services/auth/auth.d.ts.map +1 -1
- package/dist/services/auth/auth.js +19 -18
- package/dist/services/auth/auth.js.map +1 -1
- package/dist/services/auth/profile/profile.d.ts +2 -2
- package/dist/services/auth/profile/profile.d.ts.map +1 -1
- package/dist/services/auth/profile/profile.js +3 -2
- package/dist/services/auth/profile/profile.js.map +1 -1
- package/dist/services/auth/profile/profile.schemas.d.ts +41 -41
- package/dist/services/auth/profile/profile.schemas.d.ts.map +1 -1
- package/dist/services/auth/profile/profile.schemas.js +27 -27
- package/dist/services/auth/profile/profile.schemas.js.map +1 -1
- package/dist/services/auth/session.schemas.js +17 -17
- package/dist/services/auth/session.schemas.js.map +1 -1
- package/dist/services/balances/balances.d.ts.map +1 -1
- package/dist/services/balances/balances.js +3 -2
- package/dist/services/balances/balances.js.map +1 -1
- package/dist/services/balances/balances.schemas.d.ts +95 -95
- package/dist/services/balances/balances.schemas.d.ts.map +1 -1
- package/dist/services/balances/balances.schemas.js +61 -61
- package/dist/services/balances/balances.schemas.js.map +1 -1
- package/dist/services/candles/candles.d.ts.map +1 -1
- package/dist/services/candles/candles.js +5 -4
- package/dist/services/candles/candles.js.map +1 -1
- package/dist/services/candles/candles.schemas.d.ts +64 -64
- package/dist/services/candles/candles.schemas.d.ts.map +1 -1
- package/dist/services/candles/candles.schemas.js +47 -47
- package/dist/services/candles/candles.schemas.js.map +1 -1
- package/dist/services/chain-analytics/chain-analytics.js.map +1 -1
- package/dist/services/chain-analytics/chain-analytics.schemas.d.ts +68 -68
- package/dist/services/chain-analytics/chain-analytics.schemas.d.ts.map +1 -1
- package/dist/services/chain-analytics/chain-analytics.schemas.js +29 -29
- package/dist/services/chain-analytics/chain-analytics.schemas.js.map +1 -1
- package/dist/services/deposit/deposit.js.map +1 -1
- package/dist/services/deposit/deposit.schemas.d.ts +17 -17
- package/dist/services/deposit/deposit.schemas.d.ts.map +1 -1
- package/dist/services/deposit/deposit.schemas.js +11 -11
- package/dist/services/deposit/deposit.schemas.js.map +1 -1
- package/dist/services/fees/fees.d.ts +19 -0
- package/dist/services/fees/fees.d.ts.map +1 -0
- package/dist/services/fees/fees.js +32 -0
- package/dist/services/fees/fees.js.map +1 -0
- package/dist/services/fees/fees.schemas.d.ts +28 -0
- package/dist/services/fees/fees.schemas.d.ts.map +1 -0
- package/dist/services/fees/fees.schemas.js +25 -0
- package/dist/services/fees/fees.schemas.js.map +1 -0
- package/dist/services/fees/fees.types.d.ts +2 -0
- package/dist/services/fees/index.d.ts +3 -0
- package/dist/services/guard-signer/guard-signer.js.map +1 -1
- package/dist/services/guard-signer/guard-signer.schemas.d.ts +75 -75
- package/dist/services/guard-signer/guard-signer.schemas.d.ts.map +1 -1
- package/dist/services/guard-signer/guard-signer.schemas.js +42 -42
- package/dist/services/guard-signer/guard-signer.schemas.js.map +1 -1
- package/dist/services/heatmap/heatmap.d.ts.map +1 -1
- package/dist/services/heatmap/heatmap.js +5 -4
- package/dist/services/heatmap/heatmap.js.map +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +138 -138
- package/dist/services/heatmap/heatmap.schemas.d.ts.map +1 -1
- package/dist/services/heatmap/heatmap.schemas.js +47 -47
- package/dist/services/heatmap/heatmap.schemas.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +53 -53
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.js +27 -27
- package/dist/services/internal-transfers/internal-transfers.schemas.js.map +1 -1
- package/dist/services/lifecycle/lifecycle.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.js +3 -2
- package/dist/services/lifecycle/lifecycle.js.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +614 -614
- package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.js +146 -146
- package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
- package/dist/services/market-data/market-data.d.ts.map +1 -1
- package/dist/services/market-data/market-data.js +4 -3
- package/dist/services/market-data/market-data.js.map +1 -1
- package/dist/services/market-data/market-data.schemas.d.ts +19 -19
- package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
- package/dist/services/market-data/market-data.schemas.js +50 -50
- package/dist/services/market-data/market-data.schemas.js.map +1 -1
- package/dist/services/market-overview/market-overview.d.ts.map +1 -1
- package/dist/services/market-overview/market-overview.js +3 -2
- package/dist/services/market-overview/market-overview.js.map +1 -1
- package/dist/services/market-overview/market-overview.schemas.d.ts +37 -37
- package/dist/services/market-overview/market-overview.schemas.d.ts.map +1 -1
- package/dist/services/market-overview/market-overview.schemas.js +33 -33
- package/dist/services/market-overview/market-overview.schemas.js.map +1 -1
- package/dist/services/mfa/mfa.js +1 -1
- package/dist/services/mfa/mfa.js.map +1 -1
- package/dist/services/mfa/mfa.schemas.d.ts +206 -206
- package/dist/services/mfa/mfa.schemas.d.ts.map +1 -1
- package/dist/services/mfa/mfa.schemas.js +83 -83
- package/dist/services/mfa/mfa.schemas.js.map +1 -1
- package/dist/services/orderbook/orderbook.d.ts +2 -2
- package/dist/services/orderbook/orderbook.d.ts.map +1 -1
- package/dist/services/orderbook/orderbook.js +3 -2
- package/dist/services/orderbook/orderbook.js.map +1 -1
- package/dist/services/orderbook/orderbook.schemas.d.ts +23 -23
- package/dist/services/orderbook/orderbook.schemas.d.ts.map +1 -1
- package/dist/services/orderbook/orderbook.schemas.js +15 -15
- package/dist/services/orderbook/orderbook.schemas.js.map +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +18 -18
- package/dist/services/orders/order-errors.schemas.d.ts.map +1 -1
- package/dist/services/orders/order-errors.schemas.js +8 -8
- package/dist/services/orders/order-errors.schemas.js.map +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +492 -492
- package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-batch.schemas.js +117 -117
- package/dist/services/orders/orders-batch.schemas.js.map +1 -1
- package/dist/services/orders/orders-identifiers.schemas.js +5 -5
- package/dist/services/orders/orders-identifiers.schemas.js.map +1 -1
- package/dist/services/orders/orders-input.schemas.d.ts +648 -648
- package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-input.schemas.js +95 -95
- package/dist/services/orders/orders-input.schemas.js.map +1 -1
- package/dist/services/orders/orders-modify.schemas.d.ts +351 -351
- package/dist/services/orders/orders-modify.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-modify.schemas.js +44 -44
- package/dist/services/orders/orders-modify.schemas.js.map +1 -1
- package/dist/services/orders/orders-output.schemas.d.ts +179 -179
- package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-output.schemas.js +49 -49
- package/dist/services/orders/orders-output.schemas.js.map +1 -1
- package/dist/services/orders/orders-risk.schemas.d.ts +226 -226
- package/dist/services/orders/orders-risk.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-risk.schemas.js +69 -69
- package/dist/services/orders/orders-risk.schemas.js.map +1 -1
- package/dist/services/orders/orders.d.ts +6 -6
- package/dist/services/orders/orders.d.ts.map +1 -1
- package/dist/services/orders/orders.js +4 -3
- package/dist/services/orders/orders.js.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.d.ts +6 -6
- package/dist/services/policies/api-key-policies/api-key-policies.d.ts.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.js.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +105 -105
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +49 -49
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.js.map +1 -1
- package/dist/services/policies/shared.d.ts +5 -5
- package/dist/services/policies/shared.d.ts.map +1 -1
- package/dist/services/policies/shared.js +10 -10
- package/dist/services/policies/shared.js.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.d.ts +6 -6
- package/dist/services/policies/subaccount-policies/subaccount-policies.d.ts.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.js +3 -2
- package/dist/services/policies/subaccount-policies/subaccount-policies.js.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +124 -124
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +75 -75
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
- package/dist/services/rate-limits/index.d.ts +4 -0
- package/dist/services/rate-limits/rate-limits.codecs.d.ts +6 -0
- package/dist/services/rate-limits/rate-limits.codecs.d.ts.map +1 -0
- package/dist/services/rate-limits/rate-limits.codecs.js +11 -0
- package/dist/services/rate-limits/rate-limits.codecs.js.map +1 -0
- package/dist/services/rate-limits/rate-limits.d.ts +24 -0
- package/dist/services/rate-limits/rate-limits.d.ts.map +1 -0
- package/dist/services/rate-limits/rate-limits.js +40 -0
- package/dist/services/rate-limits/rate-limits.js.map +1 -0
- package/dist/services/rate-limits/rate-limits.schemas.d.ts +58 -0
- package/dist/services/rate-limits/rate-limits.schemas.d.ts.map +1 -0
- package/dist/services/rate-limits/rate-limits.schemas.js +30 -0
- package/dist/services/rate-limits/rate-limits.schemas.js.map +1 -0
- package/dist/services/rate-limits/rate-limits.types.d.ts +3 -0
- package/dist/services/shared.js +11 -11
- package/dist/services/shared.js.map +1 -1
- package/dist/services/social-verification/social-verification.d.ts +3 -3
- package/dist/services/social-verification/social-verification.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.js.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.d.ts +54 -54
- package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.js +28 -28
- package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.d.ts +14 -14
- package/dist/services/subaccounts/subaccounts.d.ts.map +1 -1
- package/dist/services/subaccounts/subaccounts.js +9 -8
- package/dist/services/subaccounts/subaccounts.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +137 -137
- package/dist/services/subaccounts/subaccounts.schemas.d.ts.map +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.js +72 -72
- package/dist/services/subaccounts/subaccounts.schemas.js.map +1 -1
- package/dist/services/trades/trades.d.ts +2 -2
- package/dist/services/trades/trades.d.ts.map +1 -1
- package/dist/services/trades/trades.js +3 -2
- package/dist/services/trades/trades.js.map +1 -1
- package/dist/services/trades/trades.schemas.d.ts +31 -31
- package/dist/services/trades/trades.schemas.d.ts.map +1 -1
- package/dist/services/trades/trades.schemas.js +24 -24
- package/dist/services/trades/trades.schemas.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +45 -45
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +36 -36
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
- package/dist/services/transfers/transfers.d.ts.map +1 -1
- package/dist/services/transfers/transfers.js +3 -2
- package/dist/services/transfers/transfers.js.map +1 -1
- package/dist/services/transfers/transfers.schemas.d.ts +42 -42
- package/dist/services/transfers/transfers.schemas.d.ts.map +1 -1
- package/dist/services/transfers/transfers.schemas.js +30 -30
- package/dist/services/transfers/transfers.schemas.js.map +1 -1
- package/dist/services/triggers/trigger-child-order.schemas.js +23 -23
- package/dist/services/triggers/trigger-child-order.schemas.js.map +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +226 -226
- package/dist/services/triggers/trigger-input.schemas.d.ts.map +1 -1
- package/dist/services/triggers/trigger-input.schemas.js +53 -53
- package/dist/services/triggers/trigger-input.schemas.js.map +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +218 -218
- package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
- package/dist/services/triggers/triggers-output.schemas.js +152 -152
- package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
- package/dist/services/triggers/triggers.d.ts.map +1 -1
- package/dist/services/triggers/triggers.js +4 -3
- package/dist/services/triggers/triggers.js.map +1 -1
- package/dist/services/vip/index.d.ts +3 -0
- package/dist/services/vip/vip.d.ts +22 -0
- package/dist/services/vip/vip.d.ts.map +1 -0
- package/dist/services/vip/vip.js +35 -0
- package/dist/services/vip/vip.js.map +1 -0
- package/dist/services/vip/vip.schemas.d.ts +90 -0
- package/dist/services/vip/vip.schemas.d.ts.map +1 -0
- package/dist/services/vip/vip.schemas.js +47 -0
- package/dist/services/vip/vip.schemas.js.map +1 -0
- package/dist/services/vip/vip.types.d.ts +2 -0
- package/dist/services/whiteboard/whiteboard.js.map +1 -1
- package/dist/services/whiteboard/whiteboard.schemas.d.ts +379 -379
- package/dist/services/whiteboard/whiteboard.schemas.d.ts.map +1 -1
- package/dist/services/whiteboard/whiteboard.schemas.js +71 -71
- package/dist/services/whiteboard/whiteboard.schemas.js.map +1 -1
- package/dist/services/zipper/zipper.js.map +1 -1
- package/dist/services/zipper/zipper.schemas.d.ts +1 -1
- package/dist/services/zipper/zipper.schemas.js +54 -54
- package/dist/services/zipper/zipper.schemas.js.map +1 -1
- package/dist/shared/account-scope.d.ts +6 -6
- package/dist/shared/account-scope.d.ts.map +1 -1
- package/dist/shared/account-scope.js +3 -3
- package/dist/shared/account-scope.js.map +1 -1
- package/dist/shared/connect-error-mapping.js +2 -2
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/rate-limit.schemas.d.ts +12 -12
- package/dist/shared/rate-limit.schemas.d.ts.map +1 -1
- package/dist/shared/rate-limit.schemas.js +7 -7
- package/dist/shared/rate-limit.schemas.js.map +1 -1
- package/dist/shared/schemas.js +26 -26
- package/dist/shared/schemas.js.map +1 -1
- package/dist/shared/validation.js +1 -6
- package/dist/shared/validation.js.map +1 -1
- package/dist/utils/connect-order-errors.js +2 -2
- package/dist/utils/connect-order-errors.js.map +1 -1
- package/dist/wired-services.d.ts.map +1 -1
- package/dist/wired-services.js +6 -0
- package/dist/wired-services.js.map +1 -1
- package/package.json +3 -3
- package/dist/shared/validation.d.ts +0 -14
- package/dist/shared/validation.d.ts.map +0 -1
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { Message } from "@bufbuild/protobuf";
|
|
2
|
+
import { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
3
|
+
import { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
|
+
declare namespace vip_pb_d_exports {
|
|
5
|
+
export { GetVIPStatusRequest, GetVIPStatusRequestSchema, GetVIPStatusResponse, GetVIPStatusResponseSchema, ListVIPTiersRequest, ListVIPTiersRequestSchema, ListVIPTiersResponse, ListVIPTiersResponseSchema, NextVIPTierThresholds, NextVIPTierThresholdsSchema, VIPService, VIPTier, VIPTierSchema, file_vip_v1_vip };
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file vip/v1/vip.proto.
|
|
9
|
+
*/
|
|
10
|
+
declare const file_vip_v1_vip: GenFile;
|
|
11
|
+
/**
|
|
12
|
+
* VIPTier describes one row in a complete VIP0 through VIP10 policy catalog.
|
|
13
|
+
*
|
|
14
|
+
* @generated from message vip.v1.VIPTier
|
|
15
|
+
*/
|
|
16
|
+
type VIPTier = Message<"vip.v1.VIPTier"> & {
|
|
17
|
+
/**
|
|
18
|
+
* Numeric VIP tier in the inclusive range 0 through 10.
|
|
19
|
+
*
|
|
20
|
+
* @generated from field: uint32 tier = 1;
|
|
21
|
+
*/
|
|
22
|
+
tier: number;
|
|
23
|
+
/**
|
|
24
|
+
* Rolling 30-day settled spot volume entry threshold in USD, encoded as a
|
|
25
|
+
* non-negative base-10 decimal string without separators or a currency
|
|
26
|
+
* symbol.
|
|
27
|
+
*
|
|
28
|
+
* @generated from field: string volume_threshold_usd = 2;
|
|
29
|
+
*/
|
|
30
|
+
volumeThresholdUsd: string;
|
|
31
|
+
/**
|
|
32
|
+
* Rolling 30-day average portfolio value entry threshold in USD, encoded as
|
|
33
|
+
* a positive base-10 decimal string without separators or a currency symbol.
|
|
34
|
+
* Omitted for VIP0, which has no average portfolio value entry threshold.
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: optional string aop_threshold_usd = 3;
|
|
37
|
+
*/
|
|
38
|
+
aopThresholdUsd?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Absolute maker fee rate before symbol-specific adjustments, encoded as a
|
|
41
|
+
* base-10 percentage string without a percent sign. Values are between
|
|
42
|
+
* -100 and 100 inclusive.
|
|
43
|
+
*
|
|
44
|
+
* @generated from field: string maker_fee_rate_percent = 4;
|
|
45
|
+
*/
|
|
46
|
+
makerFeeRatePercent: string;
|
|
47
|
+
/**
|
|
48
|
+
* Absolute taker fee rate before symbol-specific adjustments, encoded as a
|
|
49
|
+
* non-negative base-10 percentage string without a percent sign. Values are
|
|
50
|
+
* between 0 and 100 inclusive.
|
|
51
|
+
*
|
|
52
|
+
* @generated from field: string taker_fee_rate_percent = 5;
|
|
53
|
+
*/
|
|
54
|
+
takerFeeRatePercent: string;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Describes the message vip.v1.VIPTier.
|
|
58
|
+
* Use `create(VIPTierSchema)` to create a new message.
|
|
59
|
+
*/
|
|
60
|
+
declare const VIPTierSchema: GenMessage<VIPTier>;
|
|
61
|
+
/**
|
|
62
|
+
* ListVIPTiersRequest requests the complete active VIP tier catalog.
|
|
63
|
+
*
|
|
64
|
+
* @generated from message vip.v1.ListVIPTiersRequest
|
|
65
|
+
*/
|
|
66
|
+
type ListVIPTiersRequest = Message<"vip.v1.ListVIPTiersRequest"> & {};
|
|
67
|
+
/**
|
|
68
|
+
* Describes the message vip.v1.ListVIPTiersRequest.
|
|
69
|
+
* Use `create(ListVIPTiersRequestSchema)` to create a new message.
|
|
70
|
+
*/
|
|
71
|
+
declare const ListVIPTiersRequestSchema: GenMessage<ListVIPTiersRequest>;
|
|
72
|
+
/**
|
|
73
|
+
* ListVIPTiersResponse contains one complete, immutable VIP policy version.
|
|
74
|
+
*
|
|
75
|
+
* @generated from message vip.v1.ListVIPTiersResponse
|
|
76
|
+
*/
|
|
77
|
+
type ListVIPTiersResponse = Message<"vip.v1.ListVIPTiersResponse"> & {
|
|
78
|
+
/**
|
|
79
|
+
* Positive identifier of the returned VIP policy version.
|
|
80
|
+
*
|
|
81
|
+
* @generated from field: uint64 policy_version = 1;
|
|
82
|
+
*/
|
|
83
|
+
policyVersion: bigint;
|
|
84
|
+
/**
|
|
85
|
+
* UTC time at which this policy version became effective.
|
|
86
|
+
*
|
|
87
|
+
* @generated from field: google.protobuf.Timestamp effective_from = 2;
|
|
88
|
+
*/
|
|
89
|
+
effectiveFrom?: Timestamp | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Average portfolio value retention threshold in basis points. One basis
|
|
92
|
+
* point is 0.01%; valid values are 1 through 10000.
|
|
93
|
+
*
|
|
94
|
+
* @generated from field: uint32 retention_threshold_bp = 3;
|
|
95
|
+
*/
|
|
96
|
+
retentionThresholdBp: number;
|
|
97
|
+
/**
|
|
98
|
+
* Complete VIP0 through VIP10 catalog ordered by tier ascending. This is a
|
|
99
|
+
* naturally bounded 11-row snapshot and is not paginated.
|
|
100
|
+
*
|
|
101
|
+
* @generated from field: repeated vip.v1.VIPTier tiers = 4;
|
|
102
|
+
*/
|
|
103
|
+
tiers: VIPTier[];
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Describes the message vip.v1.ListVIPTiersResponse.
|
|
107
|
+
* Use `create(ListVIPTiersResponseSchema)` to create a new message.
|
|
108
|
+
*/
|
|
109
|
+
declare const ListVIPTiersResponseSchema: GenMessage<ListVIPTiersResponse>;
|
|
110
|
+
/**
|
|
111
|
+
* NextVIPTierThresholds contains the entry thresholds for the tier immediately
|
|
112
|
+
* above the caller's effective tier.
|
|
113
|
+
*
|
|
114
|
+
* @generated from message vip.v1.NextVIPTierThresholds
|
|
115
|
+
*/
|
|
116
|
+
type NextVIPTierThresholds = Message<"vip.v1.NextVIPTierThresholds"> & {
|
|
117
|
+
/**
|
|
118
|
+
* Numeric next tier in the inclusive range 1 through 10.
|
|
119
|
+
*
|
|
120
|
+
* @generated from field: uint32 tier = 1;
|
|
121
|
+
*/
|
|
122
|
+
tier: number;
|
|
123
|
+
/**
|
|
124
|
+
* Rolling 30-day settled spot volume entry threshold in USD, encoded as a
|
|
125
|
+
* non-negative base-10 decimal string without separators or a currency
|
|
126
|
+
* symbol.
|
|
127
|
+
*
|
|
128
|
+
* @generated from field: string volume_threshold_usd = 2;
|
|
129
|
+
*/
|
|
130
|
+
volumeThresholdUsd: string;
|
|
131
|
+
/**
|
|
132
|
+
* Rolling 30-day average portfolio value entry threshold in USD, encoded as
|
|
133
|
+
* a positive base-10 decimal string without separators or a currency symbol.
|
|
134
|
+
*
|
|
135
|
+
* @generated from field: string aop_threshold_usd = 3;
|
|
136
|
+
*/
|
|
137
|
+
aopThresholdUsd: string;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Describes the message vip.v1.NextVIPTierThresholds.
|
|
141
|
+
* Use `create(NextVIPTierThresholdsSchema)` to create a new message.
|
|
142
|
+
*/
|
|
143
|
+
declare const NextVIPTierThresholdsSchema: GenMessage<NextVIPTierThresholds>;
|
|
144
|
+
/**
|
|
145
|
+
* GetVIPStatusRequest requests VIP status for the authenticated caller's root
|
|
146
|
+
* account. All subaccounts inherit that root status, so this request has no
|
|
147
|
+
* subaccount selector.
|
|
148
|
+
*
|
|
149
|
+
* @generated from message vip.v1.GetVIPStatusRequest
|
|
150
|
+
*/
|
|
151
|
+
type GetVIPStatusRequest = Message<"vip.v1.GetVIPStatusRequest"> & {};
|
|
152
|
+
/**
|
|
153
|
+
* Describes the message vip.v1.GetVIPStatusRequest.
|
|
154
|
+
* Use `create(GetVIPStatusRequestSchema)` to create a new message.
|
|
155
|
+
*/
|
|
156
|
+
declare const GetVIPStatusRequestSchema: GenMessage<GetVIPStatusRequest>;
|
|
157
|
+
/**
|
|
158
|
+
* GetVIPStatusResponse contains the authenticated caller-root VIP assignment
|
|
159
|
+
* and the qualification facts available for that assignment.
|
|
160
|
+
*
|
|
161
|
+
* @generated from message vip.v1.GetVIPStatusResponse
|
|
162
|
+
*/
|
|
163
|
+
type GetVIPStatusResponse = Message<"vip.v1.GetVIPStatusResponse"> & {
|
|
164
|
+
/**
|
|
165
|
+
* Effective VIP tier in the inclusive range 0 through 10.
|
|
166
|
+
*
|
|
167
|
+
* @generated from field: uint32 tier = 1;
|
|
168
|
+
*/
|
|
169
|
+
tier: number;
|
|
170
|
+
/**
|
|
171
|
+
* Tier earned from rolling 30-day settled spot volume, in the inclusive
|
|
172
|
+
* range 0 through 10.
|
|
173
|
+
*
|
|
174
|
+
* @generated from field: uint32 volume_tier = 2;
|
|
175
|
+
*/
|
|
176
|
+
volumeTier: number;
|
|
177
|
+
/**
|
|
178
|
+
* Tier earned from rolling 30-day average portfolio value, in the inclusive
|
|
179
|
+
* range 0 through 10.
|
|
180
|
+
*
|
|
181
|
+
* @generated from field: uint32 aop_tier = 3;
|
|
182
|
+
*/
|
|
183
|
+
aopTier: number;
|
|
184
|
+
/**
|
|
185
|
+
* Rolling 30-day settled spot volume in USD, encoded as a non-negative
|
|
186
|
+
* base-10 decimal string without separators or a currency symbol. Omitted
|
|
187
|
+
* when complete qualification metrics are unavailable for the assignment.
|
|
188
|
+
*
|
|
189
|
+
* @generated from field: optional string settled_volume_30d_usd = 4;
|
|
190
|
+
*/
|
|
191
|
+
settledVolume30dUsd?: string | undefined;
|
|
192
|
+
/**
|
|
193
|
+
* Rolling 30-day average portfolio value in USD, encoded as a non-negative
|
|
194
|
+
* base-10 decimal string without separators or a currency symbol. Omitted
|
|
195
|
+
* when complete qualification metrics are unavailable for the assignment.
|
|
196
|
+
*
|
|
197
|
+
* @generated from field: optional string average_aop_30d_usd = 5;
|
|
198
|
+
*/
|
|
199
|
+
averageAop30dUsd?: string | undefined;
|
|
200
|
+
/**
|
|
201
|
+
* Positive identifier of the VIP policy used for this assignment.
|
|
202
|
+
*
|
|
203
|
+
* @generated from field: uint64 policy_version = 6;
|
|
204
|
+
*/
|
|
205
|
+
policyVersion: bigint;
|
|
206
|
+
/**
|
|
207
|
+
* UTC time at which the selected assignment policy became effective.
|
|
208
|
+
*
|
|
209
|
+
* @generated from field: google.protobuf.Timestamp policy_effective_from = 7;
|
|
210
|
+
*/
|
|
211
|
+
policyEffectiveFrom?: Timestamp | undefined;
|
|
212
|
+
/**
|
|
213
|
+
* UTC time from which the explicit VIP assignment is effective. Omitted
|
|
214
|
+
* while a new account is using the default VIP0 tier.
|
|
215
|
+
*
|
|
216
|
+
* @generated from field: optional google.protobuf.Timestamp effective_from = 8;
|
|
217
|
+
*/
|
|
218
|
+
effectiveFrom?: Timestamp | undefined;
|
|
219
|
+
/**
|
|
220
|
+
* UTC time at which the explicit assignment was evaluated. Omitted while a
|
|
221
|
+
* new account is using the default VIP0 tier.
|
|
222
|
+
*
|
|
223
|
+
* @generated from field: optional google.protobuf.Timestamp evaluated_at = 9;
|
|
224
|
+
*/
|
|
225
|
+
evaluatedAt?: Timestamp | undefined;
|
|
226
|
+
/**
|
|
227
|
+
* UTC cutoff of the rolling metrics used for this assignment. Omitted when
|
|
228
|
+
* complete qualification metrics are unavailable.
|
|
229
|
+
*
|
|
230
|
+
* @generated from field: optional google.protobuf.Timestamp metrics_as_of = 10;
|
|
231
|
+
*/
|
|
232
|
+
metricsAsOf?: Timestamp | undefined;
|
|
233
|
+
/**
|
|
234
|
+
* Entry thresholds for the tier immediately above the effective tier.
|
|
235
|
+
* Omitted when the effective tier is VIP10.
|
|
236
|
+
*
|
|
237
|
+
* @generated from field: optional vip.v1.NextVIPTierThresholds next_tier_thresholds = 11;
|
|
238
|
+
*/
|
|
239
|
+
nextTierThresholds?: NextVIPTierThresholds | undefined;
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* Describes the message vip.v1.GetVIPStatusResponse.
|
|
243
|
+
* Use `create(GetVIPStatusResponseSchema)` to create a new message.
|
|
244
|
+
*/
|
|
245
|
+
declare const GetVIPStatusResponseSchema: GenMessage<GetVIPStatusResponse>;
|
|
246
|
+
/**
|
|
247
|
+
* VIPService serves public VIP policy reference data and the authenticated
|
|
248
|
+
* caller-root qualification status.
|
|
249
|
+
*
|
|
250
|
+
* @generated from service vip.v1.VIPService
|
|
251
|
+
*/
|
|
252
|
+
declare const VIPService: GenService<{
|
|
253
|
+
/**
|
|
254
|
+
* List the complete active VIP0 through VIP10 tier catalog in ascending tier
|
|
255
|
+
* order.
|
|
256
|
+
*
|
|
257
|
+
* @generated from rpc vip.v1.VIPService.ListVIPTiers
|
|
258
|
+
*/
|
|
259
|
+
listVIPTiers: {
|
|
260
|
+
methodKind: "unary";
|
|
261
|
+
input: typeof ListVIPTiersRequestSchema;
|
|
262
|
+
output: typeof ListVIPTiersResponseSchema;
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* Get VIP qualification status for the authenticated caller's root account.
|
|
266
|
+
*
|
|
267
|
+
* @generated from rpc vip.v1.VIPService.GetVIPStatus
|
|
268
|
+
*/
|
|
269
|
+
getVIPStatus: {
|
|
270
|
+
methodKind: "unary";
|
|
271
|
+
input: typeof GetVIPStatusRequestSchema;
|
|
272
|
+
output: typeof GetVIPStatusResponseSchema;
|
|
273
|
+
};
|
|
274
|
+
}>;
|
|
275
|
+
//#endregion
|
|
276
|
+
export { GetVIPStatusRequest, GetVIPStatusRequestSchema, GetVIPStatusResponse, GetVIPStatusResponseSchema, ListVIPTiersRequest, ListVIPTiersRequestSchema, ListVIPTiersResponse, ListVIPTiersResponseSchema, NextVIPTierThresholds, NextVIPTierThresholdsSchema, VIPService, VIPTier, VIPTierSchema, file_vip_v1_vip, vip_pb_d_exports };
|
|
277
|
+
//# sourceMappingURL=vip_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vip_pb.d.ts","names":[],"sources":["../../../../src/gen/vip/v1/vip_pb.ts"],"mappings":";;;;;;;;;cAca,iBAAiB;;;;;;KAQlB,UAAU;;;;;;EAMpB;;;;;;;;EASA;;;;;;;;EASA;;;;;;;;EASA;;;;;;;;EASA;;;;;;cAOW,eAAe,WAAW;;;;;;KAQ3B,sBAAsB;;;;;cAOrB,2BAA2B,WAAW;;;;;;KAQvC,uBAAuB;;;;;;EAMjC;;;;;;EAOA,gBAAgB;;;;;;;EAQhB;;;;;;;EAQA,OAAO;;;;;;cAOI,4BAA4B,WAAW;;;;;;;KASxC,wBAAwB;;;;;;EAMlC;;;;;;;;EASA;;;;;;;EAQA;;;;;;cAOW,6BAA6B,WAAW;;;;;;;;KAUzC,sBAAsB;;;;;cAOrB,2BAA2B,WAAW;;;;;;;KASvC,uBAAuB;;;;;;EAMjC;;;;;;;EAQA;;;;;;;EAQA;;;;;;;;EASA;;;;;;;;EASA;;;;;;EAOA;;;;;;EAOA,sBAAsB;;;;;;;EAQtB,gBAAgB;;;;;;;EAQhB,cAAc;;;;;;;EAQd,cAAc;;;;;;;EAQd,qBAAqB;;;;;;cAOV,4BAA4B,WAAW;;;;;;;cASvC,YAAY;;;;;;;EAOvB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { file_polyester_api_options } from "../../polyester/api/options_pb.js";
|
|
3
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
4
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
5
|
+
//#region src/gen/vip/v1/vip_pb.ts
|
|
6
|
+
var vip_pb_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
GetVIPStatusRequestSchema: () => GetVIPStatusRequestSchema,
|
|
8
|
+
GetVIPStatusResponseSchema: () => GetVIPStatusResponseSchema,
|
|
9
|
+
ListVIPTiersRequestSchema: () => ListVIPTiersRequestSchema,
|
|
10
|
+
ListVIPTiersResponseSchema: () => ListVIPTiersResponseSchema,
|
|
11
|
+
NextVIPTierThresholdsSchema: () => NextVIPTierThresholdsSchema,
|
|
12
|
+
VIPService: () => VIPService,
|
|
13
|
+
VIPTierSchema: () => VIPTierSchema,
|
|
14
|
+
file_vip_v1_vip: () => file_vip_v1_vip
|
|
15
|
+
});
|
|
16
|
+
/**
|
|
17
|
+
* Describes the file vip/v1/vip.proto.
|
|
18
|
+
*/
|
|
19
|
+
const file_vip_v1_vip = /*@__PURE__*/ fileDesc("ChB2aXAvdjEvdmlwLnByb3RvEgZ2aXAudjEitQEKB1ZJUFRpZXISDgoEdGllchgBIAEoDUIAEh4KFHZvbHVtZV90aHJlc2hvbGRfdXNkGAIgASgJQgASIAoRYW9wX3RocmVzaG9sZF91c2QYAyABKAlCAEgAiAEBEiAKFm1ha2VyX2ZlZV9yYXRlX3BlcmNlbnQYBCABKAlCABIgChZ0YWtlcl9mZWVfcmF0ZV9wZXJjZW50GAUgASgJQgBCFAoSX2FvcF90aHJlc2hvbGRfdXNkIhUKE0xpc3RWSVBUaWVyc1JlcXVlc3QiqgEKFExpc3RWSVBUaWVyc1Jlc3BvbnNlEhgKDnBvbGljeV92ZXJzaW9uGAEgASgEQgASNAoOZWZmZWN0aXZlX2Zyb20YAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgASIAoWcmV0ZW50aW9uX3RocmVzaG9sZF9icBgDIAEoDUIAEiAKBXRpZXJzGAQgAygLMg8udmlwLnYxLlZJUFRpZXJCACJkChVOZXh0VklQVGllclRocmVzaG9sZHMSDgoEdGllchgBIAEoDUIAEh4KFHZvbHVtZV90aHJlc2hvbGRfdXNkGAIgASgJQgASGwoRYW9wX3RocmVzaG9sZF91c2QYAyABKAlCACIVChNHZXRWSVBTdGF0dXNSZXF1ZXN0It8EChRHZXRWSVBTdGF0dXNSZXNwb25zZRIOCgR0aWVyGAEgASgNQgASFQoLdm9sdW1lX3RpZXIYAiABKA1CABISCghhb3BfdGllchgDIAEoDUIAEiUKFnNldHRsZWRfdm9sdW1lXzMwZF91c2QYBCABKAlCAEgAiAEBEiIKE2F2ZXJhZ2VfYW9wXzMwZF91c2QYBSABKAlCAEgBiAEBEhgKDnBvbGljeV92ZXJzaW9uGAYgASgEQgASOwoVcG9saWN5X2VmZmVjdGl2ZV9mcm9tGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEIAEjcKDmVmZmVjdGl2ZV9mcm9tGAggASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgCiAEBEjUKDGV2YWx1YXRlZF9hdBgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBIA4gBARI2Cg1tZXRyaWNzX2FzX29mGAogASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgEiAEBEkAKFG5leHRfdGllcl90aHJlc2hvbGRzGAsgASgLMh0udmlwLnYxLk5leHRWSVBUaWVyVGhyZXNob2xkc0gFiAEBQhkKF19zZXR0bGVkX3ZvbHVtZV8zMGRfdXNkQhYKFF9hdmVyYWdlX2FvcF8zMGRfdXNkQhEKD19lZmZlY3RpdmVfZnJvbUIPCg1fZXZhbHVhdGVkX2F0QhAKDl9tZXRyaWNzX2FzX29mQhcKFV9uZXh0X3RpZXJfdGhyZXNob2xkczKmAQoKVklQU2VydmljZRJLCgxMaXN0VklQVGllcnMSGy52aXAudjEuTGlzdFZJUFRpZXJzUmVxdWVzdBocLnZpcC52MS5MaXN0VklQVGllcnNSZXNwb25zZSIAEksKDEdldFZJUFN0YXR1cxIbLnZpcC52MS5HZXRWSVBTdGF0dXNSZXF1ZXN0GhwudmlwLnYxLkdldFZJUFN0YXR1c1Jlc3BvbnNlIgBCOlo4Z2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi92aXAvdjE7dmlwdjFiBnByb3RvMw==", [file_google_protobuf_timestamp, file_polyester_api_options]);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message vip.v1.VIPTier.
|
|
22
|
+
* Use `create(VIPTierSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
const VIPTierSchema = /*@__PURE__*/ messageDesc(file_vip_v1_vip, 0);
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message vip.v1.ListVIPTiersRequest.
|
|
27
|
+
* Use `create(ListVIPTiersRequestSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
const ListVIPTiersRequestSchema = /*@__PURE__*/ messageDesc(file_vip_v1_vip, 1);
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message vip.v1.ListVIPTiersResponse.
|
|
32
|
+
* Use `create(ListVIPTiersResponseSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
const ListVIPTiersResponseSchema = /*@__PURE__*/ messageDesc(file_vip_v1_vip, 2);
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message vip.v1.NextVIPTierThresholds.
|
|
37
|
+
* Use `create(NextVIPTierThresholdsSchema)` to create a new message.
|
|
38
|
+
*/
|
|
39
|
+
const NextVIPTierThresholdsSchema = /*@__PURE__*/ messageDesc(file_vip_v1_vip, 3);
|
|
40
|
+
/**
|
|
41
|
+
* Describes the message vip.v1.GetVIPStatusRequest.
|
|
42
|
+
* Use `create(GetVIPStatusRequestSchema)` to create a new message.
|
|
43
|
+
*/
|
|
44
|
+
const GetVIPStatusRequestSchema = /*@__PURE__*/ messageDesc(file_vip_v1_vip, 4);
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message vip.v1.GetVIPStatusResponse.
|
|
47
|
+
* Use `create(GetVIPStatusResponseSchema)` to create a new message.
|
|
48
|
+
*/
|
|
49
|
+
const GetVIPStatusResponseSchema = /*@__PURE__*/ messageDesc(file_vip_v1_vip, 5);
|
|
50
|
+
/**
|
|
51
|
+
* VIPService serves public VIP policy reference data and the authenticated
|
|
52
|
+
* caller-root qualification status.
|
|
53
|
+
*
|
|
54
|
+
* @generated from service vip.v1.VIPService
|
|
55
|
+
*/
|
|
56
|
+
const VIPService = /*@__PURE__*/ serviceDesc(file_vip_v1_vip, 0);
|
|
57
|
+
//#endregion
|
|
58
|
+
export { GetVIPStatusRequestSchema, GetVIPStatusResponseSchema, ListVIPTiersRequestSchema, ListVIPTiersResponseSchema, NextVIPTierThresholdsSchema, VIPService, VIPTierSchema, file_vip_v1_vip, vip_pb_exports };
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=vip_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vip_pb.js","names":[],"sources":["../../../../src/gen/vip/v1/vip_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file vip/v1/vip.proto (package vip.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file vip/v1/vip.proto.\n */\nexport const file_vip_v1_vip: GenFile = /*@__PURE__*/\n fileDesc(\"ChB2aXAvdjEvdmlwLnByb3RvEgZ2aXAudjEitQEKB1ZJUFRpZXISDgoEdGllchgBIAEoDUIAEh4KFHZvbHVtZV90aHJlc2hvbGRfdXNkGAIgASgJQgASIAoRYW9wX3RocmVzaG9sZF91c2QYAyABKAlCAEgAiAEBEiAKFm1ha2VyX2ZlZV9yYXRlX3BlcmNlbnQYBCABKAlCABIgChZ0YWtlcl9mZWVfcmF0ZV9wZXJjZW50GAUgASgJQgBCFAoSX2FvcF90aHJlc2hvbGRfdXNkIhUKE0xpc3RWSVBUaWVyc1JlcXVlc3QiqgEKFExpc3RWSVBUaWVyc1Jlc3BvbnNlEhgKDnBvbGljeV92ZXJzaW9uGAEgASgEQgASNAoOZWZmZWN0aXZlX2Zyb20YAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgASIAoWcmV0ZW50aW9uX3RocmVzaG9sZF9icBgDIAEoDUIAEiAKBXRpZXJzGAQgAygLMg8udmlwLnYxLlZJUFRpZXJCACJkChVOZXh0VklQVGllclRocmVzaG9sZHMSDgoEdGllchgBIAEoDUIAEh4KFHZvbHVtZV90aHJlc2hvbGRfdXNkGAIgASgJQgASGwoRYW9wX3RocmVzaG9sZF91c2QYAyABKAlCACIVChNHZXRWSVBTdGF0dXNSZXF1ZXN0It8EChRHZXRWSVBTdGF0dXNSZXNwb25zZRIOCgR0aWVyGAEgASgNQgASFQoLdm9sdW1lX3RpZXIYAiABKA1CABISCghhb3BfdGllchgDIAEoDUIAEiUKFnNldHRsZWRfdm9sdW1lXzMwZF91c2QYBCABKAlCAEgAiAEBEiIKE2F2ZXJhZ2VfYW9wXzMwZF91c2QYBSABKAlCAEgBiAEBEhgKDnBvbGljeV92ZXJzaW9uGAYgASgEQgASOwoVcG9saWN5X2VmZmVjdGl2ZV9mcm9tGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEIAEjcKDmVmZmVjdGl2ZV9mcm9tGAggASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgCiAEBEjUKDGV2YWx1YXRlZF9hdBgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBIA4gBARI2Cg1tZXRyaWNzX2FzX29mGAogASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgEiAEBEkAKFG5leHRfdGllcl90aHJlc2hvbGRzGAsgASgLMh0udmlwLnYxLk5leHRWSVBUaWVyVGhyZXNob2xkc0gFiAEBQhkKF19zZXR0bGVkX3ZvbHVtZV8zMGRfdXNkQhYKFF9hdmVyYWdlX2FvcF8zMGRfdXNkQhEKD19lZmZlY3RpdmVfZnJvbUIPCg1fZXZhbHVhdGVkX2F0QhAKDl9tZXRyaWNzX2FzX29mQhcKFV9uZXh0X3RpZXJfdGhyZXNob2xkczKmAQoKVklQU2VydmljZRJLCgxMaXN0VklQVGllcnMSGy52aXAudjEuTGlzdFZJUFRpZXJzUmVxdWVzdBocLnZpcC52MS5MaXN0VklQVGllcnNSZXNwb25zZSIAEksKDEdldFZJUFN0YXR1cxIbLnZpcC52MS5HZXRWSVBTdGF0dXNSZXF1ZXN0GhwudmlwLnYxLkdldFZJUFN0YXR1c1Jlc3BvbnNlIgBCOlo4Z2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi92aXAvdjE7dmlwdjFiBnByb3RvMw==\", [file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * VIPTier describes one row in a complete VIP0 through VIP10 policy catalog.\n *\n * @generated from message vip.v1.VIPTier\n */\nexport type VIPTier = Message<\"vip.v1.VIPTier\"> & {\n /**\n * Numeric VIP tier in the inclusive range 0 through 10.\n *\n * @generated from field: uint32 tier = 1;\n */\n tier: number;\n\n /**\n * Rolling 30-day settled spot volume entry threshold in USD, encoded as a\n * non-negative base-10 decimal string without separators or a currency\n * symbol.\n *\n * @generated from field: string volume_threshold_usd = 2;\n */\n volumeThresholdUsd: string;\n\n /**\n * Rolling 30-day average portfolio value entry threshold in USD, encoded as\n * a positive base-10 decimal string without separators or a currency symbol.\n * Omitted for VIP0, which has no average portfolio value entry threshold.\n *\n * @generated from field: optional string aop_threshold_usd = 3;\n */\n aopThresholdUsd?: string | undefined;\n\n /**\n * Absolute maker fee rate before symbol-specific adjustments, encoded as a\n * base-10 percentage string without a percent sign. Values are between\n * -100 and 100 inclusive.\n *\n * @generated from field: string maker_fee_rate_percent = 4;\n */\n makerFeeRatePercent: string;\n\n /**\n * Absolute taker fee rate before symbol-specific adjustments, encoded as a\n * non-negative base-10 percentage string without a percent sign. Values are\n * between 0 and 100 inclusive.\n *\n * @generated from field: string taker_fee_rate_percent = 5;\n */\n takerFeeRatePercent: string;\n};\n\n/**\n * Describes the message vip.v1.VIPTier.\n * Use `create(VIPTierSchema)` to create a new message.\n */\nexport const VIPTierSchema: GenMessage<VIPTier> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 0);\n\n/**\n * ListVIPTiersRequest requests the complete active VIP tier catalog.\n *\n * @generated from message vip.v1.ListVIPTiersRequest\n */\nexport type ListVIPTiersRequest = Message<\"vip.v1.ListVIPTiersRequest\"> & {\n};\n\n/**\n * Describes the message vip.v1.ListVIPTiersRequest.\n * Use `create(ListVIPTiersRequestSchema)` to create a new message.\n */\nexport const ListVIPTiersRequestSchema: GenMessage<ListVIPTiersRequest> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 1);\n\n/**\n * ListVIPTiersResponse contains one complete, immutable VIP policy version.\n *\n * @generated from message vip.v1.ListVIPTiersResponse\n */\nexport type ListVIPTiersResponse = Message<\"vip.v1.ListVIPTiersResponse\"> & {\n /**\n * Positive identifier of the returned VIP policy version.\n *\n * @generated from field: uint64 policy_version = 1;\n */\n policyVersion: bigint;\n\n /**\n * UTC time at which this policy version became effective.\n *\n * @generated from field: google.protobuf.Timestamp effective_from = 2;\n */\n effectiveFrom?: Timestamp | undefined;\n\n /**\n * Average portfolio value retention threshold in basis points. One basis\n * point is 0.01%; valid values are 1 through 10000.\n *\n * @generated from field: uint32 retention_threshold_bp = 3;\n */\n retentionThresholdBp: number;\n\n /**\n * Complete VIP0 through VIP10 catalog ordered by tier ascending. This is a\n * naturally bounded 11-row snapshot and is not paginated.\n *\n * @generated from field: repeated vip.v1.VIPTier tiers = 4;\n */\n tiers: VIPTier[];\n};\n\n/**\n * Describes the message vip.v1.ListVIPTiersResponse.\n * Use `create(ListVIPTiersResponseSchema)` to create a new message.\n */\nexport const ListVIPTiersResponseSchema: GenMessage<ListVIPTiersResponse> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 2);\n\n/**\n * NextVIPTierThresholds contains the entry thresholds for the tier immediately\n * above the caller's effective tier.\n *\n * @generated from message vip.v1.NextVIPTierThresholds\n */\nexport type NextVIPTierThresholds = Message<\"vip.v1.NextVIPTierThresholds\"> & {\n /**\n * Numeric next tier in the inclusive range 1 through 10.\n *\n * @generated from field: uint32 tier = 1;\n */\n tier: number;\n\n /**\n * Rolling 30-day settled spot volume entry threshold in USD, encoded as a\n * non-negative base-10 decimal string without separators or a currency\n * symbol.\n *\n * @generated from field: string volume_threshold_usd = 2;\n */\n volumeThresholdUsd: string;\n\n /**\n * Rolling 30-day average portfolio value entry threshold in USD, encoded as\n * a positive base-10 decimal string without separators or a currency symbol.\n *\n * @generated from field: string aop_threshold_usd = 3;\n */\n aopThresholdUsd: string;\n};\n\n/**\n * Describes the message vip.v1.NextVIPTierThresholds.\n * Use `create(NextVIPTierThresholdsSchema)` to create a new message.\n */\nexport const NextVIPTierThresholdsSchema: GenMessage<NextVIPTierThresholds> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 3);\n\n/**\n * GetVIPStatusRequest requests VIP status for the authenticated caller's root\n * account. All subaccounts inherit that root status, so this request has no\n * subaccount selector.\n *\n * @generated from message vip.v1.GetVIPStatusRequest\n */\nexport type GetVIPStatusRequest = Message<\"vip.v1.GetVIPStatusRequest\"> & {\n};\n\n/**\n * Describes the message vip.v1.GetVIPStatusRequest.\n * Use `create(GetVIPStatusRequestSchema)` to create a new message.\n */\nexport const GetVIPStatusRequestSchema: GenMessage<GetVIPStatusRequest> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 4);\n\n/**\n * GetVIPStatusResponse contains the authenticated caller-root VIP assignment\n * and the qualification facts available for that assignment.\n *\n * @generated from message vip.v1.GetVIPStatusResponse\n */\nexport type GetVIPStatusResponse = Message<\"vip.v1.GetVIPStatusResponse\"> & {\n /**\n * Effective VIP tier in the inclusive range 0 through 10.\n *\n * @generated from field: uint32 tier = 1;\n */\n tier: number;\n\n /**\n * Tier earned from rolling 30-day settled spot volume, in the inclusive\n * range 0 through 10.\n *\n * @generated from field: uint32 volume_tier = 2;\n */\n volumeTier: number;\n\n /**\n * Tier earned from rolling 30-day average portfolio value, in the inclusive\n * range 0 through 10.\n *\n * @generated from field: uint32 aop_tier = 3;\n */\n aopTier: number;\n\n /**\n * Rolling 30-day settled spot volume in USD, encoded as a non-negative\n * base-10 decimal string without separators or a currency symbol. Omitted\n * when complete qualification metrics are unavailable for the assignment.\n *\n * @generated from field: optional string settled_volume_30d_usd = 4;\n */\n settledVolume30dUsd?: string | undefined;\n\n /**\n * Rolling 30-day average portfolio value in USD, encoded as a non-negative\n * base-10 decimal string without separators or a currency symbol. Omitted\n * when complete qualification metrics are unavailable for the assignment.\n *\n * @generated from field: optional string average_aop_30d_usd = 5;\n */\n averageAop30dUsd?: string | undefined;\n\n /**\n * Positive identifier of the VIP policy used for this assignment.\n *\n * @generated from field: uint64 policy_version = 6;\n */\n policyVersion: bigint;\n\n /**\n * UTC time at which the selected assignment policy became effective.\n *\n * @generated from field: google.protobuf.Timestamp policy_effective_from = 7;\n */\n policyEffectiveFrom?: Timestamp | undefined;\n\n /**\n * UTC time from which the explicit VIP assignment is effective. Omitted\n * while a new account is using the default VIP0 tier.\n *\n * @generated from field: optional google.protobuf.Timestamp effective_from = 8;\n */\n effectiveFrom?: Timestamp | undefined;\n\n /**\n * UTC time at which the explicit assignment was evaluated. Omitted while a\n * new account is using the default VIP0 tier.\n *\n * @generated from field: optional google.protobuf.Timestamp evaluated_at = 9;\n */\n evaluatedAt?: Timestamp | undefined;\n\n /**\n * UTC cutoff of the rolling metrics used for this assignment. Omitted when\n * complete qualification metrics are unavailable.\n *\n * @generated from field: optional google.protobuf.Timestamp metrics_as_of = 10;\n */\n metricsAsOf?: Timestamp | undefined;\n\n /**\n * Entry thresholds for the tier immediately above the effective tier.\n * Omitted when the effective tier is VIP10.\n *\n * @generated from field: optional vip.v1.NextVIPTierThresholds next_tier_thresholds = 11;\n */\n nextTierThresholds?: NextVIPTierThresholds | undefined;\n};\n\n/**\n * Describes the message vip.v1.GetVIPStatusResponse.\n * Use `create(GetVIPStatusResponseSchema)` to create a new message.\n */\nexport const GetVIPStatusResponseSchema: GenMessage<GetVIPStatusResponse> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 5);\n\n/**\n * VIPService serves public VIP policy reference data and the authenticated\n * caller-root qualification status.\n *\n * @generated from service vip.v1.VIPService\n */\nexport const VIPService: GenService<{\n /**\n * List the complete active VIP0 through VIP10 tier catalog in ascending tier\n * order.\n *\n * @generated from rpc vip.v1.VIPService.ListVIPTiers\n */\n listVIPTiers: {\n methodKind: \"unary\";\n input: typeof ListVIPTiersRequestSchema;\n output: typeof ListVIPTiersResponseSchema;\n },\n /**\n * Get VIP qualification status for the authenticated caller's root account.\n *\n * @generated from rpc vip.v1.VIPService.GetVIPStatus\n */\n getVIPStatus: {\n methodKind: \"unary\";\n input: typeof GetVIPStatusRequestSchema;\n output: typeof GetVIPStatusResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_vip_v1_vip, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;AAcA,MAAa,kBACX,uBAAS,ozDAAozD,CAAC,gCAAgC,0BAA0B,CAAC;;;;;AAwD33D,MAAa,gBACX,0BAAY,iBAAiB,CAAC;;;;;AAchC,MAAa,4BACX,0BAAY,iBAAiB,CAAC;;;;;AA2ChC,MAAa,6BACX,0BAAY,iBAAiB,CAAC;;;;;AAsChC,MAAa,8BACX,0BAAY,iBAAiB,CAAC;;;;;AAgBhC,MAAa,4BACX,0BAAY,iBAAiB,CAAC;;;;;AAqGhC,MAAa,6BACX,0BAAY,iBAAiB,CAAC;;;;;;;AAQhC,MAAa,aAuBX,0BAAY,iBAAiB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -53,6 +53,10 @@ import { ArchiveWhiteboardBoardInput, ArchiveWhiteboardBoardResult, CreateWhiteb
|
|
|
53
53
|
import { ZippedAssetSupplyBatch, ZippedAssetSupplyUpdate } from "./services/zipper/zipper.schemas.js";
|
|
54
54
|
import { SubscribeZippedAssetSupplyInput } from "./services/zipper/zipper.js";
|
|
55
55
|
import { BeginMfaChallengeInput, BeginMfaChallengeResult, BeginPasskeyEnrollmentInput, BeginPasskeyEnrollmentResult, BeginTotpEnrollmentInput, BeginTotpEnrollmentResult, ClaimFreshStepUpInput, ClaimFreshStepUpResult, CompleteMfaChallengeResult, ConsumeFreshStepUpInput, DeleteMfaFactorInput, FinishPasskeyChallengeInput, FinishPasskeyEnrollmentInput, FinishPasskeyEnrollmentResult, FinishTotpEnrollmentInput, FinishTotpEnrollmentResult, ListMfaFactorsResult, MfaFactor, MfaSessionInfo, RegenerateRecoveryCodesInput, RegenerateRecoveryCodesResult, ReleaseFreshStepUpInput, UpdateMfaFactorInput, UpdateMfaFactorResult, VerifyRecoveryCodeChallengeInput, VerifyTotpChallengeInput } from "./services/mfa/mfa.schemas.js";
|
|
56
|
+
import { NextVipTierThresholds, VipStatus, VipTier, VipTierCatalog } from "./services/vip/vip.schemas.js";
|
|
57
|
+
import { GetSpotFeeRatesInput, SpotFeeRate } from "./services/fees/fees.schemas.js";
|
|
58
|
+
import { TradingRateLimitClass } from "./services/rate-limits/rate-limits.codecs.js";
|
|
59
|
+
import { RateLimitConfig, TradingRateLimitRule, TradingRateLimits } from "./services/rate-limits/rate-limits.schemas.js";
|
|
56
60
|
import { PolyesterClient, PolyesterClientBaseConfig, PolyesterClientConfig, PolyesterRealtimeAuthConfig } from "./core-client.js";
|
|
57
61
|
import { AuthTokenStorage, AuthTokenStorageSetOptions, CookieAuthTokenStorageOptions, createCookieAuthTokenStorage, createMemoryAuthTokenStorage } from "./services/auth/token-storage.js";
|
|
58
62
|
import { ActiveAccountInfo, AuthHydrationData, AuthLoginMethod, AuthState, ServerSessionSnapshot, SessionData } from "./services/auth/session.types.js";
|
|
@@ -77,6 +81,7 @@ import "./services/balances/balances.types.js";
|
|
|
77
81
|
import "./services/candles/candles.types.js";
|
|
78
82
|
import "./services/chain-analytics/chain-analytics.types.js";
|
|
79
83
|
import "./services/deposit/deposit.types.js";
|
|
84
|
+
import "./services/fees/fees.types.js";
|
|
80
85
|
import "./services/guard-signer/guard-signer.types.js";
|
|
81
86
|
import "./services/heatmap/heatmap.types.js";
|
|
82
87
|
import "./services/internal-transfers/internal-transfers.types.js";
|
|
@@ -90,12 +95,14 @@ import "./services/policies/api-key-policies/api-key-policies.types.js";
|
|
|
90
95
|
import { PolicyAction, PolicyMarketScope } from "./services/policies/shared.js";
|
|
91
96
|
import "./services/policies/policies.types.js";
|
|
92
97
|
import "./services/policies/subaccount-policies/subaccount-policies.types.js";
|
|
98
|
+
import "./services/rate-limits/rate-limits.types.js";
|
|
93
99
|
import "./services/social-verification/social-verification.types.js";
|
|
94
100
|
import "./services/subaccounts/subaccounts.types.js";
|
|
95
101
|
import "./services/trades/trades.types.js";
|
|
96
102
|
import "./services/trading-withdraws/trading-withdraws.types.js";
|
|
97
103
|
import "./services/transfers/transfers.types.js";
|
|
98
104
|
import "./services/triggers/triggers.types.js";
|
|
105
|
+
import "./services/vip/vip.types.js";
|
|
99
106
|
import "./services/whiteboard/whiteboard.types.js";
|
|
100
107
|
import "./services/zipper/zipper.types.js";
|
|
101
|
-
export { type AccountCodeValue, type AccountIdentity, type AccountScope, type AccountScopedInput, type AccountSigner, type AccountSignerAuthEvents, type AccountSignerConfig, type CreateSubaccountResult as AccountSignerCreateSubaccountResult, type AccountSignerFactory, type ActiveAccountInfo, type AddressBook, type AddressBookEntries, type AddressBookEntriesView, type AddressBookEntry, type AddressBookRecentDestinationsView, type AddressBookTag, type AddressBookTagSummary, type AddressBookView, type AddressBookViewInvalidated, AlreadyExistsError, type ApiKey, type ApiKeyEd25519AuthProvider, type ApiKeyIdInput, type ApiKeyPolicy, type ApiKeyPolicyApplyInput, type ApiKeyPolicyCreateInput, type ApiKeyPolicyUpdateInput, type ApiKeyStatus, type ApiKeysCreateInput, type ApiKeysListInput, type ApiKeysUpdateInput, type ArchiveWhiteboardBoardInput, type ArchiveWhiteboardBoardResult, type AssetConfig, type AuthHydrationData, type AuthLoginMethod, type AuthState, type AuthTokenStorage, type AuthTokenStorageSetOptions, AuthenticationError, type BalanceHistoryInput, type BalanceHistoryResponse, type BalanceRange, type BatchCancelOrderInput, type BatchCancelOrderResult, type BatchCancelOrdersInput, type BatchCancelOrdersResult, type BatchCreateOrderResult, type BatchCreateOrdersInput, type BatchCreateOrdersResult, type BatchGuardApprovals, type BatchReplaceAdmissionItem, type BatchReplaceOrdersInput, type BatchReplaceOrdersResult, type BatchSignProtectedActionInput, type BeginMfaChallengeInput, type BeginMfaChallengeResult, type BeginPasskeyEnrollmentInput, type BeginPasskeyEnrollmentResult, type BeginTotpEnrollmentInput, type BeginTotpEnrollmentResult, type CancelAllAfterInput, type CancelAllAfterResult, type CancelAllOrdersInput, type CancelAllOrdersResponse, type CancelOrderInput, type CancelOrderResult, type CancelTriggerInput, type CancelTriggerResult, type Candle, type CandleColumnar, type CandleColumnarInt, type CandleInt, type ChainAnalyticsRange, type ClaimFreshStepUpInput, type ClaimFreshStepUpResult, type ColumnarTimeWindow, type CompleteMfaChallengeResult, ConfigurationError, type ConnectChannelParams, type ConsumeFreshStepUpInput, type CookieAuthTokenStorageOptions, type CopyAddressBookEntryInput, type CreateAddressBookEntryInput, type CreateAddressBookTagInput, type CreateDepositAddressInput, type CreateGuardSignerWalletResult, type CreateInternalTransferInput, type CreateInternalTransferResult, type CreateOrderResult, type CreateOrderbookSubscriptionInput, type CreatePolyesterAccountSignerParams, type CreatePolyesterEnvironmentParams, type CreateServerClientFromCookiesParams, type CreateServerClientFromRequestParams, type CreateSubaccountInput, type CreateSubaccountParams, type CreateSubaccountResult$1 as CreateSubaccountResult, type CreateSubaccountResult$1 as CreateSubaccountServiceResult, type CreateTradingWithdrawResult, type CreateTradingWithdrawToExternalChainInput, type CreateTradingWithdrawToExternalChainServiceInput, type CreateTradingWithdrawToFundingInput, type CreateTradingWithdrawToFundingServiceInput, type CreateTriggerInput, type CreateTriggerResult, type CreateWhiteboardBoardInput, type CreateWhiteboardBoardResult, type DeleteAddressBookEntryInput, type DeleteAddressBookTagInput, type DeleteMfaFactorInput, type DepositAddress, type DepositWithdrawConfig, type EquityGroupBy, type EquityHistoryInput, type EquityHistoryResponse, type EquitySeries, type EquitySeriesGrouping, type EvmHex, type ExportGuardSignerWalletResult, type FinishPasskeyChallengeInput, type FinishPasskeyEnrollmentInput, type FinishPasskeyEnrollmentResult, type FinishTotpEnrollmentInput, type FinishTotpEnrollmentResult, type GetAddressBookViewInput, type GetBatchReplaceStatusInput, type GetBatchReplaceStatusResult, type GetCandlesColumnsInput, type GetCandlesInput, type GetLifecycleFlowInput, type GetLifecycleFlowOutput, type GetMarketTradesInput, type GetOrderDetailsInput, type GetOrderbookHeatmapInput, type GetOrderbookInput, type GetTriggerInput, type GetUnifiedAssetBalancesInput, type GetUserTradesInput, type GetVerificationResponse, type GetWhiteboardBoardInput, type GetWhiteboardBoardResult, type GetZippedAssetSupplyGroupInput, type GetZippedAssetSupplyInput, type GuardApproval, type GuardSignerScopedInput, type GuardSignerStatus, type HeatmapDepthValue, type HeatmapIntervalValue, type HeatmapQuantityModeValue, type HexAddress, InternalServerError, type InternalTransferDestination, type InternalTransferWhitelistEntries, type InternalTransferWhitelistEntry, type InviteSubaccountMemberInput, type JwtAuthProvider, type LadderDetailsOutput, type LedgerBalance, type LedgerTransfer, type LedgerTransferSide, type LifecycleAssetIds, type LifecycleFlowDetail, type LifecycleFlowState, type LifecycleFlowStep, type LifecycleFlowStepActivity, type LifecycleFlowSummary, type LifecycleFlowSummaryProgress, type LifecycleFlowTimelineItem, type LifecycleFlowTxMatch, type LifecycleListOrderBy, type LifecycleListScope, type LifecycleReason, type LifecycleRequestFee, type LifecycleRequestFeeStatus, type LifecycleSort, type LifecycleTxLookupKind, type LifecycleZipperReason, type ListAddressBookEntriesInput, type ListApiKeyPoliciesResponse, type ListDepositAddressesInput, type ListInternalTransferWhitelistEntriesInput, type ListLifecycleFlowsByTxInput, type ListLifecycleFlowsByTxOutput, type ListLifecycleFlowsInput, type ListLifecycleFlowsOutput, type ListMarketOverviewInput, type ListMfaFactorsResult, type ListSubaccountInvitesInput, type ListTransferCounterpartiesInput, type ListTransferDestinationsInput, type ListTransfersInput, type ListTriggerEventsInput, type ListTriggerEventsResult, type ListTriggersInput, type ListTriggersResult, type ListWhiteboardBoardsInput, type ListWhiteboardBoardsResult, type LoginOptions, type LoginResult, type LoginWithWalletInput, type LoginWithWalletResponse, type MarketOverview, type MarketOverviewOrderBy, type MarketOverviewSort, type MarketOverviewSparkline, type MarketTrade, type Me, MfaEnrollmentRequiredError, type MfaFactor, MfaLastFactorRequiredError, MfaRequiredError, type MfaSessionInfo, MfaVerificationError, type MfaVerificationFailureReason, type MintWhiteboardJoinTokenInput, type MirroredWithdrawWhitelistEntry, type ModifyOrderInput, type ModifyOrderResult, type ModifyTriggerInput, type ModifyTriggerResult, NetworkError, type NewOrderInput, type Nonce, type OpenOrdersInput, type Order, type OrderDetails, type OrderErrorCode, type OrderErrorDetail, type OrderHistoryInput, type OrderIntentInput, type OrderTransfer, type OrderbookData, type OrderbookHeatmapDeltaBucket, type OrderbookHeatmapDeltaChain, type OrderbookHeatmapDeltaLevels, type OrderbookHeatmapKeyframe, type OrderbookHeatmapLevels, type OrderbookHeatmapLiveBucket, type OrderbookHeatmapResponse, type OrderbookLevel, type OrderbookStreamHandlers, type OrderbookSubscription, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, type PairConfig, type PairStatus, PermissionError, type PolicyAction, PolicyInUseError, PolicyLockedError, type PolicyMarketScope, PolicyScopeMismatchError, type PolyesterAccountAbstractionEnvironment, PolyesterBrowserClient, type PolyesterBrowserClientConfig, PolyesterClient, type PolyesterClientBaseConfig, type PolyesterClientConfig, type PolyesterContractsEnvironment, type PolyesterEntryPointConfig, type PolyesterEnvironment, PolyesterError, type PolyesterErrorCode, type PolyesterErrorOptions, type PolyesterMutationOptions, type PolyesterRealtime, type PolyesterRealtimeAuthConfig, type PolyesterRequestOptions, type PolyesterSafeDeploymentConfig, PolyesterServerClient, type PolyesterServerClientConfig, PreconditionFailedError, type PreparedTradingWithdraw, type PreviewOrderResult, type Profile, type RateLimitDetail, RateLimitError, type RateLimitErrorOptions, type RateLimitFailureReason, type RateLimitPolicyClass, type RateLimitRefillModel, type RateLimitScope, type RegenerateRecoveryCodesInput, type RegenerateRecoveryCodesResult, type ReleaseFreshStepUpInput, type RemoveSubaccountMemberInput, RequestError, type ResolveAccountInput, type ResolvedAccount, type ResolvedInternalTransferDestination, ResourceNotFoundError, type RespondSubaccountInviteInput, RevisionConflictError, type RiskPolicyInput, type RotateGuardSignerWalletResult, type SdkSubscriptionErrorContext, type ServerSessionSnapshot, ServiceUnavailableError, type SessionData, SessionElevationRequiredError, type SetSubaccountMemberMfaRequirementInput, type SignProtectedActionInput, type SocialProvider, type SocialProviderInput, type SocialVerification, type SocialVerificationMethod, type SocialVerificationStatus, type SparklineIntervalName, type SpotConfig, StaleQuoteError, type StartVerificationInput, type StartVerificationResponse, StepUpRequiredError, type StopDetailsOutput, type StopLossInput, type Subaccount, type SubaccountActivityInput, type SubaccountEvent, type SubaccountIdInput, type SubaccountInvite, type SubaccountInviteStatus, type SubaccountMember, type SubaccountPolicy, type SubaccountPolicyApplyInput, type SubaccountPolicyCreateInput, type SubaccountPolicyUpdateInput, type SubaccountRole, type SubaccountScopedInput, type SubaccountStatus, type SubscribeHandlers, type SubscribeZippedAssetSupplyInput, type TakeProfitInput, type Timeframe, TimeoutError, type Trade, type TradingWithdrawSigningConfig, type TradingWithdrawWalletSigner, type TradingWithdrawWalletTypedData, type TrailingDetailsOutput, type TrailingStopInput, type TransferCodeValue, type TransferCounterparties, type TransferCounterparty, type TransferDestination, type TransferDestinations, type TransferSideKind, TransientError, type Transports, type Trigger, type TriggerDetailsOutput, type TriggerEvent, type TwapDetailsOutput, type UnifiedAssetBalancesResponse, type UpdateAddressBookEntryInput, type UpdateAddressBookTagInput, type UpdateMfaFactorInput, type UpdateMfaFactorResult, type UpdateProfileInput, type UpdateSubaccountInput, type UpdateSubaccountMemberRoleInput, type UpdateWhiteboardBoardAclInput, type UpdateWhiteboardBoardAclResult, type UpdateWhiteboardBoardInput, type UpdateWhiteboardBoardResult, type UsernameHistoryEntry, type ValidateWithdrawDestinationInput, type ValidateWithdrawDestinationResult, ValidationError, type VerificationReadyResponse, type VerifyRecoveryCodeChallengeInput, type VerifyTotpChallengeInput, type WhiteboardAccess, type WhiteboardAclEntry, type WhiteboardAclEntryInput, type WhiteboardAclSubjectType, type WhiteboardAudience, type WhiteboardBoard, type WhiteboardBoardDetails, type WhiteboardBoardListItem, type WhiteboardJoinTokenResult, type WhiteboardPermissions, type WhiteboardPresencePayload, type WhiteboardResolvedRole, type WhiteboardSnapshot, type WhiteboardWritableRole, type WithdrawWhitelistView, type ZippedAssetSupplyBatch, type ZippedAssetSupplyGroupResponse, type ZippedAssetSupplyResponse, type ZippedAssetSupplySeries, type ZippedAssetSupplyUpdate, type ZipperAssetChainVariant, type ZipperAssetConfig, type ZipperChainConfig, type ZipperChainContractConfig, checksumEvmAddress, columnarTimestampSecAt, compareUnsignedIntegerStrings, connectErrorToPolyesterError, createCookieAuthTokenStorage, createErrorMappingInterceptor, createMemoryAuthTokenStorage, createPolyesterEnvironment, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatUserFacingError, getOrderErrorDetail, isAbortError, isEvmAddress, isEvmAddressStrict, isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError, isSessionElevationRequiredError, isStaleQuoteError, keccak256Hex, mergeLedgerBalances, normalizeErrorMessage, shouldApplyReconciliationUpdate, tsObjToNsString as timestampToNanoseconds, toPolyesterError, validateCreateAddressBookEntryInput };
|
|
108
|
+
export { type AccountCodeValue, type AccountIdentity, type AccountScope, type AccountScopedInput, type AccountSigner, type AccountSignerAuthEvents, type AccountSignerConfig, type CreateSubaccountResult as AccountSignerCreateSubaccountResult, type AccountSignerFactory, type ActiveAccountInfo, type AddressBook, type AddressBookEntries, type AddressBookEntriesView, type AddressBookEntry, type AddressBookRecentDestinationsView, type AddressBookTag, type AddressBookTagSummary, type AddressBookView, type AddressBookViewInvalidated, AlreadyExistsError, type ApiKey, type ApiKeyEd25519AuthProvider, type ApiKeyIdInput, type ApiKeyPolicy, type ApiKeyPolicyApplyInput, type ApiKeyPolicyCreateInput, type ApiKeyPolicyUpdateInput, type ApiKeyStatus, type ApiKeysCreateInput, type ApiKeysListInput, type ApiKeysUpdateInput, type ArchiveWhiteboardBoardInput, type ArchiveWhiteboardBoardResult, type AssetConfig, type AuthHydrationData, type AuthLoginMethod, type AuthState, type AuthTokenStorage, type AuthTokenStorageSetOptions, AuthenticationError, type BalanceHistoryInput, type BalanceHistoryResponse, type BalanceRange, type BatchCancelOrderInput, type BatchCancelOrderResult, type BatchCancelOrdersInput, type BatchCancelOrdersResult, type BatchCreateOrderResult, type BatchCreateOrdersInput, type BatchCreateOrdersResult, type BatchGuardApprovals, type BatchReplaceAdmissionItem, type BatchReplaceOrdersInput, type BatchReplaceOrdersResult, type BatchSignProtectedActionInput, type BeginMfaChallengeInput, type BeginMfaChallengeResult, type BeginPasskeyEnrollmentInput, type BeginPasskeyEnrollmentResult, type BeginTotpEnrollmentInput, type BeginTotpEnrollmentResult, type CancelAllAfterInput, type CancelAllAfterResult, type CancelAllOrdersInput, type CancelAllOrdersResponse, type CancelOrderInput, type CancelOrderResult, type CancelTriggerInput, type CancelTriggerResult, type Candle, type CandleColumnar, type CandleColumnarInt, type CandleInt, type ChainAnalyticsRange, type ClaimFreshStepUpInput, type ClaimFreshStepUpResult, type ColumnarTimeWindow, type CompleteMfaChallengeResult, ConfigurationError, type ConnectChannelParams, type ConsumeFreshStepUpInput, type CookieAuthTokenStorageOptions, type CopyAddressBookEntryInput, type CreateAddressBookEntryInput, type CreateAddressBookTagInput, type CreateDepositAddressInput, type CreateGuardSignerWalletResult, type CreateInternalTransferInput, type CreateInternalTransferResult, type CreateOrderResult, type CreateOrderbookSubscriptionInput, type CreatePolyesterAccountSignerParams, type CreatePolyesterEnvironmentParams, type CreateServerClientFromCookiesParams, type CreateServerClientFromRequestParams, type CreateSubaccountInput, type CreateSubaccountParams, type CreateSubaccountResult$1 as CreateSubaccountResult, type CreateSubaccountResult$1 as CreateSubaccountServiceResult, type CreateTradingWithdrawResult, type CreateTradingWithdrawToExternalChainInput, type CreateTradingWithdrawToExternalChainServiceInput, type CreateTradingWithdrawToFundingInput, type CreateTradingWithdrawToFundingServiceInput, type CreateTriggerInput, type CreateTriggerResult, type CreateWhiteboardBoardInput, type CreateWhiteboardBoardResult, type DeleteAddressBookEntryInput, type DeleteAddressBookTagInput, type DeleteMfaFactorInput, type DepositAddress, type DepositWithdrawConfig, type EquityGroupBy, type EquityHistoryInput, type EquityHistoryResponse, type EquitySeries, type EquitySeriesGrouping, type EvmHex, type ExportGuardSignerWalletResult, type FinishPasskeyChallengeInput, type FinishPasskeyEnrollmentInput, type FinishPasskeyEnrollmentResult, type FinishTotpEnrollmentInput, type FinishTotpEnrollmentResult, type GetAddressBookViewInput, type GetBatchReplaceStatusInput, type GetBatchReplaceStatusResult, type GetCandlesColumnsInput, type GetCandlesInput, type GetLifecycleFlowInput, type GetLifecycleFlowOutput, type GetMarketTradesInput, type GetOrderDetailsInput, type GetOrderbookHeatmapInput, type GetOrderbookInput, type GetSpotFeeRatesInput, type GetTriggerInput, type GetUnifiedAssetBalancesInput, type GetUserTradesInput, type GetVerificationResponse, type GetWhiteboardBoardInput, type GetWhiteboardBoardResult, type GetZippedAssetSupplyGroupInput, type GetZippedAssetSupplyInput, type GuardApproval, type GuardSignerScopedInput, type GuardSignerStatus, type HeatmapDepthValue, type HeatmapIntervalValue, type HeatmapQuantityModeValue, type HexAddress, InternalServerError, type InternalTransferDestination, type InternalTransferWhitelistEntries, type InternalTransferWhitelistEntry, type InviteSubaccountMemberInput, type JwtAuthProvider, type LadderDetailsOutput, type LedgerBalance, type LedgerTransfer, type LedgerTransferSide, type LifecycleAssetIds, type LifecycleFlowDetail, type LifecycleFlowState, type LifecycleFlowStep, type LifecycleFlowStepActivity, type LifecycleFlowSummary, type LifecycleFlowSummaryProgress, type LifecycleFlowTimelineItem, type LifecycleFlowTxMatch, type LifecycleListOrderBy, type LifecycleListScope, type LifecycleReason, type LifecycleRequestFee, type LifecycleRequestFeeStatus, type LifecycleSort, type LifecycleTxLookupKind, type LifecycleZipperReason, type ListAddressBookEntriesInput, type ListApiKeyPoliciesResponse, type ListDepositAddressesInput, type ListInternalTransferWhitelistEntriesInput, type ListLifecycleFlowsByTxInput, type ListLifecycleFlowsByTxOutput, type ListLifecycleFlowsInput, type ListLifecycleFlowsOutput, type ListMarketOverviewInput, type ListMfaFactorsResult, type ListSubaccountInvitesInput, type ListTransferCounterpartiesInput, type ListTransferDestinationsInput, type ListTransfersInput, type ListTriggerEventsInput, type ListTriggerEventsResult, type ListTriggersInput, type ListTriggersResult, type ListWhiteboardBoardsInput, type ListWhiteboardBoardsResult, type LoginOptions, type LoginResult, type LoginWithWalletInput, type LoginWithWalletResponse, type MarketOverview, type MarketOverviewOrderBy, type MarketOverviewSort, type MarketOverviewSparkline, type MarketTrade, type Me, MfaEnrollmentRequiredError, type MfaFactor, MfaLastFactorRequiredError, MfaRequiredError, type MfaSessionInfo, MfaVerificationError, type MfaVerificationFailureReason, type MintWhiteboardJoinTokenInput, type MirroredWithdrawWhitelistEntry, type ModifyOrderInput, type ModifyOrderResult, type ModifyTriggerInput, type ModifyTriggerResult, NetworkError, type NewOrderInput, type NextVipTierThresholds, type Nonce, type OpenOrdersInput, type Order, type OrderDetails, type OrderErrorCode, type OrderErrorDetail, type OrderHistoryInput, type OrderIntentInput, type OrderTransfer, type OrderbookData, type OrderbookHeatmapDeltaBucket, type OrderbookHeatmapDeltaChain, type OrderbookHeatmapDeltaLevels, type OrderbookHeatmapKeyframe, type OrderbookHeatmapLevels, type OrderbookHeatmapLiveBucket, type OrderbookHeatmapResponse, type OrderbookLevel, type OrderbookStreamHandlers, type OrderbookSubscription, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, type PairConfig, type PairStatus, PermissionError, type PolicyAction, PolicyInUseError, PolicyLockedError, type PolicyMarketScope, PolicyScopeMismatchError, type PolyesterAccountAbstractionEnvironment, PolyesterBrowserClient, type PolyesterBrowserClientConfig, PolyesterClient, type PolyesterClientBaseConfig, type PolyesterClientConfig, type PolyesterContractsEnvironment, type PolyesterEntryPointConfig, type PolyesterEnvironment, PolyesterError, type PolyesterErrorCode, type PolyesterErrorOptions, type PolyesterMutationOptions, type PolyesterRealtime, type PolyesterRealtimeAuthConfig, type PolyesterRequestOptions, type PolyesterSafeDeploymentConfig, PolyesterServerClient, type PolyesterServerClientConfig, PreconditionFailedError, type PreparedTradingWithdraw, type PreviewOrderResult, type Profile, type RateLimitConfig, type RateLimitDetail, RateLimitError, type RateLimitErrorOptions, type RateLimitFailureReason, type RateLimitPolicyClass, type RateLimitRefillModel, type RateLimitScope, type RegenerateRecoveryCodesInput, type RegenerateRecoveryCodesResult, type ReleaseFreshStepUpInput, type RemoveSubaccountMemberInput, RequestError, type ResolveAccountInput, type ResolvedAccount, type ResolvedInternalTransferDestination, ResourceNotFoundError, type RespondSubaccountInviteInput, RevisionConflictError, type RiskPolicyInput, type RotateGuardSignerWalletResult, type SdkSubscriptionErrorContext, type ServerSessionSnapshot, ServiceUnavailableError, type SessionData, SessionElevationRequiredError, type SetSubaccountMemberMfaRequirementInput, type SignProtectedActionInput, type SocialProvider, type SocialProviderInput, type SocialVerification, type SocialVerificationMethod, type SocialVerificationStatus, type SparklineIntervalName, type SpotConfig, type SpotFeeRate, StaleQuoteError, type StartVerificationInput, type StartVerificationResponse, StepUpRequiredError, type StopDetailsOutput, type StopLossInput, type Subaccount, type SubaccountActivityInput, type SubaccountEvent, type SubaccountIdInput, type SubaccountInvite, type SubaccountInviteStatus, type SubaccountMember, type SubaccountPolicy, type SubaccountPolicyApplyInput, type SubaccountPolicyCreateInput, type SubaccountPolicyUpdateInput, type SubaccountRole, type SubaccountScopedInput, type SubaccountStatus, type SubscribeHandlers, type SubscribeZippedAssetSupplyInput, type TakeProfitInput, type Timeframe, TimeoutError, type Trade, type TradingRateLimitClass, type TradingRateLimitRule, type TradingRateLimits, type TradingWithdrawSigningConfig, type TradingWithdrawWalletSigner, type TradingWithdrawWalletTypedData, type TrailingDetailsOutput, type TrailingStopInput, type TransferCodeValue, type TransferCounterparties, type TransferCounterparty, type TransferDestination, type TransferDestinations, type TransferSideKind, TransientError, type Transports, type Trigger, type TriggerDetailsOutput, type TriggerEvent, type TwapDetailsOutput, type UnifiedAssetBalancesResponse, type UpdateAddressBookEntryInput, type UpdateAddressBookTagInput, type UpdateMfaFactorInput, type UpdateMfaFactorResult, type UpdateProfileInput, type UpdateSubaccountInput, type UpdateSubaccountMemberRoleInput, type UpdateWhiteboardBoardAclInput, type UpdateWhiteboardBoardAclResult, type UpdateWhiteboardBoardInput, type UpdateWhiteboardBoardResult, type UsernameHistoryEntry, type ValidateWithdrawDestinationInput, type ValidateWithdrawDestinationResult, ValidationError, type VerificationReadyResponse, type VerifyRecoveryCodeChallengeInput, type VerifyTotpChallengeInput, type VipStatus, type VipTier, type VipTierCatalog, type WhiteboardAccess, type WhiteboardAclEntry, type WhiteboardAclEntryInput, type WhiteboardAclSubjectType, type WhiteboardAudience, type WhiteboardBoard, type WhiteboardBoardDetails, type WhiteboardBoardListItem, type WhiteboardJoinTokenResult, type WhiteboardPermissions, type WhiteboardPresencePayload, type WhiteboardResolvedRole, type WhiteboardSnapshot, type WhiteboardWritableRole, type WithdrawWhitelistView, type ZippedAssetSupplyBatch, type ZippedAssetSupplyGroupResponse, type ZippedAssetSupplyResponse, type ZippedAssetSupplySeries, type ZippedAssetSupplyUpdate, type ZipperAssetChainVariant, type ZipperAssetConfig, type ZipperChainConfig, type ZipperChainContractConfig, checksumEvmAddress, columnarTimestampSecAt, compareUnsignedIntegerStrings, connectErrorToPolyesterError, createCookieAuthTokenStorage, createErrorMappingInterceptor, createMemoryAuthTokenStorage, createPolyesterEnvironment, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatUserFacingError, getOrderErrorDetail, isAbortError, isEvmAddress, isEvmAddressStrict, isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError, isSessionElevationRequiredError, isStaleQuoteError, keccak256Hex, mergeLedgerBalances, normalizeErrorMessage, shouldApplyReconciliationUpdate, tsObjToNsString as timestampToNanoseconds, toPolyesterError, validateCreateAddressBookEntryInput };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parse } from "../../shared/validation.js";
|
|
2
1
|
import { ResolveService } from "../../gen/auth/v1/resolve_pb.js";
|
|
2
|
+
import { parse } from "../../shared/validation.js";
|
|
3
3
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
4
4
|
import { ResolveAccountInputSchema, ResolvedAccountArraySchema } from "./accounts.schemas.js";
|
|
5
5
|
import { createClient } from "@connectrpc/connect";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.js","names":["#client","ProtoResolve.ResolveService"
|
|
1
|
+
{"version":3,"file":"accounts.js","names":["#client","ProtoResolve.ResolveService"],"sources":["../../../src/services/accounts/accounts.ts"],"sourcesContent":["import { createClient, type Client, type Transport } from \"@connectrpc/connect\";\nimport * as ProtoResolve from \"../../gen/auth/v1/resolve_pb.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n toConnectCallOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport {\n ResolveAccountInputSchema,\n ResolvedAccountArraySchema,\n type ResolveAccountInput,\n type ResolvedAccount,\n} from \"./accounts.schemas.js\";\n\n/**\n * Resolves user-entered account identifiers into transfer/shareable root or subaccount destinations.\n */\nexport class AccountsService {\n #client: Client<typeof ProtoResolve.ResolveService>;\n\n constructor(transport: Transport) {\n this.#client = createClient(ProtoResolve.ResolveService, transport);\n }\n\n /**\n * Resolves a username, opaque account/subaccount ID, or smart-account address into matching destination accounts; set includeSubaccounts for internal-transfer flows that may target subaccounts.\n */\n async resolve(\n input: ResolveAccountInput,\n options?: PolyesterRequestOptions,\n ): Promise<ResolvedAccount[]> {\n const validatedInput = parse(ResolveAccountInputSchema, input);\n const res = await this.#client.resolveAccount(\n validatedInput,\n toConnectCallOptions(options),\n );\n\n return parse(ResolvedAccountArraySchema, res.matches);\n }\n}\n"],"mappings":";;;;;;;;;AAiBA,IAAa,kBAAb,MAA6B;CACzB;CAEA,YAAY,WAAsB;EAC9B,KAAKA,UAAU,aAAaC,gBAA6B,SAAS;CACtE;;;;CAKA,MAAM,QACF,OACA,SAC0B;EAC1B,MAAM,iBAAiB,MAAM,2BAA2B,KAAK;EAC7D,MAAM,MAAM,MAAM,KAAKD,QAAQ,eAC3B,gBACA,qBAAqB,OAAO,CAChC;EAEA,OAAO,MAAM,4BAA4B,IAAI,OAAO;CACxD;AACJ"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { validation_d_exports } from "../../shared/validation.js";
|
|
2
1
|
import { ResolveHint } from "../../gen/auth/v1/resolve_pb.js";
|
|
2
|
+
import * as v from "valibot";
|
|
3
3
|
//#region src/services/accounts/accounts.schemas.d.ts
|
|
4
|
-
declare const ResolveAccountInputSchema:
|
|
5
|
-
readonly query:
|
|
6
|
-
readonly hint:
|
|
7
|
-
readonly includeSubaccounts:
|
|
4
|
+
declare const ResolveAccountInputSchema: v.ObjectSchema<{
|
|
5
|
+
readonly query: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "query is required">]>;
|
|
6
|
+
readonly hint: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, ResolveHint>]>;
|
|
7
|
+
readonly includeSubaccounts: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
8
8
|
}, undefined>;
|
|
9
|
-
type ResolveAccountInput =
|
|
10
|
-
declare const ResolvedAccountSchema:
|
|
11
|
-
readonly smartAccountAddress:
|
|
12
|
-
readonly kind:
|
|
13
|
-
readonly rootUsername:
|
|
14
|
-
readonly subaccountLabel:
|
|
15
|
-
readonly accountId:
|
|
9
|
+
type ResolveAccountInput = v.InferInput<typeof ResolveAccountInputSchema>;
|
|
10
|
+
declare const ResolvedAccountSchema: v.ObjectSchema<{
|
|
11
|
+
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
12
|
+
readonly kind: v.PicklistSchema<["root", "sub"], undefined>;
|
|
13
|
+
readonly rootUsername: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
14
|
+
readonly subaccountLabel: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
15
|
+
readonly accountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
16
16
|
}, undefined>;
|
|
17
|
-
type ResolvedAccount =
|
|
17
|
+
type ResolvedAccount = v.InferOutput<typeof ResolvedAccountSchema>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { ResolveAccountInput, ResolveAccountInputSchema, ResolvedAccount, ResolvedAccountSchema };
|
|
20
20
|
//# sourceMappingURL=accounts.schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.schemas.d.ts","names":[],"sources":["../../../src/services/accounts/accounts.schemas.ts"],"mappings":";;;cAca,2BAAyB,
|
|
1
|
+
{"version":3,"file":"accounts.schemas.d.ts","names":[],"sources":["../../../src/services/accounts/accounts.schemas.ts"],"mappings":";;;cAca,2BAAyB,EAAA;;;;;KAS1B,sBAAsB,EAAE,kBAAkB;cAEzC,uBAAqB,EAAA;;;;;;;KAUtB,kBAAkB,EAAE,mBAAmB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { validation_exports } from "../../shared/validation.js";
|
|
2
1
|
import { PublicIdSchema } from "../../shared/schemas.js";
|
|
3
2
|
import "../../gen/auth/v1/resolve_pb.js";
|
|
4
3
|
import { ResolveHintCodec } from "./accounts.codecs.js";
|
|
4
|
+
import * as v from "valibot";
|
|
5
5
|
//#region src/services/accounts/accounts.schemas.ts
|
|
6
6
|
function normalizeResolveHint(value) {
|
|
7
7
|
const raw = (value ?? "").trim();
|
|
@@ -9,19 +9,19 @@ function normalizeResolveHint(value) {
|
|
|
9
9
|
const key = raw.toUpperCase().replace(/^RESOLVE_HINT_/, "");
|
|
10
10
|
return ResolveHintCodec.keyToProtoLookup[key] ?? 0;
|
|
11
11
|
}
|
|
12
|
-
const ResolveAccountInputSchema =
|
|
13
|
-
query:
|
|
14
|
-
hint:
|
|
15
|
-
includeSubaccounts:
|
|
12
|
+
const ResolveAccountInputSchema = v.object({
|
|
13
|
+
query: v.pipe(v.string(), v.trim(), v.minLength(1, "query is required")),
|
|
14
|
+
hint: v.pipe(v.optional(v.string(), ""), v.transform((value) => normalizeResolveHint(value))),
|
|
15
|
+
includeSubaccounts: v.optional(v.boolean(), false)
|
|
16
16
|
});
|
|
17
|
-
const ResolvedAccountSchema =
|
|
18
|
-
smartAccountAddress:
|
|
19
|
-
kind:
|
|
20
|
-
rootUsername:
|
|
21
|
-
subaccountLabel:
|
|
17
|
+
const ResolvedAccountSchema = v.object({
|
|
18
|
+
smartAccountAddress: v.string(),
|
|
19
|
+
kind: v.picklist(["root", "sub"]),
|
|
20
|
+
rootUsername: v.optional(v.string()),
|
|
21
|
+
subaccountLabel: v.optional(v.string()),
|
|
22
22
|
accountId: PublicIdSchema
|
|
23
23
|
});
|
|
24
|
-
const ResolvedAccountArraySchema =
|
|
24
|
+
const ResolvedAccountArraySchema = v.optional(v.array(ResolvedAccountSchema), []);
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ResolveAccountInputSchema, ResolvedAccountArraySchema, ResolvedAccountSchema };
|
|
27
27
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.schemas.js","names":[
|
|
1
|
+
{"version":3,"file":"accounts.schemas.js","names":[],"sources":["../../../src/services/accounts/accounts.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport * as ProtoResolve from \"../../gen/auth/v1/resolve_pb.js\";\nimport { PublicIdSchema } from \"../../shared/schemas.js\";\nimport { ResolveHintCodec } from \"./accounts.codecs.js\";\n\nfunction normalizeResolveHint(value?: string): ProtoResolve.ResolveHint {\n const raw = (value ?? \"\").trim();\n if (!raw) return ProtoResolve.ResolveHint.RESOLVE_HINT_UNSPECIFIED;\n const key = raw.toUpperCase().replace(/^RESOLVE_HINT_/, \"\");\n return (\n ResolveHintCodec.keyToProtoLookup[key] ?? ProtoResolve.ResolveHint.RESOLVE_HINT_UNSPECIFIED\n );\n}\n\nexport const ResolveAccountInputSchema = v.object({\n query: v.pipe(v.string(), v.trim(), v.minLength(1, \"query is required\")),\n hint: v.pipe(\n v.optional(v.string(), \"\"),\n v.transform((value) => normalizeResolveHint(value)),\n ),\n includeSubaccounts: v.optional(v.boolean(), false),\n});\n\nexport type ResolveAccountInput = v.InferInput<typeof ResolveAccountInputSchema>;\n\nexport const ResolvedAccountSchema = v.object({\n smartAccountAddress: v.string(),\n kind: v.picklist([\"root\", \"sub\"]),\n rootUsername: v.optional(v.string()),\n subaccountLabel: v.optional(v.string()),\n accountId: PublicIdSchema,\n});\n\nexport const ResolvedAccountArraySchema = v.optional(v.array(ResolvedAccountSchema), []);\n\nexport type ResolvedAccount = v.InferOutput<typeof ResolvedAccountSchema>;\n"],"mappings":";;;;;AAKA,SAAS,qBAAqB,OAA0C;CACpE,MAAM,OAAO,SAAS,GAAA,CAAI,KAAK;CAC/B,IAAI,CAAC,KAAK,OAAA;CACV,MAAM,MAAM,IAAI,YAAY,CAAC,CAAC,QAAQ,kBAAkB,EAAE;CAC1D,OACI,iBAAiB,iBAAiB,QAAA;AAE1C;AAEA,MAAa,4BAA4B,EAAE,OAAO;CAC9C,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,GAAG,mBAAmB,CAAC;CACvE,MAAM,EAAE,KACJ,EAAE,SAAS,EAAE,OAAO,GAAG,EAAE,GACzB,EAAE,WAAW,UAAU,qBAAqB,KAAK,CAAC,CACtD;CACA,oBAAoB,EAAE,SAAS,EAAE,QAAQ,GAAG,KAAK;AACrD,CAAC;AAID,MAAa,wBAAwB,EAAE,OAAO;CAC1C,qBAAqB,EAAE,OAAO;CAC9B,MAAM,EAAE,SAAS,CAAC,QAAQ,KAAK,CAAC;CAChC,cAAc,EAAE,SAAS,EAAE,OAAO,CAAC;CACnC,iBAAiB,EAAE,SAAS,EAAE,OAAO,CAAC;CACtC,WAAW;AACf,CAAC;AAED,MAAa,6BAA6B,EAAE,SAAS,EAAE,MAAM,qBAAqB,GAAG,CAAC,CAAC"}
|