@polyester/sdk 0.14.1 → 0.15.0
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 +20 -0
- package/dist/core-client.js +1 -1
- package/dist/gen/fees/v1/fees_pb.d.ts +4 -2
- package/dist/gen/fees/v1/fees_pb.d.ts.map +1 -1
- package/dist/gen/fees/v1/fees_pb.js +9 -1
- package/dist/gen/fees/v1/fees_pb.js.map +1 -1
- package/dist/gen/index.d.ts +4 -1
- package/dist/gen/index.js +4 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +4 -2
- package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts.map +1 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.js +13 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.js.map +1 -1
- package/dist/gen/vip/v1/vip_pb.d.ts +4 -2
- package/dist/gen/vip/v1/vip_pb.d.ts.map +1 -1
- package/dist/gen/vip/v1/vip_pb.js +12 -1
- package/dist/gen/vip/v1/vip_pb.js.map +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts.map +1 -1
- package/dist/services/address-book/address-book.schemas.js +2 -1
- package/dist/services/address-book/address-book.schemas.js.map +1 -1
- package/dist/services/candles/candles.d.ts.map +1 -1
- package/dist/services/candles/candles.js +2 -1
- package/dist/services/candles/candles.js.map +1 -1
- package/dist/services/candles/candles.schemas.d.ts +1 -1
- package/dist/services/candles/candles.schemas.d.ts.map +1 -1
- package/dist/services/candles/candles.schemas.js +3 -2
- package/dist/services/candles/candles.schemas.js.map +1 -1
- package/dist/services/chain-analytics/chain-analytics.schemas.d.ts.map +1 -1
- package/dist/services/chain-analytics/chain-analytics.schemas.js +5 -5
- package/dist/services/chain-analytics/chain-analytics.schemas.js.map +1 -1
- package/dist/services/deposit/deposit.schemas.d.ts +3 -3
- package/dist/services/deposit/deposit.schemas.d.ts.map +1 -1
- package/dist/services/deposit/deposit.schemas.js +4 -4
- package/dist/services/deposit/deposit.schemas.js.map +1 -1
- package/dist/services/guard-signer/guard-signer.schemas.d.ts +2 -2
- package/dist/services/guard-signer/guard-signer.schemas.d.ts.map +1 -1
- package/dist/services/guard-signer/guard-signer.schemas.js +2 -1
- 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 +2 -1
- package/dist/services/heatmap/heatmap.js.map +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts.map +1 -1
- package/dist/services/heatmap/heatmap.schemas.js +2 -1
- package/dist/services/heatmap/heatmap.schemas.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +2 -2
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.js +3 -2
- package/dist/services/internal-transfers/internal-transfers.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 +2 -1
- package/dist/services/market-data/market-data.js.map +1 -1
- package/dist/services/market-data/market-data.schemas.d.ts +1 -1
- package/dist/services/market-data/market-data.schemas.js +2 -2
- package/dist/services/market-data/market-data.schemas.js.map +1 -1
- package/dist/services/market-overview/market-overview.schemas.d.ts +1 -1
- package/dist/services/market-overview/market-overview.schemas.js +2 -2
- package/dist/services/market-overview/market-overview.schemas.js.map +1 -1
- package/dist/services/orders/orders-modify.schemas.js +1 -1
- package/dist/services/orders/orders-risk.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-risk.schemas.js +3 -4
- package/dist/services/orders/orders-risk.schemas.js.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +9 -9
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +17 -8
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
- package/dist/services/shared.js +4 -2
- package/dist/services/shared.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +4 -4
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +2 -2
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +3 -2
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
- package/dist/services/trailing-oneof-inputs.js +3 -1
- package/dist/services/trailing-oneof-inputs.js.map +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts.map +1 -1
- package/dist/services/triggers/trigger-input.schemas.js +3 -3
- package/dist/services/triggers/trigger-input.schemas.js.map +1 -1
- package/dist/shared/decimal-surface.d.ts.map +1 -1
- package/dist/shared/decimal-surface.js.map +1 -1
- package/dist/shared/schemas.js +4 -4
- package/dist/shared/schemas.js.map +1 -1
- package/dist/utils/numbers.js +1 -10
- package/dist/utils/numbers.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @polyester/sdk
|
|
2
2
|
|
|
3
|
+
## 0.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- fix(policies): scale subaccount policy `maxOrderSize` to the quote microunits that `max_order_notional` expects. It is now a decimal USDT string on read and write, so a 100,000 USDT cap is `"100000"`, and `"0"` still means no cap. ([#97](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/97))
|
|
8
|
+
|
|
9
|
+
It was previously a `number` written straight to the wire, so a cap of 100000 took effect as 0.1 USDT and small orders failed with `POLICY_MAX_NOTIONAL`. Caps saved before this fix hold raw microunits and read back at their true value now, so re-set any that look a million times too small.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- fix(services): reject inputs that overflow their protobuf `uint32` field with a validation error, instead of accepting them and failing later in the encoder. Covers deposit and address-book chain IDs, market-data, candles and heatmap symbol IDs, `limit` on market overview, and `maxOpenOrders` on subaccount policies. ([#97](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/97))
|
|
14
|
+
|
|
15
|
+
- fix(triggers): enforce the 1 to 10,000 bps `maxSlippage` cap on standalone trigger create and modify, matching attached trailing stops and market IOC orders. ([#97](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/97))
|
|
16
|
+
|
|
17
|
+
## 0.14.2
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Restore the `feesPb`, `tradingRateLimitPb`, and `vipPb` namespaces from the `unstable/gen` entrypoint. ([#95](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/95))
|
|
22
|
+
|
|
3
23
|
## 0.14.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/core-client.js
CHANGED
|
@@ -4,8 +4,8 @@ import { parsePolyesterEnvironment } from "./environment.js";
|
|
|
4
4
|
import { AccountsService } from "./services/accounts/accounts.js";
|
|
5
5
|
import { ApiKeysService } from "./services/api-keys/api-keys.js";
|
|
6
6
|
import { AuthService } from "./services/auth/auth.js";
|
|
7
|
-
import { SubaccountsService } from "./services/subaccounts/subaccounts.js";
|
|
8
7
|
import { createCatalogSdkScales } from "./shared/decimal-surface.js";
|
|
8
|
+
import { SubaccountsService } from "./services/subaccounts/subaccounts.js";
|
|
9
9
|
import { CandlesService } from "./services/candles/candles.js";
|
|
10
10
|
import { ChainAnalyticsService } from "./services/chain-analytics/chain-analytics.js";
|
|
11
11
|
import { MarketDataService } from "./services/market-data/market-data.js";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Message } from "@bufbuild/protobuf";
|
|
2
2
|
import { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
3
|
-
|
|
3
|
+
declare namespace fees_pb_d_exports {
|
|
4
|
+
export { FeeService, GetSpotFeeRatesRequest, GetSpotFeeRatesRequestSchema, GetSpotFeeRatesResponse, GetSpotFeeRatesResponseSchema, SpotFeeRate, SpotFeeRateSchema, file_fees_v1_fees };
|
|
5
|
+
}
|
|
4
6
|
/**
|
|
5
7
|
* Describes the file fees/v1/fees.proto.
|
|
6
8
|
*/
|
|
@@ -112,5 +114,5 @@ declare const FeeService: GenService<{
|
|
|
112
114
|
};
|
|
113
115
|
}>;
|
|
114
116
|
//#endregion
|
|
115
|
-
export { FeeService, GetSpotFeeRatesRequest, GetSpotFeeRatesRequestSchema, GetSpotFeeRatesResponse, GetSpotFeeRatesResponseSchema, SpotFeeRate, SpotFeeRateSchema, file_fees_v1_fees };
|
|
117
|
+
export { FeeService, GetSpotFeeRatesRequest, GetSpotFeeRatesRequestSchema, GetSpotFeeRatesResponse, GetSpotFeeRatesResponseSchema, SpotFeeRate, SpotFeeRateSchema, fees_pb_d_exports, file_fees_v1_fees };
|
|
116
118
|
//# sourceMappingURL=fees_pb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fees_pb.d.ts","names":[],"sources":["../../../../src/gen/fees/v1/fees_pb.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fees_pb.d.ts","names":[],"sources":["../../../../src/gen/fees/v1/fees_pb.ts"],"mappings":";;;;;;;;cAWa,mBAAmB;;;;;;;KASpB,cAAc;;;;;;EAMxB;;;;;;;EAQA;;;;;;;EAQA;;;;;;EAOA;;;;;;cAOW,mBAAmB,WAAW;;;;;;;KAS/B,yBAAyB;;;;;;;EAOnC;;;;;;;;EASA;;;;;;cAOW,8BAA8B,WAAW;;;;;;;KAS1C,0BAA0B;;;;;;;;EAQpC,UAAU;;;;;;cAOC,+BAA+B,WAAW;;;;;;cAQ1C,YAAY;;;;;;;EAOvB;IACE;IACA,cAAc;IACd,eAAe"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
1
2
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
2
3
|
//#region src/gen/fees/v1/fees_pb.ts
|
|
4
|
+
var fees_pb_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
+
FeeService: () => FeeService,
|
|
6
|
+
GetSpotFeeRatesRequestSchema: () => GetSpotFeeRatesRequestSchema,
|
|
7
|
+
GetSpotFeeRatesResponseSchema: () => GetSpotFeeRatesResponseSchema,
|
|
8
|
+
SpotFeeRateSchema: () => SpotFeeRateSchema,
|
|
9
|
+
file_fees_v1_fees: () => file_fees_v1_fees
|
|
10
|
+
});
|
|
3
11
|
/**
|
|
4
12
|
* Describes the file fees/v1/fees.proto.
|
|
5
13
|
*/
|
|
@@ -26,6 +34,6 @@ const GetSpotFeeRatesResponseSchema = /*@__PURE__*/ messageDesc(file_fees_v1_fee
|
|
|
26
34
|
*/
|
|
27
35
|
const FeeService = /*@__PURE__*/ serviceDesc(file_fees_v1_fees, 0);
|
|
28
36
|
//#endregion
|
|
29
|
-
export { FeeService, GetSpotFeeRatesRequestSchema, GetSpotFeeRatesResponseSchema, SpotFeeRateSchema, file_fees_v1_fees };
|
|
37
|
+
export { FeeService, GetSpotFeeRatesRequestSchema, GetSpotFeeRatesResponseSchema, SpotFeeRateSchema, fees_pb_exports, file_fees_v1_fees };
|
|
30
38
|
|
|
31
39
|
//# sourceMappingURL=fees_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fees_pb.js","names":[],"sources":["../../../../src/gen/fees/v1/fees_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file fees/v1/fees.proto (package fees.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 { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file fees/v1/fees.proto.\n */\nexport const file_fees_v1_fees: GenFile = /*@__PURE__*/\n fileDesc(\"ChJmZWVzL3YxL2ZlZXMucHJvdG8SB2ZlZXMudjEiegoLU3BvdEZlZVJhdGUSEwoJc3ltYm9sX2lkGAEgASgNQgASIAoWbWFrZXJfZmVlX3JhdGVfcGVyY2VudBgDIAEoCUIAEiAKFnRha2VyX2ZlZV9yYXRlX3BlcmNlbnQYBCABKAlCABISCgh2aXBfdGllchgFIAEoDUIAIl0KFkdldFNwb3RGZWVSYXRlc1JlcXVlc3QSHAoNc3ViYWNjb3VudF9pZBgBIAEoBkIASACIAQESEwoJc3ltYm9sX2lkGAIgAygNQgBCEAoOX3N1YmFjY291bnRfaWQiQgoXR2V0U3BvdEZlZVJhdGVzUmVzcG9uc2USJwoJZmVlX3JhdGVzGAEgAygLMhQuZmVlcy52MS5TcG90RmVlUmF0ZTJkCgpGZWVTZXJ2aWNlElYKD0dldFNwb3RGZWVSYXRlcxIfLmZlZXMudjEuR2V0U3BvdEZlZVJhdGVzUmVxdWVzdBogLmZlZXMudjEuR2V0U3BvdEZlZVJhdGVzUmVzcG9uc2UiAEI8WjpnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL2ZlZXMvdjE7ZmVlc3YxYgZwcm90bzM=\");\n\n/**\n * SpotFeeRate describes the effective maker and taker rates for one spot\n * market and account target.\n *\n * @generated from message fees.v1.SpotFeeRate\n */\nexport type SpotFeeRate = Message<\"fees.v1.SpotFeeRate\"> & {\n /**\n * Stable numeric spot market identifier.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Effective maker fee rate encoded as a base-10 percentage string without a\n * percent sign. Values are between -100 and 100 inclusive.\n *\n * @generated from field: string maker_fee_rate_percent = 3;\n */\n makerFeeRatePercent: string;\n\n /**\n * Effective taker fee rate encoded as a non-negative base-10 percentage\n * string without a percent sign. Values are between 0 and 100 inclusive.\n *\n * @generated from field: string taker_fee_rate_percent = 4;\n */\n takerFeeRatePercent: string;\n\n /**\n * VIP tier used to resolve these rates, in the inclusive range 0 through 10.\n *\n * @generated from field: uint32 vip_tier = 5;\n */\n vipTier: number;\n};\n\n/**\n * Describes the message fees.v1.SpotFeeRate.\n * Use `create(SpotFeeRateSchema)` to create a new message.\n */\nexport const SpotFeeRateSchema: GenMessage<SpotFeeRate> = /*@__PURE__*/\n messageDesc(file_fees_v1_fees, 0);\n\n/**\n * GetSpotFeeRatesRequest requests effective spot fee rates for one account\n * target and an optional set of markets.\n *\n * @generated from message fees.v1.GetSpotFeeRatesRequest\n */\nexport type GetSpotFeeRatesRequest = Message<\"fees.v1.GetSpotFeeRatesRequest\"> & {\n /**\n * Optional subaccount public identifier. When omitted, the authenticated\n * caller's root account is used.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Optional unique spot market identifier filter. When empty, all currently\n * listed, non-disabled spot markets are returned. At most 100 identifiers\n * may be requested.\n *\n * @generated from field: repeated uint32 symbol_id = 2;\n */\n symbolId: number[];\n};\n\n/**\n * Describes the message fees.v1.GetSpotFeeRatesRequest.\n * Use `create(GetSpotFeeRatesRequestSchema)` to create a new message.\n */\nexport const GetSpotFeeRatesRequestSchema: GenMessage<GetSpotFeeRatesRequest> = /*@__PURE__*/\n messageDesc(file_fees_v1_fees, 1);\n\n/**\n * GetSpotFeeRatesResponse contains effective spot fee rates ordered by numeric\n * market identifier ascending.\n *\n * @generated from message fees.v1.GetSpotFeeRatesResponse\n */\nexport type GetSpotFeeRatesResponse = Message<\"fees.v1.GetSpotFeeRatesResponse\"> & {\n /**\n * Effective spot fee rows ordered by symbol_id ascending. The result is a\n * finite snapshot of the requested or currently listed, non-disabled spot\n * market catalog and is not paginated.\n *\n * @generated from field: repeated fees.v1.SpotFeeRate fee_rates = 1;\n */\n feeRates: SpotFeeRate[];\n};\n\n/**\n * Describes the message fees.v1.GetSpotFeeRatesResponse.\n * Use `create(GetSpotFeeRatesResponseSchema)` to create a new message.\n */\nexport const GetSpotFeeRatesResponseSchema: GenMessage<GetSpotFeeRatesResponse> = /*@__PURE__*/\n messageDesc(file_fees_v1_fees, 2);\n\n/**\n * FeeService serves authenticated effective spot trading fee rates.\n *\n * @generated from service fees.v1.FeeService\n */\nexport const FeeService: GenService<{\n /**\n * Get effective maker and taker fee rates for the authenticated caller's\n * root account or selected subaccount.\n *\n * @generated from rpc fees.v1.FeeService.GetSpotFeeRates\n */\n getSpotFeeRates: {\n methodKind: \"unary\";\n input: typeof GetSpotFeeRatesRequestSchema;\n output: typeof GetSpotFeeRatesResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_fees_v1_fees, 0);\n\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fees_pb.js","names":[],"sources":["../../../../src/gen/fees/v1/fees_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file fees/v1/fees.proto (package fees.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 { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file fees/v1/fees.proto.\n */\nexport const file_fees_v1_fees: GenFile = /*@__PURE__*/\n fileDesc(\"ChJmZWVzL3YxL2ZlZXMucHJvdG8SB2ZlZXMudjEiegoLU3BvdEZlZVJhdGUSEwoJc3ltYm9sX2lkGAEgASgNQgASIAoWbWFrZXJfZmVlX3JhdGVfcGVyY2VudBgDIAEoCUIAEiAKFnRha2VyX2ZlZV9yYXRlX3BlcmNlbnQYBCABKAlCABISCgh2aXBfdGllchgFIAEoDUIAIl0KFkdldFNwb3RGZWVSYXRlc1JlcXVlc3QSHAoNc3ViYWNjb3VudF9pZBgBIAEoBkIASACIAQESEwoJc3ltYm9sX2lkGAIgAygNQgBCEAoOX3N1YmFjY291bnRfaWQiQgoXR2V0U3BvdEZlZVJhdGVzUmVzcG9uc2USJwoJZmVlX3JhdGVzGAEgAygLMhQuZmVlcy52MS5TcG90RmVlUmF0ZTJkCgpGZWVTZXJ2aWNlElYKD0dldFNwb3RGZWVSYXRlcxIfLmZlZXMudjEuR2V0U3BvdEZlZVJhdGVzUmVxdWVzdBogLmZlZXMudjEuR2V0U3BvdEZlZVJhdGVzUmVzcG9uc2UiAEI8WjpnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL2ZlZXMvdjE7ZmVlc3YxYgZwcm90bzM=\");\n\n/**\n * SpotFeeRate describes the effective maker and taker rates for one spot\n * market and account target.\n *\n * @generated from message fees.v1.SpotFeeRate\n */\nexport type SpotFeeRate = Message<\"fees.v1.SpotFeeRate\"> & {\n /**\n * Stable numeric spot market identifier.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Effective maker fee rate encoded as a base-10 percentage string without a\n * percent sign. Values are between -100 and 100 inclusive.\n *\n * @generated from field: string maker_fee_rate_percent = 3;\n */\n makerFeeRatePercent: string;\n\n /**\n * Effective taker fee rate encoded as a non-negative base-10 percentage\n * string without a percent sign. Values are between 0 and 100 inclusive.\n *\n * @generated from field: string taker_fee_rate_percent = 4;\n */\n takerFeeRatePercent: string;\n\n /**\n * VIP tier used to resolve these rates, in the inclusive range 0 through 10.\n *\n * @generated from field: uint32 vip_tier = 5;\n */\n vipTier: number;\n};\n\n/**\n * Describes the message fees.v1.SpotFeeRate.\n * Use `create(SpotFeeRateSchema)` to create a new message.\n */\nexport const SpotFeeRateSchema: GenMessage<SpotFeeRate> = /*@__PURE__*/\n messageDesc(file_fees_v1_fees, 0);\n\n/**\n * GetSpotFeeRatesRequest requests effective spot fee rates for one account\n * target and an optional set of markets.\n *\n * @generated from message fees.v1.GetSpotFeeRatesRequest\n */\nexport type GetSpotFeeRatesRequest = Message<\"fees.v1.GetSpotFeeRatesRequest\"> & {\n /**\n * Optional subaccount public identifier. When omitted, the authenticated\n * caller's root account is used.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Optional unique spot market identifier filter. When empty, all currently\n * listed, non-disabled spot markets are returned. At most 100 identifiers\n * may be requested.\n *\n * @generated from field: repeated uint32 symbol_id = 2;\n */\n symbolId: number[];\n};\n\n/**\n * Describes the message fees.v1.GetSpotFeeRatesRequest.\n * Use `create(GetSpotFeeRatesRequestSchema)` to create a new message.\n */\nexport const GetSpotFeeRatesRequestSchema: GenMessage<GetSpotFeeRatesRequest> = /*@__PURE__*/\n messageDesc(file_fees_v1_fees, 1);\n\n/**\n * GetSpotFeeRatesResponse contains effective spot fee rates ordered by numeric\n * market identifier ascending.\n *\n * @generated from message fees.v1.GetSpotFeeRatesResponse\n */\nexport type GetSpotFeeRatesResponse = Message<\"fees.v1.GetSpotFeeRatesResponse\"> & {\n /**\n * Effective spot fee rows ordered by symbol_id ascending. The result is a\n * finite snapshot of the requested or currently listed, non-disabled spot\n * market catalog and is not paginated.\n *\n * @generated from field: repeated fees.v1.SpotFeeRate fee_rates = 1;\n */\n feeRates: SpotFeeRate[];\n};\n\n/**\n * Describes the message fees.v1.GetSpotFeeRatesResponse.\n * Use `create(GetSpotFeeRatesResponseSchema)` to create a new message.\n */\nexport const GetSpotFeeRatesResponseSchema: GenMessage<GetSpotFeeRatesResponse> = /*@__PURE__*/\n messageDesc(file_fees_v1_fees, 2);\n\n/**\n * FeeService serves authenticated effective spot trading fee rates.\n *\n * @generated from service fees.v1.FeeService\n */\nexport const FeeService: GenService<{\n /**\n * Get effective maker and taker fee rates for the authenticated caller's\n * root account or selected subaccount.\n *\n * @generated from rpc fees.v1.FeeService.GetSpotFeeRates\n */\n getSpotFeeRates: {\n methodKind: \"unary\";\n input: typeof GetSpotFeeRatesRequestSchema;\n output: typeof GetSpotFeeRatesResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_fees_v1_fees, 0);\n\n"],"mappings":";;;;;;;;;;;;;AAWA,MAAa,oBACX,uBAAS,8oBAA8oB;;;;;AA4CzpB,MAAa,oBACX,0BAAY,mBAAmB,CAAC;;;;;AA+BlC,MAAa,+BACX,0BAAY,mBAAmB,CAAC;;;;;AAuBlC,MAAa,gCACX,0BAAY,mBAAmB,CAAC;;;;;;AAOlC,MAAa,aAaX,0BAAY,mBAAmB,CAAC"}
|
package/dist/gen/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { lifecycle_read_pb_d_exports } from "./chain/lifecycle/v1/lifecycle_read
|
|
|
20
20
|
import { withdraw_pb_d_exports } from "./chain/withdraw/v1/withdraw_pb.js";
|
|
21
21
|
import { zipper_pb_d_exports } from "./chain/zipper/v1/zipper_pb.js";
|
|
22
22
|
import { whiteboard_pb_d_exports } from "./collab/v1/whiteboard_pb.js";
|
|
23
|
+
import { fees_pb_d_exports } from "./fees/v1/fees_pb.js";
|
|
23
24
|
import { polychart_pb_d_exports } from "./polychart/v1/polychart_pb.js";
|
|
24
25
|
import { layout_pb_d_exports } from "./layout/v1/layout_pb.js";
|
|
25
26
|
import { heatmap_pb_d_exports } from "./marketdata/v1/heatmap_pb.js";
|
|
@@ -30,7 +31,9 @@ import { orders_pb_d_exports } from "./orders/v1/orders_pb.js";
|
|
|
30
31
|
import { orders_read_pb_d_exports } from "./orders/v1/orders_read_pb.js";
|
|
31
32
|
import { polychart_events_pb_d_exports } from "./polychart/events/v1/polychart_events_pb.js";
|
|
32
33
|
import { options_pb_d_exports } from "./polyester/api/options_pb.js";
|
|
34
|
+
import { ratelimit_pb_d_exports } from "./ratelimit/v1/ratelimit_pb.js";
|
|
33
35
|
import { trade_ws_pb_d_exports } from "./tradews/v1/trade_ws_pb.js";
|
|
34
36
|
import { internal_transfer_pb_d_exports } from "./transfer/v1/internal_transfer_pb.js";
|
|
35
37
|
import { triggers_pb_d_exports } from "./triggers/v1/triggers_pb.js";
|
|
36
|
-
|
|
38
|
+
import { vip_pb_d_exports } from "./vip/v1/vip_pb.js";
|
|
39
|
+
export { address_book_pb_d_exports as addressBookPb, analytics_read_pb_d_exports as analyticsReadPb, api_keys_pb_d_exports as apiKeysPb, auth_pb_d_exports as authPb, deposit_pb_d_exports as depositPb, fees_pb_d_exports as feesPb, guard_signer_pb_d_exports as guardSignerPb, heatmap_pb_d_exports as heatmapPb, internal_transfer_pb_d_exports as internalTransferPb, layout_pb_d_exports as layoutPb, catalog_pb_d_exports as ledgerCatalogPb, ledger_read_pb_d_exports as ledgerReadPb, lifecycle_read_pb_d_exports as lifecycleReadPb, types_pb_d_exports as lifecycleTypesPb, marketdata_pb_d_exports as marketdataPb, marketoverview_pb_d_exports as marketoverviewPb, mfa_pb_d_exports as mfaPb, orderbook_pb_d_exports as orderbookPb, orders_pb_d_exports as ordersPb, orders_read_pb_d_exports as ordersReadPb, policies_pb_d_exports as policiesPb, polychart_events_pb_d_exports as polychartEventsPb, polychart_pb_d_exports as polychartPb, options_pb_d_exports as polyesterOptionsPb, profile_pb_d_exports as profilePb, types_pb_d_exports$1 as rateLimitPb, resolve_pb_d_exports as resolvePb, social_verification_pb_d_exports as socialVerificationPb, subaccounts_pb_d_exports as subaccountsPb, trade_ws_pb_d_exports as tradeWsPb, ratelimit_pb_d_exports as tradingRateLimitPb, triggers_pb_d_exports as triggersPb, u128_pb_d_exports as u128Pb, vip_pb_d_exports as vipPb, whiteboard_pb_d_exports as whiteboardPb, withdraw_pb_d_exports as withdrawPb, zipper_pb_d_exports as zipperPb, reason_pb_d_exports as zipperReasonPb };
|
package/dist/gen/index.js
CHANGED
|
@@ -29,8 +29,11 @@ import { guard_signer_pb_exports } from "./chain/guard/v1/guard_signer_pb.js";
|
|
|
29
29
|
import { social_verification_pb_exports } from "./auth/v1/social_verification_pb.js";
|
|
30
30
|
import { whiteboard_pb_exports } from "./collab/v1/whiteboard_pb.js";
|
|
31
31
|
import { zipper_pb_exports } from "./chain/zipper/v1/zipper_pb.js";
|
|
32
|
+
import { vip_pb_exports } from "./vip/v1/vip_pb.js";
|
|
33
|
+
import { fees_pb_exports } from "./fees/v1/fees_pb.js";
|
|
34
|
+
import { ratelimit_pb_exports } from "./ratelimit/v1/ratelimit_pb.js";
|
|
32
35
|
import { polychart_pb_exports } from "./polychart/v1/polychart_pb.js";
|
|
33
36
|
import { layout_pb_exports } from "./layout/v1/layout_pb.js";
|
|
34
37
|
import { polychart_events_pb_exports } from "./polychart/events/v1/polychart_events_pb.js";
|
|
35
38
|
import { trade_ws_pb_exports } from "./tradews/v1/trade_ws_pb.js";
|
|
36
|
-
export { address_book_pb_exports as addressBookPb, analytics_read_pb_exports as analyticsReadPb, api_keys_pb_exports as apiKeysPb, auth_pb_exports as authPb, deposit_pb_exports as depositPb, guard_signer_pb_exports as guardSignerPb, heatmap_pb_exports as heatmapPb, internal_transfer_pb_exports as internalTransferPb, layout_pb_exports as layoutPb, catalog_pb_exports as ledgerCatalogPb, ledger_read_pb_exports as ledgerReadPb, lifecycle_read_pb_exports as lifecycleReadPb, types_pb_exports as lifecycleTypesPb, marketdata_pb_exports as marketdataPb, marketoverview_pb_exports as marketoverviewPb, mfa_pb_exports as mfaPb, orderbook_pb_exports as orderbookPb, orders_pb_exports as ordersPb, orders_read_pb_exports as ordersReadPb, policies_pb_exports as policiesPb, polychart_events_pb_exports as polychartEventsPb, polychart_pb_exports as polychartPb, options_pb_exports as polyesterOptionsPb, profile_pb_exports as profilePb, types_pb_exports$1 as rateLimitPb, resolve_pb_exports as resolvePb, social_verification_pb_exports as socialVerificationPb, subaccounts_pb_exports as subaccountsPb, trade_ws_pb_exports as tradeWsPb, triggers_pb_exports as triggersPb, u128_pb_exports as u128Pb, whiteboard_pb_exports as whiteboardPb, withdraw_pb_exports as withdrawPb, zipper_pb_exports as zipperPb, reason_pb_exports as zipperReasonPb };
|
|
39
|
+
export { address_book_pb_exports as addressBookPb, analytics_read_pb_exports as analyticsReadPb, api_keys_pb_exports as apiKeysPb, auth_pb_exports as authPb, deposit_pb_exports as depositPb, fees_pb_exports as feesPb, guard_signer_pb_exports as guardSignerPb, heatmap_pb_exports as heatmapPb, internal_transfer_pb_exports as internalTransferPb, layout_pb_exports as layoutPb, catalog_pb_exports as ledgerCatalogPb, ledger_read_pb_exports as ledgerReadPb, lifecycle_read_pb_exports as lifecycleReadPb, types_pb_exports as lifecycleTypesPb, marketdata_pb_exports as marketdataPb, marketoverview_pb_exports as marketoverviewPb, mfa_pb_exports as mfaPb, orderbook_pb_exports as orderbookPb, orders_pb_exports as ordersPb, orders_read_pb_exports as ordersReadPb, policies_pb_exports as policiesPb, polychart_events_pb_exports as polychartEventsPb, polychart_pb_exports as polychartPb, options_pb_exports as polyesterOptionsPb, profile_pb_exports as profilePb, types_pb_exports$1 as rateLimitPb, resolve_pb_exports as resolvePb, social_verification_pb_exports as socialVerificationPb, subaccounts_pb_exports as subaccountsPb, trade_ws_pb_exports as tradeWsPb, ratelimit_pb_exports as tradingRateLimitPb, triggers_pb_exports as triggersPb, u128_pb_exports as u128Pb, vip_pb_exports as vipPb, whiteboard_pb_exports as whiteboardPb, withdraw_pb_exports as withdrawPb, zipper_pb_exports as zipperPb, reason_pb_exports as zipperReasonPb };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Message } from "@bufbuild/protobuf";
|
|
2
2
|
import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
3
3
|
import { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
|
-
|
|
4
|
+
declare namespace ratelimit_pb_d_exports {
|
|
5
|
+
export { GetRateLimitConfigRequest, GetRateLimitConfigRequestSchema, GetRateLimitConfigResponse, GetRateLimitConfigResponseSchema, GetTradingRateLimitsRequest, GetTradingRateLimitsRequestSchema, GetTradingRateLimitsResponse, GetTradingRateLimitsResponseSchema, RateLimitService, TradingRateLimitClass, TradingRateLimitClassSchema, TradingRateLimitRule, TradingRateLimitRuleSchema, file_ratelimit_v1_ratelimit };
|
|
6
|
+
}
|
|
5
7
|
/**
|
|
6
8
|
* Describes the file ratelimit/v1/ratelimit.proto.
|
|
7
9
|
*/
|
|
@@ -217,5 +219,5 @@ declare const RateLimitService: GenService<{
|
|
|
217
219
|
};
|
|
218
220
|
}>;
|
|
219
221
|
//#endregion
|
|
220
|
-
export { GetRateLimitConfigRequest, GetRateLimitConfigRequestSchema, GetRateLimitConfigResponse, GetRateLimitConfigResponseSchema, GetTradingRateLimitsRequest, GetTradingRateLimitsRequestSchema, GetTradingRateLimitsResponse, GetTradingRateLimitsResponseSchema, RateLimitService, TradingRateLimitClass, TradingRateLimitClassSchema, TradingRateLimitRule, TradingRateLimitRuleSchema, file_ratelimit_v1_ratelimit };
|
|
222
|
+
export { GetRateLimitConfigRequest, GetRateLimitConfigRequestSchema, GetRateLimitConfigResponse, GetRateLimitConfigResponseSchema, GetTradingRateLimitsRequest, GetTradingRateLimitsRequestSchema, GetTradingRateLimitsResponse, GetTradingRateLimitsResponseSchema, RateLimitService, TradingRateLimitClass, TradingRateLimitClassSchema, TradingRateLimitRule, TradingRateLimitRuleSchema, file_ratelimit_v1_ratelimit, ratelimit_pb_d_exports };
|
|
221
223
|
//# sourceMappingURL=ratelimit_pb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ratelimit_pb.d.ts","names":[],"sources":["../../../../src/gen/ratelimit/v1/ratelimit_pb.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ratelimit_pb.d.ts","names":[],"sources":["../../../../src/gen/ratelimit/v1/ratelimit_pb.ts"],"mappings":";;;;;;;;;cAca,6BAA6B;;;;;;;KAS9B,uBAAuB;;;;;;;EAOjC,aAAa;;;;;;EAOb;;;;;;;EAQA;;;;;;EAOA;;;;;;EAOA;;;;;;cAOW,4BAA4B,WAAW;;;;;;;KASxC,4BAA4B;;;;;cAO3B,iCAAiC,WAAW;;;;;;;KAS7C,6BAA6B;;;;;;EAMvC;;;;;;EAOA,gBAAgB;;;;;;;;EAShB,OAAO;;;;;;cAOI,kCAAkC,WAAW;;;;;;;KAS9C,8BAA8B;;;;;;;EAOxC;;;;;;cAOW,mCAAmC,WAAW;;;;;;;KAS/C,+BAA+B;;;;;;;EAOzC;;;;;;EAOA,gBAAgB;;;;;;;EAQhB,OAAO;;;;;;;;EASP,aAAa;;;;;;cAOF,oCAAoC,WAAW;;;;;;aAQhD;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,6BAA6B,QAAQ;;;;;;;cASrC,kBAAkB;;;;;;;EAO7B;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;EAQjB;IACE;IACA,cAAc;IACd,eAAe"}
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
1
2
|
import { file_polyester_api_options } from "../../polyester/api/options_pb.js";
|
|
2
3
|
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
3
4
|
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
5
|
//#region src/gen/ratelimit/v1/ratelimit_pb.ts
|
|
6
|
+
var ratelimit_pb_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
GetRateLimitConfigRequestSchema: () => GetRateLimitConfigRequestSchema,
|
|
8
|
+
GetRateLimitConfigResponseSchema: () => GetRateLimitConfigResponseSchema,
|
|
9
|
+
GetTradingRateLimitsRequestSchema: () => GetTradingRateLimitsRequestSchema,
|
|
10
|
+
GetTradingRateLimitsResponseSchema: () => GetTradingRateLimitsResponseSchema,
|
|
11
|
+
RateLimitService: () => RateLimitService,
|
|
12
|
+
TradingRateLimitClass: () => TradingRateLimitClass,
|
|
13
|
+
TradingRateLimitClassSchema: () => TradingRateLimitClassSchema,
|
|
14
|
+
TradingRateLimitRuleSchema: () => TradingRateLimitRuleSchema,
|
|
15
|
+
file_ratelimit_v1_ratelimit: () => file_ratelimit_v1_ratelimit
|
|
16
|
+
});
|
|
5
17
|
/**
|
|
6
18
|
* Describes the file ratelimit/v1/ratelimit.proto.
|
|
7
19
|
*/
|
|
@@ -69,6 +81,6 @@ const TradingRateLimitClassSchema = /*@__PURE__*/ enumDesc(file_ratelimit_v1_rat
|
|
|
69
81
|
*/
|
|
70
82
|
const RateLimitService = /*@__PURE__*/ serviceDesc(file_ratelimit_v1_ratelimit, 0);
|
|
71
83
|
//#endregion
|
|
72
|
-
export { GetRateLimitConfigRequestSchema, GetRateLimitConfigResponseSchema, GetTradingRateLimitsRequestSchema, GetTradingRateLimitsResponseSchema, RateLimitService, TradingRateLimitClass, TradingRateLimitClassSchema, TradingRateLimitRuleSchema, file_ratelimit_v1_ratelimit };
|
|
84
|
+
export { GetRateLimitConfigRequestSchema, GetRateLimitConfigResponseSchema, GetTradingRateLimitsRequestSchema, GetTradingRateLimitsResponseSchema, RateLimitService, TradingRateLimitClass, TradingRateLimitClassSchema, TradingRateLimitRuleSchema, file_ratelimit_v1_ratelimit, ratelimit_pb_exports };
|
|
73
85
|
|
|
74
86
|
//# sourceMappingURL=ratelimit_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ratelimit_pb.js","names":[],"sources":["../../../../src/gen/ratelimit/v1/ratelimit_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file ratelimit/v1/ratelimit.proto (package ratelimit.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, 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 ratelimit/v1/ratelimit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MSU1JVF9DTEFTU19VTlNQRUNJRklFRBAAEiIKHlRSQURJTkdfUkFURV9MSU1JVF9DTEFTU19QTEFDRRABEiMKH1RSQURJTkdfUkFURV9MSU1JVF9DTEFTU19DQU5DRUwQAjLuAQoQUmF0ZUxpbWl0U2VydmljZRJpChJHZXRSYXRlTGltaXRDb25maWcSJy5yYXRlbGltaXQudjEuR2V0UmF0ZUxpbWl0Q29uZmlnUmVxdWVzdBooLnJhdGVsaW1pdC52MS5HZXRSYXRlTGltaXRDb25maWdSZXNwb25zZSIAEm8KFEdldFRyYWRpbmdSYXRlTGltaXRzEikucmF0ZWxpbWl0LnYxLkdldFRyYWRpbmdSYXRlTGltaXRzUmVxdWVzdBoqLnJhdGVsaW1pdC52MS5HZXRUcmFkaW5nUmF0ZUxpbWl0c1Jlc3BvbnNlIgBCRlpEZ2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9yYXRlbGltaXQvdjE7cmF0ZWxpbWl0djFiBnByb3RvMw==\", [file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * TradingRateLimitRule describes one weighted placement or cancellation quota\n * for one VIP tier.\n *\n * @generated from message ratelimit.v1.TradingRateLimitRule\n */\nexport type TradingRateLimitRule = Message<\"ratelimit.v1.TradingRateLimitRule\"> & {\n /**\n * Trading operation family governed by this rule. Public responses contain\n * TRADING_RATE_LIMIT_CLASS_PLACE or TRADING_RATE_LIMIT_CLASS_CANCEL.\n *\n * @generated from field: ratelimit.v1.TradingRateLimitClass policy_class = 1;\n */\n policyClass: TradingRateLimitClass;\n\n /**\n * VIP tier for this rule, in the inclusive range 0 through 10.\n *\n * @generated from field: uint32 vip_tier = 2;\n */\n vipTier: number;\n\n /**\n * Weighted request capacity available during each policy period. One\n * operation consumes the weight assigned to that operation.\n *\n * @generated from field: uint64 quota_weight = 3;\n */\n quotaWeight: bigint;\n\n /**\n * Policy period duration in milliseconds.\n *\n * @generated from field: uint64 period_ms = 4;\n */\n periodMs: bigint;\n\n /**\n * Maximum weighted capacity that may be consumed in a burst.\n *\n * @generated from field: uint64 burst_weight = 5;\n */\n burstWeight: bigint;\n};\n\n/**\n * Describes the message ratelimit.v1.TradingRateLimitRule.\n * Use `create(TradingRateLimitRuleSchema)` to create a new message.\n */\nexport const TradingRateLimitRuleSchema: GenMessage<TradingRateLimitRule> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 0);\n\n/**\n * GetRateLimitConfigRequest requests the complete active public trading\n * rate-limit catalog.\n *\n * @generated from message ratelimit.v1.GetRateLimitConfigRequest\n */\nexport type GetRateLimitConfigRequest = Message<\"ratelimit.v1.GetRateLimitConfigRequest\"> & {\n};\n\n/**\n * Describes the message ratelimit.v1.GetRateLimitConfigRequest.\n * Use `create(GetRateLimitConfigRequestSchema)` to create a new message.\n */\nexport const GetRateLimitConfigRequestSchema: GenMessage<GetRateLimitConfigRequest> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 1);\n\n/**\n * GetRateLimitConfigResponse contains all placement and cancellation rules for\n * one complete policy version.\n *\n * @generated from message ratelimit.v1.GetRateLimitConfigResponse\n */\nexport type GetRateLimitConfigResponse = Message<\"ratelimit.v1.GetRateLimitConfigResponse\"> & {\n /**\n * Positive identifier of the returned rate-limit 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 * Complete placement and cancellation catalog. Rules are ordered by policy\n * class, then by tier ascending. The list contains one rule per class for\n * each VIP0 through VIP10 tier and is not paginated.\n *\n * @generated from field: repeated ratelimit.v1.TradingRateLimitRule rules = 3;\n */\n rules: TradingRateLimitRule[];\n};\n\n/**\n * Describes the message ratelimit.v1.GetRateLimitConfigResponse.\n * Use `create(GetRateLimitConfigResponseSchema)` to create a new message.\n */\nexport const GetRateLimitConfigResponseSchema: GenMessage<GetRateLimitConfigResponse> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 2);\n\n/**\n * GetTradingRateLimitsRequest requests the effective trading limits for one\n * account target.\n *\n * @generated from message ratelimit.v1.GetTradingRateLimitsRequest\n */\nexport type GetTradingRateLimitsRequest = Message<\"ratelimit.v1.GetTradingRateLimitsRequest\"> & {\n /**\n * Optional subaccount public identifier. When omitted, the authenticated\n * caller's root account is used.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n};\n\n/**\n * Describes the message ratelimit.v1.GetTradingRateLimitsRequest.\n * Use `create(GetTradingRateLimitsRequestSchema)` to create a new message.\n */\nexport const GetTradingRateLimitsRequestSchema: GenMessage<GetTradingRateLimitsRequest> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 3);\n\n/**\n * GetTradingRateLimitsResponse contains every placement and cancellation\n * policy enforced for the selected account target and caller.\n *\n * @generated from message ratelimit.v1.GetTradingRateLimitsResponse\n */\nexport type GetTradingRateLimitsResponse = Message<\"ratelimit.v1.GetTradingRateLimitsResponse\"> & {\n /**\n * Positive identifier of the rate-limit policy version used for the\n * returned rules.\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 * Account-scoped placement and cancellation rules for the selected account,\n * ordered with placement first and cancellation second.\n *\n * @generated from field: repeated ratelimit.v1.TradingRateLimitRule rules = 3;\n */\n rules: TradingRateLimitRule[];\n\n /**\n * API-key-scoped placement and cancellation rules, ordered with placement\n * first and cancellation second. Present only when the caller authenticated\n * with an API key. Both this scope and the account scope are enforced.\n *\n * @generated from field: repeated ratelimit.v1.TradingRateLimitRule api_key_rules = 4;\n */\n apiKeyRules: TradingRateLimitRule[];\n};\n\n/**\n * Describes the message ratelimit.v1.GetTradingRateLimitsResponse.\n * Use `create(GetTradingRateLimitsResponseSchema)` to create a new message.\n */\nexport const GetTradingRateLimitsResponseSchema: GenMessage<GetTradingRateLimitsResponse> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 4);\n\n/**\n * TradingRateLimitClass identifies a public trading operation family.\n *\n * @generated from enum ratelimit.v1.TradingRateLimitClass\n */\nexport enum TradingRateLimitClass {\n /**\n * No trading operation family was provided.\n *\n * @generated from enum value: TRADING_RATE_LIMIT_CLASS_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * New-order placement and order modification.\n *\n * @generated from enum value: TRADING_RATE_LIMIT_CLASS_PLACE = 1;\n */\n PLACE = 1,\n\n /**\n * Order and trigger cancellation.\n *\n * @generated from enum value: TRADING_RATE_LIMIT_CLASS_CANCEL = 2;\n */\n CANCEL = 2,\n}\n\n/**\n * Describes the enum ratelimit.v1.TradingRateLimitClass.\n */\nexport const TradingRateLimitClassSchema: GenEnum<TradingRateLimitClass> = /*@__PURE__*/\n enumDesc(file_ratelimit_v1_ratelimit, 0);\n\n/**\n * RateLimitService serves public trading quota reference data and authenticated\n * effective trading limits.\n *\n * @generated from service ratelimit.v1.RateLimitService\n */\nexport const RateLimitService: GenService<{\n /**\n * Get the complete active placement and cancellation quota catalog for\n * VIP0 through VIP10.\n *\n * @generated from rpc ratelimit.v1.RateLimitService.GetRateLimitConfig\n */\n getRateLimitConfig: {\n methodKind: \"unary\";\n input: typeof GetRateLimitConfigRequestSchema;\n output: typeof GetRateLimitConfigResponseSchema;\n },\n /**\n * Get the effective placement and cancellation limits for the authenticated\n * caller's root account or selected subaccount.\n *\n * @generated from rpc ratelimit.v1.RateLimitService.GetTradingRateLimits\n */\n getTradingRateLimits: {\n methodKind: \"unary\";\n input: typeof GetTradingRateLimitsRequestSchema;\n output: typeof GetTradingRateLimitsResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_ratelimit_v1_ratelimit, 0);\n\n"],"mappings":";;;;;;;AAcA,MAAa,8BACX,uBAAS,4iDAA4iD,CAAC,gCAAgC,0BAA0B,CAAC;;;;;AAmDnnD,MAAa,6BACX,0BAAY,6BAA6B,CAAC;;;;;AAe5C,MAAa,kCACX,0BAAY,6BAA6B,CAAC;;;;;AAqC5C,MAAa,mCACX,0BAAY,6BAA6B,CAAC;;;;;AAsB5C,MAAa,oCACX,0BAAY,6BAA6B,CAAC;;;;;AA8C5C,MAAa,qCACX,0BAAY,6BAA6B,CAAC;;;;;;AAO5C,IAAY,wBAAL,yBAAA,uBAAA;;;;;;CAML,sBAAA,sBAAA,iBAAA,KAAA;;;;;;CAOA,sBAAA,sBAAA,WAAA,KAAA;;;;;;CAOA,sBAAA,sBAAA,YAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,8BACX,uBAAS,6BAA6B,CAAC;;;;;;;AAQzC,MAAa,mBAwBX,0BAAY,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"ratelimit_pb.js","names":[],"sources":["../../../../src/gen/ratelimit/v1/ratelimit_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file ratelimit/v1/ratelimit.proto (package ratelimit.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, 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 ratelimit/v1/ratelimit.proto.\n */\nexport const file_ratelimit_v1_ratelimit: GenFile = /*@__PURE__*/\n fileDesc(\"ChxyYXRlbGltaXQvdjEvcmF0ZWxpbWl0LnByb3RvEgxyYXRlbGltaXQud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TU19DQU5DRUwQAjLuAQoQUmF0ZUxpbWl0U2VydmljZRJpChJHZXRSYXRlTGltaXRDb25maWcSJy5yYXRlbGltaXQudjEuR2V0UmF0ZUxpbWl0Q29uZmlnUmVxdWVzdBooLnJhdGVsaW1pdC52MS5HZXRSYXRlTGltaXRDb25maWdSZXNwb25zZSIAEm8KFEdldFRyYWRpbmdSYXRlTGltaXRzEikucmF0ZWxpbWl0LnYxLkdldFRyYWRpbmdSYXRlTGltaXRzUmVxdWVzdBoqLnJhdGVsaW1pdC52MS5HZXRUcmFkaW5nUmF0ZUxpbWl0c1Jlc3BvbnNlIgBCRlpEZ2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9yYXRlbGltaXQvdjE7cmF0ZWxpbWl0djFiBnByb3RvMw==\", [file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * TradingRateLimitRule describes one weighted placement or cancellation quota\n * for one VIP tier.\n *\n * @generated from message ratelimit.v1.TradingRateLimitRule\n */\nexport type TradingRateLimitRule = Message<\"ratelimit.v1.TradingRateLimitRule\"> & {\n /**\n * Trading operation family governed by this rule. Public responses contain\n * TRADING_RATE_LIMIT_CLASS_PLACE or TRADING_RATE_LIMIT_CLASS_CANCEL.\n *\n * @generated from field: ratelimit.v1.TradingRateLimitClass policy_class = 1;\n */\n policyClass: TradingRateLimitClass;\n\n /**\n * VIP tier for this rule, in the inclusive range 0 through 10.\n *\n * @generated from field: uint32 vip_tier = 2;\n */\n vipTier: number;\n\n /**\n * Weighted request capacity available during each policy period. One\n * operation consumes the weight assigned to that operation.\n *\n * @generated from field: uint64 quota_weight = 3;\n */\n quotaWeight: bigint;\n\n /**\n * Policy period duration in milliseconds.\n *\n * @generated from field: uint64 period_ms = 4;\n */\n periodMs: bigint;\n\n /**\n * Maximum weighted capacity that may be consumed in a burst.\n *\n * @generated from field: uint64 burst_weight = 5;\n */\n burstWeight: bigint;\n};\n\n/**\n * Describes the message ratelimit.v1.TradingRateLimitRule.\n * Use `create(TradingRateLimitRuleSchema)` to create a new message.\n */\nexport const TradingRateLimitRuleSchema: GenMessage<TradingRateLimitRule> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 0);\n\n/**\n * GetRateLimitConfigRequest requests the complete active public trading\n * rate-limit catalog.\n *\n * @generated from message ratelimit.v1.GetRateLimitConfigRequest\n */\nexport type GetRateLimitConfigRequest = Message<\"ratelimit.v1.GetRateLimitConfigRequest\"> & {\n};\n\n/**\n * Describes the message ratelimit.v1.GetRateLimitConfigRequest.\n * Use `create(GetRateLimitConfigRequestSchema)` to create a new message.\n */\nexport const GetRateLimitConfigRequestSchema: GenMessage<GetRateLimitConfigRequest> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 1);\n\n/**\n * GetRateLimitConfigResponse contains all placement and cancellation rules for\n * one complete policy version.\n *\n * @generated from message ratelimit.v1.GetRateLimitConfigResponse\n */\nexport type GetRateLimitConfigResponse = Message<\"ratelimit.v1.GetRateLimitConfigResponse\"> & {\n /**\n * Positive identifier of the returned rate-limit 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 * Complete placement and cancellation catalog. Rules are ordered by policy\n * class, then by tier ascending. The list contains one rule per class for\n * each VIP0 through VIP10 tier and is not paginated.\n *\n * @generated from field: repeated ratelimit.v1.TradingRateLimitRule rules = 3;\n */\n rules: TradingRateLimitRule[];\n};\n\n/**\n * Describes the message ratelimit.v1.GetRateLimitConfigResponse.\n * Use `create(GetRateLimitConfigResponseSchema)` to create a new message.\n */\nexport const GetRateLimitConfigResponseSchema: GenMessage<GetRateLimitConfigResponse> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 2);\n\n/**\n * GetTradingRateLimitsRequest requests the effective trading limits for one\n * account target.\n *\n * @generated from message ratelimit.v1.GetTradingRateLimitsRequest\n */\nexport type GetTradingRateLimitsRequest = Message<\"ratelimit.v1.GetTradingRateLimitsRequest\"> & {\n /**\n * Optional subaccount public identifier. When omitted, the authenticated\n * caller's root account is used.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n};\n\n/**\n * Describes the message ratelimit.v1.GetTradingRateLimitsRequest.\n * Use `create(GetTradingRateLimitsRequestSchema)` to create a new message.\n */\nexport const GetTradingRateLimitsRequestSchema: GenMessage<GetTradingRateLimitsRequest> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 3);\n\n/**\n * GetTradingRateLimitsResponse contains every placement and cancellation\n * policy enforced for the selected account target and caller.\n *\n * @generated from message ratelimit.v1.GetTradingRateLimitsResponse\n */\nexport type GetTradingRateLimitsResponse = Message<\"ratelimit.v1.GetTradingRateLimitsResponse\"> & {\n /**\n * Positive identifier of the rate-limit policy version used for the\n * returned rules.\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 * Account-scoped placement and cancellation rules for the selected account,\n * ordered with placement first and cancellation second.\n *\n * @generated from field: repeated ratelimit.v1.TradingRateLimitRule rules = 3;\n */\n rules: TradingRateLimitRule[];\n\n /**\n * API-key-scoped placement and cancellation rules, ordered with placement\n * first and cancellation second. Present only when the caller authenticated\n * with an API key. Both this scope and the account scope are enforced.\n *\n * @generated from field: repeated ratelimit.v1.TradingRateLimitRule api_key_rules = 4;\n */\n apiKeyRules: TradingRateLimitRule[];\n};\n\n/**\n * Describes the message ratelimit.v1.GetTradingRateLimitsResponse.\n * Use `create(GetTradingRateLimitsResponseSchema)` to create a new message.\n */\nexport const GetTradingRateLimitsResponseSchema: GenMessage<GetTradingRateLimitsResponse> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 4);\n\n/**\n * TradingRateLimitClass identifies a public trading operation family.\n *\n * @generated from enum ratelimit.v1.TradingRateLimitClass\n */\nexport enum TradingRateLimitClass {\n /**\n * No trading operation family was provided.\n *\n * @generated from enum value: TRADING_RATE_LIMIT_CLASS_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * New-order placement and order modification.\n *\n * @generated from enum value: TRADING_RATE_LIMIT_CLASS_PLACE = 1;\n */\n PLACE = 1,\n\n /**\n * Order and trigger cancellation.\n *\n * @generated from enum value: TRADING_RATE_LIMIT_CLASS_CANCEL = 2;\n */\n CANCEL = 2,\n}\n\n/**\n * Describes the enum ratelimit.v1.TradingRateLimitClass.\n */\nexport const TradingRateLimitClassSchema: GenEnum<TradingRateLimitClass> = /*@__PURE__*/\n enumDesc(file_ratelimit_v1_ratelimit, 0);\n\n/**\n * RateLimitService serves public trading quota reference data and authenticated\n * effective trading limits.\n *\n * @generated from service ratelimit.v1.RateLimitService\n */\nexport const RateLimitService: GenService<{\n /**\n * Get the complete active placement and cancellation quota catalog for\n * VIP0 through VIP10.\n *\n * @generated from rpc ratelimit.v1.RateLimitService.GetRateLimitConfig\n */\n getRateLimitConfig: {\n methodKind: \"unary\";\n input: typeof GetRateLimitConfigRequestSchema;\n output: typeof GetRateLimitConfigResponseSchema;\n },\n /**\n * Get the effective placement and cancellation limits for the authenticated\n * caller's root account or selected subaccount.\n *\n * @generated from rpc ratelimit.v1.RateLimitService.GetTradingRateLimits\n */\n getTradingRateLimits: {\n methodKind: \"unary\";\n input: typeof GetTradingRateLimitsRequestSchema;\n output: typeof GetTradingRateLimitsResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_ratelimit_v1_ratelimit, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAcA,MAAa,8BACX,uBAAS,4iDAA4iD,CAAC,gCAAgC,0BAA0B,CAAC;;;;;AAmDnnD,MAAa,6BACX,0BAAY,6BAA6B,CAAC;;;;;AAe5C,MAAa,kCACX,0BAAY,6BAA6B,CAAC;;;;;AAqC5C,MAAa,mCACX,0BAAY,6BAA6B,CAAC;;;;;AAsB5C,MAAa,oCACX,0BAAY,6BAA6B,CAAC;;;;;AA8C5C,MAAa,qCACX,0BAAY,6BAA6B,CAAC;;;;;;AAO5C,IAAY,wBAAL,yBAAA,uBAAA;;;;;;CAML,sBAAA,sBAAA,iBAAA,KAAA;;;;;;CAOA,sBAAA,sBAAA,WAAA,KAAA;;;;;;CAOA,sBAAA,sBAAA,YAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,8BACX,uBAAS,6BAA6B,CAAC;;;;;;;AAQzC,MAAa,mBAwBX,0BAAY,6BAA6B,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Message } from "@bufbuild/protobuf";
|
|
2
2
|
import { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
3
3
|
import { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
|
-
|
|
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
|
+
}
|
|
5
7
|
/**
|
|
6
8
|
* Describes the file vip/v1/vip.proto.
|
|
7
9
|
*/
|
|
@@ -271,5 +273,5 @@ declare const VIPService: GenService<{
|
|
|
271
273
|
};
|
|
272
274
|
}>;
|
|
273
275
|
//#endregion
|
|
274
|
-
export { GetVIPStatusRequest, GetVIPStatusRequestSchema, GetVIPStatusResponse, GetVIPStatusResponseSchema, ListVIPTiersRequest, ListVIPTiersRequestSchema, ListVIPTiersResponse, ListVIPTiersResponseSchema, NextVIPTierThresholds, NextVIPTierThresholdsSchema, VIPService, VIPTier, VIPTierSchema, file_vip_v1_vip };
|
|
276
|
+
export { GetVIPStatusRequest, GetVIPStatusRequestSchema, GetVIPStatusResponse, GetVIPStatusResponseSchema, ListVIPTiersRequest, ListVIPTiersRequestSchema, ListVIPTiersResponse, ListVIPTiersResponseSchema, NextVIPTierThresholds, NextVIPTierThresholdsSchema, VIPService, VIPTier, VIPTierSchema, file_vip_v1_vip, vip_pb_d_exports };
|
|
275
277
|
//# sourceMappingURL=vip_pb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vip_pb.d.ts","names":[],"sources":["../../../../src/gen/vip/v1/vip_pb.ts"],"mappings":"
|
|
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"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
1
2
|
import { file_polyester_api_options } from "../../polyester/api/options_pb.js";
|
|
2
3
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
3
4
|
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
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
|
+
});
|
|
5
16
|
/**
|
|
6
17
|
* Describes the file vip/v1/vip.proto.
|
|
7
18
|
*/
|
|
@@ -44,6 +55,6 @@ const GetVIPStatusResponseSchema = /*@__PURE__*/ messageDesc(file_vip_v1_vip, 5)
|
|
|
44
55
|
*/
|
|
45
56
|
const VIPService = /*@__PURE__*/ serviceDesc(file_vip_v1_vip, 0);
|
|
46
57
|
//#endregion
|
|
47
|
-
export { GetVIPStatusRequestSchema, GetVIPStatusResponseSchema, ListVIPTiersRequestSchema, ListVIPTiersResponseSchema, NextVIPTierThresholdsSchema, VIPService, VIPTierSchema, file_vip_v1_vip };
|
|
58
|
+
export { GetVIPStatusRequestSchema, GetVIPStatusResponseSchema, ListVIPTiersRequestSchema, ListVIPTiersResponseSchema, NextVIPTierThresholdsSchema, VIPService, VIPTierSchema, file_vip_v1_vip, vip_pb_exports };
|
|
48
59
|
|
|
49
60
|
//# sourceMappingURL=vip_pb.js.map
|
|
@@ -1 +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(\"ChB2aXAvdjEvdmlwLnByb3RvEgZ2aXAudjEitQEKB1ZJUFRpZXISDgoEdGllchgBIAEoDUIAEh4KFHZvbHVtZV90aHJlc2hvbGRfdXNkGAIgASgJQgASIAoRYW9wX3RocmVzaG9sZF91c2QYAyABKAlCAEgAiAEBEiAKFm1ha2VyX2ZlZV9yYXRlX3BlcmNlbnQYBCABKAlCABIgChZ0YWtlcl9mZWVfcmF0ZV9wZXJjZW50GAUgASgJQgBCFAoSX2FvcF90aHJlc2hvbGRfdXNkIhUKE0xpc3RWSVBUaWVyc1JlcXVlc3QiqgEKFExpc3RWSVBUaWVyc1Jlc3BvbnNlEhgKDnBvbGljeV92ZXJzaW9uGAEgASgEQgASNAoOZWZmZWN0aXZlX2Zyb20YAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgASIAoWcmV0ZW50aW9uX3RocmVzaG9sZF9icBgDIAEoDUIA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dFZJUFRpZXJzUmVxdWVzdBocLnZpcC52MS5MaXN0VklQVGllcnNSZXNwb25zZSIAEksKDEdldFZJUFN0YXR1cxIbLnZpcC52MS5HZXRWSVBTdGF0dXNSZXF1ZXN0GhwudmlwLnYxLkdldFZJUFN0YXR1c1Jlc3BvbnNlIgBCOlo4Z2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi92aXAvdjE7dmlwdjFiBnByb3RvMw==\", [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"}
|
|
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"}
|
|
@@ -28,7 +28,7 @@ declare const CreateAddressBookEntryInputSchema: v.SchemaWithPipe<readonly [v.St
|
|
|
28
28
|
readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, "">;
|
|
29
29
|
readonly entry: v.VariantSchema<"kind", [v.StrictObjectSchema<{
|
|
30
30
|
readonly kind: v.LiteralSchema<"external", undefined>;
|
|
31
|
-
readonly polychainChainId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>]>;
|
|
31
|
+
readonly polychainChainId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>;
|
|
32
32
|
readonly address: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
33
33
|
}, undefined>, v.StrictObjectSchema<{
|
|
34
34
|
readonly kind: v.LiteralSchema<"internal", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-book.schemas.d.ts","names":[],"sources":["../../../src/services/address-book/address-book.schemas.ts"],"mappings":";;;;
|
|
1
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,mBACtC;cAGE,sCAAoC,EAAA;;;;;;;;;;;;KAOrC,iCAAiC,EAAE,mBACpC;cAGE,6BAA2B,EAAA;;;;;;;;;;;;;;;;;;;;;KAO5B,wBAAwB,EAAE,mBAAmB;cAE5C,8BAA4B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqD7B,yBAAyB,EAAE,mBAAmB;cAE7C,yCAAuC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+CxC,oCAAoC,EAAE,mBACvC;cAGE,uBAAqB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAUtB,kBAAkB,EAAE,mBAAmB;cAEtC,kCAAgC,EAAA;;;;;;;;;;;;;;;KAMjC,6BAA6B,EAAE,mBAAmB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { requiredEnumLabel } from "../../shared/proto-enum-codec.js";
|
|
2
2
|
import { BigIntStringSchema, OptionalTimestampMsSchema, PublicIdSchema, TimestampMsSchema as TimestampMsSchema$1, idInputSchema, optionalSubaccountIdInputSchema, positiveBigintStringInputSchema } from "../../shared/schemas.js";
|
|
3
3
|
import { parse } from "../../shared/validation.js";
|
|
4
|
+
import { PositiveUint32InputSchema } from "../shared.js";
|
|
4
5
|
import { buildProtoPatch, defineProtoPatchFields } from "../../utils/proto-patch.js";
|
|
5
6
|
import { AccountScopeInputEntries, accountScopeToSubaccountId } from "../../shared/account-scope.js";
|
|
6
7
|
import { SubaccountRole } from "../../gen/auth/v1/subaccounts_pb.js";
|
|
@@ -38,7 +39,7 @@ const CreateAddressBookEntryInputSchema = v.pipe(v.strictObject({
|
|
|
38
39
|
note: v.optional(v.pipe(v.string(), v.trim()), ""),
|
|
39
40
|
entry: v.variant("kind", [v.strictObject({
|
|
40
41
|
kind: v.literal("external"),
|
|
41
|
-
polychainChainId:
|
|
42
|
+
polychainChainId: PositiveUint32InputSchema,
|
|
42
43
|
address: v.pipe(v.string(), v.trim(), v.minLength(1))
|
|
43
44
|
}), v.strictObject({
|
|
44
45
|
kind: v.literal("internal"),
|